/* adrianbormann.app
   Violett #6236FF = Leitfarbe, führt und handelt.
   Orange  #F27A00 = Akzent, zeigt Zahlen und was dran ist.
   Beides aus dem Farbschema der Marke adrian bormann. */

:root {
  --grund: #F7F6FC; --flaeche: #FFFFFF; --flaeche-2: #F0EEFA;
  --rand: #E3E0F2; --rand-stark: #C5C0E0;
  --text: #1A1533; --text-leise: #544D77; --text-still: #8880A8;
  --orange: #FF6B2C; --orange-text: #C24A0F; --orange-hell: #FFEDE3;
  --violett: #6236FF; --violett-hell: #EBE6FF;
  --gut: #0F8F64; --warnung: #B37F00; --stopp: #CE3242;
  --schrift-titel: "Space Grotesk", "Helvetica Neue", sans-serif;
  --schrift-text: "IBM Plex Sans", -apple-system, sans-serif;
  --schrift-zahl: "IBM Plex Mono", ui-monospace, monospace;
  --r: 10px; --r-s: 6px;
  --schatten: 0 1px 2px rgba(26,21,51,.05), 0 4px 14px rgba(26,21,51,.06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-thema="hell"]) {
    --grund: #0A0910; --flaeche: #14121F; --flaeche-2: #1E1B2E;
    --rand: #2A2440; --rand-stark: #42385E;
    --text: #F3F1FB; --text-leise: #ABA3C8; --text-still: #7A7199;
    --orange: #FF8A55; --orange-text: #FFA478; --orange-hell: #3A2015;
    --violett: #A88CFF; --violett-hell: #2A2352;
    --gut: #3DD9A0; --warnung: #F0C04A; --stopp: #FF7A85;
    --schatten: 0 1px 2px rgba(0,0,0,.35), 0 4px 14px rgba(0,0,0,.3);
  }
}

:root[data-thema="dunkel"] {
  --grund: #0A0910; --flaeche: #14121F; --flaeche-2: #1E1B2E;
  --rand: #2A2440; --rand-stark: #42385E;
  --text: #F3F1FB; --text-leise: #ABA3C8; --text-still: #7A7199;
  --orange: #FF8A55; --orange-text: #FFA478; --orange-hell: #3A2015;
  --violett: #A88CFF; --violett-hell: #2A2352;
  --gut: #3DD9A0; --warnung: #F0C04A; --stopp: #FF7A85;
  --schatten: 0 1px 2px rgba(0,0,0,.35), 0 4px 14px rgba(0,0,0,.3);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--grund); color: var(--text);
  font-family: var(--schrift-text); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--schrift-titel); font-weight: 600;
  letter-spacing: -0.015em; text-wrap: balance; margin: 0;
}
h1 { font-size: 1.75rem; line-height: 1.2; }
h2 { font-size: 1.2rem; line-height: 1.3; }
h3 { font-size: 1rem; line-height: 1.35; }
p { margin: 0 0 .8em; }
a { color: inherit; }
.zahl { font-family: var(--schrift-zahl); font-variant-numeric: tabular-nums; }
.etikett {
  font-size: .68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .09em; color: var(--text-still);
}

.rahmen { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.seitenleiste {
  background: var(--flaeche); border-right: 1px solid var(--rand);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 22px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.marke { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.marke-kachel {
  width: 34px; height: 34px; flex: none; display: block; object-fit: contain;
}
.marke-text { font-family: var(--schrift-titel); font-weight: 600; font-size: .92rem; }
.marke-text small {
  display: block; font-weight: 400; font-size: .7rem;
  color: var(--text-still); font-family: var(--schrift-text);
}
nav { display: flex; flex-direction: column; gap: 2px; }
nav .gruppe { margin-bottom: 14px; }
nav .gruppe > .etikett { padding: 0 8px 6px; display: block; }
nav a {
  display: flex; align-items: center; gap: 9px; padding: 7px 9px;
  border-radius: var(--r-s); text-decoration: none; color: var(--text-leise);
  font-size: .875rem; transition: background .12s, color .12s;
}
nav a:hover { background: var(--flaeche-2); color: var(--text); }
nav a.aktiv { background: var(--violett-hell); color: var(--text); font-weight: 500; }
nav a .punkt { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .4; flex: none; }
nav a.aktiv .punkt { background: var(--orange); opacity: 1; }
nav a .zaehler {
  margin-left: auto; font-family: var(--schrift-zahl); font-size: .72rem;
  color: var(--text-still); font-variant-numeric: tabular-nums;
}
.leiste-fuss { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 0 4px; }
main { padding: 30px 34px 70px; max-width: 1180px; }
.kopf { margin-bottom: 26px; }
.kopf .etikett { display: block; margin-bottom: 5px; }
.kopf p { color: var(--text-leise); max-width: 66ch; margin-top: 6px; }

.karte {
  background: var(--flaeche); border: 1px solid var(--rand);
  border-radius: var(--r); padding: 18px; box-shadow: var(--schatten);
}
.gitter { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.kennzahl .wert {
  font-family: var(--schrift-zahl); font-size: 1.9rem; font-weight: 500;
  line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.kennzahl .wert.akzent { color: var(--orange-text); }
.kennzahl .bezeichnung { font-size: .8rem; color: var(--text-leise); margin-top: 3px; }
.kennzahl .fussnote { font-size: .72rem; color: var(--text-still); margin-top: 7px; }

.marker {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px;
  border-radius: 100px; font-size: .72rem; font-weight: 500;
  border: 1px solid var(--rand); background: var(--flaeche-2);
  color: var(--text-leise); white-space: nowrap;
}
.marker.neu { background: var(--violett-hell); border-color: transparent; color: var(--violett); }
.marker.drehen { background: var(--orange-hell); border-color: transparent; color: var(--orange-text); font-weight: 600; }
.marker.gedreht, .marker.geschnitten { background: var(--flaeche-2); }
.marker.veroeffentlicht { background: transparent; border-color: var(--gut); color: var(--gut); }
.marker.verworfen { opacity: .55; text-decoration: line-through; }
.marker.gestoppt { background: transparent; border-color: var(--stopp); color: var(--stopp); }

.ablauf { display: flex; align-items: stretch; gap: 3px; flex-wrap: wrap; }
.ablauf .stufe {
  flex: 1 1 0; min-width: 92px; padding: 9px 10px;
  background: var(--flaeche-2); border: 1px solid var(--rand); position: relative;
}
.ablauf .stufe:first-child { border-radius: var(--r-s) 0 0 var(--r-s); }
.ablauf .stufe:last-child { border-radius: 0 var(--r-s) var(--r-s) 0; }
.ablauf .stufe .n {
  font-family: var(--schrift-zahl); font-size: 1.25rem; font-weight: 500;
  font-variant-numeric: tabular-nums; display: block; line-height: 1.15;
}
.ablauf .stufe .b { font-size: .72rem; color: var(--text-leise); }
.ablauf .stufe.voll { background: var(--orange-hell); border-color: transparent; }
.ablauf .stufe.voll .n { color: var(--orange-text); }

button, .knopf {
  font-family: inherit; font-size: .84rem; font-weight: 500;
  padding: 7px 13px; border-radius: var(--r-s); cursor: pointer;
  border: 1px solid var(--rand-stark); background: var(--flaeche); color: var(--text);
  transition: background .12s, border-color .12s, transform .06s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
button:hover, .knopf:hover { background: var(--flaeche-2); }
button:active { transform: translateY(1px); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--violett); outline-offset: 2px;
}
button.haupt { background: var(--violett); border-color: var(--violett); color: #fff; }
button.haupt:hover { background: var(--violett); filter: brightness(1.12); }
button.leise { border-color: transparent; background: transparent; color: var(--text-leise); }
button.leise:hover { background: var(--flaeche-2); color: var(--text); }
button.klein { padding: 4px 9px; font-size: .76rem; }
button[disabled] { opacity: .45; cursor: not-allowed; }
input, textarea, select {
  font-family: inherit; font-size: .875rem; color: var(--text);
  background: var(--flaeche); border: 1px solid var(--rand-stark);
  border-radius: var(--r-s); padding: 8px 10px; width: 100%;
}
textarea { resize: vertical; line-height: 1.55; }
label { display: block; font-size: .78rem; color: var(--text-leise); margin-bottom: 5px; }

.tabellenrahmen { overflow-x: auto; border: 1px solid var(--rand); border-radius: var(--r); background: var(--flaeche); }
table { width: 100%; border-collapse: collapse; font-size: .84rem; }
th {
  text-align: left; font-weight: 600; font-size: .7rem; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text-still); padding: 10px 12px;
  border-bottom: 1px solid var(--rand); white-space: nowrap;
  background: var(--flaeche); position: sticky; top: 0; z-index: 1;
}
th.sortierbar { cursor: pointer; user-select: none; }
th.sortierbar:hover { color: var(--text); }
td { padding: 9px 12px; border-bottom: 1px solid var(--rand); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--flaeche-2); }
td.z { font-family: var(--schrift-zahl); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

.skriptliste { display: grid; gap: 11px; }
.skriptzeile {
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--r);
  padding: 14px 16px; cursor: pointer; display: grid; gap: 7px;
  transition: border-color .12s, box-shadow .12s;
}
.skriptzeile:hover { border-color: var(--violett); box-shadow: var(--schatten); }
.skriptzeile .oben { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.skriptzeile .nr {
  font-family: var(--schrift-zahl); font-size: .74rem; color: var(--text-still);
  border: 1px solid var(--rand); border-radius: 4px; padding: 1px 5px;
}
.skriptzeile .hook { font-size: .95rem; color: var(--text-leise); }
.skriptzeile .unten { display: flex; gap: 14px; flex-wrap: wrap; font-size: .74rem; color: var(--text-still); }
pre.skript {
  font-family: var(--schrift-zahl); font-size: .8rem; line-height: 1.7;
  background: var(--flaeche-2); border: 1px solid var(--rand); border-radius: var(--r-s);
  padding: 15px; overflow-x: auto; white-space: pre-wrap; margin: 0;
}
pre.caption {
  font-family: var(--schrift-text); font-size: .875rem; line-height: 1.6;
  background: var(--flaeche-2); border: 1px solid var(--rand); border-radius: var(--r-s);
  padding: 15px; overflow-x: auto; white-space: pre-wrap; margin: 0;
}
.pruefen {
  background: var(--orange-hell); border-left: 3px solid var(--orange);
  padding: 10px 13px; border-radius: 0 var(--r-s) var(--r-s) 0; font-size: .84rem;
}
.hashtags { display: flex; flex-wrap: wrap; gap: 5px; }
.hashtags span {
  font-size: .76rem; padding: 2px 8px; border-radius: 100px;
  background: var(--violett-hell); color: var(--violett);
}

.strahl { display: grid; gap: 2px; }
.strahl .abschnitt {
  display: grid; grid-template-columns: 78px 1fr; gap: 13px;
  align-items: start; padding: 9px 0; border-bottom: 1px solid var(--rand);
}
.strahl .abschnitt:last-child { border-bottom: none; }
.strahl .zeit {
  font-family: var(--schrift-zahl); font-size: .76rem; color: var(--orange-text);
  font-variant-numeric: tabular-nums; padding-top: 1px;
}
.strahl .was { font-size: .875rem; }
.balken { height: 5px; border-radius: 3px; background: var(--flaeche-2); overflow: hidden; display: flex; }
.balken i { display: block; height: 100%; }

.anmeldung { min-height: 100vh; display: grid; place-items: center; padding: 22px; }
.anmeldung .karte { width: 100%; max-width: 372px; padding: 30px; }
.anmeldung .marke { justify-content: center; margin-bottom: 22px; }
.anmeldung .marke-kachel { width: 48px; height: 48px; }
.anmeldung .marke-text { font-size: 1.05rem; }
.anmeldung .feld { margin-bottom: 13px; }
.anmeldung button { width: 100%; justify-content: center; margin-top: 7px; }
.fehler { color: var(--stopp); font-size: .82rem; margin-top: 11px; }

.officer {
  display: block; text-decoration: none; background: var(--flaeche);
  border: 1px solid var(--rand); border-radius: var(--r); padding: 20px;
  transition: border-color .14s, box-shadow .14s, transform .14s;
}
.officer.offen:hover { border-color: var(--violett); box-shadow: var(--schatten); transform: translateY(-2px); }
.officer.zu { opacity: .6; cursor: default; border-style: dashed; }
.officer .kuerzel {
  font-family: var(--schrift-titel); font-size: 1.5rem; font-weight: 700;
  color: var(--orange-text); letter-spacing: -.02em;
}
.officer.zu .kuerzel { color: var(--text-still); }
.officer h3 { margin: 3px 0 6px; }
.officer p { font-size: .84rem; color: var(--text-leise); margin: 0; }
.officer .fuss { margin-top: 13px; display: flex; gap: 7px; flex-wrap: wrap; }

.leer { text-align: center; padding: 46px 22px; color: var(--text-still); }
.laedt { text-align: center; padding: 46px; color: var(--text-still); font-size: .875rem; }
.werkzeuge { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.werkzeuge .wachsen { flex: 1 1 200px; }
.hinweis {
  background: var(--violett-hell); border-radius: var(--r-s);
  padding: 12px 15px; font-size: .84rem; color: var(--text-leise);
}
.trenner { height: 1px; background: var(--rand); border: none; margin: 26px 0; }

@media (max-width: 860px) {
  .rahmen { grid-template-columns: 1fr; }
  .seitenleiste {
    position: static; height: auto; flex-direction: row; align-items: center;
    overflow-x: auto; gap: 14px; border-right: none; border-bottom: 1px solid var(--rand);
  }
  .seitenleiste nav { flex-direction: row; gap: 4px; }
  .seitenleiste nav .gruppe { display: flex; margin: 0; gap: 4px; }
  .seitenleiste nav .gruppe > .etikett { display: none; }
  .leiste-fuss { margin: 0; flex-direction: row; }
  main { padding: 20px 16px 60px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
