/* auftrieb.css · AUFTRIEB Ballonfahrten (Beispiel). Morgenlicht, Nebelweiß, Ballonrot. */
@font-face { font-family: "Red Hat Display"; src: url("../fonts/red-hat-display-var.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Red Hat Mono"; src: url("../fonts/red-hat-mono-var.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --tinte: #1b2340; --tinte-2: #2a3458; --nebel: #f1efec; --pfirsich: #f8e3cf; --rot: #c8352a; --rot-hell: #e04a37; --orange: #f29a2e;
  --leise: #59617a; --hell-leise: #c9cfe0;
  --schrift: "Red Hat Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Red Hat Mono", ui-monospace, monospace;
  /* Schrift-Ordnung: fünf Größen */
  --s-riese: clamp(2.4rem, 4.8vw, 4.6rem);
  --s-gross: clamp(1.9rem, 3.4vw, 3.2rem);
  --s-mittel: clamp(1.2rem, 1.7vw, 1.45rem);
  --s-text: 1.0625rem;
  --s-klein: .9rem;
  --rand: clamp(20px, 5vw, 76px);
  --luft: clamp(72px, 12vh, 150px);
  --weich: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--nebel); color: var(--tinte); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 var(--s-text)/1.6 var(--schrift); overflow-x: clip; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
h1, h2 { font-weight: 800; letter-spacing: -.025em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: var(--s-riese); }
h2 { font-size: var(--s-gross); margin-bottom: .45em; }
h3 { font-size: var(--s-mittel); font-weight: 750; line-height: 1.25; letter-spacing: -.01em; }
p { max-width: 38em; }
.rand { max-width: 1600px; margin-inline: auto; padding-inline: var(--rand); }
.abschnitt { padding-block: var(--luft); }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; border-radius: 6px; }
.sprung { position: fixed; left: 12px; top: -90px; z-index: 100; background: var(--tinte); color: var(--nebel); padding: 12px 18px; font-weight: 700; border-radius: 8px; }
.sprung:focus { top: 12px; }

.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; background: var(--rot); color: #fffaf6; font: 750 1.05rem/1 var(--schrift); text-decoration: none; border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(120, 30, 20, .55); transition: transform .2s var(--weich), background-color .25s, box-shadow .25s; }
.knopf:hover { transform: translateY(-2px); background: var(--rot-hell); box-shadow: 0 16px 30px -14px rgba(120, 30, 20, .6); }
.knopf:active { transform: translateY(0) scale(.98); }
.knopf:disabled { opacity: .5; cursor: default; }
.knopf-klein { min-height: 44px; padding: 0 20px; font-size: .95rem; }
.knopf-satz { font-size: var(--s-klein); color: var(--leise); margin-top: 10px; }

/* ───── Kopfzeile ───── */
.leiste { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px; display: flex; align-items: center; gap: clamp(12px, 2.4vw, 34px); padding-inline: var(--rand); }
.marke { display: inline-flex; align-items: center; gap: 10px; font: 850 1.12rem/1 var(--schrift); letter-spacing: .1em; text-decoration: none; min-height: 44px; margin-right: auto; }
.marke small { font: 500 .85rem/1 var(--schrift); letter-spacing: 0; color: var(--leise); }
.marke-ballon { width: 18px; height: 22px; border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%; background: linear-gradient(90deg, var(--rot) 0 30%, var(--orange) 30% 70%, var(--rot) 70%); }
.leiste { transition: background-color .3s, box-shadow .3s; }
.leiste.fest { background: var(--nebel); box-shadow: 0 1px 0 rgba(27, 35, 64, .1); }
.leiste-nav { display: flex; gap: clamp(14px, 2vw, 28px); }
.leiste-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: .98rem; text-decoration: none; background: linear-gradient(var(--rot), var(--rot)) 0 78% / 0 2px no-repeat; transition: background-size .35s var(--weich); }
.leiste-nav a:hover { background-size: 100% 2px; }

/* ───── Bühne ───── */
.bahn { position: relative; background: #e9e4e0; }
.buehne { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; }
.welt { position: absolute; left: 50%; top: 50%; width: max(100%, calc(100svh * 1.7911)); aspect-ratio: 2400 / 1340; transform: translate(var(--fx, -50%), -50%) scale(1.08); }
.ebene { position: absolute; inset: 0; width: 100%; height: 100%; }
.e-licht { background: radial-gradient(70% 60% at 88% 48%, rgba(255, 196, 120, .5), rgba(255, 160, 90, 0) 70%), linear-gradient(to bottom, rgba(255, 214, 170, .22), rgba(255, 214, 170, 0) 60%); opacity: .15; pointer-events: none; }
.ballon { position: absolute; left: 47%; top: 40.5%; width: 6.2%; aspect-ratio: 900 / 1300; transform-origin: 50% 50%; }
.ballon img { width: 100%; height: 100%; }
.ballon-flamme { position: absolute; left: 32%; top: 66%; width: 36%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 232, 170, .95) 0, rgba(255, 150, 50, .75) 30%, rgba(255, 90, 20, 0) 70%); opacity: 0; pointer-events: none; }
.schleier { position: absolute; inset: -10% 0 0 0; background: linear-gradient(to bottom, rgba(241, 239, 236, 0) 0, rgba(241, 239, 236, .92) 18%, var(--nebel) 34%); transform: translate3d(0, 105%, 0); pointer-events: none; }
.buehne::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 46%; background: linear-gradient(to bottom, rgba(250, 238, 226, .55), rgba(250, 238, 226, 0)); pointer-events: none; }
.texte { position: absolute; z-index: 2; left: var(--rand); top: clamp(104px, 17vh, 170px); width: min(580px, 40vw); }
.kapitel h2 { font-size: var(--s-gross); margin-bottom: .35em; }
.kapitel p { color: #2b3350; font-weight: 500; }
.vorspann { font-size: clamp(1.05rem, 1.3vw, 1.2rem); margin-top: 18px; max-width: 30em; }
.knopf-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.knopf-zeile .knopf-satz { margin: 0; max-width: 16em; }
.kapitel .knopf { margin-top: 24px; }
.messer { position: absolute; z-index: 2; right: var(--rand); bottom: clamp(24px, 6vh, 60px); display: flex; gap: 22px; padding: 10px 18px; border-radius: 16px; background: rgba(241, 239, 236, .9); text-align: right; color: var(--tinte); }
.messer p { display: grid; }
.messer-zahl { font: 500 clamp(1.4rem, 2.2vw, 2rem)/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.messer-name { font-size: var(--s-klein); color: var(--leise); }
.brenner { position: absolute; z-index: 2; left: var(--rand); bottom: clamp(24px, 6vh, 60px); display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: rgba(241, 239, 236, .85); color: var(--tinte); font: 650 .92rem/1 var(--schrift); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.brenner[hidden] { display: none; }
.brenner-punkt { width: 14px; height: 14px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(242, 154, 46, .25); transition: box-shadow .2s, background-color .2s; }
.brennt .brenner-punkt { background: #ffb347; box-shadow: 0 0 0 8px rgba(242, 154, 46, .35), 0 0 18px #ff8a1f; }

/* bis zum ersten Zeichnen und bis alle Ebenen geladen sind: Szene verborgen, dann als Ganzes einblenden */
html.js:not(.bereit) .ballon { visibility: hidden; }
.welt { transition: opacity .6s ease-out; }
html.js:not(.bilder) .welt { opacity: 0; }

html.bewegt .bahn { height: 500vh; height: 500svh; }
html.bewegt .buehne { position: sticky; top: 0; cursor: grab; }
html.bewegt .buehne.brennt { cursor: grabbing; }
html.bewegt .kapitel { position: absolute; left: 0; top: 0; width: 100%; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .35s, transform .5s var(--weich), visibility 0s .35s; }
html.bewegt .buehne[data-kap="0"] .k0, html.bewegt .buehne[data-kap="1"] .k1, html.bewegt .buehne[data-kap="2"] .k2, html.bewegt .buehne[data-kap="3"] .k3 { opacity: 1; visibility: visible; transform: none; transition: opacity .5s .14s, transform .6s var(--weich) .14s, visibility 0s; }
html.bewegt .buehne[data-kap="4"] .messer, html.bewegt .buehne[data-kap="4"] .brenner { opacity: 0; transition: opacity .4s; }
/* ruhige Fassung und ohne JavaScript: Bild oben, alle Kapitel darunter */
html:not(.bewegt) .buehne { height: auto; min-height: 0; padding-top: max(380px, min(78vh, 56vw)); }
html:not(.bewegt) .welt { top: calc(max(380px, min(78vh, 56vw)) / 2); width: max(100%, calc(max(380px, min(78vh, 56vw)) * 1.7911)); }
html:not(.bewegt) .buehne::after, html:not(.bewegt) .buehne::before { display: none; }
html:not(.bewegt) .texte { position: relative; left: 0; top: 0; right: auto; bottom: auto; width: auto; max-width: 1600px; margin-inline: auto; padding: 48px var(--rand) 40px; display: grid; gap: 40px; background: var(--nebel); }
html:not(.bewegt) .messer, html:not(.bewegt) .schleier { display: none; }
html:not(.bewegt) .bahn { padding-bottom: 20px; }
html:not(.bewegt) .ballon { visibility: visible; }

/* ───── Strecke ───── */
.strecke { position: relative; background: linear-gradient(to bottom, var(--nebel) 0, var(--pfirsich) 100%); }
.strecke-buehne { padding-block: 40px var(--luft); }
html.bewegt .strecke { height: 260vh; height: 260svh; }
html.bewegt .strecke-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-rows: auto 1fr auto; align-content: center; padding-block: 104px 34px; }
.strecke-kopf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(30px, 6vw, 110px); align-items: end; }
.strecke-kopf h2 { margin: 0; }
.strecke-kopf p { color: var(--leise); font-size: var(--s-mittel); line-height: 1.4; }
.panorama { position: relative; height: clamp(260px, 52svh, 560px); margin-top: clamp(20px, 4vh, 40px); overflow: hidden; }
.panorama-bahn { position: absolute; left: 0; top: 0; height: 100%; aspect-ratio: 3000 / 654; }
.panorama-bahn img { width: 100%; height: 100%; }
html:not(.bewegt) .panorama { overflow-x: auto; }
.panorama-ballon { position: absolute; left: 0; top: 4%; height: 32%; width: auto; filter: drop-shadow(0 10px 14px rgba(27, 35, 64, .25)); }
html:not(.bewegt) .panorama-ballon { left: 60%; }
.strecke-zahl { margin-top: 18px; font-size: var(--s-klein); color: var(--leise); }
.strecke-zahl span { font: 500 var(--s-gross)/1 var(--mono); color: var(--tinte); font-variant-numeric: tabular-nums; margin-right: 8px; }

/* ───── Ein Morgen ───── */
.morgen { background: var(--tinte); color: #f4f1ee; }
.morgen :focus-visible { outline-color: #fff; }
.morgen-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(30px, 7vw, 120px); align-items: start; }
.morgen-kopf { position: sticky; top: 120px; }
.morgen-kopf p { color: var(--hell-leise); font-size: var(--s-mittel); line-height: 1.45; }
.steig { position: relative; height: clamp(220px, 34vh, 380px); margin-top: 34px; width: 120px; }
.steig-linie { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.steig-linie i { position: absolute; inset: 0; background: var(--orange); transform-origin: 50% 100%; transform: scaleY(1); }
.steig-ballon { position: absolute; left: 50%; bottom: 0; width: 64px; height: auto; margin-left: -32px; }
.uhrzeiten { display: grid; gap: clamp(28px, 5vh, 50px); }
.uhrzeiten li { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: 20px; align-items: baseline; }
.uhrzeiten time { font: 500 1.35rem/1.2 var(--mono); color: var(--orange); font-variant-numeric: tabular-nums; }
.uhrzeiten h3 { margin-bottom: .3em; }
.uhrzeiten p { color: var(--hell-leise); }
html.js.bewegt .uhrzeiten li { opacity: .32; transform: translateY(10px); transition: opacity .5s, transform .6s var(--weich); }
html.js.bewegt .uhrzeiten li.an { opacity: 1; transform: none; }

/* ───── Fahrten und Rechner ───── */
.fahrten { background: var(--nebel); }
.fahrten-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(30px, 6vw, 110px); align-items: start; }
.fahrten-kopf p { color: var(--leise); }
.fahrt-wahl { border: 0; display: grid; }
.fahrt { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; padding: 24px 20px 24px 56px; border-bottom: 2px solid rgba(27, 35, 64, .12); cursor: pointer; border-radius: 14px; transition: background-color .25s; }
.fahrt:hover { background: rgba(27, 35, 64, .04); }
.fahrt input { position: absolute; left: 18px; top: 28px; width: 22px; height: 22px; margin: 0; accent-color: var(--rot); cursor: pointer; }
.fahrt-name { font-size: var(--s-mittel); font-weight: 800; }
.fahrt-preis { font: 500 1rem/1.4 var(--mono); color: var(--rot); text-align: right; white-space: nowrap; }
.fahrt-text { grid-column: 1 / -1; color: var(--leise); }
.fahrt:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 2px var(--rot); border-bottom-color: transparent; }
.personen { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.personen-name { font-weight: 700; margin-right: auto; }
.stufe { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--tinte); background: transparent; color: var(--tinte); font: 600 1.4rem/1 var(--schrift); cursor: pointer; transition: background-color .2s, color .2s; }
.stufe:hover:not(:disabled) { background: var(--tinte); color: var(--nebel); }
.stufe:disabled { opacity: .3; cursor: default; }
.personen-zahl { min-width: 2ch; text-align: center; font: 500 1.6rem/1 var(--mono); }
.summe { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 22px 0 24px; padding-top: 20px; border-top: 2px solid var(--tinte); max-width: none; }
.summe span { font-weight: 700; }
.summe b { font: 600 clamp(2rem, 3.6vw, 3rem)/1 var(--mono); color: var(--rot); font-variant-numeric: tabular-nums; }

/* ───── Fragen ───── */
.fragen { background: var(--pfirsich); }
.fragen-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(30px, 6vw, 110px); align-items: start; }
details { border-bottom: 2px solid rgba(27, 35, 64, .14); }
summary { position: relative; list-style: none; cursor: pointer; padding: 22px 54px 22px 0; font-size: var(--s-mittel); font-weight: 750; line-height: 1.3; }
summary::-webkit-details-marker { display: none; }
summary::before, summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 20px; height: 3px; margin-top: -1.5px; border-radius: 3px; background: var(--rot); transition: transform .35s var(--weich); }
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: rotate(0deg); }
details p { padding: 0 54px 24px 0; color: #3a4260; }

/* ───── Anfrage ───── */
.anfrage { position: relative; padding-block: var(--luft); background: var(--tinte); color: #f4f1ee; overflow: hidden; }
.anfrage-grund { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; object-fit: cover; object-position: 50% 0; opacity: .75; }
.anfrage::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, var(--tinte) 30%, rgba(27, 35, 64, .55) 100%); }
.anfrage-raster { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 110px); align-items: start; }
.anfrage-kopf p { color: var(--hell-leise); font-size: var(--s-mittel); line-height: 1.45; }
.formular { background: var(--nebel); color: var(--tinte); padding: clamp(22px, 3vw, 38px); border-radius: 22px; }
.formular .eingabe { margin-bottom: 14px; }
.eingabe label { display: block; font-weight: 700; font-size: .98rem; margin-bottom: 6px; }
.eingabe small { font-weight: 400; color: var(--leise); }
.formular input, .formular textarea { width: 100%; min-height: 52px; padding: 13px 15px; background: #fff; border: 2px solid rgba(27, 35, 64, .22); border-radius: 12px; color: var(--tinte); font: 500 1rem/1.4 var(--schrift); }
.formular textarea { resize: vertical; }
.formular input::placeholder { color: #7d849a; }
.formular input:focus-visible, .formular textarea:focus-visible { outline: 3px solid var(--rot); outline-offset: 1px; border-color: var(--rot); }
.formular [aria-invalid="true"] { border-color: #b3261e; }
.feldpaar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feld-fehler { min-height: 1.3em; margin-top: 4px; font-size: var(--s-klein); color: #a32019; }
.formular .knopf { margin-top: 6px; }
.formular-meldung { margin-top: 12px; font-weight: 700; color: var(--rot); }
.formular-meldung:empty { display: none; }

/* ───── Fußzeile ───── */
.fuss { background: #141a31; color: #e9e6f0; }
.fuss-raster { display: grid; grid-template-columns: 1.3fr 1fr auto 1.2fr; gap: 30px clamp(24px, 4vw, 70px); padding-block: 48px 56px; font-size: .96rem; }
.fuss-raster a { text-underline-offset: 3px; }
.fuss-raster p { line-height: 1.9; }
.fuss-klein { color: #b9bfd3; }
.fuss :focus-visible { outline-color: #fff; }
.zeichen-liste { display: flex; gap: 4px; align-items: flex-start; }
.zeichen-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; transition: background-color .25s, color .25s; }
.zeichen-link:hover { background: rgba(242, 154, 46, .18); color: var(--orange); }
.zeichen { width: 22px; height: 22px; }

/* ───── Rechtliches ───── */
.recht-seite .leiste { position: static; }
.recht { max-width: 780px; margin: 0 auto; padding: 40px var(--rand) 90px; }
.recht h1 { font-size: var(--s-gross); margin-bottom: .6em; }
.recht h2 { font-size: var(--s-mittel); margin: 2em 0 .5em; overflow-wrap: break-word; }
.recht p { margin-bottom: 1em; }
.recht dl { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 8px 20px; margin: 0; }
.recht dt { font-weight: 700; } .recht dd { margin: 0; }
.hinweis-kasten { padding: 16px 20px; border-radius: 14px; background: var(--pfirsich); }
.fuss-recht .rand { padding-block: 30px; }

/* ───── Schmal ───── */
@media (max-width: 900px) {
  .leiste-nav { display: none; }
  .marke small { display: none; }
  .strecke-kopf, .morgen-raster, .fahrten-raster, .fragen-raster, .anfrage-raster { grid-template-columns: minmax(0, 1fr); }
  .morgen-kopf { position: static; }
  .steig { display: none; }
  .fuss-raster { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px), (max-aspect-ratio: 9/10) {
  .welt { --fx: -44%; }
  .texte { top: auto; bottom: clamp(96px, 16vh, 150px); width: auto; right: var(--rand); }
  html.bewegt .kapitel { top: auto; bottom: 0; }
  .buehne::before { content: ""; position: absolute; z-index: 1; inset: 40% 0 0 0; background: linear-gradient(to bottom, rgba(241, 239, 236, 0), rgba(241, 239, 236, .78) 46%, rgba(241, 239, 236, .9)); pointer-events: none; }
  .messer { gap: 14px; top: 76px; bottom: auto; right: 12px; padding: 6px 12px; }
  .messer-zahl { font-size: 1.05rem; }
  .ballon { left: 41%; top: 27%; width: 5.4%; }
  .brenner { bottom: clamp(24px, 6vh, 60px); }
  html:not(.bewegt) .buehne::before { display: none; }
}
@media (max-width: 560px) {
  .feldpaar, .fuss-raster { grid-template-columns: 1fr; }
  .leiste { gap: 8px; height: 64px; }
  .knopf-zeile .knopf-satz { max-width: none; }
  .fahrt { grid-template-columns: minmax(0, 1fr); padding-left: 52px; }
  .fahrt-preis { text-align: left; }
  .vorspann { margin-top: 12px; }
  .brenner { font-size: .85rem; }
}
/* klein und flach (z. B. 640 × 440) */
@media (max-height: 560px) and (min-width: 561px) {
  .welt { --fx: -36%; }
  .texte { top: 84px; width: min(440px, 46vw); }
  html.bewegt h1 { font-size: clamp(1.7rem, 4.2vw, 2.4rem); }
  html.bewegt .kapitel h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
  html.bewegt .vorspann, html.bewegt .kapitel p { font-size: .95rem; line-height: 1.45; margin-top: 8px; }
  html.bewegt .knopf-zeile { margin-top: 12px; }
  html.bewegt .knopf-zeile .knopf-satz { display: none; }
  html.bewegt .kapitel .knopf { margin-top: 10px; min-height: 46px; }
  .messer-zahl { font-size: 1.15rem; }
  html.bewegt .strecke-buehne { padding-block: 80px 20px; }
  .strecke-kopf p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
