/* ============================================================================
 * SV Lengau Dashboard — Klickdummy / Designvorschlag
 * ----------------------------------------------------------------------------
 * Farben und Schrift stammen von sportverein-lengau.at: Vereinsrot, Anthrazit
 * des News-Balkens, Cabin Condensed. Fliesstext und Formulare laufen in der
 * normal breiten Cabin (gleiche Familie), Ueberschriften, Navigation und Zahlen
 * in der schmalen.
 * Aufbau wie in den anderen Projekten: Tokens, Elements, Components, Helpers.
 * Natives CSS-Nesting, kein Build.
 * ========================================================================== */

@font-face { font-family:'Cabin'; src:url('fonts/cabin-var.woff2') format('woff2'); font-weight:400 700; font-display:swap; }
@font-face { font-family:'Cabin Condensed'; src:url('fonts/cabin-condensed-400.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:'Cabin Condensed'; src:url('fonts/cabin-condensed-500.woff2') format('woff2'); font-weight:500; font-display:swap; }
@font-face { font-family:'Cabin Condensed'; src:url('fonts/cabin-condensed-600.woff2') format('woff2'); font-weight:600; font-display:swap; }
@font-face { font-family:'Cabin Condensed'; src:url('fonts/cabin-condensed-700.woff2') format('woff2'); font-weight:700; font-display:swap; }

/* ========================= Tokens ======================================== */
:root {
  --rot:#CB0000; --rot-tief:#A30000;
  --kohle:#282828; --kohle-2:#363636; --kohle-linie:#454545;
  --papier:#F7F7F7; --flaeche:#FFFFFF; --flaeche-2:#F1F1EF;
  --linie:#E2E2DF; --linie-stark:#C9C9C5;
  --text:#282828; --leise:#6B6B6B;
  --rot-hauch:color-mix(in srgb, var(--rot) 7%, var(--flaeche));

  /* Status: Signalfarben. Rot bleibt der Marke und echten Fehlern vorbehalten,
     deshalb ist "abgesagt" grau durchgestrichen und nicht rot. */
  --st-ok:#1E7A46; --st-warte:#A86200; --st-aus:#7C7C7C; --st-voll:#282828;

  --schmal:'Cabin Condensed','Arial Narrow',sans-serif;
  --normal:'Cabin','Segoe UI',system-ui,sans-serif;
  --r-feld:6px; --r-karte:10px;
  --dummy-h:44px; --seite-b:248px;
}

/* ========================= Elements ====================================== */
*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html { height:100%; }
body {
  min-height:100%; background:var(--papier); color:var(--text);
  font-family:var(--normal); font-size:16px; line-height:1.5;
  padding-top:var(--dummy-h);
}
h1, h2, h3 { font-family:var(--schmal); line-height:1.15; text-wrap:balance; }
h1 { font-size:34px; font-weight:600; letter-spacing:-.005em; }
h2 { font-size:22px; font-weight:600; }
h3 { font-size:18px; font-weight:600; }
p { max-width:68ch; }
a { color:var(--rot); text-underline-offset:3px; }
a:hover { color:var(--rot-tief); }

label { display:block; font-size:14px; font-weight:600; margin-bottom:5px; }
input, select, textarea {
  font:inherit; color:var(--text); width:100%;
  background:var(--flaeche); border:1px solid var(--linie-stark); border-radius:var(--r-feld);
  padding:9px 11px; min-height:42px;
}
textarea { min-height:120px; resize:vertical; line-height:1.5; }
input[type=checkbox] { width:18px; height:18px; min-height:0; padding:0; accent-color:var(--kohle); flex:none; }
input[type=color] { padding:3px; width:56px; }
input:disabled, select:disabled, textarea:disabled { background:var(--flaeche-2); color:var(--leise); }
:is(input, select, textarea, button, a, [tabindex]):focus-visible { outline:2px solid var(--kohle); outline-offset:2px; }

button { font:inherit; cursor:pointer; }

table { width:100%; border-collapse:collapse; font-size:15px; }
th {
  text-align:left; font-family:var(--schmal); font-weight:600; font-size:15px; color:var(--leise);
  padding:10px 12px; border-bottom:1px solid var(--linie-stark); white-space:nowrap;
}
td { padding:11px 12px; border-bottom:1px solid var(--linie); vertical-align:middle; }
tr:last-child td { border-bottom:0; }
tbody tr.klick { cursor:pointer; }
tbody tr.klick:hover { background:var(--rot-hauch); }

/* ========================= Components ==================================== */

/* --- Knoepfe: genau einer je Ansicht ist rot --- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:42px; padding:8px 16px; border-radius:var(--r-feld);
  border:1px solid var(--linie-stark); background:var(--flaeche); color:var(--text);
  font-weight:600; text-decoration:none; white-space:nowrap;
  &:hover { border-color:var(--kohle); color:var(--text); }
  &:active { transform:translateY(1px); }
  &[disabled] { opacity:.45; cursor:not-allowed; }
  & svg { width:18px; height:18px; flex:none; }
}
.btn-haupt { background:var(--rot); border-color:var(--rot); color:#fff;
  &:hover { background:var(--rot-tief); border-color:var(--rot-tief); color:#fff; } }
.btn-dunkel { background:var(--kohle); border-color:var(--kohle); color:#fff;
  &:hover { background:#000; color:#fff; } }
.btn-klein { min-height:34px; padding:4px 11px; font-size:14px; }
.btn-text { border-color:transparent; background:none; padding-inline:6px; color:var(--leise);
  &:hover { border-color:transparent; color:var(--text); text-decoration:underline; } }

.karte { background:var(--flaeche); border:1px solid var(--linie); border-radius:var(--r-karte); padding:22px; }
.karte-flach { padding:0; overflow:hidden; }
.karte > h2 { margin-bottom:14px; }
.karten-kopf { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 20px; border-bottom:1px solid var(--linie);
  & h2 { margin:0; } }
.tabelle-scroll { overflow-x:auto; }

.pille {
  display:inline-flex; align-items:center; gap:6px; white-space:nowrap;
  font-family:var(--schmal); font-weight:600; font-size:14px; line-height:1;
  padding:5px 9px; border-radius:99px; background:var(--flaeche-2); color:var(--text);
  &::before { content:''; width:7px; height:7px; border-radius:50%; background:currentColor; }
}
.pille-ok { color:var(--st-ok); background:color-mix(in srgb, var(--st-ok) 10%, #fff); }
.pille-warte { color:var(--st-warte); background:color-mix(in srgb, var(--st-warte) 12%, #fff); }
.pille-aus { color:var(--st-aus); }
.pille-voll { color:#fff; background:var(--kohle); &::before { display:none; } }
.pille-gruppe { background:none; border:1px solid var(--linie-stark); color:var(--leise); &::before { display:none; } }

/* --- Datumskachel als Startnummer: das eine Erkennungszeichen ---
   Der SV Lengau ist ein Laufverein. Jeder Termin traegt sein Datum wie eine
   Startnummer: Streifen oben, grosse schmale Ziffern, vier Loecher fuer die
   Sicherheitsnadeln. Sonst bleibt die Oberflaeche ruhig. */
.nr {
  --loch:#CFCFCB;
  position:relative; flex:none; width:50px; min-height:56px;
  display:flex; flex-direction:column; align-items:center;
  background:#fff; border:1px solid var(--kohle); border-radius:4px; overflow:hidden;
  font-family:var(--schmal); color:var(--kohle); text-align:center;
  & .nr-tag { width:100%; background:var(--rot); color:#fff; font-size:11.5px; font-weight:600; line-height:1; padding:3px 0 3px; }
  & .nr-zahl { font-size:23px; font-weight:600; line-height:1; margin-top:5px; font-variant-numeric:tabular-nums; letter-spacing:-.01em; }
  & .nr-monat { font-size:12px; font-weight:500; line-height:1; margin:2px 0 6px; }
  &::before, &::after {
    content:''; position:absolute; left:3px; right:3px; height:3px; pointer-events:none;
    background:
      radial-gradient(circle at 1.5px 1.5px, var(--loch) 1.3px, transparent 1.7px) left / 3px 3px no-repeat,
      radial-gradient(circle at 1.5px 1.5px, var(--loch) 1.3px, transparent 1.7px) right / 3px 3px no-repeat;
  }
  &::before { top:21px; }
  &::after { bottom:3px; }
  &.nr-lang .nr-zahl { font-size:17px; margin-top:8px; }
  &.nr-aus { border-color:var(--st-aus); color:var(--st-aus); & .nr-tag { background:var(--st-aus); } & .nr-zahl { text-decoration:line-through; text-decoration-thickness:2px; } }
}

/* --- Belegung --- */
.plaetze { font-size:14px; color:var(--leise); min-width:150px;
  & b { color:var(--text); font-weight:600; }
  & .balken { height:5px; border-radius:3px; background:var(--flaeche-2); margin-top:5px; overflow:hidden; }
  & .balken i { display:block; height:100%; background:var(--kohle); }
  &.voll .balken i { background:var(--rot); }
}

/* --- Terminzeile (Mitglieder, Verwaltung, Widget) --- */
.termin {
  display:grid; grid-template-columns:auto 1fr auto; gap:18px; align-items:center;
  padding:14px 20px; border-bottom:1px solid var(--linie); color:inherit; text-decoration:none;
  &:last-child { border-bottom:0; }
  & h3 { font-size:21px; }
  & .termin-zeit { color:var(--leise); font-size:15px; margin-top:2px; }
  & .termin-rechts { display:flex; align-items:center; gap:18px; }
}
a.termin:hover { background:var(--rot-hauch); color:inherit; }
.termin.abgesagt h3 { text-decoration:line-through; color:var(--leise); }

/* --- Formulare --- */
.felder { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px 18px; }
.feld-breit { grid-column:1 / -1; }
.feld .hilfe { font-size:14px; color:var(--leise); margin-top:5px; }
.pflicht::after { content:' *'; color:var(--rot); }
.haken { display:flex; gap:10px; align-items:flex-start; font-weight:400; font-size:15px; margin:0;
  & input { margin-top:2px; } }
.hinweis { border-left:3px solid var(--kohle); background:var(--flaeche-2); padding:12px 14px; border-radius:0 var(--r-feld) var(--r-feld) 0; font-size:15px; }
.fehler { margin:14px 20px 0; max-width:none; border-left:3px solid var(--rot); background:var(--rot-hauch); color:var(--rot-tief); font-weight:600; font-size:15px; padding:11px 14px; border-radius:0 var(--r-feld) var(--r-feld) 0; }
input[aria-invalid=true] { border-color:var(--rot); box-shadow:inset 0 0 0 1px var(--rot); }
.hinweis-warte { border-left-color:var(--st-warte); background:color-mix(in srgb, var(--st-warte) 8%, #fff); }

/* --- Personenauswahl beim Anmelden --- */
.person-zeile {
  display:grid; grid-template-columns:auto 1fr auto minmax(70px, auto); gap:12px; align-items:center;
  padding:12px 0; border-bottom:1px solid var(--linie); margin:0; font-size:16px; font-weight:400; cursor:pointer;
  &:has(input:disabled) { cursor:default; }
  &.summe { border-bottom:0; cursor:default; grid-template-columns:18px 1fr auto minmax(70px, auto); }
}
.person-zeile .ueber-zwei { grid-column:3 / 5; justify-self:end; }
.mt-klein { margin-top:8px; }

/* --- Definitionsliste fuer Eckdaten --- */
.eck { display:grid; grid-template-columns:max-content 1fr; gap:8px 20px; font-size:15px;
  & dt { color:var(--leise); }
  & dd { font-weight:600; } }

/* --- Preise je Altersgruppe --- */
.preise { display:flex; flex-wrap:wrap; gap:8px;
  & > span { border:1px solid var(--linie-stark); border-radius:var(--r-feld); padding:6px 11px; font-size:15px; background:var(--flaeche); }
  & b { font-family:var(--schmal); font-size:17px; margin-left:6px; }
  & small { display:block; font-size:13px; color:var(--leise); } }

/* --- Reiter --- */
.reiter { display:flex; gap:4px; border-bottom:1px solid var(--linie-stark); margin-bottom:20px;
  & a { padding:9px 14px; text-decoration:none; color:var(--leise); font-family:var(--schmal); font-size:18px; font-weight:600; border-bottom:3px solid transparent; margin-bottom:-1px; }
  & a.an { color:var(--text); border-bottom-color:var(--rot); } }

/* ========================= Panel-Shell =================================== */
.shell { display:grid; grid-template-columns:var(--seite-b) minmax(0, 1fr); min-height:calc(100vh - var(--dummy-h)); }
.seite {
  background:var(--kohle); color:#EAEAE9; display:flex; flex-direction:column;
  position:sticky; top:var(--dummy-h); height:calc(100vh - var(--dummy-h));
  & .seite-logo { background:var(--rot); padding:14px 18px 12px; display:block; line-height:0;
    & img { width:170px; height:auto; } }
  & nav { padding:26px 12px 12px; display:flex; flex-direction:column; gap:2px; overflow-y:auto; flex:1; }
  & nav a {
    display:flex; align-items:center; gap:12px; padding:9px 12px; border-radius:var(--r-feld);
    color:#D6D6D3; text-decoration:none; font-family:var(--schmal); font-size:19px; font-weight:500;
    border-left:3px solid transparent;
    & svg { width:19px; height:19px; flex:none; opacity:.8; }
    &:hover { background:var(--kohle-2); color:#fff; }
    &.an { background:var(--kohle-2); color:#fff; border-left-color:var(--rot); & svg { opacity:1; } }
    & .zahl { margin-left:auto; background:var(--rot); color:#fff; border-radius:99px; font-size:14px; font-weight:700; min-width:22px; padding:1px 6px; text-align:center; }
  }
  & .seite-fuss { border-top:1px solid var(--kohle-linie); padding:14px 16px 16px; font-size:14px;
    & .wer { font-weight:600; font-size:15px; color:#fff; }
    & .rolle { color:#A5A5A5; }
    & .fuss-knoepfe { display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; }
    & .btn { background:transparent; border-color:var(--kohle-linie); color:#EAEAE9; flex:1; }
    & .btn:hover { border-color:#fff; color:#fff; }
  }
}
.menue-knopf { display:none; }
.inhalt { padding:34px 40px 110px; min-width:0; max-width:1240px; }
.kopf { display:flex; align-items:flex-end; justify-content:space-between; gap:16px 24px; flex-wrap:wrap; margin-bottom:24px;
  & .kopf-text p { color:var(--leise); margin-top:6px; }
  & .kopf-knoepfe { display:flex; gap:10px; flex-wrap:wrap; } }
.zurueck { display:inline-flex; align-items:center; gap:6px; color:var(--leise); text-decoration:none; font-size:15px; margin-bottom:10px;
  & svg { width:16px; height:16px; }
  &:hover { color:var(--text); } }
.stapel { display:flex; flex-direction:column; gap:20px; }
.spalten { display:grid; grid-template-columns:minmax(0, 1.6fr) minmax(0, 1fr); gap:20px; align-items:start; }
.leiste { display:flex; gap:10px; flex-wrap:wrap; align-items:center;
  & input[type=search], & select { width:auto; min-width:200px; } }
.leer { padding:34px 20px; text-align:center; color:var(--leise); & p { margin-inline:auto; } }

/* --- Speicherleiste (wie Ranshofen): faehrt herein, sobald etwas geaendert ist --- */
.speichern {
  position:fixed; right:28px; bottom:24px; z-index:40;
  display:flex; align-items:center; gap:14px; padding:12px 14px 12px 18px;
  background:var(--kohle); color:#fff; border-radius:var(--r-karte);
  box-shadow:0 10px 30px rgb(0 0 0 / .25);
  visibility:hidden; transform:translateY(calc(100% + 48px)); transition:transform .25s ease, visibility 0s .25s;
  &.an { visibility:visible; transform:none; transition:transform .25s ease; }
  & .btn-text { color:#D6D6D3; &:hover { color:#fff; } }
}

/* --- Rueckmeldungen --- */
.toasts { position:fixed; top:calc(var(--dummy-h) + 16px); right:20px; z-index:60; display:flex; flex-direction:column; gap:8px; max-width:min(420px, calc(100vw - 40px)); }
.toast { background:var(--flaeche); border:1px solid var(--linie-stark); border-left:4px solid var(--st-ok); border-radius:var(--r-feld); padding:12px 16px; box-shadow:0 8px 24px rgb(0 0 0 / .12); font-size:15px; animation:toast-ein .2s ease;
  &.fehler { border-left-color:var(--rot); } }
@keyframes toast-ein { from { opacity:0; transform:translateY(-6px); } }

/* --- Dialog und Druckblatt --- */
.dialog-hinter { position:fixed; inset:0; z-index:50; background:rgb(20 20 20 / .55); display:grid; place-items:start center; padding:calc(var(--dummy-h) + 24px) 16px 24px; overflow-y:auto; }
.dialog { background:var(--flaeche); border-radius:var(--r-karte); width:min(560px, 100%); padding:24px;
  & h2 { margin-bottom:12px; }
  & .dialog-knoepfe { display:flex; justify-content:flex-end; gap:10px; margin-top:22px; flex-wrap:wrap; } }
.dialog-breit { width:min(860px, 100%); background:var(--flaeche-2); }
.blatt {
  background:#fff; border:1px solid var(--linie-stark); padding:44px 48px; font-size:14px; color:#000;
  aspect-ratio:210 / 297; box-shadow:0 4px 18px rgb(0 0 0 / .12);
  & .blatt-kopf { display:flex; justify-content:space-between; align-items:flex-start; border-bottom:2px solid #000; padding-bottom:14px; margin-bottom:22px; }
  & .blatt-kopf img { width:150px; background:var(--rot); padding:8px 10px 0; }
  & h2 { font-size:26px; }
  & table { font-size:13px; margin-top:16px; }
  & th { color:#000; border-bottom:1.5px solid #000; padding:6px 8px; }
  & td { padding:6px 8px; border-bottom:1px solid #ccc; }
  & .blatt-fuss { margin-top:36px; display:flex; justify-content:space-between; gap:40px; font-size:12px; color:#444; }
  & .linie { border-top:1px solid #000; padding-top:4px; min-width:200px; }
}

/* ========================= Oeffentliche Seiten =========================== */
.web-kopf { background:var(--rot); color:#fff;
  & .web-innen { max-width:1180px; margin:0 auto; padding:0 24px; display:flex; align-items:flex-end; justify-content:space-between; gap:24px; min-height:96px; }
  & img { width:262px; max-width:60vw; height:auto; transform:translateY(6px); display:block; }
  & nav { display:flex; gap:34px; padding-bottom:18px; flex-wrap:wrap; }
  & nav a { color:#fff; text-decoration:none; font-family:var(--schmal); font-size:18px; }
  & nav a.an { text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:6px; }
}
.web-band { background:var(--kohle); height:34px; }
.web-main { max-width:1180px; margin:0 auto; padding:44px 24px 80px;
  & > h1 { color:var(--rot); font-weight:400; font-size:44px; margin-bottom:10px; }
  & > p { color:#7A7A7A; font-family:var(--schmal); font-size:20px; line-height:1.6; margin-bottom:28px; } }
.web-notiz { margin-top:14px; font-size:14px; color:var(--leise); }

.tor { max-width:520px; margin:0 auto; padding:48px 20px 80px;
  & h1 { margin-bottom:8px; }
  & .tor-einleitung { color:var(--leise); margin-bottom:24px; }
  & .tor-fuss { margin-top:18px; font-size:15px; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; } }
.tor-breit { max-width:680px; }
.schritte { counter-reset:s; display:flex; flex-direction:column; gap:12px; margin:18px 0 4px; list-style:none;
  & li { counter-increment:s; display:grid; grid-template-columns:30px 1fr; gap:12px; align-items:start; }
  & li::before { content:counter(s); font-family:var(--schmal); font-weight:700; font-size:17px; width:30px; height:30px; border-radius:50%; border:1.5px solid var(--kohle); display:grid; place-items:center; }
  & li.fertig::before { background:var(--kohle); color:#fff; } }

/* ========================= Kalender-Widget =============================== */
/* Im echten Widget bringt widget.js diese Regeln selbst mit, mit Praefix. */
.w { --w-farbe:var(--rot); background:var(--flaeche); border:1px solid var(--linie); border-radius:var(--r-karte); display:grid; grid-template-columns:minmax(280px, 380px) minmax(0, 1fr); overflow:hidden;
  &.w-nur-liste { grid-template-columns:1fr; } }
.w-monat { padding:22px; border-right:1px solid var(--linie); background:var(--flaeche);
  & .w-nav { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
  & .w-nav h3 { font-size:22px; }
  & .w-nav button { width:38px; height:38px; border:1px solid var(--linie-stark); background:var(--flaeche); border-radius:var(--r-feld); display:grid; place-items:center; }
  & .w-nav button:hover { border-color:var(--kohle); }
  & .w-nav svg { width:18px; height:18px; }
  & .w-raster { display:grid; grid-template-columns:repeat(7, 1fr); gap:3px; text-align:center; }
  & .w-wt { font-family:var(--schmal); font-size:14px; color:var(--leise); padding:4px 0; }
  & .w-t { aspect-ratio:1; display:grid; place-items:center; border-radius:var(--r-feld); font-family:var(--schmal); font-size:17px; font-variant-numeric:tabular-nums; border:0; background:none; color:var(--text); }
  & .w-t.fremd { color:#C2C2BE; }
  & .w-t.heute { box-shadow:inset 0 0 0 1.5px var(--kohle); }
  & button.w-t { background:var(--w-farbe); color:#fff; font-weight:700; }
  & button.w-t:hover { filter:brightness(.88); }
  & button.w-t.gewaehlt { background:var(--kohle); }
  & .w-legende { margin-top:14px; font-size:14px; color:var(--leise); display:flex; align-items:center; gap:8px; }
  & .w-legende i { width:14px; height:14px; border-radius:3px; background:var(--w-farbe); }
}
.w-liste { min-width:0;
  & .w-kopf { padding:18px 20px 14px; border-bottom:1px solid var(--linie); display:flex; justify-content:space-between; align-items:baseline; gap:12px; flex-wrap:wrap; }
  & .w-kopf button { background:none; border:0; color:var(--w-farbe); text-decoration:underline; text-underline-offset:3px; font-size:15px; }
  & .w-eintrag { border-bottom:1px solid var(--linie); }
  & .w-eintrag:last-child { border-bottom:0; }
  & .w-zeile { display:grid; grid-template-columns:auto 1fr auto; gap:16px; align-items:center; width:100%; padding:14px 20px; background:none; border:0; text-align:left; color:inherit; }
  & .w-zeile:hover { background:color-mix(in srgb, var(--w-farbe) 6%, #fff); }
  & .w-zeile h4 { font-family:var(--schmal); font-size:20px; font-weight:600; line-height:1.2; }
  & .w-zeile .termin-zeit { color:var(--leise); font-size:15px; }
  & .w-zeile > svg { width:20px; height:20px; color:var(--leise); transition:transform .2s; }
  & .w-eintrag.offen .w-zeile > svg { transform:rotate(180deg); }
  & .w-detail { padding:2px 20px 20px 86px; display:flex; flex-direction:column; gap:14px; font-size:15px; }
  & .w-detail .knoepfe { display:flex; gap:10px; flex-wrap:wrap; }
  & .w-detail .btn-haupt { background:var(--w-farbe); border-color:var(--w-farbe); }
  & .nr .nr-tag { background:var(--w-farbe); }
  & .nr.nr-aus .nr-tag { background:var(--st-aus); }
}

/* --- Einbindecode --- */
.code { background:var(--kohle); color:#F1F1EF; border-radius:var(--r-feld); padding:16px 18px; font-family:ui-monospace,'Cascadia Mono',Menlo,monospace; font-size:14px; line-height:1.6; overflow-x:auto; white-space:pre; }

/* ========================= Klickdummy-Leiste ============================= */
/* Gehoert nicht zum Entwurf. Bewusst in einer Farbe, die im Entwurf nicht vorkommt. */
.dummy {
  position:fixed; inset:0 0 auto 0; height:var(--dummy-h); z-index:100;
  background:#14324A; color:#DCE8F1; display:flex; align-items:center; gap:14px; padding:0 14px;
  font-family:system-ui,sans-serif; font-size:13px; overflow-x:auto; white-space:nowrap;
  & strong { color:#fff; font-weight:600; }
  & a { color:#DCE8F1; text-decoration:none; padding:5px 10px; border-radius:5px; }
  & a:hover { background:#1F4766; color:#fff; }
  & a.an { background:#DCE8F1; color:#14324A; font-weight:600; }
  & .dummy-rechts { margin-left:auto; }
}
.dummy-notiz { margin-top:22px; border:1px dashed #6E93AF; background:#EEF4F8; color:#14324A; border-radius:var(--r-feld); padding:10px 14px; font-family:system-ui,sans-serif; font-size:13px; line-height:1.5; }

/* ========================= Helpers ======================================= */
.leise { color:var(--leise); }
.klein { font-size:14px; }
.rechts { text-align:right; }
.zeilen-knoepfe { display:flex; gap:8px; justify-content:flex-end; align-items:center; }
.zahl-sp { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.fett { font-weight:600; }
.nowrap { white-space:nowrap; }
.mt { margin-top:16px; }
.reihe { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.zwischen { justify-content:space-between; }
[hidden] { display:none !important; }

/* ========================= Schmal ======================================== */
@media (max-width: 900px) {
  .shell { grid-template-columns:1fr; }
  .seite { position:sticky; top:var(--dummy-h); height:auto; z-index:30; flex-direction:row; flex-wrap:wrap; align-items:center;
    & .seite-logo { padding:8px 14px; flex:1; }
    & .seite-logo img { width:120px; }
    & nav, & .seite-fuss { display:none; flex-basis:100%; }
    &.offen nav, &.offen .seite-fuss { display:flex; }
    &.offen .seite-fuss { display:block; }
    & nav { padding-top:12px; max-height:60vh; }
  }
  .menue-knopf { display:grid; place-items:center; width:44px; height:44px; margin-right:8px; background:none; border:0; color:#fff; align-self:stretch; height:auto; background:var(--rot); margin:0; padding:0 14px;
    & svg { width:24px; height:24px; } }
  .inhalt { padding:24px 16px 110px; }
  h1 { font-size:28px; }
  .spalten, .felder { grid-template-columns:1fr; }
  .termin { grid-template-columns:auto 1fr; }
  .termin .termin-rechts { grid-column:1 / -1; justify-content:space-between; }
  .w { grid-template-columns:1fr; }
  .w-monat { border-right:0; border-bottom:1px solid var(--linie); }
  .w-liste .w-detail { padding-left:20px; }
  .web-kopf .web-innen { flex-direction:column; align-items:flex-start; gap:18px; padding-top:12px; }
  .web-kopf img { transform:none; }
  .web-main > h1 { font-size:34px; }
  .speichern { left:16px; right:16px; bottom:16px; justify-content:space-between; }
  .blatt { padding:22px 20px; aspect-ratio:auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation:none !important; transition:none !important; }
}

/* Drucken: nur das Blatt */
@media print {
  body { padding:0; background:#fff; }
  body > *:not(#dialog) { display:none !important; }
  .dialog-hinter { position:static; padding:0; background:none; display:block; }
  .dialog { padding:0; width:auto; background:none; }
  .dialog > *:not(.blatt) { display:none !important; }
  .blatt { border:0; box-shadow:none; aspect-ratio:auto; padding:0; }
}
