/* Wir kaufen dein Biogas – Gestaltung. Glas über einer endlosen Landschaftsfahrt. */
:root {
  --nacht: #01241c; --nt: #003529; --mint: #bfe8da; --mint2: #e6f6f0; --gruen: #2fa365; --gruen2: #49c07f;
  --sonne: #ffc98a; --weiss: #fff; --text: #eef7f3; --leise: rgba(238, 247, 243, .72);
  --glas: rgba(6, 34, 27, .38); --glas2: rgba(4, 26, 21, .74); --rand: rgba(255, 255, 255, .2);
  --schrift: "Segoe UI Variable Display", "Segoe UI Variable Text", "SF Pro Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 18px; --zeit: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--nacht); color: var(--text); font-family: var(--schrift); -webkit-font-smoothing: antialiased; }
body { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 10px; }

/* ---------- Bühne: Video ---------- */
.buehne { position: fixed; inset: 0; overflow: hidden; background: #2b3b2a url(../video/poster.jpg) center / cover; }
.buehne video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter 1.1s var(--zeit), transform 1.4s var(--zeit); }
.buehne::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(1, 26, 20, .42) 0%, rgba(1, 26, 20, 0) 22%, rgba(1, 26, 20, 0) 48%, rgba(1, 26, 20, .55) 78%, rgba(1, 26, 20, .82) 100%); }
body.offen .buehne video { filter: blur(7px) brightness(.72) saturate(1.15); transform: scale(1.05); }

/* ---------- Kopf im Himmel ---------- */
.kopf { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(14px, 3vw, 34px); }
.marken { display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .18); backdrop-filter: blur(10px); text-decoration: none; }
.marken img { height: 26px; width: auto; display: block; }
.marken .nt { height: 22px; width: auto; color: #111; display: block; }
.marken i { width: 1px; height: 24px; background: rgba(0, 0, 0, .18); }
.reiter { display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: var(--glas); border: 1px solid var(--rand);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); box-shadow: 0 10px 40px rgba(0, 0, 0, .15); }
.reiter button { position: relative; padding: 10px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 550; letter-spacing: .01em; color: var(--text); white-space: nowrap;
  transition: background .3s, color .3s; }
.reiter button:hover { background: rgba(255, 255, 255, .14); }
.reiter button.an { background: var(--weiss); color: var(--nt); }
.reiter button.kontakt { background: var(--mint); color: var(--nt); margin-left: 4px; }
.reiter button.kontakt:hover { background: var(--weiss); }
.menue { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--glas); border: 1px solid var(--rand); backdrop-filter: blur(18px); }
.menue svg { width: 20px; height: 20px; }

/* ---------- Bühnentext ---------- */
.held { position: fixed; z-index: 5; left: clamp(16px, 5vw, 72px); bottom: clamp(108px, 15vh, 170px); max-width: min(760px, 92vw); transition: opacity .8s var(--zeit), transform .8s var(--zeit); }
body.offen .held { opacity: 0; transform: translateY(18px); pointer-events: none; }
.augenbraue { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--mint); font-weight: 600; }
.augenbraue::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.held h1 { margin-top: 14px; font-size: clamp(42px, 7.2vw, 112px); line-height: .95; letter-spacing: -.035em; font-weight: 700; color: var(--weiss);
  text-shadow: 0 6px 40px rgba(0, 0, 0, .35); }
.held h1 .wort { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.held h1 .wort > span { display: inline-block; transform: translateY(105%); animation: hoch 1.1s var(--zeit) forwards; }
.held h1 em { font-style: normal; background: linear-gradient(100deg, var(--sonne), #fff 60%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes hoch { to { transform: none; } }
.held p { margin-top: 18px; font-size: clamp(16px, 1.45vw, 20px); line-height: 1.5; color: var(--leise); max-width: 600px; opacity: 0; animation: ein 1s .9s var(--zeit) forwards; }
.held .knoepfe { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; animation: ein 1s 1.1s var(--zeit) forwards; }
@keyframes ein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.knopf { display: inline-flex; align-items: center; gap: 10px; padding: 15px 22px; border-radius: 999px; font-weight: 600; font-size: 15.5px; text-decoration: none;
  transition: transform .3s var(--zeit), background .3s, box-shadow .3s; }
.knopf.voll { background: var(--weiss); color: var(--nt); box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }
.knopf.voll:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(0, 0, 0, .3); }
.knopf.glas { background: var(--glas); color: var(--weiss); border: 1px solid var(--rand); backdrop-filter: blur(16px); }
.knopf.glas:hover { background: rgba(255, 255, 255, .16); }
.knopf.gruen { background: var(--gruen); color: #fff; }
.knopf.gruen:hover { background: var(--gruen2); }
.knopf svg { width: 18px; height: 18px; }

/* ---------- Mitfahrende Etiketten ---------- */
.etiketten { position: fixed; inset: 0; z-index: 4; pointer-events: none; transition: opacity .6s; }
body.offen .etiketten { opacity: 0; }
.etikett { position: absolute; left: 0; top: 0; pointer-events: auto; will-change: transform, opacity; }
.etikett .punkt { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--weiss); box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); }
.etikett .punkt::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); animation: puls 2.4s infinite; }
@keyframes puls { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.etikett .linie { position: absolute; left: -.5px; bottom: 7px; width: 1px; height: 56px; background: linear-gradient(to top, rgba(255, 255, 255, .9), rgba(255, 255, 255, .15)); }
.etikett button { position: absolute; left: 0; bottom: 62px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; border-radius: 999px;
  background: var(--glas); border: 1px solid var(--rand); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--weiss); transition: background .3s, transform .3s var(--zeit); }
.etikett button:hover { background: rgba(255, 255, 255, .22); transform: translateX(-50%) translateY(-3px); }
.etikett button b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--weiss); color: var(--nt); font-size: 12.5px; }
.etikett button small { display: block; font-weight: 450; font-size: 12px; color: var(--leise); }

/* ---------- Fahrtleiste ---------- */
.leiste { position: fixed; z-index: 6; left: 50%; bottom: 40px; transform: translateX(-50%); width: min(560px, 46vw); transition: opacity .6s; }
body.offen .leiste { opacity: 0; pointer-events: none; }
.leiste .spur { position: relative; height: 2px; background: rgba(255, 255, 255, .22); border-radius: 2px; }
.leiste .stand { position: absolute; top: -5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--sonne); box-shadow: 0 0 18px var(--sonne); }
.leiste .halt { position: absolute; top: -4px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; border: 1.5px solid var(--weiss); background: var(--nacht);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--leise); transition: color .4s, background .4s; }
.leiste .halt span { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); white-space: nowrap; }
.leiste .halt:nth-child(3) span { bottom: auto; top: 16px; }
.leiste .halt.hier { color: var(--weiss); }
.leiste .halt.hier { background: var(--weiss); }

/* ---------- Fuß ---------- */
.fuss { position: fixed; z-index: 8; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 clamp(14px, 3vw, 34px) 20px; pointer-events: none; }
.fuss > * { pointer-events: auto; }
.recht { display: flex; gap: 18px; font-size: 13px; color: var(--leise); }
.recht button:hover { color: var(--weiss); }
.zugang { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; text-decoration: none;
  background: var(--glas); border: 1px solid var(--rand); backdrop-filter: blur(16px); color: var(--weiss); transition: background .3s; }
.zugang:hover { background: rgba(255, 255, 255, .18); }
.zugang svg { width: 16px; height: 16px; }

/* ---------- Glasfläche (Inhalte) ---------- */
.flaeche { position: fixed; z-index: 30; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); display: flex; flex-direction: column;
  background: var(--glas2); border-left: 1px solid var(--rand); backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%);
  transform: translateX(104%); transition: transform .9s var(--zeit); box-shadow: -30px 0 80px rgba(0, 0, 0, .3); }
body.offen .flaeche { transform: none; }
.flaeche .zu { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); z-index: 2; }
.flaeche .zu:hover { background: rgba(255, 255, 255, .2); }
.flaeche .zu svg { width: 18px; height: 18px; }
.inhalt { flex: 1; overflow-y: auto; padding: clamp(26px, 5vw, 64px) clamp(20px, 5vw, 60px) 80px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.teil { display: none; animation: ein .7s var(--zeit); }
.teil.an { display: block; }
.teil .augenbraue { margin-bottom: 14px; }
.teil h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1; letter-spacing: -.03em; font-weight: 700; color: var(--weiss); }
.teil h3 { margin: 40px 0 14px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--mint); font-weight: 650; }
.teil p { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--leise); }
.teil p.gross { font-size: 20px; color: var(--text); }
.teil strong { color: var(--weiss); font-weight: 600; }
.karten { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.karte { padding: 20px; border-radius: var(--r); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: background .3s, transform .3s var(--zeit); }
.karte:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.karte b { display: block; font-size: 17px; color: var(--weiss); margin-bottom: 6px; }
.karte span { font-size: 14.5px; line-height: 1.5; color: var(--leise); }
.karte .zahl span { font: inherit; color: inherit; }
.karte .zahl { display: block; font-size: 34px; font-weight: 700; letter-spacing: -.02em; color: var(--weiss); margin-bottom: 4px; }
.liste { list-style: none; display: grid; gap: 10px; }
.liste li { position: relative; padding-left: 28px; font-size: 16.5px; line-height: 1.5; color: var(--text); }
.liste li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(-45deg); }
.kette { list-style: none; counter-reset: k; display: grid; gap: 0; }
.kette li { counter-increment: k; position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 0 0 22px; }
.kette li::before { content: counter(k, decimal-leading-zero); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rand);
  font-size: 13px; font-weight: 650; color: var(--mint); background: rgba(255, 255, 255, .05); }
.kette li::after { content: ""; position: absolute; left: 21.5px; top: 46px; bottom: 2px; width: 1px; background: rgba(255, 255, 255, .16); }
.kette li:last-child::after { display: none; }
.kette b { display: block; font-size: 17px; color: var(--weiss); margin-top: 3px; }
.kette span { font-size: 15px; color: var(--leise); line-height: 1.5; }
.kette li.ziel::before { background: var(--mint); color: var(--nt); border-color: var(--mint); }
.weiter { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hinweis { margin-top: 26px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 201, 138, .1); border: 1px solid rgba(255, 201, 138, .3); font-size: 14px; line-height: 1.5; color: var(--sonne); }
.quelle { margin-top: 30px; font-size: 12.5px; color: rgba(238, 247, 243, .45); line-height: 1.5; }
.partner { display: grid; gap: 14px; }
.partner .karte { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; }
.partner .logo { height: 64px; border-radius: 12px; background: rgba(255, 255, 255, .92); display: grid; place-items: center; padding: 12px; }
.partner .logo img, .partner .logo svg { max-width: 100%; max-height: 32px; color: #111; }

/* Rechner */
.umschalter { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); margin-top: 22px; }
.umschalter button { padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--leise); }
.umschalter button.an { background: var(--weiss); color: var(--nt); }
.regler { margin-top: 22px; }
.regler label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--leise); }
.regler output { font-size: 28px; font-weight: 700; color: var(--weiss); letter-spacing: -.02em; }
.regler output small { font-size: 14px; font-weight: 500; color: var(--leise); margin-left: 4px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; margin-top: 14px; border-radius: 4px; background: rgba(255, 255, 255, .18); outline-offset: 8px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--weiss); box-shadow: 0 0 0 6px rgba(191, 232, 218, .25); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--weiss); box-shadow: 0 0 0 6px rgba(191, 232, 218, .25); cursor: grab; }
.ergebnis { margin-top: 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ergebnis .karte .zahl { font-variant-numeric: tabular-nums; }
.ergebnis .karte.haupt { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(191, 232, 218, .22), rgba(47, 163, 101, .18)); border-color: rgba(191, 232, 218, .35); }
.ergebnis .karte.haupt .zahl { font-size: 54px; }

/* Formular */
form.anfrage { margin-top: 26px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feld { display: flex; flex-direction: column; gap: 7px; }
.feld.breit { grid-column: 1 / -1; }
.feld span { font-size: 13px; color: var(--leise); }
.feld input, .feld select, .feld textarea { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06);
  color: var(--weiss); font: inherit; font-size: 15.5px; transition: border-color .3s, background .3s; }
.feld select option { color: #111; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: none; border-color: var(--mint); background: rgba(255, 255, 255, .1); }
.feld textarea { min-height: 110px; resize: vertical; }
.wahl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.wahl label { cursor: pointer; }
.wahl input { position: absolute; opacity: 0; }
.wahl span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); font-size: 14.5px; color: var(--text); transition: all .25s; }
.wahl input:checked + span { background: var(--weiss); color: var(--nt); border-color: var(--weiss); }
.wahl input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }
.zustimmung { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--leise); }
.zustimmung input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gruen); }
.antwort { grid-column: 1 / -1; padding: 14px 16px; border-radius: 12px; background: rgba(47, 163, 101, .18); border: 1px solid rgba(73, 192, 127, .4); color: var(--weiss); font-size: 15px; }

/* ---------- Anmeldung / Baustelle ---------- */
.mitte { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 90px 16px 90px; }
.glaskarte { width: min(460px, 100%); padding: clamp(26px, 4vw, 40px); border-radius: 26px; background: var(--glas2); border: 1px solid var(--rand);
  backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%); box-shadow: 0 30px 90px rgba(0, 0, 0, .35); animation: ein .9s var(--zeit); }
.glaskarte h1 { font-size: 34px; letter-spacing: -.02em; line-height: 1.05; color: var(--weiss); }
.glaskarte p { margin-top: 12px; color: var(--leise); line-height: 1.55; font-size: 15.5px; }
.glaskarte form { margin-top: 24px; display: grid; gap: 14px; }
.glaskarte .knopf { justify-content: center; width: 100%; }
.fehler { padding: 12px 14px; border-radius: 12px; background: rgba(255, 120, 100, .14); border: 1px solid rgba(255, 140, 120, .4); color: #ffd7cf; font-size: 14px; }
.baustelle { position: fixed; z-index: 5; left: clamp(16px, 5vw, 72px); bottom: clamp(90px, 14vh, 150px); max-width: min(820px, 92vw); }
.baustelle h1 { margin-top: 14px; font-size: clamp(42px, 7.2vw, 112px); line-height: .95; letter-spacing: -.035em; font-weight: 700; color: var(--weiss); text-shadow: 0 6px 40px rgba(0, 0, 0, .35); }
.baustelle .bald { margin-top: 22px; display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border-radius: 999px; background: var(--glas); border: 1px solid var(--rand);
  backdrop-filter: blur(16px); font-size: 15px; color: var(--weiss); }
.baustelle .bald i { width: 9px; height: 9px; border-radius: 50%; background: var(--sonne); box-shadow: 0 0 0 0 rgba(255, 201, 138, .7); animation: blink 2s infinite; }
@keyframes blink { 70% { box-shadow: 0 0 0 12px rgba(255, 201, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 201, 138, 0); } }

/* ---------- Schmal ---------- */
@media (max-width: 1100px) {
  .reiter button { padding: 9px 12px; font-size: 13.5px; }
}
@media (max-width: 920px) {
  .menue { display: grid; place-items: center; }
  .reiter { position: fixed; top: 76px; right: 14px; left: 14px; flex-direction: column; border-radius: 22px; padding: 10px; background: var(--glas2);
    opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .35s, transform .35s var(--zeit); }
  body.menue-auf .reiter { opacity: 1; transform: none; pointer-events: auto; }
  .reiter button { text-align: left; padding: 13px 16px; font-size: 16px; }
  .reiter button.kontakt { margin: 6px 0 0; text-align: center; }
  .leiste { display: none; }
  .karten, .ergebnis, form.anfrage { grid-template-columns: 1fr; }
  .partner .karte { grid-template-columns: 1fr; }
  .etikett button small { display: none; }
}
@media (max-width: 560px) {
  .marken { padding: 8px 14px; gap: 10px; }
  .marken img { height: 19px; }
  .marken .nt { height: 16px; }
  .recht { gap: 12px; font-size: 12px; }
  .held { bottom: 96px; }
  .etikett .linie { height: 34px; }
  .etikett button { bottom: 40px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  .buehne video { display: none; }
}
