/*
 * KiJuChor Emmaus – App.
 * Ruhig und sachlich: helles Papier, Indigo für Text und Kopf, Sonnengelb nur für die Hauptaktion.
 * Handy zuerst; Systemschrift (keine externen Fonts, DSGVO).
 */
:root {
    --ink: #22264b;          /* Indigo der Webseite */
    --ink-2: #3b4072;
    --text: #23253a;
    --muted: #63667a;
    --paper: #f5f4f0;        /* Seitenhintergrund */
    --surface: #fff;
    --soft: #f0efe9;         /* Flächen in Karten */
    --line: #e2e0d8;
    --line-strong: #c9c6bb;
    --sun: #ffc53d;
    --sun-soft: #fff3cf;
    --ok: #1a7f5a;
    --ok-soft: #e4f3ec;
    --err: #b3261e;
    --err-soft: #fbe9e7;
    --wa: #1f9d55;
    --radius: 12px;
    --radius-s: 8px;
    --nav-h: 60px;
}

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

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--text);
    font: 1rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--ink-2); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }

h1 { font-size: 1.6rem; line-height: 1.2; margin: .25rem 0 1rem; color: var(--ink); }
h2 { font-size: 1.1rem; line-height: 1.3; margin: 0 0 .6rem; color: var(--ink); }
h3 { font-size: 1rem; margin: 0 0 .3rem; color: var(--ink); }
p { margin: 0 0 .75rem; }
@media (min-width: 761px) { h1 { font-size: 1.85rem; } }

/* ---------- Kopf ---------- */
.topbar { background: var(--ink); color: #fff; }
.topbar__inner {
    max-width: 960px; margin: 0 auto; padding: 0 16px; min-height: 56px;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; font-size: 1.05rem; line-height: 1.1; }
.brand:hover { color: #fff; }
.brand__note {
    display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 8px;
    background: var(--sun); color: var(--ink); font-weight: 700; font-size: 1rem;
}
.brand__text { font-weight: 700; }
.brand__text strong { font-weight: 400; opacity: .85; }

.topnav { display: flex; align-items: center; gap: 1.5rem; }
.topnav a, .topnav .linkbutton {
    color: #fff; text-decoration: none; font: inherit; font-size: .95rem;
    padding: 1rem 0 calc(1rem - 3px); border: 0; border-bottom: 3px solid transparent; background: none; cursor: pointer;
}
.topnav a:hover, .topnav .linkbutton:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .35); }
.topnav a.is-active { border-bottom-color: var(--sun); }
.topnav form { margin: 0; }
.topnav .linkbutton { opacity: .8; text-decoration: none; }

/* Handy: Hauptnavigation unten, wie in einer App */
.tabbar { display: none; }
.tabbar__icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
    .topnav a { display: none; }
    .tabbar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
        background: var(--surface); border-top: 1px solid var(--line);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .tabbar a {
        flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
        min-height: var(--nav-h); font-size: .75rem; color: var(--muted); text-decoration: none;
    }
    .tabbar a.is-active { color: var(--ink); font-weight: 700; }
    .tabbar a.is-active .tabbar__icon { stroke-width: 2.2; }
    .has-tabbar .footer { padding-bottom: calc(var(--nav-h) + 1.5rem + env(safe-area-inset-bottom)); }
}

.linkbutton {
    font: inherit; font-size: .9rem; background: none; border: 0; padding: .25rem 0; cursor: pointer;
    color: var(--ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em;
}
.linkbutton--danger { color: var(--err); }
form.inline { display: inline; }
form.inline .linkbutton { padding: 0; }

/* ---------- Seite ---------- */
.page { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 1.25rem 16px 2.5rem; }
.page--narrow { max-width: 520px; }
.page--form { max-width: 660px; }
.page--wide { max-width: 1180px; }

.back { display: inline-block; margin: 0 0 .5rem; font-size: .95rem; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }

.footer {
    text-align: center; padding: 1.5rem 16px; font-size: .85rem; color: var(--muted);
    display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap;
}
.footer a { color: var(--muted); }

.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1rem; margin: 0 0 1rem;
}
@media (min-width: 761px) { .card { padding: 1.25rem; } }
.card > :last-child:not(.card__foot) { margin-bottom: 0; }
.card__label { font-weight: 600; font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }
.card__foot { margin: .75rem -1rem -1rem; padding: .7rem 1rem; border-top: 1px solid var(--line); font-size: .95rem; }
@media (min-width: 761px) { .card__foot { margin: .75rem -1.25rem -1.25rem; padding: .75rem 1.25rem; } }
.card__foot a { text-decoration: none; font-weight: 600; }
.card__foot a:hover { text-decoration: underline; }

.section-title { font-size: .95rem; font-weight: 700; color: var(--muted); margin: 1.5rem 0 .5rem; }
.section-title:first-child { margin-top: 0; }

.cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; gap: 0; } }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }

.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.mt { margin-top: 1.25rem; }
.mt-s { margin-top: .5rem; }
.block { display: block; margin-top: .15rem; }
.right { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.plain { list-style: none; padding: 0; margin: 0 0 .75rem; }
.plain li { padding: .4rem 0; border-bottom: 1px solid var(--line); }
.plain li:last-child { border-bottom: 0; }

.flash {
    background: var(--ok-soft); color: #134e38; border-radius: var(--radius-s);
    padding: .7rem .9rem; margin: 0 0 1rem; font-weight: 500;
}
.ok { color: var(--ok); font-weight: 600; }

/* Früher bunte Pille, jetzt nur eine ruhige Zeile über der Überschrift */
.eyebrow { color: var(--muted); font-size: .95rem; margin: 0 0 .1rem; }
.lead { font-size: 1.05rem; color: var(--muted); }

/* ---------- Startseite ---------- */
.intro { margin: 0 0 1.25rem; }
.intro h1 { margin-bottom: .4rem; }
.intro p { margin: 0; }

.feature { border-color: var(--line-strong); }
.feature h2 { font-size: 1.2rem; margin-bottom: .3rem; }
.feature .btn { margin-top: .25rem; }

.auth-choice { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .25rem 0 .75rem; }
.auth-choice .btn { width: 100%; text-align: center; }

/* ---------- Termine ---------- */
.dates { list-style: none; padding: 0; margin: 0; }
.dates li { display: flex; gap: .85rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.dates li:first-child { padding-top: .1rem; }
.dates li:last-child { border-bottom: 0; padding-bottom: 0; }
.date {
    flex: none; width: 3.1rem; text-align: center; border-radius: var(--radius-s);
    background: var(--soft); color: var(--ink); padding: .3rem 0 .35rem; line-height: 1.1;
}
.date__wd { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); }
.date__d { display: block; font-size: 1.3rem; font-weight: 700; }
.date__m { display: block; font-size: .72rem; color: var(--muted); }
.date--off { background: var(--err-soft); }
.date--off .date__d { color: var(--err); text-decoration: line-through; text-decoration-thickness: 2px; }
.dates__body { min-width: 0; flex: 1; }
.dates__body strong { color: var(--ink); }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: .3rem; margin: 0 0 1rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field small { color: var(--muted); font-size: .85rem; }
.req { color: var(--err); }

input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=time],
input[type=url], input[type=number], input[type=search], textarea, select {
    width: 100%; padding: .65rem .75rem; font: inherit; color: inherit; background: #fff;
    border: 1px solid var(--line-strong); border-radius: var(--radius-s);
    font-size: max(16px, 1rem); /* verhindert Zoom auf iOS */
    min-height: 46px;
}
input[type=date], input[type=time] { -webkit-appearance: none; appearance: none; }
textarea { min-height: 0; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(34, 38, 75, .14); }
.has-error input, .has-error textarea { border-color: var(--err); }
.error { color: var(--err); font-size: .9rem; margin: 0; }
.error--block { background: var(--err-soft); padding: .6rem .8rem; border-radius: var(--radius-s); margin: 0 0 1rem; }

.check { display: flex; gap: .65rem; align-items: flex-start; margin: .25rem 0 1rem; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .1rem; accent-color: var(--ink); flex: none; }
.check.has-error span { color: var(--err); }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.actions { display: flex; align-items: center; gap: .75rem 1.25rem; flex-wrap: wrap; margin-top: .5rem; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.2;
    background: var(--sun); color: var(--ink); border: 1px solid #e9ac1f; border-radius: var(--radius-s);
    padding: .7rem 1.25rem; min-height: 46px;
}
.btn:hover { background: #ffd056; color: var(--ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--quiet { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn--quiet:hover { background: var(--soft); }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); color: #fff; }
.btn--small { padding: .45rem .9rem; min-height: 38px; font-size: .92rem; }
.btn--big { width: 100%; padding: .9rem 1.5rem; font-size: 1.05rem; min-height: 52px; }
.btn--danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn--danger:hover { background: #8f1e18; color: #fff; }
.actions--submit { margin: 1.25rem 0 0; }

/* ---------- Konto / Projekte ---------- */
.project { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.project:first-of-type { padding-top: 0; }
.project:last-of-type { border-bottom: 0; padding-bottom: 0; }
.project--open { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.project--open p { margin: 0; }
.info { background: var(--soft); padding: .65rem .8rem; border-radius: var(--radius-s); font-size: .95rem; margin: .5rem 0 0; }

.who { display: flex; flex-wrap: wrap; gap: .35rem; margin: .35rem 0 0; padding: 0; list-style: none; }
.who li { background: var(--soft); border-radius: 999px; padding: .15rem .65rem; font-size: .9rem; }

.wa-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--wa); font-weight: 600; text-decoration: none; }
.wa-link:hover { color: #137a40; text-decoration: underline; }

/* Listen mit Pfeil (Personen, Einstellungen) */
.rows { list-style: none; padding: 0; margin: 0; }
.rows li { border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows a {
    display: flex; justify-content: space-between; align-items: center; gap: .75rem;
    padding: .7rem 0; color: var(--text); text-decoration: none; min-height: 48px;
}
.rows a::after { content: ""; flex: none; width: .5rem; height: .5rem; border-right: 2px solid var(--line-strong); border-top: 2px solid var(--line-strong); transform: rotate(45deg); margin-right: .2rem; }
.rows a:hover { color: var(--ink); }
.rows a:hover::after { border-color: var(--ink); }
.rows__main { flex: 1; min-width: 0; }
.rows__main small { display: block; color: var(--muted); }
.rows--first a { padding-top: 0; }

.regs { list-style: none; padding: 0; margin: .25rem 0 .6rem; }
.regs li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .35rem 0; }
.regs form { margin: 0; }
.people { list-style: none; padding: 0; margin: 0 0 1rem; }
.people li { padding: .45rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: .5rem; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table th { font-size: .85rem; color: var(--muted); font-weight: 600; }
.table .num { text-align: right; white-space: nowrap; }

.tag { display: inline-block; white-space: nowrap; font-size: .78rem; line-height: 1.5; padding: 0 .5rem; border-radius: 999px; background: var(--soft); color: var(--muted); vertical-align: .1em; }
.tag--ok { background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.tag--sun { background: var(--sun-soft); color: #6b4d00; font-weight: 600; }
.tag--err { background: var(--err-soft); color: var(--err); font-weight: 600; }
.tag--kind { background: #e6e7f2; color: var(--ink); font-weight: 600; }

/* ---------- Anmeldeformular ---------- */
fieldset.card { min-width: 0; padding-top: .75rem; }
fieldset.card > legend {
    font-weight: 700; font-size: 1.05rem; color: var(--ink);
    padding: 0 .4rem; margin-left: -.4rem;
    display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
/* Nummerierte Schritte im Anmeldeformular */
.form--steps { counter-reset: step; }
.form--steps > fieldset.card > legend::before, .form--steps > .steps-wrap > fieldset.card > legend::before {
    counter-increment: step; content: counter(step);
    display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
    background: var(--ink); color: #fff; font-size: .85rem;
}
.card--accent { border-color: #f0c45a; background: #fffcf2; }
.danger { border-color: #efcdc8; }
.danger summary { cursor: pointer; color: var(--err); }

.grid-plz { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0 1rem; }

.radios { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1rem; }
.radios__label { font-weight: 600; font-size: .95rem; width: 100%; }
.radios label {
    display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; min-height: 44px;
    border: 1px solid var(--line-strong); border-radius: var(--radius-s); padding: 0 .9rem; background: #fff;
}
.radios label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radios input { width: 1.1rem; height: 1.1rem; accent-color: var(--ink); margin: 0; }
.radios.has-error .radios__label { color: var(--err); }

.pick { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.pick label {
    display: flex; gap: .75rem; align-items: center; cursor: pointer; background: #fff;
    border: 1px solid var(--line-strong); border-radius: var(--radius-s); padding: .7rem .85rem; min-height: 52px;
}
.pick label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fafaff; }
.pick label.is-disabled { cursor: default; background: var(--soft); border-color: var(--line); }
.pick input { width: 1.25rem; height: 1.25rem; accent-color: var(--ink); flex: none; }
.pick small { display: block; }

.participant { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.participant:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.participant__title { font-weight: 700; color: var(--ink); font-size: .95rem; }

.addperson { margin: .5rem 0 1rem; }
.addperson summary { cursor: pointer; font-weight: 600; padding: .4rem 0; color: var(--ink-2); }

.callout { background: var(--sun-soft); border-radius: var(--radius-s); padding: .8rem .95rem; margin: 0 0 1rem; }
.callout p:last-child { margin-bottom: 0; }
.callout .btn { margin-top: .25rem; }
.callout--wa { background: #e8f6ee; margin: 1rem 0 0; }
.callout--wa p { margin-bottom: .75rem !important; }
.callout--install[hidden], .callout--install [hidden] { display: none !important; }
.callout--install .linkbutton { margin-left: .5rem; }

/* Konto-Vorteile: schlichte Liste */
.perks { list-style: none; padding: 0; margin: 0 0 1rem; }
.perks li { padding-left: 1.4rem; position: relative; margin: .3rem 0; }
.perks li::before {
    content: ""; position: absolute; left: .15rem; top: .45em; width: .55rem; height: .3rem;
    border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}

/* ---------- Leitung ---------- */
.headrow { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.headrow h1 { margin-bottom: .25rem; }
.headrow p { margin: 0; }
.toolbar { display: flex; gap: .5rem; flex-wrap: wrap; }
.card--flush { padding: .25rem .75rem; overflow-x: auto; }
.linkbox { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; padding: .7rem 1rem; }
.copy { user-select: all; background: var(--soft); padding: .15rem .45rem; border-radius: 6px; font-size: .9rem; word-break: break-all; }
.tabs { display: flex; gap: 1.25rem; margin: 0 0 .75rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { text-decoration: none; padding: .55rem 0; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--muted); white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.alert-text { color: var(--err); font-weight: 600; }

.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 .75rem; }
.filters input[type=search] { flex: 1 1 14rem; width: auto; }
.inline-edit { display: flex; align-items: center; gap: .4rem; flex: 1; min-width: 0; }
.inline-edit input[type=text] { flex: 1; min-width: 0; width: auto; }
.people li:has(.inline-edit) { align-items: center; }
.filters select { width: auto; }
.filters__checks { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; flex-basis: 100%; }
.filters__checks .check { margin: 0; align-items: center; font-size: .95rem; }
.filters__checks .check input { margin-top: 0; }
.filters.is-auto [data-autosubmit-button] { display: none; }

.viewswitch { display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: baseline; }
.viewswitch a { text-decoration: none; }
.viewswitch a.is-active { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Teilnehmerliste nach Konto gruppiert: Kopfzeile je Konto */
.grouprow td { background: var(--soft); border-top: 2px solid var(--line-strong); }
.table--grouped tbody:first-of-type .grouprow td { border-top: 0; }
.grouprow .tag { margin: 0 .35rem; }
.grouprow__contact { display: block; margin-top: .15rem; }

.familylist { display: grid; gap: .5rem; }
.familylist > * { min-width: 0; }
.family { margin: 0; padding: .8rem 1rem; }
.family summary { cursor: pointer; display: flex; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; align-items: baseline; }
.family__body { margin-top: .75rem; border-top: 1px solid var(--line); padding-top: .75rem; }
.family__body .table { display: block; overflow-x: auto; }

.pager { display: flex; justify-content: space-between; align-items: center; margin: 1rem 0; }

/* Teilnehmerliste: auf dem Handy als Karten */
@media (max-width: 760px) {
    .table--people thead { display: none; }
    .table--people, .table--people tbody, .table--people tr, .table--people td { display: block; width: 100%; }
    .table--people tr { border-bottom: 1px solid var(--line); padding: .6rem 0; }
    .table--people tr:last-child { border-bottom: 0; }
    .table--people td { border: 0; padding: .15rem 0; text-align: left; }
    .table--people td:empty { display: none; }
    .table--people tr.grouprow { padding: 0; border-bottom: 0; }
    .table--people .grouprow td { padding: .55rem .75rem; margin: .5rem 0 0; border-radius: var(--radius-s); }
    .table--people td[data-label="Alter"]::before { content: "Alter: "; color: var(--muted); }
    .table--people td.right, .table--people td.num { text-align: left; }
    .table--people td[data-label="Abgemeldet"]::before { content: "Abgemeldet: "; color: var(--muted); }
    .table--people td[data-label="Anwesend"]::before { content: "Anwesend: "; color: var(--muted); }
    .table--people td[data-label="Abgemeldet"], .table--people td[data-label="Anwesend"] { display: inline-block; width: auto; margin-right: 1rem; }
}

/* ---------- Einrichtung ---------- */
.grid-port { display: grid; grid-template-columns: 1fr 6.5rem; gap: 0 1rem; }
.checks { list-style: none; padding: 0; margin: 0 0 .5rem; }
.checks li { padding: .15rem 0; }
.checks li.ok { color: var(--ok); }

/* ---------- Proben, Konten ---------- */
.grid3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0 1rem; }
@media (max-width: 520px) { .grid3 { grid-template-columns: 1fr 1fr; } .grid3 > :first-child { grid-column: 1 / -1; } }
.tabs--section { margin-bottom: 1.25rem; gap: .25rem 1.25rem; }
.card__pad { padding: .75rem .25rem .25rem; margin: 0; }
details.card--flush > summary { cursor: pointer; list-style-position: inside; }
.headrow--tight { margin-bottom: .5rem; align-items: center; }
.headrow--tight h2 { margin: 0; }
.pick--compact { gap: .35rem; }
.pick--compact label { padding: .45rem .7rem; min-height: 44px; }
.pick .self-extra { margin: .4rem 0 0 2.6rem; display: none; }
.pick li:has(input[name="self"]:checked) .self-extra { display: block; }
.self-extra { display: none; margin: -.5rem 0 1rem 1.9rem; max-width: 16rem; }
.check:has(input[name="self"]:checked) + .self-extra { display: block; }
.is-cancelled strong, tr.is-cancelled td:first-child a { text-decoration: line-through; text-decoration-color: var(--err); }

.rehearsal { display: flex; gap: .9rem; align-items: flex-start; }
.rehearsal > .date { margin-top: .1rem; }
.rehearsal__body { flex: 1; min-width: 0; }
.rehearsal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.rehearsal__head h2 { margin-bottom: .1rem; font-size: 1.05rem; }
.rehearsal__head p { margin: 0; }
.rehearsal .regs { margin: .6rem 0 0; border-top: 1px solid var(--line); padding-top: .25rem; }
.rehearsal .regs li { align-items: flex-start; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding: .5rem 0; }
.rehearsal .regs li:last-child { border-bottom: 0; padding-bottom: 0; }
.excuse { text-align: right; }
.excuse > summary { list-style: none; cursor: pointer; display: inline; }
.excuse > summary::-webkit-details-marker { display: none; }
.excuse[open] { flex-basis: 100%; text-align: left; background: var(--soft); border-radius: var(--radius-s); padding: .7rem .8rem; }
.excuse[open] > summary { display: none; }
.excuse form .field { margin-bottom: .5rem; }
[data-series-fields] { display: none; }
.check:has([data-series-toggle]:checked) + [data-series-fields] { display: block; }

/* Login mit Google/Apple */
.social { display: grid; gap: .6rem; margin-bottom: 1rem; }
.social__btn {
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    min-height: 48px; padding: .7rem 1rem; border-radius: var(--radius-s);
    font-weight: 600; text-decoration: none; font-size: 1rem;
}
.social__btn--apple { background: #000; color: #fff; }
.social__btn--apple:hover { background: #222; color: #fff; }
.social__btn--google { background: #fff; color: #1f1f1f; border: 1px solid #747775; }
.social__btn--google:hover { background: #f4f4f6; color: #1f1f1f; }
.divider { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .9rem; margin: .4rem 0 1rem; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid currentColor; opacity: .35; }
.linked { list-style: none; padding: 0; margin: 0 0 .5rem; }
.linked li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }

/* ---------- Material ---------- */
.mlist { list-style: none; padding: 0; margin: 0; }
.mrow { display: flex; align-items: center; gap: .7rem; padding: .45rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mlist .mrow:last-child { border-bottom: 0; }
.mrow__icon {
    flex: none; display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: var(--radius-s);
    background: var(--soft); color: var(--ink);
}
.mrow__icon svg, .mrow__btn svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mrow--audio .mrow__icon, .mrow--video .mrow__icon { background: var(--ink); color: #fff; }
.mrow--audio .mrow__icon svg, .mrow--video .mrow__icon svg { fill: currentColor; stroke-width: 1; }
.mrow.is-playing .mrow__icon { background: var(--sun); color: var(--ink); }
.mrow--link .mrow__icon { background: var(--ok-soft); color: var(--ok); }
.mrow__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mrow__title { font-weight: 600; overflow-wrap: anywhere; }
a.mrow__title { text-decoration: none; }
a.mrow__title:hover { text-decoration: underline; }
.mrow__meta { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow__actions { flex: none; display: flex; gap: .15rem; }
.mrow__btn { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: var(--radius-s); color: var(--muted); }
.mrow__btn:hover { background: var(--soft); color: var(--ink); }
.mrow__player { flex-basis: 100%; }
.mrow__player audio, .mrow__player video { display: block; width: 100%; }
.mrow__player video { max-height: 60vh; border-radius: var(--radius-s); background: #000; }
.msection { border-top: 1px solid var(--line); }
.mlist + .msection, .msection:first-of-type { margin-top: .25rem; }
.msection > summary { cursor: pointer; padding: .7rem 0; font-weight: 600; display: flex; align-items: center; gap: .5rem; list-style: none; }
.msection > summary::-webkit-details-marker { display: none; }
.msection > summary::before { content: ""; width: .45rem; height: .45rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; margin: 0 .2rem; }
.msection[open] > summary::before { transform: rotate(45deg); }
.msection__count { font-weight: 400; font-size: .85rem; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 0 .5rem; }
.msection > .mlist { margin-bottom: .5rem; }
.mtools { display: flex; flex-direction: column; gap: .5rem; margin: 0 0 .5rem; }
.mchips { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .1rem; }
.mchip {
    font: inherit; font-size: .9rem; white-space: nowrap; cursor: pointer; min-height: 36px;
    padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
}
.mchip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.mchips--wrap { flex-wrap: wrap; overflow: visible; }
.setnav { margin: 0 0 1rem; }
.setnav[hidden], [data-section-panel][hidden], [data-section-save][hidden] { display: none !important; }
.card--internal { border-left: 3px solid var(--ink); }
.material-form input[type=file] { width: 100%; font: inherit; padding: .6rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-s); background: var(--soft); }
.material-form .kind-link, .material-form:has(input[name=kind][value=link]:checked) .kind-file { display: none; }
.material-form:has(input[name=kind][value=link]:checked) .kind-link { display: block; }
.material-form:has(input[name=visibility][value=lead]:checked) .notify-check { display: none; }
.mbrowser [hidden] { display: none !important; }

/* Proben: Kalender-Abo und Erinnerung */
fieldset.plain { border: 0; padding: 0; margin: 0 0 .5rem; min-width: 0; }
fieldset.plain > legend { padding: 0; margin-bottom: .4rem; }
form:has([data-remind-all]:checked) [data-remind-projects] { display: none; }

/* Foto-/Video-Einwilligung je Person */
.consent { border: 1px solid var(--line, #e2e0d8); border-radius: var(--radius-s); padding: .6rem .9rem .4rem; margin: .5rem 0 1rem; min-width: 0; }
.consent > legend { font-weight: 700; padding: 0 .3rem; margin-left: -.3rem; }
.consent .check { margin-bottom: .6rem; }
.consent__label { font-weight: 600; margin: .4rem 0 .3rem; }
.consent__channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); column-gap: 1rem; }
.consent__minor { border-top: 1px solid var(--line, #e2e0d8); padding-top: .6rem; margin-top: .2rem; }
.person-fields:has(input[type=radio][value=adult]:checked) .consent__minor:not(:has(.error)) { display: none; }
.consent__details { margin: .2rem 0 .6rem; }
.consent__details summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.consent__details ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.consent__details li { margin-bottom: .3rem; }
.mtags { display: flex; flex-wrap: wrap; gap: .25rem; }

/* Leitung → Einstellungen */
.statuslist { list-style: none; margin: 0; padding: 0; }
.statuslist li { display: flex; gap: .75rem; align-items: flex-start; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.statuslist li:last-child { border-bottom: 0; }
.statuslist .tag { flex: none; min-width: 5.5rem; text-align: center; }
.check--small { margin: .4rem 0 0; font-size: .9rem; }
.check--small input { width: 1rem; height: 1rem; }
