/* =========================================================
   Streamster – Hauptstylesheet
   Farben und Schriften zentral in :root anpassen.
   ========================================================= */

@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-ExtraBoldItalic.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Streamster CI: Pink #FF0057 und Orange #FF6E28, Verlauf 45° – auf dem Nachtblau der Website */
  --ink: #0C1E33;        /* Hintergrund */
  --ink-2: #132A47;      /* Flächen */
  --ink-3: #1B3759;      /* Hover-Flächen */
  --rule: #26466E;       /* Linien */
  --paper: #F3F6FA;      /* Text */
  --mist: #A3B6CE;       /* Nebentext */
  --pink: #FF0057;       /* CI Pink */
  --orange: #FF6E28;     /* CI Orange */
  --grad: linear-gradient(135deg, var(--pink), var(--orange)); /* CI-Verlauf 45° */
  --accent: var(--orange);  /* Linien, Links, Fokus */
  --live: var(--pink);      /* Live-Status */

  /* CI-Headline-Schrift ist URW DIN Condensed Black (Lizenzschrift); Barlow Condensed ist der freie Ersatz.
     Mit Webfont-Lizenz einfach "URW DIN Condensed" vorne ergänzen. */
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --text: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1280px;
  --gap: clamp(16px, 2.2vw, 28px);
  --radius: 6px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 1.0625rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--grad); color: #fff; padding: 10px 14px; font-weight: 600; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: 0.005em; }
h1, h2 { font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: 700 1.05rem/1 var(--display); letter-spacing: .02em;
  padding: .8em 1.25em; border-radius: var(--radius);
  background: var(--grad); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  font-style: italic; text-transform: uppercase;
}
.btn:hover { background: linear-gradient(135deg, #ff1f6c, #ff8547); }
.btn-ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px var(--rule); font-style: normal; text-transform: none; }
.btn-ghost:hover { background: var(--ink-3); }
.btn svg { width: 1em; height: 1em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 34px; width: auto; }
.footer-grid .logo img { height: 72px; }
.logo-text { font: 700 1.7rem/1 var(--display); letter-spacing: .01em; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav > li { position: relative; list-style: none; }
.nav a, .nav button {
  display: block; padding: 10px 12px; text-decoration: none; color: var(--paper);
  font: 600 1.15rem/1 var(--display); background: none; border: 0; cursor: pointer; border-radius: var(--radius);
}
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] { background: var(--ink-2); }
.nav .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; padding: 6px; margin: 0; list-style: none; background: var(--ink-2); border: 1px solid var(--rule); border-radius: var(--radius); }
.nav li:hover > .sub, .nav li:focus-within > .sub { display: block; }
.nav .sub a { font: 500 1rem/1.2 var(--text); padding: 10px 12px; }
.nav ul { margin: 0; padding: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { font-size: 1rem; padding: .65em 1em; }
.menu-toggle { display: none; background: none; border: 0; color: var(--paper); padding: 8px; cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .menu-toggle { display: block; margin-left: auto; }
  .nav, .header-actions { display: none; }
  .site-header.open .wrap { flex-wrap: wrap; }
  .site-header.open .nav { display: block; order: 3; width: 100%; padding: 0 0 12px; }
  .site-header.open .header-actions { display: flex; order: 4; width: 100%; padding-bottom: 16px; }
  .nav .sub { display: block; position: static; border: 0; background: none; padding: 0 0 0 12px; }
}

/* ---------- Status ---------- */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font: 700 .95rem/1 var(--display); letter-spacing: .03em;
  padding: 5px 8px 4px; border-radius: 3px; background: var(--ink-3); color: var(--paper);
}
.status-live { background: var(--live); }
.status-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s ease-in-out infinite; }
.status-upcoming { background: var(--paper); color: var(--ink); }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .status-live::before { animation: none; } }

/* ---------- Bühne (Startseite) ---------- */
.stage { padding: 22px 0 8px; }
.stage-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 960px);
  gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: max(var(--gap), calc((100vw - var(--wrap)) / 2));
  scrollbar-width: none;
}
.stage-rail::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: center; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); text-decoration: none; aspect-ratio: 16 / 9; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide .noimg { width: 100%; height: 100%; }
/* Bauchbinde wie im TV-Bild */
.lower-third {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(14px, 3vw, 32px);
  background: linear-gradient(to top, rgba(8, 20, 36, .95) 0%, rgba(8, 20, 36, .75) 55%, transparent 100%);
}
.lower-third .meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font: 600 1.05rem/1 var(--display); color: var(--mist); }
.lower-third h2 { font-size: clamp(1.6rem, 4vw, 3.2rem); max-width: 22ch; }
.status-upcoming { background: #fff; color: var(--ink); }
.lower-third .sub { margin: 6px 0 0; color: var(--mist); font-size: clamp(.95rem, 1.6vw, 1.15rem); max-width: 60ch; }
.lower-third .when { display: inline-block; margin-top: 14px; padding: 6px 10px; background: var(--grad); color: #fff; font: 700 1.05rem/1 var(--display); border-radius: 3px; }
.stage-controls { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.stage-controls button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); background: var(--ink-2); color: var(--paper); cursor: pointer; }
.stage-controls button:hover { background: var(--ink-3); }

/* Platzhalter, wenn kein Vorschaubild vorhanden ist */
.noimg { display: grid; place-items: center; background:
  repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(255,255,255,.05) calc(10% - 1px) 10%),
  linear-gradient(160deg, var(--ink-3), var(--ink-2)); }
.noimg img { width: 30%; max-width: 140px; height: auto; object-fit: contain; opacity: .9; }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(40px, 6vw, 72px) 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head a { color: var(--mist); font-weight: 500; text-decoration: none; }
.section-head a:hover { color: var(--paper); text-decoration: underline; }

/* Kacheln (Live und On Demand) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); }
.tile { text-decoration: none; display: flex; flex-direction: column; }
.tile .thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); }
.tile .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tile:hover .thumb img { transform: scale(1.03); }
.tile .thumb .status { position: absolute; left: 10px; top: 10px; }
.tile .sport { margin-top: 12px; font: 600 1rem/1 var(--display); color: var(--mist); }
.tile h3 { margin-top: 6px; font-size: 1.35rem; }
.tile .sub { margin: 4px 0 0; color: var(--mist); font-size: .98rem; line-height: 1.4; }
.tile .when { margin-top: 8px; font-size: .92rem; color: var(--mist); }
.tile:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tiles-live .tile .thumb { box-shadow: 0 0 0 3px var(--live); }
@media (prefers-reduced-motion: reduce) { .tile .thumb img { transition: none; } }

/* Spielplan (Upcoming) – wie eine Ansetzungsliste */
.fixtures { border-top: 2px solid var(--paper); }
.fixture-day { font: 700 1.2rem/1 var(--display); padding: 18px 0 10px; color: var(--accent); border-bottom: 1px solid var(--rule); }
.fixture {
  display: grid; grid-template-columns: 86px 56px 1fr auto; align-items: center; gap: 18px;
  padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none;
}
.fixture:hover { background: var(--ink-2); }
.fixture .time { font: 700 1.6rem/1 var(--display); font-variant-numeric: tabular-nums; padding-left: 4px; }
.fixture .icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; }
.fixture .icon img { width: 100%; height: 100%; object-fit: contain; }
.fixture .what .sport { font: 600 .98rem/1 var(--display); color: var(--mist); }
.fixture .what strong { display: block; font: 700 1.3rem/1.15 var(--display); margin-top: 4px; }
.fixture .what span.sub { display: block; color: var(--mist); font-size: .95rem; margin-top: 2px; }
.fixture .go { font: 700 1rem/1 var(--display); color: var(--mist); padding-right: 6px; }
.fixture:hover .go { color: var(--accent); }
@media (max-width: 640px) {
  .fixture { grid-template-columns: 64px 1fr; gap: 12px; }
  .fixture .icon, .fixture .go { display: none; }
  .fixture .time { font-size: 1.3rem; }
}

/* Sportarten-Raster */
.sports-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.sport-tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 18px 10px 16px; border-radius: var(--radius); background: var(--ink-2); text-decoration: none;
  font: 600 1.08rem/1.1 var(--display);
}
.sport-tile:hover { background: var(--ink-3); }
.sport-tile .pic { width: 76px; height: 76px; display: grid; place-items: center; }
.sport-tile .pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sport-tile .pic .initial { font: 700 2.2rem/1 var(--display); color: var(--mist); }
.sport-tile small { font: 400 .85rem/1 var(--text); color: var(--mist); }

/* Über uns / Partner */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--rule); }
.split + .split { margin-top: 0; }
.split img { border-radius: var(--radius); aspect-ratio: 5 / 3; object-fit: cover; width: 100%; }
.split p { color: var(--mist); max-width: 60ch; }
.split h2 { margin-bottom: 14px; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: clamp(40px, 6vw, 72px); }
.cta-row > div { background: var(--ink-2); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); border-left: 4px solid; border-image: var(--grad) 1; }
.cta-row h3 { margin-bottom: 8px; }
.cta-row p { color: var(--mist); }
@media (max-width: 700px) { .cta-row { grid-template-columns: 1fr; } }

/* ---------- Event-Seite ---------- */
.event-top { padding: 24px 0 0; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.player-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player-poster.noimg { display: grid; }
.player-cover { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 20px; text-align: center; background: rgba(8, 20, 36, .45); }
.player-play { width: 92px; height: 92px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; cursor: pointer; display: grid; place-items: center; }
.player-play:hover { transform: scale(1.04); }
.player-play svg { width: 38px; height: 38px; margin-left: 6px; }
.player-note { margin: 0; max-width: 46ch; font-size: .88rem; color: var(--paper); text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.player-note a { color: var(--paper); }
.player-wait { font: 700 clamp(1.3rem, 3vw, 2rem)/1.1 var(--display); text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.player-countdown { font: 700 clamp(2rem, 6vw, 4rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.ad-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(to top, rgba(0,0,0,.75), transparent); z-index: 2; }
.ad-bar span { font: 600 .95rem/1 var(--display); background: rgba(0,0,0,.6); padding: 6px 8px; border-radius: 3px; }
.ad-bar a, .ad-bar button { font: 700 .95rem/1 var(--display); background: rgba(0,0,0,.6); color: #fff; border: 1px solid rgba(255,255,255,.4); padding: 8px 12px; border-radius: 3px; cursor: pointer; text-decoration: none; }
.ad-bar button[disabled] { opacity: .6; cursor: default; }

.event-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; padding: 26px 0 30px; border-bottom: 1px solid var(--rule); }
.event-head .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.event-head .meta a { font: 600 1.1rem/1 var(--display); color: var(--mist); text-decoration: none; }
.event-head .meta a:hover { color: var(--paper); }
.event-head .sub { font-size: 1.25rem; color: var(--mist); margin: 8px 0 0; }
.event-facts { display: grid; gap: 2px; min-width: 230px; margin: 0; }
.event-facts div { background: var(--ink-2); padding: 10px 14px; }
.event-facts div:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.event-facts div:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.event-facts dt { font-size: .82rem; color: var(--mist); }
.event-facts dd { margin: 0; font: 700 1.25rem/1.15 var(--display); }
@media (max-width: 760px) { .event-head { grid-template-columns: 1fr; } }

/* ---------- Inhaltsseiten ---------- */
.page-head { padding: clamp(36px, 6vw, 64px) 0 26px; border-bottom: 1px solid var(--rule); }
.page-head p { color: var(--mist); margin: 12px 0 0; max-width: 60ch; }
.prose { max-width: 72ch; padding: 32px 0 0; }
.prose h2 { font-size: 2rem; margin: 1.4em 0 .5em; }
.prose h3 { margin: 1.2em 0 .4em; }
.prose a { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose img { border-radius: var(--radius); margin: 1em 0; }
.prose details { border-bottom: 1px solid var(--rule); }
.prose details:first-of-type { border-top: 1px solid var(--rule); }
.prose summary { cursor: pointer; padding: 16px 0; font: 700 1.3rem/1.2 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; color: var(--accent); font-size: 1.6rem; line-height: .8; }
.prose details[open] summary::after { content: "–"; }
.prose details > :not(summary) { color: var(--mist); }

/* Pagination */
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.pager a, .pager span { min-width: 44px; padding: 10px 14px; text-align: center; border-radius: var(--radius); background: var(--ink-2); text-decoration: none; font: 600 1.05rem/1 var(--display); }
.pager span { background: var(--paper); color: var(--ink); }

/* ---------- Formulare ---------- */
.form-card { max-width: 480px; margin: clamp(36px, 6vw, 72px) auto 0; background: var(--ink-2); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); }
.form-card h1 { font-size: 2.4rem; margin-bottom: 8px; }
.form-card > p { color: var(--mist); }
.form { display: grid; gap: 16px; margin-top: 20px; }
.form label { display: grid; gap: 6px; font-weight: 500; }
.form input:not([type="checkbox"]), .form textarea, .form select {
  width: 100%; font: inherit; color: var(--paper); background: var(--ink); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 12px 14px;
}
.form input:focus, .form textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: transparent; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--mist); }
.form .check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); }
.form .check a { color: var(--paper); }
.form .error { color: #ff8b84; font-size: .92rem; font-weight: 400; }
.form .btn { justify-self: start; }
.form-links { margin-top: 18px; color: var(--mist); font-size: .95rem; }
.form-links a { color: var(--paper); }
.hp { position: absolute; left: -9999px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 64px); }
.contact-grid .form-card { margin: 32px 0 0; max-width: none; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.notice { padding: 14px 16px; border-radius: var(--radius); margin: 16px 0 0; background: var(--ink-3); border-left: 4px solid var(--mist); }
.notice-success { border-color: #3fbf7f; }
.notice-error { border-color: #ff6a61; }
.notice-info { border-color: var(--accent); }
.flashes { margin-top: 16px; }

.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--gap); margin-top: 32px; }
.account-grid .form-card { margin: 0; max-width: none; }
.account-grid h2 { font-size: 1.6rem; }

.empty { color: var(--mist); padding: 24px 0; border-top: 1px solid var(--rule); }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(56px, 8vw, 100px); background: #081627; border-top: 1px solid var(--rule); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--mist); }
.footer-grid a:hover { color: var(--paper); text-decoration: underline; }
.footer-grid .logo-text { font-size: 1.5rem; }
.footer-grid p { color: var(--mist); font-size: .95rem; margin-top: 12px; max-width: 34ch; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--ink-2); }
.social svg { width: 18px; height: 18px; fill: var(--paper); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--mist); font-size: .9rem; }
.legal ul { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.legal a { color: var(--mist); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Bühne auf schmalen Bildschirmen: höheres Format, damit die Bauchbinde Platz hat */
@media (max-width: 640px) {
  .slide { aspect-ratio: 4 / 5; }
  .lower-third .sub { display: none; }
}

/* =========================================================
   Eigener Videoplayer (player.js)
   ========================================================= */
.sp { outline: none; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.sp:focus-visible { box-shadow: 0 0 0 3px var(--accent); }
.sp-stage, .sp-holder, .sp-stage iframe, .sp-stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* YouTube selbst bekommt nie einen Klick: Iframe ohne Zeigerereignisse plus Schutzfläche darüber */
.sp-stage iframe, .sp-stage video { pointer-events: none; }
.sp-shield { position: absolute; inset: 0; z-index: 2; background: transparent; cursor: pointer; }
.sp.is-ready:not(.show-controls) .sp-shield { cursor: none; }

/* Deckel: Startbild, Pause- und Endbildschirm – verdeckt auch YouTube-Vorschläge */
.sp-cover {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center;
  background: #000 center / cover no-repeat; pointer-events: none; opacity: 1; transition: opacity .2s;
}
.sp-cover::before { content: ""; position: absolute; inset: 0; background: rgba(8, 20, 36, .35); }
.sp.is-started:not(.is-paused) .sp-cover { opacity: 0; }
.sp.is-started.is-paused:not(.is-ended) .sp-cover { background-image: none !important; background-color: rgba(8, 20, 36, .55); }
.sp.is-started.is-paused:not(.is-ended) .sp-cover::before { display: none; }
.sp.is-dragging .sp-cover { opacity: 0; }
.sp-big {
  position: relative; width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; display: grid; place-items: center; pointer-events: auto;
}
.sp-big svg { width: 40px; height: 40px; }
.sp.is-started:not(.is-paused) .sp-big { pointer-events: none; }
.sp-error { position: relative; max-width: 40ch; text-align: center; padding: 20px; margin: 0; }
.sp.is-error .sp-controls, .sp.is-error .sp-shield { display: none; }

/* Ladekreis */
.sp-spinner { position: absolute; z-index: 3; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,.25); border-top-color: var(--accent); animation: sp-spin .8s linear infinite; display: none; pointer-events: none; }
.sp.is-buffering:not(.is-paused) .sp-spinner, .sp:not(.is-ready) .sp-spinner { display: block; }
.sp:not(.is-ready) .sp-big { display: none; }
@keyframes sp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sp-spinner { animation-duration: 2.4s; } }

/* Steuerleiste */
.sp-controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 28px 14px 10px;
  background: linear-gradient(to top, rgba(6, 14, 26, .9), rgba(6, 14, 26, 0));
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; pointer-events: none;
}
.sp.show-controls .sp-controls, .sp.is-paused.is-ready .sp-controls { opacity: 1; transform: none; pointer-events: auto; }
.sp:not(.is-ready) .sp-controls { display: none; }
.sp-row { display: flex; align-items: center; gap: 4px; }
.sp-spacer { flex: 1; }
.sp-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; padding: 0; }
.sp-btn:hover { background: rgba(255,255,255,.12); }
.sp-btn svg { width: 26px; height: 26px; }
.sp-time { font: 600 1.02rem/1 var(--display); font-variant-numeric: tabular-nums; color: #fff; margin-left: 8px; white-space: nowrap; }
.sp-live { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 6px 10px 5px; border: 0; border-radius: 3px; cursor: pointer;
  font: 700 .95rem/1 var(--display); background: rgba(255,255,255,.16); color: #fff; }
.sp-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9aa; }
.sp-live.at-edge { background: var(--live); cursor: default; }
.sp-live.at-edge::before { background: #fff; }
.sp-live[hidden], .sp-btn[hidden] { display: none; }
.sp-btn.is-on { color: var(--accent); }
.sp-btn.is-on::after { content: ""; position: absolute; width: 18px; height: 2px; background: var(--accent); margin-top: 30px; border-radius: 1px; }
.sp-btn { position: relative; }
.sp-menu-wrap { position: relative; }
.sp-menu { position: absolute; right: 0; bottom: 50px; min-width: 180px; padding: 6px; border-radius: var(--radius); background: rgba(6, 14, 26, .96); box-shadow: 0 0 0 1px var(--rule); }
.sp-menu[hidden] { display: none; }
.sp-menu-item { display: block; width: 100%; text-align: left; padding: 10px 12px 10px 30px; border: 0; border-radius: 4px; background: none; color: #fff; font: 500 .98rem/1.2 var(--text); cursor: pointer; position: relative; }
.sp-menu-item:hover, .sp-menu-item:focus-visible { background: rgba(255,255,255,.1); }
.sp-menu-item.is-current::before { content: ""; position: absolute; left: 11px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--accent); }

.sp-vol { display: flex; align-items: center; }
.sp-volume { width: 0; opacity: 0; transition: width .2s, opacity .2s; accent-color: var(--accent); cursor: pointer; }
.sp-vol:hover .sp-volume, .sp-volume:focus-visible { width: 84px; opacity: 1; margin-right: 6px; }

/* Fortschrittsleiste */
.sp-progress { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; margin-bottom: 4px; touch-action: none; }
.sp-rail { position: relative; width: 100%; height: 4px; background: rgba(255,255,255,.25); border-radius: 2px; transition: height .12s; }
.sp-progress:hover .sp-rail, .sp.is-dragging .sp-rail, .sp-progress:focus-visible .sp-rail { height: 7px; }
.sp-buffer { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,255,255,.35); border-radius: 2px; }
.sp-played { position: absolute; left: 0; top: 0; bottom: 0; background: var(--grad); border-radius: 2px; }
.sp.is-live .sp-played { background: var(--pink); }
.sp-handle { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .12s; }
.sp.is-live .sp-handle { background: var(--live); }
.sp-progress:hover .sp-handle, .sp.is-dragging .sp-handle, .sp-progress:focus-visible .sp-handle { transform: scale(1); }
.sp-tip { position: absolute; bottom: 22px; transform: translateX(-50%); padding: 4px 7px; border-radius: 3px; background: rgba(6,14,26,.92);
  font: 600 .9rem/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; opacity: 0; pointer-events: none; }
.sp-progress:hover .sp-tip, .sp.is-dragging .sp-tip { opacity: 1; }
.sp-progress:focus-visible { outline: none; }
.sp.no-seek .sp-progress { visibility: hidden; }

/* Vollbild */
.sp.is-fs, .sp:fullscreen, .sp:-webkit-full-screen { border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; }
/* Eigener Vollbildmodus (iPhone): fest über allem, inkl. Notch-Abständen */
.sp-fake-fs {
  position: fixed !important; top: 0; left: 0; right: 0; bottom: 0; z-index: 2147483000;
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; margin: 0;
  border-radius: 0 !important; aspect-ratio: auto !important; background: #000; overscroll-behavior: contain;
}
.sp-fake-fs .sp-controls { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.sp-fake-fs .sp-adbadge { top: max(14px, env(safe-area-inset-top)); left: max(14px, env(safe-area-inset-left)); }
/* Seite dahinter bleibt scrollbar, damit Safari die Leiste beim Wischen ausblendet */
html.sp-fakefs-on body { min-height: calc(100vh + 400px); }
.sp-swipe { position: absolute; z-index: 6; left: 50%; top: 18px; transform: translateX(-50%); display: none; pointer-events: none;
  padding: 10px 14px 10px 36px; border-radius: var(--radius); background: rgba(6, 14, 26, .88); font: 600 .95rem/1.2 var(--text); white-space: nowrap; }
.sp-swipe::before { content: ""; position: absolute; left: 14px; top: 50%; width: 10px; height: 10px; margin-top: -2px;
  border-left: 2px solid #fff; border-top: 2px solid #fff; transform: rotate(45deg); animation: sp-up 1.2s ease-in-out infinite; }
@keyframes sp-up { 50% { transform: translateY(-5px) rotate(45deg); } }
.sp.show-swipe .sp-swipe { display: block; }
@media (prefers-reduced-motion: reduce) { .sp-swipe::before { animation: none; } }
.sp-rotate { position: absolute; z-index: 6; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 12px 16px; border-radius: var(--radius);
  background: rgba(6, 14, 26, .9); font: 600 1rem/1.3 var(--text); text-align: center; display: none; pointer-events: none; }
.sp.show-rotate .sp-rotate { display: block; }

/* Preroll: Werbe-Kennzeichnung, Restzeit, keine Spul-Funktionen */
.sp-adbadge { position: absolute; z-index: 5; top: 14px; left: 14px; display: none; align-items: center; gap: 8px; pointer-events: none; }
.sp.is-ad .sp-adbadge { display: flex; }
.sp-adlabel { font: 700 .95rem/1 var(--display); text-transform: uppercase; font-style: italic; background: var(--grad); color: #fff; padding: 6px 9px 5px; border-radius: 3px; }
.sp-adtime { font: 600 .95rem/1 var(--display); font-variant-numeric: tabular-nums; background: rgba(6, 14, 26, .75); padding: 6px 9px 5px; border-radius: 3px; }
.sp-adlink { position: absolute; z-index: 5; right: 14px; bottom: 76px; display: none; font: 700 1rem/1 var(--display); color: #fff; text-decoration: none;
  background: rgba(6, 14, 26, .8); border: 1px solid rgba(255,255,255,.4); padding: 10px 14px; border-radius: 3px; }
.sp.is-ad .sp-adlink { display: inline-block; }
.sp.is-ad .sp-shield { cursor: pointer; }
.sp.is-ad .sp-progress { pointer-events: none; }
.sp.is-ad .sp-handle, .sp.is-ad .sp-tip { display: none; }
.sp.is-ad .sp-seekbtn, .sp.is-ad .sp-time { display: none; }
.sp.is-ad .sp-played { background: #fff; }

/* Autoplay-Sperre (iPhone): Hinweis zum Tippen bzw. Ton einschalten */
.sp-taphint { position: absolute; z-index: 5; left: 50%; bottom: 22%; transform: translateX(-50%); display: none; pointer-events: none;
  padding: 10px 14px; border-radius: var(--radius); background: rgba(6, 14, 26, .85); font: 600 1rem/1.2 var(--text); white-space: nowrap; }
.sp.needs-tap .sp-taphint { display: block; }
.sp.needs-tap .sp-shield, .sp.needs-tap .sp-cover { display: none; }
.sp.needs-tap .sp-stage iframe { pointer-events: auto; }
.sp-unmute { position: absolute; z-index: 5; top: 14px; right: 14px; display: none; align-items: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; font: 700 1rem/1 var(--display); padding: 9px 12px; border-radius: 3px; }
.sp-unmute svg { width: 20px; height: 20px; }
.sp.show-unmute .sp-unmute { display: inline-flex; }
.sp.is-ad.show-unmute .sp-unmute { top: auto; bottom: 76px; right: auto; left: 14px; }

@media (max-width: 560px) {
  .sp-hide-sm, .sp-volume { display: none; }
  .sp-controls { padding: 22px 6px 4px; }
  .sp-big { width: 68px; height: 68px; }
}
@media (prefers-reduced-motion: reduce) { .sp-controls, .sp-cover { transition: none; } }

/* =========================================================
   Meine Momente
   ========================================================= */
.sp-moment-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 9px; margin-right: 4px; border: 0; border-radius: 18px;
  background: rgba(255,255,255,.14); color: #fff; font: 700 1rem/1 var(--display); cursor: pointer; }
.sp-moment-btn svg { width: 20px; height: 20px; }
.sp-moment-btn:hover, .sp.is-marking .sp-moment-btn { background: var(--grad); }
.sp-moment-btn[hidden] { display: none; }
.sp-range { position: absolute; top: -3px; bottom: -3px; display: none; background: rgba(255, 110, 40, .55); box-shadow: inset 0 0 0 2px var(--orange); border-radius: 2px; pointer-events: none; }
.sp-mpanel { position: absolute; z-index: 6; right: 14px; bottom: 76px; width: min(360px, calc(100% - 28px)); padding: 16px; border-radius: var(--radius);
  background: rgba(6, 14, 26, .96); box-shadow: 0 0 0 1px var(--rule), 0 12px 40px rgba(0,0,0,.5); display: grid; gap: 10px; }
.sp-mpanel[hidden] { display: none; }
.sp-mp-title { margin: 0; font: 800 1.3rem/1 var(--display); font-style: italic; text-transform: uppercase; }
.sp-mp-text { margin: 0; color: var(--mist); font-size: .95rem; }
.sp-mp-row { display: flex; align-items: center; gap: 4px; }
.sp-mp-label { width: 44px; font-size: .85rem; color: var(--mist); }
.sp-mp-row button { min-width: 34px; height: 32px; padding: 0 6px; border: 0; border-radius: 4px; background: rgba(255,255,255,.1); color: #fff; font: 600 .9rem/1 var(--text); cursor: pointer; }
.sp-mp-row button:hover { background: rgba(255,255,255,.2); }
.sp-mp-row .sp-mp-now { margin-left: auto; background: rgba(255, 110, 40, .25); }
.sp-mp-val { min-width: 62px; text-align: center; font: 700 1.15rem/1 var(--display); font-variant-numeric: tabular-nums; }
.sp-mp-len { margin: 0; font-size: .9rem; color: var(--mist); }
.sp-mp-len.is-error, .sp-mp-msg.is-error { color: #ff8b84; }
.sp-mp-msg { margin: 0; font-size: .9rem; color: var(--mist); min-height: 1.2em; }
.sp-mp-msg.is-ok { color: #6fdba4; }
.sp-mp-msg a { color: #fff; }
.sp-mp-name { width: 100%; padding: 9px 11px; border: 1px solid var(--rule); border-radius: 4px; background: var(--ink); color: #fff; font: inherit; font-size: .95rem; user-select: text; -webkit-user-select: text; }
.sp-mp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-mp-actions button, .sp-mp-actions a { height: 38px; padding: 0 14px; border: 0; border-radius: 4px; cursor: pointer; font: 700 1rem/38px var(--display); text-decoration: none; }
.sp-mp-save { background: var(--grad); color: #fff; }
.sp-mp-save[disabled] { opacity: .45; cursor: default; }
.sp-mp-preview, .sp-mp-cancel { background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 560px) {
  .sp-moment-btn span { display: none; }
  .sp-moment-btn { padding: 0 8px; }
  .sp-mpanel { left: 8px; right: 8px; bottom: 60px; width: auto; padding: 12px; }
  .sp-mp-row button { min-width: 30px; }
}

.status-moment { background: var(--grad); color: #fff; }
.status-shared { background: rgba(111, 219, 164, .18); color: #6fdba4; margin-left: 8px; }
.moment-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.moments { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.moment { display: grid; grid-template-columns: 260px 1fr; gap: 20px; padding: 16px; background: var(--ink-2); border-radius: var(--radius); }
.moment-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: var(--ink-3); }
.moment-thumb img { width: 100%; height: 100%; object-fit: cover; }
.moment-thumb .noimg { width: 100%; height: 100%; }
.moment-len { position: absolute; right: 8px; bottom: 8px; padding: 4px 7px 3px; border-radius: 3px; background: rgba(6,14,26,.85); font: 700 .95rem/1 var(--display); }
.moment-sport { font: 600 .95rem/1 var(--display); color: var(--mist); }
.moment h3 { margin-top: 6px; font-size: 1.5rem; }
.moment h3 a { text-decoration: none; }
.moment h3 a:hover { text-decoration: underline; }
.moment-event { margin: 4px 0 0; color: var(--mist); }
.moment-meta { margin: 6px 0 0; font-size: .9rem; color: var(--mist); }
.moment-tools { display: grid; gap: 10px; margin-top: 14px; }
.moment-rename { display: flex; gap: 8px; }
.moment-rename input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--ink); color: var(--paper); font: inherit; }
.moment-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.moment-buttons .btn { font-size: .95rem; padding: .7em 1em; }
@media (max-width: 700px) {
  .moment { grid-template-columns: 1fr; }
  .moment-rename { flex-direction: column; }
}

/* Anmelden mit Google */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; padding: 12px 16px; border-radius: var(--radius);
  background: #fff; color: #1f1f1f; text-decoration: none; font: 500 1rem/1.2 var(--text); box-shadow: inset 0 0 0 1px #dadce0; }
.btn-google:hover { background: #f2f2f2; }
.btn-google svg { width: 20px; height: 20px; flex: none; }
.form-card .or { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; color: var(--mist); font-size: .9rem; }
.form-card .or::before, .form-card .or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* Kurzer Hinweis unten am Bildschirm */
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 3000; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: var(--radius); background: #fff; color: var(--ink); font: 600 1rem/1.3 var(--text); box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* Als Web-App vom Home-Bildschirm: Inhalt nicht unter die Statusleiste schieben */
.site-header { padding-top: env(safe-area-inset-top); }
