/* Brass'd scho – Apple-ähnliches Aussehen, Navy/Weiß */
:root {
  --navy: #001534;
  --navy-2: #1a3260;
  --akzent: #001534;
  --bg: #f2f2f7;
  --karte: #ffffff;
  --text: #1c1c1e;
  --text-2: #6c6c70;
  --linie: rgba(60, 60, 67, 0.16);
  --gruen: #248a3d;
  --rot: #d70015;
  --orange: #c45500;
  --gelb-bg: #fff4d6;
  --rot-bg: #ffe5e7;
  --gruen-bg: #e3f5e8;
  --blau-bg: #e6ebf5;
  --tab-bg: rgba(249, 249, 251, 0.94);
  --radius: 12px;
  --sicher-unten: env(safe-area-inset-bottom, 0px);
  --sicher-oben: env(safe-area-inset-top, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --akzent: #9db4ea;
    --bg: #000000;
    --karte: #1c1c1e;
    --text: #f2f2f7;
    --text-2: #a1a1a8;
    --linie: rgba(84, 84, 88, 0.6);
    --gruen: #30d158;
    --rot: #ff6961;
    --orange: #ffb340;
    --gelb-bg: #3a2f12;
    --rot-bg: #3d1517;
    --gruen-bg: #10301a;
    --blau-bg: #1e2740;
    --tab-bg: rgba(22, 22, 24, 0.94);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--akzent); text-decoration: none; }

/* ---------- Ladebildschirm ---------- */
#laden {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--navy);
  transition: opacity .35s ease;
}
#laden.weg { opacity: 0; pointer-events: none; }
/* Logo kommt aus dem Nichts nach vorne geflogen und pulsiert dann, solange die App lädt */
#laden img {
  width: min(72vw, 320px); height: auto;
  animation: einflug .9s cubic-bezier(.16, 1, .3, 1) both, puls 1.3s ease-in-out .9s infinite;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .45));
}
@keyframes einflug {
  0% { transform: scale(.15); opacity: 0; filter: blur(8px) drop-shadow(0 0 0 rgba(0,0,0,0)); }
  70% { opacity: 1; filter: blur(0) drop-shadow(0 12px 30px rgba(0, 0, 0, .45)); }
  100% { transform: scale(1); opacity: 1; filter: blur(0) drop-shadow(0 12px 30px rgba(0, 0, 0, .45)); }
}
@keyframes puls {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  #laden img { animation: puls-ruhig 1.6s ease-in-out infinite; }
  @keyframes puls-ruhig { 50% { opacity: .55; } }
}

/* ---------- Grundgerüst ---------- */
#app { max-width: 720px; margin: 0 auto; padding: calc(var(--sicher-oben) + 8px) 16px calc(96px + var(--sicher-unten)); }
.kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 8px 0 14px; min-height: 44px; }
.kopf h1 { font-size: 32px; line-height: 1.1; margin: 0; font-weight: 700; letter-spacing: -.02em; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.kopf .rechts { display: flex; gap: 8px; flex-shrink: 0; }
.zurueck { display: inline-flex; align-items: center; gap: 2px; color: var(--akzent); background: none; border: 0; padding: 8px 0; cursor: pointer; font-size: 17px; }
.zurueck svg { width: 20px; height: 20px; }
.unterzeile { color: var(--text-2); font-size: 15px; margin: -8px 0 14px; }

h2.abschnitt { font-size: 13px; font-weight: 400; text-transform: uppercase; color: var(--text-2); margin: 24px 16px 7px; letter-spacing: .02em; }
.fusszeile { font-size: 13px; color: var(--text-2); margin: 7px 16px 0; }

/* ---------- Listen (gruppiert, eingerückt) ---------- */
.liste { background: var(--karte); border-radius: var(--radius); overflow: hidden; }
.zeile {
  display: flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 10px 16px; position: relative;
  background: none; border: 0; width: 100%; text-align: left; cursor: default;
}
.zeile + .zeile::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid var(--linie); }
button.zeile, a.zeile { cursor: pointer; color: inherit; }
button.zeile:active, a.zeile:active { background: var(--linie); }
.zeile .mitte { flex: 1; min-width: 0; }
.zeile .titel { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.zeile .klein { font-size: 14px; color: var(--text-2); overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.zeile .wert { color: var(--text-2); text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.zeile .pfeil { width: 8px; height: 14px; color: #c4c4c7; flex-shrink: 0; }
.zeile .symbol { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.zeile .symbol svg { width: 18px; height: 18px; }
.leer { padding: 18px 16px; color: var(--text-2); text-align: center; }

/* ---------- Dashboard-Kacheln ---------- */
.kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kachel {
  background: var(--karte); border-radius: var(--radius); padding: 14px 14px 12px;
  border: 0; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.kachel:active { transform: scale(.98); }
.kachel.breit { grid-column: 1 / -1; }
.kachel .k-titel { font-size: 13px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .02em; }
.kachel .k-titel svg { width: 16px; height: 16px; }
.kachel .k-gross { font-size: 26px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.kachel .k-text { font-size: 17px; font-weight: 600; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.kachel .k-klein { font-size: 14px; color: var(--text-2); overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.kachel.navy { background: var(--navy); color: #fff; }
.kachel.navy .k-titel, .kachel.navy .k-klein { color: rgba(255,255,255,.75); }

.hinweis { border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.hinweis svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.hinweis.gelb { background: var(--gelb-bg); }
.hinweis.rot { background: var(--rot-bg); }
.hinweis.gruen { background: var(--gruen-bg); }
.hinweis.blau { background: var(--blau-bg); }

/* ---------- Abzeichen ---------- */
.abz { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.abz.angefragt { background: var(--blau-bg); color: var(--akzent); }
.abz.abstimmung { background: var(--gelb-bg); color: var(--orange); }
.abz.zugesagt { background: var(--gruen-bg); color: var(--gruen); }
.abz.intern { background: var(--gruen-bg); color: var(--gruen); border: 1px dashed currentColor; }
.abz.geplant { background: var(--gelb-bg); color: var(--orange); border: 1px dashed currentColor; }
.abz.abgesagt { background: var(--rot-bg); color: var(--rot); }
.abz.grau { background: var(--linie); color: var(--text-2); }
.betrag-plus { color: var(--gruen); }
.betrag-minus { color: var(--rot); }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 50px; padding: 0 20px; border-radius: 12px; border: 0;
  background: var(--navy); color: #fff; font-weight: 600; cursor: pointer; width: 100%;
}
@media (prefers-color-scheme: dark) { .knopf { background: #3a5291; } }
.knopf:active { opacity: .8; }
.knopf:disabled { opacity: .4; }
.knopf.zweit { background: var(--karte); color: var(--akzent); }
.knopf.rot { background: var(--karte); color: var(--rot); }
.knopf.klein { min-height: 36px; padding: 0 14px; width: auto; font-size: 15px; border-radius: 18px; }
.knopf svg { width: 20px; height: 20px; }
.knopfreihe { display: flex; gap: 10px; margin-top: 12px; }
.knopfreihe > * { flex: 1; }
.rund {
  width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--karte); color: var(--akzent); cursor: pointer;
}
.rund svg { width: 20px; height: 20px; }
.rund.navy { background: var(--navy); color: #fff; }
.textknopf { background: none; border: 0; color: var(--akzent); cursor: pointer; padding: 8px 0; font-size: 17px; }

/* Segment-Umschalter */
.segment { display: flex; background: var(--linie); border-radius: 9px; padding: 2px; margin: 0 0 12px; }
.segment button { flex: 1; border: 0; background: none; padding: 7px 4px; border-radius: 7px; font-size: 14px; font-weight: 500; cursor: pointer; min-width: 0; }
.segment button.an { background: var(--karte); box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }

/* ---------- Tab-Leiste ---------- */
#tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: center;
  background: var(--tab-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: .5px solid var(--linie);
  padding-bottom: var(--sicher-unten);
}
#tabs .innen { display: flex; width: 100%; max-width: 720px; }
#tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 5px; color: #8e8e93; font-size: 10px; font-weight: 500; position: relative; }
#tabs a svg { width: 26px; height: 26px; }
#tabs a.an { color: var(--akzent); }
#tabs .punkt { position: absolute; top: 3px; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rot); color: #fff; font-size: 12px; line-height: 18px; text-align: center; }

/* ---------- Formulare ---------- */
.feld { display: flex; align-items: center; gap: 12px; padding: 0 16px; min-height: 48px; position: relative; }
.feld + .feld::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid var(--linie); }
.feld label { width: 38%; flex-shrink: 0; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.feld input, .feld select, .feld textarea {
  flex: 1; min-width: 0; border: 0; background: none; padding: 12px 0; outline: none; font-size: 17px; text-align: right;
}
.feld textarea { text-align: left; resize: vertical; min-height: 80px; }
.feld.block { flex-direction: column; align-items: stretch; gap: 0; padding-top: 10px; }
.feld.block label { width: auto; font-size: 13px; color: var(--text-2); }
.feld.block input, .feld.block select { text-align: left; }
/* Schalter nie zusammendrücken (vorher flex:0 + min-width:0 -> Breite 0, nur der Knopf stand rechts raus) */
.feld input.schalter, .zeile input.schalter { flex: 0 0 51px; width: 51px; min-width: 51px; height: 31px; padding: 0; }
.feld:has(> input.schalter) > span { min-width: 0; }
.schalter { background: #e3e3e8; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.schalter:checked { background: #34c759; box-shadow: none; }
@media (prefers-color-scheme: dark) { .schalter { background: #39393d; } .schalter:checked { background: #30d158; } }
.schalter { appearance: none; -webkit-appearance: none; width: 51px; height: 31px; border-radius: 16px; background: var(--linie); position: relative; cursor: pointer; flex-shrink: 0; margin-left: auto; transition: background .2s; }
.schalter::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.schalter:checked { background: #34c759; }
.schalter:checked::after { transform: translateX(20px); }

/* ---------- Blatt (Bottom Sheet) ---------- */
#blatt-huelle, .huelle { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s; }
#blatt-huelle.offen, .huelle.offen { opacity: 1; }
.huelle.oben { z-index: 60; }
.blatt {
  background: var(--bg); width: 100%; max-width: 720px; max-height: 92dvh; overflow-y: auto;
  border-radius: 14px 14px 0 0; padding: 0 16px calc(24px + var(--sicher-unten));
  transform: translateY(100%); transition: transform .3s cubic-bezier(.32,.72,0,1);
}
#blatt-huelle.offen .blatt, .huelle.offen .blatt { transform: none; }
.blatt-kopf { position: sticky; top: 0; z-index: 1; background: var(--bg); display: flex; align-items: center; justify-content: space-between; padding: 12px 0; margin-bottom: 4px; gap: 8px; }
.blatt-kopf h3 { margin: 0; font-size: 17px; font-weight: 600; text-align: center; flex: 1; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.blatt-kopf button { min-width: 70px; }
.blatt-kopf button:last-child { text-align: right; font-weight: 600; }
.blatt-kopf button:first-child { text-align: left; }
@media (min-width: 760px) {
  #blatt-huelle, .huelle { align-items: center; }
  .blatt { border-radius: 14px; max-height: 86dvh; width: 560px; }
}

/* ---------- Assistent (eine Frage pro Bildschirm) ---------- */
.assistent { display: flex; flex-direction: column; min-height: calc(100dvh - 140px); }
.fortschritt { height: 4px; background: var(--linie); border-radius: 2px; overflow: hidden; margin: 4px 0 28px; }
.fortschritt div { height: 100%; background: var(--akzent); transition: width .3s ease; }
.frage { font-size: 28px; font-weight: 700; line-height: 1.15; margin: 0 0 8px; letter-spacing: -.01em; }
.frage-hilfe { color: var(--text-2); margin: 0 0 22px; font-size: 15px; }
.gross-eingabe {
  width: 100%; border: 0; border-radius: var(--radius); background: var(--karte); padding: 16px; font-size: 22px; outline: none;
}
.gross-eingabe:focus { box-shadow: 0 0 0 2px var(--akzent); }
textarea.gross-eingabe { font-size: 18px; min-height: 140px; resize: vertical; }
.mit-mikro { position: relative; }
.mit-mikro .gross-eingabe { padding-right: 60px; }
.mikro { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--blau-bg); color: var(--akzent); display: grid; place-items: center; cursor: pointer; }
.mikro svg { width: 22px; height: 22px; }
.mikro.hoert { background: var(--rot); color: #fff; animation: puls 1.2s ease-in-out infinite; }
.auswahl { display: flex; flex-direction: column; gap: 10px; }
.auswahl button {
  min-height: 56px; border-radius: var(--radius); border: 2px solid transparent; background: var(--karte);
  font-size: 18px; font-weight: 500; text-align: left; padding: 12px 16px; cursor: pointer; display: flex; align-items: center; gap: 12px;
}
.auswahl button .unter { display: block; font-size: 14px; color: var(--text-2); font-weight: 400; }
.auswahl button.an { border-color: var(--akzent); background: var(--blau-bg); }
.auswahl button .haken { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--linie); flex-shrink: 0; display: grid; place-items: center; }
.auswahl button.an .haken { background: var(--akzent); border-color: var(--akzent); color: var(--karte); }
.auswahl button .haken svg { width: 14px; height: 14px; }
.assistent .unten { margin-top: auto; padding-top: 24px; padding-bottom: env(safe-area-inset-bottom); display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 5; }

/* ---------- Abstimmen ---------- */
.optionen { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.optionen button { min-height: 64px; border-radius: var(--radius); border: 2px solid transparent; background: var(--karte); font-size: 18px; font-weight: 600; cursor: pointer; }
.optionen button.an { border-color: var(--akzent); background: var(--blau-bg); color: var(--akzent); }
.optionen button.ja.an { border-color: var(--gruen); background: var(--gruen-bg); color: var(--gruen); }
.optionen button.nein.an { border-color: var(--rot); background: var(--rot-bg); color: var(--rot); }
.balken { height: 8px; border-radius: 4px; background: var(--linie); overflow: hidden; margin-top: 6px; }
.balken div { height: 100%; background: var(--akzent); border-radius: 4px; }
.zwei { display: flex; gap: 6px; flex-shrink: 0; }
.zwei button { min-height: 36px; min-width: 62px; border-radius: 18px; border: 0; background: var(--linie); font-size: 14px; font-weight: 600; cursor: pointer; padding: 0 12px; }
.zwei button.an.rein { background: var(--gruen); color: #fff; }
.zwei button.an.raus { background: var(--rot); color: #fff; }

/* ---------- Anmeldung ---------- */
.anmeldung { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; gap: 14px; }
.anmeldung .logo { width: 220px; max-width: 70%; height: auto; margin: 0 auto 6px; }
.anmeldung h1 { text-align: center; margin: 0; font-size: 30px; }
.anmeldung p { text-align: center; color: var(--text-2); margin: 0 0 8px; }

/* ---------- Kleinkram ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(100px + var(--sicher-unten)); transform: translateX(-50%) translateY(20px);
  background: rgba(30,30,32,.92); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 15px;
  z-index: 90; opacity: 0; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center;
  pointer-events: none; /* Meldung darf NIE Fingertipps abfangen – auch unsichtbar lag sie sonst über den Knöpfen */
}
.toast.zeigen { opacity: 1; transform: translateX(-50%); }
.sp { height: 16px; }
.mitte-text { text-align: center; }
.grau { color: var(--text-2); }
.zahl { font-variant-numeric: tabular-nums; }
.pdf-rahmen { width: 100%; height: 75dvh; border: 0; border-radius: var(--radius); background: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Layout-Überarbeitung 23.11. ---------- */
.knopf-hinweis { width: 100%; border: 0; text-align: left; cursor: pointer; align-items: center; color: inherit; }
.kopfzeile { display: flex; justify-content: space-between; align-items: baseline; }
.kopfzeile a { text-transform: none; font-size: 15px; letter-spacing: 0; }
.dblock { width: 46px; flex-shrink: 0; text-align: center; border-radius: 10px; padding: 5px 0 4px; background: var(--blau-bg); color: var(--akzent); line-height: 1; }
.dblock b { display: block; font-size: 20px; font-weight: 700; }
.dblock span { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; margin-top: 2px; }
.dblock.zugesagt { background: var(--gruen-bg); color: var(--gruen); }
.dblock.intern { background: var(--gruen-bg); color: var(--gruen); }
.dblock.geplant, .dblock.abstimmung { background: var(--gelb-bg); color: var(--orange); }
.dblock.abgesagt { background: var(--rot-bg); color: var(--rot); opacity: .7; }
.k-von { font-size: 15px; color: var(--text-2); font-weight: 600; }
.kachel .balken { width: 100%; }
svg.mini { width: 14px; height: 14px; vertical-align: -2px; }
.termin-karte { display: flex; gap: 14px; align-items: center; background: var(--karte); border-radius: var(--radius); padding: 14px 16px; margin: -4px 0 12px; }
.termin-karte .mitte { flex: 1; min-width: 0; }
.termin-karte .titel { font-weight: 600; }
.termin-karte .klein { font-size: 14px; color: var(--text-2); }
.abz-knopf { border: 0; background: none; display: flex; align-items: center; gap: 4px; cursor: pointer; padding: 6px 0; flex-shrink: 0; }
.abz-knopf .pfeil { width: 6px; height: 11px; }
.fehlt { display: block; width: 100%; text-align: left; border: 1px dashed var(--linie); background: none; color: var(--text-2); font-size: 14px; border-radius: var(--radius); padding: 10px 14px; margin-top: 10px; cursor: pointer; }
.fehlt:disabled { cursor: default; }
.haken-kreis { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--linie); flex-shrink: 0; display: grid; place-items: center; color: #fff; }
.haken-kreis.an { background: var(--gruen); border-color: var(--gruen); }
.haken-kreis svg { width: 15px; height: 15px; }
.zeile-link { display: flex; align-items: center; gap: 12px; color: inherit; min-width: 0; }

/* ---------- Aufgaben ---------- */
#tabs .punkt.blau { background: #0a84ff; }
.aufgabe { align-items: flex-start; }
.aufgabe .haken-kreis { cursor: pointer; background: none; margin-top: 1px; }
.aufgabe .haken-kreis.an { background: var(--gruen); }
.aufgabe .haken-kreis:disabled { opacity: .35; cursor: default; }
.aufgabe-text { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; }
.aufgabe.fertig .titel { text-decoration: line-through; color: var(--text-2); }
.neue-aufgabe { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.neue-aufgabe .gross-eingabe { font-size: 17px; padding: 13px 14px; }
.neue-aufgabe .mit-mikro .gross-eingabe { padding-right: 50px; }
.neue-aufgabe .mikro { width: 36px; height: 36px; top: 50%; right: 7px; transform: translateY(-50%); }
.neue-aufgabe .mikro svg { width: 18px; height: 18px; }

/* ---------- Einstellungen: alle Zeilen gleich (Beschriftung links, Wert rechts) ---------- */
.einst-zeile { display: flex; align-items: center; gap: 12px; padding: 8px 16px; min-height: 52px; position: relative; cursor: text; }
.einst-zeile + .einst-zeile::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid var(--linie); }
.einst-label { flex: 1; min-width: 0; }
.einst-label small { display: block; font-size: 13px; color: var(--text-2); }
.einst-wert { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.einst-wert input { width: 96px; border: 0; background: var(--bg); border-radius: 8px; padding: 7px 10px; text-align: right; font-size: 17px; outline: none; font-variant-numeric: tabular-nums; }
.einst-wert input:focus { box-shadow: 0 0 0 2px var(--akzent); }
.einst-wert .einheit { color: var(--text-2); min-width: 22px; }


/* =====================================================================
   Design-Überarbeitung 23.11.: ruhiger, markanter, mehr „Apple-App“
   ===================================================================== */
:root {
  --rot-marke: #a80000;          /* Rot aus dem Frankenwappen im Logo */
  --chip: #eceef3;
  --schatten: 0 1px 2px rgba(0, 21, 52, .05), 0 2px 8px rgba(0, 21, 52, .04);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root { --rot-marke: #ff6b61; --chip: #2c2c2e; --schatten: none; }
}

/* Überschriften: fett, normale Schreibweise statt kleiner grauer GROSSBUCHSTABEN */
h2.abschnitt {
  font-size: 21px; font-weight: 700; text-transform: none; letter-spacing: -.015em;
  color: var(--text); margin: 28px 4px 10px;
}
.blatt h2.abschnitt { font-size: 17px; margin: 18px 4px 8px; }
.kopfzeile a { font-size: 16px; font-weight: 500; color: var(--akzent); }
.kopf { margin: 8px 0 16px; }
.kopf-text { min-width: 0; }
.oberzeile { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--rot-marke); margin-bottom: 2px; }
.kopf h1 { font-size: 34px; letter-spacing: -.025em; }

/* Karten: etwas runder, ganz leichter Schatten */
.liste, .kachel, .termin-karte, .jz { box-shadow: var(--schatten); }
.zeile { min-height: 56px; }
.zeile .titel { font-weight: 600; }
.zeile .klein { margin-top: 1px; }

/* Status: ruhige graue Pille mit farbigem Punkt (statt gestrichelter Farbkästen) */
.abz {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 999px;
  background: var(--chip); color: var(--text-2); border: 0 !important; --punkt: #8e8e93;
}
.abz::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--punkt); flex-shrink: 0; }
.abz.zugesagt { --punkt: #34c759; background: var(--chip); color: var(--text-2); }
.abz.intern { --punkt: #5e5ce6; background: var(--chip); color: var(--text-2); }
.abz.geplant, .abz.abstimmung { --punkt: #ff9f0a; background: var(--chip); color: var(--text-2); }
.abz.angefragt { --punkt: #8e8e93; background: var(--chip); color: var(--text-2); }
.abz.abgesagt { --punkt: #ff3b30; background: var(--chip); color: var(--text-2); }
.abz.grau::before { display: none; }

/* Datumsblock wie ein Kalenderblatt: Monat oben in Wappen-Rot, Tag groß in Navy */
.dblock, .dblock.zugesagt, .dblock.intern, .dblock.geplant, .dblock.abstimmung, .dblock.abgesagt {
  width: 48px; padding: 0 0 5px; overflow: hidden; border-radius: 11px;
  background: var(--karte); color: var(--text); box-shadow: inset 0 0 0 1px var(--linie); opacity: 1;
}
.dblock span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--rot-marke); padding: 3px 0 2px; margin: 0 0 3px; }
.dblock b { display: block; font-size: 21px; font-weight: 700; line-height: 1.05; color: var(--navy); }
@media (prefers-color-scheme: dark) { .dblock b { color: #fff; } }
.dblock.abgesagt { opacity: .45; }

/* Kacheln */
.kachel { padding: 14px 15px 13px; }
.kachel .k-titel { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; }
.kachel .k-titel svg { width: 18px; height: 18px; color: var(--akzent); }
.kachel.navy .k-titel svg { color: #fff; }
.kachel .k-gross { font-size: 28px; }

/* Jahreszähler auf der Auftritte-Seite */
.jahres-zaehler { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: -2px 0 8px; }
.jz { background: var(--karte); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.jz-jahr { font-size: 13px; font-weight: 600; color: var(--text-2); }
.jz-zahl { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.jz-zahl small { font-size: 15px; color: var(--text-2); font-weight: 600; }
.jz-text { font-size: 13px; color: var(--text-2); }

/* Hinweise: weicher, ohne harte Farbflächen */
.hinweis { border-radius: var(--radius); }

/* Rückmeldung beim Antippen (fühlt sich „echt“ an) */
.knopf, .kachel, .rund, .optionen button, .auswahl button { transition: transform 160ms var(--ease-out), opacity 160ms var(--ease-out); }
.knopf:active, .rund:active, .optionen button:active, .auswahl button:active { transform: scale(.97); }
.kachel:active { transform: scale(.98); }
button.zeile, a.zeile { transition: background-color 120ms ease; }
@media (hover: hover) and (pointer: fine) {
  button.zeile:hover, a.zeile:hover { background: color-mix(in srgb, var(--linie) 45%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .knopf:active, .rund:active, .kachel:active, .optionen button:active, .auswahl button:active { transform: none; }
}
.zaehler-chip { font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--chip); padding: 3px 10px; border-radius: 999px; letter-spacing: 0; }
.zaehler-chip.fertig { color: var(--gruen); }
