/* Hasendienst - mobile first, grosse Flaechen, Apple-Anmutung */

:root {
  --grund:        #f6f2ec;
  --karte:        #ffffff;
  --text:         #1c1c1e;
  --text-leise:   #7c7a76;
  --linie:        rgba(0, 0, 0, 0.07);
  --akzent:       #ff9500;
  --akzent-text:  #ffffff;
  --fertig:       #34c759;
  --blau:         #007aff;
  --rot:          #ff3b30;
  --schatten:     0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --radius:       22px;
  --tippflaeche:  64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund:      #131211;
    --karte:      #1f1e1d;
    --text:       #f5f5f7;
    --text-leise: #9a9691;
    --linie:      rgba(255,255,255,0.09);
    --schatten:   0 1px 2px rgba(0,0,0,.4);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--grund);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- Kopfzeile ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--grund) 88%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--linie);
  padding-top: env(safe-area-inset-top);
}

.kopf-innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  max-width: 620px;
  margin: 0 auto;
}

.kopf-wer { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.kopf-wer span:first-child { font-size: 24px; }

.kopf-knopf {
  background: none;
  border: none;
  color: var(--blau);
  font-size: 16px;
  padding: 10px 4px;
  min-height: 44px;
}

main {
  max-width: 620px;
  margin: 0 auto;
  padding: 20px 18px calc(40px + env(safe-area-inset-bottom));
}

/* ---------- Typografie ---------- */

h1 { font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; margin: 4px 0 6px; }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-leise); margin: 30px 0 10px; font-weight: 600; }
.leise { color: var(--text-leise); }

/* ---------- Anmeldung ---------- */

.anmelde-kopf { text-align: center; margin: 32px 0 28px; }
.anmelde-kopf .hase { font-size: 64px; display: block; margin-bottom: 8px; }
.anmelde-kopf h1 { font-size: 34px; }

.kachel-gruppe { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }

.kachel {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 24px 12px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .12s ease;
}
.kachel:active { transform: scale(.96); }
.kachel .emoji { font-size: 48px; line-height: 1; }
.kachel .name { font-weight: 600; font-size: 18px; text-align: center; }

/* ---------- PIN ---------- */

.pin-kopf { text-align: center; margin: 28px 0 20px; }
.pin-kopf .emoji { font-size: 64px; display: block; }
.pin-kopf .name { font-size: 26px; font-weight: 700; margin-top: 6px; }

.pin-punkte { display: flex; justify-content: center; gap: 18px; margin: 26px 0 8px; }
.pin-punkt {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--text-leise);
  transition: background .15s ease, transform .15s ease;
}
.pin-punkt.voll { background: var(--text); border-color: var(--text); transform: scale(1.05); }

.pin-fehler { text-align: center; color: var(--rot); min-height: 24px; margin-bottom: 6px; font-weight: 600; }
.wackeln { animation: wackeln .4s; }
@keyframes wackeln {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.ziffernfeld { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 340px; margin: 0 auto; }
.ziffer {
  height: 78px;
  border-radius: 50%;
  border: 1px solid var(--linie);
  background: var(--karte);
  box-shadow: var(--schatten);
  font-size: 32px;
  font-weight: 500;
}
.ziffer:active { background: var(--akzent); color: var(--akzent-text); }
.ziffer.leer { background: none; border: none; box-shadow: none; }
.ziffer.text { font-size: 17px; font-weight: 600; color: var(--blau); background: none; border: none; box-shadow: none; }

/* ---------- Dienst-Banner ---------- */

.dienst {
  background: linear-gradient(160deg, #ffb340, #ff9500);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--schatten);
  margin-bottom: 8px;
}
.dienst .woche { font-size: 14px; text-transform: uppercase; letter-spacing: .07em; opacity: .85; font-weight: 600; }
.dienst .satz { font-size: 27px; font-weight: 700; line-height: 1.2; margin-top: 6px; }
.dienst .satz .wer { white-space: nowrap; }

/* ---------- Aufgaben ---------- */

.liste { display: flex; flex-direction: column; gap: 12px; }

.aufgabe {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 16px 16px 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.aufgabe .emoji { font-size: 34px; line-height: 1; }
.aufgabe .mitte { flex: 1; min-width: 0; }
.aufgabe .titel { font-weight: 600; font-size: 18px; }
.aufgabe .unter { font-size: 14px; color: var(--text-leise); margin-top: 2px; }

.start-knopf {
  background: var(--akzent);
  color: var(--akzent-text);
  border: none;
  border-radius: 16px;
  min-height: 52px;
  min-width: 92px;
  padding: 0 18px;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255,149,0,.35);
}
.start-knopf:active { filter: brightness(.92); }

.aufgabe.erledigt { opacity: .78; }
.aufgabe.erledigt .haken {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--fertig); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; flex: none;
}
.aufgabe.erledigt .titel { text-decoration: none; }

.marke {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 3px 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--blau) 14%, transparent);
  color: var(--blau);
  margin-left: 6px;
  vertical-align: 2px;
}
.marke.foto { background: color-mix(in srgb, var(--akzent) 18%, transparent); color: #b06a00; }

.leer-hinweis {
  text-align: center;
  padding: 26px 18px;
  color: var(--text-leise);
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
}
.leer-hinweis .gross { font-size: 40px; display: block; margin-bottom: 6px; }

/* ---------- Timer ---------- */

.timer-seite { text-align: center; padding-top: 10px; }
.timer-seite .emoji { font-size: 62px; }
.timer-seite h1 { font-size: 26px; margin-top: 6px; }

.uhr {
  font-size: clamp(64px, 22vw, 92px);
  font-weight: 300;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  margin: 24px 0 6px;
}
.uhr.pausiert { opacity: .45; }

.richtzeit { color: var(--text-leise); margin-bottom: 30px; }

.knopf-reihe { display: flex; flex-direction: column; gap: 12px; }

.gross-knopf {
  min-height: 68px;
  border-radius: 20px;
  border: none;
  font-size: 20px;
  font-weight: 600;
  box-shadow: var(--schatten);
}
.gross-knopf.fertig { background: var(--fertig); color: #fff; }
.gross-knopf.pause  { background: var(--karte); color: var(--text); border: 1px solid var(--linie); }
.gross-knopf.weiter { background: var(--akzent); color: #fff; }
.gross-knopf.abbrechen { background: none; box-shadow: none; color: var(--rot); min-height: 56px; font-size: 17px; }
.gross-knopf:active { filter: brightness(.94); }

/* ---------- Hinweis-Blase ---------- */

.hinweis {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(28,28,30,.94);
  color: #fff;
  padding: 14px 22px;
  border-radius: 18px;
  font-weight: 600;
  z-index: 50;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
}

/* ---------- Timer-Zusatz ---------- */

.richtzeit.warnung { color: var(--akzent); font-weight: 600; }

/* ---------- Wartet auf Pruefung ---------- */

.aufgabe.erledigt.wartet .haken { background: var(--text-leise); font-weight: 700; }
.warte-text { font-style: italic; }

/* ---------- Karte "Zu pruefen" auf der Startseite ---------- */

.pruef-karte {
  width: 100%;
  margin-top: 12px;
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  min-height: var(--tippflaeche);
}
.pruef-karte:active { filter: brightness(.96); }
.pruef-karte .zahl {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--rot);
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.pruef-karte .text { flex: 1; }
.pruef-karte .titel { font-weight: 600; }
.pruef-karte .unter { font-size: 14px; color: var(--text-leise); }
.pruef-karte .pfeil { color: var(--text-leise); font-size: 26px; }

/* ---------- Bildschirm "Zu pruefen" ---------- */

.zurueck-knopf {
  background: none;
  border: none;
  color: var(--blau);
  font-size: 17px;
  padding: 8px 0;
  min-height: 44px;
}

.pruef-eintrag {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 16px 18px;
}
.pruef-eintrag .zeile-kopf { display: flex; align-items: center; gap: 14px; }
.pruef-eintrag .zeile-kopf .emoji { font-size: 32px; }
.pruef-eintrag .titel { font-weight: 600; font-size: 18px; }
.pruef-eintrag .unter { font-size: 14px; color: var(--text-leise); }

.fakten {
  margin: 12px 0 14px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--grund) 70%, transparent);
  border-radius: 14px;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fakten .grund { color: var(--text-leise); font-style: italic; }

.pruef-knoepfe { display: flex; gap: 10px; }
.pruef-knopf {
  flex: 1;
  min-height: 56px;
  border-radius: 16px;
  border: none;
  font-size: 17px;
  font-weight: 600;
}
.pruef-knopf.ja   { background: var(--fertig); color: #fff; }
.pruef-knopf.nein { background: color-mix(in srgb, var(--rot) 12%, transparent); color: var(--rot); }
.pruef-knopf:active { filter: brightness(.94); }
.pruef-knopf:disabled { opacity: .5; }

/* ---------- Tableiste unten ---------- */

body.mit-tableiste main { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

#tableiste {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: flex;
  background: color-mix(in srgb, var(--grund) 88%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--linie);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
#tableiste .tab {
  flex: 1;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  min-height: 58px;
  color: var(--text-leise);
}
#tableiste .tab.aktiv { color: var(--akzent); }
#tableiste .tab-emoji { font-size: 24px; line-height: 1; position: relative; }
#tableiste .tab-text { font-size: 11px; font-weight: 600; }
#tableiste .tab-zahl {
  position: absolute;
  top: -6px; right: -12px;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--rot);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Gesperrte Aufgabe ---------- */

.aufgabe.gesperrt { background: color-mix(in srgb, var(--karte) 60%, transparent); border-style: dashed; }
.aufgabe.gesperrt .titel { color: var(--text-leise); }
.aufgabe.gesperrt .schloss { font-size: 22px; opacity: .6; }

.marke.auto { background: color-mix(in srgb, var(--fertig) 16%, transparent); color: #1c7a35; font-size: 11px; }
.marke.nachtrag { background: color-mix(in srgb, var(--blau) 14%, transparent); color: var(--blau); font-size: 11px; }

/* ---------- Nachtragen ---------- */

.nachtrag-knopf {
  width: 100%;
  margin-top: 14px;
  min-height: 56px;
  border-radius: 16px;
  border: 1px dashed var(--linie);
  background: none;
  color: var(--blau);
  font-size: 16px;
  font-weight: 600;
}

.aufgabe.waehlbar { width: 100%; text-align: left; }
.aufgabe.waehlbar .haken-wahl { font-size: 22px; color: transparent; }
.aufgabe.waehlbar.gewaehlt { border-color: var(--akzent); box-shadow: 0 0 0 2px var(--akzent); }
.aufgabe.waehlbar.gewaehlt .haken-wahl { color: var(--akzent); }

.stepper { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 8px 0; }
.stepper-knopf {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 1px solid var(--linie);
  background: var(--karte);
  box-shadow: var(--schatten);
  font-size: 34px;
  font-weight: 300;
}
.stepper-knopf:active { background: var(--akzent); color: #fff; }
.stepper-wert {
  flex: 1;
  text-align: center;
  font-size: 34px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.mitte-text { text-align: center; }

.gross-knopf.voll { width: 100%; margin-top: 20px; }
.gross-knopf:disabled { opacity: .45; }

/* ---------- Foto ---------- */

.foto-bereich { margin-top: 8px; }
.foto-knopf {
  width: 100%;
  min-height: 60px;
  border-radius: 16px;
  border: none;
  background: var(--blau);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}
.foto-vorschau {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 16px;
  margin-top: 12px;
  border: 1px solid var(--linie);
}
.foto-gemessen {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: 16px;
  padding: 12px 16px;
  margin: 18px 0;
  color: var(--text-leise);
  font-size: 15px;
}
.pruef-foto {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 14px;
  margin-top: 12px;
  border: 1px solid var(--linie);
}
.foto-zeit { font-size: 13px; color: var(--text-leise); margin-top: 6px; }

.pruef-eintrag.anerkannt { opacity: .9; border-style: dashed; }

/* ---------- Wochenuebersicht ---------- */

.wochen-kopf { display: flex; align-items: center; gap: 8px; margin: 6px 0 18px; }
.wochen-mitte { flex: 1; text-align: center; }
.wochen-titel { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.wochen-zeitraum { font-size: 14px; color: var(--text-leise); }
.wochen-pfeil {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--linie);
  background: var(--karte);
  font-size: 24px;
  color: var(--blau);
  flex: none;
}
.wochen-pfeil:disabled { opacity: .3; color: var(--text-leise); }

.wochen-summe {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 20px;
  text-align: center;
  margin-bottom: 22px;
}
.wochen-summe .gross { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }

.balken-feld {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 20px 16px 18px;
}
.balken-spalte { flex: 1; text-align: center; min-width: 0; }
.balken-minuten { font-size: 16px; font-weight: 700; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.balken-roehre {
  height: 170px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--text-leise) 12%, transparent);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.balken-fuellung { width: 100%; border-radius: 14px; transition: height .5s cubic-bezier(.2,.8,.2,1); }
.balken-a { background: linear-gradient(180deg, #64b5f6, #2f80d6); }
.balken-b { background: linear-gradient(180deg, #ffb74d, #f08c1f); }
.balken-c { background: linear-gradient(180deg, #a5d6a7, #58a75c); }
.balken-d { background: linear-gradient(180deg, #ce93d8, #9c5fb0); }
.balken-emoji { font-size: 28px; margin-top: 10px; }
.balken-name { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.balken-anteil { font-size: 19px; font-weight: 700; margin-top: 2px; }
.balken-aufgaben { font-size: 13px; color: var(--text-leise); }

/* ---------- Teamziel: ruhig, sachlich, kein Warnrot ---------- */

.teamziel {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 16px 18px;
  margin-top: 12px;
}
.teamziel.erreicht { background: color-mix(in srgb, var(--fertig) 10%, var(--karte)); }
.teamziel-zeile { display: flex; align-items: flex-start; gap: 12px; }
.teamziel-zeile .symbol { font-size: 22px; line-height: 1.3; }
.teamziel-zeile .text { font-size: 17px; font-weight: 600; line-height: 1.35; }
.teamziel-zusatz { font-size: 14px; color: var(--text-leise); margin-top: 8px; padding-left: 34px; }
.teamziel .belohnung {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--linie);
  font-size: 16px;
  font-weight: 600;
}

.hinweis-karte {
  width: 100%;
  margin-top: 12px;
  background: color-mix(in srgb, var(--akzent) 10%, var(--karte));
  border: 1px solid color-mix(in srgb, var(--akzent) 35%, transparent);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.hinweis-karte .symbol { font-size: 22px; }
.hinweis-karte .titel { font-weight: 600; }
.hinweis-karte .unter { font-size: 14px; color: var(--text-leise); }

.nicht-dabei {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--karte);
  border: 1px dashed var(--linie);
  border-radius: 16px;
  color: var(--text-leise);
  text-align: center;
}

.warnzeile {
  background: color-mix(in srgb, var(--akzent) 12%, transparent);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
}

/* ---------- Punkte ---------- */

.punkte-karte {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 18px;
  margin-bottom: 16px;
}
.punkte-kopf { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.punkte-kopf .emoji { font-size: 30px; }
.punkte-kopf .name { font-size: 20px; font-weight: 700; }

.punkte-zahlen { display: flex; gap: 12px; }
.punkte-kasten {
  flex: 1;
  background: color-mix(in srgb, var(--grund) 70%, transparent);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
}
.punkte-zahl { font-size: 34px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.punkte-titel { font-size: 14px; font-weight: 600; }
.punkte-neben { font-size: 12px; color: var(--text-leise); margin-top: 2px; }

.verlauf-titel { font-size: 13px; color: var(--text-leise); margin: 18px 0 8px; font-weight: 600; }
.verlauf { display: flex; gap: 6px; align-items: flex-end; }
.verlauf-spalte { flex: 1; text-align: center; }
.verlauf-roehre {
  height: 70px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--text-leise) 12%, transparent);
  display: flex; align-items: flex-end; overflow: hidden;
}
.verlauf-fuellung { width: 100%; background: var(--akzent); border-radius: 8px; }
.verlauf-spalte.jetzt .verlauf-fuellung { background: var(--fertig); }
.verlauf-wert { font-size: 12px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.verlauf-kw { font-size: 10px; color: var(--text-leise); }

/* ---------- Verwaltung ---------- */

.menue-zeile {
  width: 100%;
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  min-height: var(--tippflaeche);
}
.menue-zeile:active { filter: brightness(.96); }
.menue-zeile .symbol { font-size: 26px; }
.menue-zeile .mitte { flex: 1; min-width: 0; }
.menue-zeile .titel { font-weight: 600; font-size: 17px; }
.menue-zeile .unter { font-size: 14px; color: var(--text-leise); }
.menue-zeile .pfeil { color: var(--text-leise); font-size: 24px; }
.menue-zeile.inaktiv { opacity: .5; }

.verwalt-karte {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 16px 18px;
}
.verwalt-karte.inaktiv { opacity: .55; }
.verwalt-karte.jetzt { border-color: var(--akzent); }
.verwalt-karte .zeile-kopf { display: flex; align-items: center; gap: 12px; }
.verwalt-karte .zeile-kopf .emoji { font-size: 28px; }
.verwalt-karte .titel { font-weight: 600; font-size: 17px; }
.verwalt-karte .unter { font-size: 14px; color: var(--text-leise); }

.marke.pin { background: color-mix(in srgb, var(--akzent) 20%, transparent); color: #b06a00; font-size: 11px; }

.felder { margin: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.feld { display: flex; align-items: center; gap: 12px; }
.feld-name { flex: 0 0 42%; font-size: 15px; color: var(--text-leise); }
.feld input[type=text], .feld input[type=number], .feld input[type=date], .feld select {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  font-size: 17px;
  border-radius: 12px;
  border: 1px solid var(--linie);
  background: var(--grund);
  color: var(--text);
}
.feld.schalter input[type=checkbox] { width: 28px; height: 28px; accent-color: var(--fertig); }

.wahl-reihe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wahl-knopf {
  flex: 1 1 30%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--linie);
  background: var(--grund);
  font-size: 15px;
  font-weight: 600;
}
.wahl-knopf.gewaehlt { background: var(--akzent); color: #fff; border-color: transparent; }
.wahl-knopf.leise-knopf { color: var(--text-leise); font-weight: 500; }

.weg-knopf {
  background: none;
  border: none;
  color: var(--rot);
  font-size: 15px;
  padding: 10px;
  min-height: 44px;
}

/* ---------- Dienst-Zusatz auf der Startseite ---------- */

.dienst-zusatz {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.35;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.18);
  border-radius: 12px;
  padding: 10px 12px;
}

/* ---------- Dienstplan-Kalender ---------- */

.tag-zeile {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: 18px;
  box-shadow: var(--schatten);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.tag-zeile.heute { border-color: var(--akzent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--akzent) 30%, transparent); }
.tag-zeile.vergangen { opacity: .55; }

.tag-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tag-datum { display: flex; align-items: baseline; gap: 8px; }
.tag-name { font-size: 17px; font-weight: 700; }
.tag-zahl { font-size: 15px; color: var(--text-leise); font-variant-numeric: tabular-nums; }
.tag-marke { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.kaesten { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.kasten {
  flex: 1 1 40%;
  min-height: 56px;
  border-radius: 14px;
  border: 1px solid var(--linie);
  background: var(--grund);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}
.kasten .haken {
  width: 26px; height: 26px;
  flex: none;
  border-radius: 8px;
  border: 2px solid var(--text-leise);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: transparent;
}
.kasten.gesetzt { background: color-mix(in srgb, var(--fertig) 12%, var(--karte)); border-color: var(--fertig); }
.kasten.gesetzt .haken { background: var(--fertig); border-color: var(--fertig); color: #fff; }
.kasten.abwesend { opacity: .6; }
.kasten-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kasten-notiz { font-size: 12px; font-weight: 500; color: var(--text-leise); }

.tag-knoepfe { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tag-knopf {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--linie);
  background: none;
  color: var(--blau);
  font-size: 14px;
  font-weight: 600;
}
