/* Farben und Schriften sind die der App (src/renderer/styles/tokens.css), damit
   die Seite aussieht wie das Programm, das man gleich herunterlädt. Die Schriften
   kommen aus Windows statt als Webfont: wer eine Windows-App lädt, hat sie fast
   immer, und die Seite stellt so keine einzige Anfrage an fremde Server. */
:root {
  --schirm: #0f0e0c;
  --gehaeuse: #221f1a;
  --flaeche-1: rgba(255, 241, 224, 0.032);
  --flaeche-2: rgba(255, 241, 224, 0.062);
  --linie: rgba(255, 240, 220, 0.09);
  --linie-stark: rgba(255, 240, 220, 0.17);
  --text: #f4f0e8;
  --text-gedaempft: #a49c8e;
  --text-schwach: #8b8375;
  --text-leise: #6b6458;
  --signal: #ffb000;
  --live: #ff3b21;

  --font-ui: "Bahnschrift", "DIN Alternate", "Arial Narrow", system-ui, sans-serif;
  --font-text: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-daten: "Cascadia Mono", "Consolas", ui-monospace, monospace;

  --breite: 1180px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-inline: clamp(16px, 4vw, 48px);
  background: var(--schirm);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-ui);
  font-stretch: condensed;
  text-wrap: balance;
}

p {
  margin: 0;
}

.huelle {
  max-width: var(--breite);
  margin-inline: auto;
}

/* --- Kopf --------------------------------------------------------------- */

.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--breite);
  margin-inline: auto;
  padding-block: 22px;
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.marke-zeichen {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  background: var(--signal);
  color: #221800;
  font-size: 17px;
}

.kopf-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.kopf-nav a {
  color: var(--text-gedaempft);
  text-decoration: none;
}

.kopf-nav a:hover {
  color: var(--text);
}

.sprache {
  padding: 4px 10px;
  border: 1px solid var(--linie-stark);
  border-radius: 6px;
}

/* --- Held --------------------------------------------------------------- */

.held {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: var(--breite);
  margin-inline: auto;
  padding-block: clamp(28px, 6vw, 72px) clamp(48px, 8vw, 96px);
}

.kennung {
  margin-bottom: 18px;
  color: var(--text-schwach);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.held h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.02;
}

.held-unter {
  max-width: 46ch;
  margin-top: 22px;
  color: var(--text-gedaempft);
  font-size: 17px;
}

.aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.knopf {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding-inline: 22px;
  border: 1px solid var(--linie-stark);
  border-radius: 8px;
  background: var(--flaeche-2);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.knopf:hover {
  border-color: var(--text-leise);
}

.knopf-primaer {
  border-color: var(--signal);
  background: var(--signal);
  color: #221800;
}

.knopf-primaer:hover {
  border-color: #ffc33d;
  background: #ffc33d;
}

.held-fein {
  margin-top: 16px;
  color: var(--text-leise);
  font-family: var(--font-daten);
  font-size: 13px;
}

/* --- Das App-Fenster, nachgebaut ------------------------------------------
   Kein Screenshot: veraltet nicht mit der Oberfläche und zeigt keine fremden
   Plakate oder Senderlogos. Die Poster sind, was die App bei fehlendem Bild
   selbst rendert (Artwork.jsx): Verlauf aus einem Farbton plus Anfangsbuchstabe. */

.geraet {
  overflow: hidden;
  border: 1px solid var(--linie-stark);
  border-radius: 12px;
  background: var(--gehaeuse);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
  font-size: clamp(8px, 0.92vw, 11px);
  user-select: none;
}

.geraet-kopf {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 1em;
  padding: 0.9em 1.3em;
  font-family: var(--font-ui);
}

.gk-ort {
  font-size: 1.35em;
  font-weight: 700;
}

.gk-suche {
  display: flex;
  justify-content: space-between;
  padding: 0.5em 0.9em;
  border-radius: 0.6em;
  background: var(--flaeche-2);
  color: var(--text-leise);
}

.gk-suche kbd {
  font-family: var(--font-daten);
  font-size: 0.9em;
}

.gk-quelle {
  justify-self: end;
  color: var(--text-gedaempft);
}

.geraet-rumpf {
  display: grid;
  grid-template-columns: 8.5em 1fr;
}

.geraet-leiste {
  display: grid;
  align-content: start;
  gap: 0.35em;
  margin: 0;
  padding: 0.4em 0.7em;
  list-style: none;
  color: var(--text-schwach);
  font-family: var(--font-ui);
}

.geraet-leiste li {
  padding: 0.45em 0.7em;
  border-radius: 0.5em;
}

.geraet-leiste .aktiv {
  background: var(--flaeche-2);
  color: var(--text);
  box-shadow: inset 2px 0 0 var(--signal);
}

.geraet-schirm {
  display: grid;
  gap: 1.1em;
  padding: 1.3em 1.4em 1.4em;
  border-radius: 14px 0 0 14px;
  background: var(--schirm);
}

.schirm-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
}

.band-panel {
  display: grid;
  gap: 0.55em;
  padding: 0.9em 1em;
  border: 1px solid var(--linie);
  border-radius: 0.7em;
  background: var(--flaeche-1);
}

.band-titel,
.reihe-titel {
  color: var(--text-schwach);
  font-family: var(--font-ui);
  font-size: 0.95em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.band-zeile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.2em 0.7em;
}

.band-zeile .nr,
.band-zeile .zeit {
  color: var(--text-schwach);
  font-family: var(--font-daten);
  font-variant-numeric: tabular-nums;
}

.band-zeile .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Tally-Rot heißt in der App ausschließlich „auf Sendung" – hier genauso. */
.band-zeile .name.live::before {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.45em;
  border-radius: 50%;
  background: var(--live);
  content: "";
  vertical-align: 0.1em;
}

.balken {
  grid-column: 1 / -1;
  height: 0.22em;
  border-radius: 1em;
  background: var(--flaeche-2);
}

.balken i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--text-leise);
}

.reihe {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.8em;
  margin-top: 0.6em;
}

.poster {
  display: grid;
  aspect-ratio: 2 / 3;
  place-items: center;
  border-radius: 0.5em;
  background: linear-gradient(
    155deg,
    hsl(var(--h) 34% 34%),
    hsl(calc(var(--h) + 38) 40% 14%)
  );
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-ui);
  font-size: 2.6em;
  font-weight: 700;
}

.sendeleiste {
  display: flex;
  align-items: center;
  gap: 1.4em;
  padding: 0.55em 1.3em;
  color: var(--text-schwach);
  font-family: var(--font-ui);
  font-size: 0.95em;
  white-space: nowrap;
}

.sendeleiste .lampe {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--text-gedaempft);
}

.sl-zahl {
  font-family: var(--font-daten);
  font-variant-numeric: tabular-nums;
}

.sl-rechts {
  margin-left: auto;
}

/* --- Abschnitte --------------------------------------------------------- */

.abschnitt {
  max-width: var(--breite);
  margin-inline: auto;
  padding-block: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--linie);
}

.abschnitt > h2 {
  margin-bottom: 36px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
}

.funktionen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--linie);
  border-radius: 12px;
  background: var(--linie);
}

.funktionen article {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 26px 24px 28px;
  background: var(--schirm);
}

.funktionen h3 {
  font-size: 21px;
  font-weight: 700;
}

.funktionen p {
  color: var(--text-gedaempft);
  font-size: 15px;
}

.schritte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: schritt;
}

.schritte li {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-top: 18px;
  border-top: 2px solid var(--linie-stark);
  counter-increment: schritt;
}

.schritte li::before {
  color: var(--text-leise);
  font-family: var(--font-daten);
  font-size: 13px;
  content: counter(schritt, decimal-leading-zero);
}

.schritte h3 {
  font-size: 20px;
  font-weight: 700;
}

.schritte p {
  color: var(--text-gedaempft);
  font-size: 15px;
}

.preis {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.preis h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
}

.preis-text p {
  max-width: 52ch;
  margin-top: 16px;
  color: var(--text-gedaempft);
}

.preis-karte {
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--linie-stark);
  border-radius: 14px;
  background: var(--gehaeuse);
}

.preis-wert {
  font-family: var(--font-ui);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
}

.preis-einheit {
  display: block;
  margin-top: 8px;
  color: var(--text-schwach);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 400;
}

.preis-karte .knopf {
  justify-content: center;
}

.fein {
  color: var(--text-leise);
  font-size: 13px;
}

.hinweise {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.hinweise h2 {
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 700;
}

.hinweise ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  color: var(--text-gedaempft);
}

.hinweise p {
  max-width: 52ch;
  color: var(--text-gedaempft);
}

.hinweise q {
  color: var(--text);
}

.rechtlich {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 18px 22px;
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: var(--flaeche-1);
  color: var(--text-gedaempft);
  font-size: 14px;
}

/* Sichtbar markierte Stellen, bis Impressum, Preis und Sellix-Link vorliegen. */
.platzhalter {
  outline: 1px dashed var(--text-leise);
  outline-offset: 4px;
}

.fuss {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: var(--breite);
  margin: 56px auto 0;
  padding-block: 28px 40px;
  border-top: 1px solid var(--linie);
  color: var(--text-leise);
  font-size: 14px;
}

.fuss nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.fuss a {
  color: var(--text-schwach);
  text-decoration: none;
}

.fuss a:hover {
  color: var(--text);
}

/* --- Schmale Bildschirme ------------------------------------------------ */

@media (max-width: 900px) {
  .held,
  .preis {
    grid-template-columns: minmax(0, 1fr);
  }

  .geraet {
    font-size: clamp(7px, 1.9vw, 11px);
  }
}

@media (max-width: 560px) {
  .kopf-nav a:not(.sprache) {
    display: none;
  }

  .geraet-rumpf {
    grid-template-columns: 1fr;
  }

  .geraet-leiste,
  .gk-quelle {
    display: none;
  }

  .geraet-schirm {
    border-radius: 0;
  }

  .schirm-band {
    grid-template-columns: 1fr;
  }

  .reihe {
    grid-template-columns: repeat(4, 1fr);
  }

  .reihe .poster:nth-child(n + 5) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
