/* ATELIER Startseiten (de, en, es): Ort, Kamerafahrt, Preise, Ablauf, Fragen, Anfrage.
   Richtung D „Ort und Fächer“ (22.10.2026) im Look „Blaue Stunde“ (Relaunch 02.11.2026). Grundlage: grund.css.
   Alle Maße und Ausweichregeln der Karten im Ort sind aus den Prüfungen vom 27.10. und 02.11.2026 übernommen. */

/* ---------- Ort und Weg: Bühne steht, Held und Stationen laufen darüber ---------- */
.ortsfahrt { position: relative; }
.buehne {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; z-index: 0;
  /* Standbild derselben Szene in der blauen Stunde: steht sofort da und bleibt, wo es kein WebGL gibt */
  background: url(standbild.jpg) center / cover no-repeat, linear-gradient(180deg, #02070a 0%, #06243a 38%, #2b2a3c 56%, #8a4a3a 62%, #0d1418 64%, #070d11 100%);
}
/* Körnung auch über dem Ort, etwas schwächer: nimmt dem dunklen Himmel die Stufen */
.buehne::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: var(--korn); background-size: 256px; opacity: 0.08; }
.ort { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.ort.bereit { opacity: 1; }
.anker-ebene { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.anker-ebene > * {
  position: absolute; left: 0; top: 0; margin: 0;
  transform: translate3d(var(--x, -999px), var(--y, -999px), 0) translate(-50%, -100%);
  opacity: 0; transition: opacity 0.45s ease;
}
.anker-ebene > .rechts { transform: translate3d(var(--x, -999px), var(--y, -999px), 0) translate(26px, -58%); }
.anker-ebene > .links { transform: translate3d(var(--x, -999px), var(--y, -999px), 0) translate(calc(-100% - 26px), -58%); }
.anker-ebene > .sichtbar { opacity: 1; }

/* Bildschirme im Ort leuchten hell in der Nacht: Vorschau einer Kundenseite, Eintrag, Handy, neue Anfrage.
   Die Farbe kommt aus dem Fächer. */
.vorschau { width: 230px; filter: drop-shadow(0 0 22px rgba(2, 151, 222, 0.35)) drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55)); --farbe: #f2b705; --schrift: #102331; color: var(--schiefer); }
.vorschau::after { content: ""; position: absolute; left: 50%; bottom: -22px; width: 2px; height: 22px; background: var(--kalk); opacity: 0.7; }
/* --linie: so weit ist die Karte nach unten gerückt, damit sie oben nicht abgeschnitten wird (seite.js); die Linie bleibt am Punkt */
.vorschau.rechts::after, .eintrag.rechts::after { left: -24px; bottom: auto; top: max(10px, calc(58% - var(--linie, 0px))); width: 24px; height: 2px; }
.vorschau.links::after { left: auto; right: -24px; bottom: auto; top: max(10px, calc(58% - var(--linie, 0px))); width: 24px; height: 2px; }
/* Fest (schmale Bildschirme, ohne 3D): die Vorschau steht in .held direkt über dem Fächer und scrollt mit ihm */
.held > .vorschau.fest { position: absolute; z-index: 1; margin: 0; pointer-events: none; left: calc(47% + 220px); bottom: 332px; transform: translateX(-50%); }
.vorschau.fest::after { display: none; }

/* so breit wie die Wege-Knöpfe in einer Zeile (ES „Cómo llegar · WhatsApp · Sitio web“), mindestens 240 px */
.eintrag { width: max-content; min-width: 240px; max-width: calc(100vw - 32px); background: var(--kalk); color: var(--schiefer); border-radius: 12px; padding: 14px 16px 16px; display: grid; gap: 4px; box-shadow: 0 0 28px -4px rgba(2, 151, 222, 0.45), 0 22px 44px -22px rgba(0, 0, 0, 0.8); font-size: 14px; line-height: 1.35; }
.eintrag::after { content: ""; position: absolute; background: var(--kalk); opacity: 0.7; }
.eintrag strong { font-family: var(--f-schild); font-weight: 800; font-size: 22px; }
.eintrag-offen { color: #1d6b3a; font-weight: 600; }
.eintrag-wege { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.eintrag-wege span { white-space: nowrap; font-family: var(--f-schild); font-weight: 700; font-size: 15px; padding: 5px 10px 4px; border-radius: 999px; border: 1.5px solid rgba(16, 35, 49, 0.3); }
.vorschau-kopf { background: var(--farbe); color: var(--schrift); font-family: var(--f-schild); font-weight: 800; font-size: 21px; padding: 10px 14px 8px; border-radius: 9px 9px 0 0; transition: background-color 0.4s, color 0.4s; }
.vorschau-inhalt { background: var(--kalk); padding: 12px 14px 14px; border-radius: 0 0 9px 9px; display: grid; gap: 4px; font-size: 13px; line-height: 1.35; }
.vorschau-inhalt strong { font-family: var(--f-schild); font-size: 19px; font-weight: 750; }
.vorschau-knopf { justify-self: start; margin-top: 6px; background: var(--farbe); color: var(--schrift); font-family: var(--f-schild); font-weight: 750; font-size: 15px; padding: 6px 12px; border-radius: 5px; transition: background-color 0.4s, color 0.4s; }
.vorschau figcaption { font-size: 12px; color: var(--text-2); background: rgba(2, 7, 10, 0.78); display: inline-block; margin-top: 6px; padding: 1px 7px; border-radius: 4px; }

.handy { width: 168px; --farbe: #f2b705; --schrift: #102331; color: var(--schiefer); }
.handy-rahmen { background: #0b1117; border-radius: 26px; padding: 11px 9px 18px; box-shadow: 0 0 0 2px #2b3743 inset, 0 0 40px -6px rgba(2, 151, 222, 0.55), 0 24px 40px -14px rgba(0, 0, 0, 0.8); transform: perspective(700px) rotateY(-14deg) rotateX(6deg); }
.handy .vorschau-kopf { border-radius: 15px 15px 0 0; font-size: 17px; }
.handy .vorschau-inhalt { border-radius: 0 0 15px 15px; min-height: 160px; align-content: start; font-size: 12px; }

.anfrage-zettel { width: 220px; background: var(--kalk); color: var(--schiefer); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; font-size: 14px; line-height: 1.35; box-shadow: 0 0 30px -4px rgba(252, 115, 77, 0.5), 0 22px 44px -22px rgba(0, 0, 0, 0.8); border-top: 6px solid var(--orange); }
.anfrage-zettel strong { font-family: var(--f-schild); font-size: 20px; font-weight: 800; }

/* ---------- Held ---------- */
.held {
  position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; height: 100vh; height: 100svh; min-height: 640px; overflow: clip;
  padding: clamp(118px, 17vh, 176px) var(--rand) 0; pointer-events: none;
}
.held::before { /* Nacht hinter dem Text: so liest er sich auch über dem Ort */
  content: ""; position: absolute; inset: 0 auto 0 0; width: min(1100px, 82vw); pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 7, 10, 0.9) 0%, rgba(2, 7, 10, 0.78) 36%, rgba(2, 7, 10, 0.42) 54%, rgba(2, 7, 10, 0) 72%);
  /* Unten auslaufen: sonst zieht der Schleier beim Scrollen eine harte Kante quer durch den Ort (Prüfung 02.11.2026) */
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 140px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 140px), transparent);
}
.held::after { /* warmes Licht von unten, hinter dem Fächer: dieselbe Glut wie unten im Schimmer der Seite */
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 52%; pointer-events: none;
  background: radial-gradient(55% 100% at 64% 104%, rgba(252, 115, 77, 0.3), rgba(252, 115, 77, 0.1) 46%, rgba(252, 115, 77, 0) 74%);
}
.held-text { position: relative; max-width: 640px; pointer-events: auto; }
.held h1 { font-size: clamp(40px, 3.9vw, 62px); font-weight: 470; line-height: 1.04; letter-spacing: -0.018em; max-width: 17ch; }
.held h1 span { display: block; }
.held h1 span + span { margin-top: 0.1em; }
.held-unter { font-size: clamp(18px, 1.4vw, 21px); color: var(--text-2); max-width: 30em; margin-top: 24px; text-wrap: pretty; }
.held-knoepfe { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.held-klein { font-size: 15px; color: var(--text-3); margin-top: 18px; max-width: 32em; }
/* Zusagen unter den Knöpfen (EN, ES): drei kurze Sätze statt eines Absatzes, zum Überfliegen */
.held-zusagen { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; color: var(--text-2); }
.held-zusagen li { position: relative; padding-left: 26px; }
.held-zusagen li::before { content: ""; position: absolute; left: 2px; top: 0.32em; width: 13px; height: 7px; border-left: 2px solid var(--blau-licht); border-bottom: 2px solid var(--blau-licht); transform: rotate(-45deg); }

/* ---------- Der Fächer: Blätter drehen um eine Niete unterhalb des Bildrands ---------- */
.faecher-bereich { position: absolute; left: 47%; bottom: 0; width: 440px; height: 300px; pointer-events: auto; }
.faecher-frage { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; top: -18px; font-family: var(--f-schild); font-weight: 700; font-size: 21px; letter-spacing: 0.02em; color: var(--text); background: rgba(2, 7, 10, 0.72); border: 1px solid var(--linie-2); padding: 4px 12px 3px; border-radius: 7px; }
.faecher { position: absolute; left: 220px; bottom: -38px; width: 0; height: 0; perspective: 1100px; }
.blatt {
  --w: calc(-62.5deg + var(--i) * 25deg);
  position: absolute; left: -33px; bottom: -33px; width: 66px; height: 330px; padding: 0;
  transform-origin: 33px 297px; transform: rotate(-62.5deg);
  border: 0; border-radius: 33px 33px 33px 33px / 30px 30px 33px 33px; cursor: pointer;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, 0.14)), var(--farbe);
  color: var(--schrift);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset, 0 0 0 1px rgba(0, 0, 0, 0.5), 4px 6px 14px rgba(0, 0, 0, 0.55);
  transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i) * 70ms), box-shadow 0.25s;
}
.faecher.offen .blatt { transform: rotate(var(--w)); }
.faecher.offen .blatt:hover { transform: rotate(var(--w)) translateY(-12px); transition-delay: 0s; }
.faecher.offen .blatt[aria-pressed="true"] { transform: rotate(var(--w)) translateY(-34px); transition-delay: 0s; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3) inset, 0 0 0 2px var(--text), 0 0 26px -2px var(--farbe), 4px 10px 22px rgba(0, 0, 0, 0.6); }
.blatt:focus-visible { outline: 2px solid var(--blau-licht); outline-offset: 3px; }
/* links geneigte Blätter lesen von der Spitze zur Niete, rechts geneigte umgekehrt, so steht nichts auf dem Kopf */
.blatt-gewerk, .blatt-farbe { position: absolute; left: 50%; writing-mode: vertical-rl; transform: translateX(-50%); white-space: nowrap; }
.blatt:nth-of-type(n+4) .blatt-gewerk, .blatt:nth-of-type(n+4) .blatt-farbe { transform: translateX(-50%) rotate(180deg); }
.blatt-gewerk { top: 22px; font-family: var(--f-schild); font-weight: 800; font-size: 23px; letter-spacing: 0.02em; margin-left: -6px; }
/* 12 px und volle Deckkraft: so liegt jede Farbangabe bei mindestens 5,6 : 1 */
.blatt-farbe { top: 24px; font-size: 12px; margin-left: 13px; }
.niete { position: absolute; left: -15px; bottom: -15px; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #fff, #b9c1c7 42%, #5d666e 100%); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 14px rgba(2, 151, 222, 0.35); }

/* ---------- Stationen ---------- */
.weg { position: relative; z-index: 2; }
.weg-titel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stationen { list-style: none; margin: 0; padding: 0; }
.station { height: 100vh; height: 100svh; display: flex; align-items: center; padding: 0 var(--rand); }
.station-karte { width: min(440px, 100%); background: rgba(4, 11, 16, 0.84); border: 1px solid var(--linie); border-radius: 14px; padding: 26px 28px 24px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
@media (pointer: fine) { .station-karte { background: rgba(4, 11, 16, 0.7); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); } }
.station-nr { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: var(--nacht); font-family: var(--f-schild); font-weight: 800; font-size: 23px; box-shadow: 0 0 0 4px rgba(252, 115, 77, 0.16), 0 0 22px -2px rgba(252, 115, 77, 0.6); }
.station-karte h3 { font-size: clamp(30px, 2.6vw, 40px); font-weight: 500; margin: 16px 0 10px; }
.station-karte p { color: var(--text-2); }
.station-wir { font-size: 16px; color: var(--text-3); border-top: 1px solid var(--linie); padding-top: 12px; margin-top: 14px; }
.station-karte .station-wir { color: var(--text-3); }

/* ---------- Abschnitte darunter: der Grund ist die Nacht, Farbe kommt als Licht ---------- */
.abschnitt-kopf { max-width: var(--breite); margin: 0 auto; }
.abschnitt-kopf h2 { font-size: clamp(38px, 4.4vw, 66px); font-weight: 480; letter-spacing: -0.018em; max-width: 17ch; }
.abschnitt-kopf p { font-size: 19px; max-width: 36em; margin-top: 20px; color: var(--text-2); }

.ehrlich { position: relative; z-index: 1; padding: clamp(90px, 12vw, 160px) var(--rand) clamp(70px, 9vw, 120px); }
/* Weicher Übergang, wo die Bühne ausläuft: die Nacht zieht als Verlauf über das Ende des Orts */
.ehrlich::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: min(26vh, 240px); pointer-events: none; background: linear-gradient(180deg, rgba(2, 7, 10, 0), rgba(2, 7, 10, 0.62) 58%, var(--nacht)); }
.ehrlich::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 160px; pointer-events: none; background: linear-gradient(180deg, var(--nacht), rgba(2, 7, 10, 0)); z-index: -1; }
.ehrlich-innen { max-width: var(--breite); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px 64px; align-items: end; }
.ehrlich h2 { font-size: clamp(42px, 5.2vw, 80px); font-weight: 460; letter-spacing: -0.02em; max-width: 12ch; }
.ehrlich-text { font-size: 21px; line-height: 1.6; max-width: 32em; color: var(--text-2); }
.ehrlich-liste { grid-column: 1 / -1; list-style: none; margin: 30px 0 0; padding: 30px 0 0; border-top: 1px solid var(--linie-2); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; font-size: 17px; }
.ehrlich-liste li { padding-left: 24px; position: relative; }
.ehrlich-liste li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px; background: var(--orange); border-radius: 2px; box-shadow: 0 0 12px rgba(252, 115, 77, 0.7); }

/* Vergleich (EN): drei Wege nebeneinander, unsere Spalte hebt sich ab */
.vergleich { padding: clamp(70px, 9vw, 120px) var(--rand) clamp(40px, 6vw, 80px); }
.vergleich-tabelle { max-width: var(--breite); margin: 40px auto 0; overflow-x: auto; }
.vergleich table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; min-width: 640px; }
.vergleich th, .vergleich td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.vergleich td { color: var(--text-2); }
.vergleich thead th { font-family: var(--f-schild); font-weight: 750; font-size: 22px; letter-spacing: 0.02em; border-bottom: 1px solid var(--linie-3); }
.vergleich tbody th { font-weight: 600; width: 22%; }
.vergleich .wir { background: rgba(2, 151, 222, 0.08); color: var(--text); font-weight: 600; box-shadow: inset 3px 0 0 var(--blau); }
.vergleich thead .wir { background: var(--blau); color: var(--nacht); box-shadow: none; font-weight: 800; } /* sonst gewinnt .vergleich .wir über den Tabellenkopf */
/* Handy: jede Frage wird ein Block, die Antworten stehen untereinander, unsere hebt sich ab wie in der Tabelle.
   Die Rollen im HTML halten die Tabellen-Semantik für Screenreader, auch wenn die Zellen als Blöcke laufen. */
@media (max-width: 600px) {
  .vergleich-tabelle { overflow: visible; }
  .vergleich table, .vergleich tbody, .vergleich tr, .vergleich th, .vergleich td { display: block; }
  .vergleich table { min-width: 0; }
  .vergleich thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .vergleich tbody tr { padding: 20px 0 16px; border-bottom: 1px solid var(--linie); }
  .vergleich tbody tr:first-child { border-top: 1px solid var(--linie-3); }
  .vergleich tbody th { width: auto; padding: 0 0 8px; border: 0; font-size: 24px; font-weight: 500; line-height: 1.15; }
  .vergleich td { display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr); gap: 12px; padding: 9px 12px; border: 0; }
  .vergleich td::before { content: attr(data-spalte); content: attr(data-spalte) / ""; font-weight: 400; font-size: 15px; color: var(--text-3); }
  .vergleich td.wir::before { color: var(--text); font-weight: 600; }
}

/* ---------- Preise: drei Fächerblätter, in die Tiefe gestaffelt; Farbe nur im Kopf des Blatts ---------- */
.preise { position: relative; padding: clamp(90px, 11vw, 150px) var(--rand) clamp(60px, 8vw, 110px); }
.preis-faecher { max-width: var(--breite); margin: 64px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 14px; align-items: end; perspective: 1700px; perspective-origin: 50% 30%; }
.preis-blatt {
  position: relative; background: var(--glas-hauch); border: 1px solid var(--linie); border-radius: 18px 18px 34px 34px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 40px 70px -36px rgba(0, 0, 0, 0.95);
  transform-origin: 50% 100%; transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s;
}
.preis-blatt:nth-child(1) { transform: translateX(4px) translateZ(-80px) rotateY(13deg) rotateZ(-1.6deg); }
.preis-blatt:nth-child(3) { transform: translateX(-4px) translateZ(-80px) rotateY(-13deg) rotateZ(1.6deg); }
.preis-empfohlen { transform: translateY(-18px) translateZ(30px); z-index: 2; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 0 0 1px rgba(252, 115, 77, 0.35), 0 0 70px -18px rgba(252, 115, 77, 0.45), 0 40px 70px -36px rgba(0, 0, 0, 0.95); }
.preis-blatt:hover, .preis-blatt:focus-within { transform: translateY(-22px) translateZ(70px) rotateY(0) rotateZ(0); z-index: 3; }
.preis-feld { background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.1)), var(--farbe); color: var(--schrift, var(--text)); padding: 30px 30px 26px; }
.preis-hinweis { font-family: var(--f-schild); font-size: 17px; font-weight: 750; letter-spacing: 0.03em; margin-bottom: 8px; }
.preis-feld h3 { font-size: clamp(28px, 2.4vw, 36px); font-weight: 560; }
.preis-betrag { font-family: var(--f-schild); font-weight: 800; font-size: clamp(54px, 5vw, 72px); line-height: 1; margin-top: 16px; letter-spacing: 0.005em; }
.preis-betrag span { display: block; font-family: var(--f-text); font-weight: 500; font-size: 15px; margin-top: 6px; letter-spacing: 0; }
/* Längere Vorsilben („desde“) als kleine Zeile über dem Betrag, damit der Preis in einer Zeile bleibt */
.preis-betrag small { display: block; font-size: 0.4em; font-weight: 750; letter-spacing: 0.03em; margin-bottom: 2px; }
.preis-inhalt { padding: 24px 30px 78px; color: var(--text); }
.preis-fuer { font-size: 17px; color: var(--text-2); }
.preis-inhalt ul { list-style: none; padding: 0; margin: 18px 0 26px; font-size: 16px; }
.preis-inhalt li { position: relative; padding-left: 26px; margin: 9px 0; }
.preis-inhalt li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 12px; height: 12px; border-radius: 3px; background: var(--farbe); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 0 10px -1px var(--farbe); }
.preis-niete { position: absolute; left: 50%; bottom: 24px; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #fff, #b9c1c7 42%, #5d666e 100%); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }

.care { max-width: var(--breite); margin: 34px auto 0; display: grid; grid-template-columns: minmax(240px, 0.8fr) 2fr; background: var(--glas-hauch); border: 1px solid var(--linie); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.95); }
.care-feld { background: radial-gradient(130% 120% at 0% 100%, rgba(2, 151, 222, 0.55), rgba(2, 151, 222, 0.12) 70%), #08263a; color: var(--text); padding: 26px 28px; }
.care-feld h3 { font-size: 28px; font-weight: 540; }
.care-betrag { font-family: var(--f-schild); font-weight: 800; font-size: 40px; line-height: 1; margin-top: 14px; }
.care-betrag span { display: block; font-family: var(--f-text); font-size: 15px; font-weight: 500; margin-top: 8px; color: var(--text-2); }
.care-text { padding: 26px 30px; font-size: 17px; align-self: center; color: var(--text-2); }
.preise-fuss { max-width: var(--breite); margin: 26px auto 0; font-size: 15px; color: var(--text-3); }
.preise-fuss a, .ablauf-danach a, .anfrage-text a:not(.knopf), .fragen details a { color: var(--blau-licht); text-underline-offset: 3px; }

/* ---------- Ablauf: 14 Felder laufen als Weg in die Tiefe, das Ziel leuchtet ---------- */
.ablauf { position: relative; padding: clamp(80px, 10vw, 140px) var(--rand); }
.pfad { max-width: var(--breite); margin: 30px auto 0; height: 240px; perspective: 900px; perspective-origin: 30% 0%; }
.pfad-flaeche { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 10px; width: 100%; padding-top: 70px; transform: rotateX(62deg) rotateZ(-14deg) scale(0.92); transform-origin: 50% 70%; transform-style: preserve-3d; }
.stein {
  aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--f-schild); font-weight: 800; font-size: 26px; color: var(--text);
  background: linear-gradient(160deg, #13293a, #0a1720); box-shadow: 0 1px 0 rgba(160, 205, 230, 0.25) inset, 0 8px 0 #03080c, 0 16px 22px -6px rgba(0, 0, 0, 0.8);
  translate: 0 calc(sin(var(--n) * 0.55rad) * 26px);
}
.stein[data-abschnitt="1"], .stein[data-abschnitt="4"] { background: linear-gradient(160deg, #173a52, #0b1d29); }
.stein-ziel { background: var(--orange) !important; color: var(--nacht); box-shadow: 0 8px 0 var(--orange-kante), 0 0 40px -4px rgba(252, 115, 77, 0.75); }
.schritte { max-width: var(--breite); margin: 10px auto 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; }
.schritt-tage { font-family: var(--f-schild); font-weight: 750; font-size: 21px; letter-spacing: 0.03em; color: var(--blau-licht); }
.schritt h3 { font-size: 28px; font-weight: 520; margin: 8px 0 10px; }
.schritt p { font-size: 16px; color: var(--text-2); }
/* Betrieb vor Projekt (Janik 29.10.2026): nach den 14 Tagen läuft die Seite im Betrieb. Farbe wie das Care-Feld. */
.ablauf-danach { max-width: var(--breite); margin: 44px auto 0; padding: 16px 22px; background: rgba(8, 38, 58, 0.55); border: 1px solid rgba(2, 151, 222, 0.3); border-left: 4px solid var(--blau); border-radius: 0 12px 12px 0; font-size: 17px; color: var(--text-2); }
.ablauf-danach strong { font-weight: 650; color: var(--text); }
.ablauf-danach a { white-space: nowrap; }

.selbst { padding: clamp(70px, 9vw, 120px) var(--rand); }
.selbst-liste { max-width: var(--breite); margin: 40px auto 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.selbst-liste li { display: grid; gap: 6px; padding: 22px 0 0; border-top: 1px solid var(--linie-3); }
.selbst-liste strong { font-family: var(--f-schild); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: 0.01em; }
.selbst-liste span { font-size: 16px; color: var(--text-2); }

.fragen { position: relative; padding: clamp(70px, 9vw, 120px) var(--rand); }
.fragen-liste { max-width: 900px; margin: 40px auto 0; margin-left: max(0px, calc((100% - var(--breite)) / 2)); }
.fragen details { border-top: 1px solid var(--linie-2); }
.fragen details:last-child { border-bottom: 1px solid var(--linie-2); }
.fragen summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; position: relative; font-weight: 560; font-size: 19px; line-height: 1.4; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2px solid var(--blau-licht); border-bottom: 2px solid var(--blau-licht); transform: rotate(45deg); transition: transform 0.25s; }
.fragen details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.fragen summary:hover { color: #fff; }
.fragen details p { padding: 0 0 24px; max-width: 46em; font-size: 17px; color: var(--text-2); }

.anfrage { padding: clamp(80px, 10vw, 140px) var(--rand); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; align-items: start; }
.anfrage-text h2 { font-size: clamp(38px, 4.3vw, 64px); font-weight: 480; letter-spacing: -0.018em; max-width: 14ch; }
.anfrage-text p { margin-top: 18px; font-size: 18px; color: var(--text-2); }
.anfrage-text ul { margin: 22px 0 0; padding: 0; list-style: none; }
.anfrage-text li { padding-left: 24px; position: relative; margin: 8px 0; }
.anfrage-text li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 2px; background: var(--orange); box-shadow: 0 0 12px rgba(252, 115, 77, 0.6); }
.anfrage-text .anfrage-telefon { font-weight: 600; color: var(--text); }
.anfrage-wa-zeile { margin-top: 24px; }

/* Schwebender WhatsApp-Knopf (ES): nur zwischen Ortsfahrt und Anfrage (seite.js) */
.wa-flotante {
  position: fixed; z-index: 40; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 30px;
  background: var(--orange); color: var(--nacht); box-shadow: 0 3px 0 var(--orange-kante), 0 0 30px -4px rgba(252, 115, 77, 0.7);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.wa-flotante.aus { opacity: 0; visibility: hidden; transform: translateY(14px); }
.anfrage-zettel.anfrage-wa { border-top-color: var(--orange); }

/* ---------- Ohne WebGL: Standbild statt Szene ---------- */
.ohne-3d .anker-ebene { display: none; }
.ohne-3d .station { height: 62vh; height: 62svh; }
html[data-ort="intl"] .buehne { background-image: url(standbild-intl.jpg), linear-gradient(180deg, #02070a 0%, #06243a 38%, #2b2a3c 56%, #8a4a3a 62%, #0d1418 64%, #070d11 100%); }
html[data-ort="cl"] .buehne { background-image: url(standbild-cl.jpg), linear-gradient(180deg, #02070a 0%, #06243a 38%, #2b2a3c 56%, #8a4a3a 62%, #0d1418 64%, #070d11 100%); }
@media (max-width: 860px) { .buehne { background-image: url(standbild-handy.jpg), linear-gradient(180deg, #02070a 0%, #06243a 38%, #2b2a3c 56%, #8a4a3a 62%, #0d1418 64%, #070d11 100%); }
  html[data-ort="intl"] .buehne { background-image: url(standbild-intl-handy.jpg), linear-gradient(180deg, #02070a 0%, #06243a 38%, #2b2a3c 56%, #8a4a3a 62%, #0d1418 64%, #070d11 100%); }
  html[data-ort="cl"] .buehne { background-image: url(standbild-cl-handy.jpg), linear-gradient(180deg, #02070a 0%, #06243a 38%, #2b2a3c 56%, #8a4a3a 62%, #0d1418 64%, #070d11 100%); } }

/* Zwischenbreiten (861–1000 px): der Fächer wird etwas kleiner, damit seine Spitzen nicht in Knöpfe und Text ragen */
@media (min-width: 861px) and (max-width: 1000px) {
  .faecher-bereich { transform: scale(0.82); transform-origin: 50% 100%; }
  .held > .vorschau.fest { bottom: 274px; left: auto; right: var(--rand); transform: none; } /* ohne 3D: rechts, sonst läge sie auf dem Zeilenende */
}

/* ---------- Handy ---------- */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .held { padding-top: calc(var(--kopf-h) + 34px); }
  .held::before { width: 100%; height: 64%; background: linear-gradient(180deg, rgba(2, 7, 10, 0.92), rgba(2, 7, 10, 0.74) 62%, rgba(2, 7, 10, 0)); -webkit-mask-image: none; mask-image: none; }
  .held h1 { font-size: clamp(36px, 10.2vw, 54px); max-width: 15ch; }
  .held-unter { margin-top: 16px; font-size: 17px; }
  .held-knoepfe { margin-top: 20px; flex-wrap: nowrap; gap: 10px; }
  .held-knoepfe .knopf { flex: 1 1 0; padding: 0 10px; font-size: 19px; min-height: 48px; }
  .held-klein { display: none; }
  .held-zusagen { display: none; }
  .held-knoepfe .wa-lang { display: none; }
  .faecher-bereich { left: 50%; width: 360px; margin-left: -180px; height: 210px; }
  .faecher-frage { top: -20px; font-size: 18px; }
  .faecher { left: 180px; bottom: -30px; }
  .blatt { width: 52px; height: 250px; left: -26px; bottom: -26px; transform-origin: 26px 224px; border-radius: 26px / 24px; --w: calc(-50deg + var(--i) * 20deg); }
  .faecher.offen .blatt[aria-pressed="true"] { transform: rotate(var(--w)) translateY(-22px); }
  .blatt-gewerk { font-size: 18px; top: 14px; margin-left: 0; }
  .blatt-farbe { display: none; }
  /* Vorschau steht fest über dem Fächer, quer: Name links, Seite rechts */
  .held > .vorschau.fest { left: var(--rand); right: var(--rand); bottom: 242px; width: auto; transform: none; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr); filter: drop-shadow(0 0 18px rgba(2, 151, 222, 0.3)) drop-shadow(0 10px 16px rgba(0, 0, 0, 0.5)); }
  .vorschau.fest .vorschau-kopf { border-radius: 9px 0 0 9px; display: flex; align-items: center; font-size: 18px; line-height: 1.15; }
  .vorschau.fest .vorschau-inhalt { border-radius: 0 9px 9px 0; padding: 10px 12px; }
  .vorschau.fest .vorschau-inhalt strong { font-size: 17px; line-height: 1.25; }
  .vorschau.fest figcaption { position: absolute; right: 6px; top: -24px; margin: 0; }
  /* Passt die Karte nicht zwischen Knöpfe und Fächer, wird sie knapper (seite.js misst je Größe, für alle Gewerke) */
  .vorschau.fest.mittel [data-vorschau="leistungen"] { display: none; }
  .held > .vorschau.fest.knapp { grid-template-columns: minmax(0, 1fr) auto; }
  .vorschau.fest.knapp .vorschau-kopf { display: block; font-size: 16px; line-height: 1.15; padding: 8px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vorschau.fest.knapp .vorschau-inhalt { display: flex; align-items: center; padding: 3px 4px; }
  .vorschau.fest.knapp .vorschau-inhalt > :not(.vorschau-knopf) { display: none; }
  .vorschau.fest.knapp .vorschau-knopf { margin: 0; font-size: 14px; padding: 5px 10px; white-space: nowrap; }
  .vorschau.fest.knapp figcaption { top: -8px; right: auto; left: 8px; line-height: 1.3; } /* links auf der Kante: rechts säße sie auf dem Anruf-Knopf */
  /* Handy quer: zwischen Knöpfen und Fächer ist kein Platz, rechts neben der Frage schon (Unterkante wie die Frage) */
  .held > .vorschau.fest.seitlich { left: auto; right: var(--rand); width: min(280px, 36%); bottom: 196px; }
  .held > .vorschau.fest.ohne-platz { display: none; }
  .station { align-items: flex-end; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .station-karte { padding: 20px 20px 18px; }
  .station-karte h3 { font-size: 28px; }
  .ehrlich-innen { grid-template-columns: 1fr; }
  .ehrlich-text { font-size: 18px; }
  .ehrlich-liste { grid-template-columns: 1fr; gap: 14px; }
  .preis-faecher { grid-template-columns: 1fr; gap: 22px; perspective: none; margin-top: 40px; }
  .preis-blatt, .preis-blatt:nth-child(1), .preis-blatt:nth-child(3), .preis-empfohlen, .preis-blatt:hover, .preis-blatt:focus-within { transform: none; }
  .preis-empfohlen { order: -1; }
  .care { grid-template-columns: 1fr; }
  .pfad { height: 150px; perspective: 600px; }
  .pfad-flaeche { gap: 5px; padding-top: 40px; transform: rotateX(58deg) rotateZ(-10deg) scale(0.98); }
  .stein { font-size: 15px; border-radius: 5px; box-shadow: 0 1px 0 rgba(160, 205, 230, 0.25) inset, 0 5px 0 #03080c, 0 8px 10px -4px rgba(0, 0, 0, 0.8); translate: 0 calc(sin(var(--n) * 0.55rad) * 12px); }
  .stein-ziel { box-shadow: 0 5px 0 var(--orange-kante), 0 0 24px -4px rgba(252, 115, 77, 0.75); }
  .schritte { grid-template-columns: 1fr; gap: 22px; }
  .selbst-liste { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .selbst-liste strong { font-size: 28px; }
  .anfrage { grid-template-columns: 1fr; gap: 32px; }
}

/* Kleine Handys (etwa 360 × 640, 375 × 667): Held enger setzen und den Fächer verkleinern,
   damit Knöpfe und Fächer sich nicht berühren, in allen drei Sprachen */
@media (max-width: 860px) and (max-height: 720px) {
  .held { padding-top: calc(var(--kopf-h) + 22px); }
  .held h1 { font-size: clamp(31px, 8.6vw, 40px); }
  .held-unter { margin-top: 10px; font-size: 16px; line-height: 1.5; }
  .held-knoepfe { margin-top: 14px; }
  .faecher-bereich { transform: scale(0.85); transform-origin: 50% 100%; }
  .held > .vorschau.fest { bottom: 200px; } /* Frage über dem verkleinerten Fächer: 230 × 0,85 = 195,5 px, dazu 4,5 px Luft */
  .held > .vorschau.fest.seitlich { bottom: 167px; } /* Unterkante der Frage: (230 − 34) × 0,85 */
}

@media (prefers-reduced-motion: reduce) {
  .blatt, .preis-blatt, .ort, .anker-ebene > *, .wa-flotante { transition: none !important; }
}
