/* Die Redaktion.
 *
 * Dieselben Farben, dieselben Schriften und dieselben Formen wie
 * kalix.tv. Wer zwischen Website und Redaktion wechselt, soll nicht das
 * Gefuehl haben, das Haus zu verlassen.
 *
 * Die Werte stammen aus src/styles/global.css, dunkler Modus. Sie sind
 * hier abgeschrieben und nicht eingebunden: die Redaktion laeuft auf dem
 * Server, die Website bei Cloudflare, und eine Datei ueber diese Grenze
 * zu ziehen waere eine Abhaengigkeit, die niemand sieht, bis sie bricht.
 * Aendert sich dort eine Farbe, gehoert sie hier nachgezogen.
 *
 * Die beiden Schriften liegen daneben in schrift/ und werden vom Dienst
 * ausgeliefert. Nichts wird von aussen nachgeladen - die Redaktion soll
 * auch dann arbeiten, wenn das halbe Netz steht.
 */

@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url(/schrift/bricolage-grotesque-latin-standard-normal.woff2) format('woff2-variations');
  unicode-range: U+000-5FF, U+2000-206F, U+2190-21BB, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url(/schrift/bricolage-grotesque-latin-ext-standard-normal.woff2) format('woff2-variations');
  unicode-range: U+100-2BA, U+2BD-2C5, U+1E00-1E9F, U+2020, U+20A0-20AB;
}

@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/schrift/archivo-latin-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+000-5FF, U+2000-206F, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/schrift/archivo-latin-ext-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+100-2BA, U+2BD-2C5, U+1E00-1E9F, U+2020, U+20A0-20AB;
}

:root {
  --bg: #0b0d10;
  --surface-1: #12151a;
  --surface-2: #191d24;
  --border: #242a33;
  --border-strong: #333b47;
  --hairline: #1c2028;
  --text: #edf1f6;
  --text-2: #a3adbb;
  --text-3: #6c7784;
  --accent: #3d9bff;
  --accent-hi: #63b0ff;
  --accent-text: #8cc4ff;
  --accent-fill: #16273d;
  --accent-border: #2c4e77;
  --on-accent: #0b0d10;
  --danger: #ff4d4d;
  --success: #3dd68c;
  --warning: #f2a93b;

  --font-sans: 'Bricolage Grotesque Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI',
    Roboto, sans-serif;
  --font-mark: 'Archivo Variable', ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-klein: 10px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

/* ------------------------------------------------------------------ */
/* Die Wortmarke                                                       */
/* ------------------------------------------------------------------ */

/* Dieselbe Marke wie im Kopf der Website, nur ohne die Drift: hier wird
   gearbeitet, da soll nichts wandern. Der Versatz steht gleich im
   Endzustand. */
.wm {
  width: 108px;
  height: 26px;
  overflow: visible;
  display: block;
}

.wm-text {
  font-family: var(--font-mark);
  font-size: 92px;
  letter-spacing: -4.45px;
  font-weight: 900;
  font-variation-settings: 'wght' 900, 'wdth' 112;
  font-stretch: 112%;
}

.wm-top {
  transform: translate(7.5px, 0);
  fill: var(--text);
}

.wm-bot {
  transform: translate(-7.5px, 0);
  fill: var(--accent);
}

/* ------------------------------------------------------------------ */
/* Anmeldung                                                           */
/* ------------------------------------------------------------------ */

.tor {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  /* Derselbe weiche Schein wie ueber dem Hero der Startseite. */
  background:
    radial-gradient(120% 90% at 50% -10%, var(--accent-fill) 0%, transparent 60%),
    var(--bg);
}

.tor-kasten {
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.tor-kasten .wm {
  width: 132px;
  height: 32px;
  margin-bottom: 4px;
}

.tor-kasten h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.hinweis {
  margin: 0;
  font-size: 13px;
  color: var(--text-3);
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-2);
}

input,
textarea,
select {
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-klein);
  padding: 11px 13px;
  width: 100%;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--border-strong);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

textarea {
  min-height: 300px;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
}

button {
  font: inherit;
  cursor: pointer;
}

.tor-kasten button[type='submit'] {
  margin-top: 4px;
  padding: 12px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  transition: background 0.15s ease;
}

.tor-kasten button[type='submit']:hover {
  background: var(--accent-hi);
}

.fehler {
  margin: 0;
  font-size: 13px;
  color: var(--danger);
}

/* ------------------------------------------------------------------ */
/* Geruest                                                             */
/* ------------------------------------------------------------------ */

.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: var(--surface-1);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 5;
}

.marke {
  display: flex;
  align-items: center;
  gap: 12px;
}

.marke span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.kopf-rechts {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stand {
  font-size: 12px;
  color: var(--text-3);
}

.wer {
  font-size: 12px;
  color: var(--text-2);
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.knopf {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.knopf:hover {
  border-color: var(--border-strong);
  background: var(--border);
}

.knopf.gross {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.knopf.gross:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
}

.knopf.still {
  background: none;
  border-color: transparent;
  color: var(--text-2);
}

.knopf.still:hover {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

.knopf[disabled] {
  opacity: 0.45;
  cursor: default;
}

.erinnerung {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--warning);
  background: none;
  color: var(--warning);
  font-size: 12px;
  font-weight: 600;
}

.erinnerung:hover {
  background: color-mix(in srgb, var(--warning) 14%, transparent);
}

.raster {
  display: grid;
  grid-template-columns: 214px 268px minmax(0, 1fr);
  min-height: calc(100dvh - 58px);
}

/* Bereiche ohne Eintragsliste - Startseite, Streamplan, Presse, Konto -
   nutzen die mittlere Spalte nicht. Statt eine Liste mit einem Punkt
   darin zu zeigen, faellt sie weg und die Werkbank bekommt den Platz. */
.raster.ohne-liste {
  grid-template-columns: 214px minmax(0, 1fr);
}

.spalte {
  border-right: 1px solid var(--hairline);
  padding: 18px 16px;
  min-width: 0;
}

.spalte:last-child {
  border-right: 0;
  padding: 22px 24px;
}

.spalten-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  min-height: 34px;
}

.spalten-kopf h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text);
}

/* ------------------------------------------------------------------ */
/* Navigation                                                          */
/* ------------------------------------------------------------------ */

.arten {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gruppe-titel {
  margin: 16px 0 6px;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.gruppe-titel:first-child {
  margin-top: 0;
}

.art {
  text-align: left;
  padding: 9px 12px;
  border-radius: var(--radius-klein);
  border: 1px solid transparent;
  background: none;
  color: var(--text-2);
  font-size: 14px;
  transition:
    background 0.12s ease,
    color 0.12s ease;
}

.art:hover {
  background: var(--surface-1);
  color: var(--text);
}

.art.aktiv {
  background: var(--accent-fill);
  border-color: var(--accent-border);
  color: var(--text);
  font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Listen                                                              */
/* ------------------------------------------------------------------ */

.suche {
  margin-bottom: 10px;
  padding: 9px 12px;
  font-size: 13px;
}

.eintraege {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100dvh - 150px);
  overflow: auto;
}

.eintrag {
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: var(--radius-klein);
  border: 1px solid transparent;
  background: none;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.4;
}

.eintrag:hover {
  background: var(--surface-1);
  color: var(--text);
}

.eintrag.aktiv {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

.eintrag small {
  display: block;
  color: var(--text-3);
  font-size: 11px;
  margin-top: 2px;
}

.gruppe {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 12px 5px;
  background: var(--bg);
  color: var(--text-3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eintrag .hat {
  color: var(--success);
  margin-right: 5px;
}

/* ------------------------------------------------------------------ */
/* Werkbank                                                            */
/* ------------------------------------------------------------------ */

.leer {
  color: var(--text-3);
  font-size: 14px;
  padding: 56px 0;
  text-align: center;
}

.formular {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 940px;
}

.feld-hilfe {
  font-size: 12px;
  color: var(--text-3);
  margin: -6px 0 0;
}

.meldung {
  margin: 16px 0 0;
  padding: 11px 15px;
  border-radius: var(--radius-klein);
  background: var(--surface-1);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
  max-width: 940px;
}

.meldung.gut {
  border-color: color-mix(in srgb, var(--success) 55%, transparent);
  background: color-mix(in srgb, var(--success) 10%, transparent);
  color: var(--success);
}

.meldung.schlecht {
  border-color: color-mix(in srgb, var(--danger) 55%, transparent);
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  color: var(--danger);
}

/* Ein Kasten je Baustein: Kopfbilder, Laeuft gerade, Let's Plays. */
.karte {
  padding: 18px 20px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.karte > h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* Die Zeile mit dem Haken "automatisch". Sie steht ueber dem Feld, das
   sie steuert: erst die Frage, ob von Hand, dann das Feld. */
.haken {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}

.haken input[type='checkbox'] {
  width: 17px;
  height: 17px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.baustein {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Ein Feld, das gerade die Automatik fuehrt, wird ausgegraut statt
   entfernt: so sieht man, was dort stuende, wenn man den Haken loest. */
.baustein.automatisch .steuerbar {
  opacity: 0.4;
  pointer-events: none;
}

.zahlen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* ------------------------------------------------------------------ */
/* Presse                                                              */
/* ------------------------------------------------------------------ */

.kanal {
  padding: 18px 20px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.kanal h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
}

.kennzahl {
  display: grid;
  grid-template-columns: 176px repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}

.kennzahl-name {
  font-size: 13px;
  color: var(--text-2);
  padding-bottom: 11px;
}

/* ------------------------------------------------------------------ */
/* Streamplan, Bilder, Benutzer                                        */
/* ------------------------------------------------------------------ */

.termine {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.termin {
  display: grid;
  grid-template-columns: 1fr 120px 2fr auto;
  gap: 8px;
  align-items: center;
}

.bildwahl {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.bildwahl input[type='file'] {
  width: auto;
  padding: 7px 10px;
  font-size: 12px;
}

.bildwahl .feld-hilfe {
  margin: 0;
}

/* Die Bereiche eines Benutzers, als Kaestchenfeld. */
.bereiche {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px 14px;
}

.zeile-knoepfe {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* ------------------------------------------------------------------ */
/* Telefon                                                             */
/* ------------------------------------------------------------------ */

@media (max-width: 980px) {
  .raster,
  .raster.ohne-liste {
    grid-template-columns: 1fr;
  }

  .spalte {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .spalte:last-child {
    padding: 20px 16px;
  }

  .arten {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .gruppe-titel {
    width: 100%;
    margin: 10px 0 4px;
    padding: 0;
  }

  .eintraege {
    max-height: 320px;
  }

  .kennzahl,
  .termin,
  .zahlen {
    grid-template-columns: 1fr;
  }

  .kennzahl-name {
    padding-bottom: 0;
    font-weight: 600;
    color: var(--text);
  }
}
