/* Musical-Werkstatt Sonnenland – Ensemble-App
   Farben aus dem Logo (Sonne: Gelb → Orange → Rot) und dem Blau der Website. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Raleway"; font-weight: 300; font-display: swap; src: url(fonts/raleway-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Raleway"; font-weight: 500; font-display: swap; src: url(fonts/raleway-latin-500-normal.woff2) format("woff2"); }

:root {
    --sun-1: #FFC63A;
    --sun-2: #F5901E;
    --sun-3: #E5422B;
    --sun: linear-gradient(120deg, var(--sun-1) 0%, var(--sun-2) 50%, var(--sun-3) 100%);
    --accent: #E8701A;
    --accent-ink: #B4500A;
    --blue: #1C4587;
    --blue-2: #2965C6;
    --bg: #FFFAF3;
    --card: #FFFFFF;
    --ink: #2F2F2F;
    --muted: #7A7066;
    --line: #F0E4D4;
    --soft: #FFF2E2;
    --own: #FFE7CC;
    --ok: #2E8B57;
    --warn: #C77700;
    --err: #C62828;
    --shadow: 0 1px 2px rgba(120, 70, 20, .06), 0 4px 16px rgba(120, 70, 20, .06);
    --radius: 14px;
    --top-h: 64px;
    --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-head: "Raleway", "Barlow", system-ui, sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --accent: #FF9A3C;
        --accent-ink: #FFB066;
        --blue: #9DB9F2;
        --blue-2: #7FA6F0;
        --bg: #16120E;
        --card: #211B16;
        --ink: #F2ECE4;
        --muted: #A99D90;
        --line: #3A2F25;
        --soft: #2C231B;
        --own: #4A2E14;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3);
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.45;
    color: var(--ink);
    background: var(--bg);
}
a { color: var(--blue-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: 1.7rem; font-weight: 300; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.08rem; }
img { max-width: 100%; }
code, pre { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85em; }
.muted { color: var(--muted); }
.small, small { font-size: .85rem; }
.pad { padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* ---------- Kopfzeile ---------- */
.topbar {
    position: sticky; top: 0; z-index: 20;
    height: var(--top-h);
    display: flex; align-items: center; gap: 24px;
    padding: 0 20px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
}
.topbar::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
    background: var(--sun);
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none !important; }
.brand img { height: 38px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-head); font-weight: 300; }
.brand-a { font-size: 1.05rem; color: var(--muted); letter-spacing: .01em; }
.brand-b { font-size: 1.15rem; color: var(--sun-2); letter-spacing: .08em; }

.mainnav { display: flex; gap: 4px; margin-left: auto; }
.mainnav a {
    position: relative;
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    color: var(--muted); font-weight: 600; text-decoration: none;
}
.mainnav a:hover { background: var(--soft); color: var(--ink); }
.mainnav a.active { background: var(--soft); color: var(--accent-ink); }
.mainnav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mainnav .badge { position: absolute; top: 2px; left: 26px; }

.badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
    background: var(--sun-3); color: #fff; font-size: .72rem; font-weight: 600; font-style: normal;
}

/* ---------- Inhalt ---------- */
.main { max-width: 1100px; margin: 0 auto; padding: 24px 20px 48px; }
.main-chat { max-width: none; padding: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1, .page-head h2 { margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs { margin: 0 0 12px; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 16px;
}
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.cols > .card { margin-bottom: 0; }
.cols + .card, .cols + .cols { margin-top: 16px; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack > * { margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prose { white-space: normal; margin: 12px 0; }
.tag {
    display: inline-block; padding: 1px 9px; border-radius: 999px;
    background: var(--soft); color: var(--accent-ink); font-size: .78rem; font-weight: 600;
}

/* ---------- Formulare ---------- */
label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .92rem; }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea {
    font: inherit; font-weight: 400; color: var(--ink);
    background: var(--card);
    border: 1.5px solid var(--line); border-radius: 10px;
    padding: 10px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sun-2); box-shadow: 0 0 0 3px rgba(245, 144, 30, .18); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--sun-2); flex: none; padding: 0; }
label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; }
fieldset.box { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
legend { font-weight: 600; font-size: .92rem; padding: 0 4px; }
.checkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; max-height: 360px; overflow: auto; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font: inherit; font-weight: 600; cursor: pointer;
    border: 1.5px solid transparent; border-radius: 999px;
    padding: 10px 22px; text-decoration: none !important;
    transition: transform .08s, filter .15s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sun { background: var(--sun); color: #fff; text-shadow: 0 1px 2px rgba(150, 50, 0, .35); }
.btn-sun:hover { filter: brightness(1.05) saturate(1.05); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--soft); }
.btn-danger { background: transparent; border-color: var(--err); color: var(--err); }
.btn-small { padding: 6px 14px; font-size: .88rem; }
.danger-text { color: var(--err); }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
.row-actions form { margin: 0; }

.flashes { max-width: 1100px; margin: 16px auto 0; padding: 0 20px; }
.page-chat .flashes { position: fixed; top: calc(var(--top-h) + 10px); left: 50%; transform: translateX(-50%); width: min(560px, 92vw); z-index: 30; margin: 0; padding: 0; }
.flash { padding: 10px 14px; border-radius: 10px; margin-bottom: 10px; border-left: 4px solid; background: var(--card); box-shadow: var(--shadow); }
.flash-ok { border-color: var(--ok); }
.flash-err { border-color: var(--err); }
.flash-info { border-color: var(--blue-2); }

/* ---------- Anmeldung ---------- */
body.plain {
    min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(255, 198, 58, .35), transparent 60%),
        radial-gradient(ellipse at 100% 100%, rgba(229, 66, 43, .12), transparent 50%),
        var(--bg);
}
.auth-card { width: min(420px, 100%); background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 28px 28px 22px; border: 1px solid var(--line); }
.auth-logo { display: block; margin: -8px auto 8px; width: 210px; height: auto; }
.auth-logo img { width: 100%; height: auto; display: block; border-radius: 12px; }
.auth-title { text-align: center; font-size: 1.5rem; }
.auth-links { text-align: center; font-size: .92rem; margin: 18px 0 0; line-height: 1.9; }
.checks { list-style: none; padding: 0; margin: 0 0 16px; }
.checks .ok { color: var(--ok); }
.checks .bad { color: var(--err); font-weight: 600; }

/* ---------- Chat ---------- */
.chat {
    display: grid; grid-template-columns: 300px 1fr;
    height: calc(100vh - var(--top-h)); /* Rückfall für Geräte ohne dvh */
    height: calc(100dvh - var(--top-h));
}
.chat-list { border-right: 1px solid var(--line); background: var(--card); overflow-y: auto; padding-bottom: 20px; }
.list-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 16px 6px; }
.list-head h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0; font-family: var(--font); font-weight: 600; }
.chan {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 16px; color: var(--ink); text-decoration: none !important;
    border-left: 3px solid transparent;
}
.chan:hover { background: var(--soft); }
.chan.active { background: var(--soft); border-left-color: var(--sun-2); }
.chan-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chan.has-unread .chan-name { font-weight: 600; }
.chan-when { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.chan.has-unread .chan-when { color: var(--accent-ink); font-weight: 600; }
.avatar {
    flex: none; width: 38px; height: 38px; border-radius: 12px;
    display: grid; place-items: center;
    font-weight: 600; color: #fff;
    background: var(--sun);
}
.avatar-person { border-radius: 50%; background: hsl(var(--hue, 30) 55% 52%); }

.newdm { position: relative; }
.newdm summary { list-style: none; }
.newdm summary::-webkit-details-marker { display: none; }
.newdm-pop {
    position: absolute; right: 0; top: 36px; z-index: 10; width: 250px;
    background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
    padding: 8px;
}
.newdm-list { max-height: 300px; overflow: auto; margin-top: 6px; }
.newdm-list a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink); }
.newdm-list a:hover { background: var(--soft); text-decoration: none; }

.chat-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.chat-empty { margin: auto; text-align: center; color: var(--muted); padding: 20px; }
.chat-empty img { opacity: .9; border-radius: 16px; }
.chat-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 20px; background: var(--card); border-bottom: 1px solid var(--line); }
/* Titel und Untertitel einzeilig (sonst bricht am Handy jedes Wort um); reicht der Platz nicht, rutschen die Knöpfe in eine eigene Zeile */
.chat-head-main { flex: 1 1 170px; min-width: 0; }
.chat-head-main h1, .chat-head-main p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head > .btn { flex: none; }
.chat-head h1 { font-size: 1.25rem; margin: 0; font-weight: 500; }
.chat-head p { margin: 0; }
.chat-head .back { display: none; font-size: 2rem; line-height: 1; padding: 0 8px 4px 0; color: var(--accent); text-decoration: none; }

.messages { flex: 1; overflow-y: auto; padding: 16px 20px 8px; display: flex; flex-direction: column; gap: 2px; overscroll-behavior: contain; }
.load-older { align-self: center; margin-bottom: 10px; }
.day-sep { align-self: center; margin: 14px 0 8px; font-size: .78rem; font-weight: 600; color: var(--muted); background: var(--soft); padding: 3px 12px; border-radius: 999px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: min(640px, 82%); margin-top: 8px; }
.msg.cont { margin-top: 0; }
.msg.own { align-self: flex-end; align-items: flex-end; }
.msg .who { font-size: .8rem; font-weight: 600; color: var(--blue); margin: 0 12px 2px; }
.msg.own .who, .msg.cont .who { display: none; }
.bubble {
    position: relative;
    background: var(--card); border: 1px solid var(--line);
    padding: 7px 12px 6px; border-radius: 16px 16px 16px 6px;
    white-space: pre-wrap; overflow-wrap: anywhere;
}
.msg.cont .bubble { border-top-left-radius: 6px; }
.msg.own .bubble { background: var(--own); border-color: transparent; border-radius: 16px 16px 6px 16px; }
.msg.own.cont .bubble { border-top-right-radius: 6px; }
.bubble .time { float: right; margin: 6px 0 -4px 10px; font-size: .7rem; color: var(--muted); }
.bubble .time .tick { border: 0; background: none; padding: 0 0 0 4px; margin: 0; font: inherit; font-size: .72rem; letter-spacing: -.25em; color: var(--muted); cursor: pointer; }
.bubble .time .tick.read { padding-right: .25em; }
.bubble .time .tick.all { color: #2a8fd6; font-weight: 700; }
.bubble.deleted { font-style: italic; color: var(--muted); background: transparent; }
.bubble .file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 2px 0 4px; border-radius: 10px; background: var(--soft); color: var(--ink); text-decoration: none; white-space: normal; }
.msg.own .bubble .file { background: rgba(255, 255, 255, .55); }
.bubble .file b { display: block; font-weight: 600; word-break: break-all; }
.bubble .file span.ic { font-size: 1.5rem; }
.bubble img.preview { display: block; max-width: min(320px, 100%); max-height: 320px; border-radius: 10px; margin: 2px 0 4px; cursor: zoom-in; }
.bubble audio { display: block; width: 260px; max-width: 100%; margin: 4px 0; }
.msg .del { opacity: 0; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .75rem; padding: 2px 8px; }
.msg:hover .del, .msg:focus-within .del { opacity: 1; }

.composer {
    display: flex; align-items: flex-end; gap: 8px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--card); border-top: 1px solid var(--line);
}
.composer-main { flex: 1; min-width: 0; }
.composer textarea { resize: none; max-height: 160px; border-radius: 20px; padding: 9px 16px; line-height: 1.35; display: block; }
.attach-name { font-size: .82rem; color: var(--accent-ink); padding: 0 8px 4px; display: flex; gap: 8px; align-items: center; }
.attach-name button { border: 0; background: none; color: var(--err); cursor: pointer; font-size: 1rem; }
.attach, .send {
    flex: none; width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer; border: 0; padding: 0;
}
.attach { color: var(--muted); background: transparent; }
.attach:hover { background: var(--soft); }
.send { background: var(--sun); color: #fff; }
.send:disabled { filter: grayscale(.6); opacity: .6; }
.attach svg, .send svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }


/* ---------- Termine ---------- */
.month { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 26px 0 10px; font-family: var(--font); font-weight: 600; }
.month:first-of-type { margin-top: 8px; }
.event { display: flex; gap: 18px; padding: 16px 18px; border-left: 5px solid var(--line); }
.event.answered-yes { border-left-color: var(--ok); }
.event.answered-maybe { border-left-color: var(--warn); }
.event.answered-no { border-left-color: var(--line); opacity: .78; }
.event.unanswered { border-left-color: var(--sun-2); }
.event h3 { margin: 0 0 4px; font-size: 1.2rem; }
.event h3 a { color: var(--ink); }
.event-body { flex: 1; min-width: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 10px; color: var(--muted); font-size: .92rem; align-items: center; }
.counts { margin: 8px 0 0; color: var(--muted); }
.c-yes { color: var(--ok); }
.c-maybe { color: var(--warn); }
.datebadge {
    flex: none; width: 64px; text-align: center; align-self: flex-start;
    border-radius: 12px; overflow: hidden; background: var(--soft); color: var(--ink);
    display: flex; flex-direction: column; text-decoration: none !important;
}
.datebadge .dow { background: var(--sun); color: #fff; font-size: .75rem; font-weight: 600; padding: 2px 0; text-transform: uppercase; letter-spacing: .08em; }
.datebadge .day { font-size: 1.7rem; font-weight: 600; line-height: 1.2; padding-top: 2px; }
.datebadge .mon { font-size: .8rem; color: var(--muted); padding-bottom: 6px; }
.datebadge.big { width: 84px; }
.datebadge.big .day { font-size: 2.2rem; }

.rsvp { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.rsvp button {
    font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
    padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--muted);
}
.rsvp button:hover { border-color: currentColor; }
.rsvp .rsvp-yes.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.rsvp .rsvp-maybe.on { background: var(--warn); border-color: var(--warn); color: #fff; }
.rsvp .rsvp-no.on { background: var(--err); border-color: var(--err); color: #fff; }
.rsvp-note { flex-basis: 100%; }

.event-detail-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 8px; }
.sub { margin-top: 22px; }
.rsvp-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 22px; }
.rsvp-col { background: var(--soft); border-radius: 12px; padding: 12px 14px; }
.rsvp-col h3 { font-size: .95rem; display: flex; justify-content: space-between; }
.rsvp-col ul { list-style: none; padding: 0; margin: 0; font-size: .95rem; line-height: 1.7; }
.rsvp-by { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.rsvp-nudge { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.rsvp-pick { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.rsvp-for { margin-top: 12px; }
.rsvp-for > summary { cursor: pointer; }
.rsvp-for-form { display: grid; gap: 10px; margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--soft); }
.rsvp-for-form select, .rsvp-for-form input[name=note] { width: 100%; }
.rsvp-col-yes h3 { color: var(--ok); }
.rsvp-col-maybe h3 { color: var(--warn); }
.rsvp-col-no h3 { color: var(--err); }
.count { font-weight: 600; }
.form-card { max-width: 680px; }

/* ---------- Dateien ---------- */
.search input { width: 200px; padding: 6px 14px; border-radius: 999px; }
.folders { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none !important; }
.chip span { color: var(--muted); font-weight: 400; margin-left: 4px; }
.chip.on { background: var(--sun); color: #fff; border-color: transparent; }
.chip.on span { color: rgba(255, 255, 255, .85); }
.ficon { font-size: 1.7rem; flex: none; width: 36px; text-align: center; }
.finfo { flex: 1; min-width: 0; }
.finfo p { margin: 2px 0 0; }
.finfo audio { margin-top: 6px; width: 100%; max-width: 380px; height: 36px; }

.dialog { border: 0; border-radius: 18px; padding: 24px; width: min(520px, 94vw); background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.dialog::backdrop { background: rgba(40, 20, 0, .45); }

/* ---------- Profil & Verwaltung ---------- */
.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 4px 20px; }
.people li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pname { flex: 1; min-width: 0; }
.subnav { display: flex; gap: 6px; margin-bottom: 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.subnav a { padding: 8px 14px; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; text-decoration: none; }
.subnav a.on { color: var(--accent-ink); border-image: var(--sun) 1; border-bottom-width: 3px; border-bottom-style: solid; }
.table-wrap { overflow-x: auto; padding: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr.inactive { opacity: .5; }
.table tr.selected td { background: var(--soft); }
.table a { color: var(--ink); }
.status { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.status-ok { background: rgba(46, 139, 87, .14); color: var(--ok); }
.status-wait { background: rgba(41, 101, 198, .12); color: var(--blue-2); }
.status-warn { background: rgba(199, 119, 0, .14); color: var(--warn); }
.status-off { background: var(--soft); color: var(--muted); }
.codebox { background: var(--soft); border-radius: 12px; padding: 14px; border: 2px dashed var(--sun-2); }
.codebox p { margin: 0 0 6px; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 600; letter-spacing: .08em; }
.codebox .code { font-size: 1.6rem; color: var(--accent-ink); }
pre.sample { background: var(--soft); padding: 12px; border-radius: 10px; overflow-x: auto; margin: 0; }
.filter-input { padding: 6px 12px; }

.lbl-sm { display: none; }
.subnav-desk { display: none; }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
    :root { --top-h: 56px; --nav-h: 62px; }
    body { font-size: 16px; }
    .topbar { padding: 0 14px; }
    .brand img { height: 32px; }
    .brand-a { font-size: .92rem; }
    .brand-b { font-size: 1rem; }
    .mainnav {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
        transform: translateZ(0); /* eigene Ebene: bleibt beim Scrollen am iPhone ruhig */
        margin: 0; gap: 0; justify-content: space-around;
        background: var(--card); border-top: 1px solid var(--line);
        padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    }
    .mainnav a { flex-direction: column; gap: 2px;  font-size: .7rem; border-radius: 12px; flex: 1; max-width: 90px; }
    .mainnav a.active { background: transparent; }
    .mainnav a.active svg { stroke: var(--sun-2); }
    .mainnav .badge { top: 0; left: calc(50% + 6px); }
    .main { padding: 16px 14px calc(var(--nav-h) + 30px + env(safe-area-inset-bottom)); }
    .main-chat { padding: 0; }
    h1 { font-size: 1.45rem; }
    .card { padding: 16px; }

    .chat { grid-template-columns: 1fr; height: calc(100vh - var(--top-h) - var(--nav-h) - env(safe-area-inset-bottom)); height: calc(100dvh - var(--top-h) - var(--nav-h) - env(safe-area-inset-bottom)); }
    .chat-list { border-right: 0; }
    .chat.has-current .chat-list { display: none; }
    .chat:not(.has-current) .chat-pane { display: none; }
    .chat-head { padding: 10px 12px; }
    .chat-head .back { display: block; }
    .messages { padding: 12px 10px 6px; }
    .msg { max-width: 88%; }
    .msg .del { opacity: 1; }

    .grid2 { grid-template-columns: 1fr; }
    .cols { grid-template-columns: 1fr; }
    .search input { width: 150px; }
    .users-table th:nth-child(3), .users-table td:nth-child(3), .users-table th:nth-child(7), .users-table td:nth-child(7) { display: none; }
}

@media print {
    .topbar, .mainnav, .subnav, .actions, form, .flash { display: none !important; }
}

/* ---------- Kalender-Abos ---------- */
.source { border-top: 1px solid var(--line); padding: 14px 0 6px; }
.source:first-of-type { border-top: 0; }
.source-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.source h3 { margin: 0 0 2px; }
.source p { margin: 0 0 6px; }
.source details summary { cursor: pointer; color: var(--blue-2); margin: 4px 0; }
.source-form { margin: 10px 0; padding: 12px; background: var(--soft); border-radius: 10px; }
.steps { padding-left: 20px; line-height: 1.7; margin: 0; }
.tag-ext { background: rgba(41, 101, 198, .12); color: var(--blue-2); }

/* ---------- Push ---------- */
.push-device { background: var(--soft); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.push-device p { margin: 0; }
.push-ios { border-left: 3px solid var(--sun-2); padding-left: 10px; }
.push-android summary { cursor: pointer; }
.credit .bug-link { margin-right: 14px; }
/* Ideenecke */
.idea-sun { --idea-bg: #fff1b8; } .idea-rose { --idea-bg: #ffd9d2; } .idea-mint { --idea-bg: #d3f2df; } .idea-sky { --idea-bg: #d6e9fb; } .idea-lilac { --idea-bg: #e8dcfa; }
.idea-boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; margin-bottom: 14px; }
.idea-board-tile { display: flex; flex-direction: column; gap: 6px; padding: 14px; min-height: 120px; border-radius: 14px; background: var(--idea-bg); color: #2b2420; text-decoration: none;
    box-shadow: 0 2px 6px rgba(80, 50, 10, .12); transform: rotate(-.4deg); transition: transform .15s; }
.idea-board-tile:nth-child(even) { transform: rotate(.5deg); }
.idea-board-tile:hover { transform: rotate(0) translateY(-2px); }
.idea-board-tile b { font-size: 1.05rem; }
.idea-board-tile small { color: #5a4c40; }
.idea-board-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .78rem; color: #5a4c40; }
.idea-sort { display: inline-flex; gap: 4px; }
.idea-sort a { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: inherit; }
.idea-sort a.is-on { border-color: var(--sun-2); background: var(--soft); font-weight: 600; }
.idea-new > summary { list-style: none; display: inline-flex; }
.idea-new > summary::-webkit-details-marker { display: none; }
.idea-new[open] > summary { margin-bottom: 10px; }
.idea-form textarea { width: 100%; }
.idea-form-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.idea-form-row input[type=url] { flex: 1 1 200px; }
.idea-file { display: inline-flex; gap: 6px; align-items: center; margin: 0; font-size: .85rem; }
.idea-file input { max-width: 200px; font-size: .8rem; }
.idea-colors { display: inline-flex; gap: 6px; }
.idea-swatch { width: 28px; height: 28px; border-radius: 50%; background: var(--idea-bg); border: 2px solid rgba(0, 0, 0, .12); margin: 0; cursor: pointer; display: inline-grid; place-items: center; }
.idea-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.idea-swatch:has(input:checked) { border-color: #2b2420; box-shadow: 0 0 0 2px #fff inset; }
.idea-wall { columns: 250px; column-gap: 14px; margin-top: 12px; }
.idea { position: relative; break-inside: avoid; margin: 0 0 14px; padding: 12px 12px 8px; border-radius: 6px 6px 14px 6px; background: var(--idea-bg); color: #2b2420;
    box-shadow: 0 3px 8px rgba(80, 50, 10, .14); display: grid; gap: 8px; overflow-wrap: anywhere; }
.idea.is-pinned { box-shadow: 0 0 0 2px #d9481c, 0 3px 8px rgba(80, 50, 10, .14); }
.idea-pin { position: absolute; top: -8px; right: 10px; font-size: 1.1rem; }
.idea a { color: #1d4f9a; }
.idea-img img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: cover; border-radius: 8px; }
.idea-text { font-size: .95rem; line-height: 1.45; }
.idea-link { font-size: .85rem; font-weight: 600; text-decoration: none; }
.idea-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .78rem; color: #5a4c40; }
.idea-who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.avatar-xs { width: 22px; height: 22px; font-size: .6rem; }
.idea-like { margin: 0; }
.idea-like button { border: 0; background: rgba(255, 255, 255, .55); border-radius: 999px; padding: 3px 10px; font-size: .85rem; cursor: pointer; color: #2b2420; }
.idea-like button.is-on { background: #fff; }
.idea-comments > summary { cursor: pointer; color: #5a4c40; }
.idea-comment { margin: 4px 0; display: flex; gap: 4px; align-items: baseline; flex-wrap: wrap; }
.idea-comment form { margin: 0; }
.idea-comment-form { display: flex; gap: 6px; margin-top: 6px; }
.idea-comment-form input { flex: 1; min-width: 0; padding: 5px 8px; font-size: .85rem; background: rgba(255, 255, 255, .7); }
.idea-tools { display: flex; flex-wrap: wrap; gap: 4px 12px; padding-top: 4px; border-top: 1px dashed rgba(0, 0, 0, .15); }
.idea-tools form { margin: 0; }
.idea .idea-form { background: rgba(255, 255, 255, .5); padding: 8px; border-radius: 10px; }
.bug-list { list-style: none; margin: 0; padding: 0; }
.bug { padding: 12px 0; border-top: 1px solid var(--line); }
.bug:first-child { border-top: 0; }
.bug.is-done { opacity: .75; }
.bug-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.bug-body { margin: 6px 0; overflow-wrap: anywhere; }
.bug-shot img { max-width: 220px; max-height: 260px; border-radius: 10px; border: 1px solid var(--line); display: block; margin: 6px 0; }
.bug-meta { overflow-wrap: anywhere; }
.bug-reply { background: var(--soft); border-radius: 10px; padding: 6px 10px; }
.bug-done { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; }
.bug-done input { flex: 1 1 220px; }
.video-ext { display: grid; gap: 8px; padding: 12px; margin: 6px 0; border-radius: 12px; background: var(--soft); font-size: .9rem; max-width: 340px; }
.video-ext-actions { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.viewer .video-ext { background: var(--card); color: var(--ink); }
.push-android[open] summary { margin-bottom: 6px; }
.push-banner {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin: 8px 14px 0; padding: 10px 14px; border-radius: 12px;
    background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .92rem;
}
.push-banner span { flex: 1; min-width: 180px; }
.push-banner .x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; padding: 2px 6px; }

/* ---------- Navigation: kurze Beschriftung am Handy ---------- */
.mainnav .lbl-short { display: none; }
@media (max-width: 760px) {
    .mainnav .lbl { display: none; }
    .mainnav .lbl-short { display: inline; }
    .mainnav a { padding: 6px 2px; }
}
@media (min-width: 761px) and (max-width: 1199px) {
    .mainnav a span.lbl { display: none; }
    .mainnav a { padding: 8px 10px; }
}

/* ---------- Hall of Fame ---------- */
.poster-ph {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    width: 100%; height: 100%; aspect-ratio: 3 / 4; padding: 10px; text-align: center;
    background: var(--sun); color: #fff; font-size: 2.6rem; line-height: 1;
}
.poster-ph small { font-size: .85rem; font-weight: 600; line-height: 1.25; text-shadow: 0 1px 2px rgba(150, 50, 0, .4); }
.poster-ph.mini { width: 42px; height: 56px; font-size: 1.3rem; border-radius: 6px; padding: 0; }
.poster-ph.big { border-radius: 14px; font-size: 5rem; }

.hof-hero {
    display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
    padding: 26px 26px; margin-bottom: 8px; border-radius: 20px; color: #fff;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(255, 220, 120, .55), transparent 55%),
        linear-gradient(120deg, #F5901E 0%, #E5422B 55%, #1C4587 140%);
    box-shadow: var(--shadow);
}
.hof-hero h1 { color: #fff; font-size: 2.1rem; margin: 2px 0 4px; font-weight: 500; }
.hof-hero p { margin: 0; }
.hof-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; opacity: .9; }
.hof-me { display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); border-radius: 16px; padding: 12px 18px; backdrop-filter: blur(4px); }
.hof-me-num { font-size: 2.8rem; font-weight: 600; line-height: 1; }
.hof-me-label { font-size: .95rem; line-height: 1.35; }


.hof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.hof-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.hof-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(120, 70, 20, .16); }
.hof-poster { position: relative; aspect-ratio: 1 / 1.414; background: var(--soft); overflow: hidden; }
.hof-poster img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hof-card-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.hof-card-body b { font-size: 1rem; line-height: 1.25; }
.hof-date { font-size: .78rem; font-weight: 600; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .04em; margin: 0; }


.hof-detail { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: 26px; align-items: start; }
.hof-detail-poster img { width: 100%; border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); display: block; }
.hof-detail h1 { margin: 4px 0 6px; }
.hof-badge { display: inline-block; background: var(--ok); color: #fff; font-weight: 600; padding: 4px 12px; border-radius: 999px; font-size: .9rem; }
.hof-cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.hof-cast section { background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.hof-cast h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); margin: 0 0 4px; }
.hof-cast ul { list-style: none; margin: 0; padding: 0; line-height: 1.65; font-size: .95rem; }
.hof-cast li.is-me { font-weight: 600; color: var(--accent-ink); }
.hof-cast li.is-me::after { content: " ★"; }
.hof-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }

/* Verwaltung */
.thumbcell { width: 56px; padding-top: 6px !important; padding-bottom: 6px !important; }
.thumbcell img { width: 42px; height: 56px; object-fit: cover; border-radius: 6px; display: block; }
.poster-edit { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.poster-edit .poster-preview, .poster-edit .poster-ph { width: 150px; border-radius: 10px; box-shadow: var(--shadow); }
.poster-edit .poster-ph { font-size: 2.4rem; }
.poster-edit .stack { flex: 1; min-width: 220px; }
.people-pick { columns: 220px; column-gap: 18px; }
.people-pick .check { break-inside: avoid; padding: 3px 0; }
.voice-head { column-span: none; break-after: avoid; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); margin: 10px 0 2px; }
.voice-head:first-child { margin-top: 0; }
.linked { color: var(--ok); font-size: .7rem; vertical-align: middle; }
.member-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 14px; }
.member-add input[name=name] { flex: 1; min-width: 180px; }
.voice-input { width: 90px !important; }
.members-table input, .members-table select { padding: 6px 8px; }
.members-table td { vertical-align: middle; }
form.inline { display: inline; }
.nowrap { white-space: nowrap; }

@media (max-width: 760px) {
    .hof-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hof-detail { grid-template-columns: 1fr; }
    .hof-detail-poster { max-width: 260px; margin: 0 auto; }
    .members-table th:nth-child(4), .members-table td:nth-child(4) { display: none; }
}

/* ---------- Fahrgemeinschaften ---------- */
.rides { margin-top: 16px; }
.ride-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ride { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--card); display: flex; flex-direction: column; gap: 6px; }
.ride-mine { border-color: var(--sun-2); background: var(--soft); }
.ride-booked { border-color: var(--ok); box-shadow: 0 0 0 2px rgba(46, 139, 87, .18); }
.ride-head { display: flex; align-items: center; gap: 10px; }
.ride-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.ride p { margin: 0; }
.ride-note { background: var(--soft); border-radius: 8px; padding: 6px 10px; }
.ride-mine .ride-note { background: var(--card); }
.seats { display: flex; gap: 3px; flex-wrap: wrap; max-width: 90px; justify-content: flex-end; }
.seats i { width: 13px; height: 13px; border-radius: 4px; border: 2px solid var(--ok); background: transparent; }
.seats i.taken { background: var(--muted); border-color: var(--muted); }
.ride-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.ride-actions form { margin: 0; }
.ride-book { display: flex; gap: 6px; align-items: center; }
.ride-book select { width: auto; padding: 5px 8px; }
.ride-requests { list-style: none; padding: 0; margin: 0; }
.ride-requests li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ride-requests li:last-child { border-bottom: 0; }
.ride-requests form { margin: 0; }
.ride-forms { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.ride-form summary { list-style: none; display: inline-flex; }
.ride-form summary::-webkit-details-marker { display: none; }
.ride-form[open] summary { margin-bottom: 10px; }
.ride-form form { background: var(--soft); border-radius: 12px; padding: 14px; }
.ride-edit summary { list-style: none; display: inline-flex; }
.ride-edit summary::-webkit-details-marker { display: none; }
.ride-actions .ride-edit[open] { flex-basis: 100%; order: 10; }
.ride-edit form { background: var(--card); border-radius: 12px; padding: 12px; margin-top: 8px; }
.ride-hint { white-space: nowrap; }
.ride-line { margin: 0 0 4px; }
.ride-mine-list, .ride-open { list-style: none; padding: 0; margin: 0; }
.ride-mine-list li, .ride-open li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ride-mine-list li:last-child, .ride-open li:last-child { border-bottom: 0; }
.ride-mine-list a, .ride-open a { color: var(--ink); }

/* ---------- Betrachter (Overlay mit ✕) ---------- */
html.viewer-on, html.viewer-on body { overflow: hidden; }
.viewer { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: rgba(18, 14, 10, .96); color: #fff; }
.viewer-bar {
    display: flex; align-items: center; gap: 10px; flex: none;
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px; background: rgba(0, 0, 0, .35);
}
.viewer-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.viewer-btn {
    flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
    background: rgba(255, 255, 255, .14); color: #fff; font: inherit; font-size: 1.3rem; cursor: pointer; text-decoration: none !important;
}
.viewer-btn:hover, .viewer-btn:focus-visible { background: rgba(255, 255, 255, .28); outline: none; }
.viewer-x { background: var(--sun); }
.viewer-body { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 10px calc(16px + env(safe-area-inset-bottom)); }
.viewer-body.is-center { justify-content: center; }
.viewer-body img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.viewer-body video { max-width: 100%; max-height: 100%; }
.viewer-body audio { width: min(480px, 100%); }
.viewer-page { background: #fff; border-radius: 2px; box-shadow: 0 2px 12px rgba(0, 0, 0, .5); max-width: 100%; height: auto; }
.viewer-msg { color: rgba(255, 255, 255, .8); text-align: center; margin: auto 0; padding: 20px; }

/* ---------- Zurück-Pfeil in der Home-Bildschirm-App ---------- */
.topback {
    flex: none; width: 38px; height: 38px; margin-right: -10px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--soft); color: var(--accent-ink); font-size: 1.9rem; line-height: 1; padding-bottom: 4px;
}
/* Installierte App: kein Nachfedern über Seitenanfang/-ende – sonst federt am iPhone die angeheftete Menüleiste mit.
   Runterwischen zum Aktualisieren hat eigenen Code und braucht das Federn nicht. */
html.is-standalone, html.is-standalone body { overscroll-behavior-y: none; }
.is-standalone .topbar { padding-top: env(safe-area-inset-top); height: calc(var(--top-h) + env(safe-area-inset-top)); }
.is-standalone .chat { height: calc(100vh - var(--top-h) - env(safe-area-inset-top)); height: calc(100dvh - var(--top-h) - env(safe-area-inset-top)); }
@media (max-width: 760px) {
    .is-standalone .chat { height: calc(100vh - var(--top-h) - env(safe-area-inset-top) - var(--nav-h) - env(safe-area-inset-bottom)); height: calc(100dvh - var(--top-h) - env(safe-area-inset-top) - var(--nav-h) - env(safe-area-inset-bottom)); }

    /* Installierte App am Handy: fester Rahmen statt angehefteter Leisten.
       iOS 27 zeichnet angeheftete (fixed/sticky) Leisten in der installierten App beim Scrollen mitten ins Bild.
       Deshalb scrollt hier nicht die Seite, sondern nur der Inhalt (.main) zwischen Kopfleiste und Menü. */
    html.is-standalone:has(> body:not(.plain)) { height: 100%; overflow: hidden; overscroll-behavior: none; }
    html.is-standalone body:not(.plain) { height: 100%; overflow: hidden; overscroll-behavior: none; display: flex; flex-direction: column; }
    html.is-standalone .topbar, html.is-standalone .viewas-bar, html.is-standalone .flashes { position: relative; top: auto; flex: none; }
    html.is-standalone .mainnav { position: relative; flex: none; order: 10; transform: none; }
    html.is-standalone .main {
        flex: 1 1 auto; min-height: 0; width: 100%; box-sizing: border-box;
        overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch;
        padding-bottom: 30px;
    }
    html.is-standalone .main-chat { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
    html.is-standalone .chat { flex: 1 1 auto; min-height: 0; height: auto; }
    html.is-standalone .bulk-bar { top: 8px; }
}

/* ---------- CSV-Kontrolle ---------- */
.csv-check h2 { margin: 6px 0 4px; font-size: 1.05rem; }
.csv-enc { display: flex; flex-direction: column; gap: 6px; background: var(--soft); border-radius: 12px; padding: 12px 14px; }
.csv-enc p { margin: 0; }
.csv-check mark { background: rgba(255, 198, 58, .45); color: inherit; border-radius: 3px; padding: 0 1px; }
.chips-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips-list li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: .92rem; }
.csv-issues { border-left: 4px solid var(--warn); background: rgba(199, 119, 0, .08); border-radius: 8px; padding: 10px 14px; }
.csv-issues ul { margin: 4px 0; padding-left: 18px; line-height: 1.6; }
.csv-table td, .csv-table th { white-space: nowrap; }

/* ---------- Personen löschen ---------- */
.selcol { width: 34px; padding-right: 0 !important; }
.bulk-bar {
    position: sticky; top: calc(var(--top-h) + 8px); z-index: 10; margin-bottom: 12px;
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    background: var(--card); border: 1px solid var(--err); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow);
}
.bulk-bar span { font-weight: 600; }
.delete-box { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.delete-box p { margin: 0; }

/* Hall of Fame: eigene Auftritte farbig, andere ausgegraut */
.hof-card.not-there { box-shadow: none; }
.hof-card.not-there .hof-poster img, .hof-card.not-there .poster-ph { filter: grayscale(1) opacity(.45); }
.hof-card.not-there .hof-card-body { opacity: .55; }
.hof-ribbon { position: absolute; top: 10px; right: -2px; background: var(--ok); color: #fff; font-size: .78rem; font-weight: 600; padding: 3px 10px 3px 12px; border-radius: 999px 0 0 999px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }

/* ---------- Backup ---------- */
.backup-list { list-style: none; margin: 0; padding: 0; }
.backup-list li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.backup-list li > span { flex: 1; }
.backup-list form { margin: 0; }

/* ---------- Chat: Antworten, Reaktionen, Menü, Erwähnungen, Anheften ---------- */
.msg { position: relative; }
.msg .more {
    position: absolute; top: 18px; right: -30px;
     background: var(--card); color: var(--muted); cursor: pointer;
    box-shadow: var(--shadow);  transition: opacity .15s;
}
.msg.own .more { right: auto;  }
.msg.cont .more { top: 0; }
.msg:hover .more, .msg .more:focus-visible { opacity: 1; }
.quote {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; text-align: left; cursor: pointer;
    font: inherit; font-size: .85rem; color: inherit; background: rgba(0, 0, 0, .05); border: 0; border-left: 3px solid var(--sun-2);
    border-radius: 8px; padding: 4px 9px; margin: 2px 0 5px; white-space: normal;
}
.quote b { color: var(--blue); font-size: .8rem; }
.quote span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; opacity: .85; }
.rx-row { display: flex; flex-wrap: wrap; gap: 4px; margin: -6px 8px 0; position: relative; z-index: 1; }
.rx { font: inherit; font-size: .85rem; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 1px 8px; cursor: pointer; box-shadow: var(--shadow); }
.rx.me { border-color: var(--sun-2); background: var(--soft); }
.mention { color: var(--blue-2); font-weight: 600; }
.mention-me { background: rgba(255, 198, 58, .35); border-radius: 4px; padding: 0 2px; color: inherit; }
.msg.flash-msg .bubble { animation: flashmsg 1.4s ease; }
@keyframes flashmsg { 0%, 60% { box-shadow: 0 0 0 4px rgba(245, 144, 30, .55); } 100% { box-shadow: none; } }
.msg.is-pinned .bubble { border-color: var(--sun-2); }

.pinned-bar { display: flex; align-items: center; gap: 8px; padding: 6px 20px; background: var(--soft); border-bottom: 1px solid var(--line); font-size: .88rem; }
.pinned-main { flex: 1; min-width: 0; display: flex; gap: 8px; align-items: center; text-align: left; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 2px 0; }
.pinned-main > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pinned-more { color: var(--muted); font-size: .8rem; }

.sheet-wrap { position: fixed; inset: 0; z-index: 150; background: rgba(30, 15, 0, .35); display: flex; align-items: flex-end; justify-content: center; }
.sheet {
    width: min(420px, 100%); background: var(--card); border-radius: 18px 18px 0 0; padding: 10px 10px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .2); display: flex; flex-direction: column; animation: sheetup .18s ease-out;
}
@media (min-width: 761px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 18px; } }
@keyframes sheetup { from { transform: translateY(30px); opacity: 0; } }
.sheet-rx { display: flex; justify-content: space-around; padding: 6px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.sheet-rx button { font-size: 1.6rem; border: 0; background: none; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; }
.sheet-rx button:hover, .sheet-rx button.me { background: var(--soft); }
.sheet-item { font: inherit; text-align: left; border: 0; background: none; padding: 12px 14px; border-radius: 10px; cursor: pointer; color: var(--ink); }
.sheet-item:hover { background: var(--soft); }
.sheet-cancel { text-align: center; color: var(--muted); }

.reply-preview { display: flex; align-items: center; gap: 8px; font-size: .85rem; background: var(--soft); border-left: 3px solid var(--sun-2); border-radius: 8px; padding: 5px 8px; margin-bottom: 6px; }
.reply-preview span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer.is-editing .reply-preview { border-left-color: var(--blue-2); }
.bar-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; }
.composer-main { position: relative; }
.mention-pop {
    position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 20; min-width: 220px; max-width: 100%;
    background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, .15); padding: 4px;
}
.mention-pop button { display: block; width: 100%; text-align: left; font: inherit; border: 0; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.mention-pop button.on, .mention-pop button:hover { background: var(--soft); }

/* Umfragen */
.poll { white-space: normal; min-width: min(280px, 70vw); margin: 2px 0 4px; }
.poll-q { font-weight: 600; margin-bottom: 2px; }
.poll-hint { font-size: .75rem; color: var(--muted); margin-bottom: 6px; }
.poll-opt {
    position: relative; display: flex; align-items: center; gap: 8px; width: 100%; overflow: hidden; text-align: left; cursor: pointer;
    font: inherit; font-size: .92rem; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; padding: 7px 10px; margin-top: 5px;
}
.msg.own .poll-opt { background: rgba(255, 255, 255, .6); }
.poll-opt:disabled { cursor: default; }
.poll-opt.me { border-color: var(--sun-2); }
.poll-bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255, 198, 58, .28); transition: width .3s; }
.poll-opt.me .poll-bar { background: rgba(245, 144, 30, .32); }
.poll-check, .poll-label, .poll-count { position: relative; }
.poll-check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--muted); display: grid; place-items: center; font-size: .7rem; flex: none; }
.poll-opt.me .poll-check { background: var(--sun-2); border-color: var(--sun-2); color: #fff; }
.poll-label { flex: 1; }
.poll-count { font-weight: 600; color: var(--muted); }
.poll-names { font-size: .75rem; color: var(--muted); margin: 2px 4px 0; }
.poll-foot { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.linkish { font: inherit; border: 0; background: none; color: var(--blue-2); cursor: pointer; padding: 0; }
.poll-opts { display: flex; flex-direction: column; gap: 6px; }

/* ---------- Datenschutz ---------- */
.auth-card.wide { width: min(760px, 100%); }
.auth-foot { text-align: center; font-size: .8rem; margin: 14px 0 0; }
.auth-foot a { color: var(--muted); }
.consent-list { line-height: 1.6; padding-left: 18px; }
.prose-page { max-width: 780px; }
.prose-page h2 { margin-top: 20px; font-size: 1.1rem; }
.prose-page ul { padding-left: 20px; line-height: 1.6; }
.danger-zone { border: 1px solid rgba(198, 40, 40, .35); }
.auth-card .prose-page { border: 0; box-shadow: none; padding: 0; margin: 0; }

/* ---------- Profilfotos ---------- */
.avatar.has-photo { padding: 0; overflow: hidden; background: var(--soft); }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-sm { width: 30px; height: 30px; font-size: .8rem; }
.avatar-lg { width: 44px; height: 44px; font-size: 1.1rem; vertical-align: middle; }
.avatar-xl { width: 96px; height: 96px; font-size: 2.4rem; flex: none; }
h1.hello { display: flex; align-items: center; gap: 12px; }
.photo-edit { display: flex; gap: 18px; align-items: center; }
.file-btn { align-self: flex-start; }
.namecell { display: flex; gap: 10px; align-items: center; }
.msg:not(.own) { padding-left: 34px; }
.page-chat .messages[data-direct="1"] .msg:not(.own) { padding-left: 0; }
.msg-av {
    position: absolute; left: 0; top: 20px; width: 28px; height: 28px; border-radius: 50%; overflow: hidden;
    display: grid; place-items: center; color: #fff; font-size: .75rem; font-weight: 600; background: hsl(var(--hue, 30) 55% 52%);
}
.msg-av img { width: 100%; height: 100%; object-fit: cover; }
.msg.cont .msg-av { display: none; }
.date-input { width: 120px !important; }
.guide ol { padding-left: 18px; line-height: 1.6; margin: 6px 0; }
.guide summary { cursor: pointer; margin: 4px 0; }
.social-mini { margin: 0; color: var(--muted); }

/* ---------- Startseite (Dashboard) ---------- */
.home-hero {
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 22px 24px; margin-bottom: 14px; border-radius: 20px; color: #fff; box-shadow: var(--shadow);
    background: radial-gradient(ellipse at 10% 0%, rgba(255, 220, 120, .6), transparent 55%), linear-gradient(120deg, #F5901E 0%, #E5422B 60%, #B73A6B 130%);
}
.home-hero h1 { color: #fff; margin: 2px 0; font-weight: 500; }
.home-hero p { margin: 0; }
.home-hero-acts { display: flex; align-items: center; gap: 10px; }
.home-ideas { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 999px; color: #fff; font-weight: 600; text-decoration: none !important;
    background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .4); white-space: nowrap; }
.home-ideas:hover { background: rgba(255, 255, 255, .3); }
@media (max-width: 560px) {
    .home-hero { flex-wrap: nowrap; align-items: flex-start; }
    .home-hero > div:first-child { min-width: 0; }
    .home-hero-acts { flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
    .home-hero-acts .home-shows, .home-ideas { padding: 6px 12px; font-size: .9rem; }
}
.home-ideas .badge { position: absolute; top: -5px; right: -6px; }
.home-shows { color: #fff; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; padding: 8px 16px; text-decoration: none !important; }
.bday-today {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding: 12px 16px; border-radius: 14px;
    background: linear-gradient(90deg, rgba(255, 198, 58, .35), rgba(245, 144, 30, .15)); border: 1px solid rgba(245, 144, 30, .4);
}
.bday-today .bday-msg { flex: 1; min-width: 180px; }
.bday-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bday-acts form { margin: 0; }
.bday-done { font-weight: 600; color: var(--accent-ink); }
.bday-plate { flex: 1 1 100%; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; padding-top: 8px; border-top: 1px dashed rgba(245, 144, 30, .45); }
.slices { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.slice { position: relative; animation: slice-in .4s ease-out both; animation-delay: calc(var(--i, 0) * 60ms); }
.slice .avatar { border: 2px solid #fff; }
.slice-cake { position: absolute; right: -6px; bottom: -6px; font-size: .95rem; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.slice-more { display: inline-flex; align-items: center; justify-content: center;   border-radius: 50%; background: #fff; font-size: .75rem; font-weight: 700; color: var(--muted); }
@keyframes slice-in { from { transform: scale(.4); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .slice { animation: none; } }
.home-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.home-col > .card { margin-bottom: 16px; }
.home-col h2 { margin: 0 0 8px; font-size: 1.1rem; }
.home-col .page-head { margin-bottom: 8px; }
.home-event { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.home-event:first-of-type { border-top: 0; }
.home-event .datebadge { width: 52px; }
.home-event .datebadge .day { font-size: 1.3rem; }
.home-event-title { font-weight: 600; color: var(--ink); }
.home-event .meta { margin: 2px 0 8px; }
.home-event .rsvp button { padding: 4px 10px; font-size: .82rem; }
.home-msgs, .bday-list, .home-files { list-style: none; margin: 0; padding: 0; }
.home-msgs li a { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; border-radius: 8px; }
.home-msgs li:first-child a { border-top: 0; }
.home-msgs li a:hover { background: var(--soft); }
.home-msgs .avatar { width: 34px; height: 34px; font-size: .85rem; }
.home-msg-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.home-msg-text > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.home-msgs li.is-unread .home-msg-text > span:last-child { color: var(--ink); font-weight: 600; }
.home-msg-head { display: flex; justify-content: space-between; gap: 8px; }
.bday-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.bday-list li.is-today .bday-name { font-weight: 600; color: var(--accent-ink); }
.bday-name { flex: 1; min-width: 0; }
/* Orden für runde Geburtstage: Band (hinten) + goldene Münze mit dem Alter (vorne) */
.bday-medal { position: relative; display: inline-block; width: 26px; height: 30px; margin: 0 2px 0 4px; vertical-align: middle; isolation: isolate; }
.bday-medal::before, .bday-medal::after { content: ''; position: absolute; top: 0; width: 8px; height: 13px; z-index: 0; }
.bday-medal::before { left: 5px; background: #d9481c; transform: skewX(16deg); }
.bday-medal::after { right: 5px; background: #2f7fd1; transform: skewX(-16deg); }
.bday-medal b { position: absolute; left: 0; bottom: 0; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff6c9 0 12%, #f7c843 40%, #d99a17 100%);
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e3a82a, 0 2px 4px rgba(120, 70, 0, .35);
    color: #6b3d00; font-size: .72rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.bday-medal.is-lg { width: 46px; height: 54px; margin: 0; flex: none; }
.bday-medal.is-lg::before, .bday-medal.is-lg::after { width: 13px; height: 22px; }
.bday-medal.is-lg::before { left: 9px; }
.bday-medal.is-lg::after { right: 9px; }
.bday-medal.is-lg b { width: 46px; height: 46px; font-size: 1.15rem; }
.social-list { display: flex; flex-direction: column; gap: 12px; }
.social-item { display: flex; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.social-item:last-child { border-bottom: 0; }
.social-item img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; flex: none; }
.social-item p { margin: 0 0 4px; }
.social-text { font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; } /* Startseite: höchstens 4 Zeilen, „Ansehen ›“ zeigt alles */
.social-follow { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; }
.home-files li { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.home-files li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-files .ficon { font-size: 1.2rem; width: 26px; }
@media (max-width: 760px) {
    .home-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .home-event .event-body { min-width: 0; }
    .mainnav a.nav-admin { display: none; } /* Verwaltung am Handy über das Profil */
}
@media (min-width: 761px) { .admin-link { display: none; } }

/* Reaktions-Knopf gut sichtbar, Tipp-Leiste, kein Markieren beim langen Drücken */
.msg .more {
    width: auto; height: 26px; padding: 0 7px 0 5px; border-radius: 999px; font-size: .85rem; line-height: 26px;
    display: inline-flex; align-items: center; gap: 1px; border: 1px solid var(--line); opacity: .75; filter: grayscale(.3);
}
.msg .more span { font-size: .75rem; font-weight: 700; color: var(--muted); }
.msg .more:hover { opacity: 1; filter: none; }
.msg:not(.own) .more { right: -46px; }
.msg.own .more { left: -46px; }
@media (hover: none) {
    .msg .more { opacity: .9; filter: none; width: auto; height: 26px; }
    .msg .bubble { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
}
.chat-tip { display: flex; align-items: center; gap: 8px; margin: 8px 12px 0; padding: 8px 12px; border-radius: 12px; background: var(--soft); border: 1px solid rgba(245, 144, 30, .35); font-size: .85rem; }
.chat-tip span { flex: 1; }
.chat-tip button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; }

/* ---------- Fotos zu Aufführungen ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; margin-bottom: 14px; }
.photo-grid figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--soft); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.photo-grid a:hover img { transform: scale(1.04); }
.photo-grid form { position: absolute; top: 4px; right: 4px; margin: 0; }
.photo-del { width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; font-size: .8rem; }
.photo-upload { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.photo-upload input[name=caption] { flex: 1; min-width: 180px; }
.photo-hint { flex-basis: 100%; margin: 2px 0 0; }
.hof-photos { position: absolute; left: 8px; bottom: 8px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.home-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(30%, 96px), 1fr)); gap: 6px; } /* am Computer alle 6 in einer Reihe */
.home-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.viewer-nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; cursor: pointer; z-index: 2;
    background: rgba(255, 255, 255, .12); color: #fff; font-size: 2.2rem; line-height: 1; border-radius: 12px;
}
.viewer-nav.prev { left: 8px; }
.viewer-nav.next { right: 8px; }
.viewer-nav:hover { background: rgba(255, 255, 255, .25); }
@media (hover: none) { .viewer-nav { background: rgba(255, 255, 255, .08); width: 40px; } }

/* ---------- Landkarte ---------- */
.hof-map { min-height: 120px; border-radius: 12px; background: var(--soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 16px; }
.hof-map.is-loaded { height: 380px; padding: 0; display: block; }
.hof-map-card { margin-bottom: 16px; }
.map-flag { background: none; border: 0; }
.map-flag svg { display: block; overflow: visible; filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); transform-origin: 5px 38px; transition: transform .15s; }
.map-flag:hover svg { transform: scale(1.15); }
.map-flag:not(.mine) svg { opacity: .8; }
.map-flag:not(.mine):hover svg { opacity: .9; }
.map-pop { list-style: none; padding: 0; margin: 6px 0 0; font-size: .85rem; line-height: 1.5; }
.map-pop li.mine a { font-weight: 600; color: var(--pc, inherit); }
.map-pop small { color: #777; }
.geo-box { background: var(--soft); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.geo-box p { margin: 0; }
.geo-map { width: 100%; height: 300px; border-radius: 10px; }
.geo-search { display: flex; gap: 6px; align-items: stretch; }
.geo-search input { flex: 1; min-width: 0; }
.geo-search .btn { white-space: nowrap; }
.geo-results { list-style: none; margin: 0; padding: 4px; border: 1px solid var(--line, #e6ddd0); border-radius: 10px; background: var(--card, #fff); display: flex; flex-direction: column; gap: 2px; }
.geo-results li { padding: 0; }
.geo-results li.muted, .geo-results li.small { padding: 8px 10px; }
.geo-results button { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.geo-results button:hover, .geo-results button:focus-visible { background: var(--soft); outline: none; }
.geo-results small { color: var(--muted, #777); font-size: .8rem; }
.geo-all { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.geo-all span { flex: 1; }
@media (max-width: 760px) { .hof-map.is-loaded { height: 300px; } }

/* ---------- Abwesenheiten ---------- */
.absence-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.absence-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; background: var(--soft); border-radius: 8px; }
.absence-banner { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--soft); border-left: 4px solid var(--sun-2); }

/* ---------- Helferlisten ---------- */
.task-hint { color: var(--muted); }
.task-hint.open { color: var(--accent-ink); font-weight: 600; }
.task-open { color: var(--accent-ink); font-weight: 600; }
.task-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.task-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.task-list li.is-mine { border-color: var(--sun-2); background: var(--soft); }
.task-list li.is-full:not(.is-mine) { opacity: .75; }
.task-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; flex: 1 1 260px; }
.task-slots { color: var(--muted); font-variant-numeric: tabular-nums; }
.task-people { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.task-person { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; padding: 2px 8px 2px 2px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.task-free { font-size: .8rem; color: var(--muted); padding: 3px 10px; border-radius: 999px; border: 1px dashed var(--line); }
.task-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.task-admin { display: flex; align-items: center; gap: 4px; }
.task-list .task-admin input[type=number] { width: 3.6em; padding: 4px 6px; min-height: 0; }
.task-add summary { cursor: pointer; color: var(--accent-ink); font-weight: 600; margin: 6px 0; }

/* ---------- Üben ---------- */
.practice-section h2 { margin-top: 0; }
.practice-folder { font-size: .95rem; margin: 14px 0 6px; color: var(--muted); }
.practice-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.practice-list li { padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.practice-list li.is-doc { padding: 8px 12px; }
.practice-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.practice-head > :last-child { margin-left: auto; }
.practice-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.practice-list audio { width: 100%; margin-top: 6px; }
.practice-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: .85rem; }
.practice-bar button, .practice-bar select { font: inherit; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.practice-bar label { display: inline-flex; flex-direction: row; align-items: center; gap: 4px; margin: 0; color: var(--muted); font-weight: 400; }
.practice-bar select { width: auto; }
.practice-bar .ab { display: inline-flex; gap: 4px; }
.practice-bar button.on { background: var(--sun); color: #fff; border-color: transparent; }
.ab-info { color: var(--accent-ink); font-weight: 600; }

/* ---------- Rollen ---------- */
.hof-role { color: var(--accent-ink); }
.hof-cast-role { color: var(--muted); font-weight: 400; font-size: .9em; }
.role-form { margin: 4px 0 12px; display: flex; flex-direction: column; gap: 4px; }
.role-form label { font-weight: 600; font-size: .9rem; }
.role-form.is-empty { padding: 10px 12px; border-radius: 12px; background: var(--soft); border: 1px dashed var(--sun-2); }
.role-row { display: flex; gap: 6px; flex-wrap: wrap; }
.role-row input { flex: 1; min-width: 12em; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.seg label { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .85rem; font-weight: 600; cursor: pointer; }
.seg label:has(input:checked) { border-color: var(--sun-2); background: var(--soft); color: var(--accent-ink); }
.seg input { width: auto; margin: 0; }
.private-photos { border: 1px dashed var(--line); }
.roles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px 14px; max-height: 60vh; overflow: auto; }

/* ---------- Nachzügler ---------- */
.nudge-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 280px; overflow: auto; }
.invite-texts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.invite-texts li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.invite-texts li button { margin-left: auto; }

.role-hint { margin: 0 0 14px; padding: 8px 12px; border-radius: 10px; background: var(--soft); border-left: 4px solid var(--sun-2); }
@media (max-width: 420px) { .mainnav a { padding: 6px 2px; } .mainnav { gap: 0; } }

.group-pick { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 10px; margin: 0; }
.group-pick legend { font-weight: 600; padding: 0 4px; }
.group-pick-list { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.group-pick p { margin: 6px 0 0; }

.hide-note { color: var(--accent-ink); }

/* Hinweis auf neue Version */
.update-bar { position: fixed; left: 16px; right: 16px; margin: 0 auto; width: fit-content; bottom: calc(var(--nav-h, 0px) + 14px + env(safe-area-inset-bottom)); z-index: 2000; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0, 0, 0, .18); font-size: .9rem; max-width: 520px; }
.update-bar span { flex: 1; }

.dupe-card { border: 1px solid var(--sun-2); }
.dupe-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dupe-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: var(--soft); }

/* ---------- Terminfindung ---------- */
.dp-opt { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.dp-opt input[type=date] { flex: 1 1 140px; min-width: 0; }
.dp-opt input[type=time] { flex: 0 1 110px; min-width: 0; }
.dp-list { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dp-list li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.dp-list li.is-best { border-color: var(--sun-2); background: var(--soft); }
.dp-when { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.dp-best { color: var(--accent-ink); font-weight: 600; font-size: .85rem; }
.dp-seg .dp-yes:has(input:checked) { background: #e3f4e5; border-color: #3a9a4a; color: #23692f; }
.dp-seg .dp-maybe:has(input:checked) { background: #fff4d6; border-color: #d99a1c; color: #8a5a00; }
.dp-seg .dp-no:has(input:checked) { background: #fde6e3; border-color: #c94b3b; color: #9b2c1f; }
.dp-names p { margin: 2px 0; }
.dp-take { align-self: flex-end; }
.dp-done { padding: 10px 12px; border-radius: 10px; background: #e3f4e5; color: #23692f; }
.dp-teaser ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dp-teaser li { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.home-alert { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--soft); border-left: 4px solid var(--sun-2); color: var(--ink); text-decoration: none; }
.home-alert span { flex: 1; }
.home-alert.is-done { border-left-color: var(--ok); background: transparent; border: 1px solid var(--line); border-left: 4px solid var(--ok); padding-top: 7px; padding-bottom: 7px; font-size: .92rem; } /* schon abgestimmt: dezenter */

/* ---------- wichtige Nachrichten ---------- */
.msg.is-important .bubble { border: 2px solid #d9481c; }
.imp-head { font-size: .75rem; font-weight: 700; color: #c23b12; letter-spacing: .02em; margin-bottom: 2px; }
.ack { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--line); font-size: .8rem; }
.ack-count { color: var(--muted); }
.ack-done { color: #23692f; font-weight: 600; }
/* Knopf „wichtig senden“: schlichtes Ausrufezeichen wie die anderen Symbole, eingeschaltet rot */
.composer .important-btn { display: grid; place-items: center; }
.important-btn .imp-mark { font-size: 1.45rem; font-weight: 700; line-height: 1; font-family: system-ui, sans-serif; color: inherit; }
.important-btn.on { color: #d9481c; }
.home-alert.is-important { border-left-color: #d9481c; }

/* ---------- Eltern-Zugang ---------- */
.rsvp-child { margin-top: 6px; }
.rsvp-for { font-size: .82rem; font-weight: 600; color: var(--accent-ink); margin-right: 4px; align-self: center; }

/* ---------- Alarmblock: wichtige Ankündigungen ---------- */
.alarm { margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; background: #fff3ef; border: 2px solid #d9481c; box-shadow: 0 4px 18px rgba(217, 72, 28, .12); }
.alarm h2 { margin: 0 0 10px; font-size: 1.1rem; color: #b33a12; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.alarm-badge { font-size: .75rem; font-weight: 700; color: #fff; background: #d9481c; padding: 2px 10px; border-radius: 999px; }
.alarm-item { background: var(--card); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.alarm-item + .alarm-item { margin-top: 8px; }
.alarm-item header { display: flex; align-items: center; gap: 8px; }
.alarm-text { font-size: 1rem; line-height: 1.45; overflow-wrap: anywhere; }
.alarm-item footer { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.alarm-item footer form { margin: 0; }
.alarm-item.is-own { opacity: .92; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .alarm { background: #3a1d14; } :root:not([data-theme="light"]) .alarm h2 { color: #ff9a76; } }

.group-edit { margin-top: 10px; }
.group-edit summary { cursor: pointer; }

/* ---------- Layout-Feinschliff (Handy und schmale Fenster) ---------- */
.cols > *, .home-grid > *, .home-col > * { min-width: 0; }
pre { max-width: 100%; overflow-x: auto; }
.page-head h1 { overflow-wrap: anywhere; }

@media (max-width: 760px) {
    /* Knopfleisten und Reiter: kompakt in Reihen (meist zwei) statt vieler einzelner Zeilen */
    .page-head { gap: 10px; }
    .page-head > .actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 6px; width: 100%; }
    .page-head > .actions > * { min-width: 0; }
    .page-head > .actions > .btn { padding: 7px 6px; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; justify-content: center; text-align: center; }
    .page-head > .actions > .btn-sun { order: -1; } /* Hauptaktion zuerst */
    .page-head > .actions .search input { width: 100%; }
    .subnav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin-bottom: 6px; }
    .subnav .nav-desk { display: none; }
    .subnav-desk { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 14px; color: var(--muted); }
    .subnav-desk a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
    .subnav-desk a.on { color: var(--accent-ink); font-weight: 700; text-decoration: none; }
    .subnav a { padding: 7px 2px; font-size: .78rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .lbl-sm { display: inline; }
    .lbl-lg { display: none; }

    /* Zu-/Absage: drei gleich breite Knöpfe in einer Zeile */
    .rsvp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .rsvp button { padding: 8px 4px; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .rsvp-note, .rsvp-for { grid-column: 1 / -1; }
    .home-event .rsvp button { font-size: .78rem; padding: 8px 1px; letter-spacing: -.01em; }

    /* Terminliste kompakter */
    .event { gap: 10px; padding: 12px; }
    .event h3 { font-size: 1.05rem; }
    .datebadge { width: 48px; }
    .datebadge .day { font-size: 1.3rem; }
    .event .meta { gap: 2px 10px; }

    /* Termin-Detail */
    .event-detail-head { gap: 12px; }
    .datebadge.big { width: 62px; }
    .datebadge.big .day { font-size: 1.6rem; }
    .event-detail h1 { font-size: 1.3rem; }
    .rsvp-lists { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
    .rsvp-col { padding: 8px 10px; }
    .rsvp-col h3 { font-size: .88rem; margin-bottom: 2px; }
    .rsvp-col ul { font-size: .88rem; line-height: 1.5; }
    .rsvp-col-none { grid-column: 1 / -1; }

    /* Terminfindung: Datum oben, Uhrzeiten nebeneinander */
    .dp-opt { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
    .dp-opt input[type=date] { grid-column: 1 / -1; }
    .dp-opt span { display: none; }
    .dp-seg { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dp-seg label { justify-content: center; padding: 7px 4px; }

    /* Chat: mehr Platz zum Schreiben */
    .composer { gap: 2px; padding-left: 6px; padding-right: 8px; }
    .composer .attach { width: 36px; height: 40px; }

    /* Kopfbereiche nicht so hoch */
    .home-hero, .hof-hero { padding: 16px 18px; border-radius: 16px; gap: 10px; }
    .home-hero h1 { font-size: 1.35rem; }
    .hof-hero h1 { font-size: 1.6rem; }
    .alarm { padding: 12px; }
    .home-alert { padding: 9px 12px; }

    /* Dialoge: volle Breite nutzen */
    dialog.dialog { width: calc(100vw - 20px); max-width: none; padding: 18px; }
}

.card + .cols, .table-wrap + .cols { margin-top: 16px; }
@media (max-width: 760px) { .perf-table th:nth-child(4), .perf-table td:nth-child(4) { display: none; } }


/* Runterwischen zum Aktualisieren (installierte App) */
.ptr { position: fixed; left: 50%; top: calc(var(--top-h, 60px) - 44px); z-index: 60; width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; background: var(--card); color: var(--muted); box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
    transform: translate(-50%, 0); opacity: 0; pointer-events: none; transition: opacity .15s; font-size: 1.3rem; font-weight: 700; }
.ptr.pulling { transition: none; }
.ptr.ready { color: #fff; background: var(--sun); }
.ptr.loading .ptr-icon { display: inline-block; animation: ptr-spin .8s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }

/* Meine Gruppe */
.member-list {    display: flex; flex-direction: column; gap: 6px; }
.member-list li { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.member-list li:last-child { border-bottom: 0; }
.member-name { flex: 1; min-width: 0; }

/* Karten (Leaflet) bringen eigene Ebenen mit (bis z-index 1000) – einkapseln, damit sie beim Scrollen unter Kopfleiste und Menü bleiben */
.hof-map, .geo-map { position: relative; z-index: 0; isolation: isolate; }

/* Datei: „Für wen?“ */
.file-groups { margin: 4px 0; }
.file-groups summary { cursor: pointer; color: var(--muted); }
.file-groups form { margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: var(--soft); }
.practice-list .file-groups form { background: var(--card); }

/* ---------- Dateien als Kacheln, nach Typ ---------- */
.ftype { margin-bottom: 18px; }
.ftype-head { font-size: 1.05rem; margin: 6px 0 10px; font-family: var(--font); font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.tiles.is-short > .tile:nth-child(n+19) { display: none; }
.tiles-more { margin-top: 10px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); }
.tile-main { display: flex; flex-direction: column; color: var(--ink); text-decoration: none !important; flex: 1; }
.tile-main:hover .tile-name { color: var(--accent-ink); }
.tile-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.tile-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tile-ic { font-size: 2.6rem; line-height: 1; }
.tile-ext { position: absolute; right: 8px; bottom: 8px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; padding: 2px 6px; border-radius: 6px; background: var(--card); color: var(--muted); }
.tile-name { padding: 8px 10px 2px; font-weight: 600; font-size: .9rem; line-height: 1.3; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-meta { padding: 0 10px 8px; font-size: .75rem; color: var(--muted); }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 10px; border-top: 1px solid var(--line); font-size: .78rem; }
.tile-grp { color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .78rem; text-align: left; }
button.tile-grp { color: var(--blue-2); }
.tile-acts { display: flex; align-items: center; gap: 4px; flex: none; }
.tile-acts a, .tile-acts button { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 0; background: none; cursor: pointer; font: inherit; font-size: .95rem; color: var(--muted); text-decoration: none; }
.tile-acts a:hover, .tile-acts button:hover { background: var(--soft); }
.tile-acts form { margin: 0; }
@media (max-width: 760px) {
    .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .tile-thumb { aspect-ratio: 16 / 9; }
    .tile-ic { font-size: 2rem; }
}

/* „Ansicht als …“ (Admin testet andere Sicht) */
.viewas-bar { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 16px;
    background: #1C4587; color: #fff; font-size: .88rem; }
.viewas-bar span { flex: 1 1 220px; }
.viewas-role { opacity: .8; font-size: .82rem; }
.viewas-bar select { width: auto; max-width: 220px; padding: 4px 8px; font-size: .85rem; }
.viewas-pick { margin: 0 0 14px; }
.viewas-pick label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; flex-direction: row; font-weight: 600; }
.viewas-pick select { width: auto; max-width: 100%; }
.viewas-start { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding-bottom: 10px; border-bottom: 1px solid var(--line); }

.contact-line a { color: inherit; text-decoration: none; }
.contact-line a:hover { color: var(--accent-ink); text-decoration: underline; }

/* ---------- Projekte ---------- */
.ptag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.5; color: #fff; background: var(--pc, #888); vertical-align: middle; white-space: nowrap; }
.pfilter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.pfilter a { padding: 5px 14px; border-radius: 999px; border: 2px solid var(--pc, var(--line)); background: var(--card); color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none !important; }
.pfilter a.on { background: var(--pc, var(--sun)); border-color: var(--pc, var(--sun)); color: #fff; }
.group-pick-proj + .group-pick-proj { margin-top: 8px; }
.group-pick-head { margin: 2px 0 4px; }
.group-pick-list .check.is-main { font-weight: 600; }
.group-pick-list .check small { font-weight: 400; color: var(--muted); }
.proj-card { border-left: 6px solid var(--pc, var(--line)); }
.proj-card h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.proj-groups { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.proj-groups li { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: .9rem; background: var(--card); }
.proj-groups li.is-main { border-color: var(--pc, var(--line)); font-weight: 600; }
.colors { display: flex; flex-wrap: wrap; gap: 8px; }
.colors label { display: inline-flex; cursor: pointer; }
.colors input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.colors .sw { width: 28px; height: 28px; border-radius: 50%; background: var(--pc); display: inline-block; border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line); }
.colors input:checked + .sw { box-shadow: 0 0 0 3px var(--ink); }
.colors input:focus-visible + .sw { outline: 2px solid var(--sun); outline-offset: 2px; }
.list-head h2.proj-head { display: flex; align-items: center; gap: 6px; }

/* Alarm-Dauer */
.alarm-manage { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; padding-top: 6px; border-top: 1px dashed var(--line); color: var(--muted); }
.alarm-manage select { width: auto; padding: 4px 8px; font-size: .85rem; }
.imp-days { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .85rem; color: #b33a12; font-weight: 600; padding: 2px 4px 6px; }
.imp-days select { width: auto; padding: 3px 6px; font-size: .85rem; }
.imp-until { font-size: .78rem; color: var(--muted); font-weight: 400; margin-left: 6px; }
.msg.is-important.alarm-over .imp-head { opacity: .6; }

/* Sprachnachrichten */
.mic-btn.recording { color: #fff; background: #d9481c; border-radius: 50%; animation: micpulse 1.2s ease-in-out infinite; }
@keyframes micpulse { 50% { box-shadow: 0 0 0 6px rgba(217, 72, 28, .25); } }
.rec-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 4px 6px; font-size: .9rem; }
.rec-bar .rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #d9481c; animation: micpulse 1.2s infinite; }
.rec-bar audio { height: 36px; max-width: 100%; flex: 1 1 200px; }
.rec-bar .rec-time { font-variant-numeric: tabular-nums; font-weight: 600; }
.voice { display: flex; flex-direction: column; gap: 2px; min-width: min(240px, 60vw); }
.voice audio { width: 100%; height: 40px; }
.voice small { color: var(--muted); font-size: .75rem; }
@media (prefers-reduced-motion: reduce) { .mic-btn.recording, .rec-bar .rec-dot { animation: none; } }
.sheet-title { margin: 4px 8px 8px; font-weight: 600; font-size: .95rem; }

/* Projekt-Logos */
.plogo { display: inline-flex; align-items: center; justify-content: center; object-fit: cover; border-radius: 8px; background: var(--card); flex: none; vertical-align: middle; }
.plogo-ph { background: var(--pc, #888); color: #fff; font-weight: 700; }
.plogo-xs { width: 20px; height: 20px; border-radius: 5px; font-size: .7rem; }
.plogo-md { width: 44px; height: 44px; font-size: 1.2rem; }
.plogo-lg { width: 56px; height: 56px; border-radius: 10px; font-size: 1.5rem; }
.plogo-edit { width: 110px; height: 110px; object-fit: contain; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.plogo-edit.plogo-ph { color: #fff; object-fit: cover; }
.logo-edit { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.logo-edit .stack { flex: 1 1 220px; }
.pfilter a { display: inline-flex; align-items: center; gap: 6px; }
.list-head h2.proj-head .plogo-xs { text-transform: none; }
.my-projects { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.my-project { display: flex; align-items: center; gap: 12px; flex: 1 1 240px; padding: 10px 14px 10px 10px; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--pc, var(--line)); border-radius: 14px; color: var(--ink); text-decoration: none !important; }
.my-project span { display: flex; flex-direction: column; min-width: 0; }
.my-project small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-project:hover { border-color: var(--pc); }
.alarm-manage .alarm-until { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; font-weight: 400; }
.alarm-until input { width: auto; padding: 4px 8px; font-size: .85rem; }
.sheet-date { margin: 0 8px 8px; width: calc(100% - 16px); }
.fsave { gap: 10px; max-height: 90vh; overflow-y: auto; }
.fsave > label, .fsave fieldset { display: flex; flex-direction: column; gap: 4px; margin: 0 8px; font-size: .9rem; font-weight: 600; }
.fsave fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.fsave legend { padding: 0 4px; }
.fsave-groups { display: flex; flex-wrap: wrap; gap: 4px 14px; font-weight: 400; }
.fsave-groups .check { display: inline-flex; align-items: center; gap: 6px; }
.fsave-go { text-align: center; font-weight: 600; color: var(--accent-ink); }
.slice .avatar-sm { width: 36px; height: 36px; }
.slice-more { width: 36px; height: 36px; }
.my-project { min-width: 0; max-width: 100%; }

.slice-cake { animation: clink 2.4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 180ms); transform-origin: 50% 90%; }
@keyframes clink { 0%, 80%, 100% { transform: rotate(0); } 86% { transform: rotate(-18deg); } 92% { transform: rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .slice-cake { animation: none; } }

/* Projektseite */
.proj-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 18px 20px; margin-bottom: 16px; border-radius: 18px; color: #fff;
    background: linear-gradient(120deg, var(--pc, #b23a48), color-mix(in srgb, var(--pc, #b23a48) 55%, #000)); }
.proj-hero h1 { color: #fff; margin: 2px 0 4px; }
.proj-hero p { margin: 0 0 4px; }
.proj-hero .hof-kicker { color: rgba(255, 255, 255, .85); }
.proj-hero-logo { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 2.6rem; font-weight: 700; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.proj-hero-logo.plogo-ph { background: rgba(255, 255, 255, .2); color: #fff; }
.signup-card { border: 2px solid var(--sun); }
.signup-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 6px 0; }
.signup-row + .signup-row { border-top: 1px dashed var(--line); }
.signup-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex: 1; margin: 0; }
.signup-form input { flex: 1 1 200px; width: auto; }
.signup-done { font-weight: 600; color: var(--accent-ink); }
.signup-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.signup-teaser { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 14px; border-radius: 14px; background: var(--card); border: 2px solid var(--pc, var(--sun)); color: var(--ink); text-decoration: none !important; }
.signup-teaser span { display: flex; flex-direction: column; }
.signup-teaser small { color: var(--muted); }
.cast-table td { padding: 6px 8px; }
.cast-table tr.is-me td { background: var(--soft); }
.cast-edit { margin-top: 12px; }
.cast-rows { display: grid; gap: 6px; }
.cast-row { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr .8fr; gap: 6px; }
.cast-row input, .cast-row select { width: 100%; min-width: 0; padding: 6px 8px; font-size: .9rem; }
@media (max-width: 640px) { .cast-row { grid-template-columns: 1fr 1fr; padding-bottom: 6px; border-bottom: 1px dashed var(--line); } }
.proj-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.proj-events li { display: flex; flex-direction: column; }

/* Monatskalender */
.cal-nav { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.cal-nav h2 { margin: 0; min-width: 9em; text-align: center; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { font-size: .75rem; font-weight: 700; color: var(--muted); text-align: center; text-transform: uppercase; padding: 2px 0; }
.cal-day { background: var(--card); border: 1px solid var(--line); border-radius: 8px; min-height: 92px; padding: 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day.other { opacity: .45; }
.cal-day.today { border: 2px solid var(--sun); }
.cal-num { font-size: .8rem; font-weight: 700; color: var(--muted); }
.cal-day.today .cal-num { color: var(--sun-2, var(--sun)); }
.cal-ev { display: block; font-size: .75rem; line-height: 1.25; padding: 2px 5px; border-radius: 5px; background: color-mix(in srgb, var(--pc, #888) 14%, var(--card)); border-left: 3px solid var(--pc, #888);
    color: var(--ink); text-decoration: none !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev.st-yes { box-shadow: inset 0 0 0 1px #2e8b57; }
.cal-ev.st-no { opacity: .55; text-decoration: line-through !important; }
.cal-ev.st-maybe { box-shadow: inset 0 0 0 1px #c9a227; }
.cal-legend { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.cal-legend .cal-ev { display: inline-block; }
@media (max-width: 640px) {
    .cal { gap: 2px; }
    .cal-day { min-height: 64px; padding: 2px; border-radius: 6px; }
    .cal-ev { font-size: 0; padding: 0; height: 7px; border-left-width: 0; border-radius: 4px; background: var(--pc, #888); }
    .cal-ev b { display: none; }
    .cal-legend { display: none; }
}
.cal-daylist { margin-top: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; }
.cal-daylist h3 { margin: 0 0 4px; font-size: 1rem; }
.cal-li { display: block; padding: 6px 10px; border-left: 4px solid var(--pc, #888); border-radius: 6px; background: var(--soft); color: var(--ink); text-decoration: none !important; }
.cal-day.sel { outline: 2px solid var(--sun); }
@media (min-width: 641px) { .cal-daylist { display: none !important; } }

/* Anwesenheit */
.att-grid .att.on { font-weight: 600; }
.att-filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.att-filter label { flex: 1 1 150px; }
.att-bar { display: inline-block; width: 90px; height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; vertical-align: middle; }
.att-bar span { display: block; height: 100%; width: var(--p); background: linear-gradient(90deg, var(--sun), var(--sun-2, #e8590c)); }
.att-barcell { white-space: nowrap; }
.dp-voter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.dp-who { font-size: .85rem; font-weight: 600; min-width: 4.5em; }

/* Chat-Suche */
.chat-search { padding: 12px 12px 0; }
.chat-search input { width: 100%; padding: 8px 12px; border-radius: 999px; font-size: .92rem; }
.chat-search-results { margin-top: 8px; display: grid; gap: 2px; }
.chat-list.searching > :not(.chat-search) { display: none; }
.sr-item { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none !important; }
.sr-item:hover, .sr-item:focus-visible { background: var(--soft); }
.sr-head { font-size: .78rem; color: var(--muted); }
.sr-head b { color: var(--ink); }
.sr-snip { font-size: .9rem; overflow-wrap: anywhere; }
.sr-snip mark { background: rgba(255, 198, 58, .55); color: inherit; border-radius: 3px; padding: 0 1px; }

/* Termin: eigener Termin / einzelne Personen */
.for-pick { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.people-pick { display: flex; flex-direction: column; gap: 8px; }
.people-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 14px; max-height: 240px; overflow-y: auto; padding: 4px 2px; }
.people-list .check[hidden] { display: none; }
.fin-kpis { flex-wrap: wrap; }
.ae-events { list-style: none; margin: 0; padding: 0; }
.ae-events li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ae-events li.is-off { opacity: .6; }
.ae-events form { margin: 0; flex: none; }
.ae-km input { width: 5rem; text-align: right; }
.ae-days summary { cursor: pointer; }
.grant-kinds { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: grid; gap: 4px; }
.grant-kinds legend { font-weight: 600; padding: 0 4px; }
.grant-projects { display: flex; flex-wrap: wrap; gap: 4px 14px; padding-left: 26px; }
.grant-projects[hidden] { display: none; }
.test-bar { background: #b3261e; color: #fff; text-align: center; font-size: .8rem; font-weight: 700; padding: 3px 8px; position: relative; z-index: 50; }
/* Suche: in der Kopfzeile ein Feld (am Handy nur das Symbol), Ergebnisseite */
.topsearch { display: flex; align-items: center; margin-left: auto; margin-right: 10px; }
.topsearch input[type="search"] { width: 170px; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-size: .88rem; }
.topsearch-btn { display: none; width: 36px; height: 36px; place-items: center; color: var(--ink); }
.topsearch-btn svg, .topsearch svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 760px) { .topsearch input[type="search"] { display: none; } .topsearch-btn { display: grid; } }
.search-big { display: flex; gap: 8px; margin: 0 0 14px; }
.search-big input { flex: 1; font-size: 1.05rem; padding: 10px 14px; border-radius: 12px; }
.search-results { display: grid; gap: 12px; }
.search-list { list-style: none; margin: 0; padding: 0; }
.search-list li { border-bottom: 1px solid var(--line); }
.search-list li:last-child { border-bottom: 0; }
.search-list a { display: block; padding: 8px 0; color: var(--ink); text-decoration: none; }
.search-list li.is-past a { opacity: .7; }
.search-list mark { background: color-mix(in srgb, var(--sun, #f5b700) 40%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.fin-ro-bar { padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--blue-2, #2a6fb0) 10%, transparent); }
/* Kassaprüfung: nur ansehen – Eingaben gesperrt, Knöpfe zum Ändern weg (der Server lehnt Änderungen ohnehin ab) */
.fin-ro .main form[method="post" i] :is(select, input, textarea) { pointer-events: none; }
.fin-ro .main form[method="post" i] :is(button, input[type="file"]), .fin-ro .inv-new, .fin-ro .verein-manual, .fin-ro .fin-cash, .fin-ro .verein-upload,
.fin-ro [data-vb-inv], .fin-ro [data-vb-person], .fin-ro [data-inv-pay], .fin-ro .bank-sugg-bar button { display: none !important; }
.fin-cash summary { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; cursor: pointer; }
.fin-cash summary h2 { margin: 0; }
.cash-form .cash-art { grid-column: 1 / -1; }
.cash-form .cash-hint { grid-column: 1 / -1; margin: 0; }
.inv-pages { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.fin-todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fin-todo a { display: block; padding: 8px 10px; border-radius: 10px; background: var(--soft); color: var(--ink); text-decoration: none; }
.fin-todo li.is-urgent a { background: color-mix(in srgb, var(--err) 10%, transparent); }
.fin-steps { margin: 0; padding-left: 1.3em; line-height: 1.6; }
.fin-reports { list-style: none; margin: 0; padding: 0; }
.fin-reports li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px solid var(--line); }
.fin-report-btns { display: flex; gap: 6px; flex: none; }
.fin-report, .handbook { max-width: 1000px; margin: 0 auto; font-size: .9rem; }
.fin-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.fin-table th, .fin-table td { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fin-table .num { text-align: right; white-space: nowrap; }
.fin-table .nr { text-align: right; color: var(--muted); white-space: nowrap; }
.fin-table thead th { border-bottom: 2px solid var(--ink); }
.fin-table .fin-group th { background: var(--soft); padding-top: 8px; font-size: .9rem; }
.fin-table .fin-sub td { font-weight: 700; border-bottom: 1px solid var(--ink); }
.fin-table tfoot th { border-top: 2px solid var(--ink); border-bottom: 0; }
.fin-note { padding: 6px 10px; border: 1px solid var(--warn); border-radius: 6px; }
.fin-sign { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin-top: 40px; }
.fin-sign > div { display: flex; flex-direction: column; }
.fin-sign small { color: var(--muted); font-size: .72rem; margin-top: 2px; }
.handbook h2 { margin: 22px 0 6px; font-size: 1.15rem; break-after: avoid; }
.handbook section { break-inside: avoid-page; }
.handbook li { margin: 3px 0; line-height: 1.5; }
.hb-toc { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; margin: 10px 0; }
.hb-toc ol { columns: 2; margin: 4px 0 0; }
.hb-tip { background: var(--soft); border-radius: 8px; padding: 8px 10px; }
@media print { .fin-table { font-size: 8.5pt; } .fin-table thead { display: table-header-group; } .fin-table tr { break-inside: avoid; } .handbook a { color: inherit; text-decoration: none; } }
.admin-verein .page-head { margin: 0; }
.admin-verein .folders { margin: 0; }
.admin-fin-head { margin: 4px 0 0; }
.badge-warn { color: var(--err); font-weight: 600; }
.tfa-setup { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.tfa-qr { background: #fff; padding: 8px; border-radius: 10px; line-height: 0; flex: none; }
.tfa-qr svg { width: 190px; height: 190px; }
.tfa-key { font: 600 .95rem/1.5 ui-monospace, Menlo, monospace; letter-spacing: .04em; word-break: break-all; }
.tfa-code { font: 600 1.25rem/1.2 ui-monospace, Menlo, monospace; letter-spacing: .12em; max-width: 14rem; }
.tfa-inline { font-size: 1rem; max-width: 11rem; }
.tfa-code::placeholder { font-family: inherit; letter-spacing: 0; }
.tfa-codes { columns: 2; gap: 12px; margin: 0; padding-left: 1.6em; font: 600 1.05rem/1.9 ui-monospace, Menlo, monospace; }
.tfa-devices { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tfa-devices li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.tfa-devices form { margin: 0; }
/* Drucken auf der Ersatzcode-Seite: nur die Codes (gilt NUR dort – sonst wäre jeder Ausdruck leer) */
@media print { body:has(.tfa-codes-card) * { visibility: hidden; } body:has(.tfa-codes-card) .tfa-codes-card, body:has(.tfa-codes-card) .tfa-codes-card * { visibility: visible; } .tfa-codes-card { position: absolute; inset: 0 auto auto 0; } .tfa-codes-card .row-actions { display: none; } }
.err-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.err-list li { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 4px; min-width: 0; }
.err-list li.is-new { border-color: var(--red, #c0392b); background: color-mix(in srgb, var(--red, #c0392b) 5%, transparent); }
.err-list li.is-done { opacity: .7; }
.err-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.err-done { margin: 0 0 0 auto; }
.err-kind { font-size: .72rem; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--soft); }
.err-js { background: color-mix(in srgb, var(--blue-2, #2a6fb0) 15%, transparent); }
.err-warn { color: var(--muted); }
.err-badge { font-size: .72rem; color: #fff; background: var(--red, #c0392b); padding: 1px 7px; border-radius: 99px; }
.err-msg { font: .8rem/1.4 ui-monospace, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.error-log { list-style: none; margin: 0; padding: 0; font: .75rem/1.4 ui-monospace, Menlo, monospace; max-height: 420px; overflow: auto; }
.error-log li { white-space: pre-wrap; word-break: break-word; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.error-log li:nth-child(odd) { background: var(--soft); }

/* Tastatur offen im Chat: Menüleiste unten ausblenden, kein Abstand für den Home-Balken */
body.kbd-open .mainnav, body.kbd-open .chat-tip { display: none; }
body.kbd-open .composer { padding-bottom: 8px; }
/* beim Tippen zählt jede Zeile: Knöpfe im Chat-Kopf (Aufgaben, Verein, Video) ausblenden, nur der Titel bleibt */
body.kbd-open .chat-head > .btn { display: none; }
body.kbd-open .chat-head { padding-top: 6px; padding-bottom: 6px; }
/* installierte App beim Tippen: auch die Kopfleiste (Logo) weg – der sichtbare Bereich über der Tastatur ist klein */
html.is-standalone body.kbd-open .topbar { display: none; }
html.is-standalone body.kbd-open .main-chat { padding-top: env(safe-area-inset-top); }
/* Handy: unter dem Eingabefeld liegt die Menüleiste (bzw. die Tastatur) – die hält den Abstand zum Home-Balken schon frei */
@media (max-width: 760px) { .composer { padding-bottom: 8px; } }

/* Startseite: Benachrichtigungen einschalten */
.push-card { border: 2px solid var(--sun-2, #f5901e); background: linear-gradient(180deg, #fff8ec, var(--card)); margin-bottom: 16px; }
.push-card h2 { margin: 0 0 6px; font-size: 1.15rem; }
.push-card p { margin: 0 0 10px; }
.push-steps { margin: 0 0 12px; padding-left: 1.3em; line-height: 1.6; }
@media (prefers-color-scheme: dark) { .push-card { background: var(--card); } }


/* Verwaltung: Eltern */
.parents-table { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.parents-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(150px, 1.2fr) 2.6fr; gap: 10px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); }
.parents-row:first-child { border-top: 0; }
.parents-head { background: var(--soft); font-weight: 600; color: var(--muted); }
.parents-add { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 6px; }
.parents-add input { padding: 6px 10px; font-size: .9rem; }
.parents-have { display: flex; flex-wrap: wrap; gap: 4px; }
.parent-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--soft); border-radius: 999px; padding: 2px 4px 2px 10px; font-size: .85rem; }
.parent-chip .x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .8rem; }
@media (max-width: 760px) {
    .parents-head { display: none; }
    .parents-row { grid-template-columns: 1fr; gap: 6px; }
    .parents-add { grid-template-columns: 1fr; }
}

/* ---------- Chat wie Signal/Discord ---------- */
.video-btn { flex: none; font-size: 1.1rem; padding: 6px 10px; }
[data-presence].is-online { color: #2e8b57; font-weight: 600; }
[data-presence].is-online::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; margin-right: 5px; vertical-align: middle; }
.av-wrap { position: relative; display: inline-flex; flex: none; }
.av-wrap.is-online::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #2ecc71; border: 2px solid var(--card); }
.typing-line { padding: 2px 16px 4px; font-size: .8rem; color: var(--muted); font-style: italic; }
.typing-line::before { content: '✍️ '; font-style: normal; }
.sched-bar { padding: 4px 16px; font-size: .85rem; }
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2000; background: var(--ink); color: var(--card); padding: 10px 18px; border-radius: 999px; font-size: .9rem; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); animation: toast-in .2s ease-out; max-width: 90vw; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

/* „+“-Menü */
.plus-wrap { position: relative; flex: none; display: flex; }
.plus-menu { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 50; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .18); padding: 6px; display: grid; min-width: 210px; }
.plus-menu[hidden] { display: none; }
.plus-menu button { text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 10px; font: inherit; color: var(--ink); cursor: pointer; }
.plus-menu button:hover, .plus-menu button:focus-visible { background: var(--soft); }

/* Alben, Videos, Sticker, Weitergeleitet, Link-Vorschau */
.album { display: grid; gap: 3px; grid-template-columns: 1fr 1fr; width: min(340px, 62vw); border-radius: 12px; overflow: hidden; margin-bottom: 4px; position: relative; }
.album.n3 img:first-child { grid-column: span 2; }
.album img { width: 100%; height: 150px; object-fit: cover; display: block; cursor: zoom-in; margin: 0 !important; border-radius: 0 !important; max-width: none !important; }
.album .album-more { position: absolute; right: 0; bottom: 0; width: calc(50% - 1.5px); height: 150px; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .5); color: #fff; font-size: 1.6rem; font-weight: 700; cursor: pointer; }
.preview-video { display: block; max-width: min(340px, 100%); max-height: 360px; border-radius: 12px; background: #000; margin-bottom: 4px; }
.msg.is-sticker .bubble { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }
.sticker { width: 140px; height: 140px; object-fit: contain; display: block; }
.rx-st { width: 22px; height: 22px; object-fit: contain; vertical-align: middle; }
.sheet-rx .rx-st { width: 30px; height: 30px; }
.fwd { font-size: .75rem; color: var(--muted); font-style: italic; margin-bottom: 3px; }
.lp:empty { display: none; }
.lp-card { display: flex; flex-direction: column; margin-top: 6px; border-left: 3px solid var(--sun); background: rgba(0, 0, 0, .04); border-radius: 8px; overflow: hidden; text-decoration: none !important; color: inherit; max-width: 340px; }
.lp-card img { width: 100%; max-height: 180px; object-fit: cover; display: block; }
.lp-card span { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px 8px; }
.lp-card small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; }
.lp-card b { font-size: .88rem; line-height: 1.25; }
.lp-card em { font-style: normal; font-size: .8rem; color: var(--muted); line-height: 1.3; }
.thread-btn { display: block; margin: 3px 0 0; background: none; border: 0; padding: 2px 4px; color: var(--accent-ink, #2965c6); font-weight: 600; font-size: .82rem; cursor: pointer; }
.msg.own .thread-btn { margin-left: auto; }

/* Sticker-Auswahl, Weiterleiten, Geplant */
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; max-height: 50vh; overflow: auto; padding: 4px; }
.st-cell { position: relative; }
.st-cell [data-st] { width: 100%; aspect-ratio: 1; background: var(--soft); border: 0; border-radius: 12px; padding: 6px; cursor: pointer; }
.st-cell [data-st] img { width: 100%; height: 100%; object-fit: contain; }
.st-del { position: absolute; top: -4px; right: -4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--card); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); font-size: .7rem; cursor: pointer; }
.st-add { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 10px 4px 2px; }
.st-add input { flex: 1 1 140px; width: auto; }
.fwd-filter { margin: 0 8px 6px; width: calc(100% - 16px); }
.fwd-list { max-height: 50vh; overflow: auto; display: grid; }
.sched-item { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px; border-bottom: 1px solid var(--line); }
.sched-item span { display: flex; flex-direction: column; min-width: 0; }
.sched-item small { color: var(--muted); overflow-wrap: anywhere; }

/* Strang-Fenster */
.thread-panel { position: fixed; z-index: 900; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--bg, #fffaf2); border-left: 1px solid var(--line); box-shadow: -8px 0 28px rgba(0, 0, 0, .15); display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
.thread-panel[hidden] { display: none; }
.thread-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--card); padding-top: calc(12px + env(safe-area-inset-top)); }
.thread-list { flex: 1; overflow: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.t-msg { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; max-width: 92%; }
.t-msg.own { align-self: flex-end; background: color-mix(in srgb, var(--sun) 14%, var(--card)); }
.t-msg.t-root { max-width: 100%; border-width: 2px; }
.t-who small { color: var(--muted); }
.t-body { overflow-wrap: anywhere; white-space: pre-wrap; }
.t-msg .preview { max-width: 100%; border-radius: 8px; margin-top: 4px; }
.t-sep { text-align: center; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 4px 0; }
.thread-composer { display: flex; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); background: var(--card); align-items: flex-end; }
.thread-composer textarea { flex: 1; resize: none; max-height: 140px; }
@media (max-width: 640px) { .plus-menu { min-width: 200px; } .album img, .album .album-more { height: 120px; } }

/* „Ich komme später“ */
.late-form { margin: 6px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.late-pick > summary { list-style: none; display: inline-block; cursor: pointer; }
.late-pick > summary::-webkit-details-marker { display: none; }
.late-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.late-opts input { flex: 1 1 160px; width: auto; padding: 6px 10px; font-size: .9rem; }
.late-set { font-size: .9rem; color: #b36b00; }
.late-list { margin: 10px 0 0; font-size: .92rem; background: #fff6e0; border: 1px solid #f0d58a; border-radius: 10px; padding: 8px 12px; }
.late-badge { color: #b36b00; font-weight: 700; }

/* Fragen-Ecke */
.qa-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qa-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-left: 4px solid var(--sun); }
.qa-item.is-solved { border-left-color: #2e8b57; }
.qa-q h1 { margin: 4px 0 8px; font-size: 1.4rem; }
.qa-a header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.qa-a.is-solution { border: 2px solid #2e8b57; }
.qa-sol { color: #2e8b57; font-weight: 700; font-size: .85rem; }
.qa-link { display: block; margin: 8px 4px 0; text-decoration: none !important; }
.chat-list.searching .qa-link { display: none; }
.lp-card { width: min(340px, 62vw); }

/* Verwaltung: Facebook-Seiten */
.fb-pages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fb-pages li { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 8px 10px; background: var(--soft); border-radius: 10px; }
.fb-pages li > span { flex: 1 1 220px; }
.fb-pages select { padding: 4px 8px; }


/* ---------- „Was ist neu?“ ---------- */
.news-dlg { width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 0; border-radius: 22px; padding: 0; background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); overflow: hidden; }
.news-dlg[open] { display: flex; flex-direction: column; }
.news-dlg::backdrop { background: rgba(30, 20, 10, .55); }
.news-skip { position: absolute; top: 10px; right: 12px; z-index: 2; background: rgba(255, 255, 255, .85); border: 0; border-radius: 999px; padding: 4px 12px; font-size: .8rem; color: var(--muted); cursor: pointer; }
.news-track { overflow: auto; flex: 1; }
.news-slide { padding: 0 22px 8px; animation: news-in .25s ease-out; }
@keyframes news-in { from { opacity: 0; transform: translateX(14px); } }
.news-slide h2 { margin: 14px 0 8px; font-size: 1.25rem; }
.news-text p { margin: 0 0 8px; line-height: 1.45; }
.news-text ul { margin: 0 0 8px; padding-left: 1.2em; line-height: 1.45; }
.news-text li { margin-bottom: 3px; }
.news-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.news-foot [data-news-prev][hidden] { display: inline-block !important; visibility: hidden; }
.news-dots { display: flex; gap: 5px; }
.news-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.news-dots i.on { background: var(--sun); width: 18px; border-radius: 4px; }
.news-demo { background: linear-gradient(135deg, #fff1d6, #ffe2c2); margin: 0 -22px; padding: 22px 18px; min-height: 150px; display: flex; align-items: center; justify-content: center; }
.news-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.news-card { padding: 0; overflow: hidden; }
.news-card .news-demo { margin: 0; min-height: 120px; }
.news-card > div:last-child { padding: 4px 18px 12px; }
@media (prefers-reduced-motion: reduce) { .news-slide { animation: none; } }
/* kleine Nachbildungen */
.nm-hero { font-size: 4.5rem; line-height: 1; }
.nm-tiles { display: grid; gap: 8px; width: 100%; max-width: 300px; }
.nm-tile { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; border-left: 5px solid var(--pc); padding: 8px 10px; font-weight: 600; font-size: .9rem; color: #222; }
.nm-tile i { font-style: normal; width: 32px; height: 32px; border-radius: 8px; background: var(--pc); color: #fff; display: grid; place-items: center; }
.nm-plus { position: relative; display: grid; gap: 2px; background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); font-size: .85rem; color: #222; margin-bottom: 26px; }
.nm-plus span { padding: 5px 10px; border-radius: 8px; }
.nm-plus span:first-child { background: #fff3dc; }
.nm-plusbtn { position: absolute; left: 4px; bottom: -34px; width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); font-size: 1.2rem; }
.nm-chat { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; width: 100%; max-width: 300px; }
.nm-bubble { background: #fff; border-radius: 14px 14px 14px 4px; padding: 8px 12px; font-size: .9rem; color: #222; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.nm-voice { font-family: monospace; letter-spacing: 1px; }
.nm-sheet { display: grid; gap: 2px; background: #fff; border-radius: 12px; padding: 6px; font-size: .82rem; color: #222; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); align-self: stretch; }
.nm-sheet span { padding: 4px 8px; }
.nm-rx { font-size: 1.1rem; letter-spacing: 4px; border-bottom: 1px solid #eee; }
.nm-thread { color: #2965c6; font-weight: 700; font-size: .85rem; padding-left: 6px; }
.nm-typing { font-size: .8rem; color: #7a6a55; font-style: italic; }
.nm-late { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.nm-btn { background: #fff; border: 1px solid #e3d3b8; border-radius: 999px; padding: 6px 14px; font-weight: 600; color: #222; }
.nm-chips { display: flex; gap: 6px; }
.nm-chips i { font-style: normal; background: #fff; border-radius: 999px; padding: 4px 10px; font-size: .8rem; color: #222; border: 1px solid #e3d3b8; }
.nm-qa { background: #fff; border-left: 4px solid #2e8b57; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; color: #222; max-width: 300px; }
.nm-qa span { font-size: .8rem; color: #2e8b57; }
.nm-att { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; background: #fff; border-radius: 12px; padding: 10px 14px; font-size: .88rem; color: #222; }
.nm-att i { font-style: normal; color: #b36b00; font-weight: 700; font-size: .78rem; }

/* Profilseite: Bereiche lückenlos in Spalten (statt starrer Zeilen mit Lücken) */
.profile-grid { columns: 3 330px; column-gap: 16px; }
.profile-grid > * { break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid; margin: 0 0 16px; width: 100%; box-sizing: border-box; }
.profile-grid + .card { margin-top: 0; }
.pf-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px 12px; }
.pf-fields label { margin: 0; }
.pf-note { margin: -4px 0 0; }
/* Häkchen mit Erklärtext: Text normal umbrechen statt in schmaler Spalte */
.profile-grid label.check { display: block; padding-left: 30px; position: relative; }
.profile-grid label.check > input[type=checkbox], .profile-grid label.check > input[type=radio] { position: absolute; left: 0; top: 2px; margin: 0; }
.profile-grid label.check small { display: inline; }
.pf-fields { align-items: end; }

/* „powered by steto-music.at“ – klein und dezent ganz unten */
.credit { text-align: center; margin: 28px 0 0; font-size: .72rem; letter-spacing: .02em; }
.credit a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); opacity: .7; text-decoration: none !important; transition: opacity .2s; }
.credit a:hover, .credit a:focus-visible { opacity: 1; }
.credit img { width: 15px; height: auto; border-radius: 2px; }

/* Unterordner bei den Dateien */
.folder-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: -4px 0 12px; }
.folder-crumbs { margin: 0; font-size: .95rem; }
.newsub > summary { list-style: none; cursor: pointer; }
.newsub > summary::-webkit-details-marker { display: none; }
.newsub-form { display: flex; gap: 6px; margin-top: 6px; }
.newsub-form input { width: auto; flex: 1 1 180px; padding: 6px 10px; }
.subfolders { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 18px; }
.subfolder { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none !important; }
.subfolder:hover, .subfolder:focus-visible { border-color: var(--sun); }
.sf-ic { grid-row: span 2; font-size: 1.6rem; }
.sf-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-n { font-size: .78rem; color: var(--muted); }

/* Ablauf am Aufführungstag */
.sched-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 2px; }
.sched-list li { display: grid; grid-template-columns: 4.2em 1fr; gap: 10px; align-items: baseline; padding: 7px 8px; border-radius: 8px; }
.sched-list li.is-mine { background: color-mix(in srgb, var(--sun) 14%, transparent); }
.sched-list li.not-mine { color: var(--muted); }
.sched-list .sched-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.sched-list .sched-what { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.sched-list .sched-what small { flex-basis: 100%; }
.only-mine .sched-list li.not-mine { display: none; }
.sched-list.compact li { padding: 4px 6px; }
.sched-rows { display: grid; gap: 6px; }
.sched-row { display: grid; grid-template-columns: 6.5em 1.6fr 1fr 1.4fr; gap: 6px; }
.sched-row input, .sched-row select { width: 100%; min-width: 0; padding: 6px 8px; font-size: .9rem; }
@media (max-width: 640px) { .sched-row { grid-template-columns: 6.5em 1fr; padding-bottom: 6px; border-bottom: 1px dashed var(--line); } }
.today-show { border: 2px solid var(--sun); }
.today-show h2 { margin-bottom: 6px; }

/* Karten */
.tickets-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin: 8px 0 4px; }
.tickets-form label { margin: 0; }
.tickets-form input[type=number] { width: 6em; }
.tickets-form .tickets-note { flex: 1 1 200px; }

/* Stimmungsbarometer */
.mood-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.mood-btn { font-size: 1.9rem; line-height: 1; background: var(--soft); border: 2px solid transparent; border-radius: 14px; padding: 6px 10px; cursor: pointer; transition: transform .1s; }
.mood-btn:hover { transform: scale(1.1); }
.mood-btn.on { border-color: var(--sun); background: color-mix(in srgb, var(--sun) 20%, var(--card)); }
.mood-q { flex-basis: 100%; }
.mood-teaser { padding: 12px 16px; }
.mood-result span { margin-right: 6px; }
.mood-avg { font-size: 1.3rem; }

/* Jahresrückblick */
.rb { --pc2: color-mix(in srgb, var(--pc, #b23a48) 55%, #000); }
.rb-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px; border-radius: 22px; color: #fff; background: linear-gradient(130deg, var(--pc, #b23a48), var(--pc2)); margin-bottom: 16px; }
.rb-hero h1 { color: #fff; font-size: 2rem; margin: 2px 0; }
.rb-hero h1 span { opacity: .75; font-weight: 300; }
.rb-hero p { margin: 0; opacity: .9; }
.rb-kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.rb-logo { width: 110px; height: 110px; border-radius: 16px; object-fit: cover; background: rgba(255, 255, 255, .2); display: inline-flex; align-items: center; justify-content: center; font-size: 3rem; color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.rb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 18px; }
.rb-stats div { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--pc); border-radius: 14px; padding: 14px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.rb-stats b { font-size: 2rem; line-height: 1.1; font-family: var(--font-head); }
.rb-stats span { font-size: .82rem; color: var(--muted); }
.rb-section { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-bottom: 16px; break-inside: avoid; }
.rb-perfs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.rb-perfs li { display: flex; align-items: center; gap: 10px; }
.rb-perfs img, .rb-noposter { width: 46px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--soft); display: grid; place-items: center; flex: none; }
.rb-perfs span { display: flex; flex-direction: column; }
.rb-perfs small { color: var(--muted); }
.rb-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.rb-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.rb-cast { list-style: none; margin: 0; padding: 0; columns: 2 220px; }
.rb-cast li { padding: 3px 0; break-inside: avoid; }
.rb-thanks { text-align: center; font-family: var(--font-head); font-size: 1.3rem; margin: 24px 0; }
@media print {
    .no-print, .credit, .mainnav, .topbar, .viewas-bar { display: none !important; }
    .rb-hero, .rb-stats div { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    body, .main { background: #fff !important; padding: 0 !important; }
}

/* Bestätigung nach dem Speichern (Hintergrund-Formulare) */
.stay-toast { position: fixed; z-index: 1500; left: 50%; top: calc(var(--top-h, 64px) + 12px + env(safe-area-inset-top)); transform: translateX(-50%); width: min(460px, calc(100vw - 24px)); display: grid; gap: 6px; animation: stay-in .25s ease-out; transition: opacity .6s, transform .6s; cursor: pointer; }
.stay-toast .flash { margin: 0; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); font-weight: 600; border-left-width: 6px; background: var(--card); }
.stay-toast .flash-ok::before { content: '✓ '; color: var(--ok); }
.stay-toast.out { opacity: 0; transform: translate(-50%, -10px); }
@keyframes stay-in { from { transform: translate(-50%, -12px); } }
@media (prefers-reduced-motion: reduce) { .stay-toast { animation: none; transition: none; } }
.hof-hint { margin: 8px 0 0; color: var(--muted); }

/* Aufgabenliste */
.todo-add { margin-bottom: 14px; }
.todo-add > summary { cursor: pointer; }
.todo-form { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 10px; margin-top: 10px; align-items: end; }
.todo-form .todo-title { grid-column: 1 / -1; }
.todo-form .todo-notes { grid-column: 1 / -1; }
.todo-form label { margin: 0; }
@media (min-width: 700px) { .todo-form .todo-title { grid-column: 1; } }
@media (max-width: 560px) { .todo-form { grid-template-columns: 1fr 1fr; } }
.todo-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.todo { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-left: 4px solid var(--line); }
.todo.is-mine { border-left-color: var(--sun); }
.todo.overdue { border-left-color: var(--err); }
.todo.is-done { opacity: .7; }
.todo.is-done .todo-t { text-decoration: line-through; }
.todo-check { margin: 0; }
.todo-box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--muted); background: var(--card); cursor: pointer; display: grid; place-items: center; font-weight: 700; color: #fff; padding: 0; }
.todo-box:hover { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, var(--card)); }
.todo-box.checked { background: var(--ok); border-color: var(--ok); }
.todo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.todo-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.todo-due.overdue { color: var(--err); font-weight: 700; }
.todo-due.soon { color: #b36b00; font-weight: 600; }
.todo-notes-text { margin: 2px 0 0; overflow-wrap: anywhere; }
.todo-acts { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-top: 2px; }
.todo-acts form { margin: 0; }
.todo-edit > summary { list-style: none; cursor: pointer; display: inline; }
.todo-edit > summary::-webkit-details-marker { display: none; }
.todo-edit[open] { flex-basis: 100%; }
.todo-done-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin: 10px 0 6px !important; }
.todo-done-form label { margin: 0; }
.todo-donelist > summary { cursor: pointer; margin: 6px 0 8px; }
.badge-soft { display: inline-block; min-width: 1.4em; padding: 0 6px; border-radius: 999px; background: var(--sun); color: #fff; font-size: .75rem; font-weight: 700; text-align: center; }
.my-todo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.my-todo-list li { display: flex; flex-direction: column; }
.extras-bar { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 0 0 16px; padding: 8px 12px; border: 1px dashed var(--line); border-radius: 14px; }

/* Leading Team: Projekt-Dashboard */
.org-hero { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 18px 20px; margin-bottom: 14px; border-radius: 18px; color: #fff; background: linear-gradient(120deg, var(--pc, #b23a48), color-mix(in srgb, var(--pc, #b23a48) 55%, #000)); }
.org-hero h1 { color: #fff; margin: 2px 0 6px; }
.org-hero .hof-kicker { color: rgba(255, 255, 255, .85); }
.org-logo { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 700; background: rgba(255, 255, 255, .2); color: #fff; }
img.org-logo { background: #fff; }
.org-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; }
.org-links a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-size: .92rem; }
.org-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(380px, calc(50% - 8px))), 1fr)); gap: 16px; margin-bottom: 16px; align-items: start; } /* höchstens 2 Spalten – Kennzahlen brauchen Breite */
.org-focus { border: 2px solid var(--sun); }
.org-focus h3 { margin: 14px 0 6px; font-size: 1rem; }
.org-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin: 10px 0; }
.org-kpis div { background: var(--soft); border-radius: 12px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; }
.org-kpis b { font-size: 1.5rem; line-height: 1.1; }
.org-kpis span { font-size: .75rem; color: var(--muted); }
.org-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.org-events li { display: flex; flex-direction: column; gap: 1px; }
.org-filter { width: auto; padding: 6px 10px; font-size: .9rem; }
.org-people td { vertical-align: top; }
.org-st { text-align: center; font-weight: 700; }
.org-banner { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; padding: 10px 16px; margin-bottom: 16px; border-radius: 14px; background: var(--card); border: 2px dashed var(--pc, var(--sun)); }
.c-no { color: var(--err); }
.org-kpis b.small-num { font-size: 1.05rem; padding: 4px 0; }
.org-kpis b small { font-size: .8rem; color: var(--muted); font-weight: 600; }

/* Fortschrittsbalken (Budget, Auslastung) */
.meter { height: 10px; border-radius: 999px; background: var(--soft); overflow: hidden; margin: 8px 0 4px; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: var(--ok); transition: width .3s; }
.meter.is-warn > span { background: var(--warn); }
.meter.is-over > span { background: var(--err); }
.meter.is-full > span { background: var(--sun); }
.org-sales { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.org-sales .meter { margin: 4px 0 2px; height: 8px; }

/* Budget */
.bud-kpis b { font-size: 1.15rem; padding: 4px 0; }
.bud-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px 12px; align-items: end; margin-top: 10px; }
.bud-form label { margin: 0; }
.bud-form .bud-title, .bud-form .bud-note { grid-column: span 2; }
@media (max-width: 520px) { .bud-form .bud-title, .bud-form .bud-note { grid-column: auto; } }
.bud-list { list-style: none; margin: 0; padding: 0; }
.bud-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 4px 16px; align-items: center; padding: 8px 10px; border-radius: 10px; border-left: 4px solid transparent; }
.bud-row:nth-child(even) { background: var(--soft); }
.bud-row.is-warn { border-left-color: var(--warn); }
.bud-row.is-over { border-left-color: var(--err); }
.bud-main { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; min-width: 0; }
.bud-main small { flex-basis: 100%; }
.bud-num { text-align: right; white-space: nowrap; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; min-width: 7.5em; }
.bud-edit > summary { min-width: 2.5em; text-align: right; }
.bud-edit { grid-column: 4; }
.bud-edit[open] { grid-column: 1 / -1; }
@media (max-width: 560px) {
    .bud-row { grid-template-columns: 1fr auto auto; }
    .bud-main { grid-column: 1 / -1; }
    .bud-num { text-align: left; }
    .bud-edit { grid-column: 3; }
}

/* Kartenverkauf */
.sales-form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin-top: 8px; }
.sales-form label { margin: 0; }
.sales-cap input { width: 120px; }
.sales-table { width: 100%; margin: 4px 0; }
.sales-table input { width: 100%; min-width: 70px; padding: 6px 8px; }
.sales-table td, .sales-table th { padding: 4px 6px; }
.sales-table tfoot th { text-align: left; }
.sales-import { margin-top: 10px; }
.sales-untrack { margin-top: 8px; text-align: right; }
.bud-edit > summary { list-style: none; cursor: pointer; }
.bud-books { list-style: none; margin: 8px 0; padding: 0; font-size: .9rem; }
.bud-books > li { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); }
.bud-books .bud-book-text { min-width: 0; overflow-wrap: anywhere; }
.bud-books .bud-report { grid-column: 1 / -1; }
.bud-books .bud-report > summary { list-style: none; cursor: pointer; }
.bud-books .bud-report > summary::-webkit-details-marker { display: none; }
.bud-books .bud-report .inline-form { display: flex; flex-wrap: wrap; margin-top: 4px; }
.bud-books .bud-report input { flex: 1 1 220px; }
.bud-edit > summary::-webkit-details-marker { display: none; }

/* Kontoabgleich */
.bank-table td { vertical-align: top; padding: 6px 8px; }
.bank-table select { width: 100%; min-width: 180px; max-width: 280px; padding: 5px 8px; font-size: .88rem; }
.bank-table tr.is-maybe td { background: color-mix(in srgb, var(--warn) 12%, transparent); }
.bank-maybe-key { background: color-mix(in srgb, var(--warn) 18%, transparent); padding: 0 6px; border-radius: 6px; }
.bank-text { min-width: 0; }
.bank-text b, .bank-text small { display: block; overflow-wrap: anywhere; }
.bank-text small { color: var(--muted); }
.bank-amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.bank-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.bank-list li { display: grid; grid-template-columns: auto auto 1fr auto; gap: 4px 12px; align-items: baseline; padding: 4px 8px; border-radius: 8px; }
.bank-list li:nth-child(even) { background: var(--soft); }
@media (max-width: 560px) {
    .bank-list li { grid-template-columns: auto 1fr auto; }
    .bank-list li .bank-text { grid-column: 1 / -1; grid-row: 2; }
    .bank-table thead { display: none; }
    .bank-table tr { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
    .bank-table td { padding: 0 4px; border: 0; }
    .bank-table td.bank-text, .bank-table td:last-child { grid-column: 1 / -1; }
    .bank-table select { max-width: none; }
}
.bank-pick select { display: block; }
.bank-pick .bank-perf { margin-top: 4px; font-size: .8rem; color: var(--muted); }
.bank-inbox { border: 2px dashed var(--sun); }
.perf-results td, .perf-results th { text-align: right; font-variant-numeric: tabular-nums; }
.perf-results td:first-child, .perf-results th:first-child { text-align: left; }
@media (max-width: 560px) {
    .perf-results thead { display: none; }
    .perf-results tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
    .perf-results td, .perf-results th { border: 0; padding: 0 2px; text-align: left; }
    .perf-results td:first-child, .perf-results th:first-child { grid-column: 1 / -1; font-weight: 600; }
    .perf-results td[data-label]::before, .perf-results th[data-label]::before { content: attr(data-label) ' '; display: block; font-size: .7rem; color: var(--muted); font-weight: 400; }
}
.bank-saved { margin-left: 6px; color: var(--ok); font-weight: 700; }
.bank-sugg-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; padding: 10px 12px; margin: 6px 0 12px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 10%, transparent); }

/* Vereinsverwaltung */
.verein-nav { margin-bottom: 14px; }
.verein-banner { text-decoration: none !important; color: var(--ink); }
.verein-banner:hover { border-style: solid; }
.verein-upload { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: flex-end; justify-content: space-between; }
.verein-manual { flex-basis: 100%; }
.verein-filter label { margin: 0; }
.verein-book .bank-pick { min-width: 210px; }
.verein-set { display: grid; gap: 4px; }
.verein-set select { width: 100%; }
.vt-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #fff; background: var(--pc, #888); margin-left: 4px; white-space: nowrap; }
.verein-events td { vertical-align: top; }
.verein-events .vt-month th { padding-top: 16px; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 2px solid var(--line); }
.verein-events .vt-proj { text-align: right; }
.verein-events .vt-meeting td { background: color-mix(in srgb, #5b4b8a 7%, transparent); }
.verein-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.verein-people > li { border-radius: 10px; padding: 6px 10px; border-left: 4px solid transparent; }
.verein-people > li:nth-child(even) { background: var(--soft); }
.verein-people > li.is-over { border-left-color: var(--err); }
.verein-people summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.verein-people summary::-webkit-details-marker { display: none; }
.vp-name { display: flex; flex-direction: column; min-width: 0; }
.vp-name small, .vp-sum small { font-size: .75rem; }
.vp-sum { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.verein-ea { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.verein-ea td { padding: 4px 6px; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.verein-fees { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.verein-fees li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 10px; border-radius: 10px; border-left: 4px solid var(--line); }
.verein-fees li.is-paid { border-left-color: var(--ok); }
.verein-fees li.is-open { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 7%, transparent); }
.verein-fees li span { display: flex; flex-direction: column; }
.verein-member-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 12px; max-height: 340px; overflow: auto; }
.verein-meetings, .verein-decisions { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.verein-meetings li, .verein-decisions li { padding: 8px 10px; border-radius: 10px; background: var(--soft); }
.verein-meetings li.is-past { opacity: .85; }
.verein-meetings summary { cursor: pointer; }
.verein-meetings h4 { margin: 10px 0 2px; font-size: .9rem; }
.verein-decisions li { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.verein-decisions li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.verein-decisions li.is-abgelehnt { opacity: .7; }
.verein-decisions li.is-umgesetzt b { text-decoration: line-through; text-decoration-color: var(--ok); }
.verein-dec { padding: 8px 0; border-bottom: 1px solid var(--line); }
.bud-form .full { grid-column: 1 / -1; }
.todo-repeat { align-self: end; }
.print-only { display: none; }
@media print {
    .topbar, .mainnav, .credit, .no-print, .verein-nav, .flash, .stay-toast { display: none !important; }
    .print-only { display: block; }
    body, .main { background: #fff !important; }
    .card { box-shadow: none !important; border: 0 !important; }
    .verein-print a { color: inherit; text-decoration: none; }
    .verein-sign { margin-top: 40px; }
}
.vp-name .tag { align-self: flex-start; margin: 2px 0; }

.verein-balance { display: grid; gap: 0; }
.vb-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.vb-row .inline-form input { width: 130px; }
.vb-total { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 700; }
@media (max-width: 560px) {
    .verein-events, .verein-events tbody { display: block; width: 100%; }
    .verein-events tr { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
    .verein-events td, .verein-events th { border: 0; padding: 0 2px; white-space: normal; }
    .verein-events td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
    .verein-events .vt-proj { grid-column: 2; grid-row: 1; }
    .verein-events .vt-month { display: block; border-bottom: 2px solid var(--line); }
    .verein-events td.nowrap br { display: none; }
    .verein-events td.nowrap .muted::before { content: ' · '; }
}

/* Auszahlungsliste / Bestätigung */
.payout-sheet { max-width: 760px; margin: 0 auto; font-size: .95rem; }
.ps-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 12px; }
.ps-title { text-align: right; font-weight: 700; }
.ps-title small { font-weight: 400; color: var(--muted); }
.ps-meta { width: 100%; margin-bottom: 10px; }
.ps-meta th { text-align: left; width: 110px; color: var(--muted); font-weight: 600; vertical-align: top; padding: 2px 8px 2px 0; }
.ps-meta td { padding: 2px 0; }
.ps-items { width: 100%; border-collapse: collapse; margin: 8px 0; }
.ps-items th, .ps-items td { border-bottom: 1px solid var(--line); padding: 5px 6px; text-align: left; vertical-align: top; }
.ps-items .num { text-align: right; }
.ps-items tfoot th { border-top: 2px solid var(--ink); border-bottom: 0; }
.ps-check { padding: 6px 10px; border-radius: 8px; }
.ps-check.ps-ok, .fwp-line.fwp-ok { color: var(--ok); }
.ps-check.ps-days, .fwp-line.fwp-days { background: color-mix(in srgb, var(--warn) 12%, transparent); }
.ps-check.ps-year, .fwp-line.fwp-year { background: color-mix(in srgb, var(--err) 10%, transparent); color: var(--err); }
.ps-declare { margin-top: 14px; }
.ps-other { margin-top: 6px; }
.ps-tax { font-size: .88em; }
.ps-fwp-note { margin-top: 12px; padding: 8px 10px; border: 1px solid currentColor; border-radius: 6px; }
.ps-sign { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; margin-top: 34px; }
.ps-sign > div { display: flex; flex-direction: column; }
.ps-line { display: flex; align-items: flex-end; min-height: 46px; border-bottom: 1px solid var(--ink); }
.ps-sigline img { max-height: 70px; max-width: 100%; }
.ps-sign small { color: var(--muted); font-size: .72rem; margin-top: 2px; }
.tag-ok { color: var(--ok); }
.vp-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0; }
.vp-tags .tag { margin: 0; }
.tag.fwp-ok { color: var(--ok); }
.tag.fwp-days { color: var(--warn); }
.tag.fwp-year { color: var(--err); }
.verein-people > li.is-warn { border-left-color: var(--warn); }
.fwp-person { margin: 6px 0; }
.fwp-rules ul { margin: 4px 0 8px 18px; padding: 0; }
.sign-pad { position: relative; border: 2px dashed var(--line); border-radius: 12px; background: #fff; touch-action: none; }
.sign-pad canvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; cursor: crosshair; touch-action: none; }
.sign-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #b9b2a8; pointer-events: none; font-size: 1.1rem; }
.print-page { background: #fff; padding: 20px; }
.cr-form { max-width: 760px; margin: 0 auto 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.cr-form label { display: flex; flex-direction: column; gap: 2px; font-size: .82rem; }
.cr-form .cr-wide { grid-column: 1 / -1; }
.cr-form .check { flex-direction: row; align-items: center; grid-column: 1 / -1; }
.cr-meta th { width: 120px; }
.cr-meta td, .cr-meta th { padding: 5px 8px 5px 0; border-bottom: 1px dotted var(--line); }
.cr-amount { font-size: 1.15rem; }
.cr-thanks { margin: 22px 0 6px; font-size: 1.1rem; font-weight: 700; }
.cr-sign { grid-template-columns: 1fr 1.3fr 1.3fr; margin-top: 26px; }
.cr-cut { max-width: 760px; margin: 14px auto; border-top: 1px dashed #999; text-align: center; line-height: 0; color: #999; }
.cr-book { max-width: 760px; margin: 24px auto 0; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; }
@media print { .print-page .payout-sheet.cash-receipt { break-after: auto; page-break-after: auto; break-inside: avoid; } .cr-cut { margin: 10mm auto; } }
.print-bar { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
.print-page .payout-sheet { padding: 10px 0 30px; }
.print-page .payout-sheet + .payout-sheet { border-top: 1px dashed var(--line); margin-top: 20px; padding-top: 30px; }
@media print {
    .print-page { padding: 0; }
    .print-page .payout-sheet { break-after: page; page-break-after: always; border: 0 !important; margin: 0 !important; padding: 0 !important; }
    .print-page .payout-sheet:last-child { break-after: auto; page-break-after: auto; }
    .print-bar { display: none; }
}
@media (max-width: 560px) {
    .ps-sign { grid-template-columns: 1fr; gap: 14px; }
    .ps-title { text-align: left; }
}
.ps-items tfoot td { border-bottom: 0; padding-top: 2px; }
.ps-items .ps-extra td { color: var(--err); }

/* ---------- Erklärungen, Anleitung, Handy/Computer ---------- */
.tip { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; padding: 0; margin: 0 2px; vertical-align: 1px;
    border: 1px solid var(--accent); border-radius: 50%; background: transparent; color: var(--accent-ink); font: 700 11px/1 system-ui, sans-serif; cursor: help; flex: none; }
.tip:hover, .tip:focus-visible { background: var(--accent); color: #fff; }
.tip::before { content: ''; position: absolute; inset: -10px; } /* größere Tippfläche am Handy */
.tip { position: relative; }
.tip-bubble { position: fixed; z-index: 1000; max-width: min(320px, calc(100vw - 16px)); padding: 8px 11px; border-radius: 10px;
    background: var(--ink); color: var(--card); font-size: .82rem; line-height: 1.4; font-weight: 400; box-shadow: 0 6px 20px rgba(0,0,0,.22); pointer-events: none; white-space: normal; text-align: left; }
.tip-bubble[hidden] { display: none; }
.help-link { display: inline-flex; align-items: center; gap: 3px; font-size: .85rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.help-link:hover { color: var(--accent-ink); }
.desk-hint { display: none; }
.tag-muted { opacity: .65; }
.vp-map { align-items: end; }
.vp-map p { flex-basis: 100%; margin: 0; }
.device { display: inline-block; font-size: .75rem; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; vertical-align: 2px; }
@media (max-width: 760px) {
    .desk-hint { display: block; margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--line); color: var(--ink); }
    .help-link span { display: none; }
}
@media print { .tip, .help-link, .desk-hint { display: none !important; } }
.help-part { margin: 22px 0 8px; font-size: 1.05rem; color: var(--accent-ink); }
.help-sec { padding: 0; }
.help-sec > summary { padding: 14px 16px; cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; }
.help-sec[open] > summary { border-bottom: 1px solid var(--line); }
.help-body { padding: 4px 16px 12px; }
.help-body li { margin: 4px 0; }
.help-devices td { vertical-align: top; width: 50%; font-size: .9rem; }
.help-intro .help-link { pointer-events: none; }
/* Rechnungen */
.inv-new { margin: 6px 0 12px; }
.inv-list { list-style: none; margin: 0; padding: 0; }
.inv-list > li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.inv-list > li.is-late { box-shadow: inset 3px 0 0 #c0392b; padding-left: 10px; }
.inv-list > li.is-paid .inv-main b { opacity: .7; }
.inv-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.inv-meta { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.inv-amt { font-weight: 700; white-space: nowrap; text-align: right; }
.inv-list .row-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
/* Zähler in Links */
.badge-inline { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: .72rem; text-align: center; }
/* Feldbezeichnung + „?“ in einer Zeile, das Eingabefeld darunter */
label:not(.check):has(> .tip) { display: grid; grid-template-columns: auto 1fr; column-gap: 4px; align-items: center; }
label:not(.check):has(> .tip) > .tip { justify-self: start; }
label:not(.check):has(> .tip) > :not(.tip) { grid-column: 1 / -1; }
@media (max-width: 760px) {
    /* Knöpfe in Formularen der Kopfzeile: nicht über die Spalte hinaus (z.B. „Für alle zum Bestätigen schicken“) */
    .page-head .actions > form { min-width: 0; }
    .page-head .actions > form > .btn { width: 100%; white-space: normal; line-height: 1.2; }
}

/* Mitglieder, Vorschreibung, persönliche Mitgliederseite */
.member-list { list-style: none; margin: 8px 0 0; padding: 0; }
.member-list > li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: start; }
.member-list > li.is-left { opacity: .6; }
.member-list .row-actions { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.member-form { margin-bottom: 10px; }
.announce-pick { display: grid; gap: 4px; max-height: 320px; overflow: auto; padding: 4px 0; }
.dues-steps { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.dues-steps li > * { vertical-align: middle; margin-right: 6px; }
.dues-addr { margin: 26px 0 10px; line-height: 1.45; }
.dues-date { text-align: right; }
.dues-pay { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.dues-qr { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.dues-qr svg { width: 150px; height: 150px; }
.dues-qr small { color: var(--muted); line-height: 1.25; }
.dues-pay .ps-meta { flex: 1 1 260px; }
.dues-paid { font-weight: 700; color: var(--ok); }
.dues-link { word-break: break-all; }
.member-page { text-align: left; }
.member-page h1 { margin-bottom: 2px; }
.member-page .card { margin: 14px 0; }
.member-page .payout-sheet .ps-head, .member-page .payout-sheet .dues-addr, .member-page .payout-sheet .dues-date, .member-page .payout-sheet .dues-link { display: none; }
.member-event { padding: 8px 0; border-top: 1px solid var(--line); }
.member-event:first-of-type { border-top: 0; }
.gv-invite { margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 7%, transparent); }
.gv-invite p { margin: 4px 0; }
.gv-list .gv-sign { width: 34%; }
.gv-list td { height: 28px; }
.member-print td, .member-print th { font-size: .82rem; vertical-align: top; }
@media print { .dues-qr svg { width: 4cm; height: 4cm; } }
/* Vereinsrollen */
.role-list { list-style: none; margin: 10px 0 0; padding: 0; }
.role-list > li { padding: 8px 0; border-top: 1px solid var(--line); }
.role-people { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.role-matrix td.num, .role-matrix th { text-align: center; }
.role-matrix td:first-child { text-align: left; }
.verein-myrole { margin-left: auto; }
.vb-anchor { margin-top: 10px; }

/* Offline: gespeicherter Stand (Service Worker) */
.offline-bar { position: sticky; top: 0; z-index: 60; display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: 8px 12px; background: #3d3a35; color: #fff; font-size: .9rem; text-align: center; }
.offline-bar button { border: 1px solid rgba(255,255,255,.6); background: transparent; color: inherit; border-radius: 999px; padding: 2px 10px; font: inherit; cursor: pointer; }
html.is-standalone .offline-bar { position: relative; }

/* Projektfilter: ganze Sparte */
.pfilter a.pfilter-sparte { font-weight: 700; }

/* Förderbericht */
.list-plain { list-style: none; padding: 0; margin: 0 0 12px; }
.list-plain li { padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.list-plain li.on > a { font-weight: 700; }
.grant-check { list-style: none; padding: 0; }
.grant-check li { padding: 4px 0 4px 8px; border-left: 3px solid var(--line); margin-bottom: 4px; }
.grant-check li.is-warn { border-left-color: var(--warn); }
.grant-check li.is-ok { border-left-color: var(--ok, #2e7d5b); }
.grant-belege td { vertical-align: top; }
.ps-sign.ps-sign3 { grid-template-columns: 1fr 1fr 1fr; }
@media print { .grant-belege { font-size: .78rem; } }
.verein-fin { margin: -6px 0 14px; padding: 6px 8px; border-radius: 12px; background: var(--card-alt, rgba(0,0,0,.03)); }
.verein-fin .chip { font-size: .85rem; }
.verein-fin-sep { color: var(--muted); align-self: center; padding: 0 2px; }
.inv-filter { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: end; margin: 0 0 10px; }
.inv-filter .inv-show { display: flex; gap: 6px; }
.inv-filter .sales-form { margin: 0; }
.vbi-list { max-height: 50vh; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.vbi-row[hidden], .vbi-row.is-off { display: none !important; }
.vbi-row { display: grid !important; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.vbi-row small { display: block; }
.vbi-row.is-match { background: rgba(232, 160, 32, .10); border-radius: 6px; }
.vb-inv.is-set { font-weight: 600; }
.inv-bulk-log { white-space: pre-wrap; max-height: 220px; overflow: auto; background: var(--line); padding: 8px; border-radius: 8px; }
.inv-bulk progress { width: 100%; }

/* Handy: Ankreuzfelder in Formular-Rastern über die ganze Breite (sonst steht der Hinweistext Wort für Wort untereinander) */
.bud-form > label.check { grid-column: 1 / -1; }
.org-filter { max-width: 100%; }
@media (max-width: 760px) {
    .org-filter { width: 100%; }
    /* Vereins-Menü und Finanz-Leiste: eine wischbare Zeile statt fünf Zeilen Knöpfe */
    .verein-nav, .verein-fin { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
    .verein-nav::-webkit-scrollbar, .verein-fin::-webkit-scrollbar { display: none; }
    .verein-nav > *, .verein-fin > * { flex: none; }
    .verein-myrole { display: none; }
}
.extras-bar .chip[disabled] { cursor: default; opacity: .85; }
.extras-pick label.check { flex-wrap: wrap; row-gap: 0; }
.extras-pick label.check small { flex-basis: 100%; padding-left: 28px; font-weight: 400; }

/* Kartenwünsche: Stand und Bearbeitung */
.ticket-state { margin: 8px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--soft); }
.ticket-state.ticket-hinterlegt, .ticket-state.ticket-gesendet { background: rgba(46, 139, 87, .12); }
.ticket-list { list-style: none; padding: 0; margin: 8px 0; }
.ticket-list li { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* Dienste: Leading Team teilt ein (auch Personen ohne App) */
.task-person .inline-form { display: inline; }
.task-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .75rem; padding: 0 2px; }
.task-x:hover { color: var(--danger, #b3261e); }
.task-guest { font-style: italic; }
.task-assign > summary { list-style: none; }
.task-assign > summary::-webkit-details-marker { display: none; }
.task-assign-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.task-actions .task-assign[open], .ride-actions .task-assign[open] { flex-basis: 100%; order: 10; }
.task-assign-form select, .task-assign-form input { flex: 1 1 160px; }
.ride-pass .ride-p { display: inline; white-space: nowrap; }
.ride-p .inline-form { display: inline; }

/* Eventfrog */
.ef-box { margin: 4px 0 10px; padding: 8px 12px; border-radius: 12px; background: rgba(103, 168, 40, .10); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.ef-box .sales-form { margin: 0; }
.ef-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 8px 0; }
.ef-kpis div { background: var(--soft); border-radius: 12px; padding: 8px 10px; }
.ef-kpis b { display: block; font-size: 1.25rem; }
.ef-kpis span { font-size: .78rem; color: var(--muted); }
.ef-spark { width: 100%; height: 48px; display: block; }
.ef-spark path { fill: none; stroke: #5a9e2f; stroke-width: 2; }
.ef-spark .area { fill: rgba(103, 168, 40, .15); stroke: none; }
.ticket-do { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: end; margin-top: 6px; flex-basis: 100%; }
.ticket-do label { margin: 0; }
.ticket-file input { max-width: 230px; }
.ticket-list li > div:first-child { flex: 1 1 260px; }

/* Fahrgemeinschaften: Mitfahrende umbrechen nur zwischen Personen, Gesuche zweizeilig */
.ride-pass { line-height: 1.6; }
.ride-pass .ride-pass-label, .ride-pass .ride-free { white-space: nowrap; }
.ride-req-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }

/* ---------- Computer: Platz besser nutzen (Handy unverändert) ---------- */
.verein-infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0 14px; }
.verein-infos > .card { margin-bottom: 14px; padding-top: 14px; padding-bottom: 14px; }
@media (min-width: 1000px) {
    .card { padding: 18px 20px; margin-bottom: 14px; }
    .home-grid { gap: 14px; }
    .home-col > .card { margin-bottom: 14px; }
    .page-head { margin-bottom: 12px; }
    /* Datei-Kacheln ohne Vorschaubild (PDF, Noten …) nicht so hoch */
    .tile-thumb:not(:has(img)) { aspect-ratio: 2 / 1; }
    .tile-thumb:not(:has(img)) .tile-ic { font-size: 2rem; }
    /* Zu-/Absagen kompakter */
    .rsvp-col ul { line-height: 1.5; font-size: .92rem; }
    .rsvp-lists { gap: 10px; margin-top: 16px; align-items: start; }
    .rsvp-col li { break-inside: avoid; }
    /* Hinweis „Keine Nachricht mehr verpassen“: Text links, Knöpfe rechts */
    .push-card:not([hidden]):has(.row-actions) { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; align-items: center; padding: 14px 20px; }
    .push-card:has(.row-actions) > :not(.row-actions) { grid-column: 1; }
    .push-card:has(.row-actions) > p { margin-bottom: 0; }
    .push-card > .row-actions { grid-column: 2; grid-row: 1 / span 4; margin: 0; }
}
@media (min-width: 1360px) {
    .main, .flashes { max-width: 1280px; }
}

/* Verwaltung: Hinweislisten zuklappbar und nebeneinander, Personenliste kompakt mit Suche */
.admin-nudges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 14px; align-items: start; }
.admin-nudge > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.admin-nudge > summary::-webkit-details-marker { display: none; }
.admin-nudge > summary h2 { margin: 0; font-size: 1.1rem; }
.admin-nudge > summary::after { content: '▸'; margin-left: auto; color: var(--muted); transition: transform .15s; }
.admin-nudge[open] > summary::after { transform: rotate(90deg); }
.admin-nudge[open] > summary { margin-bottom: 8px; }
.admin-nudge:not([open]) { padding-top: 14px; padding-bottom: 14px; }
.users-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.users-head h2 { margin: 0; font-size: 1.1rem; }
.users-head .filter-input { flex: 0 1 320px; }
.groupcell span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 1000px) {
    .users-table td, .users-table th { padding-top: 7px; padding-bottom: 7px; }
    .users-table .namecell .avatar-sm { width: 26px; height: 26px; }
}

/* Zu-/Absagen: zwei Spalten nur, wenn der Kasten breit genug ist (sonst brechen Namen um) */
@media (min-width: 1000px) {
    /* lange Listen bekommen mehr Breite als kurze (z.B. „Absagen: 1“) */
    .rsvp-lists { display: flex; flex-wrap: wrap; }
    .rsvp-col { container-type: inline-size; flex: var(--g, 1) 1 140px; min-width: 0; }
}
@container (min-width: 290px) {
    .rsvp-col ul:has(li:nth-child(9)) { columns: 2; column-gap: 12px; }
    .rsvp-col ul:has(li:nth-child(9)) li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 1000px) {
    .home-files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; } /* neue Dateien zweispaltig */
}/* Förderung: Unterlagen (Antrag, Zusage …) */
.grant-docs li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.grant-doc-form { flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 14px; }
.grant-doc-form input[type="file"] { max-width: 100%; }
/* „Für wen?“ (Eltern): Alle · Ich · Kinder */
.whofilter { align-items: center; }
.whofilter-lbl { margin-right: 2px; }
.tag-who { background: color-mix(in srgb, var(--sun, #f5901e) 16%, transparent); }
/* Termin: „Was ist es?“ – Probe, Aufführung, intern, sonstiges */
.kind-pick { border: 0; padding: 0; margin: 0; }
.kind-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 480px) { .kind-opts { grid-template-columns: 1fr; } }
.kind-pick .kind-opt { display: flex; flex-direction: row; gap: 10px; font-weight: normal; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line, rgba(0,0,0,.12)); border-radius: 12px; cursor: pointer; }
.kind-pick .kind-opt input { margin: 3px 0 0; width: auto; flex: 0 0 auto; }
.kind-opt span { display: flex; flex-direction: column; gap: 2px; }
.kind-opt small { color: var(--muted, #777); font-size: .8em; }
.kind-opt:has(input:checked) { border-color: var(--sun, #f5901e); background: color-mix(in srgb, var(--sun, #f5901e) 10%, transparent); }
