/**
 * Die Ankunftsseite — und nur die.
 *
 * Hier darf es krachen: Ein Piratensender, der sich selbst sendet. Hinten läuft ein
 * endloser Tunnel aus Bildschirmrahmen, denn genau das IST Bildschirmteilen — ein
 * Schirm, der einen Schirm zeigt, der einen Schirm zeigt. Sobald die Sendung läuft,
 * ist der Zirkus vorbei und die Bühne wird ruhig und sachlich.
 *
 * Alles Bewegte hört bei „prefers-reduced-motion" auf. Ganz unten steht, was dann bleibt.
 */

.tunnel {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* Zeilenraster und abgedunkelte Ränder: Das Bild soll aus einer Röhre kommen. */
.rasterschicht {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 95% at 50% 45%, transparent 38%, rgb(4 3 9 / 0.78) 100%),
    repeating-linear-gradient(to bottom, rgb(255 255 255 / 0.028) 0 1px, transparent 1px 3px);
  mix-blend-mode: normal;
}

.ankunft {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(22px, 5vh, 64px) 20px 120px;
}

/* ── Statuszeile: wie das Display an einem Mischpult ── */
.statuszeile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 10.5px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nebel);
  padding: 8px 14px;
  border: 1px solid var(--rand);
  border-radius: 999px;
  background: rgb(8 7 15 / 0.6);
  backdrop-filter: blur(6px);
}
.statuszeile b { color: var(--saeure); font-weight: 700; }
@media (max-width: 560px) {
  /* Auf schmalen Geräten bricht die gesperrte Großschrift hässlich um. */
  .statuszeile { letter-spacing: 0.12em; font-size: 9.5px; padding: 7px 11px; }
  .statuszeile .nurbreit { display: none; }
  /* Sonst erschlägt der Fließtext die Schlagzeile. */
  .anmoderation { font-size: 12.8px; line-height: 1.7; }
  .lehre { font-size: 11.8px; }
}

/* ── Die Schlagzeile ── */
.titan {
  font-family: var(--anzeige);
  font-weight: 800;
  /* Startwert. Die echte Größe rechnet „zeilenFuellen" aus, damit JEDE Zeile die
     Breite exakt ausfüllt — bündig links UND rechts. Geraten per vw lief „SENDUNG."
     rechts aus dem Bild. */
  font-size: clamp(40px, 11vw, 150px);
  line-height: 0.82;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  margin: clamp(18px, 4vh, 40px) 0 0;
  color: var(--weiss);
  /* Farbversatz wie bei einem schlecht eingestellten Sender. */
  text-shadow:
    0.055em 0 0 rgb(255 47 146 / 0.52),
    -0.055em 0 0 rgb(55 233 255 / 0.46);
}
.titan .zeile { display: block; white-space: nowrap; }
.titan .saeure-wort { color: var(--saeure); text-shadow: 0.05em 0 0 rgb(255 47 146 / 0.42), -0.05em 0 0 rgb(55 233 255 / 0.38); }
.titan span[data-wort] { display: inline-block; }

.anmoderation {
  max-width: 50ch;
  margin: clamp(16px, 3vh, 28px) 0 0;
  font: 14.5px/1.65 var(--mono);
  color: #b9b6d2;
}
.anmoderation b { color: var(--weiss); font-weight: 700; }

/* ── Das Pult: Felder links, Sendeknopf rechts ── */
.pult {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 48px);
  align-items: end;
  margin-top: clamp(26px, 5vh, 52px);
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--rand);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgb(25 24 38 / 0.82), rgb(10 9 18 / 0.9));
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -40px rgb(0 0 0 / 0.9);
}
@media (max-width: 760px) {
  .pult { grid-template-columns: 1fr; align-items: stretch; }
}

/* Die Linkvorschau steht direkt am Feld: Man soll beim Tippen sehen, wie der Raum heißt. */
.linkvorschau {
  margin: 8px 2px 0;
  font: 11.5px/1.5 var(--mono);
  color: var(--nebel);
  overflow-wrap: anywhere;
}
.linkvorschau.frei { color: var(--saeure); }
.linkvorschau.belegt { color: var(--magenta); }

.pult .reihe { margin-bottom: 16px; }
.pult .schalter { margin-bottom: 10px; }
.pult .schalter:last-of-type { margin-bottom: 0; }

/* ── Der Sendeknopf: rund, mit laufendem Ring ── */
.pad {
  position: relative;
  width: clamp(148px, 19vw, 188px);
  height: clamp(148px, 19vw, 188px);
  border-radius: 50%;
  padding: 0;
  background: radial-gradient(circle at 50% 38%, #1d1b2e, #0b0a14 70%);
  color: var(--saeure);
  box-shadow: inset 0 0 0 1px var(--rand), 0 0 60px -18px rgb(216 255 70 / 0.5);
  display: grid;
  place-items: center;
  overflow: hidden;
  justify-self: center;
}
.pad::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent 0 62%, var(--saeure) 76%, var(--zyan) 84%, transparent 92%);
  animation: ringlauf 4.4s linear infinite;
}
.pad::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, #1c1a2d, #09080f 72%);
  box-shadow: inset 0 0 0 1px rgb(216 255 70 / 0.26);
}
.pad .pad-text {
  position: relative;
  z-index: 1;
  font: 700 12px/1.35 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 18px;
}
.pad:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--rand), 0 0 90px -14px rgb(216 255 70 / 0.72); filter: none; }
.pad:hover::before { animation-duration: 1.5s; }
@keyframes ringlauf { to { transform: rotate(1turn); } }

.lehre {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 62ch;
  margin: clamp(22px, 4vh, 36px) 0 0;
  font: 12.5px/1.65 var(--mono);
  color: var(--nebel);
}
.lehre .zeichen {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  border: 1px solid rgb(55 233 255 / 0.38);
  color: var(--zyan);
  background: rgb(55 233 255 / 0.08);
}
.lehre .zeichen svg { width: 16px; height: 16px; }
.lehre b { color: var(--weiss); }

/* ── Hinweis auf das Windows-Programm ── */
.windows-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: clamp(18px, 3vh, 28px);
  padding: 14px 16px;
  border: 1px solid var(--rand);
  border-radius: 14px;
  background: rgb(18 17 31 / 0.72);
  backdrop-filter: blur(8px);
  color: var(--nebel);
  text-decoration: none;
  font: 12.5px/1.6 var(--mono);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.windows-band:hover { border-color: rgb(55 233 255 / 0.5); background: rgb(22 21 38 / 0.86); }
.windows-band b { color: var(--weiss); }
.windows-band kbd {
  font: 700 10.5px/1.5 var(--mono);
  background: #0c0b16; border: 1px solid var(--rand); border-radius: 5px;
  padding: 1px 5px; color: var(--weiss); white-space: nowrap;
}
.windows-band .zeichen {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid rgb(55 233 255 / 0.38);
  color: var(--zyan);
  background: rgb(55 233 255 / 0.08);
}
.windows-band .zeichen svg { width: 18px; height: 18px; }
.windows-band .last {
  font: 700 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--zyan); white-space: nowrap;
  padding: 7px 11px; border-radius: 999px; border: 1px solid rgb(55 233 255 / 0.38);
}
@media (max-width: 640px) {
  .windows-band { grid-template-columns: auto 1fr; }
  .windows-band .last { grid-column: 2; justify-self: start; }
}

/* ── Laufband am Fuß ── */
.band {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  overflow: hidden;
  border-top: 1px solid var(--rand);
  background: rgb(8 7 15 / 0.82);
  backdrop-filter: blur(8px);
  padding: 9px 0;
  pointer-events: none;
}
.band-lauf {
  display: inline-flex;
  white-space: nowrap;
  font: 700 10.5px/1 var(--mono);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--nebel);
  animation: bandlauf 38s linear infinite;
}
.band-lauf span { padding-right: 2.4em; }
.band-lauf em { color: var(--saeure); font-style: normal; }
@keyframes bandlauf { to { transform: translateX(-50%); } }

/* ── Umschnitt auf Sendung: kurzer Weißblitz, dann ist der Zirkus weg ── */
.blitz {
  position: fixed;
  inset: 0;
  z-index: 9;
  background: var(--saeure);
  pointer-events: none;
  animation: blitzen 0.52s ease-out forwards;
}
@keyframes blitzen {
  0% { opacity: 0.9; }
  100% { opacity: 0; }
}

.ankunft[data-weg="ja"] { animation: wegfallen 0.42s ease forwards; }
@keyframes wegfallen {
  to { opacity: 0; transform: scale(1.08); filter: blur(10px); }
}

@media (prefers-reduced-motion: reduce) {
  /* Was bleibt: Farben, Typografie, Rahmen. Was geht: alles, was sich bewegt. */
  .pad::before, .band-lauf { animation: none; }
  .pad::before { background: conic-gradient(from 210deg, transparent 0 62%, var(--saeure) 78%, transparent 90%); }
  .blitz, .ankunft[data-weg="ja"] { animation: none; opacity: 0; }
  .titan { text-shadow: none; }
}
