/*
 * Produkt-Website der Hauptadresse (diwa-jobcenter.de): Start, Funktionen, Sicherheit und Datenschutz, Einführung,
 * Fragen, Kontakt, Anmeldung für Mitarbeitende – Vorlagen unter templates/start/. Auf der Hauptadresse tragen auch die
 * Seiten der Demo (Anfrage, Film, Zugangscode, Rechtstexte) Kopf und Fußzeile (Klasse .web-frame).
 *
 * Bausteine des Designsystems (tokens.css, .btn, .container). Alles hier beginnt mit „web-“ bzw. „hj-“ (Hero) und
 * gilt nur unter body.web bzw. .web-frame. Leitmotiv: das Nummernschild aus Wartezone und Logo – dunkelblaue,
 * abgerundete Quadrate tragen die Schritte echter Abläufe; das eine bewegte Bild ist der Hero (der Weg eines Besuchs).
 * Wenig Text, viel Weißraum, ruhige Farbführung: Weiß, helles Grau, Dunkelblau für Sicherheit, Rot nur am Schluss.
 *
 *   1 Rahmen (Kopf, Menü, Fußzeile)   3 Hero: der Weg in fünf Stationen       5 Seiten (Funktionen … Kontakt)
 *   2 Grundformen (Abschnitte, Typo)  4 Wiederkehrende Bausteine          5b Termin und Rückruf
 *                                                                          5c DIWA Verbund und Routing
 *                                                                          5d Fassung Verwaltung: für den Verbund
 *                                                                          6 Schmal, Bewegung, Druck
 * Beide Fassungen der Website (diwa-jobcenter.de, diwa-verwaltung.de) nutzen dieselben Stile; 5d brauchen nur die
 * Seiten der Fassung „Verwaltung“ (templates/start/verwaltung/).
 */

.web,
.web-frame {
    --web-ink: var(--c-heading);
    --web-text: var(--c-text-strong);
    --web-soft: var(--c-text);
    --web-navy: #24366b;              /* Logo-Blau, vertieft – Weiß darauf 11,6 : 1 */
    --web-navy-deep: #1a2850;
    --web-on-navy: #dfe5f2;           /* Fließtext auf Dunkelblau – 10,6 : 1 */
    --web-red: var(--brand-primary);
    --web-tint: #f4f6fa;
    --web-line: var(--c-line);
    --web-section: clamp(64px, 9vw, 128px);
    --web-gap: clamp(24px, 3.5vw, 48px);
    --web-radius: 16px;
    --web-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 16px 40px -18px rgba(20, 35, 80, 0.28);
}

.web {
    background: var(--c-white);
    color: var(--web-text);
    font-size: 17px;
    line-height: 1.6;
}

.web .skip-link {
    z-index: 60;
}

/* ==== 1 Rahmen ==================================================================================================== */

.web-header {
    position: relative;
    z-index: 40;
    background: var(--c-white);
    border-top: 4px solid var(--web-red);
    box-shadow: 0 1px 0 var(--web-line);
}

/* Dienstleiste zum Kennenlernen: 3D-Rundgang, Film und Broschüre */
.web-service {
    border-bottom: 1px solid var(--web-line);
    background: var(--web-tint);
    font-size: 14px;
}

.web-service__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-height: 40px;
}

.web-service__note {
    margin: 0;
    color: var(--c-muted);
}

/* „Rückruf anfragen“ in der Dienstleiste: deutlich als Link, mit Symbol */
.web-service__note a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    margin-left: 4px;
    color: var(--c-blue-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.web-service__note a:hover {
    color: var(--c-blue);
}

.web-service__note .icon {
    width: 16px;
    height: 16px;
    color: var(--c-blue);
}

.web-service__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0 var(--space-5);
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}

.web-service__links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    color: var(--web-text);
    font-weight: 500;
}

.web-service__links a:hover {
    color: var(--c-blue);
}

.web-service__links a[aria-current="page"] {
    color: var(--c-blue-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.web-service__links .icon {
    width: 16px;
    height: 16px;
    color: var(--c-blue);
}

.web-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    min-height: 76px;
}

.web-bar .brand__claim--platform {
    display: none;
}

.web-nav {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.web-nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin: 0;
    padding: 0;
    list-style: none;
}

.web-nav__list a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: var(--radius);
    color: var(--web-text);
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.web-nav__list a:hover {
    background: var(--c-blue-light);
    color: var(--c-blue-dark);
    text-decoration: none;
}

/* Aktiver Punkt: Unterstrich in DIWA-Blau und kräftigere Schrift (nicht nur Farbe) */
.web-nav__list a[aria-current="page"] {
    color: var(--c-blue-dark);
    font-weight: 700;
}

.web-nav__list a[aria-current="page"]::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 4px;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background: var(--c-blue);
}

/* „Termin vereinbaren“ im Kopf; „Rückruf anfragen“ und „DIWA ausprobieren“ als Tasten nur im aufgeklappten Menü */
.web-nav__actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: var(--space-2);
}

.web-nav__cta {
    flex: none;
}

.web-nav__more {
    display: none;
}

.web-menu-toggle {
    display: none;
}

/* Sechs Menüpunkte (mit „DIWA Verbund“): Die Marke behält ihre Größe; knapp über der Grenze zum Menü-Knopf rücken die
   Punkte etwas zusammen, damit alles in eine Zeile passt */
.web-bar .brand {
    flex: none;
}

@media (min-width: 1120px) and (max-width: 1199.98px) {
    .web-nav__list a {
        padding: 0 10px;
    }

    .web-nav__list a[aria-current="page"]::after {
        right: 10px;
        left: 10px;
    }
}

/* Fußzeile mit Seitenübersicht */
.web-footer {
    padding: clamp(48px, 6vw, 80px) 0 var(--space-5);
    background: var(--web-tint);
    border-top: 1px solid var(--web-line);
    color: var(--web-soft);
    font-size: 15px;
}

.web-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
    gap: var(--space-7);
    padding-bottom: var(--space-6);
}

.web-footer__brand img {
    display: block;
    width: 230px;
    height: auto;
    margin-bottom: var(--space-4);
}

.web-footer__brand p {
    max-width: 38ch;
    margin: 0 0 var(--space-3);
}

.web-footer__map {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
}

.web-footer__title {
    margin: 0 0 var(--space-3);
    color: var(--web-ink);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
}

.web-footer__map ul {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.web-footer__map a,
.web-footer__brand a {
    display: inline-block;
    padding: 4px 0;
    color: var(--web-text);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
    text-underline-offset: 3px;
}

.web-footer__map a:hover,
.web-footer__brand a:hover {
    color: var(--c-blue);
    text-decoration-color: currentColor;
}

.web-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--c-line-strong);
    font-size: 14px;
}

.web-footer__legal p {
    margin: 0;
}

.web-footer .legal-links a {
    display: inline-block;
    min-height: 24px;
    line-height: 24px;
    color: var(--web-text);
}

/* ==== 2 Grundformen ================================================================================================ */

.web-main:focus {
    outline: none;
}

.web-section {
    padding-block: var(--web-section);
}

.web-section--tint {
    background: var(--web-tint);
}

.web-section--navy {
    background: var(--web-navy);
    color: var(--web-on-navy);
}

.web-section--navy :is(h2, h3, strong) {
    color: var(--c-white);
}

.web-section--navy a:not(.btn) {
    color: var(--c-white);
    text-decoration: underline;
}

.web-section--navy :focus-visible {
    outline-color: var(--c-white);
}

.web-title {
    max-width: 22ch;
    margin: 0 0 var(--space-5);
    color: var(--web-ink);
    font-size: clamp(36px, 4.6vw, 58px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.028em;
}

.web-h2 {
    max-width: 24ch;
    margin: 0 0 var(--space-4);
    color: var(--web-ink);
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.022em;
}

.web-h3 {
    margin: 0 0 6px;
    color: var(--web-ink);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.005em;
}

.web-lead {
    max-width: 58ch;
    margin: 0;
    color: var(--web-text);
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.55;
    text-wrap: pretty;
}

.web-section--navy .web-lead {
    color: var(--web-on-navy);
}

.web-head {
    max-width: 760px;
    margin-bottom: clamp(36px, 4.5vw, 64px);
}

.web-head--center {
    margin-inline: auto;
    text-align: center;
}

.web-head--center .web-h2,
.web-head--center .web-lead {
    margin-inline: auto;
}

.web-note {
    color: var(--c-muted);
    font-size: 16px;
}

.web-section--navy .web-note {
    color: var(--web-on-navy);
}

.web-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}

/* Abstand nach oben – stärker als die Grundform des Bausteins (z. B. .web-grid, .web-steps mit margin: 0) */
:is(.web, .web-frame) .web-actions--space {
    margin-top: clamp(32px, 4vw, 56px);
}

.web .btn--lg {
    min-height: 52px;
    padding: 12px 24px;
    font-size: 16px;
}

.web .btn--lg .icon {
    width: 18px;
    height: 18px;
}

/* Helle Taste auf Dunkelblau bzw. Rot */
.web-btn-light {
    border-color: var(--c-white);
    background: var(--c-white);
    color: var(--web-navy);
    font-weight: 700;
}

.web-btn-light:hover {
    border-color: var(--c-white);
    background: #eef2fb;
    color: var(--web-navy-deep);
}

.web-btn-outline-light {
    border-color: rgba(255, 255, 255, 0.75);
    background: transparent;
    color: var(--c-white);
}

.web-btn-outline-light:hover {
    border-color: var(--c-white);
    background: rgba(255, 255, 255, 0.12);
    color: var(--c-white);
}

.web-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.web-link .icon {
    width: 18px;
    height: 18px;
}

/* Seitenkopf der Unterseiten */
.web-intro {
    padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px);
    background: var(--web-tint);
    border-bottom: 1px solid var(--web-line);
}

.web-intro .web-lead {
    max-width: 52ch;
}

/* ==== 3 Hero: Text links, Weg eines Besuchs rechts ================================================================ */

.web-hero {
    padding: clamp(32px, 3.5vw, 48px) 0 clamp(48px, 6vw, 88px);
    background: linear-gradient(180deg, var(--c-white) 0%, var(--c-white) 55%, var(--web-tint) 100%);
    border-bottom: 1px solid var(--web-line);
}

/* Zwei Spalten wie vor dem 31.10.2026: links Überschrift, Satz und Handlungen, rechts die Bildfolge; am Handy untereinander */
.web-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-6) clamp(32px, 4.5vw, 72px);
}

.web-hero .web-title {
    max-width: 13ch;
    margin-bottom: var(--space-4);
    font-size: clamp(38px, 4.2vw, 58px);
}

.web-hero .web-lead {
    max-width: 46ch;
    margin-bottom: var(--space-5);
}

.web-hero__note {
    max-width: 46ch;
    margin: var(--space-3) 0 0;
    color: var(--web-soft);
    font-size: 15.5px;
}

.web-hero__more {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-5);
    margin: var(--space-4) 0 0;
    padding: 0;
    list-style: none;
    color: var(--web-soft);
    font-size: 15.5px;
}

.web-hero__more li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.web-hero__more .icon {
    margin-top: 4px;
    color: var(--c-blue);
}

.web-hero__more a {
    font-weight: 500;
    text-decoration: underline;
}

/* Zugangscode aus dem Brief direkt auf der Startseite (Baustein .access-code-card aus demo.css) */
.web-hero__code {
    max-width: 560px;
    margin: var(--space-4) 0 0;
    padding: var(--space-3) var(--space-4) var(--space-4);
}

/* Kompakt, damit das Feld auch am Laptop (768 px hoch) im ersten Bildschirm steht */
.web-hero__code .access-code-card__title {
    margin-bottom: var(--space-2);
    font-size: var(--fs-base);
}

/* Zusagen unter dem Hero – noch im ersten Bildschirm, mit dem Weg zur Sicherheit */
.web-promises {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: clamp(32px, 4vw, 52px) 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--c-line-strong);
}

.web-promises li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: start;
    gap: 2px var(--space-3);
    padding: var(--space-5) var(--space-5) var(--space-6) 0;
}

.web-promises li + li {
    padding-left: var(--space-5);
    border-left: 1px solid var(--web-line);
}

.web-promises .icon {
    grid-row: span 2;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    color: var(--web-navy);
}

.web-promises strong {
    color: var(--web-ink);
    font-size: 17px;
    line-height: 1.35;
}

.web-promises strong a {
    color: var(--c-blue-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.web-promises strong a:hover {
    color: var(--c-blue);
}

.web-promises span {
    color: var(--web-soft);
    font-size: 15px;
    line-height: 1.45;
}

/*
 * Hero: der ganze Weg in fünf Stationen (templates/start/_hero_journey.html.twig, 20 s im Kreis), rechts neben dem Text.
 * In Bewegung eine Station nach der anderen mit Fortschrittsbalken; bei „Bewegung reduzieren“ alle fünf als Standbild
 * (am Rechner zwei je Zeile, am Handy untereinander).
 */
.hj {
    --hj-gap: clamp(12px, 1.5vw, 20px);
    --hj-cycle: 20s;
    position: relative;
    margin: 0;
    padding: clamp(18px, 2vw, 24px);
    border: 1px solid var(--web-line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 1px 1px, #d5dbe8 1.2px, transparent 1.4px) 0 0 / 22px 22px,
        linear-gradient(160deg, var(--c-white) 0%, #eef1f8 100%);
    box-shadow: var(--web-shadow);
}

/* Sichtbare Überschrift: sagt in einem Satz, was die Stationen zeigen */
.hj__caption {
    margin: 0 0 var(--space-4);
    color: var(--web-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.hj__stations {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    max-width: 460px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.hj__station {
    display: grid;
    align-content: start;
    gap: 16px;
    min-width: 0;
}

.hj__stage {
    position: relative;
    height: 23.5em;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 0 0 1px var(--web-line);
    font-size: 10.5px;
    line-height: 1.3;
    color: var(--web-ink);
}

.hj__stage p {
    max-width: none;
    margin: 0;
}

.hj__text {
    position: relative;
}

.hj__title {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: none;
    margin: 0 0 4px;
    color: var(--web-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.hj__plate {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--web-navy);
    color: var(--c-white);
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.hj__line {
    max-width: none;
    margin: 0;
    color: var(--web-soft);
    font-size: 16px;
    line-height: 1.45;
}

.hj__track {
    display: none;
}

.hj__pause {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    margin: var(--space-4) auto 0;
    padding: 4px 12px;
    border: 1px solid var(--c-control-border);
    border-radius: 999px;
    background: var(--c-white);
    color: var(--web-text);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.hj__pause:hover {
    border-color: var(--c-border);
}

.hj__pause .icon {
    width: 14px;
    height: 14px;
}

/* Bausteine in den Geräten (Maße in em – auf dem Handy wächst alles mit) */
.hj-layer {
    position: absolute;
    inset: 0;
}

.hj-app {
    margin-bottom: 0.7em !important;
    padding-bottom: 0.45em;
    border-bottom: 1px solid var(--web-line);
    color: var(--web-navy);
    font-size: 0.95em;
    font-weight: 700;
}

.hj-h {
    margin: 0.1em 0 0.6em !important;
    font-size: 1.35em;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hj-small {
    color: var(--web-soft);
    font-size: 0.95em;
}

.hj-center {
    text-align: center;
}

.hj-label {
    color: var(--web-soft);
    font-size: 0.9em;
}

.hj-option {
    margin-bottom: 0.4em !important;
    padding: 0.45em 0.55em;
    border: 1px solid var(--c-line-strong);
    border-radius: 0.6em;
    font-size: 0.95em;
    font-weight: 500;
    white-space: nowrap;
}

.hj-option--tap {
    border-color: var(--c-blue) !important;
    background: var(--c-blue-light);
    box-shadow: inset 0.25em 0 0 var(--c-blue);
    color: var(--c-blue-dark);
}

.hj-next {
    display: grid;
    gap: 0.3em;
    padding: 0.7em;
    border-left: 0.3em solid var(--c-blue);
    border-radius: 0.6em;
    background: var(--web-tint);
}

.hj-next b {
    font-size: 1.25em;
}

.hj-next .hj-button {
    text-align: center;
}

.hj-ok {
    display: flex;
    align-items: center;
    gap: 0.3em;
    color: var(--c-success-text);
    font-size: 1.02em;
    font-weight: 700;
}

.hj-ok .icon {
    width: 1.3em;
    height: 1.3em;
}

.hj-when {
    margin-top: 0.4em !important;
    font-size: 1.55em;
    font-weight: 700;
}

.hj-qr {
    display: block;
    width: 6.8em;
    height: 6.8em;
    margin: 0.6em auto 0.4em;
    padding: 0.3em;
    border: 1px solid var(--c-line-strong);
    border-radius: 0.5em;
    background: var(--c-white);
}

.hj-number {
    display: inline-block;
    margin: 0.15em 0 0.45em !important;
    padding: 0.05em 0.4em;
    border-radius: 0.35em;
    background: var(--web-navy);
    color: var(--c-white);
    font-size: 2.2em;
    font-weight: 700;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.hj-code {
    color: var(--web-soft);
    font-size: 0.8em;
    text-align: center;
    white-space: nowrap;
}

.hj-code b {
    color: var(--web-ink);
}

.hj-number--center {
    display: block;
    width: fit-content;
    margin-inline: auto !important;
}

.hj-fact {
    margin-bottom: 0.35em !important;
    font-size: 1.35em;
    font-weight: 700;
}

.hj-fact .hj-pos-a,
.hj-fact .hj-pos-b {
    grid-area: 1 / 1;
}

.hj-fact:has(.hj-pos-a) {
    display: inline-grid;
}

.hj-pos-a {
    visibility: hidden;
}

.hj-call {
    display: grid;
    gap: 0.25em;
    padding: 0.7em;
    border-radius: 0.7em;
    background: var(--c-blue-dark);
    color: var(--c-white);
}

.hj-call b {
    font-size: 1.02em;
}

.hj-call span {
    font-size: 0.9em;
}

.hj-call strong {
    justify-self: start;
    padding: 0.05em 0.4em;
    border-radius: 0.35em;
    background: var(--c-white);
    color: var(--web-navy);
    font-size: 1.35em;
    white-space: nowrap;
}

.hj-button {
    display: inline-block;
    margin-top: 0.5em;
    padding: 0.4em 0.7em;
    border-radius: 0.45em;
    background: var(--action-primary-bg);
    color: var(--c-white);
    font-size: 0.95em;
    font-weight: 700;
}

.hj-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3em;
    margin-top: 0.4em;
}

.hj-actions span {
    padding: 0.25em 0.4em;
    border: 1px solid var(--c-line-strong);
    border-radius: 0.4em;
    font-size: 0.85em;
    font-weight: 500;
}

/* Handy */
.hj-phone {
    position: absolute;
    top: 1.1em;
    left: 50%;
    width: 14.4em;
    height: 21.4em;
    margin-left: -7.2em;
    overflow: hidden;
    border: 0.65em solid #1f2a3a;
    border-radius: 1.9em;
    background: var(--c-white);
    box-shadow: 0 1.4em 2.6em -1.3em rgba(20, 35, 80, 0.5);
}

.hj-phone__screen {
    position: absolute;
    inset: 0;
}

.hj-phone__screen .hj-layer,
.hj-phone__screen > .hj-call {
    padding: 1.4em 0.75em 0.8em;
}

.hj-phone--front {
    top: 8.9em;
    right: 0.7em;
    left: auto;
    width: 10.4em;
    height: 14.3em;
    margin-left: 0;
    border-width: 0.55em;
    border-radius: 1.5em;
}

.hj-phone--front .hj-layer {
    padding: 1.1em 0.7em 0.6em;
}

.hj-phone--front .hj-app {
    margin-bottom: 0.4em !important;
    padding-bottom: 0.3em;
}

.hj-phone--front .hj-number {
    margin: 0 0 0.3em !important;
    font-size: 1.9em;
}

.hj-phone--front .hj-fact {
    margin-bottom: 0.2em !important;
    font-size: 1.2em;
}

.hj-phone--front .hj-call strong,
.hj-phone--mini .hj-call strong {
    font-size: 1.15em;
}

.hj-phone--mini {
    top: 11.6em;
    right: 0.9em;
    left: auto;
    width: 9.6em;
    height: 11em;
    margin-left: 0;
    border-width: 0.5em;
    border-radius: 1.4em;
}

.hj-phone--mini .hj-call {
    position: absolute;
    inset: 1.1em 0.55em auto;
}

/* Kiosk */
.hj-kiosk {
    position: absolute;
    top: 1em;
    left: 50%;
    width: 13em;
    height: 22em;
    margin-left: -6.5em;
}

.hj-kiosk__screen {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 13.4em;
    overflow: hidden;
    border: 0.6em solid #364a5e;
    border-radius: 1em;
    background: var(--c-white);
}

.hj-kiosk__screen .hj-layer {
    display: grid;
    align-content: center;
    gap: 0.35em;
    padding: 0.7em;
}

.hj-scan {
    justify-self: center;
    color: var(--c-blue);
}

.hj-scan .icon {
    width: 2.6em;
    height: 2.6em;
}

.hj-kiosk__scanner {
    position: absolute;
    top: 13.8em;
    left: 3.5em;
    width: 6em;
    height: 1.3em;
    border-radius: 0.4em;
    background: #2b3b4b;
    box-shadow: inset 0 -0.25em 0 #da121a;
}

.hj-kiosk__foot {
    position: absolute;
    top: 15.1em;
    left: 5.4em;
    width: 2.2em;
    height: 6em;
    background: #364a5e;
    box-shadow: 0 6em 0 -0.2em #2b3b4b;
}

.hj-kiosk__foot::after {
    content: "";
    position: absolute;
    bottom: -0.6em;
    left: -2.4em;
    width: 7em;
    height: 0.8em;
    border-radius: 0.4em;
    background: #2b3b4b;
}

.hj-bon {
    position: absolute;
    top: 15.2em;
    left: 9.4em;
    display: grid;
    gap: 0.1em;
    width: 4.6em;
    padding: 0.4em;
    border: 1px solid var(--c-line-strong);
    border-radius: 0.2em;
    background: var(--c-white);
    box-shadow: 0 0.6em 1em -0.6em rgba(20, 35, 80, 0.4);
    text-align: center;
}

.hj-bon b {
    font-size: 1.15em;
}

.hj-bon span {
    color: var(--web-soft);
    font-size: 0.8em;
}

.hj-handqr {
    position: absolute;
    top: 15.6em;
    left: 4.6em;
    width: 3.8em;
    padding: 0.3em;
    border: 0.3em solid #1f2a3a;
    border-radius: 0.6em;
    background: var(--c-white);
    opacity: 0;
}

.hj-handqr svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Anzeige in der Wartezone */
.hj-display {
    position: absolute;
    top: 1.2em;
    left: 50%;
    width: 17.6em;
    margin-left: -8.8em;
    overflow: hidden;
    border: 0.5em solid #1f2a3a;
    border-radius: 0.9em;
    background: #1f2a3a;
    color: var(--c-white);
    box-shadow: 0 1.2em 2.4em -1.2em rgba(20, 35, 80, 0.5);
}

.hj-display--small {
    top: 0.8em;
    left: 0.7em;
    width: 15em;
    margin-left: 0;
}

.hj-display--small .hj-display__body {
    height: 6.6em;
}

.hj-display--small .hj-display__num {
    font-size: 2.3em;
}

.hj-display--call {
    left: 0.7em;
    width: 15.6em;
    margin-left: 0;
}

.hj-display__bar {
    display: flex;
    justify-content: space-between;
    gap: 0.4em;
    padding: 0.3em 0.55em;
    background: var(--c-white);
    color: var(--web-ink);
    font-size: 0.85em;
    font-weight: 700;
}

.hj-display__body {
    position: relative;
    height: 8.6em;
    background: var(--web-navy);
}

.hj-display__body .hj-layer,
.hj-display__body--call {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.3em;
    text-align: center;
}

.hj-display__label {
    padding: 0.1em 0.6em;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.85em;
}

.hj-display__num {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.hj-display__room {
    font-size: 0.95em;
    white-space: nowrap;
}

.hj-display__room b {
    margin-left: 0.25em;
    padding: 0.05em 0.4em;
    border-radius: 0.3em;
    background: var(--c-white);
    color: var(--web-navy);
    font-size: 1.15em;
}

.hj-display__wait {
    padding: 0.3em 0.55em;
    background: var(--web-navy-deep);
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hj-gong {
    position: absolute;
    top: 4.4em;
    left: 16.9em;
    display: block;
    width: 2em;
    height: 4em;
    opacity: 0.85;
}

.hj-gong span {
    position: absolute;
    top: 50%;
    left: -1em;
    border: 0.28em solid transparent;
    border-right-color: var(--c-blue);
    border-radius: 50%;
    transform: translateY(-50%);
}

.hj-gong span:first-child {
    width: 2.4em;
    height: 2.4em;
}

.hj-gong span:last-child {
    width: 3.8em;
    height: 3.8em;
}

/* Arbeitsplatz */
.hj-monitor {
    position: absolute;
    top: 1.4em;
    left: 50%;
    width: 17em;
    margin-left: -8.5em;
    border: 0.55em solid #1f2a3a;
    border-radius: 0.8em;
    background: var(--c-white);
    box-shadow: 0 1.2em 2.4em -1.2em rgba(20, 35, 80, 0.45);
}

.hj-monitor::after {
    content: "";
    position: absolute;
    bottom: -2.4em;
    left: 50%;
    width: 1.6em;
    height: 1.9em;
    margin-left: -0.8em;
    background: #2b3b4b;
}

.hj-monitor__screen {
    position: relative;
    height: 11.6em;
    padding: 0.7em 0.8em;
}

.hj-monitor__screen .hj-layer {
    padding: 0.7em 0.8em;
}

.hj-cursor {
    position: absolute;
    right: 2.2em;
    bottom: 1.2em;
    width: 1.3em;
    height: 1.6em;
    background: #1f2a3a;
    clip-path: polygon(0 0, 0 100%, 30% 75%, 55% 100%, 70% 90%, 48% 66%, 85% 62%);
}

.hj-desk {
    position: absolute;
    top: 16em;
    right: 1em;
    left: 1em;
    height: 0.9em;
    border-radius: 0.45em;
    background: #c9ced8;
}

.hj-people {
    position: absolute;
    top: 16.9em;
    right: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 2em;
}

.hj-person {
    position: relative;
    width: 2.8em;
    height: 4.6em;
}

.hj-person::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0.6em;
    width: 1.6em;
    height: 1.6em;
    border-radius: 50%;
    background: #545454;
}

.hj-person::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2.8em;
    height: 2.8em;
    border-radius: 1.4em 1.4em 0.3em 0.3em;
    background: var(--web-navy);
}

.hj-person--guest::after {
    background: var(--web-red);
}

/* Standbild (auch bei „Bewegung reduzieren“): jede Station in ihrem Kernzustand */
.hj-1a,
.hj-1b,
.hj-2a,
.hj-3b,
.hj-3d,
.hj-4a,
.hj-5a {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .hj__pause {
        display: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hj * ,
    .hj *::before,
    .hj *::after {
        animation-duration: var(--hj-cycle);
        animation-iteration-count: infinite;
    }

    .hj__station--1 .hj__plate { animation-name: hj-plate-1; animation-timing-function: step-end; }
    .hj__station--2 .hj__plate { animation-name: hj-plate-2; animation-timing-function: step-end; }
    .hj__station--3 .hj__plate { animation-name: hj-plate-3; animation-timing-function: step-end; }
    .hj__station--4 .hj__plate { animation-name: hj-plate-4; animation-timing-function: step-end; }
    .hj__station--5 .hj__plate { animation-name: hj-plate-5; animation-timing-function: step-end; }

    /* 1 Termin buchen: Anliegen → Uhrzeit → gebucht */
    .hj-1a { animation-name: hj-1a; }
    .hj-1b { animation-name: hj-1b; }
    .hj-1c { animation-name: hj-1c; }
    .hj-option--tap { animation-name: hj-tap-1; animation-timing-function: step-end; }
    .hj-slot--tap { animation-name: hj-tap-2; animation-timing-function: step-end; }

    /* 2 Kiosk: QR-Code unter den Scanner, dann Wartenummer und Bon */
    .hj-2a { animation-name: hj-2a; }
    .hj-2b { animation-name: hj-2b; }
    .hj-handqr { animation-name: hj-handqr; }
    .hj-bon { animation-name: hj-bon; }

    /* 3 Wartezone: Anzeige und Wartestatus; beim Aufruf zeigen beide B019 */
    .hj-3a { animation-name: hj-3a; }
    .hj-3b { animation-name: hj-3b; }
    .hj-3c { animation-name: hj-3c; }
    .hj-3d { animation-name: hj-3d; }
    .hj-pos-a { animation-name: hj-pos-a; animation-timing-function: step-end; }
    .hj-pos-b { animation-name: hj-pos-b; animation-timing-function: step-end; }

    /* 4 Aufruf: Klick am Arbeitsplatz, dann Anzeige mit Gong und Handy */
    .hj-4a { animation-name: hj-4a; }
    .hj-4b { animation-name: hj-4b; }
    .hj-cursor { animation-name: hj-cursor; }
    .hj-4a .hj-button { animation-name: hj-press; animation-timing-function: step-end; }
    .hj-gong { animation-name: hj-gong; }

    /* 5 Gespräch: Bearbeitung beginnen, dann in Bearbeitung */
    .hj-5a { animation-name: hj-5a; }
    .hj-5b { animation-name: hj-5b; }
    .hj-person--guest { animation-name: hj-guest; }

    .hj.is-paused *,
    .hj.is-paused *::before,
    .hj.is-paused *::after {
        animation-play-state: paused !important;
    }
}

@keyframes hj-plate-1 { 0% { background: var(--c-red-dark); } 20% { background: var(--web-navy); } }
@keyframes hj-plate-2 { 0% { background: var(--web-navy); } 20% { background: var(--c-red-dark); } 40% { background: var(--web-navy); } }
@keyframes hj-plate-3 { 0% { background: var(--web-navy); } 40% { background: var(--c-red-dark); } 60% { background: var(--web-navy); } }
@keyframes hj-plate-4 { 0% { background: var(--web-navy); } 60% { background: var(--c-red-dark); } 80% { background: var(--web-navy); } }
@keyframes hj-plate-5 { 0% { background: var(--web-navy); } 80% { background: var(--c-red-dark); } }


@keyframes hj-1a { 0%, 6% { opacity: 1; } 7%, 99% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hj-1b { 0%, 6.5% { opacity: 0; } 7.5%, 12.5% { opacity: 1; } 13.5%, 100% { opacity: 0; } }
@keyframes hj-1c { 0%, 13% { opacity: 0; } 14%, 98.5% { opacity: 1; } 99.5%, 100% { opacity: 0; } }
@keyframes hj-tap-1 { 0% { background: var(--c-white); box-shadow: none; color: var(--web-ink); border-color: var(--c-line-strong); } 3.5% { background: var(--c-blue-light); box-shadow: inset 0.25em 0 0 var(--c-blue); color: var(--c-blue-dark); border-color: var(--c-blue); } }
@keyframes hj-tap-2 { 0% { background: var(--action-primary-bg); } 10.5% { background: var(--web-navy-deep); } 12% { background: var(--action-primary-bg); } }

@keyframes hj-2a { 0%, 26% { opacity: 1; } 27%, 99% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hj-2b { 0%, 26.5% { opacity: 0; } 27.5%, 98.5% { opacity: 1; } 99.5%, 100% { opacity: 0; } }
@keyframes hj-handqr { 0%, 20.5% { opacity: 0; transform: translate(4em, 5em) rotate(12deg); } 22% { opacity: 1; transform: translate(4em, 5em) rotate(12deg); } 25% { opacity: 1; transform: translate(0, 0) rotate(0); } 26.5%, 100% { opacity: 0; transform: translate(0, 0); } }
@keyframes hj-bon { 0%, 27% { opacity: 0; transform: translateY(-1.2em); } 29%, 98.5% { opacity: 1; transform: translateY(0); } 99.5%, 100% { opacity: 0; transform: translateY(-1.2em); } }

@keyframes hj-3a { 0%, 68% { opacity: 1; } 69%, 99% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hj-3b { 0%, 68.5% { opacity: 0; } 69.5%, 98.5% { opacity: 1; } 99.5%, 100% { opacity: 0; } }
@keyframes hj-3c { 0%, 68% { opacity: 1; } 69%, 99% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hj-3d { 0%, 68.5% { opacity: 0; } 69.5%, 98.5% { opacity: 1; } 99.5%, 100% { opacity: 0; } }
@keyframes hj-pos-a { 0% { visibility: visible; } 52% { visibility: hidden; } }
@keyframes hj-pos-b { 0% { visibility: hidden; } 52% { visibility: visible; } }

@keyframes hj-4a { 0%, 67.5% { opacity: 1; } 68.5%, 99% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hj-4b { 0%, 68% { opacity: 0; } 69%, 98.5% { opacity: 1; } 99.5%, 100% { opacity: 0; } }
@keyframes hj-cursor { 0%, 61% { transform: translate(1.5em, 1.5em); } 64%, 100% { transform: translate(-3.6em, -0.4em); } }
@keyframes hj-press { 0% { background: var(--action-primary-bg); } 65% { background: var(--action-primary-bg-hover); } 67% { background: var(--action-primary-bg); } }
@keyframes hj-gong { 0%, 69% { opacity: 0; transform: scale(0.85); } 71% { opacity: 1; transform: scale(1); } 78%, 100% { opacity: 0; transform: scale(1.12); } }

@keyframes hj-5a { 0%, 84% { opacity: 1; } 85%, 99% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hj-5b { 0%, 84.5% { opacity: 0; } 85.5%, 98.5% { opacity: 1; } 99.5%, 100% { opacity: 0; } }
@keyframes hj-guest { 0%, 82% { opacity: 0; transform: translateX(2em); } 85%, 98.5% { opacity: 1; transform: translateX(0); } 99.5%, 100% { opacity: 0; } }

.hj__station {
    container-type: inline-size;
}

.hj__stage {
    font-size: min(12px, 3.8cqi);
}

@media (max-width: 1023.98px) {
    .hj {
        padding: 18px;
        border-radius: 22px;
    }
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
    /* Standbild: alle fünf Stationen, kleiner; der Text links beginnt oben */
    .web-hero__grid {
        align-items: start;
    }

    .hj__stations {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px var(--hj-gap);
        max-width: none;
    }

    .hj__stage {
        font-size: min(9px, 4cqi);
    }

    .hj__title {
        font-size: 15.5px;
    }

    .hj__line {
        font-size: 14.5px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hj__station {
        grid-area: 1 / 1;
    }

    .hj__station--1 { animation-name: hj-show-1; }
    .hj__station--2 { animation-name: hj-show-2; }
    .hj__station--3 { animation-name: hj-show-3; }
    .hj__station--4 { animation-name: hj-show-4; }
    .hj__station--5 { animation-name: hj-show-5; }

    .hj__track {
        display: block;
        max-width: 460px;
        height: 5px;
        margin: 20px auto 0;
        overflow: hidden;
        border-radius: 3px;
        background: var(--c-line-strong);
    }

    .hj__track span {
        display: block;
        width: 20%;
        height: 100%;
        background: var(--web-navy);
        animation-name: hj-progress;
        animation-timing-function: step-end;
    }
}

@keyframes hj-show-1 { 0%, 19.5% { opacity: 1; visibility: visible; } 20%, 99.5% { opacity: 0; visibility: hidden; } 100% { opacity: 1; visibility: visible; } }
@keyframes hj-show-2 { 0%, 19.5% { opacity: 0; visibility: hidden; } 20.5%, 39.5% { opacity: 1; visibility: visible; } 40%, 100% { opacity: 0; visibility: hidden; } }
@keyframes hj-show-3 { 0%, 39.5% { opacity: 0; visibility: hidden; } 40.5%, 59.5% { opacity: 1; visibility: visible; } 60%, 100% { opacity: 0; visibility: hidden; } }
@keyframes hj-show-4 { 0%, 59.5% { opacity: 0; visibility: hidden; } 60.5%, 79.5% { opacity: 1; visibility: visible; } 80%, 100% { opacity: 0; visibility: hidden; } }
@keyframes hj-show-5 { 0%, 79.5% { opacity: 0; visibility: hidden; } 80.5%, 99.5% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
@keyframes hj-progress { 0% { width: 20%; } 20% { width: 40%; } 40% { width: 60%; } 60% { width: 80%; } 80% { width: 100%; } }

/* ==== 4 Wiederkehrende Bausteine =================================================================================== */

/* Nummernschild für echte Abfolgen */
.web-plate {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--web-navy);
    color: var(--c-white);
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Häkchenliste */
.web-ticks {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.web-ticks li {
    position: relative;
    padding-left: 30px;
}

.web-ticks li::before {
    content: "";
    position: absolute;
    top: 0.42em;
    left: 3px;
    width: 13px;
    height: 7px;
    border-bottom: 2.5px solid var(--c-success-text);
    border-left: 2.5px solid var(--c-success-text);
    transform: rotate(-45deg);
}

.web-section--navy .web-ticks li::before {
    border-color: #a8dca2;
}

/* Rollen auf der Startseite: drei Spalten mit dunkelblauer Kante */
.web-roles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--web-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.web-roles li {
    padding-top: var(--space-5);
    border-top: 3px solid var(--web-navy);
}

.web-roles .icon {
    width: 28px;
    height: 28px;
    margin-bottom: var(--space-3);
    color: var(--web-navy);
}

.web-roles .web-h3 {
    font-size: 21px;
}

.web-roles p {
    margin: 0;
    color: var(--web-soft);
}

/* 3D-Rundgang: Standbild aus dem Rundgang, daneben Satz und Taste */
.web-tour {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--web-gap) clamp(32px, 5vw, 72px);
}

.web-tour__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid var(--web-line);
    border-radius: var(--web-radius);
    background: var(--c-white);
    box-shadow: var(--web-shadow);
}

.web-tour__text .web-lead {
    margin-bottom: var(--space-3);
}

.web-tour__text .web-note {
    margin: 0 0 var(--space-5);
}

/* Online-Buchung des Demo-Jobcenters zum Ausprobieren (eingebettet über data-diwa-termin) */
.web-booking-note {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    max-width: 880px;
    margin: 0 0 var(--space-4);
    color: var(--web-soft);
    font-size: 16px;
}

.web-booking-note .icon {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: var(--web-navy);
}

.web-booking {
    max-width: 880px;
    padding: var(--space-5);
    border: 1px solid var(--web-line);
    border-radius: var(--web-radius);
    background: var(--c-white);
    box-shadow: var(--web-shadow);
}

/* Nach dem Laden: Rahmen bündig im Kasten, „In neuem Fenster öffnen“ darunter */
.web-booking[data-diwa-bereit] {
    padding: 0;
    overflow: hidden;
}

.web-booking[data-diwa-bereit] > p {
    padding: var(--space-3) var(--space-4);
    border-top: 1px solid var(--web-line);
}

/* Zusagen zur Sicherheit: kurze Zeilen mit Häkchen */
.web-pledges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 var(--web-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.web-pledges li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--c-white);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}

.web-pledges .icon {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    color: #a8dca2;
}

/* Raster mit feinen Linien statt Karten */
.web-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 var(--web-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.web-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.web-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.web-grid > li {
    padding: var(--space-5) 0 var(--space-6);
    border-top: 1px solid var(--c-line-strong);
}

.web-grid > li p {
    margin: 0;
    color: var(--web-soft);
}

.web-grid__icon {
    display: block;
    width: 28px;
    height: 28px;
    margin-bottom: var(--space-3);
    color: var(--web-navy);
}

.web-grid__icon .icon {
    width: 28px;
    height: 28px;
}

.web-section--navy .web-grid > li {
    border-top-color: rgba(255, 255, 255, 0.22);
}

.web-section--navy .web-grid > li p {
    color: var(--web-on-navy);
}

.web-section--navy .web-grid__icon {
    color: #a8dca2;
}

/* Zwei Spalten: Überschrift links (bleibt stehen), Inhalt rechts */
.web-split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
    align-items: start;
    gap: clamp(32px, 5vw, 88px);
}

.web-split__aside {
    position: sticky;
    top: var(--space-5);
}

.web-split__aside .web-lead {
    font-size: 18px;
}

/* Bild und Text nebeneinander */
.web-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(32px, 5.5vw, 88px);
}

.web-feature--media-first {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.web-feature__text > .web-lead {
    margin-bottom: var(--space-5);
}

/* Abbildungen: echte Ansichten der Demo und Bilder aus dem Film */
.web-figure {
    margin: 0;
}

.web-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--web-line);
    border-radius: var(--web-radius);
    background: var(--c-white);
    box-shadow: var(--web-shadow);
}

.web-figure figcaption {
    margin-top: var(--space-3);
    color: var(--c-muted);
    font-size: 14px;
    line-height: 1.45;
}

.web-phones {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: var(--space-5);
}

.web-phones .web-figure {
    flex: 1 1 0;
    max-width: 240px;
}

.web-phones .web-figure img {
    border-radius: 22px;
}

.web-phones .web-figure:nth-child(2) {
    margin-top: var(--space-7);
}

.web-figure--kiosk {
    justify-self: center;
    width: 100%;
    max-width: 300px;
}

.web-figure--kiosk img {
    border-radius: 22px;
}

/* Nummerierte Schritte (echte Abfolgen) */
.web-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--web-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.web-steps--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-5);
}

.web-steps > li {
    display: grid;
    align-content: start;
    gap: var(--space-2);
}

.web-steps .web-plate {
    margin-bottom: var(--space-2);
}

.web-steps > li p {
    margin: 0;
    color: var(--web-soft);
}

/* Hinweis mit Rand (Personalrat) */
.web-callout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-2) var(--space-4);
    max-width: 880px;
    padding: var(--space-5) var(--space-6);
    border-left: 5px solid var(--web-navy);
    border-radius: 12px;
    background: var(--c-white);
    box-shadow: 0 0 0 1px var(--web-line);
}

.web-callout > .icon {
    width: 28px;
    height: 28px;
    color: var(--web-navy);
}

.web-callout p {
    margin: 0;
}

/* Inhaltsverzeichnis langer Seiten */
.web-toc {
    margin-top: var(--space-6);
}

.web-toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.web-toc a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 6px 14px;
    border: 1px solid var(--c-line-strong);
    border-radius: 999px;
    background: var(--c-white);
    color: var(--web-text);
    font-size: 15px;
    font-weight: 500;
}

.web-toc a:hover {
    border-color: var(--c-blue);
    color: var(--c-blue-dark);
    text-decoration: none;
}

.web-toc .icon {
    width: 16px;
    height: 16px;
    color: var(--c-blue);
}

.web-anchor {
    scroll-margin-top: var(--space-5);
}

/* Abschluss: Kennenlernen (Hausfarbe wie die Fußleiste der Oberfläche) */
.web-cta {
    padding: clamp(56px, 7vw, 96px) 0;
    background: var(--web-red);
    color: var(--c-white);
}

.web-cta__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) auto;
    align-items: center;
    gap: var(--space-5) var(--space-7);
}

.web-cta .web-h2 {
    color: var(--c-white);
}

.web-cta p {
    margin: 0;
    color: var(--c-white);
    font-size: 18px;
}

.web-cta .web-btn-light {
    color: var(--brand-primary-dark);
}

.web-cta .web-btn-light:hover {
    background: var(--brand-primary-soft);
    color: var(--c-red-deep);
}

.web-cta :focus-visible {
    outline-color: var(--c-white);
}

.web-cta__actions {
    display: grid;
    gap: var(--space-3);
    justify-items: stretch;
}

/* ==== 5 Seiten ===================================================================================================== */

/* Einführung: Wochen bis online */
.web-weeks {
    display: grid;
    grid-template-columns: 1.3fr repeat(8, minmax(0, 1fr));
    gap: 6px;
}

.web-weeks > span {
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 76px;
    padding: 8px 4px;
    border-radius: 10px;
    background: #e3e8f0;
    color: var(--web-text);
    font-size: 13px;
    text-align: center;
}

.web-weeks strong {
    font-size: 22px;
    line-height: 1.1;
}

.web-weeks .web-weeks__start {
    background: var(--web-navy);
    color: var(--c-white);
    font-size: 15px;
    font-weight: 700;
}

.web-weeks .web-weeks__online {
    background: var(--web-red);
    color: var(--c-white);
}

.web-weeks-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-5);
    margin: var(--space-3) 0 0;
    padding: 0;
    list-style: none;
    color: var(--web-soft);
    font-size: 15px;
}

.web-weeks-legend li {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.web-weeks-legend span {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: #e3e8f0;
}

.web-weeks-legend .is-start {
    background: var(--web-navy);
}

.web-weeks-legend .is-online {
    background: var(--web-red);
}

/* Module: ruhige Liste */
.web-modules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--web-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.web-modules li {
    padding: var(--space-4) 0;
    border-top: 1px solid var(--c-line-strong);
}

.web-modules strong {
    display: block;
    color: var(--web-ink);
    font-size: 18px;
}

.web-modules span {
    color: var(--web-soft);
}

/* Fragen */
.web-faq-group + .web-faq-group {
    margin-top: clamp(48px, 6vw, 88px);
}

.web-faq {
    display: grid;
    gap: var(--space-2);
}

.web-faq details {
    border: 1px solid var(--web-line);
    border-radius: 12px;
    background: var(--c-white);
}

.web-faq summary {
    position: relative;
    padding: 18px 56px 18px 20px;
    color: var(--web-ink);
    font-size: 17px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.web-faq summary::-webkit-details-marker {
    display: none;
}

.web-faq summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 22px;
    width: 10px;
    height: 10px;
    border-right: 2.5px solid var(--c-blue);
    border-bottom: 2.5px solid var(--c-blue);
    transform: translateY(-70%) rotate(45deg);
    transition: transform var(--duration);
}

.web-faq details[open] summary::after {
    transform: translateY(-30%) rotate(-135deg);
}

.web-faq summary:focus-visible {
    border-radius: 12px;
}

.web-faq__answer {
    padding: 0 20px 20px;
}

.web-faq__answer p {
    margin: 0;
}

.web-faq__answer p + p {
    margin-top: var(--space-2);
}

/* Kontakt */
.web-ways {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.web-way {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: var(--space-2);
    padding: var(--space-6) var(--space-5) var(--space-5);
    border: 1px solid var(--web-line);
    border-top: 4px solid var(--web-navy);
    border-radius: 14px;
    background: var(--c-white);
}

.web-way--main {
    border-top-color: var(--web-red);
}

.web-way p {
    margin: 0;
    color: var(--web-soft);
}

.web-way > .btn,
.web-way > .web-actions {
    justify-self: start;
    margin-top: var(--space-4);
}

.web-contact {
    display: grid;
    margin: 0;
    border-top: 1px solid var(--c-line-strong);
}

.web-contact > div {
    display: grid;
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
    gap: var(--space-2) var(--space-5);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--web-line);
}

.web-contact dt {
    color: var(--web-ink);
    font-weight: 700;
}

.web-contact dd {
    margin: 0;
}

.web-address {
    font-style: normal;
}

.web-contact a {
    text-decoration: underline;
}

/* Kontakt: Termin vereinbaren oder Rückruf anfragen (#gespraech), darunter Telefon und E-Mail */
.web-talk__box {
    display: grid;
    gap: var(--space-5);
}

.web-talk__ways {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.web-talk__ways > li {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: var(--space-2);
    padding: var(--space-5);
    border: 1px solid var(--web-line);
    border-top: 4px solid var(--web-red);
    border-radius: 14px;
    background: var(--c-white);
}

.web-talk__ways > li + li {
    border-top-color: var(--web-navy);
}

.web-talk__ways .web-h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.web-talk__ways .web-h3 .icon {
    flex: none;
    width: 22px;
    height: 22px;
    color: var(--web-navy);
}

.web-talk__ways p {
    margin: 0;
    color: var(--web-soft);
}

.web-talk__ways .btn {
    justify-self: start;
    margin-top: var(--space-3);
}

.web-talk__direct {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-5);
    margin: 0;
    color: var(--web-soft);
}

.web-talk__direct a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    color: var(--c-blue-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.web-talk__direct .icon {
    width: 18px;
    height: 18px;
    color: var(--c-blue);
}

/* Seiten der Demo unter der Hauptadresse (Anfrage, Film, Zugangscode, Rechtstexte) */
.web-frame .web-frame__main {
    flex: 1 0 auto;
    padding-top: var(--space-6);
    padding-bottom: var(--space-7);
}

/* Mindestgröße 24 × 24 px für Sprunglink und Textlinks (WCAG 2.2, 2.5.8) */
.web .skip-link,
.web-frame .skip-link {
    display: inline-block;
    min-height: 24px;
    line-height: 1.5;
}

/* ==== 5b Termin und Rückruf (/termin, /rueckruf – demo/beratung/) ====================================================== */

/* Schmaler Inhalt für Abläufe: Überschrift, Schritte und Formulare in einer Spalte */
.web .web-flow {
    max-width: 760px;
}

.web-booking-intro {
    padding: clamp(24px, 4vw, 48px) 0 clamp(24px, 3vw, 36px);
    background: var(--web-tint);
    border-bottom: 1px solid var(--web-line);
}

.web-booking-body {
    padding: clamp(24px, 4vw, 48px) 0 var(--web-section);
}

.web-booking__home {
    margin: 0 0 var(--space-5);
}

.web-booking__home a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: var(--c-blue-dark);
    font-weight: 600;
}

.web-booking__home .icon {
    width: 18px;
    height: 18px;
}

.web .web-booking__title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    max-width: none;
    margin-bottom: var(--space-4);
    font-size: clamp(32px, 4vw, 46px);
}

.web-booking__ok.icon {
    flex: none;
    width: 1em;
    height: 1em;
    color: var(--c-success);
}

.web-booking__chosen {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.web-booking__chosen .icon {
    flex: none;
    width: 24px;
    height: 24px;
    margin-top: 4px;
    color: var(--c-blue);
}

/* Drei Schritte: erledigt (Haken), aktuell (dunkelblau), offen (hell) – Stand nie nur über die Farbe */
.web-flow-steps {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-5);
    margin: 0 0 var(--space-5);
    padding: 0;
    list-style: none;
    color: var(--web-soft);
    font-size: 15px;
}

.web-flow-steps__item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.web-flow-steps__number {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 2px solid var(--web-line);
    border-radius: 8px;
    background: var(--c-white);
    color: var(--web-soft);
    font-weight: 700;
}

.web-flow-steps__number .icon {
    width: 16px;
    height: 16px;
}

.web-flow-steps__item[aria-current="step"] {
    color: var(--web-ink);
    font-weight: 700;
}

.web-flow-steps__item[aria-current="step"] .web-flow-steps__number,
.web-flow-steps__item.is-done .web-flow-steps__number {
    border-color: var(--web-navy);
    background: var(--web-navy);
    color: var(--c-white);
}

/* Zeitwahl: Bausteine der Online-Buchung (public.css) im Rahmen der Website */
.web-booking__times.diwa-public {
    color: var(--web-text);
}

.web-booking__times .book-days {
    margin: 0;
}

.web-booking__box,
.web-booking__summary {
    margin: 0 0 var(--space-5);
    padding: var(--space-5);
    border: 1px solid var(--web-line);
    border-radius: var(--web-radius);
    background: var(--c-white);
}

.web-booking__summary--done {
    border-color: var(--c-success);
    box-shadow: inset 4px 0 0 var(--c-success);
}

.web-booking__summary p {
    margin: var(--space-3) 0 0;
}

.web-booking__facts {
    display: grid;
    gap: var(--space-3);
    margin: 0;
}

.web-booking__facts > div {
    display: grid;
    grid-template-columns: minmax(150px, 13rem) minmax(0, 1fr);
    gap: var(--space-2) var(--space-4);
}

.web-booking__facts dt {
    color: var(--web-soft);
    font-weight: 600;
}

.web-booking__facts dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.web-booking__form {
    display: grid;
    gap: var(--space-4);
}

.web-booking__form .field__label {
    font-weight: 600;
}

.web-booking__form input[type="text"],
.web-booking__form input[type="email"],
.web-booking__form input[type="tel"],
.web-booking__form textarea {
    width: 100%;
    max-width: 34rem;
    min-height: 48px;
    font-size: 17px;
}

/* Einverständnis: Fehlermeldung unter dem Kästchen, nicht daneben */
.web-booking__form .check {
    flex-wrap: wrap;
}

.web-booking__form .check > .check__text {
    flex: 1 1 0;
    min-width: 0;
}

.web-booking__form .check .field__error {
    flex-basis: 100%;
}

.web-booking__note {
    margin: 0;
    color: var(--web-soft);
    font-size: 15px;
}

.web-booking__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin: var(--space-5) 0 0;
}

.web-booking__alt {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin: var(--space-6) 0 0;
    padding: var(--space-5);
    border-radius: var(--web-radius);
    background: var(--web-tint);
}

.web-booking__alt p {
    margin: 0;
    color: var(--web-soft);
}

.web-booking__direct {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-5);
    margin: var(--space-6) 0 0;
    color: var(--web-soft);
}

.web-booking__direct a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: var(--c-blue-dark);
    font-weight: 600;
}

.web-booking__direct .icon {
    width: 18px;
    height: 18px;
    color: var(--c-blue);
}

@media (max-width: 559.98px) {
    /* Drei Schritte nebeneinander, Nummer über der Beschriftung */
    .web-flow-steps {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-3);
        font-size: 14px;
    }

    .web-flow-steps__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .web-booking__facts > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .web-booking__actions .btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .web-booking__alt .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==== 5c DIWA Verbund und Routing (start/verbund.html.twig, start/_verbund_*.html.twig, start/_routing_*.html.twig) ==== */

/* „Neu“ über der Überschrift: Marke in Hausrot mit Wort (nicht nur Farbe; Weiß auf Rot 5,1 : 1) */
.web-new {
    display: block;
    width: fit-content;
    margin-bottom: 14px;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    background: var(--web-red);
    color: var(--c-white);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

/* Startseite: Abschnitt „Neu: DIWA Verbund“ auf Dunkelblau – Text links, Bild der Amtswahl rechts */
.web-verbund__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: var(--web-gap) clamp(32px, 5vw, 80px);
}

.web .web-verbund__title {
    max-width: 22ch;
}

.web-verbund__points {
    margin-top: var(--space-5);
    font-size: 18px;
}

.web-verbund__figure {
    display: grid;
    justify-items: center;
    gap: var(--space-3);
    margin: 0;
}

.web-verbund__caption {
    max-width: 420px;
    color: var(--web-on-navy);
    font-size: 15px;
    line-height: 1.45;
    text-align: center;
}

.web-verbund__figure--light .web-verbund__caption {
    color: var(--c-muted);
}

/* Bild einer Auswahl im Verbund (Schmuck): Fenster mit Frage und einer Zeile je Amt */
.web-pick {
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    border-radius: var(--web-radius);
    background: var(--c-white);
    box-shadow: 0 28px 60px -28px rgba(5, 12, 35, 0.7);
    color: var(--web-text);
}

.web-verbund__figure--light .web-pick {
    border: 1px solid var(--web-line);
    box-shadow: var(--web-shadow);
}

.web-pick__bar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: 0;
    padding: 10px var(--space-4);
    border-bottom: 1px solid var(--web-line);
    background: var(--web-tint);
    color: var(--web-soft);
    font-size: 13px;
    font-weight: 700;
}

.web-pick__dots {
    display: inline-flex;
    gap: 5px;
}

.web-pick__dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--c-line-strong);
}

.web-pick__body {
    padding: var(--space-5) var(--space-5) var(--space-5);
}

.web-pick__title {
    margin: 0 0 var(--space-4);
    color: var(--web-ink);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.web-pick__list {
    display: grid;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.web-pick__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-3);
    min-height: 52px;
    padding: 7px var(--space-3) 7px 7px;
    border: 1px solid var(--c-line-strong);
    border-radius: 10px;
    background: var(--c-white);
    color: var(--web-ink);
    font-size: 16px;
    font-weight: 700;
}

.web-pick__item.is-chosen {
    border-color: var(--c-blue);
    background: var(--c-blue-tint);
    box-shadow: inset 0 0 0 1px var(--c-blue);
}

.web-pick__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--web-navy);
    color: var(--c-white);
}

.web-pick--citizen .web-pick__icon {
    background: var(--c-blue-light);
    color: var(--web-navy);
}

.web-pick__icon .icon {
    width: 20px;
    height: 20px;
}

.web-pick__go {
    width: 18px;
    height: 18px;
    color: var(--c-muted);
}

/* Seite DIWA Verbund: Ämter als Marken */
.web-aemter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.web-aemter li {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 44px;
    padding: 6px 16px 6px 12px;
    border: 1px solid var(--c-line-strong);
    border-radius: var(--radius-pill);
    background: var(--c-white);
    color: var(--web-ink);
    font-weight: 700;
}

.web-aemter .icon {
    width: 20px;
    height: 20px;
    color: var(--web-navy);
}

/* Einmal anmelden: drei Schritte mit Nummernschild */
.web-verbund-steps {
    display: grid;
    gap: var(--space-4);
    margin: var(--space-5) 0 0;
    padding: 0;
    list-style: none;
}

.web-verbund-steps li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: var(--space-4);
}

.web-verbund-steps p {
    margin: 0;
}

.web-verbund-steps strong {
    color: var(--web-ink);
}

/* Einstieg: zwei Wege nebeneinander bzw. untereinander */
.web-verbund-ways {
    display: grid;
    gap: var(--space-4);
    margin: var(--space-5) 0 0;
    padding: 0;
    list-style: none;
}

.web-verbund-ways li {
    padding: var(--space-4) var(--space-5);
    border: 1px solid var(--web-line);
    border-left: 5px solid var(--web-navy);
    border-radius: 12px;
    background: var(--c-white);
}

.web-verbund-ways .web-h3 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.web-verbund-ways .web-h3 .icon {
    flex: none;
    width: 22px;
    height: 22px;
    color: var(--web-navy);
}

.web-verbund-ways p {
    margin: 0;
    color: var(--web-soft);
}

.web-verbund-film .video-film {
    max-width: 960px;
}

/* Stufen des Routings (Amt → Standort → Team): Karten mit Pfeil dazwischen, je Stufe die Wege als Marken */
.web-cascade {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-7);
    margin: 0;
    padding: 0;
    list-style: none;
}

.web-cascade--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 820px;
}

.web-cascade__stage {
    position: relative;
    display: grid;
    align-content: start;
    gap: var(--space-2);
    padding: var(--space-5);
    border: 1px solid var(--web-line);
    border-top: 4px solid var(--web-navy);
    border-radius: 14px;
    background: var(--c-white);
    color: var(--web-text);
}

/* Pfeil zur nächsten Stufe (Schmuck) */
.web-cascade__stage + .web-cascade__stage::before {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(var(--space-7) / -2 - 9px);
    width: 18px;
    height: 18px;
    border-top: 3px solid var(--c-line-strong);
    border-right: 3px solid var(--c-line-strong);
    transform: translateY(-50%) rotate(45deg);
}

.web-section--navy .web-cascade__stage + .web-cascade__stage::before {
    border-color: rgba(255, 255, 255, 0.6);
}

.web-cascade__head {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: 0 0 var(--space-1);
}

.web-cascade__icon .icon {
    width: 26px;
    height: 26px;
    color: var(--web-navy);
}

.web-section--navy .web-cascade .web-h3 {
    color: var(--web-ink);
}

.web-cascade__ways {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.web-cascade__way {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 2px 12px;
    border: 1px solid var(--c-blue);
    border-radius: var(--radius-pill);
    background: var(--c-blue-tint);
    color: var(--c-blue-dark);
    font-size: 15px;
    font-weight: 700;
}

.web-cascade__text {
    margin: var(--space-1) 0 0;
    color: var(--web-soft);
}

/* Hinweis mit Rand auf Dunkelblau (Funktionen, „Zuständigkeit und Routing“): weiße Fläche, dunkle Schrift */
.web-section--navy .web-callout {
    color: var(--web-text);
}

.web-section--navy .web-callout :is(h3, strong) {
    color: var(--web-ink);
}

.web-section--navy .web-callout a:not(.btn) {
    color: var(--c-blue-dark);
}

.web-section--navy .web-callout :focus-visible {
    outline-color: var(--c-focus);
}

.web-modules strong a {
    color: var(--c-blue-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

/* ==== 5d Fassung Verwaltung: Website für den Verbund (templates/start/verwaltung/) =================================== */

/* „DIWA für jedes Amt“: je Amt Name, typische Anliegen als Marken und was DIWA dort leistet – „Einige Beispiele:“ darüber */
.web-head.web-offices__head {
    margin-bottom: var(--space-6);
}

.web-offices__intro {
    margin: 0 0 var(--space-3);
    color: var(--web-ink);
    font-size: 18px;
    font-weight: 700;
}

.web-offices > li {
    display: grid;
    align-content: start;
    gap: var(--space-2);
}

.web-offices .web-h3 {
    margin: 0;
}

.web-grid.web-offices > li .web-offices__label {
    margin-top: var(--space-1);
    color: var(--c-muted);
    font-size: 14px;
    font-weight: 700;
}

.web-offices__concerns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 var(--space-1);
    padding: 0;
    list-style: none;
}

.web-offices__concerns li {
    padding: 2px 12px;
    border: 1px solid var(--c-line-strong);
    border-radius: var(--radius-pill);
    background: var(--c-white);
    color: var(--web-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.web-offices strong {
    color: var(--web-ink);
}

/* Vier Zusagen je Amt über den Beispielen (Grundmodul und Module, Anliegen, Zuständigkeit, Mandant und Schlüssel) */
.web-offices__facts {
    margin-bottom: var(--space-5);
}

/* Hero der Fassung „Verwaltung“: „DIWA Verbund“ als kleine Zeile über der Überschrift (Teil des h1) */
.web-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--web-navy);
    font-size: clamp(18px, 1.6vw, 22px);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.web-hero .web-title.web-hero__verbund {
    max-width: 16ch;
}

/* Marken für Module (Grundmodul hervorgehoben: Rand und Schrift dunkelblau – nicht nur Farbe, es steht zuerst) */
.web-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.web-chips li {
    padding: 1px 10px;
    border: 1px solid var(--c-line-strong);
    border-radius: var(--radius-pill);
    background: var(--c-white);
    color: var(--web-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.web-chips li.is-base {
    border-color: var(--web-navy);
    color: var(--web-navy);
}

/* Bild des Aufbaus im Hero (start/verwaltung/_verbund_map.html.twig): Portal oben, Ämter darunter, Linie dazwischen */
.web-map {
    margin: 0;
    padding: clamp(18px, 2vw, 28px);
    border: 1px solid var(--web-line);
    border-radius: var(--web-radius);
    background: var(--c-white);
    box-shadow: var(--web-shadow);
}

.web-map__caption {
    margin: 0 0 var(--space-4);
    color: var(--c-muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.web-map__portal {
    padding: var(--space-4) var(--space-5);
    border-radius: 12px;
    background: var(--web-navy);
    color: var(--c-white);
}

.web-map__title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0 0 var(--space-3);
    color: var(--c-white);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.web-map__title .icon {
    color: #a8dca2;
}

.web-map__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.web-map__chips li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.14);
    color: var(--c-white);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.45;
}

.web-map__chips .icon {
    width: 16px;
    height: 16px;
    color: #a8dca2;
}

.web-map__offices {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
    gap: var(--space-3);
    margin: var(--space-5) 0 0;
    padding: 0;
    list-style: none;
}

.web-map__offices::before {
    position: absolute;
    top: calc(-1 * var(--space-5));
    left: 50%;
    width: 2px;
    height: var(--space-5);
    background: var(--web-navy);
    content: "";
}

.web-map__office {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--c-line-strong);
    border-top: 3px solid var(--web-navy);
    border-radius: 10px;
    background: var(--web-tint);
}

.web-map__name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--web-ink);
    font-weight: 700;
    line-height: 1.3;
}

.web-map__name .icon {
    color: var(--web-navy);
}

.web-map .web-chips li {
    padding: 0 8px;
    font-size: 13px;
}

.web-map__key,
.web-map__more {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--c-muted);
    font-size: 13.5px;
    line-height: 1.4;
}

.web-map__key .icon {
    width: 14px;
    height: 14px;
}

.web-map__office--more {
    border-style: dashed;
    border-top-style: dashed;
    background: var(--c-white);
}

/* Module je Amt als Beispiele: Name, Marken der Module, ein Satz */
.web-office-modules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

.web-office-modules > li {
    display: grid;
    align-content: start;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-5);
    border: 1px solid var(--web-line);
    border-radius: 12px;
    background: var(--c-white);
}

.web-office-modules .web-h3 {
    margin: 0;
}

.web-office-modules p {
    margin: 0;
    color: var(--web-soft);
    font-size: 15.5px;
}

/* Zwei Bildschirme des Portals nebeneinander (Funktionen, „Im Verbund“): Amtswahl und „Amt wechseln“ */
.web-pair {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: start;
    gap: var(--web-gap);
}

/* Drei Handys nebeneinander (Einblicke aus Ämtern), das mittlere etwas tiefer */
.web-phones--3 .web-figure {
    max-width: 260px;
}

/* Bildunterschrift auf Dunkelblau (Funktionen, „Zuständigkeit und Routing“) */
.web-section--navy .web-figure figcaption {
    color: var(--web-on-navy);
}

.web-h3.web-h3--big {
    margin-bottom: var(--space-3);
    font-size: 23px;
}

/* ==== 6 Schmal, Bewegung, Druck ===================================================================================== */

@media (max-width: 1119.98px) {
    .web-menu-toggle {
        display: inline-flex;
    }

    .web-bar__inner {
        flex-wrap: wrap;
        min-height: 68px;
    }

    .web-nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-3);
        padding: var(--space-2) 0 var(--space-5);
        border-top: 1px solid var(--web-line);
    }

    .web-header.is-open .web-nav {
        display: flex;
    }

    .web-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .web-nav__list li + li {
        border-top: 1px solid var(--web-line);
    }

    .web-nav__list a {
        display: flex;
        min-height: 52px;
        padding: 0 4px;
        border-radius: 0;
        font-size: 17px;
    }

    .web-nav__list a[aria-current="page"]::after {
        top: 12px;
        right: auto;
        bottom: 12px;
        left: -12px;
        width: 4px;
        height: auto;
    }

    .web-nav__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .web-nav__cta,
    .web-nav__more {
        justify-content: center;
    }

    .web-nav__more {
        display: inline-flex;
    }

    /* „DIWA ausprobieren“ steht dann im Menü, die Dienstleiste behält Rundgang, Film und Broschüre */
    .web-service__wide {
        display: none;
    }

    .web-footer__top {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-6);
    }

    .web-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1023.98px) {
    /* Dienstleiste: nur die drei Wege zum Kennenlernen, in einer Zeile */
    .web-service__note {
        display: none;
    }

    .web-service__links {
        justify-content: flex-start;
        margin-left: 0;
    }

    .web-hero__grid,
    .web-tour,
    .web-feature,
    .web-feature--media-first,
    .web-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .web-hero .web-title {
        max-width: 18ch;
    }

    .web-split__aside {
        position: static;
    }

    .web-feature__media {
        order: 2;
    }

    .web-promises {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .web-promises li:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .web-promises li:nth-child(n+3) {
        border-top: 1px solid var(--web-line);
    }

    .web-roles,
    .web-pledges,
    .web-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .web-steps--5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .web-ways {
        grid-template-columns: minmax(0, 1fr);
    }

    .web-cta__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .web-cta__actions {
        justify-items: start;
    }

    /* DIWA Verbund: Bild unter dem Text, Stufen untereinander mit Pfeil nach unten */
    .web-verbund__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .web-cascade,
    .web-cascade--2 {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-6);
        max-width: 560px;
    }

    .web-cascade__stage + .web-cascade__stage::before {
        top: calc(var(--space-6) / -2 - 11px);
        left: 50%;
        transform: translateX(-50%) rotate(135deg);
    }

    /* Fassung „Verwaltung“: Bildschirme des Portals untereinander */
    .web-pair {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .web {
        font-size: 16.5px;
    }

    .web-service__links {
        gap: 0 var(--space-4);
    }

    /* Kurze Beschriftungen, damit 3D-Rundgang, Film und Broschüre in eine Zeile passen */
    .web-service__more {
        display: none;
    }

    .web-title {
        font-size: 36px;
    }

    .web-hero .web-title {
        font-size: 36px;
    }

    .web-h2 {
        font-size: 29px;
    }

    .web-promises,
    .web-roles,
    .web-pledges,
    .web-grid,
    .web-grid--2,
    .web-grid--4,
    .web-steps,
    .web-steps--5,
    .web-modules {
        grid-template-columns: minmax(0, 1fr);
    }

    .web-promises li,
    .web-promises li + li {
        padding: var(--space-4) 0;
        border-left: 0;
    }

    .web-promises li + li {
        border-top: 1px solid var(--web-line);
    }

    .web-phones .web-figure:nth-child(2) {
        margin-top: var(--space-6);
    }

    .web-contact > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .web-weeks {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .web-weeks .web-weeks__start {
        grid-column: 1 / -1;
        min-height: 52px;
    }

    .web-actions .btn {
        flex: 1 1 100%;
    }

    .web-way > .btn {
        width: 100%;
        justify-content: center;
    }

    .web-way > .web-actions {
        justify-self: stretch;
    }

    .web-talk__ways {
        grid-template-columns: minmax(0, 1fr);
    }

    .web-talk__ways .btn {
        justify-self: stretch;
        justify-content: center;
    }

    .web-footer__map {
        grid-template-columns: minmax(0, 1fr);
    }

    .web-callout {
        padding: var(--space-5) var(--space-4);
    }

    .web-pick__body {
        padding: var(--space-4);
    }

    .web-pick__title {
        font-size: 18px;
    }

    .web-verbund-ways li {
        padding: var(--space-4);
    }

    /* Fassung „Verwaltung“: Module je Amt untereinander, drei Handys zu zweit nebeneinander */
    .web-office-modules {
        grid-template-columns: minmax(0, 1fr);
    }

    .web-phones--3 {
        flex-wrap: wrap;
    }

    .web-phones--3 .web-figure {
        flex: 0 1 calc(50% - var(--space-5) / 2);
    }

    .web-phones--3 .web-figure:nth-child(2) {
        margin-top: 0;
    }

    .web-map__portal {
        padding: var(--space-4);
    }
}

@media (prefers-reduced-motion: reduce) {
    .web-faq summary::after {
        transition: none;
    }
}

@media print {
    .web-service,
    .web-nav,
    .web-menu-toggle,
    .web-cta,
    .web-footer__map,
    .hj {
        display: none;
    }

    .web-section--navy {
        background: none;
        color: #000;
    }

    .web-section--navy :is(h2, h3, strong, li) {
        color: #000;
    }
}
