/* Schriften selbst ausgeliefert (SIL Open Font License), keine Anfrage an Google. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/statisch/schriften/bricolage-grotesque-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/statisch/schriften/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/statisch/schriften/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/statisch/schriften/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/statisch/schriften/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/statisch/schriften/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/statisch/schriften/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* Jarvis - Stil "Instrument" (Handover 14.7).
   Graphit, ein Akzent je Person, Rot nur fuer Fristen, Tuerkis fuer Bestaetigung. */

:root {
  --grund: #0A0E13;
  --flaeche: #121922;
  --flaeche-2: #19222D;
  --linie: #243140;
  --text: #EEF2F5;
  --leise: #8595A3;
  --akzent: #E9A13B;
  --akzent-tief: #6E4A16;
  --frist: #FF5C45;
  --gut: #74D6CF;
  --kopf: "Bricolage Grotesque", -apple-system, sans-serif;
  --fliess: "IBM Plex Sans", -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --tabhoehe: 64px;
}
[data-farbe="tuerkis"] { --akzent: #74D6CF; --akzent-tief: #1F5550; }
[data-farbe="koralle"] { --akzent: #FF9E7A; --akzent-tief: #6B3322; }
[data-farbe="violett"] { --akzent: #B69CFF; --akzent-tief: #3F2F73; }
[data-farbe="gruen"]   { --akzent: #9BD77A; --akzent-tief: #34561F; }
[data-farbe="blau"]    { --akzent: #7CB4FF; --akzent-tief: #1F3F6E; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--grund); color: var(--text);
  font: 17px/1.45 var(--fliess); -webkit-font-smoothing: antialiased; }
body { overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
svg { fill: currentColor; stroke: currentColor; }

.marke { font-family: var(--kopf); font-weight: 700; letter-spacing: -.02em; }
.marke.klein { font-size: 20px; }

/* --- Tor (Anmeldung) --- */
.tor { min-height: 100%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 32px 24px calc(32px + env(safe-area-inset-bottom)); text-align: center; }
.tor .marke { font-size: 44px; margin: 28px 0 6px; }
.tor-text { color: var(--leise); margin: 0 0 28px; max-width: 320px; }
.tor-kreis { width: 132px; height: 132px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFE3B0, var(--akzent) 45%, var(--akzent-tief));
  box-shadow: 0 0 80px color-mix(in srgb, var(--akzent) 40%, transparent); }
.knopf-gross { min-width: 240px; min-height: 54px; border-radius: 16px; background: var(--akzent);
  color: #15100A; font-weight: 600; font-size: 18px; }
.knopf-gross:disabled { opacity: .5; }
.knopf-leise { width: 100%; min-height: 50px; margin-top: 28px; border-radius: 14px;
  border: 1px solid var(--linie); color: var(--leise); }
.fehler { color: var(--frist); min-height: 1.4em; margin-top: 16px; max-width: 320px; }

/* --- App-Geruest --- */
.app { min-height: 100%; display: flex; flex-direction: column; }
.kopf { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--grund); }
.kosten { margin-left: auto; font-size: 12px; color: var(--leise); }
.rund { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--flaeche); color: var(--leise); flex: none; }
.rund.akzent { background: var(--akzent); color: #15100A; }
main { flex: 1; padding: 0 16px calc(var(--tabhoehe) + 24px + env(safe-area-inset-bottom)); }
.seite { display: none; }
.seite.aktiv { display: block; }
.titel { font-family: var(--kopf); font-weight: 700; font-size: 32px; letter-spacing: -.02em; margin: 8px 0 16px; }
.unter { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--leise);
  margin: 26px 0 10px; font-weight: 600; }

/* --- Sprechen --- */
.gruss { font-family: var(--kopf); font-size: 28px; font-weight: 500; letter-spacing: -.01em;
  margin: 12px 0 0; }
.buehne { display: flex; flex-direction: column; align-items: center; padding: 28px 0 8px; }
.kreis { position: relative; width: 200px; height: 200px; border-radius: 50%; display: grid; place-items: center; }
.kern { width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFE3B0, var(--akzent) 45%, var(--akzent-tief));
  box-shadow: 0 0 70px color-mix(in srgb, var(--akzent) 35%, transparent);
  transition: transform .25s ease; }
.ring { position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--akzent) 45%, transparent); opacity: 0; }
.kreis:active .kern { transform: scale(.96); }
.kreis.hoert .kern { transform: scale(1.06); }
.kreis.hoert .ring { animation: welle 1.6s ease-out infinite; }
.kreis.hoert .r2 { animation-delay: .8s; }
.kreis.denkt .kern { animation: atmen 1.2s ease-in-out infinite; }
@keyframes welle { from { transform: scale(.75); opacity: .9; } to { transform: scale(1.25); opacity: 0; } }
@keyframes atmen { 50% { transform: scale(.92); opacity: .75; } }
@media (prefers-reduced-motion: reduce) { .ring, .kern { animation: none !important; } }
.zustand { margin: 14px 0 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--leise); }
.kreis.hoert + .zustand { color: var(--akzent); }

.dialog { margin-top: 18px; }
.gehoert { color: var(--leise); font-size: 15px; margin: 0 0 10px; }
.gehoert::before { content: "Du  "; font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  color: var(--akzent); }
.antwort { font-family: var(--kopf); font-size: 24px; line-height: 1.3; font-weight: 500;
  letter-spacing: -.01em; margin: 0; white-space: pre-wrap; }
.antwort.fehlt { color: var(--frist); font-size: 18px; }

.tipp { position: fixed; left: 16px; right: 16px; z-index: 4;
  bottom: calc(var(--tabhoehe) + 10px + env(safe-area-inset-bottom));
  display: flex; gap: 8px; }
.tipp input { flex: 1; min-width: 0; height: 44px; border-radius: 22px; border: 1px solid var(--linie);
  background: var(--flaeche); color: var(--text); padding: 0 18px; font: 16px var(--fliess); }
.tipp input:focus { outline: none; border-color: var(--akzent); }
.tipp .rund { width: 44px; height: 44px; }

/* --- Listen --- */
.liste { list-style: none; margin: 0; padding: 0; }
.liste > li { background: var(--flaeche); border-radius: 16px; margin-bottom: 10px; }
.thema { width: 100%; text-align: left; padding: 16px; display: block; }
.thema-kopf { display: flex; align-items: baseline; gap: 10px; }
.thema-name { font-family: var(--kopf); font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.thema-zahl { margin-left: auto; font-size: 12px; color: var(--akzent); }
.thema-text { color: var(--leise); font-size: 15px; margin: 6px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.leer { color: var(--leise); }

.todo { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; }
.haken { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--linie); flex: none;
  display: grid; place-items: center; margin-top: 1px; }
.todo.erledigt .haken { background: var(--gut); border-color: var(--gut); }
.todo.erledigt .todo-text { color: var(--leise); text-decoration: line-through; }
.todo-thema { display: block; font-size: 12px; color: var(--leise); font-family: var(--mono); margin-top: 2px; }

.eintraege li { padding: 14px 16px; }
.eintrag-datum { font-family: var(--mono); font-size: 12px; color: var(--akzent); }
.eintrag-titel { font-weight: 600; margin: 2px 0 4px; }
.eintrag-text { color: var(--leise); font-size: 15px; margin: 0; }
.zusammenfassung { font-size: 18px; line-height: 1.45; margin: 0 0 8px; }

/* --- Tab-Leiste --- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex;
  padding: 6px 8px env(safe-area-inset-bottom); height: calc(var(--tabhoehe) + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--grund) 88%, transparent);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid var(--linie); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--leise); font-size: 11px; font-weight: 500; }
.tab svg { width: 24px; height: 24px; }
.tab.aktiv { color: var(--akzent); }

/* --- Blaetter --- */
.blatt { position: fixed; inset: 0; z-index: 10; background: rgba(0,0,0,.55);
  display: flex; align-items: flex-end; }
.blatt-innen { position: relative; width: 100%; max-height: 88%; overflow-y: auto;
  background: var(--flaeche-2); border-radius: 22px 22px 0 0;
  padding: 22px 16px calc(24px + env(safe-area-inset-bottom)); }
.zu { position: absolute; top: 14px; right: 14px; font-size: 22px; }
.blatt .titel { padding-right: 48px; }
.zeile { display: flex; align-items: center; justify-content: space-between; min-height: 52px;
  background: var(--flaeche); border-radius: 14px; padding: 0 16px; }
.schalter { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 15px;
  background: var(--linie); position: relative; transition: background .2s; margin: 0; }
.schalter::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; transition: transform .2s; }
.schalter:checked { background: var(--gut); }
.schalter:checked::after { transform: translateX(20px); }
.farben { display: flex; gap: 14px; flex-wrap: wrap; }
.farbe { width: 44px; height: 44px; border-radius: 50%; border: 3px solid transparent; }
.farbe.gewaehlt { border-color: var(--text); }

@media (min-width: 700px) {
  main, .kopf { max-width: 640px; margin: 0 auto; width: 100%; }
  .tipp { max-width: 608px; margin: 0 auto; }
}
#s-sprechen { padding-bottom: 64px; }

/* --- Karten fuer Aktionen (Termin eingetragen) --- */
.aktionen { margin-top: 16px; display: grid; gap: 10px; }
.karte { background: var(--flaeche); border-radius: 16px; padding: 14px 16px;
  border-left: 3px solid var(--gut); }
.karte.weg { border-left-color: var(--linie); opacity: .6; }
.karte.weg .karte-titel { text-decoration: line-through; }
.karte-art { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gut); }
.karte-titel { font-family: var(--kopf); font-size: 19px; font-weight: 700; margin: 4px 0 2px; }
.karte-wann { font-size: 14px; color: var(--leise); margin: 0; }
.karte-knopf { margin-top: 10px; min-height: 40px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--linie); color: var(--text); font-size: 15px; }
.karte-status { margin: 10px 0 0; font-size: 14px; color: var(--leise); }

.stimmen { display: flex; flex-wrap: wrap; gap: 8px; }
.stimme { min-height: 44px; padding: 0 16px; border-radius: 22px; background: var(--flaeche);
  border: 1px solid var(--linie); font-size: 15px; }
.stimme.gewaehlt { background: var(--akzent); border-color: var(--akzent); color: #15100A; font-weight: 600; }

/* --- Post --- */
.foto-knopf { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px;
  border-radius: 16px; background: var(--akzent); color: #15100A; font-weight: 600; font-size: 17px; cursor: pointer; }
.leise-klein { color: var(--leise); font-size: 13px; margin: 8px 2px 18px; }
.post-status { font-family: var(--mono); font-size: 13px; color: var(--akzent); margin: 0 0 14px; }
.post-status.fehlt { color: var(--frist); }
.brief { width: 100%; text-align: left; display: block; padding: 14px 16px; }
.brief-kopf { display: flex; align-items: center; gap: 8px; }
.prio { font-family: var(--mono); font-size: 11px; font-weight: 500; padding: 2px 7px; border-radius: 6px;
  background: var(--flaeche-2); color: var(--leise); }
.prio.P1 { background: var(--frist); color: #fff; }
.prio.P2 { background: color-mix(in srgb, var(--frist) 25%, var(--flaeche-2)); color: var(--text); }
.brief-absender { font-size: 13px; color: var(--leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brief-titel { font-family: var(--kopf); font-size: 18px; font-weight: 700; margin: 6px 0 4px; }
.frist { font-family: var(--mono); font-size: 13px; color: var(--leise); margin: 0; }
.frist.eng { color: var(--frist); }
.frist.ohne { color: var(--frist); font-family: var(--fliess); }
.marke-pruefen { font-size: 12px; color: var(--akzent); margin-top: 4px; display: block; }
.liste > li.erledigt { opacity: .5; }
.daten { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; margin: 14px 0; }
.daten dt { color: var(--leise); } .daten dd { margin: 0; }
.hinweise { list-style: none; padding: 0; margin: 0 0 10px; }
.hinweise li { font-size: 14px; color: var(--akzent); padding: 8px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--akzent) 10%, transparent); margin-bottom: 6px; }
.knopfreihe { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.knopfreihe button { min-height: 46px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--linie); font-size: 15px; }
.knopfreihe button.haupt { background: var(--gut); border-color: var(--gut); color: #06201E; font-weight: 600; }
.bilder { display: grid; gap: 10px; }
.bilder img { width: 100%; border-radius: 12px; display: block; }
.bilder a { color: var(--akzent); }

/* --- Startbildschirm --- */
.held { display: block; width: 100%; text-align: left; margin-top: 16px; padding: 16px 18px;
  border-radius: 18px; background: var(--flaeche); border: 1px solid var(--linie); }
.held.eng { background: color-mix(in srgb, var(--frist) 16%, var(--flaeche)); border-color: var(--frist); }
.held-art { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--leise); }
.held.eng .held-art, .held.eng .held-zeit { color: var(--frist); }
.held-titel { display: block; font-family: var(--kopf); font-size: 22px; font-weight: 700; line-height: 1.2; margin: 4px 0; }
.held-zeit { display: block; font-size: 14px; color: var(--leise); }
.buehne { padding-top: 22px; }
.widgets { display: grid; gap: 12px; margin-top: 26px; }
.widget { background: var(--flaeche); border-radius: 18px; padding: 14px 16px; }
.widget.klickbar { cursor: pointer; }
.widget-titel { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--leise);
  font-weight: 600; margin: 0 0 8px; }
.widget-zahl { font-size: 15px; margin: 0; }
.widget .leise-klein { margin: 0; }
.liste.kompakt > li { background: none; margin: 0; border-radius: 0; border-top: 1px solid var(--linie); }
.liste.kompakt > li:first-child { border-top: 0; }
.liste.kompakt .todo { padding: 10px 0; }
.tag-titel { font-size: 12px; color: var(--akzent); margin: 6px 0 4px; }
.termine { list-style: none; margin: 0; padding: 0; }
.termine li { display: grid; grid-template-columns: 64px 1fr; column-gap: 10px; padding: 6px 0; }
.t-zeit { font-size: 13px; color: var(--leise); padding-top: 2px; }
.t-titel { font-size: 16px; }
.t-kal { grid-column: 2; font-size: 12px; color: var(--leise); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 19px; background: var(--flaeche-2);
  border: 1px solid var(--linie); font-size: 14px; }
.gruppe { display: grid; gap: 8px; }
/* Feinschliff nach Sichtpruefung 18.09.2026 */
.todo { text-align: left; }
.todo-text { display: block; }
.tipp { left: 0; right: 0; padding: 14px 16px 0;
  background: linear-gradient(to top, var(--grund) 75%, transparent); }

/* --- Aktionstaste --- */
.knopf-leise.knapp { margin-top: 8px; }
.schluessel { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--grund);
  border: 1px solid var(--akzent); display: grid; gap: 10px; }
.schluessel code { font-family: var(--mono); font-size: 13px; word-break: break-all; color: var(--akzent);
  user-select: all; -webkit-user-select: all; }
.haupt-klein { min-height: 42px; border-radius: 12px; background: var(--akzent); color: #15100A; font-weight: 600; }
.geraet { display: flex; align-items: center; justify-content: space-between; min-height: 50px;
  background: var(--flaeche); border-radius: 14px; padding: 0 8px 0 16px; font-size: 15px; }
.geraet small { display: block; color: var(--leise); font-size: 12px; font-family: var(--mono); }
.geraet button { min-height: 38px; padding: 0 12px; color: var(--frist); font-size: 14px; }
