/* Politur nach unslop (github.com/heydamir/unslop) von Damir Sokolovsky (@heydamir), CC BY 4.0. */

/* Komponenten des Kundenportals. Setzt auf theme.css auf -- jede Farbe hier ist ein
   var(--...), nie ein Literal, sonst waere sie in einem der drei Theme-Zustaende falsch.
   Politur 2026-11-04: Gewichte nur 400/500 (600 nur .brand und .avatar), Abstaende auf
   dem 4-px-Raster, keine Versalien, kein Glas, keine Einlauf-Animationen, ein gefuellter
   Akzentknopf je Bildschirm, Produktfarbe nur als Punkt (.pdot) und im Monatsbalken. */

* { box-sizing: border-box; }

/* --- Schrift (PCP-198) -------------------------------------------------------------
   Manrope als variable Schrift (ein File fuer alle Staerken 200-800), aufgeteilt wie bei
   Fontsource in Latin und Latin-Erweiterung: der Browser laedt die zweite Datei nur,
   wenn ein Zeichen aus ihrem Bereich tatsaechlich vorkommt (etwa ein polnischer Name).
   Quelle: @fontsource-variable/manrope 5.3.0, Lizenz SIL OFL 1.1 in
   /fonts/manrope-OFL.txt. font-display: swap -- der Text steht sofort im Rueckfall-
   stapel da und wechselt, sobald die Datei da ist, statt unsichtbar zu warten. */
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url(/fonts/manrope-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
        U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url(/fonts/manrope-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
        U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
        U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* PCP-192 (E8): Das hidden-Attribut muss immer gewinnen. Der Browser setzt es nur als
   schwache Vorgabe (display:none aus dem UA-Stylesheet), und jede Klasse mit eigenem
   display hebelte es aus -- so stand das 2FA-Codefeld des Kunden-Logins (.form-group,
   display:flex) immer sichtbar da, obwohl der Login laengst zweistufig ist (PCP-067),
   und Knoepfe mit hidden (button, display:inline-flex) blieben sichtbar, etwa
   "Neue Recovery-Codes erzeugen" ohne eingerichtete 2FA. Die einzelnen
   .x[hidden]-Regeln weiter unten sind damit ueberzaehlig, bleiben aber harmlos stehen. */
[hidden] { display: none !important; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 22px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

a {
    color: var(--brand-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 120ms var(--ease);
}
a:hover { color: var(--ink); }

/* --- Fokusanzeige (UI-Review Phase 5, 2026-08-27) ---------------------------
   Eine Regel, ein Look ueberall. Nur :focus-visible (nicht :focus), damit ein
   Mausklick keinen Ring hinterlaesst, nur Tastatur-/Programmfokus. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* --- Skip-Link (P3.2) -------------------------------------------------------
   Erster fokussierbarer Knoten jeder Seite; im Normalzustand verborgen, bei
   Tastaturfokus sichtbar angedockt. Springt zu <main id="main">. */
.skip-link {
    position: absolute;
    left: 12px;
    top: -64px;
    z-index: 100;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--card);
    color: var(--brand-text);
    box-shadow: inset 0 0 0 1px var(--line-2);
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    text-decoration: none;
}
.skip-link:focus,
.skip-link:focus-visible {
    top: 12px;
    outline: 2px solid var(--brand);
}

/* --- Hilfsklassen ---------------------------------------------------------- */

.meta { font-size: 13px; line-height: 20px; color: var(--ink-3); }
.small { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.mono { font-family: var(--font-mono); font-size: 13px; line-height: 20px; }
.grow { flex: 1; min-width: 0; }

/* Nur fuer Screenreader sichtbar. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* --- Kopfzeile ------------------------------------------------------------- */
/* Politur 2026-11-04: flach auf --deep mit Haarlinie, ohne Glas (kein
   backdrop-filter, kein color-mix). Klebt beim Scrollen weiter oben. */

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 8px 32px;
    background: var(--deep);
    border-bottom: 1px solid var(--line);
}
.topbar-inner {
    max-width: 1200px;
    min-height: 44px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px 24px;
    flex-wrap: wrap;
    min-width: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    font-size: 17px;
    line-height: 20px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    flex-shrink: 0;
}
.brand:hover { color: var(--ink); }

/* Das Zeichen ist namensunabhaengig (PCP-198): eine Sprechblase mit zwei
   Server-Einschueben. Die Einschuebe stehen in der Kopffarbe (--deep). */
.brand-mark {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: block;
    color: var(--brand);
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
/* N14 (ARCHITECTURE.md 18.96, 2026-11-10): Die Einschuebe faerbt eine Klasse statt eines
   style-Attributs -- die CSP erlaubt seitdem keine Inline-Styles mehr. */
.brand-mark-slot { fill: var(--deep); }

.topnav { display: flex; gap: 4px; align-items: center; flex: 1 1 auto; flex-wrap: wrap; min-width: 0; }
.topnav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 120ms var(--ease), color 120ms var(--ease);
}
.topnav a:hover { color: var(--ink); background: var(--card-2); }
.topnav a.active { color: var(--ink); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }

/* Rechter Kopfbereich: Thema, Assistent, Abmelden, Avatar (common.js::renderChrome). */
.top-end { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }

/* Symbolknoepfe: Thema, Drawer, "..."-Menue, Kopf des Assistenten. */
.icon-btn,
.theme-toggle,
.nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--ink-2);
    cursor: pointer;
    transition: background-color 120ms var(--ease), color 120ms var(--ease);
}
.icon-btn:hover,
.theme-toggle:hover,
.nav-toggle:hover { background: var(--card-2); color: var(--ink); }
.icon-btn-sm { width: 32px; height: 32px; border-radius: 6px; }
.icon-btn svg,
.nav-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* Drawer-Umschalter (Navigation-Redesign, 2026-08-24) -- unsichtbar in Desktop-
   Breite, ersetzt .topnav in der Media-Regel unten durch ein einklappbares Menue. */
.nav-toggle { display: none; order: -1; }

.avatar {
    /* Rein dekorativ (aria-hidden, kein Klick-Handler, siehe common.js). */
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--card-2);
    box-shadow: inset 0 0 0 1px var(--line);
    display: inline-grid;
    place-items: center;
    font-size: 12px;
    line-height: 16px;
    color: var(--ink-2);
    font-weight: 600;
    flex-shrink: 0;
}
.avatar[hidden] { display: none; }

/* --- Hauptbereich, Ueberschriften ------------------------------------------ */

/* Eine Achse fuer Kopf, Hero, Inhalt und Fuss: 1200 Inhalt + 32 Rand je Seite
   (mobil 16). PCP-191 (F8): Kopf und Inhalt beginnen auf derselben Linie. */
main { max-width: 1264px; margin: 0 auto; }
main.narrow { max-width: calc(760px + 64px); padding: 40px 32px 24px; }

.body { padding: 40px 32px 24px; }

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

h1 { margin: 0; font-size: 28px; line-height: 32px; font-weight: 500; text-wrap: balance; }
h2 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 500; }
h3 { margin: 0 0 12px; font-size: 16px; line-height: 24px; font-weight: 500; }
h4 { margin: 0 0 8px; font-size: 14px; line-height: 20px; font-weight: 500; }
strong, b { font-weight: 500; }

/* --- Startseite: Kopfbereich mit Claim und Beispielgespraech ----------------- */

.hero {
    position: relative;
    padding: 48px 32px 64px;
    border-bottom: 1px solid var(--line);
}
/* .hero-inner ist auch die Achse des Dienstkopfs auf der Instanzseite (PCP-191, F8). */
.hero-inner { max-width: 1200px; margin: 0 auto; }
.hero .hero-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 64px;
    align-items: center;
}
.hero .hero-inner > * { flex: 1 1 420px; min-width: 0; }
.hero-copy { min-width: 0; }
.hero-copy > .meta { margin: 0 0 12px; }
.hero h1 {
    margin: 0;
    font-size: 48px;
    line-height: 52px;
    letter-spacing: -0.02em;
    font-weight: 500;
}
.hero-sub { margin: 16px 0 0; font-size: 18px; line-height: 28px; color: var(--ink-2); max-width: 576px; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.hero .ask-bar { margin-top: 24px; }

/* PCP-268: Trailer unter dem Kopf. aspect-ratio haelt den Platz frei, bevor das Posterbild
   geladen ist -- sonst springt der Dienstekatalog darunter nach unten. */
.trailer { padding: 48px 32px; border-bottom: 1px solid var(--line); }
.trailer-inner { max-width: 960px; margin: 0 auto; }
.trailer h2 { margin: 0 0 16px; }
.trailer-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: var(--card-2);
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 1px var(--line);
}
.trailer-text { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.trailer-text summary { cursor: pointer; color: var(--ink); }
.trailer-text ol { margin: 8px 0 0; padding-left: 20px; }
.trailer-text li + li { margin-top: 4px; }
.trailer .clip-title { margin-top: 40px; }
.clip-text h3 { margin: 12px 0 4px; font-size: 14px; color: var(--ink); }
.clip-voice p { margin: 0 0 4px; }
@media (max-width: 760px) {
    .trailer { padding: 32px 16px; }
}

/* Patrick 2026-11-07 (ARCHITECTURE.md 18.70, Nachtrag): Abschnitte der Vorstellungsseite "/".
   Gleiche Achse und Trennlinie wie der Trailer, damit die Seite aus einem Guss wirkt. */
.landing { padding: 48px 32px; border-bottom: 1px solid var(--line); }
.landing-inner { max-width: 1200px; margin: 0 auto; }
.landing h2 { margin: 0 0 8px; }
.landing-lead { margin: 0 0 24px; max-width: 640px; color: var(--ink-2); }
.landing-list { list-style: none; margin: 0; padding: 0; }
.landing-list .card-title { font-size: 16px; }
.landing-list .price { margin: auto 0 0; }
.landing-points {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 24px;
}
.landing-points h3 { margin: 0 0 4px; font-size: 16px; line-height: 24px; font-weight: 500; }
.landing-points p { margin: 0; color: var(--ink-2); }
.landing-cta { border-bottom: 0; }
.landing-cta .body { padding: 16px 0 0; }
@media (max-width: 760px) {
    .landing { padding: 32px 16px; }
}

/* Beispielgespraech rechts im Kopf -- Darstellung, keine Funktion (aria-label
   "Beispielgespraech", Kennzeichnung "Beispiel" sichtbar). */
.hero-demo {
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow-float);
}
.demo-head { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; font-weight: 500; }
.demo-msg { margin: 0; max-width: 88%; padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 20px; }
.demo-msg p { margin: 0; }
.demo-msg-user { align-self: flex-end; background: var(--brand-wash); color: var(--ink); border-bottom-right-radius: 4px; }
.demo-msg-server {
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--card-2);
    box-shadow: inset 0 0 0 1px var(--line);
    border-bottom-left-radius: 4px;
}
.demo-input {
    display: flex;
    align-items: center;
    min-height: 40px;
    margin: 4px 0 0;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    box-shadow: inset 0 0 0 1px var(--line-2);
    color: var(--ink-3);
    font-size: 14px;
    line-height: 20px;
}

/* Kleines Etikett ("Beispiel"). .demo-tag ist der Bestandsname dafuer. */
.tag,
.demo-tag {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    color: var(--ink-2);
    background: var(--card-2);
    box-shadow: inset 0 0 0 1px var(--line);
    white-space: nowrap;
}

/* --- Zugangszettel im Beispielgespraech (Politur 2026-11-04, Vorschlag 2) ------
   Papier in beiden Themen hell; die einzige Drehung und der einzige
   radial-gradient (Perforation) im Portal, beides statisch. */
.slip {
    position: relative;
    align-self: flex-start;
    margin: 4px 0 4px 16px;
    width: min(300px, 85%);
    padding: 16px 20px;
    border-radius: 6px;
    background: var(--paper);
    color: var(--paper-ink);
    transform: rotate(-1.5deg);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 12px 24px -8px rgba(0, 0, 0, 0.35);
    font-size: 13px;
    line-height: 20px;
}
.slip::before {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    top: -4px;
    height: 8px;
    background: radial-gradient(circle at 4px 4px, var(--card) 2.5px, transparent 3px) 0 0 / 12px 8px repeat-x;
}
.slip-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(31, 29, 24, 0.18);
}
.slip-row:last-of-type { border-bottom: 0; }
.slip-k { font-size: 12px; line-height: 16px; color: var(--paper-2); }
.slip-status { margin-top: 8px; }
.slip .slot { color: var(--paper-ok); }
.slip .slot rect { stroke: var(--paper-2); }
.slip .slot .lamp { fill: var(--paper-ok); }

/* --- Chat-Zeile (PCP-198) ------------------------------------------------------
   Startseite und Uebersicht; sendet ueber window.assistant.ask (assistant.js) an das
   eine Assistenten-Panel. Ohne Sitzung bleibt sie verborgen (hidden im Markup). */
.ask-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-sm);
    transition: box-shadow 120ms var(--ease);
}
.ask-bar:focus-within { box-shadow: inset 0 0 0 1px var(--brand), var(--shadow-sm); }
.ask-bar::before {
    content: "";
    width: 18px;
    height: 18px;
    margin-left: 8px;
    flex-shrink: 0;
    background: var(--ink-3);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 4h16v12H8l-4 4z'/></svg>") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 4h16v12H8l-4 4z'/></svg>") center / contain no-repeat;
}
.ask-bar input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: none;
    box-shadow: none;
    background: transparent;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    padding: 0;
}
.ask-bar input:focus,
.ask-bar input:focus-visible { outline: none; box-shadow: none; }
.ask-bar input::placeholder { color: var(--ink-3); }
.ask-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.ask-suggestion {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--line-2);
    color: var(--ink-2);
    font-size: 13px;
    line-height: 20px;
    font-weight: 400;
    text-align: left;
    white-space: normal;
}
.ask-suggestion:hover { background: var(--card-2); color: var(--ink); }
.chip-k { color: var(--ink); font-weight: 500; }
.ask-section { margin: 0 0 32px; }

/* --- Uebersicht: Seitenkopf, Zaehlzeile, Monatskarte ----------------------------- */

.context-line { margin: 0 0 4px; font-size: 13px; line-height: 20px; color: var(--ink-3); }
.page-title { font-size: 28px; line-height: 32px; }
.status-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin: 0 0 24px;
}
.status-counts { display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* Zwei Spalten ohne Medienabfrage: Eingabe + Monatskarte nebeneinander, Dienste
   darunter ueber die volle Breite; schmal von selbst untereinander. */
.dash-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-top: 32px; }
.dash-main { flex: 999 1 560px; min-width: 0; }
.dash-main.ask-section { margin-bottom: 0; }
.dash-side { flex: 1 1 320px; min-width: 0; }
.dash-full { flex: 1 1 100%; min-width: 0; margin-top: 16px; }

/* Monatsbetrag als eine Zahl mit gestapeltem Balken (Politur 2026-11-04,
   Vorschlag 1). Breite der Segmente setzt dashboard.js ueber style.flexGrow,
   die Farbe ueber --tone (product-registry.js::applyProductTone). */
.card.month-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.month-label { margin: 0; font-size: 13px; line-height: 20px; font-weight: 400; color: var(--ink-3); }
.month-amount { margin: 0; font-size: 32px; line-height: 36px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.month-unit { display: block; margin: 4px 0 0; font-size: 13px; line-height: 20px; font-weight: 400; color: var(--ink-3); }
.month-bar { display: flex; gap: 2px; height: 12px; border-radius: 4px; overflow: hidden; }
.month-seg { flex: 1 1 0; min-width: 4px; background: var(--tone, var(--p-neutral)); }
.month-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.month-row {
    display: grid;
    grid-template-columns: 8px 1fr auto;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    line-height: 20px;
    color: var(--ink-2);
}
.month-row > * { min-width: 0; }
.month-row .num { color: var(--ink); }
.month-note { margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-3); }

/* --- Knoepfe ----------------------------------------------------------------- */
/* .btn ohne Variante ist neutral (= .btn-secondary). Hauptaktion 44 hoch,
   .btn-sm 36; auf Touch bleibt jede Klickflaeche 44 (UI-Review 11.3, Regel am Ende).
   Ein Submit-Knopf bekommt seine Variante ausdruecklich im Markup -- die fruehere
   Primaeroptik fuer button[type="submit"] ist weg (ein Primaerknopf je Bildschirm). */

button, .btn {
    font: inherit;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    cursor: pointer;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--card-2);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 120ms var(--ease), color 120ms var(--ease), box-shadow 120ms var(--ease);
}
button:hover, .btn:hover { background: var(--card-hover); color: var(--ink); }
.btn svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.btn-secondary { background: var(--card-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-secondary:hover { background: var(--card-hover); color: var(--ink); }

.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: none; }
.btn-primary:hover { background: var(--brand-hover); color: var(--brand-ink); }

.btn-quiet { background: transparent; color: var(--ink-2); box-shadow: none; }
.btn-quiet:hover { background: var(--card-2); color: var(--ink); }

.btn-danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-danger:hover { background: var(--card-2); color: var(--danger); }

.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }

/* Ein gefuellter Akzentknopf je Bildschirm, ohne JS (Politur 2026-11-04):
   offenes Bestellformular, geoeffnetes Ticket und offener Assistent machen ihren
   eigenen Knopf zur einzigen Flaeche; der jeweils andere wird sekundaer.
   Nachtrag 2026-11-04: ein ausstehender Bezahlknopf (dashboard.js) gewinnt gegen
   "Dienst hinzufuegen". */
body:has(.btn-pay.btn-primary) .row > .btn-primary,
body:has(form[data-template-id]) .hero .ask-bar .btn-primary,
#ticket-detail:not([hidden]) ~ #ticket-new .btn-primary,
body:has(.assistant-panel:not([hidden])) main .btn-primary,
body:has(#detail-actions .btn-primary) .instance-layout .btn-primary {
    background: var(--card-2);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line-2);
}
body:has(.btn-pay.btn-primary) .row > .btn-primary:hover,
body:has(form[data-template-id]) .hero .ask-bar .btn-primary:hover,
#ticket-detail:not([hidden]) ~ #ticket-new .btn-primary:hover,
body:has(.assistant-panel:not([hidden])) main .btn-primary:hover,
body:has(#detail-actions .btn-primary) .instance-layout .btn-primary:hover { background: var(--card-hover); }

/* --- Kopierfeld (UI-Review Runde 2, 2026-08-28) -------------------------------
   Wert + Kopieren-Knopf, siehe common.js::buildCopyField(). */
.copy-field {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 40px;
    margin-top: 8px;
    padding: 0 4px 0 12px;
    border-radius: var(--radius-sm);
    background: var(--card-2);
    box-shadow: inset 0 0 0 1px var(--line);
    font-size: 13px;
    line-height: 20px;
}
.copy-field-label { color: var(--ink-2); flex-shrink: 0; }
.copy-value {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 20px;
    color: var(--ink);
    background: transparent;
    border-radius: 6px;
    padding: 0;
    /* P2-6 (Review 0681f25, Finding 2): die Adresse bleibt auf einer Zeile und
       scrollt bei Bedarf innerhalb ihrer eigenen Box, statt zeichenweise umzubrechen. */
    white-space: nowrap;
    overflow-x: auto;
    max-width: 100%;
    min-width: 0;
    flex: 1;
}
.btn-copy {
    min-height: 32px;
    padding: 0 12px;
    font-size: 13px;
    flex-shrink: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ink-2);
    box-shadow: none;
}
.btn-copy:hover { background: var(--card-hover); color: var(--ink); }
/* Rueckmeldung beim Kopieren (common.js::copyToClipboard). */
.btn-copy.copied { color: var(--ok); }

/* UI-Live-Review 2026-08-28 (P2 Punkt 4): auf der Dashboardkarte abgeschnitten statt
   gescrollt; volle Adresse bleibt ueber title-Attribut und Kopieren erreichbar. */
.copy-field-compact .copy-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- "..."-Menue (UI-Review Runde 2, 2026-08-28) --------------------------------
   Seltene Aktionen, siehe common.js::buildOverflowMenu(). */
.menu { position: relative; display: inline-flex; }
.menu-button {
    width: 40px;
    min-height: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    background: transparent;
    box-shadow: none;
    color: var(--ink-2);
}
.menu-button:hover { background: var(--card-2); color: var(--ink); }
.menu-button svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.menu-list {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 30;
    min-width: 176px;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border-radius: var(--radius-sm);
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow-float);
    padding: 4px;
}
.menu-list[hidden] { display: none; }
/* Linksbuendig, wenn die rechtsbuendige Liste links aus dem Bildschirm ragen wuerde.
   Gesetzt von buildOverflowMenu() beim Oeffnen. */
.menu-list-start { left: 0; right: auto; }
.menu-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    text-align: left;
    min-height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: 6px;
    background: none;
    box-shadow: none;
    color: var(--ink);
    font-size: 14px;
    font-weight: 400;
    white-space: normal;
}
.menu-item:hover { background: var(--card-2); }
.menu-item-danger { color: var(--danger); }
.menu-item-danger:hover { background: var(--card-2); color: var(--danger); }

/* --- Dialog (PCP-192, E5), common.js::confirmDialog() -------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 16px;
    box-sizing: border-box;
}
.modal {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    max-width: 480px;
    width: 100%;
    box-sizing: border-box;
    max-height: 100%;
    overflow-y: auto;
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow-float);
}
.modal h3 { margin: 0 0 8px; font-size: 16px; line-height: 24px; }
.modal-meta { margin: 4px 0; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.modal-danger .modal-meta:last-of-type { color: var(--danger); }
.modal-field {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    line-height: 20px;
    color: var(--ink-2);
}
.modal-field textarea, .modal-field input {
    display: block;
    width: 100%;
    margin-top: 4px;
    box-sizing: border-box;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}
/* PCP-215 (Labor 2026-10-19): lange Bestaetigungstexte duerfen umbrechen, am Telefon
   stapeln sich die Knoepfe. */
.modal-actions { flex-wrap: wrap; }
.modal-actions .btn { white-space: normal; max-width: 100%; }
@media (max-width: 480px) {
    .modal { padding: 16px; }
    .modal-actions { flex-direction: column-reverse; align-items: stretch; }
}
.modal-actions .btn:disabled { opacity: 0.5; cursor: not-allowed; }
/* PCP-192 (E5): Ankreuzfeld im Dialog nicht in Blockbreite. */
.modal-field input[type="checkbox"] { display: inline; width: auto; height: auto; margin: 0 8px 0 0; }
.modal-danger .modal-effect { color: var(--danger); }
.modal-expected { font-family: var(--font-mono); font-weight: 500; color: var(--ink); }

/* --- Kennzahlen (Instanzseite) ------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; margin-bottom: 24px; }
.stats-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
/* min-width:0 (2026-08-29): ein langer Zugriffswert sprengte sonst die Kachel. */
.stat { padding: 16px; border-radius: var(--radius-sm); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.stat-label { font-size: 13px; line-height: 20px; color: var(--ink-3); }
.stat-value { font-size: 15px; line-height: 22px; font-weight: 500; margin-top: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* --- Dienstkacheln ------------------------------------------------------------ */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }

/* Kein overflow:hidden (PCP-192, Nachtrag 2026-09-30): es schnitt das "..."-Menue ab.
   Politur 2026-11-04: Haarlinie + zarter Schatten, kein Hub beim Zeigen. */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
    padding: 0;
    display: flex;
    flex-direction: column;
}
.card-inner { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-inner > * { margin-top: 0; }
/* PCP-191 (F5): der Kopf darf umbrechen, statt den Titel zu ueberdecken. */
.card-head { display: flex; align-items: flex-start; gap: 8px 12px; flex-wrap: wrap; }
.card-head > .grow { flex: 1 1 144px; }
/* Ganze Kopfzeile klickbar (Feedback §1) -- nur Kopf+Meta liegen im Link. */
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover .card-title { text-decoration: underline; text-underline-offset: 2px; }

/* Symbolkachel: neutral, die Produktfarbe steht nur im Punkt (.pdot). */
.tile {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--card-2);
    box-shadow: inset 0 0 0 1px var(--line);
    color: var(--ink-2);
}
.tile svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Produktpunkt: die einzige Stelle (neben dem Monatsbalken), an der die
   Produktfarbe erscheint. --tone setzt product-registry.js::applyProductTone. */
.pdot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    flex: none;
    background: var(--tone, var(--p-neutral));
}

.card-title { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 24px; font-weight: 500; overflow-wrap: break-word; hyphens: auto; }
.card-meta { margin: 0; font-size: 13px; line-height: 20px; color: var(--ink-3); }

/* --- Statuszeichen -------------------------------------------------------------
   .pill: Punkt + Wort fuer Messungen und Nicht-Dienst-Status (Antwortet die
   Anwendung?, Patchlauf, Archiv, Tickets). Kein Pulsieren.
   .slot: Server-Einschub aus dem Logo als Dienststatus (Politur 2026-11-04,
   Vorschlag 3). Gruen laeuft (beide Laempchen), bernstein in Arbeit (oberes),
   rot Fehler, hohl aus. Kein Blinken. SVG kommt aus common.js::STATUS_SLOT_SVG. */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 20px;
    font-weight: 400;
    color: var(--ink-2);
    white-space: nowrap;
}
.pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--ink-3);
}
.pill-ok::before { background: var(--ok); }
.pill-work { color: var(--warn); }
.pill-work::before { background: var(--warn); }
.pill-danger { color: var(--danger); }
.pill-danger::before { background: var(--danger); }
.pill-off::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }

.slot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 20px;
    color: var(--ink-2);
    white-space: nowrap;
}
.slot svg { width: 20px; height: 12px; flex: none; }
.slot rect { fill: none; stroke: var(--ink-3); stroke-width: 1.25; }
.slot .lamp { fill: var(--ink-3); }
.slot-ok .lamp { fill: var(--ok); }
.slot-work { color: var(--warn); }
.slot-work .lamp { fill: var(--warn); }
.slot-work .lamp2 { fill: none; }
.slot-bad { color: var(--danger); }
.slot-bad .lamp { fill: var(--danger); }
.slot-off .lamp { fill: none; stroke: var(--ink-3); stroke-width: 1; }

.banner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--warn-wash);
    color: var(--warn);
    font-size: 13px;
    line-height: 20px;
    font-weight: 500;
}
.banner svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; flex-shrink: 0; }

/* Statischer Balken (auf der Uebersicht nicht mehr benutzt; der Einschub traegt
   den Zustand). Bleibt definiert fuer eventuelle weitere Verwender. */
.progress { margin-top: 16px; height: 6px; border-radius: 4px; background: var(--card-2); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--brand); }
.progress.indeterminate span { width: 60%; }

.hint { margin: 8px 0 0; font-size: 13px; line-height: 20px; color: var(--ink-2); }
.card-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; flex-wrap: wrap; }
/* Katalogkarte: Preis und Knoepfe in einem Fuss mit Haarlinie. */
.card-foot { padding-top: 12px; border-top: 1px solid var(--line); }
.card-foot > .price { margin: 0 auto 0 0; }
/* PCP-199 (ARCHITECTURE.md 18.8): offene Rechnungen eines gesperrten Dienstes. */
.invoice-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.invoice-list > .btn { white-space: normal; text-align: left; justify-content: flex-start; padding-top: 8px; padding-bottom: 8px; }
/* PCP-192 (E4): Hauptknopf, ein weiterer Knopf und "..." sollen in eine Zeile passen. */
.card-actions > .btn:not(.menu-button):not(.btn-sm), .card-actions > button:not(.menu-button):not(.btn-sm) { padding-left: 12px; padding-right: 12px; }

/* Preis auf der Katalogkarte: Betrag 20/24, "pro Monat" leise daneben. */
.price { margin: 12px 0 0; color: var(--ink-3); font-size: 13px; line-height: 20px; font-variant-numeric: tabular-nums; }
.price-amount { font-size: 20px; line-height: 24px; font-weight: 500; color: var(--ink); }

/* Ladeplatzhalter (PCP-198): statische Flaeche, bis die echten Karten da sind. */
.card.skeleton { min-height: 240px; background: var(--card-2); }

/* Aufklappteil "Fuer Fachleute" (<details class="fach">). */
.fach { margin: 0; }
.fach summary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 32px;
    font-size: 13px;
    line-height: 20px;
    color: var(--ink-2);
    cursor: pointer;
    list-style: none;
    border-radius: 6px;
    transition: color 120ms var(--ease);
}
.fach summary::-webkit-details-marker { display: none; }
.fach summary::marker { content: ""; }
.fach summary:hover { color: var(--ink); }
.fach[open] summary { color: var(--ink); }
.fach summary svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: color 120ms var(--ease); }
.fach > :not(summary) { margin: 4px 0 0; font-size: 13px; line-height: 20px; color: var(--ink-2); }

/* "Ihr Dienst ist bereit" (ARCHITECTURE.md 18.89): nummerierte Schritte, je Titel, Satz,
   Verweis. */
.next-steps { margin: 12px 0 16px; padding-left: 20px; display: grid; gap: 12px; }
.next-steps li > p { margin: 0; }
.next-steps li > p + p { margin-top: 4px; }
.next-step-title { font-weight: 500; color: var(--ink); }

/* Haekchen-Zeile: Haken + Text. */
.check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--ink);
}
.check > input[type="checkbox"],
.check > input[type="radio"] { width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; flex: none; accent-color: var(--brand); box-shadow: none; }
.check > label { margin: 0; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--ink); cursor: pointer; }

/* Tabellenzeile (Tickets, Listen). */
.list-row {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 48px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}
.list-row:first-child { border-top: 0; }
.list-row .num { margin-left: auto; color: var(--ink); }

/* Bestelluebersicht (§ 312j), order.js::orderSummary. */
.order-summary { margin: 12px 0; padding: 16px; border-radius: var(--radius-sm); background: var(--card-2); }
.order-summary > p:first-child { margin: 0 0 4px; font-size: 14px; line-height: 20px; font-weight: 500; }
.order-summary .hint { margin: 4px 0 0; font-size: 13px; line-height: 20px; }

/* --- Dienstkopf auf der Detailseite -------------------------------------------- */

.detail-hero { padding: 40px 32px 32px; background: var(--ground); border-bottom: 1px solid var(--line); }
.detail-hero h1 { color: var(--ink); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.detail-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; font-weight: 400; color: var(--ink-3); }
.detail-eyebrow svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 8px; }
.detail-sub { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.detail-actions { display: flex; align-items: center; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.detail-actions > .copy-field { margin-top: 0; flex: 0 1 360px; }

/* --- Lokale Verwaltungsnavigation (UI-Review Phase 1/Runde 2) -------------------
   Zweispaltig: Navigation links (Eintraege unter einer nicht klickbaren
   Gruppenbeschriftung), Panels rechts. */
.instance-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}
.instance-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 80px;
}
.instance-nav-group { display: flex; flex-direction: column; gap: 4px; }
.instance-nav-group-label {
    /* Bewusst ein <p>, kein <button>/<a> -- keine Hover-/Fokus-Optik, damit der
       Unterschied zu den anklickbaren Eintraegen darunter klar ist. */
    margin: 0;
    padding: 0 12px 4px;
    font-size: 13px;
    line-height: 20px;
    font-weight: 400;
    color: var(--ink-3);
}
.instance-nav-tab {
    font: inherit;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    min-height: 36px;
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    box-shadow: none;
    color: var(--ink-2);
    cursor: pointer;
    white-space: nowrap;
}
.instance-nav-tab:hover { color: var(--ink); background: var(--card-2); }
.instance-nav-tab.active {
    background: var(--card-2);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line);
}
.instance-nav-tab[hidden] { display: none; }
.instance-panels { min-width: 0; }

/* Mobile Schublade (Feedback §4) -- auf Desktop-Breite unsichtbar. */
.instance-nav-toggle { display: none; }

.tab-panel[hidden] { display: none; }

/* --- Panels (Detailseite, Faehigkeitsbloecke) ---------------------------------- */

.panel { background: var(--card); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); padding: 24px; margin-bottom: 16px; }
.panel[hidden] { display: none; }

/* Gefahrenbereich (Abschnitt 2.2) -- bewusst rot gerahmt abgesetzt. */
.panel-danger { background: var(--card); box-shadow: inset 0 0 0 1px var(--danger), var(--shadow-sm); }
.panel-danger h3 { color: var(--danger); }

dl { margin: 0; display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 8px 24px; font-size: 14px; line-height: 20px; }
dt { color: var(--ink-2); }
dd { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink); overflow-wrap: anywhere; }

/* --- Listen aus Personen/Konten/Zugaengen (Faehigkeitsbloecke) ------------------ */

.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.person { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }
.person-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--card);
    box-shadow: inset 0 0 0 1px var(--line);
    color: var(--ink-2);
    display: grid;
    place-items: center;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    flex-shrink: 0;
}
.person-name { font-size: 15px; line-height: 22px; font-weight: 500; }
.person-sub { font-size: 13px; line-height: 20px; color: var(--ink-2); }

/* Ein erzeugtes Geheimnis: eine Zeile (Passwort) oder ein Block (WireGuard-.conf).
   UI-Review 11.4: lange, unumbrochene Werte duerfen die Zeile nicht sprengen. */
.secret-line { font-family: var(--font-mono); font-size: 13px; line-height: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border-radius: 6px; padding: 4px 8px; display: inline-block; max-width: 100%; overflow-wrap: anywhere; overflow-x: auto; }
.secret-block {
    margin: 8px 0 0;
    padding: 12px;
    background: var(--card);
    box-shadow: inset 0 0 0 1px var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 20px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-width: 100%;
    overflow-x: auto;
}
.qr-wrap {
    margin: 8px 0 0;
    padding: 12px;
    background: var(--card);
    box-shadow: inset 0 0 0 1px var(--line);
    border-radius: var(--radius-sm);
    max-width: 220px;
}
.qr-wrap img { display: block; width: 100%; height: auto; }

/* Portfreigabe (Labor 2026-10-19: ragte bei 390 px rechts aus dem Panel). */
.ask { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.ask input { flex: 1 1 96px; min-width: 0; }

/* --- Verlauf (Zeitleiste) ------------------------------------------------------- */

.side-title { margin: 0 0 12px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
/* PCP-192 (E7): Zwischenueberschrift mitten in einem Panel braucht Abstand nach oben. */
.panel .side-title { margin-top: 24px; }
.panel > .side-title:first-child { margin-top: 0; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 20px; }
.timeline li { display: flex; gap: 12px; padding: 8px 0; color: var(--ink-2); }
.timeline .timeline-when { color: var(--ink-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); margin-top: 8px; flex-shrink: 0; }
.dot-live { background: var(--ok); }

/* --- Auslastung (Sparkline) ------------------------------------------------------ */

.spark { width: 100%; height: 60px; display: block; }
.spark polyline { fill: none; stroke: var(--ink-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.spark .area { fill: var(--brand-wash); stroke: none; }

/* --- Formulare (Anmeldung, Registrierung, Profil) --------------------------------- */

/* UI-Review 11.3: diese Seiten tragen ein echtes <h1>, optisch in Abschnittsgroesse. */
.form-section h1,
main.narrow > h1 {
    margin: 0;
    font-size: 20px;
    line-height: 24px;
    font-weight: 500;
}

.form-section { max-width: 420px; margin: 0 auto; padding: 24px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.form-section h1 + * { margin-top: 16px; }
.form-group, .form-field { display: flex; flex-direction: column; margin-bottom: 16px; }
label { margin-bottom: 4px; font-size: 13px; line-height: 20px; font-weight: 500; color: var(--ink-2); }

/* --- Formularmuster (PCP-192, E7) ---------------------------------------------------
   Beschriftung ueber dem Feld, dicht daran; Breite nach erwartetem Inhalt; Knoepfe
   links in normaler Breite, in .form-actions auf dem Handy volle Breite. */
.form-group, .form-field { gap: 4px; margin-bottom: 16px; }
.form-group > label, .form-field > label { margin-bottom: 0; }
.form-group > label:not(:first-child), .form-field > label:not(:first-child) { margin-top: 12px; }
.form-group > input[type="number"], .form-field > input[type="number"] { max-width: 160px; }
.form-group > select, .form-field > select { max-width: 384px; }
.form-group > input:not([type="number"]):not([type="checkbox"]):not([type="radio"]),
.form-field > input:not([type="number"]):not([type="checkbox"]):not([type="radio"]),
.form-group > textarea, .form-field > textarea { max-width: 576px; }
.form-group > button, .form-group > .btn, .form-field > button, .form-field > .btn { align-self: flex-start; }
.form-row { display: flex; flex-wrap: wrap; gap: 0 16px; }
.form-row > .form-field { flex: 0 1 auto; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
@media (max-width: 600px) {
    .form-actions > button, .form-actions > .btn { flex: 1 1 100%; justify-content: center; }
}

input, textarea, select {
    font: inherit;
    font-size: 15px;
    line-height: 22px;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--card);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line-2);
    transition: box-shadow 120ms var(--ease);
}
textarea { min-height: 132px; padding: 12px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input[type="checkbox"], input[type="radio"] {
    min-height: 0;
    padding: 0;
    box-shadow: none;
    accent-color: var(--brand);
}
input:focus, textarea:focus, select:focus {
    box-shadow: inset 0 0 0 1px var(--brand);
}
/* Fokusring der Tastaturbedienung bleibt (auch fuer Haken/Optionen in .check) */
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.error-message { margin-top: 12px; min-height: 20px; color: var(--danger); font-size: 14px; line-height: 20px; }
/* PCP-008g: Hinweis auf ungueltig gewordene vpn-wg-Konfigurationen nach einem Restore --
   echtes Betriebsrisiko, eigene Klasse neben .error-message. */
.notice-warning { margin: 0 0 12px; padding: 8px 12px; box-shadow: inset 0 0 0 1px var(--danger); border-radius: 6px; background: var(--danger-wash); color: var(--danger); font-size: 14px; line-height: 20px; }
.request-notice { margin: 0 0 12px; padding: 8px 12px; box-shadow: inset 0 0 0 1px var(--warn); border-radius: 6px; background: var(--warn-wash); color: var(--ink); font-size: 14px; line-height: 20px; }
.request-notice button { margin-left: 8px; }
.success-message { margin-top: 12px; min-height: 20px; color: var(--ok); font-size: 14px; line-height: 20px; }

/* --- Fuss ------------------------------------------------------------------------- */

footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    width: calc(100% - 64px);
    max-width: 1200px;
    margin: 64px auto 0;
    padding: 24px 0 40px;
    border-top: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 13px;
    line-height: 20px;
    font-weight: 500;
}
/* --ink-2 statt --ink-3: die Rechtslinks erreichten auf dem Seitengrund nur 3,2 : 1
   (UI-Review K25, Ziel 4,5 : 1). */
footer a { color: var(--ink-2); }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
/* PCP-233: Impressum, Datenschutz, AGB, Widerruf und Kuendigung im Fuss jeder Kundenseite. */
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-weight: 400; }
.legal-links a { color: inherit; }

/* --- Leerzustand -------------------------------------------------------------- */

.empty-state { padding: 40px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty-state p { margin: 0 0 4px; font-size: 16px; line-height: 24px; font-weight: 500; }
.empty-state .hint { margin-bottom: 16px; }

/* --- Archiv (abgeschlossene/geloeschte Dienste) --------------------------------- */

.archive-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.archive-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--card);
    box-shadow: inset 0 0 0 1px var(--line);
    font-size: 14px;
    line-height: 20px;
    /* UI-Live-Review 2026-08-28 (P2 Punkt 3): Umbruch statt Ueberlappung, wenn Label
       und bis zu drei Aktionsknoepfe nicht in eine Zeile passen. */
    flex-wrap: wrap;
}
/* 2026-08-25: Flex-Kinder duerfen schrumpfen, sonst sprengt ein langes
   WireGuard-Feld die Zeile. */
.archive-row > * { min-width: 0; }
.archive-row .grow { color: var(--ink-2); }

/* --- Metrik-/Chat-Textstil ----------------------------------------------------- */

.metrics-caption { margin: 4px 0 12px; color: var(--ink-2); font-size: 13px; line-height: 20px; }

/* Sprechblasen; die Beschriftung ("Sie"/"Assistent") bleibt als kleine Zeile. */
.chat-message { max-width: 88%; display: flex; flex-direction: column; gap: 4px; }
.chat-message p { margin: 0; }
.chat-message .metrics-caption { margin: 0; font-size: 12px; line-height: 16px; font-weight: 400; color: var(--ink-3); }
.chat-message p:not(.metrics-caption) {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 20px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.chat-message-user { align-self: flex-end; align-items: flex-end; }
.chat-message-user p:not(.metrics-caption) { background: var(--brand-wash); color: var(--ink); border-bottom-right-radius: 4px; }
.chat-message-assistant { align-self: flex-start; }
.chat-message-assistant p:not(.metrics-caption) { background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); border-bottom-left-radius: 4px; }
.chat-pending { align-self: flex-start; max-width: 88%; display: flex; flex-direction: column; gap: 8px; padding: 16px; box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 12px; background: var(--card); }
.chat-pending p { margin: 0; }
.chat-pending-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.device-setup-offer { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; box-shadow: inset 0 0 0 1px var(--line); border-radius: 12px; background: var(--card); }
.device-setup-offer p { margin: 0; }
.chat-download { align-self: flex-start; max-width: 88%; box-shadow: inset 0 0 0 1px var(--line-2); }
.device-setup-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.device-setup-hints { margin: 0; padding-left: 20px; }
.device-setup-form { display: grid; gap: 12px; max-width: 576px; }
.device-setup-form label { display: flex; flex-direction: column; gap: 4px; }
.device-setup-form .check { flex-direction: row; align-items: center; gap: 8px; padding: 0; }
.migration-form { display: grid; gap: 12px; max-width: 576px; }
.migration-form label { display: flex; flex-direction: column; gap: 4px; }
.migration-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.migration-job { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; box-shadow: inset 0 0 0 1px var(--line); border-radius: 12px; background: var(--card); }
.migration-job p { margin: 0; }
.migration-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ticket-draft { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; box-shadow: inset 0 0 0 1px var(--line); border-radius: 12px; background: var(--card); }
.ticket-draft p { margin: 0; }
.ticket-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.ticket-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ticket-item.list-row { border-bottom: 0; flex-direction: column; align-items: flex-start; gap: 4px; }
.ticket-item.list-row > * { min-width: 0; }
.ticket-item p { margin: 0; }
/* Tabellen der Rechtsseiten scrollen in sich statt die Seite bei 390 px */
.form-section table { display: block; max-width: 100%; overflow-x: auto; }
.ticket-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
/* Eine Auswahl richtet sich sonst nach ihrer laengsten Option und schob Ticket- und
   Team-Formular ueber den Rand, am Handy mit seitlichem Scrollen (UI-Review K5). */
.ticket-form select, .ticket-form input, .ticket-form textarea { max-width: 100%; min-width: 0; }
.ticket-form label { display: flex; flex-direction: column; gap: 4px; }
.ticket-form > .btn, .ticket-form > button { justify-self: start; }
.ticket-message { padding: 12px 16px; margin: 8px 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 12px; }
.ticket-message p { margin: 0; }
.ticket-message-kunde { background: var(--card); }
.ticket-message-admin { background: var(--card-2); }

/* --- Globaler Chat-Assistent (Navigation-Redesign, 2026-08-25) ----------------
   Ein Panel, ueberall verfuegbar (siehe js/assistant.js). Politur 2026-11-04: der
   Ausloeser ist ein Kopfknopf (.btn .btn-secondary .btn-sm in .top-end), kein
   schwebender Kreis mehr. */

.assistant-launcher { position: static; }
.assistant-launcher svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.assistant-panel {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: min(400px, calc(100vw - 32px));
    max-height: min(560px, calc(100vh - 96px));
    /* dvh statt vh (UI-Review 11.4): schrumpft mit der Bildschirmtastatur. Zweite
       Deklaration als progressive enhancement. */
    max-height: min(560px, calc(100dvh - 96px));
    display: flex;
    flex-direction: column;
    background: var(--card);
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow-float);
    z-index: 40;
    overflow: hidden;
}
.assistant-panel[hidden] { display: none; }

.assistant-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 12px 12px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    background: var(--card);
    color: var(--ink);
}
.assistant-head span:first-child { flex-shrink: 0; }
.assistant-context {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
    font-size: 13px;
    line-height: 20px;
    color: var(--ink-3);
}
.assistant-head button {
    /* 44x44 Trefferflaeche (Patricks Rueckmeldung 2026-08-25). */
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    padding: 0;
    margin: -4px 0;
    font: inherit;
    font-size: 18px;
    line-height: 1;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    cursor: pointer;
}
.assistant-head button:hover { background: var(--card-2); color: var(--ink); }
.assistant-head button svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.assistant-ai-notice { margin: 0; padding: 8px 16px; font-size: 13px; line-height: 20px; color: var(--ink-3); border-bottom: 1px solid var(--line); }

/* Abdunkelnder Hintergrund zum Schliessen (2026-08-25) -- nur schmal sichtbar. */
.assistant-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 39;
}

.assistant-log {
    flex: 1;
    min-height: 128px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.assistant-form {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
}
.assistant-form input { flex: 1; min-width: 0; }

/* Instanz-Navigation als Schublade (Feedback §4) -- 768px als Abnahmebreite im
   Review genannt, eigener Umbruchpunkt. */
@media (max-width: 768px) {
    .instance-layout { grid-template-columns: minmax(0, 1fr); }
    .instance-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 12px;
        font-weight: 500;
    }
    .instance-nav-toggle::after {
        content: '▾';
        color: var(--ink-3);
    }
    .instance-nav {
        display: none;
        position: static;
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--line);
    }
    .instance-nav.open { display: flex; }
}

/* Telefonbreite: eine Achse mit 16 px Rand. */
@media (max-width: 760px) {
    .topbar { padding: 8px 16px; }
    main.narrow { padding: 24px 16px 16px; }
    .body { padding: 24px 16px 16px; }
    .hero { padding: 32px 16px 48px; }
    .hero h1 { font-size: 36px; line-height: 40px; }
    .hero .hero-inner { gap: 40px; }
    .detail-hero { padding: 24px 16px; }
    .panel { padding: 20px; }
    footer { width: calc(100% - 32px); }
    .row > .btn-primary { align-self: flex-start; }
}

@media (max-width: 600px) {
    .nav-toggle { display: inline-grid; }
    .topnav { display: none; width: 100%; order: 3; flex-basis: 100%; }
    .topnav.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 4px;
        padding: 8px 0 4px;
    }
    dl { grid-template-columns: minmax(0, 1fr); }
    .assistant-backdrop:not([hidden]) { display: block; }
    .assistant-panel {
        /* Patricks Rueckmeldung (2026-08-25): 45vh laesst mehr als die Haelfte des
           Bildschirms fuer die Seite dahinter sichtbar. */
        right: 12px;
        left: 12px;
        bottom: 0;
        width: auto;
        max-height: 45vh;
        /* dvh statt vh (Audit 2026-08-27). */
        max-height: 45dvh;
        border-radius: 16px 16px 0 0;
    }
}

/* UI-Live-Review 2026-08-28 (P2 Punkt 3): bei sehr schmaler Breite stehen die
   Aktionen einer .archive-row in einer eigenen Zeile darunter. */
@media (max-width: 430px) {
    .archive-row {
        flex-direction: column;
        align-items: stretch;
    }
    .archive-row .card-actions {
        width: 100%;
        margin-top: 4px;
        padding-top: 0;
    }
}

/* Klickflaechen auf Touch: 44 px bleiben (UI-Review 11.3), 36 nur mit Maus. */
@media (pointer: coarse) {
    .btn-sm,
    .topnav a,
    .instance-nav-tab,
    .menu-item,
    .ask-suggestion,
    .fach summary { min-height: 44px; }
    .icon-btn,
    .theme-toggle,
    .nav-toggle,
    .menu-button { width: 44px; height: 44px; min-height: 44px; }
    .icon-btn-sm,
    .btn-copy { min-width: 44px; min-height: 44px; height: 44px; }
}

/* --- Live-Nutzerabfrage: Ladezustand (UI-Live-Review 2026-08-28, P2 Punkt 5) -------
   Funktionale Ladeanzeige -- die einzige verbliebene Animation im Portal; bei
   reduzierter Bewegung steht sie still. */
.live-users-loading { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.live-users-spinner {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--line-2);
    border-top-color: var(--brand);
    animation: live-users-spin 0.8s linear infinite;
}
@keyframes live-users-spin {
    100% { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .live-users-spinner { animation: none; }
    * { transition: none !important; }
}

/* Anfragenhistorie (UI-Live-Review 2026-08-28, P2 Punkt 6): Freitext als Untertext. */
.requirement-detail { display: block; margin-top: 4px; }

/* --- Verbindungsart der WireGuard-Konfiguration (PCP-119) ----------------------
   fieldset mit Erklaersatz statt eines blossen Umschalters. */
.endpoint-choice {
    margin: 12px 0 0;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--card-2);
}
.endpoint-choice legend { padding: 0 4px; font-size: 13px; line-height: 20px; font-weight: 500; color: var(--ink-2); }
.endpoint-choice-hint { margin: 0 0 8px; font-size: 13px; line-height: 20px; color: var(--ink-2); }
.endpoint-choice-option { display: block; margin: 4px 0; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--ink); }
.endpoint-choice-option input:disabled + * ,
.endpoint-choice-option:has(input:disabled) { color: var(--ink-3); }

/* PCP-220 Stufe 2b: Firmenfarben auf der Instanzseite. */
.branding-swatches { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 12px; }
.branding-color { display: inline-flex; align-items: center; gap: 8px; }
.branding-swatch { display: inline-block; width: 28px; height: 28px; min-height: 0; border-radius: 6px;
    box-shadow: inset 0 0 0 1px var(--line-2); }
.branding-stage { display: inline-block; padding: 16px 24px; margin: 4px 0 12px;
    border-radius: var(--radius-sm); }
.branding-logo { display: block; max-width: 240px; max-height: 120px; }
.branding-swatch { cursor: pointer; padding: 0; }
.branding-check { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.branding-check input[type="checkbox"] { width: auto; margin: 0; }
#branding-color { width: 64px; height: 36px; min-height: 0; padding: 2px; }
#section-branding label[for="branding-color"] { display: block; margin: 8px 0 4px; }

/* PCP-225 R2: Ergebnis einer Produktaktion auf der Instanzseite */
.action-result summary { cursor: pointer; color: var(--ink-2); }
.action-result-table { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 13px; line-height: 20px; }
.action-result-table th, .action-result-table td { text-align: left; font-weight: 400; padding: 4px 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.action-result-table th { font-weight: 500; color: var(--ink-2); }

/* PCP-239: oeffentliche Statusseite und Monatsbericht. Politur 2026-11-04: keine
   farbige Flaeche, Punkt + Wort wie .pill. */
.status-list { list-style: none; padding: 0; margin: 0; }
.status-item { display: flex; justify-content: space-between; align-items: center; gap: 16px;
    min-height: 48px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; white-space: nowrap; color: var(--ink-2); }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: currentColor; }
.status-betriebsbereit { color: var(--ok); }
.status-eingeschraenkt { color: var(--warn); }
.status-stoerung { color: var(--danger); }
.status-wartung { color: var(--warn); }
.status-nicht_bewertet { color: var(--ink-2); }
.status-nicht_bewertet::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.sla-figures { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; }
.sla-figures dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
@media print {
    .topbar, .skip-link, .no-print, .assistant-launcher { display: none !important; }
    .sla-report .panel { border: none; box-shadow: none; }
}

/* PCP-243: Vorstellung des Assistenten (common.js::buildAssistantProOffer). */
.assistant-info { padding: 12px 16px; border-bottom: 1px solid var(--line); max-height: 50vh; overflow-y: auto; }
.assistant-info[hidden] { display: none; }
.assistant-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 224px), 1fr)); gap: 12px; margin: 12px 0; }
.assistant-plan { box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--radius-sm); padding: 12px; }
.assistant-plan ul { margin: 8px 0 0; padding-left: 20px; }

/* --- Gestapelte Formulare und Auswahlzeilen (UI-Review K3/K4) ------------------------
   Widerrufen und Kuendigen ohne Anmeldung: Beschriftung ueber dem Feld. .choice haelt
   Optionsknopf oder Haekchen in einer Zeile mit seinem Text. */
.stacked-form > label,
.stacked-form fieldset > label:not(.choice) { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.stacked-form > label > input,
.stacked-form > label > textarea,
.stacked-form fieldset > label:not(.choice) > textarea { max-width: 576px; }
label.choice { display: block; position: relative; padding-left: 32px; margin: 0 0 12px; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--ink); }
label.choice > input[type="radio"], label.choice > input[type="checkbox"] { position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin: 0; }
label.choice > input[type="date"] { display: block; margin-top: 4px; }

/* PCP-266: gefuehrte Erstbestellung in der leeren Uebersicht */
.starter-choices { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0 16px; }
.starter-list { list-style: none; padding: 0; margin: 0 auto 16px; max-width: 544px; text-align: left; }
.starter-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.starter-list li span:first-child { font-weight: 500; }
.starter-list li .btn { margin-left: auto; }
.inbox-multiline { white-space: pre-line; }

/* --- Buero-Pakete (ARCHITECTURE.md 18.97 g) --------------------------------------- */

/* Inhalt eines Pakets auf der Startseite: je Zeile ein Dienst in Alltagssprache. */
.bundle-contents { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.bundle-contents strong { color: var(--ink); font-weight: 500; }

/* Dienste eines Pakets mit Zustand ("Ihr Buero wird eingerichtet", "Mein Buero"). */
.bundle-members { list-style: none; margin: 12px 0 0; padding: 0; }
.bundle-member { flex-wrap: wrap; }
.bundle-member .hint { margin-top: 0; }
.bundle-progress { width: 100%; height: 8px; margin: 8px 0; accent-color: var(--brand); }
.request-notice .btn { margin-left: 8px; }
