/* Helferplanung – gemeinsamer Aufbau für alle Vereine.
   Schriften liegen lokal (keine Abrufe bei Google). */

/* Farben, Schriften und Formen kommen aus dem Theme des Vereins (/theme.css, Ordner themes/).
   Hier stehen nur Rollen: --dunkel, --akzent, --hervor, --info usw. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--grund); }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--akzent); }
h1, h2, h3 { font-family: var(--display); letter-spacing: var(--h-sperrung); line-height: var(--h-zeile); }
h1 { font-size: clamp(40px, 6vw, 72px); font-weight: var(--titel-gewicht); letter-spacing: var(--titel-sperrung); margin: 0.15em 0 0.35em; hyphens: auto; overflow-wrap: break-word; }
h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: var(--h2-gewicht); color: var(--h2-farbe); margin: 0 0 0.7em; display: flex; align-items: center; gap: 0.5rem; }
h3 { font-size: 20px; font-weight: 700; margin: 1.5em 0 0.7em; }
code { font-size: 0.9em; background: var(--flaeche-2); padding: 0.15em 0.45em; border-radius: 6px; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; }
.icon.gross { width: 2.4rem; height: 2.4rem; }
.gruen { color: var(--akzent); }

/* Kleine Überschrift mit Strich davor (wie „Was kommt“ auf der Website) */
.ueber, .held-ueber {
  display: flex; align-items: center; gap: 0.6em; margin: 0;
  font: 600 13px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase;
}
.ueber::before, .held-ueber::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.ueber { color: var(--leise); margin-top: 1.4rem; }
.strich { display: block; width: 120px; height: 10px; border-radius: 2px; background: var(--strich); margin: 6px 0 22px; }

/* ---------- Kopf ---------- */
.kopf { position: relative; }
.kopf-innen {
  max-width: 1200px; margin: 0 auto; padding: 22px 1rem 10px;
  display: flex; align-items: center; gap: 0.6rem 1rem; flex-wrap: wrap;
}
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font: 700 21px/1 var(--display); letter-spacing: -0.01em; }
.marke-zwei { color: var(--akzent); }
.marke-logo, .login-logo { width: 42px; height: 42px; flex: none; object-fit: contain; }
.marke-logo-leer { border-radius: 50%; background: var(--info); }
.kopf-verein { color: var(--leise); font-size: 15px; font-weight: 600; padding: 8px 14px; border-radius: var(--rund); background: var(--flaeche-2); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav a, .nav .linkknopf {
  display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: var(--rund);
  text-decoration: none; font: 600 15px/1 var(--body); color: var(--text); background: var(--flaeche-2); transition: background 0.2s;
}
.nav a:hover, .nav .linkknopf:hover { background: var(--akzent); color: var(--akzent-text); }
.nav form { margin: 0; }
.nav form .linkknopf { background: var(--akzent); color: var(--akzent-text); }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.kopf-rechts .nav { margin-left: 0; }
/* Hell/Dunkel-Umschalter (nur mit JavaScript sichtbar) */
.modus {
  display: none; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; place-items: center; flex: none;
  background: var(--flaeche-2); color: var(--text); transition: background 0.2s, transform 0.3s;
}
.js .modus { display: inline-grid; }
.modus:hover { background: var(--akzent); color: var(--akzent-text); transform: rotate(-15deg); }
.modus .icon { width: 20px; height: 20px; }
.modus .modus-sonne { display: none; }
:root[data-theme="dark"] .modus .modus-sonne { display: block; }
:root[data-theme="dark"] .modus .modus-mond { display: none; }

/* ---------- Seitenrahmen ---------- */
main { max-width: 820px; margin: 0 auto; padding: 0.5rem 1rem 5rem; }
main.breit { max-width: 1200px; }
main.mitte { min-height: calc(100vh - 90px); display: flex; flex-direction: column; justify-content: center; padding-top: 1.5rem; }
.seitenkopf h1 { margin-top: 0.25em; }

.karte {
  background: var(--flaeche); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px);
  margin: 1.1rem 0; box-shadow: var(--schatten);
}
.karte.schmal { max-width: 460px; margin: 2rem auto; }
details.karte > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
details.karte > summary::-webkit-details-marker { display: none; }
details.karte > summary h2 { margin: 0; }
details.karte > summary::after {
  content: "+"; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--flaeche-2); font: 400 24px/1 var(--body); transition: transform 0.25s, background 0.2s;
}
details.karte > summary:hover::after { background: var(--akzent); color: var(--akzent-text); }
details.karte[open] > summary::after { transform: rotate(45deg); }
details.karte[open] > summary { margin-bottom: 1.2rem; }

.leise { color: var(--leise); font-size: 0.93em; font-weight: 400; }
.leer { color: var(--leise); font-size: 18px; }
.leer.klein, .klein { font-size: 15px; }
.fuss-link { margin-top: 3.5rem; text-align: center; font-size: 15px; font-weight: 600; }
.brotkrumen { margin: 0.4rem 0 0; font-size: 15px; font-weight: 700; }
.brotkrumen a { text-decoration: none; }
.brotkrumen a::before { content: "← "; }
.brotkrumen a:hover { text-decoration: underline; }

.hinweis, .fehler { border-radius: var(--radius-klein); padding: 14px 18px 14px 50px; margin: 1rem 0; position: relative; font-weight: 600; }
.hinweis { background: var(--gruen-flaeche); }
.hinweis::before { content: ""; position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--akzent); }
.hinweis::after {
  content: ""; position: absolute; left: 19px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: var(--akzent-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fehler { background: var(--gefahr-hell); }
.fehler::before { content: "!"; position: absolute; left: 16px; top: 14px; width: 22px; height: 22px; border-radius: 50%; background: var(--gefahr); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.fehler ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Dunkler Kopfbereich (wie Hero/Save-the-Date) ---------- */
.held {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--held-grund); color: #fff; border-radius: var(--radius); box-shadow: var(--held-kante);
  padding: clamp(28px, 5vw, 56px) clamp(22px, 4vw, 48px) clamp(26px, 4vw, 44px); margin: 0.6rem 0 1.6rem;
}
.held::before {
  content: ""; position: absolute; z-index: -1; width: 520px; aspect-ratio: 1; border-radius: 50%; right: -160px; top: -220px;
  background: var(--glow); filter: blur(80px); opacity: var(--glow-deckkraft);
}
.held h1 { color: #fff; margin: 18px 0 6px; }
.held-ueber { color: var(--held-ueber); }
.held .gruen { color: var(--held-ueber); }
.held-text { margin: 0; max-width: 34em; color: rgb(255 255 255 / 0.82); font-size: clamp(17px, 1.6vw, 20px); }
.held-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.held .chip { background: rgb(255 255 255 / 0.1); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18); }

.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: var(--rund); background: var(--flaeche-2); font-size: 15px; font-weight: 600; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; line-height: 1;
  padding: 7px 12px; border-radius: var(--rund); white-space: nowrap; background: var(--flaeche-2); color: var(--text);
}
.pill.klein { font-size: 11px; padding: 4px 8px; }
.pill-ok { background: var(--ok); color: var(--ok-text); }
.pill-offen { background: var(--hervor); color: var(--hervor-text); }
.pill .icon { width: 1em; height: 1em; }

.beschreibung { font-size: 18px; margin: 0 0 2rem; padding-left: 20px; border-left: 4px solid var(--akzent); }
.beschreibung p { margin: 0.4em 0; }

/* ---------- Festliste (wie die Terminliste) ---------- */
.festliste { list-style: none; padding: 0; margin: 1.2rem 0 2rem; border-top: 2px solid currentColor; }
.festkarte {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 110px minmax(0, 1fr) 52px; gap: 20px; align-items: center;
  padding: 24px 8px; border-bottom: 1px solid var(--linie); text-decoration: none; color: inherit; transition: color 0.25s;
}
.festkarte::before { content: ""; position: absolute; inset: 4px -12px; z-index: -1; border-radius: 20px; background: var(--zeile-hover); box-shadow: var(--zeile-hover-kante); opacity: 0; transition: opacity 0.25s; }
.festkarte:hover, .festkarte:focus-visible { color: #fff; outline: none; }
.festkarte:hover::before, .festkarte:focus-visible::before { opacity: 1; }
.festkarte-text { display: grid; gap: 4px; min-width: 0; }
.festkarte strong { font: 700 clamp(22px, 2.4vw, 30px)/1.1 var(--display); letter-spacing: -0.015em; hyphens: auto; overflow-wrap: break-word; }
.festkarte-meta { font-size: 15px; opacity: 0.72; }
.festkarte-verein { font: 600 12px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }
.festkarte-zahlen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.festkarte:hover .pill:not(.pill-ok):not(.pill-offen) { background: rgb(255 255 255 / 0.12); color: #fff; }
.blatt { display: grid; font: var(--titel-gewicht) 44px/1 var(--display); letter-spacing: -0.03em; }
.blatt small { font: 600 12px/1.6 var(--body); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; margin-top: 4px; }
.pfeil-kreis { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--flaeche-2); transition: transform 0.3s, background 0.3s; }
.festkarte:hover .pfeil-kreis, .festkarte:focus-visible .pfeil-kreis { background: var(--akzent); color: var(--akzent-text); transform: rotate(-45deg); }
.leerkarte { text-align: center; color: var(--leise); padding: 3rem 1rem; border-top: 2px solid var(--text); font-size: 19px; }
.leerkarte .icon { color: var(--hervor); }
@media (max-width: 560px) {
  .festkarte { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 20px 4px; }
  .festkarte .pfeil-kreis { display: none; }
  .blatt { font-size: 34px; }
}

/* ---------- Knöpfe (Pillen) ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer;
  background: var(--knopf); color: var(--knopf-text); border: 0; border-radius: var(--rund); padding: 15px 26px; min-height: 48px;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.knopf:hover { transform: translateY(-2px); }
.knopf:active { transform: none; }
.knopf.zweit { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px currentColor; }
.knopf.zweit:hover { background: var(--akzent); color: var(--akzent-text); box-shadow: none; }
.knopf.gefahr { background: transparent; color: var(--gefahr); box-shadow: inset 0 0 0 2px currentColor; }
.knopf.gefahr:hover { background: var(--gefahr-hell); }
.knopf.gross { font-size: 17px; padding: 18px 32px; min-height: 56px; }
.linkknopf { font: inherit; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--akzent); font-weight: 600; }
.linkknopf.gefahr { color: var(--gefahr); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--info); outline-offset: 3px; }

/* ---------- Formulare (wie das Kontaktformular) ---------- */
.formular { display: grid; gap: 20px; }
.formular label { display: grid; gap: 6px; font-weight: 600; font-size: 16px; }
input, textarea, select {
  width: 100%; font: 400 17px/1.4 var(--body); color: var(--text); background: var(--feld-grund);
  border: 2px solid var(--feld-rand); border-radius: 14px; padding: 13px 16px; min-height: 52px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { resize: vertical; min-height: 120px; }
input[readonly] { background: var(--flaeche-2); color: var(--leise); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--akzent) 30%, transparent); }
input[type=date] { -webkit-appearance: none; appearance: none; min-width: 0; display: block; text-align: left; }
/* Eigene Checkboxen in Knopf-Farbe (hell: Nachtblau, dunkel: Grün) statt der grauen System-Kästchen */
input[type=checkbox] {
  -webkit-appearance: none; appearance: none; flex: none; cursor: pointer; margin: 0; padding: 0;
  width: 22px; height: 22px; min-height: 0; border-radius: 7px; border: 2px solid var(--linie-stark); background: transparent;
  display: inline-grid; place-content: center; transition: background 0.15s, border-color 0.15s;
}
input[type=checkbox]::before {
  content: ""; width: 12px; height: 12px; background: var(--knopf-text); transform: scale(0); transition: transform 0.12s;
  clip-path: polygon(12% 52%, 0 66%, 40% 100%, 100% 22%, 86% 9%, 39% 72%);
}
input[type=checkbox]:checked { background: var(--knopf); border-color: var(--knopf); }
input[type=checkbox]:checked::before { transform: scale(1); }
input[type=checkbox]:hover { border-color: var(--leise); }
input[type=checkbox]:checked:hover { border-color: var(--knopf); }
input[type=checkbox]:focus { box-shadow: none; }
input[type=checkbox]:focus-visible { outline: 3px solid var(--info); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.formular label.haken { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; color: var(--leise); }
.formular label.haken input { margin-top: 3px; }
.raster { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.raster .weit { grid-column: 1 / -1; }
.raster.klein { grid-template-columns: 1fr 1fr; gap: 12px; }
.knopfreihe { display: flex; gap: 8px; }
.mehrspaltig { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 8px 16px; }
.honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Anmeldung für Helfer ---------- */
.schritt { margin: 0 0 2.6rem; }
.schritt-titel { font-size: clamp(28px, 3.4vw, 40px); font-weight: var(--titel-gewicht); letter-spacing: var(--titel-sperrung); gap: 14px; margin-bottom: 10px; }
.schritt-nr {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--nummer); color: var(--nummer-text); font: var(--titel-gewicht) 20px/1 var(--display);
}
.schritt > .leise { margin: 0 0 1.4rem; max-width: 40em; font-size: 17px; }
.tag { margin: 0 0 1.6rem; }
.tag-titel { font: 600 13px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--leise); margin: 0 0 12px; display: flex; align-items: center; gap: 12px; width: 100%; }
.tag-titel::after { content: ""; flex: 1; height: 2px; background: var(--linie); }
.schichtwahl-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.schichtwahl {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 2px 14px;
  background: var(--flaeche); border-radius: 18px; padding: 18px; cursor: pointer; box-shadow: var(--schatten);
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.schichtwahl:hover { transform: translateY(-2px); box-shadow: var(--schatten-hoch); }
.schichtwahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.schichtwahl-haken {
  grid-row: 1 / span 4; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 2px var(--linie-stark); color: transparent; transition: all 0.2s;
}
.schichtwahl-haken .icon { width: 17px; height: 17px; stroke-width: 3; }
.schichtwahl-zeit { font: 700 19px/1.2 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.schichtwahl-bereich { font-weight: 600; }
.schichtwahl-notiz { color: var(--leise); font-size: 14px; }
.schichtwahl .pill { justify-self: start; margin-top: 10px; grid-column: 2; }
.schichtwahl:has(input:checked) { background: var(--wahl-an); color: var(--wahl-an-text); }
.schichtwahl:has(input:checked) .schichtwahl-notiz { color: var(--wahl-an-text); opacity: 0.75; }
.schichtwahl:has(input:checked) .schichtwahl-haken { background: var(--wahl-haken); box-shadow: none; color: var(--wahl-haken-text); }
.schichtwahl:has(input:checked) .pill { background: var(--wahl-pill); color: var(--wahl-an-text); }
.schichtwahl:has(input:focus-visible) { outline: 3px solid var(--info); outline-offset: 3px; }

.absenden {
  position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 0.5rem; padding: 8px 8px 8px 22px; border-radius: var(--rund);
  background: var(--leiste); color: #fff; -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 10px 40px rgb(0 0 0 / 0.3), var(--leiste-kante);
}
.absenden .knopf { background: var(--akzent); color: var(--akzent-text); }
.absenden-zahl { font-weight: 600; font-size: 15px; color: rgb(255 255 255 / 0.75); }
.absenden-zahl.gewaehlt { color: #fff; }
@media (max-width: 520px) {
  .absenden { border-radius: 26px; padding: 12px; justify-content: center; }
  .absenden .knopf { flex: 1 1 100%; }
}
.schichtliste { list-style: none; padding: 0; margin: 0.8rem 0 1.2rem; border-top: 2px solid currentColor; }
.schichtliste li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 4px; border-bottom: 1px solid var(--linie); }
.schichtliste .icon { color: var(--gruen-text); margin-top: 3px; }
.abmelden { background: transparent; box-shadow: inset 0 0 0 2px var(--linie); }
.abmelden h2 { font-size: 22px; }

/* ---------- Login ---------- */
.login { width: 100%; max-width: 440px; margin: 0 auto; background: var(--flaeche); border-radius: 28px; box-shadow: var(--schatten-hoch); padding: 36px 32px 26px; }
.login-kopf { text-align: center; margin-bottom: 26px; }
.login-logo { display: block; width: 60px; height: 60px; margin: 0 auto 10px; }
.login-kopf h1 { font-size: 44px; margin: 0.15em 0 0.2em; }
.login-kopf p { margin: 0; }
.login .knopf { width: 100%; margin-top: 4px; }
.login-fuss { text-align: center; margin: 20px 0 0; font-size: 14px; }
main.mitte .fehler, main.mitte .hinweis { width: 100%; max-width: 440px; margin: 0 auto 1rem; }

/* ---------- Verwaltung ---------- */
.festkopf { margin: 0.4rem 0 1.2rem; }
.festkopf h1 { margin: 0.12em 0 0.3em; }
.festkopf-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* Reiter wie die Jahres-Auswahl der Galerie */
.tabs {
  display: flex; gap: 6px; padding: 6px; margin: 0 0 1.4rem; overflow-x: auto; scrollbar-width: none;
  background: var(--flaeche-2); border-radius: var(--rund); width: max-content; max-width: 100%;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 11px 20px; text-decoration: none; color: var(--text); border-radius: var(--rund); white-space: nowrap; font: 700 16px/1 var(--display); transition: background 0.2s; }
.tabs a:hover { background: var(--flaeche-2); }
.tabs a.aktiv { background: var(--akzent); color: var(--akzent-text); }
.linkzeile { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.linkzeile input { flex: 1 1 260px; font-size: 15px; }
/* Kennzahlen wie die Zahlen bei „Über uns“ */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 2rem 0; }
.kennzahlen div { display: grid; border-top: 2px solid currentColor; padding-top: 14px; }
.kennzahlen strong { font: var(--titel-gewicht) clamp(40px, 5vw, 64px)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kennzahlen span { color: var(--leise); font-size: 15px; margin-top: 4px; }

.tabelle-scroll { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 16px; }
.tabelle thead tr { border-bottom: 2px solid currentColor; }
.tabelle th, .tabelle td { text-align: left; padding: 12px 10px; vertical-align: top; }
.tabelle td { border-bottom: 1px solid var(--linie); }
.tabelle th { font: 600 12px/1.2 var(--body); color: var(--leise); text-transform: uppercase; letter-spacing: 0.1em; }
.tabelle .zahl { text-align: right; font-variant-numeric: tabular-nums; }
.tabelle .knapp { font-weight: 800; color: var(--knapp); }
.tabelle .aktionen { text-align: right; white-space: nowrap; }
.mini { margin: 0; padding-left: 1rem; font-size: 14px; }
.nowrap { white-space: nowrap; }
details.bearbeiten { display: inline-block; text-align: left; }
details.bearbeiten summary { cursor: pointer; font-weight: 700; font-size: 15px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--akzent); }
details.bearbeiten[open] { display: block; background: var(--flaeche-2); padding: 16px; border-radius: var(--radius-klein); margin-top: 8px; white-space: normal; min-width: min(290px, 80vw); }

.werkzeuge { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.werkzeuge form { margin: 0; }
.werkzeuge .versenden { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.werkzeuge .haken { display: flex; gap: 8px; align-items: center; font-size: 15px; color: var(--leise); }

/* Löschen immer deutlich abgesetzt vom Speichern-Knopf */
.loeschbereich {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--linie-stark);
}
.loeschbereich p { margin: 0; flex: 1 1 240px; }

/* ---------- Schichtliste mit aufklappbarem Bearbeiten ---------- */
.schichtzeilen { border-top: 2px solid currentColor; }
.schichtzeile-kopf, .schichtzeile > summary {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) 72px 80px 76px 110px; gap: 12px; align-items: baseline; padding: 12px 10px;
}
.schichtzeile-kopf { font: 600 12px/1.2 var(--body); color: var(--leise); text-transform: uppercase; letter-spacing: 0.1em; border-bottom: 1px solid var(--linie); }
.schichtzeile { border-bottom: 1px solid var(--linie); }
.schichtzeile > summary { cursor: pointer; list-style: none; border-radius: var(--radius-klein); transition: background 0.15s; }
.schichtzeile > summary::-webkit-details-marker { display: none; }
.schichtzeile > summary:hover { background: var(--flaeche-2); }
.schichtzeile .zahl { text-align: right; font-variant-numeric: tabular-nums; }
.schichtzeile .knapp { font-weight: 800; color: var(--knapp); }
.sz-zeit { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sz-bereich small { display: block; }
.sz-aktion { justify-self: end; font-weight: 700; font-size: 15px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--akzent); }
.sz-aktion::after { content: " ▾"; text-decoration: none; display: inline-block; margin-left: 4px; transition: transform 0.2s; }
.schichtzeile[open] > summary { background: var(--flaeche-2); border-radius: var(--radius-klein) var(--radius-klein) 0 0; }
.schichtzeile[open] .sz-aktion::after { transform: rotate(180deg); }
.sz-formular { background: var(--flaeche-2); padding: 6px 16px 18px; border-radius: 0 0 var(--radius-klein) var(--radius-klein); margin-bottom: 10px; }
.sz-formular .raster { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sz-formular .raster .weit { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .schichtzeile-kopf { display: none; }
  .schichtzeile > summary { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .schichtzeile .sz-zeit { font-weight: 700; }
  .schichtzeile .sz-bereich { grid-column: 1; }
  .schichtzeile .zahl { display: none; }
  .schichtzeile .sz-aktion { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .sz-formular .raster { grid-template-columns: 1fr 1fr; }
  .sz-formular .sz-tag { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .schichtzeile > summary::after {
    content: attr(data-zahlen); grid-column: 1; font-size: 13px; color: var(--leise);
  }
}

/* ---------- Admin ---------- */
.admin-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.benutzerliste { list-style: none; margin: 0 0 12px; padding: 0; border-top: 2px solid currentColor; }
.benutzerliste li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding: 12px 2px; border-bottom: 1px solid var(--linie); }
details.unterbereich { margin-top: 10px; border-top: 1px solid var(--linie); padding-top: 10px; }
details.unterbereich > summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
details.unterbereich[open] > summary { margin-bottom: 12px; }
.admin-verein .liste-kopf form { margin: 0; }
.links-felder { display: grid; gap: 12px; }
.links-felder legend { font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.fehler.klein { font-size: 14px; padding: 10px 14px 10px 46px; }
.fehler.klein::before { top: 10px; }

/* ---------- Mailtexte ---------- */
.platzhalter dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.platzhalter dt { font-weight: 600; }
.platzhalter dd { margin: 0; color: var(--leise); }
@media (max-width: 560px) { .platzhalter dl { grid-template-columns: 1fr; } .platzhalter dd { margin-bottom: 8px; } }
.mailtexte textarea { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 15px; line-height: 1.5; }

/* ---------- Helferliste ---------- */
.liste-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.liste-kopf h2 { margin-bottom: 4px; }
.liste-kopf p { margin: 0; }
.filterleiste { display: none; gap: 10px; align-items: center; flex-wrap: wrap; margin: 18px 0 6px; }
.js .filterleiste { display: flex; }
.filterleiste input[type=search] { flex: 1 1 200px; max-width: 320px; min-height: 44px; padding: 9px 16px; border-radius: var(--rund); }
.filter { display: flex; gap: 6px; flex-wrap: wrap; }
.filterknopf {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: var(--rund); cursor: pointer;
  font: 600 14px/1 var(--body); color: var(--text); background: var(--flaeche-2); transition: background 0.2s;
}
.filterknopf span { font-weight: 700; opacity: 0.6; font-variant-numeric: tabular-nums; }
.filterknopf:hover { background: var(--linie); }
.filterknopf[aria-pressed="true"] { background: var(--knopf); color: var(--knopf-text); }
.filterknopf[aria-pressed="true"] span { opacity: 0.75; }
.legende { display: flex; gap: 8px; align-items: center; margin: 12px 0 8px; font-size: 13px; }
.helferliste { list-style: none; margin: 0; padding: 0; border-top: 2px solid currentColor; }
.helferzeile {
  display: grid; grid-template-columns: 44px minmax(180px, 1fr) minmax(0, 2fr) auto; gap: 6px 18px; align-items: start;
  padding: 16px 4px; border-bottom: 1px solid var(--linie);
}
.helferzeile[hidden] { display: none; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--akzent); color: var(--akzent-text); font: 700 15px/1 var(--display); letter-spacing: 0.02em;
}
.avatar-offen { background: var(--hervor); }
.helfer-person { display: grid; gap: 2px; min-width: 0; }
.helfer-person strong { font: 700 18px/1.2 var(--display); }
.helfer-kontakt { font-size: 14px; overflow-wrap: anywhere; }
.helfer-bemerkung { font-size: 14px; color: var(--leise); font-style: italic; margin-top: 2px; }
.helfer-schichten { display: grid; gap: 6px; min-width: 0; }
.helfer-zahl { font-size: 13px; color: var(--leise); }
.helfer-zahl strong { color: var(--text); }
.schichtchips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.schichtchip {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: var(--rund); white-space: nowrap;
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; background: transparent; box-shadow: inset 0 0 0 1.5px var(--linie-stark); color: var(--leise);
}
.schichtchip .icon { width: 12px; height: 12px; stroke-width: 3; }
.schichtchip.an { background: var(--akzent); color: var(--akzent-text); box-shadow: none; }
.schichtchip.ohne-wunsch { box-shadow: inset 0 0 0 1.5px var(--akzent-text); }
.schichtchip-tag { font-weight: 800; margin-right: 1px; }
.helfer-aktion { display: grid; justify-items: end; gap: 4px; font-size: 14px; }
.helfer-aktion form { margin: 0; }
@media (max-width: 760px) {
  .helferzeile { grid-template-columns: 44px minmax(0, 1fr); }
  .helfer-schichten, .helfer-aktion { grid-column: 2; }
  .helfer-aktion { justify-items: start; grid-auto-flow: column; justify-content: start; gap: 14px; align-items: baseline; }
}

.shirts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius-klein); background: var(--flaeche-2); }
.shirts-titel { font: 600 12px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--leise); margin-right: 6px; }
.shirt-groesse { display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 12px; border-radius: var(--rund); background: var(--flaeche); box-shadow: var(--schatten); font-weight: 600; font-size: 14px; }
.shirt-groesse strong { font: var(--titel-gewicht) 17px/1 var(--display); }
.helfer-person .pill { vertical-align: 2px; margin-left: 4px; }

/* ---------- Einteilung ---------- */
.einteilung { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
@media (max-width: 920px) { .einteilung { grid-template-columns: 1fr; } .helferuebersicht { order: -1; position: static !important; max-height: none !important; } }
.einteilung .tag-titel { margin: 1.6rem 0 12px; }
.schicht-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 14px; }
.schicht { background: var(--flaeche); border-radius: 20px; padding: 18px; box-shadow: var(--schatten); }
.schicht header { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.schicht header strong { font: 700 20px/1.1 var(--display); }
.schicht-zeit { font-variant-numeric: tabular-nums; color: var(--leise); font-weight: 600; font-size: 15px; }
.belegung { margin-left: auto; font: 700 13px/1 var(--body); font-variant-numeric: tabular-nums; padding: 6px 10px; border-radius: var(--rund); background: var(--hervor); color: var(--hervor-text); }
.belegung.voll { background: var(--ok); color: var(--ok-text); }
.belegung.ueber { background: var(--gefahr); color: #fff; }
.fortschritt { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 6px; border: 0; border-radius: var(--rund); background: var(--flaeche-2); margin: 12px 0; overflow: hidden; }
.fortschritt::-webkit-progress-bar { background: var(--flaeche-2); border-radius: var(--rund); }
.fortschritt::-webkit-progress-value { background: var(--hervor); border-radius: var(--rund); }
.fortschritt::-moz-progress-bar { background: var(--hervor); border-radius: var(--rund); }
.schicht:has(.belegung.voll) .fortschritt::-webkit-progress-value { background: var(--ok); }
.schicht:has(.belegung.voll) .fortschritt::-moz-progress-bar { background: var(--ok); }
.schicht p { margin: 0 0 8px; }
.kandidaten { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.kandidat { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; cursor: pointer; font-size: 16px; transition: background 0.15s; }
.kandidat:hover { background: var(--flaeche-2); }
.kandidat:has(input:checked) { background: var(--kandidat-an); font-weight: 600; }
.kandidat.konflikt { background: var(--gefahr-hell) !important; }
.kandidat.konflikt .kandidat-name::after { content: " · Überschneidung"; color: var(--gefahr); font-size: 12px; font-weight: 700; }
.kandidat-name { flex: 1; }
.kandidat-info { color: var(--leise); font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 600; }
details.weitere { margin-top: 8px; font-size: 15px; border-top: 1px solid var(--linie); padding-top: 8px; }
details.weitere summary { cursor: pointer; color: var(--leise); font-weight: 600; }
.speicherleiste {
  position: sticky; bottom: 12px; z-index: 5; display: flex; gap: 14px; align-items: center; justify-content: flex-end;
  margin-top: 1.4rem; padding: 8px 8px 8px 22px; border-radius: var(--rund);
  background: var(--leiste); color: #fff; -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 10px 40px rgb(0 0 0 / 0.3), var(--leiste-kante);
}
.speicherleiste .leise { color: rgb(255 255 255 / 0.7); margin-right: auto; }
.speicherleiste .knopf { background: var(--akzent); color: var(--akzent-text); }
.einteilung-schichten.geaendert [data-status] { color: var(--hervor); font-weight: 700; }
.helferuebersicht { position: sticky; top: 16px; background: var(--flaeche); border-radius: 20px; padding: 20px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--schatten); }
.helferuebersicht h2 { margin-bottom: 4px; }
.helferuebersicht ul { list-style: none; padding: 0; margin: 12px 0 0; border-top: 2px solid currentColor; }
.helferuebersicht li { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 9px 0; border-bottom: 1px solid var(--linie); font-size: 15px; }
.helferuebersicht li span:last-of-type { font-variant-numeric: tabular-nums; color: var(--leise); font-weight: 700; }
.helferuebersicht li.ohne span:first-child { font-weight: 700; }
.helferuebersicht li.ohne span:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--hervor); margin-right: 8px; vertical-align: 0.1em; }
.helferuebersicht small { grid-column: 1 / -1; color: var(--leise); }

/* ---------- Fuß mit Impressum ---------- */
.fuss { border-top: 1px solid var(--linie); margin-top: 2rem; }
.fuss-innen { max-width: 1200px; margin: 0 auto; padding: 20px 1rem 28px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 14px; color: var(--leise); }
.fuss nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.fuss a { color: var(--leise); }
.fuss a:hover { color: var(--text); }

/* ---------- Plan & Druck ---------- */
.plan td:nth-child(3) { width: 55%; }
.nur-drucken { display: none; }
@media print {
  :root { --grund: #fff; --flaeche: #fff; --text: #000; --leise: #444; --linie: #999; }
  body { font-size: 10.5pt; }
  .kopf, .fuss, .tabs, .brotkrumen, .nicht-drucken, .hinweis, .festkopf-meta { display: none !important; }
  .nur-drucken { display: block; }
  main, main.breit { max-width: none; padding: 0; }
  .karte { box-shadow: none; padding: 0; }
  .plan-tag { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .kopf-innen { padding-top: 16px; }
  .kopf-verein { display: none; }
  .marke { font-size: 19px; }
  .marke-logo { width: 36px; height: 36px; }
  .nav a, .nav .linkknopf { height: 38px; padding: 0 13px; font-size: 14px; }
  .modus { width: 38px; height: 38px; }
  .werkzeuge .versenden { margin-left: 0; }
  .speicherleiste { border-radius: 26px; flex-wrap: wrap; padding: 12px; }
  .speicherleiste .knopf { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
