/* ==========================================================================
   Festwoche 150 Jahre Friedenskirche – Gestaltung
   nach dem Corporate Design der Ev. Kirchengemeinde Ehrenfeld (wie Predigtplan)

   Primärfarbe  Rot      #d50032
   Sekundär     Türkis   #00b2a9 · Olive #bba600 · Purpur #7474c1 · Blau #006ba6
   Hausschrift  Futura PT (lizenzpflichtig) – ersatzweise Jost*
   Stilelement  hinterlegte Headlines (.hl)

   Aufbau: 1 Grundlagen · 2 Bausteine · 3 Mitmach-Seite · 4 Verwaltung · 5 Aushang/Druck
   ========================================================================== */

@import url("schriften/jost.css");

/* ------------------------------------------------------------ 1 Grundlagen */
:root {
  color-scheme: light;
  --rot: #d50032;
  --rot-dunkel: #a80028;
  --rot-10: #fbe6eb;
  --rot-20: #f7cdd6;
  --tuerkis: #00b2a9;
  --tuerkis-dunkel: #00857e;
  --tuerkis-15: #dff4f2;
  --olive: #bba600;
  --olive-20: #f4f0d1;
  --purpur: #7474c1;
  --purpur-15: #e9e9f6;
  --blau: #006ba6;
  --blau-15: #dfebf3;

  --papier: #faf9f8;
  --flaeche: #ffffff;
  --flaeche-2: #f4f2f0;
  --linie: #e3dfdb;
  --linie-stark: #c6c0b9;
  --text: #1a1a1a;
  --leise: #6b6560;

  --radius: 12px;
  --radius-s: 7px;
  --schatten: 0 1px 2px rgba(26, 26, 26, .06), 0 6px 20px rgba(26, 26, 26, .06);
  --schrift: "Futura PT", "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }


body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0 0 .5rem; font-weight: 600; line-height: 1.2; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .8rem; }
a { color: var(--rot); }
small, .klein { font-size: .85rem; }
.leise { color: var(--leise); }
.rot { color: var(--rot); }
.nowrap { white-space: nowrap; }

/* Hinterlegte Headline – das Stilelement aus dem Styleguide */
.hl {
  display: inline;
  background: var(--rot);
  color: #fff;
  padding: .05em .35em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ------------------------------------------------------------ 2 Bausteine */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 44px; padding: .55em 1.2em;
  border: 2px solid var(--rot); border-radius: 999px;
  background: var(--rot); color: #fff;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .1s;
}
.knopf:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); }
.knopf:active { transform: scale(.97); }
.knopf:focus-visible, .zeit:focus-visible, .tagchip:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
.knopf-klein { min-height: 36px; padding: .3em .9em; font-size: .9rem; }
.knopf-gross { width: 100%; min-height: 54px; font-size: 1.1rem; }
.knopf-hell { background: #fff; color: var(--rot); }
.knopf-hell:hover { background: var(--rot-10); color: var(--rot-dunkel); }
.knopf-leise { background: transparent; color: var(--leise); border-color: transparent; }
.knopf-leise:hover { background: var(--flaeche-2); color: var(--text); border-color: transparent; }
.knopf-gefahr { background: #fff; color: var(--rot-dunkel); border-color: var(--rot-dunkel); }
.knopf-gefahr:hover { background: var(--rot-dunkel); color: #fff; }
.knopf[disabled] { opacity: .6; cursor: wait; }

.link-knopf {
  background: none; border: 0; padding: 0; color: var(--rot); font: inherit;
  text-decoration: underline; cursor: pointer;
}
summary.link-knopf { display: inline; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary { cursor: pointer; list-style: none; }

.feld { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .8rem; border: 0; padding: 0; }
.feld > span, .feld > legend { font-weight: 600; font-size: .92rem; }
.feld small { font-weight: 400; color: var(--leise); }
input, select, textarea {
  font: inherit; font-size: 16px; /* 16px: sonst zoomt das iPhone beim Antippen */
  padding: .6em .75em; border: 1.5px solid var(--linie-stark); border-radius: var(--radius-s);
  background: #fff; color: var(--text); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px var(--blau-15); }
.feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; }
@media (max-width: 520px) { .feld-paar { grid-template-columns: 1fr; } }
.haken { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .6rem; cursor: pointer; }
.haken input { width: auto; margin-top: .3em; flex: none; }

.meldung { background: var(--tuerkis-15); color: #00534f; border-radius: var(--radius-s); padding: .7rem 1rem; }
.fehler { background: var(--rot-10); color: var(--rot-dunkel); border-radius: var(--radius-s); padding: .7rem 1rem; font-weight: 600; }
.warnung { background: var(--olive-20); color: #5c5200; border-radius: var(--radius-s); padding: .7rem 1rem; margin: .8rem 0; font-size: .93rem; }

.marke { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .95rem; margin: 0 0 1.2rem; }
.marke-zeichen { flex: none; }

.fuss { text-align: center; color: var(--leise); font-size: .85rem; padding: 2.5rem 1rem 3rem; }
.fuss b { color: var(--rot); }

/* ------------------------------------------------------------ 3 Mitmach-Seite */
/* Ein geführter Ablauf: immer nur eine Frage, große Karten zum Antippen. */

.wizard { max-width: 560px; margin: 0 auto; padding: 0 1rem; min-height: 70vh; }

/* Kopfzeile mit Zurück und Fortschritt */
.wkopf {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .8rem;
  margin: 0 -1rem; padding: .7rem 1rem; background: rgba(250, 249, 248, .95);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.zurueck {
  flex: none; border: 0; background: none; font: inherit; font-weight: 600; color: var(--rot);
  padding: .4rem .2rem; cursor: pointer; min-height: 44px;
}
.fortschritt-punkte { flex: 1; display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.fortschritt-punkte li {
  flex: 1; font-size: .72rem; font-weight: 600; color: var(--leise); text-align: center;
  padding-top: .45rem; border-top: 4px solid var(--linie); border-radius: 2px;
}
.fortschritt-punkte li.erledigt { border-color: var(--rot); color: var(--rot); }
.fortschritt-punkte li.jetzt { border-color: var(--rot); color: var(--text); }

.schritt { padding: 1rem 0 1.5rem; animation: hereinkommen .25s ease-out; }
@keyframes hereinkommen { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .schritt { animation: none; } }

.frage { font-size: 1.75rem; line-height: 1.25; margin: .4rem 0 .5rem; outline: none; }
.frage-ober { color: var(--rot); font-weight: 600; margin: .4rem 0 0; }
.frage-unter { color: var(--leise); margin-bottom: 1.2rem; }

/* Start */
.schritt-start { position: relative; padding-top: 1.6rem; }
.start-konfetti {
  position: absolute; inset: 0 -1rem auto; height: 260px; pointer-events: none; z-index: -1;
  background:
    radial-gradient(circle, var(--tuerkis) 0 6px, transparent 7px) 88% 20% / 14px 14px no-repeat,
    radial-gradient(circle, var(--olive) 0 10px, transparent 11px) 96% 58% / 22px 22px no-repeat,
    radial-gradient(circle, var(--purpur) 0 5px, transparent 6px) 76% 46% / 12px 12px no-repeat,
    radial-gradient(circle, var(--blau) 0 7px, transparent 8px) 90% 90% / 16px 16px no-repeat,
    radial-gradient(circle, var(--rot-20) 0 22px, transparent 23px) 104% 4% / 46px 46px no-repeat;
}
.start-ueber { font-weight: 600; color: var(--leise); margin-bottom: .7rem; }
.start-titel { font-size: clamp(2.4rem, 11vw, 3.4rem); line-height: 1.25; margin-bottom: 1.1rem; }
.start-text { font-size: 1.12rem; margin-bottom: 1.6rem; }
.start-klein { text-align: center; color: var(--leise); font-size: .92rem; margin-top: .6rem; }
.start-gemeinsam { text-align: center; margin-top: 1.6rem; font-size: 1.05rem; }
.start-gemeinsam b { color: var(--rot); font-size: 1.3rem; }
.wieder { background: var(--tuerkis-15); color: #00534f; border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: 1.2rem; }
.wieder p { margin-bottom: .4rem; }
.link-stark { font-weight: 600; color: #00534f; }
.hinweis-kasten { background: var(--olive-20); color: #5c5200; border-radius: var(--radius); padding: 1rem; font-weight: 600; }

.knopf-riesig { width: 100%; min-height: 60px; font-size: 1.2rem; margin-top: .4rem; }
.knopf-breit { width: 100%; margin-top: .7rem; }

/* Karten zum Antippen */
.karten { display: flex; flex-direction: column; gap: .65rem; }
.karte {
  display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left;
  font: inherit; color: var(--text); background: #fff; cursor: pointer;
  border: 2px solid var(--linie); border-radius: var(--radius); padding: .95rem 1rem;
  box-shadow: var(--schatten); transition: border-color .15s, transform .1s;
}
.karte:hover { border-color: var(--rot); }
.karte:active { transform: scale(.985); }
.karte:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
.karte-text { flex: 1; display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.karte-ober { font-size: .85rem; font-weight: 600; color: var(--rot); }
.karte-titel { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.karte-unter { font-size: .92rem; color: var(--leise); }
.karte-status { font-size: .85rem; font-weight: 600; margin-top: .2rem; }
.karte-extra { font-size: .85rem; color: var(--leise); }
.ks-offen { color: var(--rot); }
.ks-gut { color: var(--tuerkis-dunkel); }
.ks-voll { color: var(--leise); }
.karte-pfeil { flex: none; font-size: 1.6rem; color: var(--rot); line-height: 1; }
.karte-gewaehlt { border-color: var(--tuerkis); background: var(--tuerkis-15); }
.karte-gewaehlt .karte-pfeil { color: var(--tuerkis-dunkel); font-size: 1.3rem; }
.karte-aus { cursor: default; box-shadow: none; background: var(--flaeche-2); border-color: var(--flaeche-2); }
.karte-aus:hover { border-color: var(--flaeche-2); }
.karte-aus:active { transform: none; }
.karte-aus .karte-pfeil { visibility: hidden; }
.karte-aus.karte-gewaehlt { background: var(--tuerkis-15); border-color: var(--tuerkis); }
.karte-aus.karte-gewaehlt .karte-pfeil { visibility: visible; }

/* Dein Plan */
.plan-liste { list-style: none; padding: 0; margin: 1rem 0 1.2rem; }
.plan-liste li {
  display: flex; gap: .85rem; align-items: center; background: #fff; border: 1px solid var(--linie);
  border-radius: var(--radius); padding: .75rem .85rem; margin-bottom: .55rem; box-shadow: var(--schatten);
}
.plan-datum, .meine-datum {
  flex: none; width: 3.4rem; text-align: center; border-radius: var(--radius-s); background: var(--rot); color: #fff;
  padding: .3rem 0; line-height: 1.15;
}
.plan-datum b, .meine-datum b { display: block; font-size: 1.1rem; }
.plan-datum span, .meine-datum span { font-size: .78rem; }
.plan-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.plan-text span { color: var(--leise); font-size: .92rem; }
.weg {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--flaeche-2);
  color: var(--rot); font-size: 1.3rem; line-height: 1; cursor: pointer;
}

/* Name */
.empfohlen { font-size: .7rem; font-weight: 600; background: var(--tuerkis-15); color: #00534f; border-radius: 999px; padding: .05rem .45rem; margin-left: .35rem; }
.kontakt-tipp { font-size: .88rem; color: #00534f; background: var(--tuerkis-15); border-radius: var(--radius-s); padding: .5rem .7rem; margin: .5rem 0 0; }
.kontakt-tipp-leise { color: var(--leise); background: var(--flaeche-2); }
.danke-post { background: var(--tuerkis-15); color: #00534f; border-radius: var(--radius); padding: .8rem 1rem; text-align: left; }
.aendern-kasten { text-align: left; background: #fff; border: 2px solid var(--olive); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 1rem 0; }
.aendern-kasten h2 { font-size: 1.15rem; }
.aendern-kasten ol { padding-left: 1.2rem; margin: .4rem 0 1rem; }
.aendern-kasten li { margin-bottom: .4rem; }
.email-nachtragen .feld > span:first-child { font-weight: 400; }
.zeitwahl legend { font-weight: 600; font-size: .92rem; margin-bottom: .35rem; padding: 0; }
.zeitwahl-reihe { display: flex; align-items: center; gap: .5rem; }
.zeitwahl-reihe select { width: auto; flex: 1; font-variant-numeric: tabular-nums; }
.pflicht { font-weight: 600; color: var(--rot); font-size: .75rem; margin-left: .3rem; }
.kontaktwahl legend { font-weight: 600; font-size: .92rem; margin-bottom: .35rem; padding: 0; }
.umschalter { display: flex; gap: .4rem; margin-bottom: .45rem; }
.umschalter label {
  flex: 1; display: flex; justify-content: center; align-items: center; min-height: 44px; cursor: pointer;
  border: 2px solid var(--linie); border-radius: var(--radius-s); background: #fff; font-weight: 600;
}
.umschalter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.umschalter label:has(input:checked) { border-color: var(--rot); background: var(--rot-10); color: var(--rot-dunkel); }
.umschalter label:has(input:focus-visible) { outline: 3px solid var(--blau); outline-offset: 2px; }
.bekannt { background: var(--tuerkis-15); border-radius: var(--radius-s); padding: .8rem 1rem; margin-bottom: 1rem; }
.einwilligung { display: flex; gap: .7rem; font-size: .88rem; color: var(--leise); margin: .4rem 0 1.2rem; cursor: pointer; }
.einwilligung input { width: 1.4rem; height: 1.4rem; flex: none; margin-top: .1rem; accent-color: var(--rot); }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Danke */
.schritt-danke { text-align: center; padding-top: 2rem; }
.danke-bild svg { display: block; margin: 0 auto .8rem; }
.danke-bild .herz { transform-origin: 60px 70px; animation: pochen 1.2s ease-in-out 3; }
@keyframes pochen { 30% { transform: scale(1.25); } 60% { transform: scale(1); } }
.danke-titel { font-size: 2rem; line-height: 1.5; }
.danke-text { font-size: 1.12rem; }
.danke-liste { list-style: none; padding: 0; margin: 1rem 0; text-align: left; }
.danke-liste li { padding: .55rem .8rem; margin-bottom: .35rem; background: var(--tuerkis-15); border-radius: var(--radius-s); font-weight: 600; }
.danke-liste li::before { content: "✓ "; color: var(--tuerkis-dunkel); }
.danke-wirkung { color: var(--leise); }
.danke-aktionen { margin: 1.2rem 0; }
.schritt-danke .link-kasten { text-align: left; }
.link-kasten { background: var(--flaeche-2); border-radius: var(--radius); padding: .9rem 1rem; margin: 1rem 0; }
.link-zeile { display: flex; gap: .5rem; }
.link-zeile input { font-size: .85rem; }

.konfetti-regen { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.konfetti-regen i {
  position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px;
  animation-name: fallen; animation-timing-function: cubic-bezier(.3, .6, .6, 1); animation-fill-mode: forwards;
}
@keyframes fallen { to { top: 105%; transform: rotate(720deg) translateX(40px); } }

/* Persönliche Seite & schmale Seiten */
.seite-schmal { max-width: 600px; margin: 0 auto; padding: 1.6rem 1rem; }
.seite-schmal h1 { font-size: 2rem; line-height: 1.5; margin-bottom: 1rem; }
.meine-liste { list-style: none; padding: 0; margin: 1rem 0; }
.meine-liste li {
  display: flex; gap: .9rem; align-items: center; background: #fff; border: 1px solid var(--linie);
  border-radius: var(--radius); padding: .8rem .9rem; margin-bottom: .55rem; box-shadow: var(--schatten);
}
.meine-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.meine-text span { color: var(--leise); font-size: .92rem; }
.meine-text small { color: var(--leise); }
.knopfreihe { display: flex; gap: .6rem; flex-wrap: wrap; }
.anmelden .formular { margin: 1.2rem 0; }
.leer-hinweis { text-align: center; font-size: 1.1rem; padding: 2rem 1rem; background: #fff; border-radius: var(--radius); border: 1px dashed var(--linie-stark); }

/* ------------------------------------------------------------ 4 Verwaltung */
body.verwaltung { font-size: 15px; }
.v-kopf {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; padding: .6rem 1.2rem;
  background: #fff; border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 30;
}
.v-marke { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--text); }
.v-marke b { color: var(--rot); }
.v-reiter { display: flex; gap: .2rem; flex-wrap: wrap; }
.v-reiter a { text-decoration: none; color: var(--text); padding: .45rem .8rem; border-radius: 999px; font-weight: 600; }
.v-reiter a:hover { background: var(--flaeche-2); }
.v-reiter a.aktiv { background: var(--rot); color: #fff; }
.v-rechts { margin-left: auto; display: flex; gap: 1rem; align-items: center; font-size: .9rem; }
.v-rechts form { margin: 0; }

.v-meldung { max-width: 1240px; margin: 0 auto .6rem; }
@media (min-width: 1264px) { .v-meldung { margin: 0 auto .6rem; } }
.v-inhalt { max-width: 1240px; margin: 0 auto; padding: .4rem 1.2rem 2rem; }
.v-werkzeug { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; margin-bottom: 1rem; }
.v-werkzeug h1 { margin: 0; }
.v-filter { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.pille { padding: .35rem .9rem; border-radius: 999px; border: 1.5px solid var(--linie-stark); text-decoration: none; color: var(--text); font-weight: 600; font-size: .9rem; background: #fff; }
.pille-aktiv { background: var(--text); color: #fff; border-color: var(--text); }
.suchfeld { width: 320px; max-width: 100%; }

.v-tage { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .5rem; margin-bottom: 1.6rem; }
.v-tag { display: flex; flex-direction: column; text-decoration: none; color: var(--text); padding: .55rem .7rem; border-radius: var(--radius-s); border: 1.5px solid; background: #fff; }
.v-tag span { font-size: .82rem; font-weight: 600; }
.v-tag-offen { border-color: var(--rot-20); }
.v-tag-offen span { color: var(--rot); }
.v-tag-ok { border-color: var(--tuerkis-15); }
.v-tag-ok span { color: var(--tuerkis-dunkel); }

.v-tagblock { margin-bottom: 2rem; }
.v-tagblock h2 { display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap; line-height: 1.6; }
.v-tagblock h2 a { font-weight: 400; }
.v-ve { margin: 1rem 0 .4rem; }

.tabelle-rahmen { overflow-x: auto; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius-s); margin-bottom: .8rem; }
.v-tabelle { width: 100%; border-collapse: collapse; }
.v-tabelle th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--leise); padding: .5rem .7rem; border-bottom: 1px solid var(--linie); background: var(--flaeche-2); }
.v-tabelle td { padding: .55rem .7rem; border-bottom: 1px solid var(--flaeche-2); vertical-align: top; }
.v-tabelle tr:last-child td { border-bottom: 0; }
.zeile-offen td:first-child { box-shadow: inset 4px 0 0 var(--rot); }
.zeile-ok td:first-child { box-shadow: inset 4px 0 0 var(--tuerkis); }
.status { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.status-offen { background: var(--rot-10); color: var(--rot-dunkel); }
.status-ok { background: var(--tuerkis-15); color: #00534f; }
.person { display: flex; flex-wrap: wrap; gap: .2rem .7rem; align-items: center; padding: .15rem 0; }
.person-name { font-weight: 600; }
.person a { font-size: .88rem; color: var(--blau); }
.person em { font-size: .88rem; color: var(--leise); }
.person form { margin: 0; }
.person .weg { width: 24px; height: 24px; font-size: 1rem; background: var(--flaeche-2); }
.v-dazu { position: relative; }
.v-dazu[open] summary { background: var(--rot-10); }
.formular-klein { background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius-s); padding: .8rem; margin-top: .4rem; min-width: 240px; }
.formular-klein .feld { margin-bottom: .5rem; }
.v-aktionen { width: 1%; white-space: nowrap; }
.v-aktionen details[open] { white-space: normal; min-width: 260px; }
.v-aktionen form { margin: .4rem 0; }
.nowrap-umbruch { font-size: .92rem; }

.v-karte { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.v-karte-kopf { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
.v-karte-gefahr { border-color: var(--rot-20); }
.v-karte > summary { margin-bottom: .2rem; }
.formular-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 .8rem; margin: .8rem 0; }
.formular-raster .breit { grid-column: 1 / -1; }
@media (max-width: 720px) { .formular-raster { grid-template-columns: 1fr; } }
.formular { max-width: 640px; }
.liste-schlicht { list-style: none; padding: 0; }
.liste-schlicht li { padding: .35rem 0; border-bottom: 1px solid var(--flaeche-2); display: flex; gap: .6rem; align-items: baseline; }
form.inline { display: inline; margin: 0; }
.v-verlauf td { font-size: .9rem; }

@media (max-width: 760px) {
  .v-kopf { padding: .5rem .8rem; gap: .5rem; position: static; }
  .v-rechts { margin-left: 0; width: 100%; justify-content: space-between; }
  .v-inhalt { padding-left: .8rem; padding-right: .8rem; }
}

/* Übersicht: Zahlen · Wochenraster · Liste */
.balken { height: 14px; max-width: 520px; background: var(--flaeche-2); border-radius: 999px; overflow: hidden; margin: .5rem 0 .6rem; }
.balken-fuellung {
  height: 100%; border-radius: 999px; min-width: 14px;
  background: linear-gradient(90deg, var(--rot), var(--purpur) 45%, var(--blau) 70%, var(--tuerkis));
  background-size: 520px 100%;
}
.v-zahlen { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: stretch; }
.v-zahl { flex: 1; min-width: 150px; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: .8rem 1rem; display: flex; flex-direction: column; }
.v-zahl b { font-size: 2rem; line-height: 1.1; }
.v-zahl span { color: var(--leise); font-size: .9rem; }
.v-zahl-rot { border-color: var(--rot-20); background: var(--rot-10); }
.v-zahl-rot b { color: var(--rot); }
.v-zahl-gut { border-color: var(--tuerkis); background: var(--tuerkis-15); }
.v-zahl-gut b { color: var(--tuerkis-dunkel); }
.v-download { flex: 1; min-width: 170px; border-radius: var(--radius); font-size: 1.05rem; line-height: 1.2; text-align: center; flex-direction: column; }
.v-download small { font-weight: 400; opacity: .85; }

.raster { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1.4rem; }
.raster-legende { display: flex; gap: 1.1rem; font-size: .82rem; color: var(--leise); margin-bottom: .5rem; }
.raster-legende span { display: flex; align-items: center; gap: .35rem; }
.raster-zeile { display: grid; grid-template-columns: 5.5rem 1fr 5.5rem; align-items: center; gap: .6rem; padding: .28rem 0; border-top: 1px solid var(--flaeche-2); }
.raster-zeile:first-of-type { border-top: 0; }
.raster-tag { font-weight: 600; white-space: nowrap; }
.raster-kaesten { display: flex; flex-wrap: wrap; gap: 3px; }
.raster-zahl { text-align: right; font-weight: 600; font-size: .9rem; white-space: nowrap; color: var(--tuerkis-dunkel); }
.raster-zahl.rot { color: var(--rot); }
.k { display: inline-block; width: 16px; height: 16px; border-radius: 3px; }
a.k:hover { outline: 2px solid var(--text); outline-offset: 1px; }
.k-leer { background: var(--rot); }
.k-teil { background: var(--olive); }
.k-voll { background: var(--tuerkis); }
@media (max-width: 560px) { .raster-zeile { grid-template-columns: 4.6rem 1fr; } .raster-zahl { grid-column: 2; text-align: left; } }

.ansicht-wahl { display: flex; gap: .3rem; border-bottom: 2px solid var(--linie); margin-bottom: .8rem; }
.ansicht-wahl a { padding: .55rem 1rem; text-decoration: none; color: var(--leise); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.ansicht-wahl a.aktiv { color: var(--text); border-color: var(--rot); }
.zaehler { display: inline-block; min-width: 1.6rem; padding: 0 .4rem; border-radius: 999px; background: var(--rot); color: #fff; font-size: .8rem; text-align: center; }

.v-liste td { vertical-align: middle; }
.v-liste tr.zeile-tag th { background: var(--flaeche-2); color: var(--text); text-transform: none; letter-spacing: 0; font-size: 1rem; padding: .55rem .7rem; border-top: 2px solid var(--linie); }
.v-liste tr:target { background: var(--olive-20); }
.gruen { color: var(--tuerkis-dunkel); }
.punktreihe { display: inline-flex; gap: 3px; }
.punktreihe i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--rot); }
.zeile-ok .punktreihe i { border-color: var(--tuerkis); }
.punktreihe i.p-da { background: var(--rot); }
.zeile-ok .punktreihe i.p-da { background: var(--tuerkis); }
.v-wer { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.v-wer .person { background: #fff; border: 1px solid var(--linie); border-radius: 999px; padding: .1rem .65rem; font-size: .92rem; }
.v-wer .person[open] { border-radius: var(--radius-s); }
.v-wer .person summary { font-weight: 600; }
.person-kontakt { display: flex; flex-direction: column; gap: .2rem; padding: .3rem 0 .2rem; font-size: .88rem; }
.person-kontakt a { color: var(--blau); }
.person-kontakt form { margin: 0; }
h2.inline { display: inline; }

/* Schmaler Bildschirm: jede Zeile wird eine kleine Karte
   Zeit + Besetzt oben, Dienst darunter, dann die Namen */
@media (max-width: 760px) {
  .v-liste thead { display: none; }
  .v-liste tr.zeile-tag { display: block; }
  .v-liste tr.zeile-tag th { display: block; }
  .v-liste tr:not(.zeile-tag) {
    display: grid; grid-template-columns: 1fr auto; grid-template-areas: "zeit status" "dienst status" "wer wer";
    gap: .15rem .8rem; padding: .65rem .8rem; border-bottom: 1px solid var(--flaeche-2);
  }
  .v-liste td { border: 0 !important; padding: 0; box-shadow: none !important; }
  .v-liste tr.zeile-offen { box-shadow: inset 4px 0 0 var(--rot); }
  .v-liste tr.zeile-ok { box-shadow: inset 4px 0 0 var(--tuerkis); }
  .z-zeit { grid-area: zeit; color: var(--leise); }
  .z-dienst { grid-area: dienst; }
  .z-status { grid-area: status; text-align: right; }
  .z-wer { grid-area: wer; padding-top: .35rem !important; }
}


/* ------------------------------------------------------------ 5 Aushang / Druck */
body.aushang { background: #fff; padding: 1.5rem; }
.aushang-tag { max-width: 900px; margin: 0 auto 3rem; }
.aushang-tag h1 { line-height: 1.6; }
.aushang-tag h2 { margin-top: 1.4rem; }
.aushang-tabelle { width: 100%; border-collapse: collapse; margin-bottom: .8rem; }
.aushang-tabelle th, .aushang-tabelle td { border: 1px solid #999; padding: .45rem .6rem; text-align: left; font-size: .95rem; }
.aushang-tabelle th { background: #f0f0f0; }
.aushang-leer td { height: 2.2rem; }
.aushang-leer td:nth-child(3) { background: var(--rot-10); }
.nicht-drucken { max-width: 900px; margin: 0 auto 1.5rem; display: flex; gap: 1rem; align-items: center; }

@media print {
  .nicht-drucken, .fuss { display: none !important; }
  body.aushang { padding: 0; }
  .aushang-tag { page-break-after: always; margin: 0; }
  .aushang-tag:last-child { page-break-after: auto; }
  .hl { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .aushang-leer td:nth-child(3) { background: none; }
}
