/*
 * Online-Terminierung als Seite der Website (ENT-33, Element jco_online_terminierung, Spezifikation §5.4/§5.5).
 *
 * Gestaltungsvorbild ist die Krefelder Online-Terminbuchung (Nutzervorgabe 29.09.2026): Buchung als weiße Karte über dem
 * Kopfbild in voller Inhaltsbreite, oben die Schrittanzeige auf hellgrauem Grund (Zahl im Kreis, aktueller Schritt als
 * blaue Fläche, erledigte mit grünem Haken), große Überschrift in Versalien mit Unterzeile, großzügige Felder (48 px),
 * Terminwahl zweispaltig (Tage links, Uhrzeiten rechts), Hauptschaltfläche groß und farbig, „Einen Schritt zurück“ als
 * dezenter Link. Farben und Schrift der Website Jobcenter Oberhausen: Roboto, Blau #3c57a7, Text #616161, Überschriften
 * schwarz in Versalien, Feldrahmen #b2b9c4.
 *
 * Kontrast aller Texte ≥ 4,5 : 1 (BITV 2.0), Fokus immer sichtbar, Tipp-Ziele ≥ 44 px, ohne waagerechten Überlauf ab
 * 320 px, prefers-reduced-motion. Nur Klassen, keine style-Attribute (CSP); Symbole als CSS-Formen bzw. data:-SVG
 * (img-src data: ist erlaubt).
 */

/* ======================================================================================================================
   Seitenlayout „_Website (Online-Terminierung)“ (CSS-Klasse jco-termin-layout am <body>): einspaltig, Karte über dem Kopfbild
   ==================================================================================================================== */

.jco-termin-layout .content-wrapper {
    padding-top: 0;
}

.jco-termin-layout .main-content {
    position: relative;
    z-index: 3;
    margin-top: -96px;
    padding: 40px 56px 56px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(20, 30, 60, 0.14), 0 1px 3px rgba(20, 30, 60, 0.08);
}

/* Überschrift der Seite („Kontakt“ / „Online-Termine“) bleibt für Screenreader und Suchmaschinen, sichtbar führt die
   Schrittanzeige – wie in Krefeld */
.jco-termin-layout .main-content .preheadline,
.jco-termin-layout .main-content h1 {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.jco-termin-layout .main-content > .mod_article > *:first-child:not(.jco-termin) {
    margin-top: 0;
}

@media (max-width: 1199px) {
    .jco-termin-layout .main-content {
        padding: 32px 36px 44px;
    }
}

@media (max-width: 767px) {
    .jco-termin-layout .main-content {
        margin: -36px 0 40px;
        padding: 18px 16px 32px;
        border-radius: 10px 10px 0 0;
        box-shadow: 0 -8px 24px rgba(20, 30, 60, 0.12);
    }
}

/* ======================================================================================================================
   Grundlagen
   ==================================================================================================================== */

.jco-termin {
    --jco-blau: #3c57a7;
    --jco-blau-dunkel: #2b4185;
    --jco-blau-hell: #eef1f9;
    --jco-blau-rand: #b9c3e3;
    --jco-text: #616161;
    --jco-text-dunkel: #1f1f1f;
    --jco-text-grau: #545454;
    --jco-feld-rahmen: #b2b9c4;
    --jco-rahmen: #dde1e7;
    --jco-flaeche: #f5f6f8;
    --jco-gruen: #2d7a3b;
    --jco-gruen-hell: #e8f4ea;
    --jco-rot: #b3261e;
    --jco-rot-hell: #fdecea;
    --jco-gelb: #8a5300;
    --jco-gelb-hell: #fff6e0;
    --jco-radius: 4px;
    --jco-fokus: 0 0 0 3px rgba(60, 87, 167, 0.28);

    position: relative;
    max-width: 100%;
    color: var(--jco-text);
    font-family: Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    overflow-wrap: break-word;
}

.jco-termin *,
.jco-termin *::before,
.jco-termin *::after {
    box-sizing: border-box;
}

.jco-termin [hidden] {
    display: none !important;
}

.jco-termin p {
    margin: 0 0 12px;
}

.jco-termin ul,
.jco-termin ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.jco-termin ul li,
.jco-termin ol li {
    margin: 0;
    padding: 0;
    background: none;
}

.jco-termin ul li::before,
.jco-termin ol li::before {
    content: none;
}

.jco-termin fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.jco-termin legend {
    padding: 0;
}

/* Fokus immer sichtbar (das Theme blendet ihn an Feldern aus) */
.jco-termin a:focus-visible,
.jco-termin button:focus-visible,
.jco-termin summary:focus-visible,
.jco-termin [tabindex="-1"]:focus-visible {
    outline: 3px solid var(--jco-blau);
    outline-offset: 2px;
}

.jco-termin [tabindex="-1"]:focus:not(:focus-visible) {
    outline: none;
}

/* Laden: Inhalt dezent abgeblendet, Kreisel erst nach kurzer Zeit (kein Flackern bei schnellen Antworten) */
.jco-termin__inhalt {
    transition: opacity 0.15s ease;
}

.jco-termin[aria-busy="true"] .jco-termin__inhalt {
    opacity: 0.55;
}

.jco-termin__laden {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 5;
    align-items: flex-start;
    justify-content: center;
    padding-top: 140px;
    pointer-events: none;
}

.jco-termin.-laedt .jco-termin__laden {
    display: flex;
}

.jco-termin__kreisel {
    width: 44px;
    height: 44px;
    border: 3px solid #d3d8e2;
    border-top-color: var(--jco-blau);
    border-radius: 50%;
    animation: jco-termin-drehen 0.8s linear infinite;
}

@keyframes jco-termin-drehen {
    to {
        transform: rotate(360deg);
    }
}

/* ======================================================================================================================
   Schrittanzeige wie Krefeld: graue Leiste, Zahl im Kreis + Text, aktueller Schritt blau, erledigte grün mit Haken
   ==================================================================================================================== */

.jco-termin-schritte {
    margin: 0 0 36px;
    padding: 4px;
    background: var(--jco-flaeche);
    border-radius: var(--jco-radius);
}

.jco-termin-schritte__liste {
    display: flex;
    gap: 4px;
}

.jco-termin-schritte__schritt {
    flex: 1 1 0;
    min-width: 0;
}

.jco-termin-schritte__schritt.-aktuell {
    flex-grow: 1.5;
}

.jco-termin .jco-termin-schritte__inhalt {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 14px;
    border-radius: var(--jco-radius);
    color: var(--jco-text-grau);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.jco-termin-schritte__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jco-termin-schritte__nr {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #6b6b6b;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.jco-termin-schritte__schritt.-aktuell .jco-termin-schritte__inhalt {
    background: var(--jco-blau);
    color: #fff;
    font-weight: 500;
}

.jco-termin-schritte__schritt.-aktuell .jco-termin-schritte__nr {
    background: #fff;
    color: var(--jco-blau);
}

.jco-termin-schritte__schritt.-erledigt .jco-termin-schritte__inhalt {
    background: #fff;
    color: var(--jco-gruen);
}

.jco-termin a.jco-termin-schritte__inhalt:hover {
    background: var(--jco-gruen-hell);
    color: var(--jco-gruen);
}

.jco-termin-schritte__schritt.-erledigt .jco-termin-schritte__nr {
    background: var(--jco-gruen);
}

/* Haken als CSS-Form */
.jco-termin-schritte__schritt.-erledigt .jco-termin-schritte__nr::before {
    content: "";
    width: 7px;
    height: 12px;
    margin-top: -3px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Zeile „Schritt 2 von 4 · Termin wählen“ nur mobil (Anzeige; Screenreader lesen die Liste) */
.jco-termin .jco-termin-schritte__kurz {
    display: none;
}

/* Mobil (Befund N2 Runde 4): nichts abgeschnitten – Zeile „Schritt n von 4 · Name“ und ein Balken aus vier Abschnitten
   (erledigt grün, aktuell blau, offen grau). Die Liste bleibt im Dokument (Screenreader, Links der erledigten Schritte):
   ihre Texte sind nur unsichtbar, jeder Schritt ist ein Abschnitt des Balkens; erledigte bleiben Links mit einer 44 px
   hohen Tippfläche (::after über dem Balken, ohne die Höhe der Anzeige zu vergrößern). */
@media (max-width: 767px) {
    .jco-termin-schritte {
        margin-bottom: 24px;
        padding: 12px 14px 14px;
    }

    .jco-termin .jco-termin-schritte__kurz {
        display: block;
        margin: 0 0 10px;
        color: var(--jco-text-grau);
        font-size: 15px;
        line-height: 1.35;
    }

    .jco-termin-schritte__kurz strong {
        color: var(--jco-text-dunkel);
        font-weight: 500;
    }

    .jco-termin-schritte__trenner {
        margin: 0 2px;
    }

    .jco-termin-schritte__liste {
        gap: 6px;
    }

    .jco-termin-schritte__schritt,
    .jco-termin-schritte__schritt.-aktuell {
        flex: 1 1 0;
    }

    .jco-termin .jco-termin-schritte__inhalt,
    .jco-termin-schritte__schritt.-aktuell .jco-termin-schritte__inhalt,
    .jco-termin-schritte__schritt.-erledigt .jco-termin-schritte__inhalt,
    .jco-termin a.jco-termin-schritte__inhalt:hover {
        position: relative;
        display: block;
        height: 6px;
        padding: 0;
        border-radius: 3px;
        background: #d3d8e0;
    }

    .jco-termin-schritte__schritt.-aktuell .jco-termin-schritte__inhalt {
        background: var(--jco-blau);
    }

    .jco-termin-schritte__schritt.-erledigt .jco-termin-schritte__inhalt,
    .jco-termin a.jco-termin-schritte__inhalt:hover {
        background: var(--jco-gruen);
    }

    .jco-termin a.jco-termin-schritte__inhalt::after {
        content: "";
        position: absolute;
        top: -19px;
        right: 0;
        bottom: -19px;
        left: 0;
    }

    .jco-termin a.jco-termin-schritte__inhalt:focus-visible {
        outline-offset: 4px;
    }

    .jco-termin-schritte__nr,
    .jco-termin-schritte__text {
        position: absolute !important;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* ======================================================================================================================
   Überschrift, Unterzeile, Einleitung, Texte
   ==================================================================================================================== */

.jco-termin-kopf {
    margin: 0 0 28px;
}

.jco-termin-kopf.-unsichtbar {
    margin: 0;
}

.jco-termin .jco-termin-titel {
    margin: 0 0 6px;
    padding: 0;
    color: var(--jco-text-dunkel);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.jco-termin .jco-termin-unterzeile {
    margin: 0;
    color: var(--jco-text-grau);
    font-size: 16px;
}

.jco-termin-unterzeile strong {
    color: var(--jco-text-dunkel);
    font-weight: 500;
}

.jco-termin .jco-termin-einleitung {
    max-width: 760px;
    margin: 0 0 24px;
}

/* Telefonnummern und Links am Satzende nicht mitten im Wort umbrechen („0 208 - 6 21 | 34 567“, Runde 4) */
.jco-termin a[href^="tel:"],
.jco-termin .jco-termin-einleitung a {
    white-space: nowrap;
}

.jco-termin-einleitung-platz:empty {
    display: none;
}

.jco-termin a.jco-termin-textlink {
    color: var(--jco-blau);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.jco-termin a.jco-termin-textlink:hover {
    color: var(--jco-blau-dunkel);
}

.jco-termin .jco-termin-unterzeile .jco-termin-textlink {
    margin-left: 6px;
    font-size: 15px;
}

.jco-termin-pflicht {
    margin-left: 2px;
    color: var(--jco-blau);
}

/* Tippziele mobil ≥ 44 × 44 px (Befund F9): alleinstehende Textlinks („ändern“, „bearbeiten“, Alternativlink), Links der
   Fehlerübersicht und des Kontakts. Links mitten im Satz (Einwilligung, Hinweise) bleiben Teil der Zeile. */
@media (max-width: 767px) {
    /* Links im Fließtext („ändern“ hinter dem Anliegen, Kontakt): die Tippfläche wächst per Innenabstand über die Zeile
       hinaus, ohne die Zeilenhöhe zu ändern (vorher inline-flex: ungleiche Zeilenabstände in der Unterzeile, Runde 4) */
    .jco-termin .jco-termin-unterzeile a.jco-termin-textlink,
    .jco-termin .jco-termin-fakten dd a.jco-termin-textlink {
        display: inline;
        padding: 12px 2px;
    }

    /* eigene Zeilen (Kontakt: je Weg eine Zeile) bzw. alleinstehende Links: 44 px hoch */
    .jco-termin .jco-termin-kontakt__text a,
    .jco-termin .jco-termin-abschnitt__kopf a.jco-termin-textlink,
    .jco-termin .jco-termin-kachel__alternativ a.jco-termin-textlink {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        vertical-align: middle;
    }

    /* gleichmäßige Abstände: jede Zeile der Übersicht ist ein eigener Block mit Innenabstand (≥ 44 px hoch) */
    .jco-termin .jco-termin-meldung__liste a {
        display: block;
        min-height: 44px;
        padding: 10px 0;
    }

    .jco-termin .jco-termin-meldung__liste li {
        margin: 0;
    }
}

/* aufklappbare Einleitung „So funktioniert die Online-Terminierung“ */
.jco-termin-info {
    max-width: 760px;
    margin: -12px 0 28px;
}

.jco-termin .jco-termin-info__knopf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--jco-blau);
    font-size: 15px;
    cursor: pointer;
    list-style: none;
}

.jco-termin-info__knopf::-webkit-details-marker {
    display: none;
}

.jco-termin-info__knopf::before {
    content: "";
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin: 0 4px 0 2px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(-45deg);
    transition: transform 0.15s ease;
}

.jco-termin-info[open] .jco-termin-info__knopf::before {
    transform: rotate(45deg);
}

.jco-termin-info__text {
    margin-top: 4px;
    padding: 16px 20px;
    background: var(--jco-flaeche);
    border-radius: var(--jco-radius);
    font-size: 15px;
}

.jco-termin-info__text > :last-child,
.jco-termin-info__text .icon-boxes-item-text > :last-child {
    margin-bottom: 0;
}

/* ======================================================================================================================
   Felder wie Krefeld: Beschriftung über dem Feld, 48 px hoch, 1 px Rahmen, Fokus blau, Fehler direkt am Feld
   ==================================================================================================================== */

.jco-termin .jco-termin-feld {
    margin: 0 0 22px;
}

.jco-termin .jco-termin-feld__label {
    display: block;
    margin: 0 0 7px;
    padding: 0;
    color: var(--jco-text-dunkel);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-transform: none;
}

.jco-termin .jco-termin-eingabe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 50px;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid var(--jco-feld-rahmen);
    border-radius: var(--jco-radius);
    background: #fff;
    box-shadow: none;
    color: var(--jco-text-dunkel);
    font-family: Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    appearance: none;
}

.jco-termin select.jco-termin-eingabe {
    padding-right: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%233c57a7' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px 9px;
    cursor: pointer;
    text-overflow: ellipsis;
}

.jco-termin textarea.jco-termin-eingabe {
    min-height: 120px;
    resize: vertical;
}

.jco-termin .jco-termin-eingabe::placeholder {
    color: #767676;
    opacity: 1;
}

.jco-termin .jco-termin-eingabe:hover {
    border-color: #8d96a5;
}

.jco-termin .jco-termin-eingabe:focus {
    border-color: var(--jco-blau);
    outline: none;
    box-shadow: var(--jco-fokus);
}

.jco-termin .jco-termin-feld.-fehler .jco-termin-eingabe {
    border-color: var(--jco-rot);
    background-color: #fffafa;
}

.jco-termin .jco-termin-feld__hilfe {
    margin: 7px 0 0;
    color: var(--jco-text-grau);
    font-size: 14px;
    line-height: 1.45;
}

.jco-termin .jco-termin-feld__hilfe.-pflicht {
    margin-top: 4px;
}

.jco-termin .jco-termin-feld__hilfe.-mitte {
    max-width: 640px;
    margin: 14px auto 0;
    text-align: center;
}

.jco-termin .jco-termin-feld__fehler {
    display: flex;
    gap: 8px;
    margin: 8px 0 0;
    color: var(--jco-rot);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.jco-termin-feld__fehler::before {
    content: "!";
    display: inline-flex;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--jco-rot);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

/* Datenformular: Karte, zweispaltig ab 768 px */
.jco-termin-karte {
    margin: 0 0 24px;
    padding: 28px 28px 20px;
    border: 1px solid var(--jco-rahmen);
    border-radius: var(--jco-radius);
    background: #fff;
}

.jco-termin .jco-termin-karte__text {
    max-width: 760px;
    margin: 0 0 22px;
}

/* Überschrift einer Karte (Verweis-Formular) in normaler Schreibweise wie die Kacheln (Befund N1) */
.jco-termin .jco-termin-karte__titel {
    margin: 0 0 18px;
    padding: 0;
    color: var(--jco-text-dunkel);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.35;
    text-transform: none;
}

.jco-termin-felder {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
}

.jco-termin-felder .jco-termin-feld.-voll {
    grid-column: 1 / -1;
}

@media (max-width: 767px) {
    .jco-termin-felder {
        grid-template-columns: minmax(0, 1fr);
    }

    .jco-termin-karte {
        padding: 0;
        border: 0;
    }

}

/* Auswahlknöpfe (Anrede, persönlich/telefonisch): echte Radio-Knöpfe, als Segmente gestaltet */
.jco-termin-segmente {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.jco-termin .jco-termin-segment {
    position: relative;
    display: inline-flex;
    margin: 0;
    cursor: pointer;
}

.jco-termin .jco-termin-segment input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.jco-termin .jco-termin-segment span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    min-height: 48px;
    padding: 0 20px 0 16px;
    border: 1px solid var(--jco-feld-rahmen);
    border-radius: var(--jco-radius);
    background: #fff;
    color: var(--jco-text-dunkel);
    font-size: 16px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

/* Kreis wie ein Radio-Knopf */
.jco-termin .jco-termin-segment span::before {
    content: "";
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border: 2px solid #8d96a5;
    border-radius: 50%;
    background: #fff;
}

.jco-termin .jco-termin-segment:hover span {
    border-color: var(--jco-blau);
}

.jco-termin .jco-termin-segment input:checked + span {
    border-color: var(--jco-blau);
    background: var(--jco-blau-hell);
    box-shadow: inset 0 0 0 1px var(--jco-blau);
}

.jco-termin .jco-termin-segment input:checked + span::before {
    border-color: var(--jco-blau);
    background: radial-gradient(circle, var(--jco-blau) 0 5px, #fff 6px);
}

.jco-termin .jco-termin-segment input:focus-visible + span {
    outline: 3px solid var(--jco-blau);
    outline-offset: 2px;
}

.jco-termin .jco-termin-feld.-fehler .jco-termin-segment span {
    border-color: var(--jco-rot);
}

/* mobil: die Segmente teilen sich die Zeile, nie breiter als die Felder (nach den Grundregeln – Befund F6) */
@media (max-width: 767px) {
    .jco-termin .jco-termin-segmente {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .jco-termin .jco-termin-segment {
        flex: 1 1 0;
        min-width: 0;
    }

    .jco-termin .jco-termin-segment span {
        width: 100%;
        min-width: 0;
        padding: 0 10px;
        gap: 8px;
    }
}

/* Honeypot: für Menschen unsichtbar, für Bots ein normales Feld */
.jco-termin-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Spam-Schutz: eine ruhige Statuszeile mit Schloss */
.jco-termin-spamschutz {
    margin: 0 0 8px;
}

.jco-termin .jco-termin-spamschutz__status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--jco-text-grau);
    font-size: 13px;
}

.jco-termin-spamschutz__status::before {
    content: "";
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Crect x='2' y='6' width='10' height='7' rx='1.5' fill='%23545454'/%3E%3Cpath d='M4.5 6V4.5a2.5 2.5 0 0 1 5 0V6' fill='none' stroke='%23545454' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat center / 14px 14px;
}

.jco-termin-spamschutz[data-pow-state="solved"] .jco-termin-spamschutz__status {
    color: var(--jco-gruen);
}

/* ohne JavaScript: Hinweis als Warnbox über die volle Breite, über dem Formular (Befunde F3/F7) */
.jco-termin .jco-termin-spamschutz__ohne-js {
    margin: 0 0 24px;
}

/* ======================================================================================================================
   Schaltflächen wie Krefeld: Hauptschaltfläche groß und farbig (Blau der Website), zweite umrandet, „zurück“ als Link
   ==================================================================================================================== */

.jco-termin-aktionen {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
    margin: 28px 0 0;
}

.jco-termin-aktionen.-mitte {
    justify-content: center;
    gap: 12px;
}

.jco-termin-aktionen.-oben {
    margin: 0 0 24px;
}

.jco-termin-aktionen.-fuss {
    margin-top: 32px;
}

.jco-termin .jco-termin-knopf,
.jco-termin a.jco-termin-knopf,
.jco-termin button.jco-termin-knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    margin: 0;
    padding: 0 30px;
    border: 1px solid var(--jco-blau);
    border-radius: var(--jco-radius);
    background: var(--jco-blau);
    background-image: none;
    box-shadow: none;
    color: #fff;
    font-family: Roboto, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.jco-termin .jco-termin-knopf:hover,
.jco-termin .jco-termin-knopf:focus-visible {
    border-color: var(--jco-blau-dunkel);
    background: var(--jco-blau-dunkel);
    color: #fff;
}

.jco-termin .jco-termin-knopf.-zweit {
    background: #fff;
    color: var(--jco-blau);
}

.jco-termin .jco-termin-knopf.-zweit:hover,
.jco-termin .jco-termin-knopf.-zweit:focus-visible {
    background: var(--jco-blau-hell);
    color: var(--jco-blau-dunkel);
}

.jco-termin .jco-termin-knopf.-gefahr {
    border-color: var(--jco-rot);
    background: var(--jco-rot);
}

.jco-termin .jco-termin-knopf.-gefahr:hover,
.jco-termin .jco-termin-knopf.-gefahr:focus-visible {
    border-color: #8c1d18;
    background: #8c1d18;
}

.jco-termin .jco-termin-knopf.-klein {
    min-height: 44px;
    padding: 0 20px;
    font-size: 14px;
}

.jco-termin .jco-termin-knopf[disabled],
.jco-termin .jco-termin-knopf[aria-disabled="true"] {
    border-color: #a9b3cc;
    background: #a9b3cc;
    color: #fff;
    cursor: not-allowed;
}

/* Symbole der Knöpfe auf der Erfolgs- und QR-Code-Seite: nur Lage und Größe hier – keine background-Kurzschreibweise, sie
   setzte das Bild der Regeln darunter zurück (Befund F3) */
.jco-termin .jco-termin-knopf.-zweit.-kalender::before,
.jco-termin .jco-termin-knopf.-zweit.-stornieren::before,
.jco-termin .jco-termin-knopf.-zweit.-qr::before {
    content: "";
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
}

.jco-termin .jco-termin-knopf.-kalender::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Crect x='2' y='3.5' width='14' height='12.5' rx='1.5' fill='none' stroke='%233c57a7' stroke-width='1.6'/%3E%3Cpath d='M2 7.5h14M6 2v3M12 2v3' stroke='%233c57a7' stroke-width='1.6'/%3E%3Cpath d='M9 9.5v4M7 11.5h4' stroke='%233c57a7' stroke-width='1.6'/%3E%3C/svg%3E");
}

.jco-termin .jco-termin-knopf.-stornieren::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='7' fill='none' stroke='%233c57a7' stroke-width='1.6'/%3E%3Cpath d='M6.3 6.3l5.4 5.4M11.7 6.3l-5.4 5.4' stroke='%233c57a7' stroke-width='1.6'/%3E%3C/svg%3E");
}

.jco-termin .jco-termin-knopf.-qr::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M2 2h5v5H2zM11 2h5v5h-5zM2 11h5v5H2z' fill='none' stroke='%233c57a7' stroke-width='1.6'/%3E%3Cpath d='M11 11h2v2h-2zM14 14h2v2h-2zM14 11h2M11 15h2' stroke='%233c57a7' stroke-width='1.6'/%3E%3C/svg%3E");
}

/* „Einen Schritt zurück“ und „Eingaben verwerfen und neu beginnen“ (Befund F5): dieselbe ruhige Linkzeile – 15 px, grau,
   Unterstrich mit 3 px Abstand, Symbol in einem 14 px breiten Feld (die Texte stehen bündig untereinander) */
.jco-termin a.jco-termin-zurueck,
.jco-termin button.jco-termin-textknopf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--jco-text-grau);
    font-family: Roboto, sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.4;
    text-align: left;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-transform: none;
    text-underline-offset: 3px;
    text-shadow: none;
    cursor: pointer;
}

.jco-termin a.jco-termin-zurueck::before {
    content: "";
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    margin: 0 3px 0 4px;
    border: solid currentColor;
    border-width: 0 0 2px 2px;
    transform: rotate(45deg);
}

/* Pfeil im Kreis (neu beginnen) als Maske in der Textfarbe */
.jco-termin button.jco-termin-textknopf::before {
    content: "";
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M11.5 7a4.5 4.5 0 1 1-1.32-3.18' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M10.9 1.2v3h-3' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M11.5 7a4.5 4.5 0 1 1-1.32-3.18' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M10.9 1.2v3h-3' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

.jco-termin a.jco-termin-zurueck:hover,
.jco-termin button.jco-termin-textknopf:hover,
.jco-termin button.jco-termin-textknopf:focus-visible {
    background: none;
    color: var(--jco-blau);
}

/* Formulare, die in einer Zeile bzw. Spalte neben anderem stehen, ohne die Außenabstände des Themes (.main-content form:
   0.75em oben, 1.5em unten): „Termin stornieren“ neben dem Kalender-Link (sonst 6 px höher), die Uhrzeiten-Spalte neben
   den Tagen (sonst 12 px tiefer) */
.jco-termin form.jco-termin-spalte {
    margin: 0;
}

.jco-termin form.jco-termin-inline {
    display: inline-flex;
    margin: 0;
}

/* Fußzeile jedes Schritts (Befund F5, _fuss.html.twig): „Einen Schritt zurück“ und „Eingaben verwerfen und neu beginnen“
   als eine ruhige Linkzeile unter einer feinen Linie – am Desktop nebeneinander, mobil zentriert untereinander */
.jco-termin-fuss {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 40px;
    margin: 36px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--jco-rahmen);
}

.jco-termin form.jco-termin-neu {
    display: flex;
    margin: 0;
    padding: 0;
    border: 0;
}

@media (max-width: 767px) {
    .jco-termin-aktionen {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .jco-termin .jco-termin-knopf,
    .jco-termin-inline {
        width: 100%;
    }

    .jco-termin a.jco-termin-zurueck {
        justify-content: center;
    }

    .jco-termin-fuss {
        flex-direction: column;
        align-items: center;
        margin-top: 28px;
        padding-top: 6px;
    }
}

/* ======================================================================================================================
   Schritt 1: Anliegen-Auswahl (großes Auswahlfeld je Ebene wie Krefeld)
   ==================================================================================================================== */

.jco-termin-kaskade .jco-termin-feld {
    max-width: 720px;
    margin-bottom: 18px;
}

/* Kunden- bzw. BG-Nummer so breit wie die Auswahlfelder des Schritts 1 (Befund F6) */
.jco-termin .jco-termin-feld.-nummer {
    max-width: 720px;
}

.jco-termin-kaskade .jco-termin-feld.-neu {
    animation: jco-termin-einblenden 0.2s ease-out;
}

@keyframes jco-termin-einblenden {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Hinweis unter der Auswahl im Stil der Meldungen (Symbol „i“ links, wie .jco-termin-meldung.-hinweis) */
.jco-termin .jco-termin-kaskade__hinweis {
    display: block;
    max-width: 720px;
    margin: 4px 0 0;
    padding: 16px 20px 16px 52px;
    border-left: 4px solid var(--jco-blau);
    border-radius: 0 var(--jco-radius) var(--jco-radius) 0;
    background: var(--jco-blau-hell) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%233c57a7'/%3E%3Cpath d='M10 9v5' stroke='%23fff' stroke-width='2'/%3E%3Ccircle cx='10' cy='6' r='1.2' fill='%23fff'/%3E%3C/svg%3E") no-repeat 18px 18px / 20px 20px;
    color: var(--jco-text-dunkel);
    font-size: 15px;
}

.jco-termin-kaskade .jco-termin-aktionen {
    margin-top: 24px;
}

/* ======================================================================================================================
   Meldungen (Wortlaut der DIWA): Rand links, helle Fläche
   ==================================================================================================================== */

/* volle Inhaltsbreite wie Karten, Leisten und Formulare darunter (rechte Kanten bündig, Befund N1); in Schritt 1 und bei
   der Nummer so breit wie die Felder (-schmal) */
.jco-termin-meldung {
    margin: 0 0 24px;
    padding: 16px 20px 16px 52px;
    border-left: 4px solid var(--jco-blau);
    border-radius: 0 var(--jco-radius) var(--jco-radius) 0;
    background: var(--jco-blau-hell) no-repeat 18px 18px / 20px 20px;
    color: var(--jco-text-dunkel);
    font-size: 15px;
}

.jco-termin .jco-termin-meldung__titel {
    margin: 0 0 4px;
    font-weight: 500;
}

.jco-termin .jco-termin-meldung__text {
    margin: 0 0 6px;
}

.jco-termin-meldung > :last-child {
    margin-bottom: 0;
}

.jco-termin-meldung.-schmal {
    max-width: 720px;
}

.jco-termin-meldung__liste li {
    margin: 4px 0 0;
}

.jco-termin-meldung a {
    color: inherit;
    text-decoration: underline;
}

.jco-termin-meldung.-hinweis {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%233c57a7'/%3E%3Cpath d='M10 9v5' stroke='%23fff' stroke-width='2'/%3E%3Ccircle cx='10' cy='6' r='1.2' fill='%23fff'/%3E%3C/svg%3E");
}

.jco-termin-meldung.-warnung {
    border-left-color: #c77c02;
    background-color: var(--jco-gelb-hell);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.5l9 16.5H1z' fill='%23c77c02'/%3E%3Cpath d='M10 7.5v5' stroke='%23fff' stroke-width='2'/%3E%3Ccircle cx='10' cy='15' r='1.1' fill='%23fff'/%3E%3C/svg%3E");
}

.jco-termin-meldung.-fehler {
    border-left-color: var(--jco-rot);
    background-color: var(--jco-rot-hell);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%23b3261e'/%3E%3Cpath d='M10 5v6.5' stroke='%23fff' stroke-width='2'/%3E%3Ccircle cx='10' cy='14.5' r='1.2' fill='%23fff'/%3E%3C/svg%3E");
}

.jco-termin-meldung.-erfolg {
    border-left-color: var(--jco-gruen);
    background-color: var(--jco-gruen-hell);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%232d7a3b'/%3E%3Cpath d='M5.5 10.2l3 3 6-6.2' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
}

/* ======================================================================================================================
   Fakten: kompakte Leiste (Terminwahl) bzw. Zeilen (Kontrolle, QR-Code, Storno)
   ==================================================================================================================== */

.jco-termin-fakten {
    margin: 0;
}

.jco-termin-fakten__zeile {
    display: grid;
    grid-template-columns: minmax(130px, 200px) minmax(0, 1fr);
    gap: 4px 24px;
    padding: 9px 0;
    border-bottom: 1px solid var(--jco-rahmen);
}

.jco-termin-fakten__zeile:last-child {
    border-bottom: 0;
}

.jco-termin-fakten dt {
    margin: 0;
    color: var(--jco-text-grau);
    font-size: 15px;
    font-weight: 400;
}

.jco-termin-fakten dd {
    margin: 0;
    color: var(--jco-text-dunkel);
    font-size: 16px;
    font-weight: 500;
    white-space: pre-line;
}

.jco-termin-fakten dd .jco-termin-textlink {
    margin-left: 8px;
    font-size: 14px;
    font-weight: 400;
}

.jco-termin-fakten.-leiste {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px 28px;
    margin: 0 0 28px;
    padding: 16px 22px;
    border-radius: var(--jco-radius);
    background: var(--jco-flaeche);
}

.jco-termin-fakten.-leiste .jco-termin-fakten__zeile {
    display: block;
    padding: 0;
    border: 0;
}

.jco-termin-fakten.-leiste dt {
    margin: 0 0 2px;
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.jco-termin-fakten.-leiste dd {
    font-size: 15px;
}

@media (max-width: 767px) {
    .jco-termin-fakten__zeile {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .jco-termin-fakten.-leiste {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 14px 16px;
    }
}

/* ======================================================================================================================
   Schritt 2: Terminwahl wie Krefeld – Tage links als Liste, Uhrzeiten rechts als Kacheln
   ==================================================================================================================== */

.jco-termin-terminwahl {
    display: grid;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

@media (max-width: 767px) {
    .jco-termin-terminwahl {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
}

.jco-termin .jco-termin-spalte__titel {
    margin: 0 0 14px;
    padding: 0;
    color: var(--jco-text-dunkel);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
    text-transform: none;
}

.jco-termin-spalte__zusatz {
    display: block;
    margin-top: 2px;
    color: var(--jco-text-grau);
    font-size: 15px;
    font-weight: 400;
}

.jco-termin-monat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 12px;
    padding: 4px;
    border-radius: var(--jco-radius);
    background: var(--jco-flaeche);
}

.jco-termin .jco-termin-monat__name {
    margin: 0;
    color: var(--jco-text-dunkel);
    font-size: 15px;
    font-weight: 500;
}

.jco-termin .jco-termin-monat__blaettern {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--jco-radius);
    background: #fff;
    text-decoration: none;
}

.jco-termin .jco-termin-monat__blaettern::before {
    content: "";
    width: 9px;
    height: 9px;
    border: solid var(--jco-blau);
    border-width: 0 0 2px 2px;
}

.jco-termin .jco-termin-monat__blaettern.-vorher::before {
    margin-left: 4px;
    transform: rotate(45deg);
}

.jco-termin .jco-termin-monat__blaettern.-nachher::before {
    margin-right: 4px;
    transform: rotate(-135deg);
}

.jco-termin .jco-termin-monat__blaettern.-aus {
    background: transparent;
}

.jco-termin .jco-termin-monat__blaettern.-aus::before {
    border-color: #c4c9d2;
}

.jco-termin a.jco-termin-monat__blaettern:hover {
    background: var(--jco-blau-hell);
}

.jco-termin-tage li + li {
    margin-top: 6px;
}

.jco-termin a.jco-termin-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
    padding: 10px 16px;
    border: 1px solid var(--jco-rahmen);
    border-radius: var(--jco-radius);
    background: #fff;
    color: var(--jco-text-dunkel);
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.jco-termin-tag__datum {
    font-size: 16px;
    font-weight: 500;
}

.jco-termin-tag__frei {
    color: var(--jco-gruen);
    font-size: 13px;
    white-space: nowrap;
}

.jco-termin a.jco-termin-tag:hover {
    border-color: var(--jco-blau);
    background: var(--jco-blau-hell);
    color: var(--jco-text-dunkel);
}

.jco-termin a.jco-termin-tag.-gewaehlt {
    border-color: var(--jco-blau);
    background: var(--jco-blau);
    color: #fff;
}

.jco-termin a.jco-termin-tag.-gewaehlt .jco-termin-tag__frei {
    color: #fff;
}

.jco-termin .jco-termin-leer {
    margin: 0;
    padding: 18px 20px;
    border: 1px dashed var(--jco-feld-rahmen);
    border-radius: var(--jco-radius);
    color: var(--jco-text-grau);
    font-size: 15px;
}

.jco-termin-spalte.-uhrzeiten .jco-termin-beratung {
    margin: 0 0 20px;
}

.jco-termin-uhrzeiten {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 10px;
}

.jco-termin .jco-termin-uhrzeit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 60px;
    margin: 0;
    padding: 10px 8px;
    border: 2px solid var(--jco-rahmen);
    border-radius: var(--jco-radius);
    background: #fff;
    background-image: none;
    box-shadow: none;
    color: var(--jco-text-dunkel);
    font-family: Roboto, sans-serif;
    font-size: 18px;
    font-weight: 500;
    text-shadow: none;
    text-transform: none;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.jco-termin .jco-termin-uhrzeit:hover,
.jco-termin .jco-termin-uhrzeit:focus-visible {
    border-color: var(--jco-blau);
    background: var(--jco-blau);
    color: #fff;
    transform: translateY(-1px);
}

.jco-termin .jco-termin-uhrzeit.-gewaehlt {
    border-color: var(--jco-blau);
    background: var(--jco-blau-hell);
}

.jco-termin-spalte.-uhrzeiten .jco-termin-feld__hilfe {
    margin-top: 12px;
}

@media (max-width: 767px) {
    .jco-termin-uhrzeiten {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .jco-termin .jco-termin-uhrzeit {
        min-height: 54px;
        font-size: 17px;
    }
}

@media (max-width: 359px) {
    .jco-termin-uhrzeiten {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ======================================================================================================================
   Schritt 4: Zusammenfassung wie Krefeld (graue Fläche) und Einwilligung
   ==================================================================================================================== */

.jco-termin-zusammenfassung {
    margin: 0 0 24px;
    padding: 6px 28px;
    border-radius: var(--jco-radius);
    background: var(--jco-flaeche);
}

.jco-termin-zusammenfassung.-einzeln {
    max-width: 640px;
    padding: 10px 24px;
}

.jco-termin-zusammenfassung .jco-termin-fakten__zeile {
    border-bottom-color: #e3e6eb;
}

.jco-termin-abschnitt {
    padding: 18px 0;
    border-bottom: 1px solid #d9dde4;
}

.jco-termin-abschnitt:last-child {
    border-bottom: 0;
}

.jco-termin-abschnitt__kopf {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 6px;
}

.jco-termin .jco-termin-abschnitt__titel {
    margin: 0;
    padding: 0;
    color: var(--jco-text-dunkel);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.jco-termin-abschnitt__kopf .jco-termin-textlink {
    font-size: 14px;
}

.jco-termin-abschnitt.-termin .jco-termin-fakten dd {
    font-size: 17px;
}

/* Einwilligung (Befund F5): Checkbox im Stil der Felder (24 px, Rahmen, blauer Haken) statt der Browser-Checkbox; die
   ganze Fläche ist die Beschriftung (Klick- bzw. Tippziel ≥ 44 px); Fehler am Feld mit rotem Rahmen. Die Größe mit
   !important, weil das Theme „input[type=checkbox] {height: auto !important}“ setzt; die Beschriftung mit label im
   Selektor, weil „.main-content input[type=checkbox] + label {display: inline}“ des Themes sonst gewinnt. */
.jco-termin-einwilligung {
    position: relative;
    border: 1px solid var(--jco-rahmen);
    border-radius: var(--jco-radius);
    background: #fff;
    transition: border-color 0.15s ease;
}

.jco-termin-einwilligung:hover {
    border-color: var(--jco-blau);
}

.jco-termin-einwilligung.-fehler {
    border-color: var(--jco-rot);
    box-shadow: inset 0 0 0 1px var(--jco-rot);
}

.jco-termin .jco-termin-einwilligung input.jco-termin-einwilligung__feld {
    position: absolute;
    top: 19px;
    left: 20px;
    width: 24px !important;
    height: 24px !important;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 2px solid #8d96a5;
    border-radius: 4px;
    background: #fff no-repeat center / 16px 16px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.jco-termin .jco-termin-einwilligung input.jco-termin-einwilligung__feld:checked {
    border-color: var(--jco-blau);
    background-color: var(--jco-blau);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.jco-termin .jco-termin-einwilligung input.jco-termin-einwilligung__feld:focus-visible {
    outline: 3px solid var(--jco-blau);
    outline-offset: 2px;
}

.jco-termin .jco-termin-einwilligung.-fehler input.jco-termin-einwilligung__feld:not(:checked) {
    border-color: var(--jco-rot);
}

.jco-termin .jco-termin-einwilligung label.jco-termin-einwilligung__text {
    display: block;
    min-height: 62px;
    margin: 0;
    padding: 18px 20px 18px 60px;
    color: var(--jco-text-dunkel);
    font-size: 15px;
    line-height: 1.6;
    cursor: pointer;
}

.jco-termin-einwilligung + .jco-termin-feld__fehler {
    margin-top: 10px;
}

@media (max-width: 767px) {
    .jco-termin .jco-termin-einwilligung input.jco-termin-einwilligung__feld {
        top: 17px;
        left: 16px;
    }

    .jco-termin .jco-termin-einwilligung label.jco-termin-einwilligung__text {
        padding: 16px 16px 16px 54px;
    }
}

@media (max-width: 767px) {
    .jco-termin-zusammenfassung {
        padding: 4px 16px;
    }
}

/* ======================================================================================================================
   Erfolg (Termin erstellt, storniert, Formular abgesendet) und Termin-Karte mit QR-Code
   ==================================================================================================================== */

.jco-termin-erfolg {
    max-width: 680px;
    margin: 8px auto 32px;
    text-align: center;
}

.jco-termin-erfolg__haken {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--jco-gruen);
}

.jco-termin-erfolg__haken::before {
    content: "";
    width: 18px;
    height: 34px;
    margin-top: -8px;
    border: solid #fff;
    border-width: 0 5px 5px 0;
    transform: rotate(45deg);
}

.jco-termin .jco-termin-erfolg .jco-termin-titel {
    margin-bottom: 10px;
}

.jco-termin .jco-termin-erfolg__text {
    margin: 0 auto;
    color: var(--jco-text);
}

.jco-termin-ticket {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    max-width: 780px;
    margin: 0 auto 8px;
    padding: 28px 32px;
    border: 1px solid var(--jco-rahmen);
    border-left: 5px solid var(--jco-blau);
    border-radius: var(--jco-radius);
    background: #fff;
    box-shadow: 0 2px 10px rgba(20, 30, 60, 0.06);
}

.jco-termin-ticket.-mit-code {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.jco-termin .jco-termin-ticket__titel {
    margin: 0 0 12px;
    color: var(--jco-text-grau);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.jco-termin .jco-termin-ticket__datum {
    margin: 0;
    color: var(--jco-text-dunkel);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.25;
}

.jco-termin .jco-termin-ticket__uhrzeit {
    margin: 2px 0 12px;
    color: var(--jco-blau);
    font-size: 30px;
    font-weight: 500;
    line-height: 1.2;
}

.jco-termin .jco-termin-ticket__ort {
    display: flex;
    gap: 8px;
    margin: 0;
    color: var(--jco-text-dunkel);
    font-size: 16px;
}

.jco-termin-ticket__ort::before {
    content: "";
    flex: 0 0 16px;
    width: 16px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='20' viewBox='0 0 16 20'%3E%3Cpath d='M8 19s6-6.2 6-11A6 6 0 0 0 2 8c0 4.8 6 11 6 11z' fill='none' stroke='%233c57a7' stroke-width='1.6'/%3E%3Ccircle cx='8' cy='8' r='2.2' fill='%233c57a7'/%3E%3C/svg%3E") no-repeat center / 16px 20px;
}

.jco-termin-ticket__ort.-telefon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='20' viewBox='0 0 16 20'%3E%3Cpath d='M4 3.5l2.2-.5 1.5 3.6-1.6 1.2a8 8 0 0 0 3.9 3.9l1.2-1.6 3.6 1.5-.5 2.2c-.2.8-1 1.3-1.8 1.2C7.4 14.3 3.7 10.6 2.8 5.5 2.7 4.5 3.2 3.7 4 3.5z' fill='none' stroke='%233c57a7' stroke-width='1.5'/%3E%3C/svg%3E");
}

.jco-termin-ticket__code {
    margin: 0;
    text-align: center;
}

.jco-termin .jco-termin-ticket__code img {
    display: block;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    padding: 8px;
    border: 1px solid var(--jco-rahmen);
    border-radius: var(--jco-radius);
    background: #fff;
    image-rendering: pixelated;
}

.jco-termin .jco-termin-ticket__code.-gross img {
    width: 260px;
    height: 260px;
}

.jco-termin-ticket__code figcaption {
    max-width: 220px;
    margin: 10px auto 0;
    color: var(--jco-text-grau);
    font-size: 13px;
    line-height: 1.4;
}

.jco-termin-ticket.-qr .jco-termin-fakten__zeile {
    grid-template-columns: minmax(80px, 110px) minmax(0, 1fr);
}

@media (max-width: 767px) {
    .jco-termin-ticket,
    .jco-termin-ticket.-mit-code {
        grid-template-columns: minmax(0, 1fr);
        padding: 20px 18px;
        text-align: left;
    }

    .jco-termin .jco-termin-ticket__datum {
        font-size: 21px;
    }

    .jco-termin .jco-termin-ticket__uhrzeit {
        font-size: 26px;
    }

    .jco-termin .jco-termin-ticket__code img,
    .jco-termin .jco-termin-ticket__code.-gross img {
        width: 220px;
        height: 220px;
    }
}

/* Hinweisband (Termin absagen, „Stattdessen einen Termin vereinbaren“) */
.jco-termin-hinweisband {
    max-width: 780px;
    margin: 28px auto 0;
    padding: 16px 20px;
    border-radius: var(--jco-radius);
    background: var(--jco-flaeche);
    color: var(--jco-text);
    font-size: 15px;
}

.jco-termin-hinweisband > :last-child,
.jco-termin-hinweisband p:last-child {
    margin-bottom: 0;
}

.jco-termin-hinweisband strong {
    color: var(--jco-text-dunkel);
    font-weight: 500;
}

.jco-termin-hinweisband.-aktion {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
    max-width: none;
    margin: 32px 0 0;
    padding: 22px 26px;
}

.jco-termin .jco-termin-hinweisband__titel {
    margin: 0 0 4px;
    color: var(--jco-text-dunkel);
    font-weight: 500;
}

/* Kontakt („So erreichen Sie uns“) */
.jco-termin-kontakt {
    margin: 32px 0 0;
    padding: 18px 22px;
    border-radius: var(--jco-radius);
    background: var(--jco-flaeche);
}

.jco-termin .jco-termin-kontakt__titel {
    margin: 0 0 4px;
    color: var(--jco-text-dunkel);
    font-weight: 500;
}

.jco-termin .jco-termin-kontakt__text {
    margin: 0;
}

/* ======================================================================================================================
   Verweis-Kacheln (kein Termin nötig) und Verweis-Formulare
   ==================================================================================================================== */

/* Ruhiges Kartenraster (Befund N1, Runde 4): Spalten nach Anzahl (1 schmal, 2 und 4 zweispaltig, sonst dreispaltig),
   unter 1100 px höchstens zwei, mobil eine Spalte; Karten einer Zeile gleich hoch (Grid), 24 px Innenabstand, Überschrift
   in normaler Schreibweise, Schaltfläche am Kartenfuß */
.jco-termin-kacheln {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0 0 8px;
}

.jco-termin-kacheln.-spalten-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jco-termin-kacheln.-spalten-1 {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
}

@media (max-width: 1099px) {
    .jco-termin-kacheln,
    .jco-termin-kacheln.-spalten-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jco-termin-kacheln.-spalten-1 {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .jco-termin-kacheln,
    .jco-termin-kacheln.-spalten-2 {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .jco-termin-kacheln.-spalten-1 {
        max-width: none;
    }
}

/* spezifischer als „.jco-termin ul li“ (padding 0) – sonst klebt der Inhalt am Rahmen (Befund F2) */
.jco-termin .jco-termin-kacheln > .jco-termin-kachel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--jco-rahmen);
    border-top: 3px solid var(--jco-blau);
    border-radius: var(--jco-radius);
    background: #fff;
    box-shadow: 0 1px 3px rgba(20, 30, 60, 0.06);
}

.jco-termin .jco-termin-kachel__titel {
    margin: 0 0 8px;
    padding: 0;
    color: var(--jco-text-dunkel);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: normal;
    line-height: 1.35;
    text-transform: none;
}

.jco-termin-kachel__text {
    font-size: 15px;
    line-height: 1.55;
}

.jco-termin-kachel__text > :last-child {
    margin-bottom: 0;
}

/* Fuß immer am unteren Kartenrand (margin-top: auto), mit festem Abstand zum Text */
.jco-termin-kachel__fuss {
    margin-top: auto;
    padding-top: 20px;
}

.jco-termin .jco-termin-kachel__alternativ {
    margin: 12px 0 0;
    font-size: 14px;
}

.jco-termin .jco-termin-kachel__fuss .jco-termin-feld__hilfe {
    margin: 0;
}

.jco-termin .jco-termin-kachel__fuss .jco-termin-knopf + .jco-termin-feld__hilfe {
    margin-top: 12px;
}


.jco-termin-karte.-formular {
    margin-top: 28px;
}

/* Rückfall-Knopf in die DIWA (JCO_TERMINIERUNG=link) */
.jco-termin-link {
    margin: 24px 0 0;
}

@media (prefers-reduced-motion: reduce) {
    .jco-termin *,
    .jco-termin *::before,
    .jco-termin *::after {
        transition: none !important;
        animation: none !important;
    }
}

@media print {
    .jco-termin-schritte,
    .jco-termin-neu,
    .jco-termin-aktionen {
        display: none;
    }
}
