/* The Qubes Bali · Landingpage Entwurf v2
   Farben und Schrift aus stories/marke.json. Mobil zuerst.
   Bewegung nur über transform und opacity; bei prefers-reduced-motion ist alles aus (Block am Ende). */

@font-face {
  font-family: "Jost"; font-weight: 300 700; font-display: swap;
  src: url("schrift/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost"; font-weight: 300 700; font-display: swap;
  src: url("schrift/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0;
}

:root {
  /* marke.json */
  --ivory: #f4f1ec;
  --sand: #ece8e1;
  --teal: #2e6658;
  --charcoal: #1c2421;
  --linie: #d6d3cd;
  --mint: #7fb09e;
  --weiss: #ffffff;
  --verlauf: 12, 18, 16;
  /* abgeleitet, nur für Verläufe und Flächen */
  --teal-tief: #234f44;
  --teal-nacht: #173a33;
  --nacht: #111816;
  --mint-hell: #a5d2c1;
  --sand-warm: #e6dccb;
  --text: #1c2421;
  --text-leise: #55605b;
  --rand: 22px;
  --radius: 20px;
  --schrift: "Jost", "Century Gothic", "Avenir Next", Avenir, sans-serif;
  --weich: cubic-bezier(.16, .8, .24, 1);
  /* weiche Tiefenschatten in drei Schichten */
  --schatten: 0 1px 2px rgba(var(--verlauf), .05), 0 10px 22px -10px rgba(var(--verlauf), .16), 0 38px 70px -34px rgba(var(--verlauf), .42);
  --schatten-hoch: 0 2px 4px rgba(var(--verlauf), .06), 0 18px 34px -12px rgba(var(--verlauf), .2), 0 60px 90px -36px rgba(var(--verlauf), .5);
  --bildhoehe: clamp(340px, 78vw, 720px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--schrift); font-size: 18px; line-height: 1.58; font-weight: 400;
  color: var(--text); background: var(--ivory);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset, legend { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.sprung {
  position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--weiss); color: var(--charcoal);
  padding: 10px 16px; border-radius: 10px; font-weight: 500;
}
.sprung:focus { top: 12px; }

/* ---------- Kopf ---------- */
.kopf {
  position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) var(--rand) 0;
}
.kopf-logo img { width: 150px; height: auto; filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .45)); }
.kopf-links { display: none; gap: 10px; }
.kopf-link {
  color: var(--weiss); text-decoration: none; font-weight: 500; font-size: 16px;
  padding: 10px 18px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px;
  background: rgba(var(--verlauf), .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background-color .3s ease;
}
.kopf-link:hover { background: rgba(255, 255, 255, .18); }
.kopf-link.voll { background: rgba(244, 241, 236, .94); color: var(--charcoal); border-color: transparent; }
.kopf-link.voll:hover { background: var(--weiss); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; max-height: 1100px;
  display: flex; align-items: flex-end; color: var(--weiss); background: var(--teal-nacht); overflow: hidden;
  --sy: 0; /* Scrollweg in px, setzt script.js */
}
/* Das Bild liegt auf ::before (atmet), der Träger wandert beim Scrollen langsamer als der Text (Parallax). */
.hero-bild { position: absolute; inset: 0; transform: translate3d(0, calc(var(--sy) * .32px), 0); will-change: transform; }
.hero-bild::before { content: ""; position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; }
/* Handy: eigene Hochformat-Ausschnitte. Ab Tablet quer: die breiten Fassungen. */
html[data-v="winter"] .hero-bild::before { background-image: url("bilder/schlafen-gartenblick-hoch.jpg"); background-position: 50% 50%; }
html[data-v="stadt"]  .hero-bild::before { background-image: url("bilder/haus-garten-schraeg-hoch.jpg"); background-position: 50% 100%; }
html[data-v="strand"] .hero-bild::before { background-image: url("bilder/haus-garten-links-hoch.jpg"); background-position: 50% 100%; }
@media (min-width: 700px) and (min-aspect-ratio: 1/1) {
  html[data-v="winter"] .hero-bild::before { background-image: url("bilder/schlafen-gartenblick-1800.jpg"); background-position: 60% 55%; }
  html[data-v="stadt"]  .hero-bild::before { background-image: url("bilder/haus-garten-schraeg-1800.jpg"); background-position: 50% 62%; }
  html[data-v="strand"] .hero-bild::before { background-image: url("bilder/haus-garten-links-1800.jpg"); background-position: 50% 50%; }
}
.js .hero-bild::before { animation: atmen 18s var(--weich) both; }
@keyframes atmen { from { transform: scale(1.09); } to { transform: scale(1); } }

.hero-verlauf {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--verlauf), .50) 0%, rgba(var(--verlauf), 0) 20%),
    linear-gradient(180deg, rgba(var(--verlauf), 0) 28%, rgba(var(--verlauf), .44) 50%, rgba(var(--verlauf), .86) 74%, rgb(17, 24, 22) 100%);
}
.hero-inhalt {
  position: relative; width: 100%; max-width: 1180px; margin: 0 auto;
  padding: 120px var(--rand) calc(30px + env(safe-area-inset-bottom));
  transform: translate3d(0, calc(var(--sy) * -.1px), 0); opacity: calc(1 - var(--sy) / 900); will-change: transform, opacity;
}
.variante { display: none; }
html[data-v="winter"] .variante[data-fuer="winter"],
html[data-v="stadt"] .variante[data-fuer="stadt"],
html[data-v="strand"] .variante[data-fuer="strand"] { display: block; }

h1 {
  font-size: clamp(2.6rem, 11.6vw, 5.4rem); line-height: 1.02; font-weight: 500; letter-spacing: -.022em;
  text-wrap: balance; text-shadow: 0 2px 26px rgba(var(--verlauf), .45); max-width: 14ch;
}
h1 em { font-style: normal; color: var(--mint-hell); display: block; }
h1.h1-zahl { font-size: clamp(1.72rem, 7.3vw, 3.3rem); line-height: 1.14; max-width: none; letter-spacing: -.012em; }
h1.h1-zahl .zahl { display: block; font-size: 2.1em; line-height: 1; letter-spacing: -.025em; margin-bottom: .12em; white-space: nowrap; }
h1.h1-zahl .zeile, h1.h1-zahl em { display: block; white-space: nowrap; }
.hero-text { margin-top: 18px; font-size: 1.12rem; line-height: 1.45; max-width: 34em; color: rgba(255, 255, 255, .94); }
.hero-hinweis { margin-top: 14px; font-size: .84rem; line-height: 1.45; color: rgba(255, 255, 255, .8); max-width: 40em; }

/* Sanfter Auftritt der Hero-Zeilen */
.js .hero-inhalt > * { animation: auftritt 1.3s var(--weich) both; }
.js .hero-inhalt > .knoepfe { animation-delay: .25s; }
.js .hero-inhalt > .hero-hinweis { animation-delay: .45s; }
@keyframes auftritt { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }

/* ---------- Knöpfe: zwei gleichwertige Wege ---------- */
.knoepfe { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 56px;
  padding: 14px 26px; border-radius: 999px; font: inherit; font-weight: 500; font-size: 1.06rem; line-height: 1.2;
  text-decoration: none; border: 0; cursor: pointer; color: var(--charcoal);
  transition: transform .35s var(--weich), box-shadow .35s var(--weich), filter .35s ease;
}
.knopf:hover { transform: translate3d(0, -2px, 0); }
.knopf:active { transform: translate3d(0, 0, 0) scale(.985); }
.knopf-haupt {
  background: linear-gradient(135deg, #fbf6ec 0%, #e9dcc6 100%);
  box-shadow: 0 10px 28px -8px rgba(var(--verlauf), .45), inset 0 1px 0 rgba(255, 255, 255, .85);
}
.knopf-haupt:hover { box-shadow: 0 18px 36px -10px rgba(var(--verlauf), .5), inset 0 1px 0 rgba(255, 255, 255, .85); }
.knopf-zwei {
  background: linear-gradient(135deg, #b9dfd0 0%, #86b8a5 100%);
  box-shadow: 0 10px 28px -8px rgba(var(--verlauf), .45), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.knopf-zwei:hover { box-shadow: 0 18px 36px -10px rgba(var(--verlauf), .5), inset 0 1px 0 rgba(255, 255, 255, .55); }
.knopf.voll { width: 100%; }
.knoepfe.mitte { align-items: stretch; }
.textknopf { background: none; border: 0; padding: 10px 6px; cursor: pointer; color: var(--teal-tief); font-weight: 500; text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Kurzleiste ---------- */
.leiste { background: linear-gradient(180deg, var(--nacht) 0%, var(--teal-nacht) 100%); color: var(--weiss); padding: 26px var(--rand) 22px; }
.leiste ul { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; max-width: 1180px; margin: 0 auto; }
.leiste li { border-left: 2px solid var(--mint); padding-left: 14px; }
.leiste b { display: block; font-size: 1.5rem; font-weight: 500; line-height: 1.15; }
.leiste span { display: block; font-size: .95rem; color: rgba(255, 255, 255, .8); line-height: 1.3; margin-top: 2px; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 76px 0; }
.innen { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--rand); }
.innen.schmal { max-width: 760px; }
.vorzeile { font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
h2 { font-size: clamp(2rem, 7.6vw, 3.3rem); line-height: 1.08; font-weight: 500; letter-spacing: -.02em; text-wrap: balance; margin-bottom: 20px; }
h3 { font-size: 1.3rem; font-weight: 500; line-height: 1.2; }
p { text-wrap: pretty; }
.text p + p, .schmal p + p { margin-top: 14px; }
.klein { font-size: .9rem; color: var(--text-leise); margin-top: 18px; }

/* Übergang dunkel nach hell: die Leiste läuft weich in den ersten Abschnitt aus */
.nach-dunkel {
  padding-top: 214px;
  background: linear-gradient(180deg, var(--teal-nacht) 0, #2b5f52 38px, #6f9a89 86px, #bccdbf 132px, #e6e6dc 170px, var(--ivory) 210px);
}
.aufruf + .abschnitt { padding-top: 30px; }

.zwei { display: grid; gap: 34px; }
.galerie { display: grid; gap: 18px; margin-top: 18px; }

.bild { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sand); box-shadow: var(--schatten); }
.bild img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bild.gross img { aspect-ratio: 4 / 4.4; }
.bild img.pos-unten { object-position: 50% 92%; }
figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 12px; font-size: .8rem; line-height: 1.3; color: rgba(255, 255, 255, .95);
  background: linear-gradient(180deg, rgba(var(--verlauf), 0) 0%, rgba(var(--verlauf), .78) 100%);
}
/* Bild ohne Kasten: läuft unten weich in die Seite aus */
.bild.weich { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.bild.weich .maske {
  overflow: hidden; border-radius: 28px 28px 0 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 60%, rgba(0, 0, 0, .5) 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 60%, rgba(0, 0, 0, .5) 82%, transparent 100%);
}
.bild.weich figcaption { position: static; background: none; color: var(--text-leise); padding: 0 4px; margin-top: -8px; }

/* Parallax in den Bildern: das Bild ist etwas größer als sein Rahmen und wandert leicht (--p setzt script.js) */
.js .par img { transform: translate3d(0, var(--p, 0px), 0) scale(1.14); will-change: transform; }

.punkte { margin-top: 22px; display: grid; gap: 12px; }
.punkte li { position: relative; padding-left: 30px; font-size: 1.08rem; }
.punkte li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 16px; height: 8px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg) translateY(-4px); }

/* Ein Tag bei dir */
.tag { display: grid; gap: 0; margin-top: 54px; border-top: 1px solid var(--linie); }
.tag li { display: grid; grid-template-columns: 6.2rem 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--linie); align-items: baseline; }
.tag b { font-weight: 500; font-size: 1.25rem; color: var(--teal); letter-spacing: -.01em; }
.tag span { font-size: 1.02rem; line-height: 1.5; }

/* Das Haus: hell nach dunkel, das Bild blendet oben aus dem hellen Grund ein und läuft unten in den Verlauf aus */
.dunkel {
  padding-top: 0; color: var(--weiss);
  background: linear-gradient(180deg, var(--ivory) 0, var(--ivory) calc(var(--bildhoehe) * .16), #e9ebe4 calc(var(--bildhoehe) * .34), #c3d0c6 calc(var(--bildhoehe) * .5), #7fa191 calc(var(--bildhoehe) * .7), var(--teal-nacht) var(--bildhoehe), var(--teal-tief) 72%, var(--teal) 100%);
}
.dunkel .vorzeile { color: var(--mint-hell); }
.vollbild {
  position: relative; margin-bottom: 40px; overflow: hidden;
  /* Weicher Einlauf (05.12., Wunsch Kostas): das Bild ragt etwas in den hellen Abschnitt und blendet über gut 40 % seiner Höhe in einer weichen Kurve ein */
  margin-top: calc(var(--bildhoehe) * -.07);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .02) 5%, rgba(0, 0, 0, .08) 10%, rgba(0, 0, 0, .19) 15%, rgba(0, 0, 0, .34) 20%, rgba(0, 0, 0, .52) 25%, rgba(0, 0, 0, .7) 30%, rgba(0, 0, 0, .85) 35%, rgba(0, 0, 0, .95) 40%, #000 46%);
  mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .02) 5%, rgba(0, 0, 0, .08) 10%, rgba(0, 0, 0, .19) 15%, rgba(0, 0, 0, .34) 20%, rgba(0, 0, 0, .52) 25%, rgba(0, 0, 0, .7) 30%, rgba(0, 0, 0, .85) 35%, rgba(0, 0, 0, .95) 40%, #000 46%);
}
.vollbild img { width: 100%; height: var(--bildhoehe); object-fit: cover; object-position: 50% 62%; }
.vollbild::after { content: ""; position: absolute; inset: auto 0 0 0; height: 52%; background: linear-gradient(180deg, rgba(23, 58, 51, 0) 0%, rgba(23, 58, 51, .6) 55%, var(--teal-nacht) 100%); pointer-events: none; }
.vollbild figcaption { z-index: 1; background: none; text-align: right; padding-right: var(--rand); }
.marken { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.marken li { padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .07); font-size: 1rem; }
.standard { margin-top: 26px; padding-left: 16px; border-left: 2px solid var(--mint-hell); font-size: 1.12rem; font-weight: 500; }

/* Aufrufe */
.aufruf { padding: 64px 0 160px; text-align: center; color: var(--weiss); background: linear-gradient(180deg, var(--teal) 0%, #36705f 46%, #7d9f8f 68%, #cfd0c0 87%, var(--ivory) 100%); }
.aufruf h2 { font-size: clamp(1.8rem, 6.6vw, 2.7rem); text-shadow: 0 1px 18px rgba(var(--verlauf), .28); }
.knapp {
  display: inline-block; margin-bottom: 22px; padding: 10px 18px; border-radius: 14px; font-size: 1rem; font-weight: 500; line-height: 1.35;
  background: rgba(var(--verlauf), .42); border: 1px solid rgba(255, 255, 255, .28);
}
.unterzeile { margin-top: 16px; font-size: .95rem; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 10px rgba(var(--verlauf), .35); }
.aufruf.hell { padding: 30px 0 96px; color: var(--text); background: linear-gradient(180deg, var(--sand) 0%, var(--sand-warm) 46%, #efe9df 78%, var(--ivory) 100%); }
.aufruf.hell h2 { text-shadow: none; }
.aufruf.hell p { max-width: 34em; margin: 0 auto; color: var(--text-leise); }

/* Lage */
.minuten { margin-top: 26px; display: grid; gap: 0; border-top: 1px solid var(--linie); }
.minuten div { display: grid; grid-template-columns: 7.2rem 1fr; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.minuten dt { font-size: 2.3rem; font-weight: 400; line-height: 1; color: var(--teal); letter-spacing: -.02em; white-space: nowrap; }
.minuten div:last-child dt { font-size: 1.6rem; }
.minuten dd { font-size: 1.02rem; line-height: 1.35; }
.minuten dd b { font-weight: 500; }

/* Preis */
.sand { background: linear-gradient(180deg, var(--ivory) 0%, #f0ece5 40%, var(--sand) 100%); padding-bottom: 60px; }
.rechnung { margin: 8px 0 26px; background: var(--weiss); border-radius: var(--radius); padding: 8px 22px; box-shadow: var(--schatten); }
.rechnung div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--linie); font-size: 1.08rem; }
.rechnung span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rechnung .summe { border-bottom: 0; font-weight: 500; font-size: 1.2rem; }
.rechnung .summe span:last-child { font-size: 1.9rem; color: var(--teal); letter-spacing: -.01em; }

/* Team */
.kopfzeile { max-width: 760px; }
.team { display: grid; gap: 18px; margin-top: 14px; }
.team li { background: var(--weiss); border-radius: var(--radius); padding: 26px 24px 24px; box-shadow: var(--schatten); }
.team img, .kreis { width: 96px; height: 96px; border-radius: 50%; margin-bottom: 16px; object-fit: cover; box-shadow: 0 10px 22px -10px rgba(var(--verlauf), .45); }
.kreis { display: flex; align-items: center; justify-content: center; font-size: 1.7rem; font-weight: 500; letter-spacing: .04em; color: var(--weiss); background: linear-gradient(140deg, var(--mint) 0%, var(--teal) 100%); }
.rolle { color: var(--teal); font-size: .95rem; font-weight: 500; margin-top: 2px; }
.zitat { margin-top: 12px; color: var(--text-leise); font-size: 1.02rem; }
.textlink { display: inline-block; margin-top: 16px; padding: 6px 0; font-weight: 500; color: var(--teal-tief); text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.textlink:hover { color: var(--teal); }
.textlink.hell { color: var(--weiss); }
.textlink.hell:hover { color: var(--mint-hell); }

/* Gut zu wissen: läuft hell an und geht unten in den Kontaktbereich über */
.wissen { background: linear-gradient(180deg, var(--ivory) 0%, var(--sand) 34%, var(--sand) 100%); padding-bottom: 40px; }
.ehrlich { counter-reset: nr; display: grid; gap: 18px; margin-top: 6px; }
.ehrlich li { counter-increment: nr; position: relative; padding-left: 54px; font-size: 1.05rem; }
.ehrlich li::before { content: counter(nr); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--teal); color: var(--teal); display: flex; align-items: center; justify-content: center; font-weight: 500; }
.ehrlich b { font-weight: 500; display: block; }

/* ---------- Kontakt: zwei Wege ---------- */
.kontakt {
  position: relative; overflow: hidden; padding: 300px 0 96px; color: var(--weiss);
  background: linear-gradient(180deg, var(--sand) 0, #cfd5c8 60px, #8fae9e 130px, #4f8271 200px, var(--teal) 280px, var(--teal-tief) 62%, var(--teal-nacht) 100%);
}
/* weiches Licht, das langsam wandert (nur transform) */
.licht { position: absolute; left: 50%; top: 300px; width: 900px; height: 900px; margin-left: -200px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(165, 210, 193, .26) 0%, rgba(165, 210, 193, 0) 100%); }
.js .licht { animation: wandern 22s ease-in-out infinite alternate; will-change: transform; }
@keyframes wandern { from { transform: translate3d(-160px, -60px, 0) scale(1); } to { transform: translate3d(60px, 120px, 0) scale(1.15); } }
.kontakt .innen { position: relative; }
.kontakt .vorzeile { color: var(--mint-hell); }
.wege { display: grid; gap: 16px; margin-top: 4px; }
.wege li { padding-left: 18px; border-left: 2px solid var(--mint-hell); color: rgba(255, 255, 255, .92); }
.wege b { display: block; font-weight: 500; color: var(--weiss); font-size: 1.12rem; }
.wa { margin-top: 20px; }

.karte { background: var(--ivory); color: var(--text); border-radius: 26px; padding: 14px 14px 22px; box-shadow: var(--schatten-hoch); scroll-margin-top: 20px; }
.wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 999px; background: #e3ded5; margin-bottom: 20px; }
.wahl button {
  min-height: 50px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 500; font-size: 1rem; color: var(--text-leise);
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.wahl button[aria-selected="true"] { background: var(--weiss); color: var(--charcoal); box-shadow: 0 6px 16px -8px rgba(var(--verlauf), .45); }
html:not(.js) .wahl { display: none; }
.feldgruppe { padding: 0 8px; }
.feldgruppe:focus { outline: none; }
html:not(.js) .feldgruppe + .feldgruppe { margin-top: 40px; }
.js .feldgruppe:not([hidden]) > :not([hidden]) { animation: wechsel .55s var(--weich) both; }
@keyframes wechsel { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
.karten-titel { font-size: 1.45rem; margin-bottom: 10px; letter-spacing: -.01em; }
.entwurf { display: inline-block; font-size: .85rem; font-weight: 500; padding: 6px 12px; border-radius: 8px; background: #f3e3b5; color: #4a3b0c; margin-bottom: 18px; }
.feld { margin-bottom: 16px; }
.feld-reihe { display: grid; gap: 0; }
label, legend { display: block; font-size: .95rem; font-weight: 500; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--text-leise); }
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%; height: 54px; padding: 0 16px; font: inherit; font-size: 1.05rem; color: var(--text);
  background: var(--weiss); border: 1.5px solid #b9b5ad; border-radius: 12px; transition: border-color .2s, box-shadow .2s;
}
input:focus-visible { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(127, 176, 158, .4); }
input[aria-invalid="true"] { border-color: #a23a2a; }
.haken { display: grid; grid-template-columns: 26px 1fr; gap: 4px 12px; align-items: start; margin: 6px 0 22px; }
.haken input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--teal); }
.haken label { font-weight: 400; font-size: .88rem; line-height: 1.45; color: var(--text-leise); margin: 0; }
.haken .fehler { grid-column: 2; }
.fehler { color: #a23a2a; font-size: .88rem; margin-top: 6px; }

/* Gesprächsart: zwei große Wahlkarten */
.arten { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.arten legend { grid-column: 1 / -1; margin-bottom: 10px; font-size: 1.02rem; }
.art { position: relative; }
.art input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.art label {
  display: flex; flex-direction: column; gap: 4px; height: 100%; margin: 0; padding: 18px 16px 16px; border-radius: 16px; cursor: pointer;
  background: var(--weiss); border: 1.5px solid #c9c5bc; color: var(--text);
  transition: border-color .25s ease, box-shadow .35s var(--weich), transform .35s var(--weich), background-color .25s ease;
}
.art label svg { color: var(--teal); margin-bottom: 8px; }
.art label b { font-weight: 500; font-size: 1.12rem; }
.art label span { font-weight: 400; font-size: .88rem; line-height: 1.35; color: var(--text-leise); }
.art input:checked + label { border-color: var(--teal); background: #eef5f1; box-shadow: 0 0 0 3px rgba(127, 176, 158, .35), 0 16px 28px -18px rgba(var(--verlauf), .5); transform: translate3d(0, -2px, 0); }
.art input:focus-visible + label { outline: 3px solid var(--mint); outline-offset: 3px; }
.zusage { margin: 16px 0 18px; font-size: .98rem; font-weight: 500; color: var(--teal-tief); }
.wunsch { margin: -6px 0 18px; font-size: .95rem; color: var(--text-leise); }
.wunsch b { font-weight: 500; color: var(--text); }

.danke { text-align: center; padding: 10px 2px 4px; }
.danke:focus { outline: none; }
.danke > img { margin: 0 auto 12px; }
.danke h3 { font-size: 1.6rem; margin-bottom: 8px; letter-spacing: -.01em; }
.danke > p { color: var(--text-leise); font-size: .98rem; }
.weiter { margin-top: 20px; padding: 20px 16px 18px; border-radius: 18px; text-align: center; background: linear-gradient(160deg, #e4efe9 0%, #f3ecdf 100%); border: 1px solid #d3ddd4; }
.weiter-titel { font-size: 1.22rem; font-weight: 500; line-height: 1.25; color: var(--text); }
.weiter-text { margin-top: 6px; font-size: .96rem; color: var(--text-leise); }
.weiter-knoepfe { display: grid; gap: 10px; margin-top: 16px; }
.weiter-knoepfe .knopf { min-height: 54px; padding: 12px 18px; }
.schon { margin-top: 18px; font-weight: 500; color: var(--teal-tief) !important; }
.danke .textknopf { margin-top: 8px; font-size: .95rem; }

/* Fuß */
.fuss { background: linear-gradient(180deg, var(--teal-nacht) 0, var(--nacht) 150px); color: rgba(255, 255, 255, .72); padding: 70px 0 130px; font-size: .86rem; line-height: 1.55; }
.fuss img { margin-bottom: 20px; opacity: .92; }
.fuss p { max-width: 62em; margin-bottom: 12px; }
.fuss nav { display: flex; gap: 22px; margin-top: 18px; }
.fuss a { color: var(--weiss); text-underline-offset: 4px; padding: 6px 0; }

/* Feste Leiste (Handy): beide Wege nebeneinander */
.fest {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 26px 14px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(var(--verlauf), 0) 0%, rgba(var(--verlauf), .78) 60%);
  transform: translate3d(0, 110%, 0); transition: transform .5s var(--weich); pointer-events: none;
}
.fest.an { transform: translate3d(0, 0, 0); pointer-events: auto; }
.fest .knopf { min-height: 52px; font-size: .98rem; padding: 10px 12px; }

/* ---------- Ruhiges Einblenden beim Scrollen ---------- */
.js .zeig { opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity 1.3s ease, transform 1.3s var(--weich); transition-delay: var(--verz, 0s); }
.js .zeig.da { opacity: 1; transform: none; }
.galerie .zeig:nth-child(2), .team .zeig:nth-child(2), .tag .zeig:nth-child(2) { --verz: .12s; }
.team .zeig:nth-child(3), .tag .zeig:nth-child(3) { --verz: .24s; }

/* ---------- Tiefe am Desktop: Karten heben und neigen sich mit der Maus ---------- */
@media (hover: hover) and (pointer: fine) {
  .js .neig.da, .js .da .neig {
    transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, var(--hub, 0px), 0);
    transition: opacity 1.3s ease, transform .7s var(--weich), box-shadow .7s var(--weich);
  }
  .js .neig.aktiv { transition-duration: 1.3s, .16s, .4s; box-shadow: var(--schatten-hoch); }
}

/* ---------- Weniger Bewegung gewünscht: alles aus ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .zeig { opacity: 1; transform: none; }
  .hero-bild, .hero-inhalt { transform: none; opacity: 1; }
  .js .par img { transform: none; }
  .js .neig.da, .js .da .neig, .knopf:hover, .art input:checked + label { transform: none; }
}

/* ---------- ab Tablet ---------- */
@media (min-width: 700px) {
  :root { --rand: 40px; --bildhoehe: clamp(420px, 54vw, 760px); }
  body { font-size: 19px; }
  .kopf-links { display: flex; }
  .kopf-logo img { width: 176px; }
  .knoepfe { flex-direction: row; flex-wrap: wrap; }
  .knoepfe.mitte { justify-content: center; }
  .leiste ul { grid-template-columns: repeat(4, 1fr); }
  .galerie { grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 26px; }
  .galerie .versetzt { margin-top: 46px; margin-bottom: -46px; }
  .tag { grid-template-columns: repeat(3, 1fr); gap: 34px; border-top: 0; margin-top: 120px; }
  .tag li { display: block; border-bottom: 0; border-top: 1px solid var(--linie); padding: 20px 0 0; }
  .tag b { display: block; margin-bottom: 8px; }
  .team { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .feld-reihe { grid-template-columns: 1fr 1fr; gap: 14px; }
  .karte { padding: 18px 18px 28px; }
  .feldgruppe { padding: 0 14px; }
  .weiter-knoepfe { grid-template-columns: 1fr 1fr; }
  .weiter-knoepfe .knopf:only-child { grid-column: 1 / -1; }
  .fest { display: none; }
  .fuss { padding-bottom: 54px; }
  .abschnitt { padding: 110px 0; }
  .nach-dunkel { padding-top: 270px; }
  .aufruf + .abschnitt { padding-top: 60px; }
  .dunkel { padding-top: 0; }
  .sand { padding-bottom: 70px; }
  .wissen { padding-bottom: 50px; }
  .aufruf { padding: 90px 0 200px; }
  .aufruf.hell { padding: 40px 0 120px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  .hero-inhalt { padding-bottom: 64px; }
  .hero-text { font-size: 1.25rem; }
  .zwei { grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
  .zwei.umgekehrt { grid-template-columns: 1.05fr 1fr; }
  .bild.gross img { aspect-ratio: 4 / 3.6; }
  .kontakt .zwei { grid-template-columns: 1fr 1fr; align-items: start; }
  .kontakt { padding: 340px 0 130px; }
  .kontakt .text { padding-top: 26px; }
}

/* =====================================================================================================
   v4-live · ZUSÄTZE. Alles oberhalb dieser Zeile ist unverändert v2. Hier steht nur, was neu dazukam:
   Frage-Setup in der Exposé-Karte, Einwilligungen, Fehleransicht, Kalender, Cookie-Hinweis, Testmarke,
   vierte Teamkarte. Gleiche Farben, Radien, Schatten und Übergangswerte wie v2.
   ===================================================================================================== */

/* ---------- Frage-Setup ---------- */
.hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.quiz-kopf { margin: 2px 0 20px; }
.quiz-zahl { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.quiz-leiste { height: 5px; border-radius: 999px; background: #e3ded5; overflow: hidden; }
.quiz-leiste span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--mint) 0%, var(--teal) 100%); transform-origin: 0 50%; transform: scaleX(var(--anteil, .1667)); transition: transform .7s var(--weich); }
.quiz-buehne { position: relative; }
.quiz-schritt { display: none; }
.quiz-schritt.aktiv { display: block; }
.quiz-schritt.mess { display: block !important; visibility: hidden; position: absolute; left: 0; right: 0; top: 0; animation: none !important; }
html:not(.js) .quiz-schritt { display: block; margin-bottom: 28px; }
.js .quiz-schritt.aktiv { animation: schritt-rein .55s var(--weich) both; }
.js .quiz-buehne[data-richtung="zurueck"] .quiz-schritt.aktiv { animation-name: schritt-rein-zurueck; }
.js .quiz-schritt.raus { animation: schritt-raus .2s ease both; }
.js .quiz-buehne[data-richtung="zurueck"] .quiz-schritt.raus { animation-name: schritt-raus-zurueck; }
@keyframes schritt-rein { from { opacity: 0; transform: translate3d(28px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes schritt-rein-zurueck { from { opacity: 0; transform: translate3d(-28px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes schritt-raus { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate3d(-22px, 0, 0); } }
@keyframes schritt-raus-zurueck { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate3d(22px, 0, 0); } }
.quiz-frage { font-size: 1.32rem; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 6px; text-wrap: balance; }
.quiz-frage:focus { outline: none; }
.quiz-unter { font-size: .95rem; color: var(--text-leise); margin-bottom: 16px; }
.antworten { display: grid; gap: 10px; }
.antwort {
  display: block; width: 100%; min-height: 58px; padding: 14px 18px; text-align: left; border-radius: 16px; cursor: pointer;
  font-size: 1.06rem; font-weight: 500; line-height: 1.25; background: var(--weiss); border: 1.5px solid #c9c5bc; color: var(--text);
  transition: border-color .25s ease, box-shadow .35s var(--weich), transform .35s var(--weich), background-color .25s ease;
}
.antwort:hover { border-color: var(--mint); }
.antwort[aria-checked="true"] { border-color: var(--teal); background: #eef5f1; box-shadow: 0 0 0 3px rgba(127, 176, 158, .35), 0 16px 28px -18px rgba(var(--verlauf), .5); transform: translate3d(0, -2px, 0); }
.quiz-fuss { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; min-height: 44px; }
.quiz-fuss .textknopf { font-size: .95rem; }

/* ---------- Kontaktschritt ---------- */
.telefon { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
select {
  height: 54px; padding: 0 10px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--weiss); border: 1.5px solid #b9b5ad; border-radius: 12px; transition: border-color .2s, box-shadow .2s;
}
select:focus-visible { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(127, 176, 158, .4); }
/* Einwilligungen (Aufbau wie Hauptseite: label.consent__box > input + span.consent__t) */
.consent { margin-top: 18px; }
.consent + .consent { margin-top: 12px; }
.consent__box { margin: 0; cursor: pointer; }
.consent__t { font-weight: 400; font-size: .86rem; line-height: 1.45; color: var(--text-leise); }
.consent__t a { color: var(--teal-tief); }
.consent__why { display: block; margin: 4px 0 0 38px; font-size: .8rem; color: var(--text-leise); }
.consent__err { margin-left: 38px; }
.consent input[aria-invalid="true"] { outline: 2px solid #a23a2a; outline-offset: 2px; }
#senden { margin-top: 24px; }
.knopf[disabled] { opacity: .65; cursor: progress; transform: none; }
.knopf-wa { background: #1f6f5c; color: var(--weiss); min-height: 50px; box-shadow: 0 10px 24px -12px rgba(var(--verlauf), .5); }
.sendefehler { margin-top: 22px; padding: 16px 18px 18px; border-radius: 16px; background: #fbeeea; border: 1.5px solid #d9a497; color: #5c1f14; }
.sendefehler:focus { outline: none; }
.sendefehler p { font-weight: 500; font-size: 1rem; line-height: 1.4; }
.sendefehler .knopf { margin-top: 12px; width: 100%; }

/* ---------- Kalender in der Gesprächs-Ansicht ---------- */
.kalender { margin-top: 16px; border-radius: 14px; overflow: hidden; background: var(--weiss); min-height: 300px; text-align: left; }
/* Ladezustand: Rahmen des Kalenders bleibt unsichtbar, bis er sich meldet (kein Fehlerbild, kein grauer Kasten) */
.kalender.laedt { position: relative; min-height: 180px; display: flex; align-items: center; justify-content: center; }
.kalender.laedt::before { content: "Kalender wird geladen …"; color: var(--teal); font-size: .98rem; letter-spacing: .01em; animation: kalender-puls 1.4s ease-in-out infinite; }
.kalender.laedt > * { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
@keyframes kalender-puls { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .kalender.laedt::before { animation: none; } }
.kalender-ersatz { margin-top: 10px; font-size: .92rem; }
.kalender-ersatz .textlink { margin: 0 0 0 6px; font-size: .92rem; }
.kalender-ersatz.gross { margin-top: 16px; }
.kalender-ersatz.gross .knopf { margin: 0; }

/* ---------- Cookie-Hinweis (Text wie Hauptseite) ---------- */
.cookie {
  position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 40;
  width: auto; max-width: 560px; max-height: 33vh; overflow-y: auto; margin: 0 auto; padding: 12px 14px 12px;
  background: var(--weiss); color: var(--text); border-radius: 16px; box-shadow: var(--schatten-hoch); font-size: .84rem; line-height: 1.4;
  transform: translate3d(0, calc(100% + 24px), 0); visibility: hidden; transition: transform .5s var(--weich), visibility 0s .5s;
}
.cookie p { text-wrap: wrap; }
.cookie.is-on { transform: none; visibility: visible; transition: transform .5s var(--weich), visibility 0s; }
.cookie a { color: var(--teal-tief); }
.cookie__pick { margin-top: 8px; display: grid; gap: 6px; }
.cookie__opt { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; font-weight: 400; font-size: .8rem; line-height: 1.35; margin: 0; }
.cookie__opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); }
.cookie__btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.cookie__btn { min-width: 0; min-height: 44px; padding: 6px 6px; border-radius: 999px; border: 1.5px solid #b9b5ad; background: var(--weiss); cursor: pointer; font-size: .82rem; font-weight: 500; line-height: 1.15; }
.cookie__btn.voll { background: var(--teal); border-color: var(--teal); color: var(--weiss); }
.fuss nav { flex-wrap: wrap; align-items: center; }
.fuss-knopf { background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--weiss); text-decoration: underline; text-underline-offset: 4px; font-size: inherit; }
.testmarke { position: fixed; left: 0; bottom: 0; margin: 0; z-index: 60; padding: 0 6px; border-radius: 0 6px 0 0; font-size: .62rem; line-height: 1.5; font-weight: 600; letter-spacing: .04em; background: #f3e3b5; color: #4a3b0c; pointer-events: none; }

/* ---------- Team: vier Karten im Stil von v2 ---------- */
.team .zeig:nth-child(4) { --verz: .36s; }
@media (min-width: 700px) { .team.vier { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .team.vier { grid-template-columns: repeat(4, 1fr); gap: 20px; } .team.vier li { padding: 26px 22px 24px; } }

@media (prefers-reduced-motion: reduce) { .antwort[aria-checked="true"] { transform: none; } }
