/* MyBOA – Gestaltung nach Designentwurf v1 "Busgrün" (docs/design/myboa-mobile.html).
   Mobile first, keine externen Schriften oder Ressourcen. */
:root {
    --ink: #183d34;
    --sub: #5b6d63;
    --paper: #f5f7f1;
    --panel: #fff;
    --line: #dbe4db;
    --green: #17654c;
    --green-dark: #0f4a37;
    --soft: #e6efdf;
    --amber: #855000;
    --amber-bg: #fff0ce;
    --accent: #f1cd78;
    --red: #9b1c1c;
    --red-bg: #fde8e8;
    --focus: #b56900;
    --nav-height: 70px;
}

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

html { -webkit-text-size-adjust: 100%; background: #e9eeeb; }

body {
    margin: 0 auto;
    max-width: 620px;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--paper);
    color: var(--ink);
    font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

button, input, select, textarea { font: inherit; }
button, a, select, input { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .65; }

h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.15; letter-spacing: -1px; overflow-wrap: anywhere; }
h2 { font-size: 23px; line-height: 1.25; letter-spacing: -.6px; }
h3 { font-size: 16px; }
h1:focus { outline: none; }
p + p { margin-top: 10px; }
a { color: var(--green); }
code { overflow-wrap: anywhere; font-size: 13px; }
ol, ul { padding-left: 20px; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--focus); outline-offset: 3px;
}

.skip-link { position: absolute; left: -999px; top: 0; background: var(--panel); padding: 12px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* Kopfzeile */
.app-head {
    padding: 14px 20px 13px; display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--line); background: var(--paper);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -1px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--green); color: #fff; }
.brand-mark .ico { width: 20px; height: 20px; }
.head-actions { display: flex; gap: 8px; align-items: center; }
/* Globaler Schuljahr-Filter (#208): kompakte Pille in der Kopfzeile. */
.year-pick select {
    height: 44px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); color: var(--green);
    font: inherit; font-size: 14px; font-weight: 700; padding: 0 4px 0 10px; cursor: pointer; width: 7.6em;
}
.round { border: 1px solid var(--line); background: var(--panel); height: 44px; min-width: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); text-decoration: none; }
.avatar { background: var(--soft); font-size: 12px; font-weight: 750; }
.bell { position: relative; }
.bell-count { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 750; display: grid; place-items: center; line-height: 1; }
.ico { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* Inhalt */
.content { padding: 23px 19px calc(var(--nav-height) + 28px); }
.content.no-nav { padding-bottom: 28px; }
.subtitle { color: var(--sub); font-size: 13px; margin-top: 7px; overflow-wrap: anywhere; }
.kicker { color: var(--green); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 8px; }
.role { font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; color: var(--sub); white-space: nowrap; }
.page-head { margin-bottom: 18px; }
.page-head .row { align-items: flex-start; }
.section-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin: 25px 0 12px; }
.small, .muted.small { font-size: 12px; color: var(--sub); }
.muted { color: var(--sub); }
.access-foot { font-size: 11px; color: var(--sub); margin-top: 25px; }
.spaced-top { margin-top: 20px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.row.start { align-items: flex-start; justify-content: flex-start; }
.row + .row { margin-top: 14px; }
.grow { flex: 1; min-width: 0; }

.pill, .badge { display: inline-flex; align-items: center; padding: 4px 9px; background: var(--soft); color: var(--green); font-size: 11px; border-radius: 100px; font-weight: 700; gap: 5px; }
.pill.warn, .badge-warn { background: var(--amber-bg); color: var(--amber); }
.pill.off, .badge-off { background: #e7e9e8; color: #48524d; }
.tag-row { display: flex; gap: 7px; flex-wrap: wrap; margin: 12px 0; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 17px; margin: 14px 0; }
.card h2 { font-size: 16px; letter-spacing: 0; margin-bottom: 10px; }
.hero { background: var(--green); color: #fff; border: none; padding: 21px; }
.hero h2 { margin: 12px 0 4px; font-size: 25px; letter-spacing: -.6px; }
.hero h2:first-child { margin-top: 0; }
.hero .small, .hero .subtitle { color: #e4f0e9; }
.hero .pill { color: #fff; background: #ffffff24; }
.hero .primary, .hero .btn { background: var(--accent); color: #253b2d; border-color: var(--accent); }

/* Schaltflächen */
.primary, .secondary, .text-button, .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 46px; border-radius: 12px; padding: 10px 14px; border: 0; font-weight: 650; text-decoration: none; text-align: center;
}
.primary, .btn { background: var(--green); color: #fff; width: 100%; }
.primary:hover, .btn:hover { background: var(--green-dark); }
.secondary, .btn-secondary { border: 1px solid var(--line); background: var(--panel); color: var(--ink); width: 100%; }
.secondary:hover, .btn-secondary:hover { background: var(--soft); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #7a1414; }
.text-button { background: none; color: var(--green); padding: 6px 0; min-height: 44px; justify-content: flex-start; text-align: left; }
.btn-row, .stack { display: grid; gap: 10px; margin: 14px 0; }

/* Listen mit Symbolkachel */
.list-item {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 0;
    border: 0; border-bottom: 1px solid var(--line); background: transparent; min-height: 58px; color: var(--ink); text-decoration: none;
}
.list-item:last-child { border-bottom: 0; }
.list-item strong { font-size: 14px; display: block; overflow-wrap: anywhere; }
.list-item .small { display: block; margin-top: 2px; overflow-wrap: anywhere; }
.list-item .pill { flex-shrink: 0; }
.tile-icon { display: grid; place-items: center; width: 41px; height: 41px; flex-shrink: 0; border-radius: 13px; background: var(--soft); color: var(--green); }
.chevron { color: var(--sub); }
.plain-list { list-style: none; padding: 0; margin: 0; }
.snapshot { padding: 10px 0; border-top: 1px solid var(--line); }
.snapshot:first-child { border-top: 0; }

/* Hinweise: immer Text zusätzlich zur Farbe */
.notice, .status { background: var(--soft); padding: 13px 14px; border-radius: 12px; font-size: 13px; margin: 15px 0; color: var(--ink); }
.notice.warning, .status-warn { background: var(--amber-bg); color: var(--amber); }
.status-error { background: var(--red-bg); color: var(--red); }
.notice .primary, .status .btn { margin-top: 10px; }

/* Formulare */
.fields { display: grid; gap: 13px; margin: 18px 0; }
.field { margin: 0 0 13px; }
.fields label, .field > label, .field > legend { display: grid; gap: 6px; font-size: 12px; font-weight: 650; }
.field > label { margin-bottom: 6px; }
.fields input, .fields select, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea, .search {
    border: 1px solid var(--line); border-radius: 11px; padding: 11px; background: var(--panel); color: var(--ink);
    min-width: 0; width: 100%; font-size: 16px; min-height: 46px;
}
.field textarea { min-height: 96px; resize: vertical; }
/* Dateiauswahl: Knopf im Stil der App statt des Browser-Standards (Logos, Belege, Kontoauszug). */
.field input[type=file] { padding: 6px; font-size: 14px; color: var(--sub); cursor: pointer; }
input[type=file]::file-selector-button {
    min-height: 36px; margin-right: 12px; padding: 7px 14px; border: 0; border-radius: 9px;
    background: var(--soft); color: var(--green); font: inherit; font-weight: 650; cursor: pointer;
}
input[type=file]:hover::file-selector-button { background: var(--green); color: #fff; }
input[type=file]:disabled::file-selector-button { opacity: .5; cursor: default; }
.field-pair { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .field-pair { grid-template-columns: 1fr 1fr; } }
.field .hint, .hint { color: var(--sub); font-size: 12px; margin-top: 6px; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.choice, .check { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 13px; padding: 12px; background: var(--panel); font-size: 14px; margin-top: 8px; min-height: 46px; }
.choice input, .check input { width: 20px; height: 20px; accent-color: var(--green); flex-shrink: 0; }
.choice .small, .check .small { display: block; }
/* Auch direkt in einem Feld: Häkchen neben dem Text, nicht die Feldbeschriftung (.field > label) übernehmen (#173). */
.field > .check, .field > .choice { display: flex; gap: 10px; font-size: 14px; font-weight: 400; margin-bottom: 0; }
.validation-message, .validation-errors { color: var(--red); font-size: 12px; font-weight: 600; }
.invalid { border-color: var(--red) !important; }
.copy-box { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 11px; background: var(--paper); color: var(--ink); font-size: 13px; overflow-wrap: anywhere; word-break: break-all; }

/* Untere Navigation */
.bottom-nav {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 10; width: 100%; max-width: 620px;
    display: flex; padding: 8px 5px calc(10px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); gap: 1px;
}
.bottom-nav a {
    flex: 1; min-width: 0; color: var(--sub); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    font-size: 10px; min-height: 48px; border-radius: 10px; padding: 5px 0; text-decoration: none;
}
.bottom-nav a.active { background: var(--soft); color: var(--green); font-weight: 750; }

/* Werbepartner: Kennzahlen als Liste, mehrzeilige Angaben */
dl.facts { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; gap: 6px 14px; margin: 12px 0; font-size: 14px; }
dl.facts dt { color: var(--sub); font-size: 12px; font-weight: 650; padding-top: 2px; }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
.multiline { white-space: pre-line; }
.nowrap { white-space: nowrap; }
.btn.btn-inline { width: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.partner-grid { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 800px) { .partner-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.partner-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 12px; font-size: 14px; }
.partner-tile img, .partner-initials { width: 100%; max-width: 160px; height: 96px; object-fit: contain; background: #fff; border-radius: 10px; }
.partner-initials { display: grid; place-items: center; background: var(--soft); color: var(--green); font-size: 28px; font-weight: 750; }
.partner-tile strong { overflow-wrap: anywhere; }
.partner-logo { display: block; max-width: 240px; max-height: 160px; width: auto; height: auto; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin: 10px 0; }

/* Tabellen */
.office-holder { display: grid; gap: 2px; padding: 8px 0; }
.office-holder + .office-holder { border-top: 1px solid var(--line); }
.office-tools { display: flex; gap: 6px; flex-shrink: 0; }
.office-tools .btn { min-width: 44px; padding-inline: 10px; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.amount-in { color: var(--green); }
.ledger-sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; margin: 0; font-size: 14px; }
.ledger-sum dd { margin: 0; }
.ledger-sum .total { font-weight: 750; border-top: 1px solid var(--line); padding-top: 6px; }
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 14px; }
table.matrix { border-collapse: collapse; width: 100%; background: var(--panel); font-size: 12px; }
table.matrix th, table.matrix td { border-bottom: 1px solid var(--line); padding: 9px; text-align: left; vertical-align: top; }
table.matrix thead th { background: var(--soft); color: var(--green); }
table.matrix caption { caption-side: bottom; padding: 8px; }

#blazor-error-ui {
    background: var(--amber-bg); color: var(--amber); bottom: 0; left: 0; right: 0; display: none;
    padding: 12px 40px 12px 16px; position: fixed; z-index: 1000; box-shadow: 0 -1px 4px rgba(0, 0, 0, .2);
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 12px; top: 10px; }
.blazor-error-boundary { background: var(--red-bg); color: var(--red); padding: 16px; border-radius: 12px; }
.blazor-error-boundary::after { content: "Es ist ein Fehler aufgetreten."; }

/* Zwei-Faktor-Einrichtung: QR-Code und kopierbarer Schlüssel */
.steps li + li { margin-top: 12px; }
.qr { width: 200px; max-width: 100%; margin: 12px 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.qr svg { display: block; width: 100%; height: auto; }
.copy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0; }
.copy-row .key { font-size: 15px; letter-spacing: .5px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; user-select: all; }
.copy-row .btn { width: auto; }

/* Desktop-Layout (docs/design/myboa-desktop.html): Seitenleiste statt unterer Navigation.
   Unter 800 px bleibt alles mobil; 800–1199 px schmale Leiste mit Symbolen; ab 1200 px mit Beschriftung. */
.side-nav, .me-text { display: none; }
.me { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; border-radius: 100px; }
.tile-grid { display: grid; }
.page-grid { display: grid; }
.btn-block { width: 100%; }

@media (min-width: 800px) {
    html { background: var(--paper); }
    body { max-width: none; }
    .shell { display: grid; grid-template-columns: 76px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
    .shell-main { min-width: 0; }
    .side-nav {
        display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto;
        background: var(--green-dark); color: #e9f2ec; padding: 16px 12px;
    }
    .side-nav nav { display: grid; gap: 2px; }
    .side-brand { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 2px 0 14px; color: #fff; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -1px; min-height: 44px; }
    .side-brand .brand-mark { background: var(--accent); color: var(--green-dark); width: 32px; height: 32px; }
    .side-nav a:not(.side-brand) {
        display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 9px 12px;
        border-radius: 10px; color: inherit; text-decoration: none; font-size: 14.5px;
    }
    .side-nav a:not(.side-brand):hover { background: rgba(255, 255, 255, .08); }
    .side-nav a.active { background: #fff; color: var(--green-dark); font-weight: 700; }
    .side-nav a:focus-visible { outline-color: var(--accent); }
    .side-label, .side-group { display: none; }
    .side-group { margin: 14px 12px 4px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.3px; color: #9fc0b2; font-weight: 700; }
    .side-foot { margin-top: auto; padding: 14px 12px 0; font-size: 11px; color: #9fc0b2; overflow-wrap: anywhere; }

    .bottom-nav { display: none; }
    .shell .app-head { position: sticky; top: 0; z-index: 5; justify-content: flex-end; padding: 10px 32px; background: rgba(245, 247, 241, .94); }
    .shell .app-head .brand { display: none; }
    .me { padding: 3px 3px 3px 14px; border: 1px solid var(--line); background: var(--panel); }
    .me:hover { background: var(--soft); }
    .me-text { display: grid; text-align: right; line-height: 1.2; font-size: 13px; }
    .me-text .small { font-size: 11px; }
    .me .round { height: 36px; min-width: 36px; border: 0; }

    .content { padding: 28px 32px 48px; max-width: 1180px; }
    .content.no-nav { max-width: 520px; margin: 0 auto; padding-top: 48px; }
    h1 { font-size: 30px; }
    .card { padding: 20px 22px; }
    .card:has(form) { max-width: 780px; }

    .primary, .btn, .secondary, .btn-secondary { width: auto; min-width: 160px; }
    .btn-block, .no-nav .primary { width: 100%; }
    .btn-row { display: flex; flex-wrap: wrap; }
    .fields input, .fields select, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea, .search { font-size: 15px; }

    .tile-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 14px 0; }
    .tile-grid .list-item { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: var(--panel); }
    .tile-grid .list-item:hover { border-color: var(--green); }
    .page-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
    .page-grid > * { min-width: 0; }
    .page-grid > .card, .page-grid > div > .card:first-child { margin-top: 0; }
    .notice .primary, .status .btn { display: flex; width: fit-content; }
}

@media (min-width: 1200px) {
    .shell { grid-template-columns: 248px minmax(0, 1fr); }
    .side-nav { padding: 18px 14px; }
    .side-brand { justify-content: flex-start; padding-left: 10px; }
    .side-nav a:not(.side-brand) { justify-content: flex-start; }
    .side-label, .side-group { display: block; }
    .side-brand .side-label { display: inline; }
}

@media (max-width: 350px) {
    .content { padding-left: 14px; padding-right: 14px; }
    .app-head { padding: 12px 14px; }
    .primary, .secondary, .btn { padding: 10px; }
    .role { font-size: 9px; }
}

/* Neuerungen und Planung (#151, #152) */
.info-section summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; list-style: none; }
.info-section summary::-webkit-details-marker { display: none; }
.info-section summary::before { content: "▸"; color: var(--sub); }
.info-section[open] summary::before { content: "▾"; }
.info-section.current { border-color: var(--green); }
.info-section h4 { font-size: 14px; margin: 14px 0 6px; }
.info-list { margin: 10px 0 0; padding-left: 20px; }
.info-list li { margin: 4px 0; line-height: 1.45; }

/* Feedback (#150) */
.choice-row { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.choice { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 100px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--green); background: var(--soft); }
.pre-line { white-space: pre-line; overflow-wrap: anywhere; }
.feedback-own .tag-row { margin-bottom: 8px; }
.office-form-title { margin-top: 18px; }
.special-calc { display: flex; gap: 8px; margin-top: 8px; }
.special-calc input { flex: 1; min-width: 0; }
.special-calc .btn { flex-shrink: 0; }
/* Vereinstermine (#48) */
.event { display: flex; gap: 14px; align-items: flex-start; }
.event-date { min-width: 52px; text-align: center; background: var(--soft); color: var(--green); border-radius: 12px; padding: 6px 4px; display: flex; flex-direction: column; flex-shrink: 0; }
.event-day { font-size: 20px; font-weight: 700; line-height: 1.1; }
.event-month { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.event h3 { margin: 0 0 2px; }
.event h3 a { color: inherit; text-decoration: none; }
.event-cancelled h3 { text-decoration: line-through; }
.event .tag-row:empty { display: none; }
.rsvp { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.btn-danger-soft { background: #e7e9e8; color: #48524d; border-color: #c9cecb; }
.event .grow { flex: 1; min-width: 0; }
.attachments li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.attachments li a { font-weight: 600; word-break: break-word; }
.document-row { color: inherit; text-decoration: none; }
.version-row + .version-row { border-top: 1px solid var(--line); padding-top: 12px; }

/* Nachrichten (#236) */
.chat-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.chat-day { align-self: center; font-size: 11px; color: var(--sub); background: var(--soft); border-radius: 100px; padding: 3px 10px; margin: 6px 0; }
.chat-new { display: flex; align-items: center; gap: 8px; color: var(--amber); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.chat-new::before, .chat-new::after { content: ""; flex: 1; border-top: 1px solid var(--amber); }
.msg { max-width: 88%; align-self: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; }
.msg.own { align-self: flex-end; background: var(--soft); border-radius: 14px 14px 4px 14px; }
.msg-head { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; font-size: 12px; color: var(--sub); }
.msg-head strong { color: var(--ink); }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.msg-removed { font-style: italic; color: var(--sub); }
.msg-actions { margin-top: 4px; font-size: 12px; }
.msg-actions summary { cursor: pointer; color: var(--sub); list-style: none; min-height: 24px; }
.msg-actions summary::-webkit-details-marker { display: none; }
.msg-actions .btn-row { margin-top: 6px; }
/* Eingabe klebt am unteren Rand und reicht mit ihrem Hintergrund bis unter die Navigation, damit dazwischen kein Verlauf
   durchscheint. Der negative Rand gleicht den unteren Innenabstand von .content aus. */
.chat-compose {
    position: sticky; bottom: 0; z-index: 2; background: var(--paper);
    padding: 8px 0 calc(var(--nav-height) + 14px + env(safe-area-inset-bottom));
    margin-bottom: calc(-1 * (var(--nav-height) + 28px));
    box-shadow: 0 -10px 10px -10px rgba(24, 61, 52, .25);
}
@media (min-width: 800px) { .chat-compose { padding-bottom: 16px; margin-bottom: -48px; } }
.chat-compose textarea, textarea.chat-input { width: 100%; min-height: 64px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--panel); }
.conversation-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; text-decoration: none; color: inherit; }
.conversation-item + .conversation-item { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.conversation-preview { font-size: 13px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34ch; }
.msg.mention { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.mention-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.mention-suggest .pill { border: 0; min-height: 32px; font-size: 13px; }

/* Anmeldung (#246) */
[hidden] { display: none !important; }
.passkey-login { margin-top: 12px; display: grid; gap: 6px; }
.passkey-item + .passkey-item { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
