/* JG Kompass – Variante B (Zeitstrahl) im Design „Feuer“
 * Vorlage: Input-Werkstatt Design C „Feuer“ + vorschau.html (?v=b)
 * Immer dunkel · Schwarzer Grund · Feuer-Verläufe · Filmkorn · Sticker-Etiketten
 * Anton nur für große Überschriften · Atkinson Hyperlegible in normaler Stärke (400) für Lesetext
 */

:root {
  --bg: #09080d;
  --bg2: #110f17;
  --flaeche: #16131e;
  --flaeche2: #201b2b;
  --linie: #2d2638;
  --linie-hell: #3e354d;

  --text: #f6f1e9;
  --text2: #b5aebf;
  --text3: #877f94;

  /* Feuer-Grundpalette & Bereichsfarben */
  --f1: #ff6a2b;
  --f2: #ff2e88;
  --gold: #ffc23d;
  --gruen: #2ed39a;
  --blau: #5ab8ff;
  --rot: #ff5454;
  --lila: #c58cff;

  --feuer: linear-gradient(112deg, #ff6a2b 0%, #ff2e88 100%);
  --feuer-gold: linear-gradient(118deg, #ffc23d 0%, #ff6a2b 100%);
  --feuer-gruen: linear-gradient(118deg, #2ed39a 0%, #1c9678 100%);
  --feuer-blau: linear-gradient(118deg, #5ab8ff 0%, #4b74ff 100%);

  /* Aktive Bereichsfarbe (wird je Ansicht per body[data-bereich] überschrieben) */
  --c: #ff6a2b;
  --c2: #ff2e88;

  --schatten: 0 14px 40px rgba(0, 0, 0, .55);
  --rund: 14px;
  --rund-k: 8px;

  --schrift-titel: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --schrift: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Schriftgröße A+ (1 = 100%, 1.2 = 120%, 1.3 = 130%, 1.4 = 140%, 1.5 = 150%) */
  --gr: 1;
  --fs-xs: calc(13.5px * var(--gr));
  --fs-sm: calc(15px * var(--gr));
  --fs-md: calc(17px * var(--gr));
  --fs-lg: calc(20px * var(--gr));
  --fs-h3: calc(21px * var(--gr));
  --fs-h2: min(calc(30px * var(--gr)), 10vw);
  --fs-h1: min(calc(46px * var(--gr)), 12.5vw);

  --glanz:
    radial-gradient(960px 620px at -8% 108%, rgba(255, 106, 43, .20), transparent 60%),
    radial-gradient(860px 560px at 108% -8%, rgba(255, 46, 136, .16), transparent 60%);

  color-scheme: dark;
}

/* Bereichsfarben (je Bereich eigene Farbe) */
body[data-bereich="zeitstrahl"] { --c: #ff6a2b; --c2: #ff2e88; }
body[data-bereich="treffen"]    { --c: #ff2e88; --c2: #ff6a2b; }
body[data-bereich="ziele"]      { --c: #ffc23d; --c2: #ff6a2b; }
body[data-bereich="aufgaben"]   { --c: #ff7b33; --c2: #ffc23d; }
body[data-bereich="dienstplan"] { --c: #2ed39a; --c2: #5ab8ff; }
body[data-bereich="kalender"]   { --c: #ffb020; --c2: #ff2e88; }
body[data-bereich="teams"]      { --c: #5ab8ff; --c2: #2ed39a; }
body[data-bereich="nordstern"]  { --c: #ffc23d; --c2: #ff2e88; }
body[data-bereich="mehr"]       { --c: #ff6a2b; --c2: #ff2e88; }

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

html {
  margin: 0;
  height: 100%;
  font-size: 16px;
  touch-action: manipulation;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--bg);
  background-image: var(--glanz);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--schrift);
  font-weight: 400;
  font-size: var(--fs-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Feines Filmkorn (Design Feuer) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .065;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--f1); color: #09080d; }

a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--c);
  outline-offset: 2px;
}

.sr-nur {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.sprung {
  position: fixed;
  left: -9999px;
  top: 8px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--f1);
  color: #12090d;
  font-weight: 700;
  text-decoration: none;
}
.sprung:focus { left: 8px; }

/* Typografie: Anton NUR für große Überschriften, Atkinson Hyperlegible normal für Lesetext */
h1, h2 {
  font-family: var(--schrift-titel);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .015em;
  margin: 0 0 .25em;
  overflow-wrap: break-word;
  hyphens: auto;
}
h1 { font-size: var(--fs-h1); line-height: .96; }
h2 { font-size: var(--fs-h2); line-height: 1.02; }
h3, h4 {
  font-family: var(--schrift);
  font-weight: 700;
  margin: 0 0 .35em;
  line-height: 1.25;
}
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 .75em; font-weight: 400; }
p:last-child { margin-bottom: 0; }

.leise { color: var(--text2); }
.klein { font-size: var(--fs-sm); color: var(--text2); }
.mini { font-size: var(--fs-xs); color: var(--text2); }

.ico {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

/* ==================== Grundlayout (iPad & Mac + iPhone) ==================== */
#app {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100dvh;
}

.seite {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 20px 14px 16px;
  border-right: 1px solid var(--linie);
  background: rgba(13, 11, 18, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 16px;
  overflow-y: auto;
}

.marke {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 4px 8px 20px;
}

.marke b, .kopf-marke b {
  display: block;
  font-family: var(--schrift-titel);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  letter-spacing: .03em;
  background: linear-gradient(95deg, #fff 0%, var(--gold) 50%, var(--f1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.marke small {
  display: block;
  font-size: 13px;
  color: var(--text2);
  margin-top: 2px;
}

.marke-zeichen {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #13090e;
  background: linear-gradient(140deg, #ff6a2b, #ff2e88 62%, #ffc23d);
  box-shadow: 0 8px 22px rgba(255, 86, 68, .35);
  flex: none;
}
.marke-zeichen svg { width: 24px; height: 24px; }
.marke-zeichen.klein { width: 34px; height: 34px; border-radius: 8px; }
.marke-zeichen.klein svg { width: 20px; height: 20px; }

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text2);
  font-weight: 700;
  font-size: 15.5px;
  transition: background .15s, color .15s;
}

.nav a .ico { width: 20px; height: 20px; color: var(--nc, var(--text3)); }
.nav a:hover { background: var(--flaeche); color: var(--text); }
.nav a.aktiv {
  background: linear-gradient(90deg, color-mix(in srgb, var(--nc, var(--c)) 20%, transparent), rgba(255, 255, 255, .02));
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--nc, var(--c));
}

.nav-zaehler {
  margin-left: auto;
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--flaeche2);
  border: 1px solid var(--linie);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.seite-fuss {
  margin-top: auto;
  padding: 14px 6px 2px;
  border-top: 1px solid var(--linie);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.speicher-status {
  font-size: 12.5px;
  color: var(--gruen);
  line-height: 1.3;
}
.speicher-status.offline { color: var(--gold); }

/* ==================== Kopfleiste oben ==================== */
.buehne {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kopfleiste {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) clamp(14px, 3vw, 36px) 10px;
  background: rgba(9, 8, 13, .90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linie);
  font-size: 14px;
}

.kopf-marke {
  display: none;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex: none;
}
.kopf-marke b { font-size: 22px; }

.kopf-steuerung {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
  justify-content: flex-end;
}

.rollen-schalter {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  gap: 2px;
}

.rollen-schalter button {
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text2);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.rollen-schalter button[aria-pressed="true"] {
  background: var(--c);
  color: #11090e;
}

.ich-wahl select {
  min-height: 44px;
  padding: 0 28px 0 10px;
  border-radius: 10px;
  border: 1px solid var(--linie);
  background: var(--flaeche);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  width: auto;
  max-width: 150px;
  cursor: pointer;
}

.knopf-aplus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid var(--linie-hell);
  background: var(--flaeche);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
  transition: border-color .15s, background .15s;
}

.knopf-aplus:hover { border-color: var(--f1); }
.knopf-aplus.aktiv {
  background: var(--feuer);
  border-color: transparent;
  color: #13090d;
}
.aplus-label { font-family: var(--schrift-titel); font-size: 19px; letter-spacing: .03em; line-height: 1; }
.aplus-wert { font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* Gast-Hinweisband & Aufnahme-Banner */
.gast-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px clamp(14px, 3vw, 36px);
  background: linear-gradient(90deg, rgba(255, 194, 61, .16), rgba(255, 106, 43, .08));
  border-bottom: 1px solid rgba(255, 194, 61, .35);
  font-size: var(--fs-sm);
}
.gast-band strong { color: var(--gold); margin-right: 8px; }

.aufnahme-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 10px clamp(14px, 3vw, 36px);
  background: rgba(255, 46, 136, .16);
  border-bottom: 2px solid var(--f2);
  font-size: var(--fs-sm);
}

main {
  padding: 24px clamp(14px, 3.2vw, 40px) 96px;
  max-width: 1220px;
  width: 100%;
  min-width: 0;
  outline: none;
}

/* ==================== Bausteine & Feuer-Elemente ==================== */
.titelzeile {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.titelzeile .unter {
  font-size: var(--fs-md);
  color: var(--text2);
  margin: 4px 0 0;
}

.bereichs-linie {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--c);
  margin-bottom: 6px;
}

.bereichs-linie::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--c);
}

.karte {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  padding: clamp(14px, 2.2vw, 22px);
  min-width: 0;
}

.karte + .karte { margin-top: 14px; }
.stapel > * + * { margin-top: 14px; }
.stapel-eng > * + * { margin-top: 8px; }

.zeile {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.zwischen { justify-content: space-between; }

.k-titel {
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text2);
  font-weight: 700;
  margin-bottom: 10px;
}

/* Sticker-Etiketten (Design Feuer + Variante B) */
.etikett {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--schrift-titel);
  font-weight: 400;
  font-size: calc(13.5px * min(var(--gr), 1.3));
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--text);
  color: #110b10;
  transform: rotate(-1.6deg);
  line-height: 1.1;
  white-space: nowrap;
}
.etikett.rechts-kipp { transform: rotate(1.4deg); }
.etikett.gerade { transform: skew(-7deg); }
.etikett.feuer { background: var(--feuer); color: #14090d; }
.etikett.gold { background: var(--gold); color: #140d04; }
.etikett.gruen { background: var(--gruen); color: #062118; }
.etikett.blau { background: var(--blau); color: #061826; }
.etikett.rot { background: var(--rot); color: #1b0606; }
.etikett.dunkel { background: rgba(9, 8, 13, .82); color: var(--text); border: 1px solid rgba(255, 255, 255, .2); }
.etikett.leise-st { background: var(--flaeche2); color: var(--text2); border: 1px solid var(--linie); transform: none; }

/* Knöpfe (Tippfläche >= 44px) */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--rund-k);
  border: 0;
  background: var(--feuer);
  color: #14090d;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 26px -14px rgba(255, 106, 43, .85);
  transition: filter .15s, transform .1s;
  max-width: 100%;
  text-align: center;
}
.knopf:hover { filter: brightness(1.08); }
.knopf:active { transform: scale(.98); }
.knopf:disabled { opacity: .45; cursor: not-allowed; }

.knopf.zwei {
  background: var(--flaeche2);
  color: var(--text);
  border: 1px solid var(--linie-hell);
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
}
.knopf.zwei:hover { border-color: var(--c); }

.knopf.gut { background: var(--gruen); color: #072219; box-shadow: none; }
.knopf.warn { background: var(--gold); color: #171005; box-shadow: none; }
.knopf.gefahr { background: rgba(255, 84, 84, .18); color: #ff8080; border: 1px solid rgba(255, 84, 84, .45); box-shadow: none; text-transform: none; }
.knopf.dunkel { background: rgba(9, 8, 13, .82); color: var(--text); box-shadow: none; }

.knopf-klein {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 6px 12px;
  border-radius: var(--rund-k);
  border: 1px solid var(--linie-hell);
  background: var(--flaeche);
  color: var(--text);
  font-weight: 700;
  font-size: var(--fs-sm);
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.knopf-klein:hover { background: var(--flaeche2); border-color: var(--c); }
.knopf-klein.aktiv {
  background: var(--c);
  border-color: var(--c);
  color: #12090e;
}

.chip-reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--linie-hell);
  background: var(--flaeche);
  color: var(--text2);
  font-weight: 700;
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { color: var(--text); border-color: var(--c); }
.chip[aria-pressed="true"] {
  background: var(--c);
  border-color: var(--c);
  color: #13090e;
}

/* Formulare */
input[type="text"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: var(--rund-k);
  border: 1px solid var(--linie-hell);
  background: var(--bg2);
  color: var(--text);
  font-size: var(--fs-md);
  line-height: 1.4;
}
textarea { min-height: 108px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 26%, transparent);
}

.feld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.feld label { font-weight: 700; font-size: var(--fs-sm); color: var(--text2); }
.feld-zeile {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 12px;
}

.haken-zeile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--rund-k);
  border: 1px solid var(--linie-hell);
  background: var(--bg2);
  cursor: pointer;
  font-size: var(--fs-md);
}
.haken-zeile input[type="checkbox"] {
  width: 24px;
  height: 24px;
  min-height: 24px;
  flex: none;
  margin-top: 2px;
  accent-color: var(--c);
}

/* Personen-Avatar */
.av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #110a0f;
  flex: none;
  letter-spacing: .02em;
}
.av.klein { width: 28px; height: 28px; font-size: 11.5px; }
.av.gross { width: 46px; height: 46px; font-size: 16px; }

/* Fortschrittsbalken */
.balken {
  height: 10px;
  border-radius: 999px;
  background: var(--flaeche2);
  overflow: hidden;
  margin-top: 8px;
}
.balken > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c), var(--c2));
  transition: width .25s ease;
}

/* ==================== Aufnahme-Feld (Variante B) ==================== */
.aufn-leiste {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  align-items: stretch;
}

.aufn {
  flex: 1 1 250px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 46, 136, .12);
  border: 1.5px solid var(--f2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  min-height: 60px;
  transition: background .15s, transform .1s;
}
.aufn:hover { background: rgba(255, 46, 136, .20); }
.aufn:active { transform: scale(.99); }

.rec {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--f2);
  box-shadow: 0 0 0 6px rgba(255, 46, 136, .24);
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
}
.rec.aktiv { animation: puls 1.4s ease-in-out infinite; }
@keyframes puls {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 46, 136, .35); }
  50% { box-shadow: 0 0 0 11px rgba(255, 46, 136, .12); }
}
@media (prefers-reduced-motion: reduce) {
  .rec.aktiv { animation: none; }
}

.nur-meins-knopf {
  flex: 0 1 auto;
  min-height: 60px;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--linie-hell);
  background: var(--flaeche);
  color: var(--text);
  font-weight: 700;
  font-size: var(--fs-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nur-meins-knopf[aria-pressed="true"] {
  background: var(--feuer);
  border-color: transparent;
  color: #14090d;
}

/* ==================== Variante B: ZEITSTRAHL (.fluss) ==================== */
.start-gitter {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .9fr);
  gap: 24px;
  align-items: start;
}

.fluss {
  position: relative;
  padding-left: 68px;
}

.fluss::before {
  content: "";
  position: absolute;
  left: 52px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--f1), var(--linie) 25%, var(--linie) 85%, transparent);
}

.jetzt {
  font-family: var(--schrift-titel);
  font-size: calc(16px * min(var(--gr), 1.3));
  letter-spacing: .12em;
  color: var(--f1);
  margin: 0 0 14px -68px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.jetzt::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--f1), var(--f2) 55%, transparent);
}

.tag {
  position: relative;
  margin-bottom: 16px;
}

.tag .dat {
  position: absolute;
  left: -68px;
  top: 4px;
  width: 44px;
  text-align: right;
  font-family: var(--schrift-titel);
  font-size: calc(25px * min(var(--gr), 1.25));
  line-height: .95;
  color: var(--text);
}

.tag .dat small {
  display: block;
  font-family: var(--schrift);
  font-weight: 700;
  font-size: calc(11.5px * min(var(--gr), 1.2));
  color: var(--text2);
  margin-top: 3px;
  letter-spacing: .04em;
}

.tag::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--knoten, var(--text3));
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--knoten, var(--text3)) 45%, transparent);
}

.ein {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-left: 4px solid var(--ec, var(--linie));
  border-radius: 12px;
  padding: 12px 14px;
  font-size: var(--fs-md);
  color: var(--text);
  transition: border-color .15s, background .15s;
}
.ein + .ein { margin-top: 8px; }
.ein.klickbar { cursor: pointer; }
.ein.klickbar:hover { background: var(--flaeche2); border-color: var(--ec, var(--c)); }
.ein.gestrichelt { border-style: dashed; border-left-style: solid; }

.ein-zeile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  justify-content: space-between;
}
.ein-text { flex: 1; min-width: 0; }
.ein-meta {
  font-size: var(--fs-sm);
  color: var(--text2);
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
}

/* Große Feuer-Bänder für Highlights */
.band {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: clamp(16px, 2.5vw, 24px);
  color: #160a0f;
  background: var(--feuer);
  box-shadow: 0 14px 36px -14px rgba(255, 72, 92, .65);
}
.band.gold { background: var(--feuer-gold); box-shadow: 0 14px 36px -14px rgba(255, 176, 32, .55); }
.band.gruen { background: var(--feuer-gruen); color: #051e16; box-shadow: 0 14px 36px -14px rgba(46, 211, 154, .45); }
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(380px 240px at 100% 0%, rgba(255, 255, 255, .24), transparent 65%);
}
.band > * { position: relative; z-index: 1; }
.band .gross {
  font-family: var(--schrift-titel);
  font-weight: 400;
  text-transform: uppercase;
  font-size: min(calc(40px * var(--gr)), 11vw);
  line-height: .96;
  margin-top: 10px;
  letter-spacing: .01em;
}
.band .band-meta {
  font-weight: 700;
  font-size: var(--fs-md);
  margin-top: 6px;
}
.band .band-text {
  font-size: var(--fs-sm);
  margin-top: 6px;
  opacity: .92;
}
.band .balken { background: rgba(0, 0, 0, .24); }
.band .balken > i { background: #160a0f; }

.countdown-zahl {
  font-family: var(--schrift-titel);
  font-weight: 400;
  font-size: min(calc(34px * var(--gr)), 10vw);
  line-height: 1;
}

/* Abhak-Kreis (44x44 Tippfläche!) */
.haken-btn {
  width: 44px;
  height: 44px;
  margin: -8px 0 -8px -8px;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}
.haken-btn span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--text3);
  display: grid;
  place-items: center;
  color: #072219;
  transition: background .15s, border-color .15s;
}
.haken-btn:hover span { border-color: var(--gruen); }
.haken-btn[aria-pressed="true"] span {
  background: var(--gruen);
  border-color: var(--gruen);
}
.haken-btn span .ico { width: 15px; height: 15px; opacity: 0; }
.haken-btn[aria-pressed="true"] span .ico { opacity: 1; }
.erledigt-text { text-decoration: line-through; color: var(--text3); }

/* ==================== Treffen & Protokoll (Variante B) ==================== */
.treffen-layout {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.treffen-liste-karte {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--linie);
  background: var(--flaeche);
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.treffen-liste-karte + .treffen-liste-karte { margin-top: 10px; }
.treffen-liste-karte:hover { background: var(--flaeche2); }
.treffen-liste-karte.aktiv {
  border-color: var(--f2);
  background: linear-gradient(90deg, rgba(255, 46, 136, .16), var(--flaeche));
  box-shadow: inset 4px 0 0 var(--f2);
}

/* 3 Kennzahlen aus Variante B */
.zahlen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.zahl {
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
  background: var(--flaeche);
  border: 1px solid var(--linie);
}
.zahl b {
  display: block;
  font-family: var(--schrift-titel);
  font-size: calc(40px * min(var(--gr), 1.3));
  font-weight: 400;
  line-height: 1;
}
.zahl span {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-xs);
  color: var(--text2);
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 700;
}

/* „Wer macht was“ Spalten aus Variante B */
.spalten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 10px;
}

.sp {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 14px;
  padding: 12px;
  min-width: 0;
}

.sp-kopf {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 700;
}

.sp-punkt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--fs-sm);
  line-height: 1.35;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  margin-top: 6px;
}

/* Beschlüsse als markante Zitate + Sticker */
.zitat {
  border-left: 4px solid var(--zc, var(--gold));
  padding: 6px 0 6px 14px;
  margin: 10px 0;
}
.zitat-text {
  font-size: var(--fs-md);
  margin-top: 6px;
}

/* Tagesordnung */
.to-zeile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--linie);
}
.to-zeile:first-child { border-top: 0; padding-top: 4px; }
.to-inhalt { flex: 1; min-width: 0; }
.to-notiz {
  margin-top: 4px;
  font-size: var(--fs-sm);
  color: var(--text2);
}

/* ==================== Ziele: Horizontaler Zeitstrahl & Meilensteine ==================== */
.ziel-karte {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-top: 4px solid var(--zc, var(--gold));
  border-radius: 16px;
  padding: clamp(16px, 2.5vw, 24px);
}
.ziel-karte + .ziel-karte { margin-top: 18px; }

.ziel-titel {
  font-family: var(--schrift-titel);
  font-weight: 400;
  text-transform: uppercase;
  font-size: min(calc(32px * var(--gr)), 9.5vw);
  line-height: 1.02;
}

.zs-kasten {
  margin: 16px 0 12px;
  padding: 14px 12px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--linie);
}

.zs-spur {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding-top: 8px;
}

.zs-spur::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 22px;
  height: 4px;
  border-radius: 4px;
  background: var(--linie-hell);
}

.zs-fortschritt {
  position: absolute;
  left: 16px;
  top: 22px;
  height: 4px;
  border-radius: 4px;
  background: var(--feuer);
  max-width: calc(100% - 32px);
}

.zs-punkt {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  padding: 0 2px;
  cursor: pointer;
  color: var(--text);
}

.zs-kreis {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--zc, var(--gold));
  display: grid;
  place-items: center;
  color: #110a0f;
  margin-bottom: 6px;
  flex: none;
}
.zs-punkt.fertig .zs-kreis {
  background: var(--zc, var(--gruen));
  border-color: var(--zc, var(--gruen));
}
.zs-punkt .zs-name {
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: break-word;
}
.zs-punkt .zs-dat {
  font-size: calc(12px * min(var(--gr), 1.25));
  color: var(--text2);
  margin-top: 2px;
}

/* Im Feuer-Band (z. B. Ziel-Vorschlag im Protokoll) dunkle Linien */
.band .zs-kasten {
  background: rgba(0, 0, 0, .14);
  border-color: rgba(0, 0, 0, .2);
}
.band .zs-spur::before { background: rgba(0, 0, 0, .35); }
.band .zs-fortschritt { background: #14090d; }
.band .zs-kreis { background: var(--f1); border-color: #14090d; }
.band .zs-punkt, .band .zs-punkt .zs-dat { color: #14090d; }

.ampel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--flaeche2);
  border: 1px solid var(--linie);
}
.ampel i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ampel.gut i { background: var(--gruen); }
.ampel.achtung i { background: var(--gold); }
.ampel.kritisch i { background: var(--rot); }

/* ==================== Aufgaben ==================== */
.aufgaben-gruppe { margin-bottom: 22px; }
.gruppen-kopf {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text2);
  margin: 0 0 10px;
}
.gruppen-kopf::after { content: ""; flex: 1; height: 1px; background: var(--linie); }
.gruppen-kopf.ueberfaellig { color: var(--rot); }

.aufgabe-zeile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  margin-bottom: 8px;
}
.aufgabe-zeile.erledigt { opacity: .62; }
.aufgabe-inhalt { flex: 1; min-width: 0; }
.aufgabe-titel { font-size: var(--fs-md); line-height: 1.35; }
.aufgabe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  margin-top: 6px;
  font-size: var(--fs-sm);
  color: var(--text2);
}

.herkunft-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--f2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-size: inherit;
}

/* ==================== Dienstplan ==================== */
.tausch-alarm {
  border-radius: 16px;
  padding: 16px 18px;
  background: rgba(255, 46, 136, .12);
  border: 1.5px solid var(--f2);
  margin-bottom: 20px;
}

.dienst-abend {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 16px;
  padding: clamp(14px, 2.2vw, 22px);
  margin-bottom: 16px;
}

.dienst-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 12px 0;
  border-top: 1px solid var(--linie);
}
.dienst-zeile:first-child { border-top: 0; }

.dienst-links {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  flex: 1 1 220px;
}
.dienst-art {
  font-weight: 700;
  min-width: 96px;
  color: var(--text);
}
.dienst-aktionen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.fairness-zeile {
  display: grid;
  grid-template-columns: minmax(90px, 120px) 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  font-size: var(--fs-sm);
}

/* ==================== Kalender & Highlights ==================== */
.highlights-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.kalender-raster {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}
.kal-wt {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text2);
  padding-bottom: 4px;
}
.kal-tag {
  min-height: 76px;
  padding: 6px;
  border-radius: 8px;
  background: var(--bg2);
  border: 1px solid var(--linie);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kal-tag.leer { opacity: .28; }
.kal-tag.heute { border-color: var(--f1); box-shadow: inset 0 0 0 1px var(--f1); }
.kal-nr { font-family: var(--schrift-titel); font-size: 18px; line-height: 1; }
.kal-punkt {
  font-size: 12px;
  line-height: 1.2;
  padding: 2px 5px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--kc, var(--f1)) 24%, transparent);
  color: var(--text);
  border-left: 3px solid var(--kc, var(--f1));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==================== Teams ==================== */
.teams-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}

.team-karte {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-left: 5px solid var(--tc, var(--blau));
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.personen-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.person-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  background: var(--bg2);
  border: 1px solid var(--linie);
  font-size: var(--fs-sm);
}

/* ==================== Nordstern ==================== */
.nordstern-held {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: clamp(22px, 4vw, 40px);
  background: linear-gradient(125deg, #27151f 0%, #16121d 55%, #1d150c 100%);
  border: 1.5px solid rgba(255, 194, 61, .45);
  box-shadow: var(--schatten);
  margin-bottom: 20px;
}
.nordstern-held::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 300px at 90% 10%, rgba(255, 194, 61, .22), transparent 65%),
    radial-gradient(500px 300px at 10% 100%, rgba(255, 46, 136, .18), transparent 65%);
  pointer-events: none;
}
.nordstern-held > * { position: relative; z-index: 1; }

.losung-text {
  font-family: var(--schrift);
  font-weight: 400;
  font-size: min(calc(28px * var(--gr)), 8.5vw);
  line-height: 1.32;
  color: var(--text);
  margin: 14px 0 12px;
  max-width: 34ch;
}

.losung-stelle {
  font-family: var(--schrift-titel);
  font-weight: 400;
  text-transform: uppercase;
  font-size: min(calc(28px * var(--gr)), 8vw);
  color: var(--gold);
  letter-spacing: .03em;
}

.werte-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}

.wert-karte {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-top: 4px solid var(--wc, var(--gold));
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bibel-kasten {
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg2);
  border-left: 3px solid var(--wc, var(--gold));
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.bibel-kasten cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-weight: 700;
  color: var(--wc, var(--gold));
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ==================== Mehr-Menü (iPhone) ==================== */
.mehr-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
}

.mehr-kachel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 118px;
  padding: 16px;
  border-radius: 14px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-left: 5px solid var(--mc, var(--f1));
  color: var(--text);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.mehr-kachel b {
  font-family: var(--schrift-titel);
  font-weight: 400;
  text-transform: uppercase;
  font-size: calc(25px * min(var(--gr), 1.25));
  line-height: 1.05;
  margin-top: auto;
}

/* ==================== Untere Navigationsleiste (iPhone) ==================== */
.unten-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(11, 10, 15, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--linie);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}

.unten-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 50px;
  padding: 4px 2px;
  text-decoration: none;
  color: var(--text2);
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 8px;
  position: relative;
}
.unten-nav a .ico { width: 22px; height: 22px; }
.unten-nav a.aktiv { color: var(--nc, var(--f1)); }
.unten-nav a.aktiv::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 22%;
  right: 22%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--nc, var(--f1));
}

/* ==================== Dialog & Meldung ==================== */
dialog {
  border: 1px solid var(--linie-hell);
  border-radius: 18px;
  background: var(--flaeche);
  color: var(--text);
  padding: clamp(18px, 3vw, 26px);
  width: min(580px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .75);
  font-size: var(--fs-md);
}
dialog::backdrop {
  background: rgba(5, 4, 9, .72);
  backdrop-filter: blur(5px);
}
.dialog-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.dialog-fuss {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--linie);
}

.meldung {
  position: fixed;
  left: 50%;
  bottom: calc(82px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 120;
  max-width: calc(100vw - 28px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--text);
  color: #100b12;
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--schatten);
  text-align: center;
}

/* ==================== Responsiv: iPad hoch, iPad quer, iPhone hoch & quer, A+ 150% ==================== */

/* Zweispalter bei engerem Bildschirm oder 140/150 % rechtzeitig stapeln */
@media (max-width: 1120px) {
  .start-gitter { grid-template-columns: minmax(0, 1fr); }
  .treffen-layout { grid-template-columns: minmax(0, 1fr); }
}

:root[data-gr="140"] .start-gitter,
:root[data-gr="150"] .start-gitter,
:root[data-gr="140"] .treffen-layout,
:root[data-gr="150"] .treffen-layout {
  grid-template-columns: minmax(0, 1fr);
}

/* iPad hoch (760px bis 980px): schmalere Seitenleiste */
@media (max-width: 980px) and (min-width: 760px) {
  #app { grid-template-columns: 206px minmax(0, 1fr); }
  .marke b { font-size: 22px; }
  .nav a { font-size: 14.5px; padding: 8px 10px; }
}

/* iPhone hoch & schmale Fenster (< 760px) */
@media (max-width: 759px) {
  #app { grid-template-columns: 1fr; }
  .seite { display: none; }
  .kopf-marke { display: inline-flex; }
  .unten-nav { display: flex; }

  .kopfleiste {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
    gap: 8px;
  }
  .kopf-steuerung { display: contents; }
  .kopf-marke { grid-column: 1; grid-row: 1; }
  .knopf-aplus { grid-column: 2; grid-row: 1; justify-self: end; padding: 0 10px; }
  .rollen-schalter { grid-column: 1; grid-row: 2; justify-self: start; }
  .ich-wahl { grid-column: 2; grid-row: 2; justify-self: end; }
  .rollen-schalter button { padding: 0 9px; font-size: 13px; min-height: 40px; }
  .ich-wahl select { max-width: 126px; font-size: 13.5px; min-height: 44px; }

  main {
    padding: 18px 14px calc(92px + env(safe-area-inset-bottom));
  }

  /* Zeitstrahl auf schmalem iPhone kompakt & bei 150% absolut überlauffrei */
  .fluss { padding-left: 54px; }
  .fluss::before { left: 42px; }
  .jetzt { margin-left: -54px; }
  .tag .dat { left: -54px; width: 36px; font-size: 22px; }
  .tag::before { left: -17px; }

  /* Meilenstein-Zeitstrahl auf schmalem Bildschirm sauber stapeln */
  .zs-spur {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 0;
    padding-left: 4px;
  }
  .zs-spur::before, .zs-fortschritt { display: none; }
  .zs-punkt {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
  }
  .zs-kreis { margin-bottom: 0; }
  .zs-punkt .zs-dat { margin-left: auto; margin-top: 0; white-space: nowrap; }

  /* Monatsraster im Kalender auf iPhone schmal halten */
  .kal-tag { min-height: 54px; padding: 4px; }
  .kal-punkt { font-size: 10.5px; }
}

/* Bei A+ 140% oder 150% auf schmalen Bildschirmen auch den Zeitstrahl noch luftiger halten */
@media (max-width: 759px) {
  :root[data-gr="140"] .fluss,
  :root[data-gr="150"] .fluss {
    padding-left: 0;
  }
  :root[data-gr="140"] .fluss::before,
  :root[data-gr="150"] .fluss::before,
  :root[data-gr="140"] .tag::before,
  :root[data-gr="150"] .tag::before {
    display: none;
  }
  :root[data-gr="140"] .jetzt,
  :root[data-gr="150"] .jetzt {
    margin-left: 0;
  }
  :root[data-gr="140"] .tag .dat,
  :root[data-gr="150"] .tag .dat {
    position: static;
    width: auto;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
    color: var(--c);
  }
  :root[data-gr="140"] .tag .dat small,
  :root[data-gr="150"] .tag .dat small {
    display: inline;
  }
}

/* iPhone Querformat mit geringer Höhe */
@media (max-height: 500px) and (max-width: 940px) {
  .kopfleiste { position: static; }
  .unten-nav { padding-top: 3px; }
  .unten-nav a { min-height: 44px; flex-direction: row; gap: 6px; font-size: 12px; }
}

/* Druckansicht für Protokoll & Dienstplan */
@media print {
  .seite, .kopfleiste, .unten-nav, .aufn-leiste, .knopf, .knopf-klein, .meldung, .aufnahme-banner, body::after {
    display: none !important;
  }
  #app { display: block; }
  body { background: #fff; color: #111; }
  .karte, .band, .ziel-karte, .dienst-abend, .nordstern-held {
    background: #fff !important;
    color: #111 !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
  main { padding: 0; max-width: none; }
}

/* ==================== Ergänzungen Claude 26.11. (Server, Anmeldung, Personen) ==================== */
[hidden] { display: none !important; }
body.ohne-anmeldung .seite, body.ohne-anmeldung .unten-nav, body.ohne-anmeldung .kopf-steuerung > :not(.knopf-aplus) { display: none !important; }
.anmeldung { max-width: 460px; margin: 6vh auto 40px; display: grid; gap: 16px; }
.anmeldung h1 { font-family: var(--display, 'Anton'), sans-serif; font-weight: 400; font-size: calc(54px * var(--gr, 1)); line-height: .95; letter-spacing: .02em;
  background: linear-gradient(95deg, #fff, var(--gold) 45%, #ff6a2b); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; }
.anmeldung form { display: grid; gap: 12px; }
.anmeldung .etikett { justify-self: start; }
.farb-wahl { position: relative; display: inline-flex; }
.farb-wahl input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.farb-wahl span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; display: block; }
.farb-wahl input:checked + span { border-color: #fff; box-shadow: 0 0 0 2px #0008; }
.farb-wahl input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.feld-titel { display: block; font-weight: 700; margin-bottom: 6px; }
/* Treffen-Liste: Status-Etikett darf bei großer Schrift umbrechen statt über den Rand zu laufen */
.treffen-liste-karte .zeile.zwischen { flex-wrap: wrap; gap: 6px; min-width: 0; }
.treffen-liste-karte { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.treffen-liste-karte .etikett { white-space: nowrap; }
.zahl { min-width: 0; }
.zahl span { overflow-wrap: anywhere; hyphens: auto; letter-spacing: .03em; }
.treffen-layout > * { min-width: 0; }
