/*
 * DIWA 2.0 – Seitenrahmen der Verwaltung (App-Shell):
 *
 *   ┌──────────────────────────────────────────────────────────────────────┐
 *   │ Logo │ Tagesbetrieb · Einrichtung · Verwaltung │  Suchen (Strg K)  AA ▾ │  weißer Kopf mit feiner Linie
 *   ├───────────┬──────────────────────────────────────────────────────────┤
 *   │ Gruppen   │ Seitentitel                                              │  Seitenleiste: nur der aktuelle
 *   │ des       │ Inhalt auf hellem Grund, weiße Karten mit feiner Linie   │  Bereich, mit Gruppen
 *   │ Bereichs  │                                                          │  < 1024 px: ausklappbares Menü
 *   ├───────────┴──────────────────────────────────────────────────────────┤
 *   │ rote Fußleiste (schlank): Jobcenter                          Hilfe   │
 *   └──────────────────────────────────────────────────────────────────────┘
 *
 * Das Kontomenü ersetzt die frühere graue Kopfleiste. Die Klassen der alten Kopfleiste (.topbar*)
 * und der Uhr (.clock-pill) bleiben für eigene Layouts gültig.
 */

.app-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 100vh;
    background: var(--c-page);
}

.app-header {
    position: relative;
    z-index: 30;
}

.app-body {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    min-width: 0;
}

.app-main {
    min-width: 0;
    padding: var(--space-6) var(--content-pad) var(--space-7);
}

.app-main > * {
    max-width: var(--content-max);
}

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

/* ---- Kopf ------------------------------------------------------------------ */

/* Über der Demo-Leiste (z-index 40) und den Bändern darunter: Aufklappfelder der Kopfzeile (Ansicht, Konto)
   reichen über diese Leisten und dürfen von ihnen nicht verdeckt werden (Prüfung „Bedienelement verdeckt“). */
.site-header {
    position: relative;
    z-index: 45;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-line);
}

.site-header-inner {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    min-height: var(--header-h);
    padding: var(--space-2) var(--content-pad) var(--space-2) var(--space-5);
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: 0 1 auto;
    min-width: 0;
    color: var(--c-heading);
    text-decoration: none;
}

.brand:hover {
    color: var(--c-heading);
    text-decoration: none;
}

.brand__logo {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 44px;
    object-fit: contain;
}

.brand__mark {
    width: 36px;
    height: 36px;
    flex: none;
}

.brand__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: var(--lh-tight);
    text-align: left;
}

.brand__name {
    overflow: hidden;
    color: var(--c-heading);
    font-size: var(--fs-title);
    font-weight: var(--fw-bold);
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand__claim {
    color: var(--c-muted);
    font-size: var(--fs-xs);
    white-space: nowrap;
}

/* Die Tasten rechts behalten ihre Breite; enger wird der Name des Jobcenters (mit Auslassungspunkten) – sonst ragte
   die Kopfzeile zwischen 861 und 1100 px über den Rand und die Seite rollte quer (Touren-Prüfung, 1024 px). */
.site-header-meta {
    display: flex;
    flex: none;
    align-items: center;
    gap: var(--space-3);
    margin-left: auto;
    min-width: 0;
}

/* Bereichswechsel Tagesbetrieb · Einrichtung · Verwaltung (Segmente) */
.area-switch {
    flex: none;
    margin-left: var(--space-4);
}

.area-switch__list {
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 3px;
    border: 1px solid var(--c-line-strong);
    border-radius: 8px;
    background: var(--c-page);
    list-style: none;
}

.area-switch__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: calc(var(--target-sm) + 2px);
    padding: 4px calc(var(--space-3) + 2px);
    border-radius: 6px;
    color: var(--c-text-strong);
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    white-space: nowrap;
    text-decoration: none;
}

.area-switch__link .icon {
    width: var(--icon-sm);
    height: var(--icon-sm);
    color: var(--c-muted);
}

.area-switch__link:hover {
    background: var(--c-surface);
    color: var(--c-blue-dark);
    text-decoration: none;
}

.area-switch__link[aria-current] {
    background: var(--c-surface);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1), inset 0 0 0 1px var(--c-line-strong);
    color: var(--c-blue-dark);
}

.area-switch__link[aria-current] .icon {
    color: var(--c-blue);
}

.area-switch__link:focus-visible {
    outline-offset: 0;
}

/* Einstieg in Suche und Befehle (Strg+K) */
.search-trigger {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-width: 260px;
    min-height: calc(var(--control-h) - 2px);
    padding: 0 6px 0 var(--field-pad-x);
    border: 1px solid var(--c-line-strong);
    border-radius: var(--radius);
    background: var(--c-page);
    color: var(--c-muted);
    font: inherit;
    font-size: var(--fs-small);
    white-space: nowrap;
    cursor: pointer;
}

.search-trigger .icon {
    width: var(--icon-sm);
    height: var(--icon-sm);
}

.search-trigger .kbd {
    margin-left: auto;
}

.search-trigger:hover {
    border-color: var(--c-border);
    background: var(--c-surface);
    color: var(--c-text-strong);
}

/* „Ansicht“: DIWA so sehen, wie es andere sehen – ein Schalter in der Kopfzeile (Rollen, Person, Kundin online,
   Kiosk, Display; zurück mit einem Klick). Läuft eine andere Ansicht, ist er hervorgehoben und nennt sie. */
.view-switch {
    position: relative;
    flex: none;
}

.view-switch__button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: var(--target-min);
    max-width: 280px;
    padding: 4px 12px;
    border: 1px solid var(--c-line-strong);
    border-radius: var(--radius-pill);
    background: var(--c-surface);
    color: var(--c-text-strong);
    font: inherit;
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    white-space: nowrap;
    cursor: pointer;
}

.view-switch__button:hover,
.view-switch__button[aria-expanded="true"] {
    border-color: var(--c-blue);
    color: var(--c-blue-dark);
}

.view-switch__button.is-active {
    border-color: var(--c-warning-border);
    background: var(--c-warning-bg);
}

.view-switch__button .icon {
    width: var(--icon-md);
    height: var(--icon-md);
    flex: none;
}

.view-switch__label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-switch__caret {
    width: 14px;
    height: 14px;
    color: var(--c-muted);
}

.view-switch__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 60;
    width: calc(var(--menu-w) + 40px);
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: var(--space-2);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-card);
    background: var(--c-surface);
    box-shadow: var(--shadow-pop);
}

.view-switch__intro {
    margin: var(--space-1) var(--space-3) var(--space-2);
    color: var(--c-muted);
    font-size: var(--fs-tiny);
    line-height: 1.4;
}

.view-switch__title {
    margin: var(--space-3) var(--space-3) var(--space-1);
    color: var(--c-muted);
    font-size: var(--fs-tiny);
    font-weight: var(--fw-medium);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.view-switch__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.view-switch__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    width: 100%;
    min-height: calc(var(--target-min) + 4px);
    padding: var(--space-2) var(--space-3);
    border: 0;
    border-radius: var(--radius);
    background: none;
    color: var(--c-text-strong);
    font: inherit;
    font-size: var(--fs-small);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.view-switch__item:hover,
.view-switch__item:focus-visible {
    background: var(--c-page);
    text-decoration: none;
}

.view-switch__item[aria-current="true"] {
    background: var(--c-blue-light);
}

.view-switch__item > .icon {
    width: var(--icon-md);
    height: var(--icon-md);
    flex: none;
    margin-top: 2px;
    color: var(--c-blue);
}

.view-switch__item > span {
    display: grid;
    flex: 1;
    gap: 1px;
    line-height: 1.35;
}

.view-switch__item > span > span {
    color: var(--c-muted);
    font-size: var(--fs-tiny);
}

.view-switch__item .demo-kbd {
    margin-left: auto;
}

.view-switch__item--back {
    background: var(--c-warning-bg);
}

.view-switch__back {
    margin-bottom: var(--space-1);
}

/* Schmal: nur das Symbol (die laufende Ansicht nennt das Band bzw. die Demo-Leiste) */
@media (max-width: 640px) {
    .view-switch__button {
        justify-content: center;
        width: var(--target-min);
        padding: 0;
    }

    .view-switch__label,
    .view-switch__caret {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* Kontomenü (ersetzt die graue Kopfleiste) */
.account-menu {
    position: relative;
    flex: none;
}

.account-menu__button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: var(--target-min);
    max-width: 260px;
    padding: 4px 8px 4px 4px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    background: none;
    color: var(--c-text-strong);
    font: inherit;
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    cursor: pointer;
}

.account-menu__button:hover,
.account-menu__button[aria-expanded="true"] {
    border-color: var(--c-line-strong);
    background: var(--c-page);
}

.account-menu__name {
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Kopfzeile mit Bereichswechsel, Ort, Assistent und Suche: Der Name steht erst ab sehr breiten Bildschirmen
   neben dem Kürzel, sonst nur im Kontomenü – so bleibt der Name des Jobcenters lesbar und nichts ragt über den Rand. */
@media (max-width: 1599.98px) {
    .account-menu__name,
    .account-menu__button > .icon {
        display: none;
    }
}

.account-menu__button > .icon {
    width: var(--icon-sm);
    height: var(--icon-sm);
    color: var(--c-muted);
}

.account-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 60;
    width: var(--menu-w);
    max-width: calc(100vw - 24px);
    padding: var(--space-2);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-card);
    background: var(--c-surface);
    box-shadow: var(--shadow-pop);
}

.account-menu__who {
    display: grid;
    gap: 2px;
    padding: var(--space-2) var(--space-3) var(--space-3);
    border-bottom: 1px solid var(--c-line);
    margin-bottom: var(--space-1);
    line-height: 1.35;
}

.account-menu__who strong {
    color: var(--c-heading);
    font-weight: var(--fw-medium);
    overflow-wrap: anywhere;
}

.account-menu__who span {
    color: var(--c-muted);
    font-size: var(--fs-tiny);
    overflow-wrap: anywhere;
}

.account-menu__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.account-menu__item,
.account-menu__list a,
.account-menu__list button {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    min-height: var(--target-min);
    padding: 4px var(--space-3);
    border: 0;
    border-radius: var(--radius);
    background: none;
    color: var(--c-text-strong);
    font: inherit;
    font-size: var(--fs-small);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.account-menu__list .icon {
    width: var(--icon-md);
    height: var(--icon-md);
    color: var(--c-muted);
}

.account-menu__list a:hover,
.account-menu__list button:hover {
    background: var(--c-row-hover);
    color: var(--c-blue-dark);
    text-decoration: none;
}

.account-menu__list a:focus-visible,
.account-menu__list button:focus-visible {
    outline-offset: -3px;
}

.account-menu__logout {
    margin-top: var(--space-1);
    padding-top: var(--space-1);
    border-top: 1px solid var(--c-line);
}

/* frühere Zusätze der Kopfleiste (z. B. „| Raum 1.10“) im Kontomenü ohne Trennstrich */
.account-menu__who .topbar-sep {
    display: none;
}

.account-menu__list form {
    margin: 0;
}

/* Initialen statt Bild */
.avatar {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: var(--avatar-size);
    height: var(--avatar-size);
    border-radius: 50%;
    background: var(--c-slate);
    color: #fff;
    font-size: calc(var(--avatar-size) * 0.4);
    font-weight: var(--fw-bold);
    letter-spacing: 0.02em;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    min-height: var(--target-min);
    padding: 4px 12px;
    border: 1px solid var(--c-control-border);
    border-radius: var(--radius);
    background: var(--c-surface);
    color: var(--c-text-strong);
    font: inherit;
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    cursor: pointer;
}

.nav-toggle:hover {
    border-color: var(--c-border);
    background: var(--c-page);
}

/* Uhr (frühere Kopfzeile; in eigenen Layouts weiter nutzbar) */
.clock-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 14px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-pill);
    background: var(--c-page);
    color: var(--c-text);
    font-size: var(--fs-small);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.clock-pill strong {
    color: var(--c-text-strong);
    font-weight: var(--fw-bold);
}

/* ---- Frühere graue Kopfleiste (nur noch Kompatibilität) --------------------- */

.topbar {
    background: var(--c-panel);
    border-bottom: 1px solid var(--c-line);
    font-size: var(--fs-tiny);
    line-height: 1.5;
    color: var(--c-text);
}

.topbar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-1) var(--space-4);
    min-height: 26px;
    padding: 2px var(--content-pad);
}

.topbar .topbar-user {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 var(--space-2);
}

.topbar .topbar-user strong {
    color: var(--c-text-strong);
    font-weight: var(--fw-medium);
}

.topbar-sep {
    color: var(--c-border);
}

.topbar-link,
.topbar .topbar-logout button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--c-blue);
    font: inherit;
    font-size: var(--fs-tiny);
    cursor: pointer;
}

.topbar .topbar-logout {
    display: inline;
    margin: 0;
}

/* Ortsangabe im Kopf (Block „context“, z. B. der gewählte Platz am Arbeitsplatz) */
.header-context {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 260px;
    padding: 4px 12px;
    border: 1px solid var(--c-line-strong);
    border-radius: var(--radius-pill);
    background: var(--c-page);
    color: var(--c-text-strong);
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    white-space: nowrap;
}

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

.header-context .topbar-sep {
    display: none;
}

@media (max-width: 640px) {
    .header-context {
        display: none;
    }
}

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

/* ---- Hinweisbänder (Supportmodus, Testumgebung, Demo) ------------------------ */

.env-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-2) var(--space-4);
    padding: var(--space-2) var(--content-pad);
    background: var(--c-warning-bg);
    border-bottom: 1px solid var(--c-warning-border);
    color: var(--c-warning-text);
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
}

.env-banner .icon {
    width: 16px;
    height: 16px;
}

.env-banner--support {
    background: var(--c-slate);
    border-bottom-color: var(--c-slate-border);
    color: #fff;
}

.env-banner--support a {
    color: #fff;
    text-decoration: underline;
}

.env-banner--support a:focus-visible,
.env-banner--support button:focus-visible {
    outline-color: #fff;
}

/* „Supportmodus beenden“ ist ein kleines Formular (POST), sieht aber aus wie ein Link. */
.env-banner--support form {
    display: inline;
    margin: 0;
}

.env-banner--support button {
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

/* Kennzeichen im Kopf (Testumgebung, Demo) */
.env-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border: 1px solid var(--c-warning-border);
    border-radius: var(--radius-pill);
    background: var(--c-warning-bg);
    color: var(--c-warning-text);
    font-size: var(--fs-tiny);
    font-weight: var(--fw-medium);
    white-space: nowrap;
}

.env-flag .icon {
    width: 14px;
    height: 14px;
}

/* ---- Seitenleiste: nur der aktuelle Bereich, mit Gruppen ------------------------ */

.app-sidebar {
    min-width: 0;
    background: var(--c-surface);
    border-right: 1px solid var(--c-line);
}

.app-sidebar-inner {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    max-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: var(--space-4) 0 var(--space-5);
    scrollbar-width: thin;
}

.side-nav-top {
    display: none;
}

/* Bereichswechsel in der Seitenleiste – nur auf schmalen Bildschirmen sichtbar */
.side-areas {
    display: none;
}

.side-nav-section + .side-nav-section {
    margin-top: var(--space-4);
}

.side-nav-heading {
    margin: 0 0 var(--space-1);
    padding: 0 var(--space-5);
    color: var(--c-muted);
    font-size: var(--fs-tiny);
    font-weight: var(--fw-medium);
    letter-spacing: 0.01em;
    line-height: 1.6;
}

/* „Erweitert“: einklappbare Gruppe am Ende der Seitenleiste */
.side-nav-more {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: var(--target-sm);
    cursor: pointer;
    list-style: none;
}

.side-nav-more::-webkit-details-marker {
    display: none;
}

.side-nav-more .icon {
    width: 14px;
    height: 14px;
    transition: transform var(--duration);
}

.side-nav-section--more[open] > .side-nav-more .icon {
    transform: rotate(90deg);
}

.side-nav-more:hover {
    color: var(--c-text-strong);
}

.side-nav-list {
    display: grid;
    gap: 1px;
    margin: 0;
    padding: 0 var(--space-3);
    list-style: none;
}

.side-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: var(--nav-item-h);
    padding: var(--nav-item-y) var(--space-3);
    border-radius: var(--radius);
    color: var(--c-text-strong);
    font-size: var(--fs-nav);
    line-height: 1.3;
    text-decoration: none;
}

.side-nav-link .icon {
    width: var(--icon-md);
    height: var(--icon-md);
    color: var(--c-muted);
}

.side-nav-link:hover {
    background: var(--c-row-hover);
    color: var(--c-blue-dark);
    text-decoration: none;
}

.side-nav-link:hover .icon {
    color: var(--c-blue);
}

.side-nav-link:focus-visible {
    outline-offset: -3px;
}

.side-nav-link[aria-current="page"] {
    background: var(--c-blue-light);
    color: var(--c-blue-dark);
    font-weight: var(--fw-medium);
}

.side-nav-link[aria-current="page"] .icon {
    color: var(--c-blue);
}

/* Markierung links: Zustand nicht nur über die Flächenfarbe */
.side-nav-link[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: calc(-1 * var(--space-3));
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--c-blue);
}

.side-nav-count {
    margin-left: auto;
    min-width: 22px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    background: var(--c-panel);
    color: var(--c-text-strong);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    line-height: 20px;
    text-align: center;
}

/* ---- Fußleiste (schlank, ruhig; Hausfarbe nur als feine Akzentlinie) ---------- */

.footer-bar {
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--c-line);
    background: var(--c-surface);
    box-shadow: inset 0 2px 0 var(--brand-primary);
    color: var(--c-muted);
}

.footer-bar-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-height: var(--footer-h);
    padding: 4px var(--content-pad) 4px var(--space-5);
}

.footer-bar-note {
    min-width: 0;
    overflow: hidden;
    font-size: var(--fs-tiny);
    font-weight: var(--fw-medium);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.footer-bar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.footer-bar-link {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: calc(var(--target-sm) - 2px);
    padding: 3px 12px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    background: var(--c-surface);
    color: var(--c-text-strong);
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    line-height: 1.4;
    text-decoration: none;
}

.footer-bar-link:hover,
.footer-bar-link:focus-visible {
    border-color: var(--c-line-strong);
    background: var(--c-row-alt);
    color: var(--c-text-strong);
    text-decoration: none;
}

.footer-bar-link .icon {
    width: 16px;
    height: 16px;
}

/* ---- Schmale Bildschirme: Seitenleiste als ausklappbares Menü ------------------- */

.app-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: var(--overlay);
}

@media (max-width: 1279.98px) {
    .search-trigger {
        min-width: 0;
    }

    .search-trigger__text {
        display: none;
    }
}

/* Mittlere Breiten (Tablet quer, kleines Notebook): „Ansicht“ und „Assistent“ nur als Symbol, die Suche ohne Kürzel –
   die Namen bleiben für Screenreader, die gewählte Ansicht nennt die Demo-Leiste bzw. das Band. Sonst ragte die
   Kopfzeile über den Rand (Touren-Prüfung bei 960 und 1024 px: Fragezeichen und Kontomenü außerhalb). */
@media (min-width: 641px) and (max-width: 1199.98px) {
    .view-switch__label,
    .site-header .assistant-launch span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .view-switch__button,
    .site-header .assistant-launch {
        gap: 4px;
        padding: 6px 10px;
    }

    .search-trigger .kbd {
        display: none;
    }
}

@media (max-width: 1023.98px) {
    :root {
        --content-pad: 24px;
    }

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

    .nav-toggle {
        display: inline-flex;
    }

    .site-header-inner {
        padding-left: var(--space-4);
    }

    /* Neben dem Bereichswechsel nur das Symbol „Menü“ (Beschriftung für Screenreader) – Platz für den Namen. */
    .site-header:has(.area-switch) .nav-toggle span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .app-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 90;
        width: min(320px, 86vw);
        border-right: 0;
        box-shadow: var(--shadow-pop);
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform 0.2s ease, visibility 0.2s;
    }

    .app-shell.is-sidebar-open .app-sidebar {
        transform: none;
        visibility: visible;
    }

    .app-sidebar-inner {
        position: static;
        height: 100%;
        max-height: none;
        padding-top: 0;
    }

    .side-nav-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 56px;
        margin-bottom: var(--space-3);
        padding: 0 var(--space-2) 0 var(--space-5);
        border-bottom: 1px solid var(--c-line);
    }

    .side-nav-top-title {
        color: var(--c-heading);
        font-size: var(--fs-base);
        font-weight: var(--fw-medium);
    }

    .side-nav-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: var(--radius);
        background: none;
        color: var(--c-text-strong);
        cursor: pointer;
    }

    .side-nav-close:hover {
        background: var(--c-row-hover);
    }

    .clock-pill {
        display: none;
    }
}

/* Darstellung „Groß“ (Plan 3.23): Die größere Schrift braucht in der Kopfzeile mehr Platz – „Ansicht“ und „Assistent“
   stehen unter 1600 px nur als Symbol, die Suche ohne Text (wie sonst auf schmaleren Bildschirmen); die Namen bleiben
   für Screenreader. So bleibt der Name des Jobcenters lesbar. */
@media (min-width: 1200px) and (max-width: 1599.98px) {
    :root[data-dichte="gross"] :is(.view-switch__label, .site-header .assistant-launch span) {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    :root[data-dichte="gross"] :is(.view-switch__button, .site-header .assistant-launch) {
        gap: 4px;
        padding: 6px 10px;
    }

    :root[data-dichte="gross"] .search-trigger {
        justify-content: center;
        width: var(--target-min);
        min-width: 0;
        height: var(--target-min);
        padding: 0;
    }

    :root[data-dichte="gross"] :is(.search-trigger__text, .search-trigger .kbd) {
        display: none;
    }
}

/* Darstellung „Groß“ (Plan 3.23): Unter 1280 px wird die Seitenleiste zum ausklappbaren Menü wie auf Tablets – die
   größere Schrift braucht die Breite für den Inhalt. Dieselben Regeln wie unter 1024 px, kein zweites Layout. */
@media (min-width: 1024px) and (max-width: 1279.98px) {
    :root[data-dichte="gross"] .app-body {
        grid-template-columns: minmax(0, 1fr);
    }

    :root[data-dichte="gross"] .nav-toggle {
        display: inline-flex;
    }

    :root[data-dichte="gross"] .site-header-inner {
        padding-left: var(--space-4);
    }

    /* Neben Menü, Bereichswechsel und Werkzeugen steht nur das Zeichen (der Name bleibt Teil des Links) – sonst bliebe
       vom Namen nur „Jobce…“. */
    :root[data-dichte="gross"] .site-header:has(.area-switch) .brand__text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    :root[data-dichte="gross"] .site-header:has(.area-switch) .nav-toggle span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    :root[data-dichte="gross"] .app-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 90;
        width: min(320px, 86vw);
        border-right: 0;
        box-shadow: var(--shadow-pop);
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform 0.2s ease, visibility 0.2s;
    }

    :root[data-dichte="gross"] .app-shell.is-sidebar-open .app-sidebar {
        transform: none;
        visibility: visible;
    }

    :root[data-dichte="gross"] .app-sidebar-inner {
        position: static;
        height: 100%;
        max-height: none;
        padding-top: 0;
    }

    :root[data-dichte="gross"] .side-nav-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 56px;
        margin-bottom: var(--space-3);
        padding: 0 var(--space-2) 0 var(--space-5);
        border-bottom: 1px solid var(--c-line);
    }

    :root[data-dichte="gross"] .side-nav-top-title {
        color: var(--c-heading);
        font-size: var(--fs-base);
        font-weight: var(--fw-medium);
    }

    :root[data-dichte="gross"] .side-nav-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: var(--radius);
        background: none;
        color: var(--c-text-strong);
        cursor: pointer;
    }

    :root[data-dichte="gross"] .side-nav-close:hover {
        background: var(--c-row-hover);
    }
}

@media (max-width: 860px) {
    .site-header .area-switch {
        display: none;
    }

    .side-areas {
        display: block;
        margin: 0 var(--space-3) var(--space-4);
    }

    .side-areas__list {
        display: grid;
        gap: 2px;
        margin: 0;
        padding: 3px;
        border: 1px solid var(--c-line-strong);
        border-radius: 8px;
        background: var(--c-page);
        list-style: none;
    }

    .side-areas .area-switch__link {
        width: 100%;
        min-height: 40px;
    }
}

@media (max-width: 640px) {
    :root {
        --content-pad: 16px;
    }

    .app-main {
        padding-top: var(--space-5);
    }

    .site-header-inner {
        gap: var(--space-2);
        min-height: 56px;
        padding: 6px var(--space-3);
    }

    .nav-toggle {
        justify-content: center;
        width: var(--target-min);
        padding: 0;
    }

    /* „Menü“ bleibt Name der Taste für Screenreader, sichtbar nur das Symbol */
    .nav-toggle span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .brand__mark {
        width: 32px;
        height: 32px;
    }

    .brand__claim,
    .account-menu__name,
    .account-menu__button > .icon {
        display: none;
    }

    /* Lange Namen („Jobcenter Musterstadt (Test Venne)“) brechen um – höchstens zwei Zeilen, nie über den Rand */
    .brand__name {
        display: -webkit-box;
        max-width: none;
        font-size: 15px;
        line-height: 1.2;
        white-space: normal;
        overflow-wrap: break-word;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .brand__logo {
        max-width: 150px;
        max-height: 36px;
    }

    .site-header-meta {
        gap: var(--space-1);
    }

    .search-trigger {
        justify-content: center;
        width: var(--target-min);
        height: var(--target-min);
        padding: 0;
    }

    .search-trigger .kbd {
        display: none;
    }

    /* Kennzeichen nur als Symbol, Text bleibt für Screenreader */
    .env-flag {
        flex: none;
        padding: 6px;
    }

    .env-flag__text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .account-menu__button {
        padding: 4px;
    }

    .topbar-inner {
        justify-content: space-between;
    }

    .footer-bar-inner {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
}

/* Schmal: Das Aufklappfeld „Ansicht“ richtet sich an der Kopfzeile aus (volle Breite mit Rand), nicht an der Taste –
   sonst ragte es links über den Rand. */
@media (max-width: 640px) {
    .view-switch {
        position: static;
    }

    .view-switch__panel {
        left: var(--space-3);
        right: var(--space-3);
        width: auto;
        max-width: none;
    }
}

/* Sehr schmal (Telefon): Menü, Zeichen, „Ansicht“, Assistent, Suche und Konto passen nur ohne den Namen nebeneinander –
   der Name bleibt Teil des Links (Screenreader), sichtbar ist das Zeichen. Sonst ragte das Kontomenü über den Rand. */
@media (max-width: 440px) {
    .site-header .brand__text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .site-header .brand__logo {
        max-width: 96px;
    }
}

@media print {
    .app-shell {
        display: block;
        min-height: 0;
        background: #fff;
    }

    .app-header,
    .app-sidebar,
    .app-backdrop,
    .footer-bar,
    .skip-link,
    .env-banner {
        display: none !important;
    }

    .app-body {
        display: block;
    }

    .app-main {
        padding: 0;
    }
}

/* ---- Seitenkopf ---------------------------------------------------------------- */

.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-3) var(--space-5);
    margin-bottom: var(--space-5);
}

.page-header__text {
    flex: 1 1 32rem;
    min-width: 0;
}

.page-header h1 {
    margin: 0;
}

.page-header__subtitle {
    display: inline-block;
    margin-left: var(--space-1);
    color: var(--c-muted);
    font-size: var(--fs-h2);
    font-weight: var(--fw-regular);
    letter-spacing: 0;
}

.page-header__kicker {
    display: block;
    margin-bottom: 2px;
    color: var(--c-muted);
    font-size: var(--fs-small);
}

.page-header__lead {
    max-width: 75ch;
    margin: var(--space-2) 0 0;
    color: var(--c-text);
    font-size: var(--fs-base);
}

.page-header__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1) var(--space-3);
    margin: var(--space-2) 0 0;
    color: var(--c-muted);
    font-size: var(--fs-small);
}

.page-header__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    margin: 0 0 var(--space-2);
    padding: 0;
    list-style: none;
    color: var(--c-muted);
    font-size: var(--fs-small);
}

.breadcrumbs a {
    color: var(--c-muted);
    text-decoration: underline;
    text-decoration-color: var(--c-line-strong);
}

.breadcrumbs a:hover {
    color: var(--c-blue-dark);
    text-decoration-color: currentColor;
}

.breadcrumbs li + li::before {
    content: "›";
    margin-right: var(--space-1);
    color: var(--c-border);
}

.section {
    margin-bottom: var(--space-6);
}

.section-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-4);
    margin-bottom: var(--space-3);
}

.section-title h2 {
    margin: 0;
}

@media (max-width: 640px) {
    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 19px;
    }

    .page-header {
        align-items: flex-start;
    }

    .page-header__subtitle {
        display: block;
        margin-left: 0;
        font-size: var(--fs-base);
    }
}

/* ---- Startseiten der Bereiche ------------------------------------------------ */

.dashboard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
    margin-bottom: var(--gap);
}

.dashboard__cell--full {
    grid-column: 1 / -1;
}

/* Eine halbe Karte ohne Partner (zwischen ganzen Karten oder allein am Ende) nimmt die ganze Breite –
   sonst bleibt rechts eine leere Fläche. */
.dashboard__cell--half:is(:first-child, .dashboard__cell--full + *):is(:last-child, :has(+ .dashboard__cell--full)) {
    grid-column: 1 / -1;
}

/* Überblick der Verwaltung: weitere Wege zum Einrichten in einer ruhigen Zeile unter dem Seitenkopf */
.admin-ways {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1) var(--space-2);
    margin: calc(-1 * var(--space-2)) 0 var(--gap);
    font-size: var(--fs-small);
}

.admin-ways a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.start-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: var(--gap);
    margin-bottom: var(--gap);
}

/* Live-Teil des Lagebilds: Kennzahlen und Live-Karten mit gleichem Abstand wie alle Karten */
.area-live {
    display: grid;
    gap: var(--gap);
    margin-bottom: var(--gap);
}

.area-live > * {
    min-width: 0;
    margin: 0;
}

.start-grid > * {
    min-width: 0;
}

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: 1 / -1; }

@media (max-width: 1179.98px) {
    .start-grid > * {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1023.98px) {
    .dashboard {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- Anmeldung: helle Seite, Karte in der Mitte, rote Fußleiste ------------------- */

body.diwa-auth {
    background: var(--c-page);
}

.auth {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth__main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-4) var(--space-7);
}

.auth__brand {
    display: inline-flex;
    justify-content: center;
    margin-bottom: var(--space-5);
}

.auth__brand .brand__logo {
    max-width: 260px;
    max-height: 72px;
}

.auth__brand .brand__mark {
    width: 44px;
    height: 44px;
}

.auth__brand .brand__name {
    font-size: 20px;
}

.auth__card {
    width: 100%;
    padding: var(--space-6) var(--space-6) var(--space-5);
    border: 1px solid var(--c-line);
    border-radius: 14px;
    background: var(--c-surface);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
}

.auth__main h1 {
    margin: 0 0 var(--space-1);
    font-size: 24px;
    text-align: left;
}

.auth__lead {
    margin: 0 0 var(--space-5);
    color: var(--c-text);
    text-align: left;
}

.auth__lead:empty {
    display: none;
}

/* Formularbox der Anmeldung: früher grau, jetzt Teil der Karte */
.auth-panel {
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
}

.auth-panel .field,
.auth-panel .alert {
    max-width: none;
    margin: 0 0 var(--space-4);
    text-align: left;
}

.auth-panel .form-actions {
    justify-content: stretch;
    margin-top: var(--space-5);
}

.auth-panel .form-actions .btn {
    flex: 1 1 100%;
}

.auth__secondary {
    width: 100%;
    margin-top: var(--space-5);
    color: var(--c-muted);
    font-size: var(--fs-small);
    text-align: center;
}

.auth__secondary:empty {
    display: none;
}

.auth__secondary h2 {
    margin: 0 0 2px;
    color: var(--c-text-strong);
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
}

.auth__secondary p {
    margin-left: auto;
    margin-right: auto;
}

.auth .footer-bar-inner {
    justify-content: center;
}

@media (max-width: 640px) {
    .auth__main {
        padding-top: var(--space-6);
    }

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

/* ---- Öffentliche Seiten (Online-Buchung, Wartestatus) --------------------------- */

body.diwa-public {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--c-white);
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--space-5);
}

.public-header {
    background: var(--c-white);
    border-bottom: 1px solid var(--c-line);
}

.public-header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-height: 76px;
}

.public-header-title {
    font-size: var(--fs-small);
    color: var(--c-text);
}

.public-main {
    flex: 1 0 auto;
    padding-top: var(--space-6);
    padding-bottom: var(--space-7);
}

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

.public-footer {
    padding: var(--space-4) 0;
    background: var(--c-page);
    border-top: 1px solid var(--c-line);
    font-size: var(--fs-small);
}

.public-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-2) var(--space-5);
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-4);
    list-style: none;
    margin: 0;
    padding: 0;
}

.legal-links a {
    color: var(--c-text);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .container {
        padding: 0 var(--space-4);
    }
}

/* Leerer Zusatzbereich unter Anmeldekarten nimmt keinen Platz ein */
.auth__secondary:empty {
    display: none;
}

/* ==== Plan „Einfach einrichten“, Phase 2: Fragezeichen, Hinweiszeile, Plattform-Marke, Mein Start, Touren ==== */

/* Fragezeichen in der Kopfzeile: Hilfe und Touren */
.help-launch {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: var(--target-min);
    height: var(--target-min);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    color: var(--c-text-strong);
}

.help-launch:hover,
.help-launch:focus-visible {
    border-color: var(--c-line-strong);
    background: var(--c-page);
    color: var(--c-blue);
}

.help-launch .icon {
    width: calc(var(--icon-md) + 2px);
    height: calc(var(--icon-md) + 2px);
}

/* Höchstens eine Hinweiszeile: Hinweise des Jobcenters eingeklappt */
.notice-line {
    margin: 0 0 var(--space-4);
    border: 1px solid var(--c-line);
    border-left: 4px solid var(--c-blue);
    border-radius: var(--radius);
    background: var(--c-surface);
}

.notice-line__summary {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 44px;
    padding: var(--space-2) var(--space-3);
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    color: var(--c-text-strong);
    cursor: pointer;
    list-style: none;
}

.notice-line__summary::-webkit-details-marker {
    display: none;
}

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

.notice-line__more {
    margin-left: auto;
    color: var(--c-blue);
    font-weight: 400;
}

.notice-line[open] .notice-line__more {
    visibility: hidden;
}

.notice-line__body {
    display: grid;
    gap: var(--space-3);
    padding: 0 var(--space-3) var(--space-3);
}

/* Plattform-Marke DIWA (Logo quer) */
.brand--platform {
    gap: var(--space-3);
}

.brand__wordmark {
    display: block;
    width: auto;
    height: 34px;
    flex: none;
}

.brand--stage .brand__wordmark {
    height: 44px;
}

.brand__claim--platform {
    padding-left: var(--space-3);
    border-left: 1px solid var(--c-line-strong);
    color: var(--c-muted);
    font-size: var(--fs-small);
    white-space: nowrap;
}

.footer-bar-note--brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-bar-logo {
    display: block;
    width: auto;
    height: 20px;
}

/* „Mein Start“: eine Zeile „heute“, darunter 3–6 große Kacheln */
.my-start__today {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-2) var(--space-5);
    margin: 0 0 var(--space-5);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-card);
    background: var(--c-surface);
    font-size: var(--fs-small);
    color: var(--c-text);
}

.my-start__today-label {
    color: var(--c-muted);
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: var(--fs-tiny);
}

.my-start__figure {
    color: var(--c-text);
    text-decoration: none;
}

.my-start__figure strong {
    color: var(--c-heading);
    font-size: var(--fs-lead);
}

a.my-start__figure:hover strong {
    color: var(--c-blue);
}

.my-start__figure.is-alert strong {
    color: var(--c-danger-text, #a3141b);
}

.my-start__tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Raster statt Zeile: Der Hinweis auf den Bereich („→ in der Einrichtung“, AreaLinkMarker) steht unter dem Text und
   nimmt ihm keine Breite – sonst brach der Text bei 1920 px Wort für Wort um und der Hinweis überdeckte den Titel. */
.my-start__tile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: start;
    align-items: start;
    gap: var(--space-2) var(--space-4);
    height: 100%;
    min-height: 112px;
    padding: var(--space-5);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-card);
    background: var(--c-surface);
    box-shadow: var(--shadow-card);
    color: var(--c-text);
    text-decoration: none;
}

.my-start__tile:hover,
.my-start__tile:focus-visible {
    border-color: var(--c-blue);
    box-shadow: 0 0 0 1px var(--c-blue);
    text-decoration: none;
}

.my-start__tile > .area-hint {
    grid-column: 2;
    margin: 0;
    white-space: normal;
}

.my-start__icon {
    display: inline-flex;
    flex: none;
    grid-row: span 2;
    align-items: center;
    justify-content: center;
    width: calc(var(--target-min) + 8px);
    height: calc(var(--target-min) + 8px);
    border-radius: var(--radius);
    background: var(--c-blue-light);
    color: var(--c-blue-dark);
}

.my-start__icon .icon {
    width: 24px;
    height: 24px;
}

.my-start__text {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.my-start__text strong {
    color: var(--c-heading);
    font-size: var(--fs-lead);
    font-weight: 700;
}

/* Hilfe → Touren */
.help-tours {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    margin: 0 0 var(--space-5);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-card);
    background: var(--c-surface);
}

.help-tours > .icon {
    width: 20px;
    height: 20px;
    color: var(--c-blue);
}

.tour-list {
    display: grid;
    gap: var(--space-3);
    margin: 0 0 var(--space-5);
    padding: 0;
    list-style: none;
}

.tour-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3) var(--space-4);
    padding: var(--space-4) var(--space-5);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-card);
    background: var(--c-surface);
}

.tour-card--mine {
    border-left: 4px solid var(--c-blue);
}

.tour-card__icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--c-blue-light);
    color: var(--c-blue-dark);
}

.tour-card__body {
    flex: 1 1 280px;
    min-width: 0;
}

.tour-card__body p {
    margin: 2px 0 0;
}

.tour-card__title {
    margin: 0;
    font-size: var(--fs-lead);
}

.tour-card__action {
    margin: 0;
}

@media (max-width: 640px) {
    .brand__claim--platform {
        display: none;
    }

    .brand__wordmark {
        height: 28px;
    }

    .my-start__tile {
        min-height: 0;
        padding: var(--space-4);
    }

    .help-launch {
        width: 36px;
        height: 36px;
    }
}

/* Sehr schmal (Smartphone): Kopf ohne Fragezeichen (Touren stehen im Kontomenü), Tasten etwas enger */
@media (max-width: 440px) {
    .site-header-meta {
        gap: 2px;
    }

    .help-launch {
        display: none;
    }

    .search-trigger {
        width: 38px;
        height: 38px;
    }
}
