/*
 * eventMaTV – Designrichtlinie, Grundlage für alle Bereiche (Website, Konto, Gäste-Seiten, Bildschirm, Admin).
 * Leitidee „Sender“: eventMaTV ist der eigene Sender der Feier. Formen und Zeichen kommen aus dem Fernsehen –
 * Senderkennung (Badge), Bauchbinde, Live-Punkt, Bildschirm-Rahmen. Ausführlich mit Beispielen: /admin/richtlinie
 * Nur Variablen und benannte Bausteine (.ftv-*), keine Element-Stile – die Datei darf überall geladen werden.
 */
:root {
  /* ---------- Farben */
  --ftv-ink: #23253A;          /* Sendernacht: Text, dunkle Flächen, Bildschirm */
  --ftv-ink-deep: #171827;     /* tiefer: Fußleiste, Rahmen */
  --ftv-ink-soft: #3A3D5C;     /* Flächen auf Sendernacht */
  --ftv-signal: #CE5916;       /* Logo-Orange: Logo, große Flächen, große Schrift (weißer Text 4,15:1 – nur ab 19 px fett) */
  --ftv-action: #B54C12;       /* Aktions-Orange: Knöpfe, kleine Badges, orange Schrift (weißer Text 5,2:1) */
  --ftv-signal-dark: #B54C12;
  --ftv-signal-deep: #8E3A0C;
  --ftv-signal-bright: #F17C20;/* Orange auf dunklem Grund (Live-Punkt, Akzent) */
  --ftv-signal-tint: #FCE6D8;  /* zarte Orange-Fläche (Symbole, Hinweise) */
  --ftv-sky: #009DE1;          /* eventMa-Blau: Fokus, Info – sparsam */
  --ftv-sky-text: #0077AD;     /* Blau als Schrift auf Weiß */
  --ftv-sky-tint: #E1F3FC;
  --ftv-paper: #FFFFFF;        /* Karten, Formulare */
  --ftv-studio: #F2F3F7;       /* Studio-Grau: ruhige Flächen, Seitengrund */
  --ftv-studio-deep: #E7E9F0;
  --ftv-line: #E1E3EB;         /* Linien, Rahmen */
  --ftv-line-strong: #C9CDD9;  /* kräftigere Linien (Deko, gestrichelt) – nicht für Feldrahmen, nur 1,4:1 */
  --ftv-field-line: #80839A;   /* Rahmen von Formularfeldern, Schaltern, Kästchen: 3,4:1 auf Studio-Grau, 3,7:1 auf Weiß (WCAG 1.4.11) */
  --ftv-muted: #45475E;        /* Nebentext (≥ 7:1 auf Weiß) */
  --ftv-muted-2: #5B5D72;      /* Hinweise (≥ 4,5:1 auf Studio-Grau) */
  --ftv-on-ink: #D5D7E3;       /* Fließtext auf Sendernacht */
  --ftv-good: #1F7A4D; --ftv-good-tint: #E3F3EA;
  --ftv-warn: #8A5300; --ftv-warn-tint: #FFF1DC;
  --ftv-bad: #B3261E;  --ftv-bad-tint: #FBE4E1;

  /* ---------- Schrift */
  --ftv-head: "Poppins", system-ui, sans-serif;     /* Logo-Schrift: Überschriften, Badges, Zahlen */
  --ftv-body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ftv-track-display: -0.035em;                     /* wie im Logo */
  --ftv-track-head: -0.02em;

  /* ---------- Formen: alles leitet sich vom Badge im Logo ab (Ecke ≈ 19 % der Höhe) */
  --ftv-r-badge: .19em;        /* Badges in Textgröße */
  --ftv-r-control: 10px;       /* Knöpfe, Felder (52 px hoch → 19 % ≈ 10 px) */
  --ftv-r-card: 22px;          /* Karten, Bildschirm-Rahmen */
  --ftv-r-stage: 36px;         /* große Flächen */

  /* ---------- Abstände (8er-Raster, 4 als Feinstufe) */
  --ftv-s1: 4px; --ftv-s2: 8px; --ftv-s3: 12px; --ftv-s4: 16px; --ftv-s5: 24px; --ftv-s6: 32px; --ftv-s7: 48px; --ftv-s8: 64px; --ftv-s9: 96px;

  /* ---------- Schatten und Bewegung */
  --ftv-shadow-card: 0 1px 0 rgba(35, 37, 58, .04), 0 18px 44px rgba(35, 37, 58, .09);
  --ftv-shadow-pop: 0 24px 60px rgba(23, 24, 39, .22);
  --ftv-ease: cubic-bezier(.2, .8, .2, 1);
  --ftv-fast: .18s; --ftv-slow: .45s;

  /* ---------- Bisherige Namen (werden in site.css, konto.css genutzt) */
  --orange: var(--ftv-action); --orange-dark: var(--ftv-signal-deep); --orange-deep: var(--ftv-signal-deep); --orange-light: var(--ftv-signal-bright);
  --blue: var(--ftv-sky); --blue-text: var(--ftv-sky-text);
  --navy: var(--ftv-ink); --navy-deep: var(--ftv-ink-deep);
  --ground: var(--ftv-studio); --peach: var(--ftv-signal-tint); --sky: var(--ftv-sky-tint); --line: var(--ftv-line);
  --muted: var(--ftv-muted); --muted2: var(--ftv-muted-2);
  --head: var(--ftv-head); --body: var(--ftv-body); --hand: var(--ftv-head);
}

/* ---------- Senderkennung (Badge): weißer Text im orangen Kästchen – wie „TV“ im Logo.
   Nur für Kennzeichen mit Bedeutung: Status, Hervorhebung, Schrittnummer. Nie als Deko über jeder Überschrift. */
.ftv-badge { display: inline-flex; align-items: center; gap: .35em; padding: .2em .5em .18em; border-radius: var(--ftv-r-badge);
  background: var(--ftv-action); color: #fff; font-family: var(--ftv-head); font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; white-space: nowrap; }
.ftv-badge.is-ink { background: var(--ftv-ink); }
.ftv-badge.is-light { background: var(--ftv-paper); color: var(--ftv-ink); }
.ftv-badge.is-soft { background: var(--ftv-studio-deep); color: var(--ftv-ink); }
.ftv-badge.is-good { background: var(--ftv-good); }

/* ---------- Live-Punkt: läuft gerade */
.ftv-live { display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: var(--ftv-signal-bright); flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(241, 124, 32, .55); animation: ftv-pulse 2s ease-out infinite; }
@keyframes ftv-pulse { 0% { box-shadow: 0 0 0 0 rgba(241, 124, 32, .55); } 70%, 100% { box-shadow: 0 0 0 .55em rgba(241, 124, 32, 0); } }

/* ---------- Bauchbinde: Name/Titel im Bild, links das orange Kennzeichen */
.ftv-lower { display: inline-flex; align-items: stretch; max-width: 100%; border-radius: var(--ftv-r-control); overflow: hidden;
  background: var(--ftv-paper); color: var(--ftv-ink); font-weight: 800; box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
.ftv-lower::before { content: ""; flex: 0 0 .45em; background: var(--ftv-signal); }
.ftv-lower > span { padding: .45em .8em .45em .7em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ftv-lower.enter { animation: ftv-lower-in var(--ftv-slow) var(--ftv-ease) both; }
@keyframes ftv-lower-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Bildschirm-Rahmen: Vorschauen und Fotos „auf Sendung“ */
.ftv-screen { background: var(--ftv-ink-deep); border: 10px solid #0A0B12; border-radius: var(--ftv-r-card); overflow: hidden; }

/* ---------- Knopf: Badge-Form (Ecke 10 px bei 52 px Höhe), Poppins 700 */
.ftv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 26px; border-radius: var(--ftv-r-control);
  border: 2px solid transparent; background: var(--ftv-action); color: #fff; font-family: var(--ftv-head); font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background var(--ftv-fast), color var(--ftv-fast), border-color var(--ftv-fast); }
.ftv-btn:hover { background: var(--ftv-signal-deep); color: #fff; }
.ftv-btn:focus-visible { outline: 3px solid var(--ftv-sky); outline-offset: 3px; }
.ftv-btn:disabled { opacity: .55; cursor: not-allowed; }
.ftv-btn.is-secondary { background: transparent; color: var(--ftv-ink); border-color: var(--ftv-ink); }
.ftv-btn.is-secondary:hover { background: var(--ftv-ink); color: #fff; }
.ftv-btn.is-light { background: #fff; color: var(--ftv-ink); }
.ftv-btn.is-light:hover { background: var(--ftv-signal-tint); }
.ftv-btn.is-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.ftv-btn.is-ghost:hover { border-color: #fff; }
.ftv-btn.is-small { min-height: 44px; padding: 8px 18px; font-size: 15px; }

/* ---------- Feld */
.ftv-field { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 16px; color: var(--ftv-ink); }
.ftv-field input, .ftv-field select, .ftv-field textarea { width: 100%; min-height: 54px; padding: 10px 16px; border: 2px solid var(--ftv-field-line);
  border-radius: var(--ftv-r-control); background: var(--ftv-studio); font: inherit; font-weight: 600; font-size: 17px; color: var(--ftv-ink); }
.ftv-field input:focus, .ftv-field select:focus, .ftv-field textarea:focus { outline: none; border-color: var(--ftv-sky); background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 157, 225, .18); }
.ftv-field small { font-weight: 600; font-size: 14px; color: var(--ftv-muted-2); }

@media (prefers-reduced-motion: reduce) {
  .ftv-live { animation: none; }
  .ftv-lower.enter { animation: none; }
}
