:root {
  --blau: #164096; --blau-dunkel: #0B1F4B; --blau-hell: #eef3fb;
  --text: #1e293b; --grau: #64748b; --linie: #e2e8f0; --flaeche: #f8fafc;
  --gruen: #059669; --gruen-hell: #ecfdf5; --gruen-rand: #a7f3d0;
  --orange: #d97706; --orange-hell: #fffbeb; --orange-rand: #fcd34d;
  --rot: #e11d48; --rot-hell: #fff1f2; --rot-rand: #fecdd3;
  --radius: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: #f1f5f9; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--blau); }
h1, h2, h3 { color: var(--blau-dunkel); margin: 0; line-height: 1.25; }
h2 { font-size: 1.15rem; font-weight: 800; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.kopflinie { height: 6px; background: var(--blau); }

/* Header */
header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linie); }
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.marke img { height: 46px; width: auto; flex: none; }
.marke h1 { font-size: 1.1rem; font-weight: 800; }
.marke small { display: block; font-size: .75rem; color: var(--grau); }
nav.haupt { display: flex; gap: 18px; font-size: .9rem; font-weight: 600; }
nav.haupt a { color: #475569; text-decoration: none; }
nav.haupt a:hover { color: var(--blau); }
.menue-knopf { display: none; border: 1px solid var(--linie); background: #fff; border-radius: 10px; padding: 8px 12px; font: inherit; font-size: .85rem; font-weight: 600; color: var(--text); cursor: pointer; min-height: 44px; }
.menue-mobil { display: none; border-top: 1px solid var(--linie); padding-block: 6px 10px; }
.menue-mobil a { display: block; padding: 10px 0; font-weight: 600; color: var(--text); text-decoration: none; }
.menue-mobil.offen { display: block; }
@media (max-width: 760px) {
  nav.haupt { display: none; }
  .menue-knopf { display: inline-flex; align-items: center; gap: 6px; }
  .marke h1 { font-size: 1rem; }
  .marke img { height: 40px; }
}

main { padding: 28px 0 8px; display: flex; flex-direction: column; gap: 24px; }
.karte { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(15,23,42,.04); padding: 22px; }
.raster2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .raster2 { grid-template-columns: 1fr; } .karte { padding: 18px; } }
.ueber { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; }
.klein { font-size: .8rem; color: var(--grau); }
.trenn { border-bottom: 1px solid #f1f5f9; padding-bottom: 10px; margin-bottom: 14px; }

/* Meldung */
.meldung { background: var(--orange-hell); border: 1px solid var(--orange-rand); color: #78350f; border-radius: 12px; padding: 12px 16px; font-size: .95rem; }
.meldung[hidden] { display: none; }

/* Status + Ampel */
.status-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.status-kopf a { font-size: .85rem; font-weight: 600; text-decoration: none; }
.status { display: flex; align-items: center; gap: 18px; border-radius: var(--radius); padding: 18px; border: 1px solid var(--linie); background: var(--flaeche); transition: background .3s; }
.status.gruen { background: var(--gruen-hell); border-color: var(--gruen-rand); }
.status.orange { background: var(--orange-hell); border-color: var(--orange-rand); }
.status.rot { background: var(--rot-hell); border-color: var(--rot-rand); }
.ampel { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 9px; background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 18px; box-shadow: inset 0 1px 2px rgba(0,0,0,.05); }
.lampe { width: 24px; height: 24px; border-radius: 50%; opacity: .28; border: 1px solid rgba(0,0,0,.08); }
.lampe.r { background: var(--rot); } .lampe.o { background: #f59e0b; } .lampe.g { background: #10b981; }
.lampe.an { opacity: 1; border: 2px solid #fff; animation: puls 2.4s ease-in-out infinite; }
.lampe.r.an { box-shadow: 0 0 14px rgba(225,29,72,.6); }
.lampe.o.an { box-shadow: 0 0 14px rgba(245,158,11,.6); }
.lampe.g.an { box-shadow: 0 0 14px rgba(16,185,129,.6); }
@keyframes puls { 50% { opacity: .75; } }
@media (prefers-reduced-motion: reduce) { .lampe.an { animation: none; } }
.pille { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; color: #fff; background: var(--grau); }
.gruen .pille { background: var(--gruen); } .orange .pille { background: #f59e0b; color: #1c1917; } .rot .pille { background: var(--rot); }
.status-zeit { font-size: .8rem; font-weight: 700; margin-left: 6px; }
.status-titel { font-size: 1.5rem; font-weight: 800; color: var(--blau-dunkel); margin: 4px 0 2px; line-height: 1.2; }
.status-text { font-size: .9rem; color: #334155; margin: 0; white-space: pre-line; }
@media (max-width: 480px) { .status-titel { font-size: 1.2rem; } .status { gap: 14px; padding: 14px; } .lampe { width: 20px; height: 20px; } }
.legende { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .75rem; color: var(--grau); margin: 12px 4px 18px; }
.legende span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.legende .lg::before { background: #10b981; } .legende .lo::before { background: #f59e0b; } .legende .lr::before { background: var(--rot); }
.naechste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 600px) { .naechste { grid-template-columns: 1fr; } }
.naechste div { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 14px 16px 14px 34px; position: relative; }
.naechste div::before { content: ""; position: absolute; left: 14px; top: 20px; width: 10px; height: 10px; border-radius: 50%; }
.naechste .n-offen::before { background: #10b981; } .naechste .n-zu::before { background: var(--rot); }
.naechste b { display: block; font-size: 1rem; margin-top: 2px; }

/* Zeiten & Preise */
.zeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--flaeche); border: 1px solid var(--linie); margin-bottom: 10px; }
.zeile strong { color: var(--blau); font-size: 1.05rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hinweis { font-size: .82rem; background: var(--orange-hell); border: 1px solid var(--orange-rand); border-radius: 12px; padding: 12px 14px; margin: 14px 0 0; color: #44403c; }
.preis { display: flex; justify-content: space-between; font-size: .92rem; padding: 4px 0; font-variant-numeric: tabular-nums; }
.preis.summe { border-top: 1px solid var(--linie); margin-top: 6px; padding-top: 10px; font-weight: 800; color: var(--blau-dunkel); }
.preis.summe span:last-child { color: var(--blau); font-size: 1.15rem; }
.bar { margin-top: 14px; font-size: .82rem; background: #f1f5f9; border: 1px solid var(--linie); border-radius: 12px; padding: 12px 14px; }
.bar b { color: var(--blau-dunkel); display: block; }

/* Termine */
.termine-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.filter { display: inline-flex; background: #f1f5f9; border: 1px solid var(--linie); border-radius: 10px; padding: 3px; }
.filter button { border: 0; background: transparent; font: inherit; font-size: .8rem; font-weight: 600; color: #475569; padding: 8px 12px; border-radius: 8px; cursor: pointer; min-height: 36px; }
.filter button[aria-pressed="true"] { background: #fff; color: var(--blau-dunkel); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.termin { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid #f1f5f9; }
.termin:last-child { border-bottom: 0; }
.t-datum { font-weight: 700; color: var(--blau-dunkel); min-width: 140px; }
.t-info { flex: 1; font-size: .9rem; }
.t-info small { display: block; color: var(--grau); font-size: .78rem; }
.badge { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-offen { color: #047857; background: var(--gruen-hell); border-color: var(--gruen-rand); }
.b-orange { color: #92400e; background: var(--orange-hell); border-color: var(--orange-rand); }
.b-zu { color: #be123c; background: var(--rot-hell); border-color: var(--rot-rand); }
@media (max-width: 600px) { .termin { flex-wrap: wrap; } .t-datum { min-width: 0; width: 100%; } }
.lade { color: var(--grau); font-size: .9rem; padding: 12px 4px; }

/* Ablauf & Regeln */
.wichtig { background: var(--blau-hell); border: 1px solid #c7d7f2; border-radius: 12px; padding: 14px 16px; font-size: .92rem; margin: 16px 0; }
ol.schritte { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
@media (max-width: 760px) { ol.schritte { grid-template-columns: 1fr; } }
ol.schritte li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 12px 14px; font-size: .9rem; }
ol.schritte li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--blau); color: #fff; font-size: .8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
ul.liste { margin: 0; padding-left: 20px; font-size: .92rem; display: flex; flex-direction: column; gap: 7px; }
.schilder { display: flex; gap: 6px; }
.schilder svg { width: 28px; height: 28px; }
.titelzeile { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
details.agb { margin-top: 16px; border-top: 1px solid #f1f5f9; padding-top: 12px; font-size: .8rem; color: #475569; }
details.agb summary { font-weight: 700; color: var(--blau); cursor: pointer; padding: 6px 0; }
details.agb p { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 12px; margin: 8px 0 0; }

/* Kontakt */
.knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.knopf { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; background: var(--blau); color: #fff; font-weight: 700; font-size: .88rem; text-decoration: none; }
.knopf:hover { background: var(--blau-dunkel); }
.knopf.zweit { background: #fff; color: #334155; border: 1px solid #cbd5e1; }
.knopf.zweit:hover { background: #f1f5f9; }
.kasten { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 18px; }

footer { background: #fff; border-top: 1px solid var(--linie); margin-top: 32px; padding: 22px 0; font-size: .82rem; color: var(--grau); }
.fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.fuss nav { display: flex; gap: 18px; }
.fuss a { color: var(--grau); text-decoration: none; }
.fuss a:hover { color: var(--blau); }

/* Rechtstexte */
.text { max-width: 760px; }
.text h2 { margin: 26px 0 8px; font-size: 1.05rem; }
.text p, .text li { font-size: .95rem; }

/* Ergänzungen */
.klein-knopf { min-height: 40px; padding: 0 14px; font-size: .82rem; }
.blick ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
@media (max-width: 600px) { .blick ul { grid-template-columns: 1fr; } }
.blick li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.blick svg { flex: none; width: 20px; height: 20px; color: #fff; background: var(--blau); border-radius: 50%; padding: 3px; margin-top: 1px; }
.aktuell { display: inline-block; font-size: .68rem; font-weight: 700; color: #047857; background: var(--gruen-hell); border: 1px solid var(--gruen-rand); border-radius: 999px; padding: 1px 8px; vertical-align: 2px; margin-left: 4px; }
.zeile.ist-aktuell { border-color: var(--blau); background: var(--blau-hell); }
.mehr { display: block; width: 100%; margin-top: 10px; min-height: 44px; border: 1px solid var(--linie); background: var(--flaeche); border-radius: 10px; font: inherit; font-weight: 700; font-size: .88rem; color: var(--blau); cursor: pointer; }
.mehr:hover { background: var(--blau-hell); }
#termine-hinweis { background: var(--orange-hell); border: 1px solid var(--orange-rand); border-radius: 10px; padding: 10px 12px; color: #78350f; margin: 4px 0 6px; }
details.frage { border-bottom: 1px solid #f1f5f9; }
details.frage summary { cursor: pointer; font-weight: 700; color: var(--blau-dunkel); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.frage summary::-webkit-details-marker { display: none; }
details.frage summary::after { content: "+"; color: var(--blau); font-size: 1.3rem; line-height: 1; }
details.frage[open] summary::after { content: "–"; }
details.frage p { margin: 0 0 14px; font-size: .93rem; color: #334155; }
@media (max-width: 760px) {
  .marke small { display: none; }
  .menue-wort { display: none; }
  .menue-knopf { width: 44px; justify-content: center; padding: 0; }
  .marke img { height: 36px; width: auto; }
  .kopf { padding-block: 8px; }
}
.alle-termine { display: inline-block; margin-top: 12px; font-size: .88rem; font-weight: 700; text-decoration: none; padding: 6px 0; }
.status-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin-top: 12px; font-size: .9rem; color: #94a3b8; }
.status-links a { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; text-decoration: none; padding: 8px 0; }
.status-links a:hover { text-decoration: underline; }

/* ── Schlichte Gestaltung: weniger Rahmen und Kästen ── */
body { background: #fff; }
main { gap: 0; padding-top: 8px; }
.karte { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 32px 0; border-top: 1px solid var(--linie); }
main > .karte:first-of-type, main > .meldung + .karte { border-top: 0; padding-top: 16px; }
.raster2 { border-top: 1px solid var(--linie); gap: 0 48px; }
.raster2 > .karte { border-top: 0; }
@media (max-width: 760px) { .raster2 > .karte + .karte { border-top: 1px solid var(--linie); } .karte { padding: 26px 0; } }
.trenn { border-bottom: 0; padding-bottom: 0; margin-bottom: 12px; }
.status { border: 0; }
.zeile { background: none; border: 0; border-radius: 0; border-bottom: 1px solid #f1f5f9; padding: 10px 0; margin: 0; }
.zeile.ist-aktuell { background: none; border-color: #f1f5f9; }
#z-pause strong { color: var(--rot); }
.zeile.weitere { border-bottom: 0; border-top: 1px solid var(--linie); margin-top: 10px; padding-top: 12px; }
.hinweis { background: none; border: 0; padding: 0; margin-top: 14px; color: var(--grau); }
.bar { background: none; border: 0; padding: 0; margin-top: 16px; color: #334155; }
.wichtig { background: none; border: 0; padding: 0; margin: 14px 0 20px; }
ol.schritte { grid-template-columns: 1fr; gap: 0; }
ol.schritte li { background: none; border: 0; border-radius: 0; padding: 10px 0; }
.kasten { background: none; border: 0; padding: 0; }
@media (max-width: 760px) { #kontakt .kasten { margin-top: 18px; } }
details.agb p { background: none; border: 0; padding: 0; }
.termin { padding-inline: 0; }
footer { margin-top: 0; }
.mehr { background: none; border: 0; border-top: 1px solid #f1f5f9; border-radius: 0; text-align: left; padding: 12px 0 0; }
.mehr:hover { background: none; text-decoration: underline; }
