@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url("fonts/open-sans-latin-400.8655d20bbcc8.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url("fonts/open-sans-latin-600.c1422f94ea80.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url("fonts/open-sans-latin-700.36f81686bbf9.woff2") format("woff2"); }

:root {
  --blau: #1e73be;
  --akzent: #13aff0;
  --akzent-dunkel: #0b8fc7;
  --text: #4a4a4a;
  --ueberschrift: #333;
  --hintergrund: #e9e9e9;
  --flaeche: #fff;
  --band: #f5f5f5;
  --linie: #e1e1e1;
  --footer: #1b1b1b;
  --gedimmt: #767676;
  --ok: #2e7d32;
  --fehler: #c62828;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 15px/1.7 "Open Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--hintergrund);
}
a { color: var(--blau); }
a:hover { color: var(--akzent); }
h1, h2, h3 { color: var(--ueberschrift); font-weight: 600; line-height: 1.3; }
h2 { font-size: 22px; margin: 0 0 .6em; }
h3 { font-size: 17px; margin: 1.4em 0 .4em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopf wie rheinlokal.de: Logo zentriert, darunter blaues Navigationsband */
.kopf { background: var(--flaeche); text-align: center; padding: 22px 16px 18px; }
.logo { display: inline-block; text-decoration: none; color: var(--blau); font-weight: 700; line-height: .82; letter-spacing: -.02em; }
.logo img { display: block; width: 200px; height: auto; margin: 0 auto; }
@media (max-width: 480px) { .logo img { width: 160px; } }
.logo:hover { color: var(--blau); }
.logo small { display: block; margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gedimmt); }

.navi { background: var(--blau); }
.navi ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; margin: 0 auto; padding: 0 16px; list-style: none; max-width: 1200px; }
.navi a { display: block; padding: 13px 14px; color: #fff; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.navi a:hover, .navi a[aria-current="page"] { background: rgba(255, 255, 255, .14); color: #fff; }

.titelband { background: var(--band); border-bottom: 1px solid var(--linie); padding: 34px 16px; }
.titelband > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.titelband h1 { margin-top: 0; margin-bottom: 0; font-size: 34px; font-weight: 400; color: var(--ueberschrift); }
.titelband p { margin-top: 6px; margin-bottom: 0; color: var(--gedimmt); }

main { max-width: 1100px; margin: 32px auto; padding: 0 16px; }
.karte { background: var(--flaeche); padding: 28px; border-radius: var(--radius); margin-bottom: 24px; }
.karte > :last-child { margin-bottom: 0; }
.spalten { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .spalten { grid-template-columns: 1fr; } .karte { padding: 20px; } }

/* Formulare */
label { font-weight: 600; color: var(--ueberschrift); }
input[type="email"], input[type="text"], input[type="search"], input[type="date"], textarea, select {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--text);
  border: 1px solid #ccc; border-radius: var(--radius); background: #fff;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--akzent); outline-offset: 1px; border-color: var(--akzent); }
.feld { margin-bottom: 18px; }
.feld > label { display: block; margin-bottom: 6px; }
.hilfe { font-size: 13px; color: var(--gedimmt); margin: 4px 0 0; }
.fehlerliste, .errorlist { color: var(--fehler); margin: 4px 0 0; padding: 0; list-style: none; font-size: 14px; }
.wahl { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wahl label, .wahl > div > label { font-weight: 400; }
.wahl input { position: absolute; opacity: 0; pointer-events: none; }
.wahl label { display: inline-block; padding: 6px 14px; border: 1px solid #ccc; border-radius: 999px; cursor: pointer; background: #fff; font-size: 14px; }
.wahl label:has(input:checked) { background: var(--blau); border-color: var(--blau); color: #fff; }
.wahl label:has(input:focus-visible) { outline: 2px solid var(--akzent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
.check input { margin-top: 6px; flex: none; width: 17px; height: 17px; accent-color: var(--blau); }
.honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.knopf { display: inline-block; padding: 11px 26px; border: 0; border-radius: var(--radius); background: var(--akzent); color: #fff; font: 600 16px/1.4 inherit; font-family: inherit; cursor: pointer; text-decoration: none; }
.knopf:hover { background: var(--akzent-dunkel); color: #fff; }
.knopf.zweit { background: #fff; color: var(--blau); border: 1px solid var(--blau); }
.knopf.warnung { background: var(--fehler); }

.hinweis { padding: 12px 16px; border-left: 4px solid var(--akzent); background: #eef8fd; margin-bottom: 20px; }
.hinweis.ok { border-color: var(--ok); background: #edf7ee; }

/* Chips für Produzenten/Reihen */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 12px; background: var(--band); border: 1px solid var(--linie); border-radius: 999px; font-size: 14px; }
.chips button { border: 0; background: none; cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 6px; color: var(--gedimmt); }
.vorschlaege { list-style: none; margin: 4px 0 0; padding: 0; border: 1px solid var(--linie); border-radius: var(--radius); }
.vorschlaege:empty { display: none; }
.vorschlaege button { display: block; width: 100%; text-align: left; padding: 8px 12px; border: 0; background: #fff; font: inherit; cursor: pointer; }
.vorschlaege button:hover, .vorschlaege button:focus { background: #eef8fd; }

/* Programmliste */
.filterleiste { display: grid; gap: 14px; }
.tage { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin: 0; list-style: none; padding-left: 0; }
.tage label { display: block; padding: 6px 12px; border-radius: var(--radius); background: var(--band); white-space: nowrap; font-size: 14px; font-weight: 400; color: var(--text); cursor: pointer; }
.tage input { position: absolute; opacity: 0; pointer-events: none; }
.tage label:has(input:checked) { background: var(--blau); color: #fff; }
.tage label:has(input:focus-visible) { outline: 2px solid var(--akzent); outline-offset: 2px; }
.sendungen { list-style: none; margin: 0; padding: 0; }
.sendung { display: grid; grid-template-columns: 64px 1fr; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--linie); }
.sendung:first-child { border-top: 0; }
.sendung time { font-weight: 700; color: var(--blau); font-variant-numeric: tabular-nums; }
.sendung h3 { margin: 0; font-size: 16px; }
.sendung .unter { margin: 0; color: var(--ueberschrift); }
.sendung .meta { margin: 2px 0 0; font-size: 13px; color: var(--gedimmt); }
.sendung .text { margin: 6px 0 0; font-size: 14px; }
.sendung img { max-width: 160px; height: auto; border-radius: var(--radius); margin-top: 8px; }
.marke { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: 12px; background: var(--band); border: 1px solid var(--linie); margin-right: 4px; }
.marke.kat { background: #eef8fd; border-color: #cbe9f8; }
.leer { color: var(--gedimmt); padding: 20px 0; }
.htmx-request .laedt { opacity: .5; transition: opacity .2s; }

.zahl { font-size: 32px; font-weight: 700; color: var(--blau); line-height: 1.1; }

/* Fuß */
.fuss { background: var(--footer); color: #bbb; font-size: 13px; padding: 26px 16px; text-align: center; }
.fuss a { color: #fff; margin: 0 10px; text-decoration: none; }
.fuss a:hover { color: var(--akzent); }
.fuss p { margin: 8px 0 0; }
.gruppe { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.gruppe legend { padding: 0; margin-bottom: 6px; }
.knopf.gross { display: block; width: 100%; text-align: center; padding: 16px 20px; font-size: 18px; }

/* TV-Programm wie rheinlokal.de */
@font-face { font-family: "Open Sans"; font-weight: 300; font-display: swap; src: url("fonts/open-sans-latin-300.e4bedefe2836.woff2") format("woff2"); }
.ok-knopf { display: inline-block; background: var(--blau); color: #fff; font-size: 18px; padding: 4px 18px; border: 0; text-decoration: none; }
.ok-knopf:hover { background: #185f9e; color: #fff; }
.ok-kopf { background: var(--blau); color: #fff; font-size: 18px; font-weight: 600; padding: 4px 18px; margin: 0 0 20px; }
.tagnav { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.programm-raster { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 32px; align-items: start; }
@media (max-width: 820px) { .programm-raster { grid-template-columns: 1fr; } .tagnav .ok-knopf { font-size: 15px; padding: 4px 10px; } }
.ok-sendung { display: flex; text-decoration: none; color: #333; padding: 6px 0; }
.ok-sendung:hover h3 { color: var(--blau); }
.ok-zeit { flex: none; min-width: 96px; font-size: 36px; font-weight: 300; line-height: 1.2; position: relative; top: -6px; color: #333; }
.ok-text { position: relative; margin-left: 25px; }
.ok-text::before { content: ""; position: absolute; top: 2.5px; left: -15px; height: 75%; width: 3px; background: grey; }
.ok-text h3 { margin: 0 0 5px; font-size: 18px; font-weight: 600; color: #333; }
.ok-text p { margin: 0; font-size: 14px; }
@media (max-width: 480px) { .ok-zeit { font-size: 26px; min-width: 70px; } }
.ok-kalender { width: 100%; border-collapse: collapse; text-align: center; font-size: 14px; }
.ok-kalender { table-layout: fixed; }
.kal-kopf { display: flex; justify-content: space-between; align-items: center; padding: 6px 4px 10px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--linie); }
.kal-kopf a { text-decoration: none; color: #333; font-size: 18px; }
.ok-kalender th { font-weight: 400; text-transform: uppercase; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.ok-kalender td { padding: 7px 0; border-bottom: 1px solid var(--linie); }
.ok-kalender td.kw { font-style: italic; color: var(--gedimmt); }
.ok-kalender a { color: #333; }
.ok-kalender a.heute { font-weight: 700; }
.ok-kalender a[aria-current="date"] { background: var(--blau); color: #fff; padding: 2px 7px; text-decoration: none; }
.abo-hinweis { margin-top: 24px; padding: 18px; background: var(--band); }
.abo-hinweis h3 { margin-top: 0; }
.programmfilter { display: grid; gap: 12px; padding: 18px 28px; }
.sendung-detail h2:not(.ok-kopf) { font-size: 26px; margin: 0 0 8px; }
.sendung-detail h3 { font-size: 20px; margin: 0 0 12px; font-weight: 600; }
.sendung-detail h4 { font-size: 16px; margin: 0 0 16px; color: #333; }
.sendung-detail .meta { font-size: 13px; color: var(--gedimmt); }
.termine { padding-left: 18px; }
.vorschaubild { max-width: 100%; height: auto; margin: 8px 0 16px; }
.marke.neu { background: var(--akzent); border-color: var(--akzent); color: #fff; font-size: 11px; font-weight: 600; vertical-align: middle; }
.block-kopf { margin: 18px 0 8px; padding: 3px 10px; font-size: 14px; font-weight: 600; color: var(--blau); background: var(--band); border-left: 4px solid var(--blau); }
.block-kopf:first-child { margin-top: 0; }
.block-kopf span { font-weight: 400; color: var(--gedimmt); margin-left: 6px; }
.teilen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 20px 0; }
.teilen .ok-knopf { font-size: 15px; }
.ok-knopf.zweit { background: #fff; color: var(--blau); border: 1px solid var(--blau); }
.ok-knopf.zweit:hover { background: #eef8fd; color: var(--blau); }
.teilen-status { font-size: 14px; color: var(--ok); }
.ok-knopf.live { background: #c62828; }
.ok-knopf.live:hover { background: #a31f1f; }
.filterklappe > summary { cursor: pointer; font-weight: 600; color: var(--ueberschrift); list-style: none; display: flex; align-items: center; gap: 8px; }
.filterklappe > summary::-webkit-details-marker { display: none; }
.filterklappe > summary::before { content: "▸"; color: var(--blau); transition: transform .15s; }
.filterklappe[open] > summary::before { transform: rotate(90deg); }
.filterinhalt { display: grid; gap: 12px; margin-top: 12px; }
.live-hinweis { margin: -2px 0 10px 121px; }
.live-hinweis .ok-knopf { font-size: 14px; padding: 3px 12px; }
@media (max-width: 480px) { .live-hinweis { margin-left: 95px; } }
