/* Kundenseite — Startseite, Buchung, Anmeldung, Kundenbereich.
   Die Verwaltung nutzt weiter app.css. Bewusst der Branchenstandard:
   weißer Grund, echte Wandfotos, Logo-Rot nur für Hauptaktionen, Auswahl
   und Summen. Keine Fremdbibliothek, kein Fremdserver. */

@font-face {
    font-family: "Hanken Grotesk";
    src: url("/assets/schrift/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --grund: #ffffff;
    --flaeche: #f6f7f9;
    --flaeche-2: #eef0f3;
    --linie: #e4e7ec;
    --linie-stark: #d0d5dd;
    --tinte: #14171c;
    --text: #3a414b;
    --grau: #5d6673;
    --rot: #db0a33;
    --rot-dunkel: #b70829;
    --rot-weich: #fdecef;
    --schiefer: #333c49;
    --schiefer-text: #c9ced6;
    --gut: #0f7b4f;
    --gut-weich: #e7f5ee;
    --warn-weich: #fff6e0;
    --fehler: #b42318;
    --fehler-weich: #fef1f0;

    --klasse-a: #db0a33;
    --klasse-b: #ef6f86;
    --klasse-c: #f6c3cd;
    --klasse-n: #333c49;

    --radius: 10px;
    --radius-klein: 8px;
    --schatten: 0 1px 2px rgba(16, 24, 40, .06);
    --schatten-schwebend: 0 12px 32px -8px rgba(16, 24, 40, .24), 0 2px 6px rgba(16, 24, 40, .08);
    --fokus: 0 0 0 3px rgba(219, 10, 51, .28);
    --breite: 1240px;
    --rand: 32px;
}

/* ---------- Grundlagen ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    margin: 0;
    font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--grund);
    font-feature-settings: "tnum" 1;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
h1, h2, h3, h4, p, dl, dd, figure, fieldset, ul, ol { margin: 0; }
h1, h2, h3, h4 { color: var(--tinte); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
img { max-width: 100%; }
a { color: var(--rot); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rot-dunkel); }
::selection { background: var(--rot); color: #fff; }
:focus-visible { outline: none; box-shadow: var(--fokus); border-radius: 4px; }
[hidden] { display: none !important; }

.innen { max-width: var(--breite); margin: 0 auto; padding-left: var(--rand); padding-right: var(--rand); }
.klein, .hint { font-size: 14px; color: var(--grau); }
.inhalt { flex: 1; }

.sprung { position: absolute; left: 16px; top: -48px; background: var(--tinte); color: #fff; padding: 8px 14px; border-radius: var(--radius-klein); z-index: 50; }
.sprung:focus { top: 12px; color: #fff; }

/* ---------- Knöpfe ---------- */

.knopf, .button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 20px;
    font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
    color: #fff; background: var(--rot);
    border: 1px solid var(--rot); border-radius: var(--radius-klein);
    box-shadow: var(--schatten);
    text-decoration: none; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.knopf:hover, .button:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: #fff; }
.knopf:disabled, .button:disabled { opacity: .55; cursor: not-allowed; }
.knopf--gross, .button--block { min-height: 52px; font-size: 16px; width: 100%; }
.knopf--zweit { background: #fff; color: var(--tinte); border-color: var(--linie-stark); }
.knopf--zweit:hover { background: var(--flaeche); border-color: var(--linie-stark); color: var(--tinte); }
.knopf--leise {
    min-height: 36px; padding: 0 14px; font-size: 14px; font-weight: 550;
    background: #fff; color: var(--text); border-color: var(--linie-stark); box-shadow: none;
}
.knopf--leise:hover { background: var(--flaeche); color: var(--tinte); border-color: var(--linie-stark); }
.knopf--leise[aria-pressed="true"] { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.knopf svg { flex: none; }

/* ---------- Testbetrieb, Kopf ---------- */

.testbetrieb { background: var(--schiefer); color: #fff; font-size: 13px; text-align: center; padding: 6px 16px; }
.testbetrieb a { color: inherit; text-decoration: underline; }

.kopf { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--linie); backdrop-filter: saturate(1.4) blur(8px); }
.kopf__innen { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); height: 72px; display: flex; align-items: center; gap: 36px; }
.kopf__marke { display: block; flex: none; }
.kopf__marke img { display: block; height: 40px; width: auto; }
.kopf__nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 15px; }
.kopf__seiten, .kopf__konto { display: flex; align-items: center; gap: 26px; }
.kopf__nav a, .kopf__nav button { color: var(--text); text-decoration: none; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.kopf__nav a:hover, .kopf__nav button:hover, .kopf__nav a.is-active { color: var(--tinte); }
.kopf__nav a.is-active { font-weight: 600; }
.kopf__nav form { margin: 0; }
.kopf__buchen { flex: none; }
.kopf__menue { display: none; }

/* ---------- Einstieg ---------- */

.held { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 48px; }
.held h1 { font-size: clamp(34px, 4.1vw, 56px); line-height: 1.06; letter-spacing: -.035em; }
.held h1 span { color: var(--rot); }
.held__unter { font-size: 19px; line-height: 1.55; margin-top: 20px; max-width: 40ch; }
.anker { display: flex; align-items: baseline; gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--linie); }
.anker b { font-size: 34px; letter-spacing: -.02em; color: var(--tinte); font-weight: 700; white-space: nowrap; }
.anker span { color: var(--grau); font-size: 15px; line-height: 1.35; }
.belege { list-style: none; padding: 0; margin-top: 26px; display: grid; gap: 12px; font-size: 15px; }
.belege li { display: flex; gap: 10px; align-items: center; }
.belege svg { flex: none; color: var(--gut); }

.buehne { position: relative; }
.foto { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1094 / 730; background: var(--flaeche); }
.foto > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foto__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.foto__video.an { opacity: 1; transition-duration: 1.4s; }
/* Standortwahl über dem Einstiegsfoto: wechselt Foto und Abendvideo und
   stellt den Suchkasten auf eine Wand dieses Standorts. Auf schmalen
   Bildschirmen seitlich wischbar statt umbrechend, damit das Bild frei bleibt. */
.standortwahl { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.standortwahl::-webkit-scrollbar { display: none; }
.standortwahl button { flex: none; font: inherit; font-size: 13px; font-weight: 600; color: #fff; background: rgba(20, 23, 28, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .16); border-radius: 6px; padding: 6px 11px; cursor: pointer; transition: background .2s, color .2s; }
.standortwahl button:hover { background: rgba(20, 23, 28, .82); }
.standortwahl button[aria-pressed="true"] { background: #fff; color: var(--tinte); border-color: #fff; }
.standortwahl button:focus-visible { outline: none; box-shadow: var(--fokus); }
@media (max-width: 640px) {
    /* Ausblenden am rechten Rand zeigt, dass sich die Leiste wischen lässt */
    .standortwahl { right: 0; padding-right: 28px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
}
.foto__ort { position: absolute; left: 16px; top: 16px; background: rgba(20, 23, 28, .74); color: #fff; font-size: 13px; padding: 5px 10px; border-radius: 6px; }
.bildschirm { position: absolute; overflow: hidden; background: #111; }
.wandmotiv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: grid; align-content: center; padding: 8%; color: #fff; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.wandmotiv small { display: block; font-weight: 500; font-size: .62em; margin-top: 6px; opacity: .92; }
/* Ein hochgeladenes Bild füllt den Schirm randlos; Innenabstand gilt nur für den Platzhaltertext */
.bildschirm img.wandmotiv { padding: 0; }
.held .bildschirm { box-shadow: 0 0 18px rgba(219, 10, 51, .45); }
.held .wandmotiv { background: var(--rot); font-size: clamp(11px, 1.1vw, 16px); }

.suche { position: relative; margin: -64px 20px 0; background: #fff; border-radius: 12px; padding: 22px; box-shadow: var(--schatten-schwebend); }
.suche h2 { font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.suche__felder { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; margin-top: 16px; }
.suche .knopf { margin-top: 14px; }
.suche__fuss { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--grau); }

/* ---------- Formularfelder ---------- */

.feld, .form__field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--tinte); min-width: 0; }
.feld > span, .form__field > span { font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"],
input[type="date"], select, textarea {
    width: 100%; min-height: 46px; padding: 10px 12px;
    font: inherit; font-size: 16px; font-weight: 450; color: var(--tinte);
    background: #fff; border: 1px solid var(--linie-stark); border-radius: var(--radius-klein);
    box-shadow: var(--schatten);
    transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 76px; resize: vertical; }
input[type="date"] { min-width: 0; }
select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235d6673' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
input:hover, select:hover, textarea:hover { border-color: #98a2b3; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rot); box-shadow: var(--fokus); }
input[type="file"] { font: inherit; font-size: 14px; font-weight: 450; color: var(--text); padding: 10px; border: 1px dashed var(--linie-stark); border-radius: var(--radius-klein); background: var(--flaeche); width: 100%; }
input[type="checkbox"] { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--rot); flex: none; }

.form { display: grid; gap: 22px; }
.form__gruppe { border: 0; padding: 0; display: grid; gap: 14px; min-width: 0; }
.form__gruppe legend { font-size: 17px; font-weight: 650; color: var(--tinte); padding: 0; margin-bottom: 4px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.form__row:has(.form__field--kurz) { grid-template-columns: minmax(0, 1fr) 140px; }
.form__row:has(.form__field--kurz:first-child) { grid-template-columns: 140px minmax(0, 1fr); }
.form__field--inline { max-width: 240px; }
.form__field--check { display: flex; gap: 12px; align-items: flex-start; font-weight: 450; color: var(--text); font-size: 15px; line-height: 1.5; }
.form__field--check > span { font-weight: 450; }

.alert { padding: 12px 14px; border-radius: var(--radius-klein); background: var(--flaeche); font-size: 15px; }
.alert--fehler, .alert--error { background: var(--fehler-weich); color: var(--fehler); border: 1px solid #f7c8c3; }
.alert--ok { background: var(--gut-weich); color: var(--gut); border: 1px solid #b7e2cc; }
.alert--warn { background: var(--warn-weich); color: #7a4f00; border: 1px solid #f3dca5; }
.alert a { color: inherit; font-weight: 600; }
.alert p { margin-top: 10px; }

/* Die Einzelseiten stammen aus dem Arbeitsbereich und kennen „button“ als
   Nebenknopf; hier ist der Grundknopf rot, also wird er zurückgenommen. */
.button:not(.button--primary) { background: #fff; color: var(--tinte); border-color: var(--linie-stark); }
.button:not(.button--primary):hover { background: var(--flaeche); color: var(--tinte); border-color: var(--linie-stark); }
.button--klein { min-height: 36px; padding: 0 14px; font-size: 14px; }
.buttonrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.lead { font-size: 18px; color: var(--text); max-width: 60ch; }

/* ---------- Einzelseiten: Anmeldung, Ergebnis, Rechtstexte, Fehler ---------- */

.seite { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 56px var(--rand) 88px; }
.seitenkopf__vorzeile { display: block; font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--rot); margin-bottom: 8px; }

.card { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); padding: 32px; }
.card--narrow { max-width: 560px; margin: 0 auto; }
.card > * + * { margin-top: 16px; }
.card h1 { font-size: 30px; }
.card h2 { font-size: 19px; }
.card > h2 { margin-top: 28px; }
.card p { line-height: 1.6; }

.zugang { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: stretch; }
.zugang > .card { align-self: center; justify-self: center; width: 100%; max-width: 480px; padding: 40px; }
.zugang .card > .hint:first-of-type { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--linie); }
.zugang .card > .hint a { font-weight: 600; }
.zugang__bild { position: relative; margin: 0; min-height: 560px; border-radius: var(--radius); overflow: hidden; background: var(--schiefer) center / cover no-repeat; }
.zugang__bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 23, 28, .72), rgba(20, 23, 28, 0) 55%); }
.zugang__bild figcaption { position: absolute; z-index: 1; left: 32px; right: 32px; bottom: 28px; color: #fff; font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.zugang__bild figcaption small { display: block; margin-top: 8px; font-size: 14px; font-weight: 450; letter-spacing: 0; opacity: .8; }

.ergebnis__zeichen { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--flaeche); color: var(--schiefer); }
.ergebnis__zeichen svg { width: 26px; height: 26px; }
.ergebnis__zeichen--ok { background: var(--gut-weich); color: var(--gut); }
.ergebnis__zeichen--fehler { background: var(--fehler-weich); color: var(--fehler); }
.ergebnis__zeichen--warten svg { animation: drehen 1.4s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }

.pricelist { display: grid; gap: 0; border-top: 1px solid var(--linie); }
.pricelist > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.pricelist dt { color: var(--grau); }
.pricelist dd { color: var(--tinte); font-weight: 600; }

.rechtstext { max-width: 820px; margin: 0 auto; }
.rechtstext h1 { font-size: 36px; }
.rechtstext > h2 { margin-top: 36px; font-size: 20px; }
.rechtstext > h2 + * { margin-top: 10px; }
.rechtstext p, .rechtstext li { line-height: 1.65; }
.rechtstext ul, .rechtstext ol { padding-left: 22px; }

.fehlerseite { max-width: 640px; margin: 0 auto; }
.fehlerseite__code { display: block; font-size: clamp(88px, 16vw, 152px); font-weight: 800; line-height: .9; letter-spacing: -.05em; color: var(--rot); margin-bottom: 20px; }
.fehlerseite .lead { font-size: 22px; font-weight: 600; color: var(--tinte); }
.fehlerseite .hint { margin-top: 8px; }
.trace { margin-top: 20px; padding: 16px; font-size: 12px; background: var(--flaeche); border-radius: var(--radius-klein); overflow-x: auto; }

/* ---------- Abschnitte ---------- */

.abschnitt { padding-top: 72px; padding-bottom: 8px; }
.abschnitt__kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 24px; }
.abschnitt__kopf h2 { font-size: clamp(26px, 2.6vw, 34px); }
.abschnitt__kopf p { max-width: 52ch; color: var(--grau); }

/* ---------- Buchungswege ("Wie möchten Sie buchen?") ---------- */

.wege { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.weg { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px; background: #fff; box-shadow: var(--schatten); }
.weg:first-child { border-color: var(--rot); box-shadow: 0 0 0 1px var(--rot); }
.weg h3 { font-size: 22px; margin-top: 12px; }
.weg__marke { font-size: 12.5px; font-weight: 700; color: var(--rot); background: var(--rot-weich); padding: 2px 10px; border-radius: 99px; }
.weg__marke--leise { color: var(--schiefer); background: var(--flaeche-2); }
.weg__punkte { margin-bottom: 24px; }
.weg .knopf { margin-top: auto; }
.suche__weg { margin-top: 10px; text-align: center; font-size: 14px; }

/* ---------- Standorte ---------- */

/* Standortkarte (standortkarte.js): links die Karte, rechts Wahl und Video.
   Karte © OpenStreetMap-Mitwirkende; der Hinweis bleibt immer lesbar. */
.ortskarte { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; margin-bottom: 40px; }
.ortskarte__flaeche { position: relative; align-self: start; aspect-ratio: 1000 / 727; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; overflow: hidden; }
.ortskarte__grund { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ortskarte__orte path { fill: #e6e9ee; }
.ortskarte__bahn path { fill: none; stroke: #c9ced6; stroke-width: 1.2; stroke-dasharray: 4 3; }
.ortskarte__land path { fill: none; stroke: #d7dce3; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ortskarte__bund path { fill: none; stroke: #aab2bd; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.ortskarte__fluss path { fill: none; stroke: #8fbbe3; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.ortskarte__stadt { font: 700 28px "Hanken Grotesk", system-ui, sans-serif; fill: var(--tinte); letter-spacing: -.01em; paint-order: stroke; stroke: var(--flaeche); stroke-width: 6px; }
.ortskarte__flussname { font: italic 500 17px "Hanken Grotesk", system-ui, sans-serif; fill: #5f8fbd; }
.ortskarte__punkt { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 3px solid #fff; background: var(--rot); color: #fff; font: 700 12px/1 "Hanken Grotesk", system-ui, sans-serif; box-shadow: 0 2px 8px rgba(16, 24, 40, .3); cursor: pointer; transition: transform .25s ease, background-color .25s ease; }
.ortskarte__punkt::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--rot); opacity: 0; pointer-events: none; }
.ortskarte__punkt[aria-pressed="true"] { transform: scale(1.22); background: var(--rot-dunkel); z-index: 1; }
.ortskarte__punkt[aria-pressed="true"]::before { animation: ortskarte-puls 1.8s ease-out infinite; }
.ortskarte__punkt:hover { transform: scale(1.15); }
.ortskarte__punkt:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(219, 10, 51, .35), 0 2px 8px rgba(16, 24, 40, .3); }
.ortskarte__quelle { position: absolute; right: 8px; bottom: 6px; margin: 0; font-size: 11px; color: var(--grau); background: rgba(246, 247, 249, .85); padding: 2px 6px; border-radius: 4px; }
.ortskarte__quelle a { color: inherit; }
.ortskarte__seite { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ortskarte__wahl { display: flex; flex-wrap: wrap; gap: 6px; }
.ortskarte__wahl button { font: inherit; font-size: 14px; font-weight: 600; color: var(--text); background: #fff; border: 1px solid var(--linie-stark); border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.ortskarte__wahl button:hover { border-color: var(--tinte); color: var(--tinte); }
.ortskarte__wahl button[aria-pressed="true"] { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.ortskarte__wahl button:focus-visible { outline: none; box-shadow: var(--fokus); }
.ortskarte__info { display: grid; gap: 8px; animation: ortskarte-info .45s ease both; }
.ortskarte__info h3 { font-size: 20px; margin-top: 6px; }
.ortskarte__info p { margin: 0; color: var(--text); }
.ortskarte__info b { color: var(--tinte); }
.ortskarte__bild { position: relative; aspect-ratio: 1094 / 730; border-radius: 12px; overflow: hidden; background: var(--schiefer); }
.ortskarte__bild img, .ortskarte__bild video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ortskarte__bild video { opacity: 0; transition: opacity .8s ease; }
.ortskarte__bild video.an { opacity: 1; }
.ortskarte__buchen { justify-self: start; margin-top: 6px; }
@keyframes ortskarte-puls { from { transform: scale(1); opacity: .75; } to { transform: scale(2.6); opacity: 0; } }
@keyframes ortskarte-info { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Aufzeichnen: wartet = unsichtbarer Anfang, zeichnen = Ablauf. Die Pfade
   haben pathLength="1", damit Strichlänge und Versatz für jedes Stück gleich
   rechnen; --v ist der Weg von Plettenberg her (0 … 1). */
.ortskarte--wartet .ortskarte__fluss path, .ortskarte--wartet .ortskarte__bund path { stroke-dashoffset: 1; }
.ortskarte--wartet .ortskarte__orte, .ortskarte--wartet .ortskarte__schein, .ortskarte--wartet .ortskarte__land, .ortskarte--wartet .ortskarte__bahn,
.ortskarte--wartet .ortskarte__stadt, .ortskarte--wartet .ortskarte__flussname { opacity: 0; }
.ortskarte--wartet .ortskarte__punkt { transform: scale(0); }
.ortskarte--zeichnen .ortskarte__orte, .ortskarte--zeichnen .ortskarte__schein { animation: ortskarte-auf .9s ease backwards; }
.ortskarte--zeichnen .ortskarte__fluss path { animation: ortskarte-strich 1.1s cubic-bezier(.4, 0, .2, 1) backwards; animation-delay: calc(var(--v) * 1s); }
.ortskarte--zeichnen .ortskarte__bund path { animation: ortskarte-strich 1.2s cubic-bezier(.4, 0, .2, 1) backwards; animation-delay: calc(.25s + var(--v) * 1s); }
.ortskarte--zeichnen .ortskarte__land, .ortskarte--zeichnen .ortskarte__bahn { animation: ortskarte-auf .8s ease .7s backwards; }
.ortskarte--zeichnen .ortskarte__stadt, .ortskarte--zeichnen .ortskarte__flussname { animation: ortskarte-auf .6s ease .9s backwards; }
.ortskarte--zeichnen .ortskarte__punkt { animation: ortskarte-punkt .55s cubic-bezier(.3, 1.6, .5, 1) backwards; animation-delay: calc(.6s + var(--v) * 1.3s); }
.ortskarte--zeichnen .ortskarte__seite { animation: ortskarte-auf .6s ease 1.9s backwards; }
@keyframes ortskarte-strich { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ortskarte-auf { from { opacity: 0; } to { opacity: 1; } }
@keyframes ortskarte-punkt { from { transform: scale(0); } to { transform: scale(1); } }

.standorte { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.standort { display: flex; flex-direction: column; border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--schatten); transition: border-color .15s ease, box-shadow .15s ease; }
.standort:has(.standort__wahl[aria-pressed="true"]) { border-color: var(--rot); box-shadow: 0 0 0 1px var(--rot); }
.standort__bild { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--flaeche); display: grid; place-items: center; color: var(--grau); }
.standort__bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.standort__bild svg { width: 44px; height: 44px; }
.standort__text { padding: 16px 18px 0; display: grid; gap: 2px; }
.standort__text h3 { font-size: 18px; }
.standort__richtung { font-size: 15px; color: var(--tinte); }
.standort__ort { font-size: 14px; color: var(--grau); }
.standort__art { justify-self: start; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--schiefer); background: var(--flaeche-2); padding: 2px 8px; border-radius: 99px; }
.standort__ab { display: none; font-size: 14px; color: var(--grau); }
.standort__ab b { color: var(--tinte); }
.standort__daten { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 14px 18px 0; padding-top: 12px; border-top: 1px solid var(--linie); font-size: 14px; }
.standort__daten dt { color: var(--grau); display: flex; align-items: center; gap: 8px; }
.standort__daten dt i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.standort__daten dd { text-align: right; color: var(--tinte); font-weight: 600; }
.standort__wahl { margin: 16px 18px 18px; margin-top: auto; }
.standort__daten + .standort__wahl { margin-top: 16px; }
.standort__wahl[aria-pressed="true"] { background: var(--tinte); border-color: var(--tinte); }
.standorte__fuss { margin-top: 14px; }

/* ---------- Buchung ---------- */

/* Der Buchungsbereich erscheint erst, wenn eine Wand gewählt oder eine
   Auswahl aus der letzten Sitzung wiederhergestellt ist. */
.buchung:not(:has(#verfuegbarkeit:not([hidden]), #auswahl:not([hidden]))) { display: none; }
.buchung { padding-top: 64px; }
.buchung__raster { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.buchung__schritte { display: grid; gap: 24px; min-width: 0; }
.karte { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px; box-shadow: var(--schatten); }
.karte > h2 { font-size: 22px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.karte > h2 + .hint { margin-top: 6px; }
.schrittmarke { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--rot); color: #fff; font-size: 15px; font-weight: 700; flex: none; }
.ortskarte__werkzeuge { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 20px 0 16px; }

.legende-slots { display: flex; gap: 18px; font-size: 13.5px; color: var(--grau); }
.legende-slots span { display: inline-flex; align-items: center; gap: 7px; }
.legende-slots i { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--linie-stark); background: #fff; }
.legende-slots i.gewaehlt { background: var(--rot); border-color: var(--rot); }
.legende-slots i.vergeben { background: repeating-linear-gradient(135deg, var(--flaeche-2) 0 3px, #fff 3px 6px); border-color: var(--linie); }

.blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.block { border: 1px solid var(--linie); border-radius: var(--radius-klein); padding: 12px; background: #fff; font-size: 13.5px; color: var(--grau); }
.block strong { display: block; font-size: 15px; color: var(--tinte); }
.block--full { background: var(--flaeche); }
.block--full strong { color: var(--grau); }
.subslots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 10px; }
.subslot {
    min-height: 34px; padding: 0; font: inherit; font-size: 13px; font-weight: 600;
    color: var(--tinte); background: #fff; border: 1px solid var(--linie-stark); border-radius: 6px; cursor: pointer;
    transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.subslot:hover { border-color: var(--rot); color: var(--rot); }
.subslot--gewaehlt, .subslot--gewaehlt:hover { background: var(--rot); border-color: var(--rot); color: #fff; }
.subslot--vergeben, .subslot:disabled { cursor: not-allowed; color: #98a2b3; border-color: var(--linie); background: repeating-linear-gradient(135deg, var(--flaeche-2) 0 3px, #fff 3px 6px); }

.zusammenfassung { position: sticky; top: 96px; display: grid; gap: 0; padding: 0; overflow: hidden; }
.zusammenfassung__kopf { padding: 20px 22px 14px; border-bottom: 1px solid var(--linie); }
.zusammenfassung__kopf h2 { font-size: 18px; }
.auswahl { display: grid; max-height: 280px; overflow: auto; }
.auswahl:empty::before { content: "Noch keine Zeiten gewählt. Tippen Sie links freie Abschnitte an."; display: block; padding: 16px 22px; color: var(--grau); font-size: 14px; }
.auswahl__zeile { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 22px; border-bottom: 1px solid var(--linie); font-size: 14px; color: var(--tinte); }
.auswahl__entfernen { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--linie-stark); border-radius: 6px; background: #fff; color: var(--grau); font: inherit; font-size: 12px; cursor: pointer; }
.auswahl__entfernen:hover { color: var(--fehler); border-color: var(--fehler); }
.price-summary { padding: 16px 22px 20px; background: var(--flaeche); }
.price-summary h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--grau); font-weight: 650; margin-bottom: 8px; }
.price-summary dl { display: grid; gap: 4px; font-size: 14.5px; }
.price-summary dl div { display: flex; justify-content: space-between; gap: 12px; }
.price-summary dt { color: var(--grau); }
.price-summary dd { color: var(--tinte); font-weight: 550; text-align: right; }
.price-summary__summe { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--linie-stark); font-size: 17px; }
.price-summary__summe dt { color: var(--tinte); font-weight: 650; }
.price-summary__summe dd { color: var(--rot); font-weight: 750; font-size: 20px; }
.zusammenfassung__fuss { padding: 0 22px 18px; background: var(--flaeche); font-size: 13px; color: var(--grau); }
.zusammenfassung__weiter { display: none; }

.motiv-vorschau { border: 1px solid var(--linie); border-radius: var(--radius-klein); padding: 8px; background: var(--flaeche); width: 160px; }
.motiv-vorschau img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.motiv-vorschau video { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.motiv-vorschau [hidden] { display: none; }

/* ---------- Preise über den Tag ---------- */

.tag { border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px; box-shadow: var(--schatten); }
.tag__wahl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.saeulen { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; align-items: end; height: 180px; }
.saeule { border-radius: 4px 4px 0 0; transition: height .3s ease, background-color .3s ease; }
.saeule[data-k="a"] { height: 100%; background: var(--klasse-a); }
.saeule[data-k="b"] { height: 72%; background: var(--klasse-b); }
.saeule[data-k="c"] { height: 46%; background: var(--klasse-c); }
.saeule[data-k="n"] { height: 18%; background: var(--klasse-n); }
.stunden { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; margin-top: 8px; font-size: 12px; color: var(--grau); text-align: center; }
.legende { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--linie); font-size: 14.5px; color: var(--text); }
.legende div { display: grid; grid-template-columns: 12px 1fr; column-gap: 10px; align-items: center; }
.legende i { width: 12px; height: 12px; border-radius: 3px; }
.legende b { grid-column: 2; font-size: 20px; color: var(--tinte); font-weight: 700; letter-spacing: -.01em; }

/* ---------- Ablauf ---------- */

.schritte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: schritt; }
.schritt { border: 1px solid var(--linie); border-radius: var(--radius); padding: 24px; background: #fff; counter-increment: schritt; }
.schritt::before { content: counter(schritt); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--rot-weich); color: var(--rot); font-weight: 700; margin-bottom: 16px; }
.schritt h3 { font-size: 18px; margin-bottom: 6px; }
.schritt p { font-size: 15px; }

/* ---------- Motivprobe ---------- */

.probe { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; background: var(--flaeche); border-radius: 16px; padding: 32px; }
.probe h2 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 10px; }
.probe .foto > img, .held .foto > img { transition: opacity .2s ease; }
.probe .wandmotiv { background: var(--tinte); font-size: clamp(9px, 1.2vw, 16px); }
.probe__feld { display: block; margin-top: 20px; padding: 22px; text-align: center; background: #fff; border: 1.5px dashed var(--linie-stark); border-radius: var(--radius); cursor: pointer; color: var(--tinte); transition: border-color .15s ease, background-color .15s ease; }
.probe__feld:hover, .probe__feld.ist-drueber { border-color: var(--rot); background: var(--rot-weich); }
.probe__feld input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.probe__feld:focus-within { box-shadow: var(--fokus); }
.probe__wandwahl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- Technik ---------- */

.technik { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 40px; align-items: center; padding: 28px 32px; border: 1px solid var(--linie); border-radius: 16px; background: #fff; }
.technik__marke { display: block; padding-right: 40px; border-right: 1px solid var(--linie); }
.technik__marke img { display: block; width: 176px; height: auto; }
.technik__text h2 { font-size: clamp(20px, 2vw, 24px); margin-bottom: 6px; }
.technik__text p { color: var(--grau); max-width: 62ch; }

/* ---------- Schlussband ---------- */

.schluss { margin-top: 80px; background: var(--schiefer); color: var(--schiefer-text); }
.schluss__innen { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.schluss h2 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); }
.schluss p { margin-top: 8px; font-size: 17px; }
.schluss a:not(.knopf) { color: #fff; }
.schluss__aktionen { display: flex; gap: 12px; flex-wrap: wrap; }
.schluss .knopf--zweit { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.schluss .knopf--zweit:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* ---------- Fuß ---------- */

.fuss { border-top: 1px solid var(--linie); background: #fff; font-size: 14px; color: var(--grau); }
.schluss + .fuss, .inhalt:has(> .start > .schluss:last-child) + .fuss { border-top: 0; }
.fuss__innen { max-width: var(--breite); margin: 0 auto; padding: 36px var(--rand) 24px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.fuss__betreiber { display: grid; gap: 10px; }
.fuss__betreiber img { display: block; height: 36px; width: auto; }
.fuss a { color: var(--text); text-decoration: none; }
.fuss a:hover { color: var(--rot); }
.fuss__technik { display: grid; gap: 10px; align-content: start; }
.fuss__titel { font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--grau); }
.fuss__technik img { display: block; width: 118px; height: auto; }
.fuss__links { display: flex; gap: 24px; align-items: flex-start; }
.fuss__unten { max-width: var(--breite); margin: 0 auto; padding: 16px var(--rand) 28px; border-top: 1px solid var(--linie); display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.fuss__umgebung { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--grau); }

/* ---------- Mittlere Breiten ---------- */

@media (max-width: 1100px) {
    .held { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 40px; }
    .standorte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .buchung__raster { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
}

@media (max-width: 899px) {
    .ortskarte { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .ortskarte__wahl { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--rand) * -1); padding: 0 var(--rand); }
    .ortskarte__wahl::-webkit-scrollbar { display: none; }
    .ortskarte__wahl button { flex: none; }
    .seite { padding: 32px var(--rand) 56px; }
    .zugang { grid-template-columns: minmax(0, 1fr); }
    .zugang__bild { display: none; }
    .zugang > .card, .card { padding: 24px; }
    .card h1, .rechtstext h1 { font-size: 26px; }
    :root { --rand: 20px; }
    html { scroll-padding-top: 72px; }
    .kopf__innen { height: 64px; gap: 12px; }
    .kopf__marke img { height: 34px; }
    .kopf__buchen { margin-left: auto; min-height: 40px; padding: 0 14px; font-size: 14px; }
    .kopf__menue { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--linie-stark); border-radius: var(--radius-klein); background: #fff; color: var(--tinte); cursor: pointer; }
    .kopf__nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--linie); box-shadow: var(--schatten-schwebend); padding: 8px var(--rand) 16px; flex-direction: column; align-items: stretch; gap: 0; }
    .kopf__nav.is-open { display: flex; }
    .kopf__seiten, .kopf__konto { flex-direction: column; align-items: stretch; gap: 0; }
    .kopf__konto { border-top: 1px solid var(--linie); margin-top: 8px; padding-top: 8px; }
    .kopf__nav a, .kopf__nav button { display: block; width: 100%; text-align: left; padding: 12px 0; font-size: 16px; }

    /* Am Handy rückt die Suchkarte vor die Zusagen, damit die Buchung im
       ersten Bildschirm beginnt. */
    .held { display: flex; flex-direction: column; align-items: stretch; padding-top: 28px; padding-bottom: 24px; gap: 0; }
    .held__text { display: contents; }
    .held .buehne { order: 1; margin-top: 24px; }
    .held .belege { order: 2; margin-top: 28px; }
    .held__unter { font-size: 17px; margin-top: 14px; }
    .anker { margin-top: 20px; padding-top: 18px; }
    .anker b { font-size: 28px; }
    .belege { margin-top: 18px; }
    .suche { margin: -32px 12px 0; padding: 18px; }
    .suche__felder { grid-template-columns: 1fr; }

    .abschnitt { padding-top: 56px; }
    .abschnitt__kopf { flex-direction: column; align-items: flex-start; gap: 8px; }
    .buchung__raster { grid-template-columns: 1fr; }
    .karte { padding: 20px; }
    .zusammenfassung { position: static; }
    .legende { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .schritte { grid-template-columns: 1fr; }
    .probe { grid-template-columns: 1fr; padding: 20px; gap: 24px; }
    .technik { grid-template-columns: 1fr; gap: 16px; padding: 22px; justify-items: start; }
    .technik__marke { padding: 0 0 16px; border-right: 0; border-bottom: 1px solid var(--linie); width: 100%; }
    .schluss__innen { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .wege { grid-template-columns: 1fr; }
    .weg { padding: 22px; }
    .standorte { grid-template-columns: 1fr; gap: 12px; }
    .standort { display: grid; grid-template-columns: 116px minmax(0, 1fr); grid-template-rows: auto auto; }
    .standort__bild { aspect-ratio: auto; height: 100%; min-height: 116px; grid-row: 1; }
    .standort__text { padding: 12px 14px 0; align-content: start; }
    .standort__text h3 { font-size: 16px; }
    .standort__richtung, .standort__ort { font-size: 13.5px; }
    .standort__art { display: none; }
    .standort__ab { display: block; margin-top: 4px; }
    .standort__daten { display: none; }
    .standort__wahl { grid-column: 1 / -1; margin: 12px 14px 14px; min-height: 42px; }
    .standort__daten + .standort__wahl { margin-top: 12px; }
    .tag { padding: 18px; }
    .saeulen { height: 140px; gap: 2px; }
    .stunden { gap: 2px; font-size: 10px; }
    .stunden span:nth-child(odd) { visibility: hidden; }
    .blocks { grid-template-columns: 1fr; }
    .subslot { min-height: 42px; }
    .fuss__innen, .fuss__unten { flex-direction: column; }

    /* Am Handy steht die Summe als Leiste am unteren Rand, sobald ein
       Preis vorliegt; die vollständige Aufstellung bleibt in der Karte. */
    .zusammenfassung:has(#preisbereich:not([hidden])) .zusammenfassung__weiter {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
        align-items: center; justify-content: space-between; gap: 12px;
        padding: 12px var(--rand) calc(12px + env(safe-area-inset-bottom));
        background: #fff; border-top: 1px solid var(--linie); box-shadow: 0 -8px 24px -12px rgba(16, 24, 40, .25);
    }
    .zusammenfassung__weiter b { display: block; color: var(--rot); font-size: 19px; }
    .zusammenfassung__weiter .knopf { min-height: 44px; }
    body:has(.zusammenfassung #preisbereich:not([hidden])) .fuss { padding-bottom: 76px; }
}

/* ---------- Bewegung (bewegung.js) ----------
   Der Kopf setzt `bw`, solange Bewegung erwünscht ist, und nimmt die Klasse
   nach spätestens 1,6 s selbst wieder ab — auch wenn bewegung.js nie ankommt.
   Bewusst ein Zeitgeber und keine CSS-Animation: Animationen laufen nur, wenn
   der Browser zeichnet (nicht in Vorschaubildern oder ausgeblendeten Tabs). */
.bw .held__text > *, .bw .belege li, .bw .held .foto, .bw .held .suche { opacity: 0; }
.saeule { transform-origin: 50% 100%; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
