@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
:root { --n0: #060a13; --n1: #0b111c; --n2: #121a28; --n3: #1b2536; --linie: #263247; --text: #f3eee3; --leise: #a7afba; --gold: #d6a34a; --gold2: #f0ce8c; --rot: #e0563f; --kopf: 60px; --fuss: 34px; }
* { box-sizing: border-box; }
html, body { margin: 0; background: radial-gradient(ellipse at 20% 0%, #17223a 0, var(--n1) 50%, var(--n0) 100%) fixed; color: var(--text); font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: 18px; }
a { color: inherit; }
.kopf { display: flex; align-items: center; gap: 20px; height: var(--kopf); padding: 0 28px; border-bottom: 1px solid var(--linie); background: rgba(6, 10, 19, .75); }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 25px; letter-spacing: .03em; }
.marke span { color: var(--text); } .marke b { color: var(--gold); font-weight: 600; }
.live { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--leise); }
.live i, .badge i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--rot); margin-right: 8px; vertical-align: 1px; animation: puls 1.6s infinite; }
@keyframes puls { 50% { opacity: .35; } }
.alle { margin-left: auto; font-size: 15px; letter-spacing: .06em; color: var(--gold2); text-decoration: none; border: 1px solid var(--linie); border-radius: 999px; padding: 5px 14px; }
.alle:hover { border-color: var(--gold); }
/* Startseite: alles auf einem Bildschirm */
body.tv { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.tv .raster { --pw: min(calc(100vw - 56px - 22px - 330px), calc((100vh - var(--kopf) - var(--fuss) - 24px - 196px) / 0.6795)); flex: 1; min-height: 0; display: grid; grid-template-columns: var(--pw) minmax(330px, 460px); justify-content: center; gap: 22px; padding: 16px 28px 8px; width: 100%; }
.buehne { min-height: 0; display: flex; flex-direction: column; align-items: flex-start; }
.player { position: relative; width: var(--pw); aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; border: 1px solid var(--linie); box-shadow: 0 24px 70px rgba(0, 0, 0, .55); flex: none; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player video.wartet { opacity: 0; pointer-events: none; }
.player video { transition: filter .6s ease; } .player video.gedimmt { filter: brightness(.4) blur(2px); }
.ende { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.2%; padding: 4%; text-align: center; background: radial-gradient(ellipse at 50% 45%, rgba(11, 17, 28, .35), rgba(6, 10, 19, .82)); opacity: 0; transition: opacity .6s ease; }
.ende[hidden] { display: none; }
.ende.an { opacity: 1; }
.zurueck, .badge { transition: opacity .5s ease; } .player.endet .zurueck, .player.endet .badge { opacity: 0; pointer-events: none; }
.ende h2 { margin: 0; font-size: clamp(22px, 2.4vw, 38px); font-weight: 600; }
.vorschlaege { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; width: min(78%, 640px); }
.vorschlag { display: block; text-decoration: none; text-align: left; border-radius: 10px; overflow: hidden; border: 1px solid var(--linie); background: var(--n2); transition: border-color .3s, transform .3s; }
.vorschlag:hover, .vorschlag:focus-visible { border-color: var(--gold); transform: translateY(-2px); }
.vorschlag img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.vorschlag .k { display: block; padding: 6px 10px 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.vorschlag .t { display: block; padding: 2px 10px 8px; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player.voll, .player:fullscreen { width: 100vw; height: 100vh; max-width: none; border-radius: 0; border: 0; }
.badge { position: absolute; left: 16px; top: 14px; background: rgba(6, 10, 19, .72); border-radius: 999px; padding: 6px 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.knoepfe { z-index: 5; position: absolute; right: 14px; bottom: 14px; display: flex; gap: 10px; }
.knopf { background: var(--gold); color: #1a1204; border: 0; border-radius: 999px; padding: 10px 20px; font: 600 19px "Barlow Condensed", sans-serif; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.knopf.rund { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; background: rgba(6, 10, 19, .72); color: var(--gold2); border: 1px solid var(--gold); }
.knopf:hover { filter: brightness(1.12); }
.zurueck { position: absolute; left: 16px; bottom: 14px; background: rgba(6, 10, 19, .8); border: 1px solid var(--gold); color: var(--gold2); border-radius: 999px; padding: 8px 16px; text-decoration: none; }
.hinweis { position: absolute; inset: auto 18px 70px 18px; margin: 0; background: rgba(6, 10, 19, .85); border: 1px solid var(--rot); border-radius: 12px; padding: 12px 16px; }
.fortschritt { width: var(--pw); height: 3px; background: var(--n3); border-radius: 2px; margin-top: 10px; overflow: hidden; flex: none; }
.fortschritt span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.kicker { margin: 0; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.jetzt { margin-top: 10px; flex: none; width: var(--pw); }
.jetzt h1 { margin: 2px 0 4px; font-size: 32px; font-weight: 600; line-height: 1.05; }
.jetzt .text { margin: 0; font-size: 19px; color: var(--leise); max-width: 1000px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mreihe { margin-top: auto; padding-top: 10px; width: var(--pw); flex: none; }
.karten { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.karte { position: relative; display: block; text-decoration: none; border-radius: 10px; overflow: hidden; border: 1px solid var(--linie); background: var(--n2); }
.karte img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.karte .t { display: block; padding: 4px 9px 6px; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.karte .k { display: block; padding: 6px 9px 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.karte:hover { border-color: var(--gold); }
.seite { min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.naechstes, .liste { background: linear-gradient(180deg, rgba(27, 37, 54, .92), rgba(18, 26, 40, .92)); border: 1px solid var(--linie); border-radius: 14px; padding: 12px; }
.naechstes { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: center; flex: none; }
.naechstes img { width: 104px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; display: block; }
.naechstes h2 { margin: 2px 0 0; font-size: 18px; font-weight: 600; line-height: 1.15; }
#next-count { font-variant-numeric: tabular-nums; color: var(--gold2); }
.liste { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.liste ol { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.liste ol { list-style: none; margin: 6px 0 0; padding: 0; }
.liste li { display: grid; grid-template-columns: 70px 1fr; gap: 8px; padding: 6px 4px; border-top: 1px solid var(--linie); font-size: 17px; border-radius: 6px; white-space: nowrap; }
.liste li .t { overflow: hidden; text-overflow: ellipsis; }
.liste li:first-child { border-top: 0; }
.liste li .z { color: var(--leise); font-variant-numeric: tabular-nums; }
.liste li.jetzt { background: rgba(214, 163, 74, .1); border-top-color: transparent; }
.liste li.jetzt .z, .liste li.jetzt .t { color: var(--gold); }
.liste li.naechst .z { color: var(--gold2); }
.fuss { text-align: center; height: var(--fuss); line-height: var(--fuss); color: var(--leise); font-size: 14px; flex: none; }
.fuss a { text-decoration: none; } .fuss a:hover { color: var(--gold); }
/* Mediathek-Seite */
.mediathek { max-width: 1680px; margin: 0 auto; padding: 22px 28px 10px; }
.mediathek h1 { margin: 0; font-size: 38px; font-weight: 600; }
.gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 16px; }
body.mt .fuss { height: auto; padding: 18px; }
@media (max-width: 1000px) {
  body.tv { height: auto; overflow: auto; }
  .tv .raster { --pw: 100%; grid-template-columns: 1fr; padding: 12px; }
  .player { width: 100%; }
  .karten { grid-template-columns: repeat(3, 1fr); } .mreihe { width: 100%; margin-top: 12px; }
  .kopf { padding: 0 12px; gap: 10px; } .marke { font-size: 20px; } .live { display: none; }
}
