/* Theme-Planer · Graphit mit Rosé-Kupfer. Eine Akzentfarbe, Status über Farbe + Form + Wort. */
:root {
  --g0: #0c0b0d; --g1: #151318; --g2: #1e1b22; --linie: #2b2730;
  --text: #eee9e4; --leise: #9c948f;
  --akzent: #e8957a; --akzent-f: rgba(232, 149, 122, .14);
  --ok: #6fcf97; --ok-f: rgba(111, 207, 151, .13);
  --rot: #ff6b6b; --rot-f: rgba(255, 107, 107, .13);
  --gelb: #f2c14e; --gelb-f: rgba(242, 193, 78, .13);
  --aus: #8a8389; --aus-f: rgba(138, 131, 137, .14);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --serif: ui-serif, "New York", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: clip; }
body { margin: 0; background: var(--g0); color: var(--text); font: 15px/1.5 var(--sans); overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
body::before { content: ""; position: fixed; inset: -20% -10% auto; height: 70vh; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 80% 0%, rgba(232, 149, 122, .16), transparent 70%),
              radial-gradient(40% 40% at 0% 10%, rgba(120, 80, 140, .14), transparent 70%);
  transform: translateZ(0); will-change: transform; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.wort { font: italic 600 34px/1.05 var(--serif); letter-spacing: -.01em; margin: 0; }
.wort span { color: var(--akzent); font-style: normal; }
.wort.klein { font-size: 21px; }
.leise { color: var(--leise); }
.klein { font-size: 13px; }

/* Kopf + Navigation */
.kopf { position: sticky; top: 0; z-index: 5; background: rgba(12, 11, 13, .78); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--linie); padding-top: env(safe-area-inset-top); }
.kopf-in { max-width: 920px; margin: 0 auto; display: flex; align-items: center; gap: 24px;
  padding: 12px max(16px, env(safe-area-inset-left)) 12px max(16px, env(safe-area-inset-right)); }
.desknav { display: flex; gap: 4px; margin-left: auto; }
.desknav a { text-decoration: none; color: var(--leise); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 99px; }
.desknav a.an { background: var(--akzent); color: #1a120e; }
.tabbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; grid-template-columns: repeat(4, 1fr);
  background: rgba(21, 19, 24, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--linie); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: grid; justify-items: center; gap: 3px; padding: 9px 0 7px; min-height: 52px; text-decoration: none;
  color: var(--leise); font-size: 11px; font-weight: 600; }
.tabbar a.an { color: var(--akzent); }
.ico { width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ico-zeitplan { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='3'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.ico-protokoll { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M8 6h12M8 12h12M8 18h12'/%3E%3Ccircle cx='4' cy='6' r='1'/%3E%3Ccircle cx='4' cy='12' r='1'/%3E%3Ccircle cx='4' cy='18' r='1'/%3E%3C/svg%3E"); }
.ico-themes { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 3 3 8l9 5 9-5-9-5Z'/%3E%3Cpath d='m3 13 9 5 9-5'/%3E%3C/svg%3E"); }
.ico-einstellungen { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 16V11a6 6 0 0 1 12 0v5l1.5 2h-15L6 16Z'/%3E%3Cpath d='M10 21h4'/%3E%3C/svg%3E"); }
@media (max-width: 760px) { .desknav { display: none; } .tabbar { display: grid; } }

/* Seite */
.seite { max-width: 920px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-left)) 110px max(16px, env(safe-area-inset-right)); }
.ansicht { display: grid; gap: 14px; }
.ansicht[hidden] { display: none; }
.abschnitt { font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--leise); margin: 14px 2px 0; }
.karte { background: var(--g1); border: 1px solid var(--linie); border-radius: 18px; padding: 16px; display: grid; gap: 6px; min-width: 0; }
.etikett { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--leise); }
.gross { font: 600 24px/1.2 var(--serif); letter-spacing: -.01em; }
.gross.mittel { font-size: 20px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }
.live { border-color: rgba(111, 207, 151, .28); }
.naechste { border-color: rgba(232, 149, 122, .35); background: linear-gradient(160deg, rgba(232, 149, 122, .10), var(--g1) 60%); }
.countdown { font: 700 clamp(34px, 10vw, 46px)/1 var(--sans); letter-spacing: -.03em; color: var(--akzent);
  font-variant-numeric: tabular-nums; margin: 4px 0 2px; }

/* Lage-Banner */
.lage { border-radius: 16px; padding: 12px 14px; border: 1px solid; }
.lage-kopf { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.lage .punkt { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.lage ul { margin: 8px 0 0; padding-left: 19px; display: grid; gap: 4px; color: var(--text); }
.lage.ok { color: var(--ok); background: var(--ok-f); border-color: rgba(111, 207, 151, .3); }
.lage.gelb { color: var(--gelb); background: var(--gelb-f); border-color: rgba(242, 193, 78, .3); }
.lage.rot { color: var(--rot); background: var(--rot-f); border-color: rgba(255, 107, 107, .35); }
.lage li.gelb::marker { color: var(--gelb); }
.lage li.rot::marker { color: var(--rot); }

/* Listen */
.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.zeile { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  background: var(--g1); border: 1px solid var(--linie); border-radius: 16px; padding: 12px 14px; }
.zeile .was { min-width: 0; }
.zeile .name { font-weight: 600; }
.zeile .leise { font-size: 13px; }
.zeile.vorbei { opacity: .62; }
.zeile.hervor { border-color: rgba(111, 207, 151, .35); }
#themes .zeile { grid-template-columns: minmax(0, 1fr) auto; }
.datum .tag { font-size: 13px; color: var(--leise); }
.datum .uhr { font: 700 20px/1.1 var(--sans); font-variant-numeric: tabular-nums; }
#protokoll .datum .tag { font-variant-numeric: tabular-nums; }
.fehlertext { margin-top: 4px; font-size: 12.5px; color: var(--rot); }
.leer { color: var(--leise); padding: 18px 4px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 420px) {
  .zeile { grid-template-columns: 74px minmax(0, 1fr); }
  .zeile > .chip, .zeile > .chips { grid-column: 2; justify-self: start; }
  #themes .zeile { grid-template-columns: minmax(0, 1fr); }
  #themes .zeile > .chips { grid-column: 1; justify-content: flex-start; }
}

/* Status-Chips: Farbe + Form + Wort */
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip::before { content: ""; width: 8px; height: 8px; flex: none; }
.chip.mini { padding: 2px 8px; font-size: 11px; }
.chip.ok { color: var(--ok); background: var(--ok-f); }
.chip.ok::before { width: 9px; height: 5px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.chip.rot { color: var(--rot); background: var(--rot-f); }
.chip.rot::before { background: currentColor; clip-path: polygon(20% 0, 50% 30%, 80% 0, 100% 20%, 70% 50%, 100% 80%, 80% 100%, 50% 70%, 20% 100%, 0 80%, 30% 50%, 0 20%); }
.chip.gelb { color: var(--gelb); background: var(--gelb-f); }
.chip.gelb::before { background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.chip.geplant, .chip.akzent { color: var(--akzent); background: var(--akzent-f); }
.chip.geplant::before { border: 2px solid currentColor; border-radius: 50%; width: 9px; height: 9px; }
.chip.akzent::before { background: currentColor; border-radius: 2px; transform: rotate(45deg); width: 7px; height: 7px; }
.chip.faellig { color: var(--gelb); background: var(--gelb-f); }
.chip.faellig::before { background: currentColor; border-radius: 50%; animation: puls 1.2s ease-in-out infinite; }
.chip.aus { color: var(--aus); background: var(--aus-f); }
.chip.aus::before { background: currentColor; height: 2px; width: 9px; }
@keyframes puls { 50% { opacity: .25; } }

/* Knöpfe, Formulare */
.knopf { appearance: none; border: 0; border-radius: 14px; padding: 13px 18px; min-height: 46px; font: 700 15px var(--sans);
  background: var(--akzent); color: #1a120e; cursor: pointer; transition: transform .12s ease; }
.knopf:active { transform: scale(.97); }
.knopf.zweit { background: var(--g2); color: var(--text); border: 1px solid var(--linie); }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
input[type=password] { width: 100%; font: 16px var(--sans); color: var(--text); background: var(--g2); border: 1px solid var(--linie);
  border-radius: 12px; padding: 12px 14px; }
input:focus-visible, .knopf:focus-visible, a:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
label { font-size: 13px; color: var(--leise); font-weight: 600; }
.hinweis { margin: 0; font-size: 14px; }
.hinweis.rot { color: var(--rot); }

/* Login */
.login { min-height: 100dvh; display: grid; align-content: center; gap: 22px; max-width: 420px; margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom)); }
.login-kachel { display: grid; justify-items: center; gap: 8px; text-align: center; }
.login-kachel img { border-radius: 18px; box-shadow: 0 10px 30px rgba(232, 149, 122, .18); }
.login-form { gap: 10px; }

/* Bewegung */
@media (prefers-reduced-motion: no-preference) {
  .ansicht:not([hidden]) > * { animation: rein .32s ease backwards; }
  .ansicht:not([hidden]) > *:nth-child(2) { animation-delay: .04s; }
  .ansicht:not([hidden]) > *:nth-child(3) { animation-delay: .08s; }
  .liste > .zeile:nth-child(-n+9) { animation: rein .3s ease backwards; }
  @keyframes rein { from { opacity: 0; transform: translateY(6px); } }
}
@media (prefers-reduced-motion: reduce) { .chip.faellig::before { animation: none; } }
