/* openTS Live – Plattform: Startseite (Programm), Anfrage, Anmeldung, Anbieter- und Admin-Bereich.
   Gerüst der Startseite: eine Programmtafel wie am Bahnsteig. Die Stream-Seiten der Anbieter haben ihr eigenes Aussehen (live.css). */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(schrift/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(schrift/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url(schrift/outfit-latin-700-normal.woff2) format("woff2"); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #f4f2ee; color: #17171a; font: 400 1.0625rem/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --rot: #8c0200; --tinte: #17171a; --papier: #f4f2ee; --weiss: #fff; --linie: #d3cfc6; --leise: #5a5853; --rand: clamp(16px, 4vw, 56px); --breit: 1320px; min-height: 100svh; display: flex; flex-direction: column; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }
[hidden] { display: none !important; }
.innen { width: 100%; max-width: var(--breit); margin: 0 auto; padding-left: var(--rand); padding-right: var(--rand); }
h1, h2, h3 { font-family: "Outfit", "Inter", system-ui, sans-serif; font-weight: 700; letter-spacing: -.012em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4.6rem); }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.9rem); }
h3 { font-size: 1.2rem; line-height: 1.25; }
p { margin: 0 0 1em; }
.leise { color: var(--leise); }

/* Kopf */
.p-kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); }
.p-kopf .innen { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.p-marke { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.p-marke img { height: 30px; width: auto; display: block; }
.p-marke span { font: 700 1.2rem/1 "Outfit", sans-serif; color: var(--rot); padding-left: 12px; border-left: 1.5px solid var(--tinte); }
.p-nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 30px); font-weight: 600; font-size: .98rem; white-space: nowrap; }
.p-nav a { text-decoration: none; padding: 8px 0; }
.p-nav a:hover { text-decoration: underline; }
.p-nav .p-nav-knopf { border: 1.5px solid var(--tinte); padding: 8px 14px; }
.p-nav .p-nav-knopf:hover { background: var(--tinte); color: #fff; text-decoration: none; }

/* Knöpfe und Felder (für alle Plattform-Seiten) */
.knopf { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px; border: 1.5px solid var(--tinte); border-radius: 0; background: var(--weiss); color: var(--tinte);
  font-family: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.knopf:hover { background: var(--tinte); color: #fff; }
.knopf-rot { background: var(--rot); border-color: var(--rot); color: #fff; }
.knopf-rot:hover { background: var(--tinte); border-color: var(--tinte); }
.knopf-klein { min-height: 42px; padding: 8px 14px; font-size: .94rem; }
.knopf-text { border-color: transparent; background: transparent; text-decoration: underline; font-weight: 400; padding-left: 4px; padding-right: 4px; }
.knopf-text:hover { background: transparent; color: var(--rot); }
.knopf[disabled] { opacity: .5; cursor: default; }
.feld { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; font-weight: 600; font-size: .96rem; min-width: 0; align-content: start; }
.feld > input, .feld > select, .feld > textarea { flex: 0 0 100%; margin-top: auto; }
.feld small { font-weight: 400; color: var(--leise); font-size: .88rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="date"], input[type="time"], input[type="number"], input[type="password"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid #8b8880; border-radius: 0; background: var(--weiss); color: var(--tinte); font-family: inherit; font-weight: 400; font-size: 1rem; line-height: 1.3; }
textarea { resize: vertical; line-height: 1.45; }
input:hover, select:hover, textarea:hover { border-color: var(--tinte); }
input[readonly] { background: #eceae4; font-family: Consolas, "Courier New", monospace; font-size: .92rem; }
.zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.reihe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.meldung { margin: 0; padding: 12px 14px; background: var(--weiss); border-left: 4px solid var(--rot); font-weight: 600; }
.meldung.gut { border-left-color: #2f6f3e; }
.meldung:empty { display: none; }

/* ---------- Startseite ---------- */
.tafel { padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 6vw, 80px); }
.tafel-kopf { display: grid; gap: 10px 48px; grid-template-columns: minmax(0, 1fr); align-items: end; margin-bottom: clamp(18px, 3vw, 34px); }
.tafel-kopf p { margin: 0; max-width: 46ch; font-size: clamp(1.02rem, .98rem + .3vw, 1.2rem); color: var(--leise); }
.programm-liste { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--tinte); }
.p-zeile { border-bottom: 1px solid var(--linie); }
.p-zeile a { display: grid; grid-template-columns: clamp(96px, 13vw, 190px) clamp(112px, 17vw, 240px) minmax(0, 1fr) auto; gap: clamp(12px, 2.4vw, 36px); align-items: center; padding: clamp(12px, 1.8vw, 22px) 0; text-decoration: none; }
.p-zeile a:hover { background: var(--weiss); }
.p-zeile a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; }
.p-zeit { display: grid; gap: 6px; justify-items: start; }
.p-tag { font-weight: 600; font-size: clamp(.84rem, .8rem + .25vw, 1rem); }
.p-uhr { font: 600 clamp(1.25rem, .9rem + 1.5vw, 2.2rem)/1.24 "Inter", sans-serif; font-variant-numeric: tabular-nums; }
.p-bild { display: block; aspect-ratio: 16 / 9; background: #17171a; overflow: hidden; position: relative; }
.p-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.p-bild.p-hoch img { object-position: center 18%; }
.p-ohne { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 8%; font: 700 clamp(.7rem, 1.4vw, 1.05rem)/1.15 "Outfit", sans-serif; }
.p-text { display: grid; gap: 4px; min-width: 0; }
.p-text strong { font: 700 clamp(1.08rem, .92rem + .95vw, 1.85rem)/1.14 "Outfit", sans-serif; letter-spacing: -.01em; overflow-wrap: break-word; }
.p-wer { color: var(--leise); font-size: clamp(.9rem, .86rem + .2vw, 1.02rem); }
.p-lage { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; }
.p-lage i { width: 10px; height: 10px; background: #d3202a; display: block; }
.p-laeuft .p-lage { color: var(--rot); }
.p-pfeil { font-size: 1.5rem; padding-right: 6px; }
.programm-leer { margin: 0; padding: 26px 0; border-top: 2px solid var(--tinte); border-bottom: 1px solid var(--linie); font-size: 1.1rem; max-width: none; }
.vorbei { margin-top: clamp(36px, 5vw, 64px); }
.vorbei h2 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.8rem); margin-bottom: 14px; }
.vorbei .p-uhr { font-size: clamp(1rem, .9rem + .5vw, 1.3rem); color: var(--leise); }

.fuer { background: var(--tinte); color: #f4f2ee; }
.fuer-raster { display: grid; grid-template-columns: minmax(0, 1fr); }
.fuer-bild { margin: 0; position: relative; min-height: 240px; }
.fuer-bild img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.fuer-bild figcaption { position: absolute; left: 0; bottom: 0; background: rgba(0, 0, 0, .7); color: #e9e6df; font-size: .78rem; padding: 4px 10px; }
.fuer-text { padding: clamp(30px, 5vw, 72px) var(--rand); display: grid; gap: 22px; align-content: center; }
.fuer-text > p { margin: 0; max-width: 52ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); color: #dedad2; }
.leistung { margin: 0; display: grid; }
.leistung > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 13px 0; border-top: 1px solid #45433f; }
.leistung > div:last-child { border-bottom: 1px solid #45433f; }
.leistung dt { font-weight: 600; }
.leistung dd { margin: 0; color: #cfcbc2; }
.fuer .knopf { background: transparent; color: #fff; border-color: #fff; }
.fuer .knopf:hover { background: #fff; color: var(--tinte); }
.fuer .knopf-rot { background: #fff; color: var(--tinte); }
.fuer .knopf-rot:hover { background: var(--rot); border-color: var(--rot); color: #fff; }
.fuer :focus-visible { outline-color: #fff; }

.ablauf { padding: clamp(40px, 6vw, 90px) 0; }
.ablauf h2 { margin-bottom: clamp(20px, 3vw, 40px); }
.schritte { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--tinte); }
.schritte li { counter-increment: s; display: grid; grid-template-columns: clamp(52px, 8vw, 110px) minmax(0, 1fr); gap: clamp(12px, 2vw, 28px); padding: clamp(16px, 2.2vw, 26px) 0; border-bottom: 1px solid var(--linie); align-items: start; }
.schritte li::before { content: counter(s); font: 700 clamp(2rem, 1.2rem + 3.4vw, 4.2rem)/.9 "Outfit", sans-serif; color: var(--rot); }
.schritte p { margin: 4px 0 0; color: var(--leise); max-width: 62ch; }

.dahinter { background: var(--weiss); border-top: 1px solid var(--linie); padding: clamp(36px, 5vw, 72px) 0; }
.dahinter-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 64px; }
.dahinter p { max-width: 58ch; }
.dahinter address { font-style: normal; display: grid; gap: 4px; align-content: start; }
.dahinter address strong { font-size: 1.1rem; }
.dahinter address a { font-weight: 600; }

.p-fuss { margin-top: auto; background: var(--papier); border-top: 1px solid var(--linie); padding: 18px 0 calc(22px + env(safe-area-inset-bottom)); font-size: .9rem; color: var(--leise); }
.p-fuss .innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 28px; }
.p-fuss p { margin: 0; }
.p-fuss nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* ---------- Schmale Seiten: Anfrage, Anmeldung, nicht gefunden ---------- */
.blatt { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); }
.blatt .innen { max-width: 860px; }
.blatt h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.4rem); margin-bottom: 14px; }
.blatt .einleitung { font-size: 1.12rem; color: var(--leise); max-width: 58ch; margin-bottom: 26px; }
.formular { display: grid; gap: 16px; border-top: 2px solid var(--tinte); padding-top: 20px; }
.formular .klein { font-size: .9rem; color: var(--leise); margin: 0; max-width: 70ch; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Anbieter- und Admin-Bereich ---------- */
.bereich { padding: clamp(20px, 3vw, 40px) 0 60px; }
.bereich h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); }
.bereich-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 22px; }
.abschnitt { border-top: 2px solid var(--tinte); padding-top: 14px; margin-top: 30px; display: grid; gap: 14px; min-width: 0; }
.abschnitt > h2 { font-size: 1.3rem; }
.karten { list-style: none; margin: 0; padding: 0; display: grid; }
.karten > li { border-bottom: 1px solid var(--linie); padding: 14px 0; display: grid; gap: 10px; min-width: 0; }
.karten > li:first-child { border-top: 1px solid var(--linie); }
.karte-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; align-items: baseline; }
.karte-kopf strong { font: 700 1.15rem/1.2 "Outfit", sans-serif; }
.marke { font-size: .84rem; font-weight: 600; padding: 2px 8px; border: 1.5px solid var(--tinte); white-space: nowrap; }
.marke.an { background: var(--tinte); color: #fff; }
.marke.neu { background: var(--rot); border-color: var(--rot); color: #fff; }
.kopier { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.angaben { margin: 0; display: grid; gap: 2px; font-size: .95rem; }
.angaben div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 10px; }
.angaben dt { color: var(--leise); }
.angaben dd { margin: 0; overflow-wrap: anywhere; }
.haken { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .96rem; }
.haken input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--rot); }
.leiste-unten { position: sticky; bottom: 0; z-index: 6; background: var(--tinte); color: #fff; margin: 0; padding: 12px var(--rand); font-weight: 600; }
.leiste-unten:empty { display: none; }
details.mehr > summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
details.mehr[open] > summary { margin-bottom: 8px; }

@media (min-width: 760px) {
  .tafel-kopf { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .leistung > div { grid-template-columns: 12em minmax(0, 1fr); gap: 20px; }
  .dahinter-raster { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}
@media (min-width: 1000px) {
  .fuer-raster { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .fuer-bild img { aspect-ratio: auto; position: absolute; inset: 0; }
  .fuer-text { padding-left: clamp(32px, 4vw, 72px); padding-right: max(var(--rand), calc((100vw - var(--breit)) / 2 + var(--rand))); }
  .schritte { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
}
@media (max-width: 620px) {
  .p-kopf .innen { min-height: 56px; }
  .p-marke img { height: 24px; }
  .p-marke span { font-size: 1.02rem; padding-left: 9px; }
  .p-marke { gap: 9px; }
  .p-nav { font-size: .9rem; gap: 12px; }
  .p-nav .p-nav-weit { display: none; }
  .p-nav { min-width: 0; }
  .p-nav .p-nav-knopf { padding: 6px 10px; }
  .p-zeile a { grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "bild zeit" "bild text"; gap: 4px 14px; align-items: start; }
  .p-bild { grid-area: bild; }
  .p-zeit { grid-area: zeit; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
  .p-uhr { font-size: 1.05rem; }
  .p-text { grid-area: text; }
  .p-pfeil { display: none; }
}
@media (min-width: 2000px) { body { --breit: 1760px; font-size: 1.2rem; } .p-marke img { height: 38px; } }
@media (min-width: 3000px) { body { --breit: 2300px; font-size: 1.4rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 480px) { .p-nav .p-nav-mittel { display: none; } }
