/* ─────────────────────────────────────────────────────────────────────────────
   Streaming Plan (/streamingplan.php)
   Basiert auf dem 1536×1024-Poster-Design. Alle Klassen sind mit "sp-" gescoped,
   damit nichts mit style.css kollidiert.
   Desktop/Tablet: das Poster wird auf die Container-Breite skaliert.
   Mobil (<760px): dieselben Elemente werden zu einer gestapelten Liste umbrochen.
   ───────────────────────────────────────────────────────────────────────────── */

/* style.css setzt kein globales border-box – ohne diesen Reset kämen die 3px-
   Rahmen der Zeilen zusätzlich zur festen Höhe dazu und das Poster liefe unten
   aus der 1024px-Bühne heraus. */
.sp-page, .sp-page *, .sp-page *:before, .sp-page *:after { box-sizing: border-box; }

.sp-page {
  max-width: 1536px;
  margin: 0 auto;
  padding: 110px 16px 60px;
}

.sp-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.sp-head h1 {
  font-family: 'Anton', Impact, sans-serif;
  font-style: italic;
  font-size: clamp(22px, 4vw, 34px);
  letter-spacing: 1px;
  margin: 0;
  color: #fff;
}
.sp-week-label {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(15px, 2.6vw, 20px);
  letter-spacing: 1px;
  color: #ff4b4b;
}

/* ── Skalierte Bühne ─────────────────────────────────────────────────────── */
/* aspect-ratio hält den Platz frei, bis JS die exakte Höhe setzt */
.sp-stage { position: relative; width: 100%; overflow: hidden; aspect-ratio: 1536 / 1024; }
.sp-shell {
  position: absolute;
  left: 0; top: 0;
  width: 1536px; min-height: 1024px;
  transform-origin: top left;
  will-change: transform;
}

/* min-height statt height: sollte der Inhalt einmal höher werden (lange Namen,
   Fallback-Schriften), wächst das Poster mit, statt unten abgeschnitten zu
   werden – JS misst die echte Höhe und stellt die Bühne passend ein. */
.sp-card {
  position: relative;
  width: 1536px; min-height: 1024px;
  padding-bottom: 15px;
  overflow: hidden;
  background: #020202;
  color: #fff;
  border-radius: 20px;
  font-family: 'Bebas Neue', Impact, sans-serif;
}
.sp-card:before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 7% 20%, rgba(230,0,0,.18), transparent 20%),
    radial-gradient(circle at 93% 18%, rgba(230,0,0,.14), transparent 18%),
    repeating-linear-gradient(135deg, transparent 0 8px, rgba(240,0,0,.035) 8px 9px), #020202;
}
.sp-card:after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .65;
  background: radial-gradient(circle, #b40000 0 2px, transparent 2.5px) 0 0/14px 14px;
  -webkit-mask: linear-gradient(90deg, #000 0 8%, transparent 18% 82%, #000 92% 100%), linear-gradient(#000 0 34%, transparent 48%);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, #000 0 8%, transparent 18% 82%, #000 92% 100%), linear-gradient(#000 0 34%, transparent 48%);
  mask-composite: intersect;
}

/* ── Kopfbereich ─────────────────────────────────────────────────────────── */
.sp-hero {
  height: 382px;
  display: grid;
  grid-template-columns: 43.2% 56.8%;
  align-items: center;
  padding: 0 35px 0 90px;
  position: relative; z-index: 1;
}
.sp-hero:after {
  content: ""; position: absolute; left: 24px; right: 24px; bottom: 0;
  height: 3px; background: #b90000; box-shadow: 0 0 8px #b90000;
}
.sp-brand { height: 100%; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; }
.sp-logo  { width: 430px; height: 370px; object-fit: contain; filter: drop-shadow(0 0 6px #d10000); }
.sp-headline { align-self: center; transform: translate(-10px,-8px); }
.sp-streaming {
  font-family: 'Anton', Impact, sans-serif; font-style: italic;
  font-size: 132px; letter-spacing: 1px; line-height: .78;
  transform: skew(-6deg); text-shadow: 0 4px 0 #9d9d9d, 0 8px 12px #000;
}
.sp-plan {
  font-family: 'Permanent Marker', cursive; color: #e50909;
  font-size: 151px; line-height: .85; margin-left: 55px;
  transform: rotate(-2deg) skew(-5deg);
  text-shadow: 0 5px 0 #530000, 0 0 14px rgba(255,0,0,.5);
}
.sp-stroke {
  height: 25px; width: 620px; margin: 7px 0 0 35px;
  background: linear-gradient(90deg, transparent, #d40000 8%, #ff1b1b 70%, transparent);
  clip-path: polygon(0 48%,18% 35%,29% 44%,46% 14%,58% 50%,76% 28%,100% 48%,83% 65%,58% 74%,35% 62%,12% 78%);
}

/* ── Tageszeilen ─────────────────────────────────────────────────────────── */
.sp-schedule { position: relative; z-index: 2; padding: 0 35px; }
.sp-row {
  height: 81px;
  display: grid;
  grid-template-columns: 181px 367px 435px 1fr;
  align-items: center;
  border: 3px solid #b90000;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(180,0,0,.07), transparent 28%, rgba(150,0,0,.04));
  box-shadow: inset 0 0 0 1px rgba(255,0,0,.12), 0 0 8px rgba(255,0,0,.18);
  overflow: hidden;
}
.sp-row + .sp-row { margin-top: -2px; }
.sp-row > * { height: 100%; display: flex; align-items: center; min-width: 0; }
.sp-date, .sp-day, .sp-content { border-right: 3px solid #b90000; }
.sp-date, .sp-day, .sp-time {
  font-family: 'Anton', Impact, sans-serif; font-style: italic;
  white-space: nowrap; text-shadow: 0 2px 2px #000;
}
.sp-date { justify-content: center; font-size: 48px; letter-spacing: .5px; }
.sp-day  { padding-left: 24px; font-size: 55px; letter-spacing: .5px; }
.sp-content {
  justify-content: center; color: #df1111;
  font-family: 'Permanent Marker', cursive;
  font-size: 47px; line-height: 1; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 0 10px; text-shadow: 0 2px 0 #360000;
  text-transform: uppercase;
}
.sp-content--long  { font-size: 38px; }
.sp-content--xlong { font-size: 30px; }
.sp-time-wrap { justify-content: flex-start; padding-left: 32px; gap: 20px; }
.sp-time-wrap svg { width: 54px; height: 54px; color: #c90000; stroke-width: 2.1; filter: drop-shadow(0 0 2px #700); flex-shrink: 0; }
.sp-time   { font-size: 55px; }
.sp-period { color: #d51515; font-family: 'Permanent Marker', cursive; font-size: 35px; white-space: nowrap; margin-left: 2px; }

/* Frei / noch offen: eine breite Zelle statt Inhalt + Uhrzeit */
.sp-row--wide { grid-template-columns: 181px 367px 1fr; }
.sp-free-wrap { justify-content: center; gap: 78px; }
.sp-free-wrap svg  { width: 76px; height: 76px; color: #cf0000; stroke-width: 1.7; flex-shrink: 0; }
.sp-free-wrap span { font-family: 'Permanent Marker', cursive; font-size: 57px; transform: rotate(-2deg); text-transform: uppercase; }
.sp-row--open .sp-free-wrap { gap: 46px; }
.sp-row--open .sp-free-wrap span { font-size: 42px; color: #b9b9b9; }
.sp-row--open .sp-free-wrap svg  { color: #8d0000; }

/* Heutiger Tag */
.sp-row--today {
  border-color: #ff2323;
  box-shadow: inset 0 0 0 1px rgba(255,60,60,.35), 0 0 22px rgba(255,0,0,.45);
  background: linear-gradient(90deg, rgba(255,0,0,.16), transparent 34%, rgba(180,0,0,.08));
}

/* ── Legende ─────────────────────────────────────────────────────────────── */
.sp-legend {
  position: relative; z-index: 2;
  margin: 0 35px; height: 72px;
  display: grid; grid-template-columns: 330px 3px 342px 318px 1fr;
  align-items: center;
  border: 3px solid #b90000; border-radius: 16px; overflow: hidden;
}
.sp-legend-item {
  height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: 'Anton', Impact, sans-serif; font-style: italic;
  font-size: 45px; letter-spacing: 1px; white-space: nowrap;
}
.sp-live { gap: 28px; }
.sp-live-dot { width: 45px; height: 45px; border-radius: 50%; background: #ed0a0a; border: 4px solid #640000; box-shadow: 0 0 12px #f00; }
.sp-divider { height: 68%; background: #b90000; }
.sp-icon-label { gap: 28px; color: #d50808; }
.sp-icon-label svg  { width: 52px; height: 52px; }
.sp-icon-label span { font-size: 45px; }

.sp-foot {
  margin-top: 14px;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 15px; letter-spacing: 1px; color: #8a8a8a;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.sp-error { color: #ff6b6b; }

/* ── Mobil: gestapelte Liste statt skaliertem Poster ─────────────────────── */
@media (max-width: 759px) {
  .sp-page  { padding: 92px 12px 40px; }
  .sp-stage { overflow: visible; height: auto !important; aspect-ratio: auto; }
  .sp-shell { position: static; width: 100%; height: auto; min-height: 0; transform: none !important; }
  .sp-card  { width: 100%; height: auto; min-height: 0; padding-bottom: 18px; border-radius: 16px; }
  .sp-card:after { display: none; }

  .sp-hero { height: auto; grid-template-columns: 1fr; padding: 18px 14px 14px; text-align: center; }
  .sp-brand { padding-bottom: 0; justify-content: center; }
  .sp-logo  { width: min(60vw, 230px); height: auto; }
  .sp-headline { transform: none; margin-top: 6px; }
  .sp-streaming { font-size: clamp(38px, 12vw, 64px); }
  .sp-plan      { font-size: clamp(42px, 14vw, 74px); margin-left: 0; }
  .sp-stroke    { width: 70%; margin: 4px auto 0; height: 14px; }

  .sp-schedule { padding: 0 12px; }
  .sp-row, .sp-row--wide {
    height: auto;
    grid-template-columns: auto 1fr;
    grid-template-areas: "date day" "main main";
    row-gap: 4px;
    padding: 10px 12px;
    margin-top: 10px !important;
    border-radius: 14px;
  }
  .sp-row > * { height: auto; }
  .sp-date { grid-area: date; justify-content: flex-start; font-size: clamp(20px, 6vw, 28px); border-right: none; padding-right: 12px; }
  .sp-day  { grid-area: day;  padding-left: 0; font-size: clamp(22px, 6.5vw, 32px); border-right: none; }
  .sp-content, .sp-time-wrap, .sp-free-wrap { grid-area: main; }
  .sp-content {
    justify-content: flex-start; border-right: none; padding: 0;
    font-size: clamp(20px, 6vw, 30px) !important;
    white-space: normal; overflow: visible; text-overflow: clip; text-align: left;
  }
  .sp-row--stream { grid-template-areas: "date day" "main main" "time time"; }
  .sp-time-wrap { grid-area: time; padding-left: 0; gap: 10px; }
  .sp-time-wrap svg { width: 26px; height: 26px; }
  .sp-time   { font-size: clamp(20px, 6vw, 28px); }
  .sp-period { font-size: clamp(14px, 4vw, 20px); }
  .sp-free-wrap { justify-content: flex-start; gap: 14px; }
  .sp-free-wrap svg  { width: 34px; height: 34px; }
  .sp-free-wrap span { font-size: clamp(22px, 7vw, 32px); }
  .sp-row--open .sp-free-wrap span { font-size: clamp(16px, 5vw, 24px); }

  .sp-legend {
    margin: 14px 12px 0; height: auto;
    grid-template-columns: 1fr 1fr; gap: 8px 4px; padding: 10px 6px;
    border-radius: 14px;
  }
  .sp-legend-item { font-size: clamp(15px, 4.5vw, 22px); gap: 10px; }
  .sp-icon-label svg  { width: 24px; height: 24px; }
  .sp-icon-label span { font-size: clamp(15px, 4.5vw, 22px); }
  .sp-live-dot { width: 20px; height: 20px; border-width: 3px; }
  .sp-divider  { display: none; }
}
