/* Hostel bewerten – Farbkapitel. Jeder Abschnitt ist ein vollflächiges Feld in einer Berliner Farbe
   (Beton, U-Bahn-Gelb, S-Bahn-Grün, Schwarz), zusammengehalten von einer Schrift und einem Raster.
   Eckig, flach, ohne Linien, Verläufe und Schatten. Schrift selbst gehostet (keine Drittanbieter). */
@font-face { font-family: "Libre Franklin"; src: url("fonts/libre-franklin-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  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: "Libre Franklin"; src: url("fonts/libre-franklin-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF }

:root {
  --paper: #ffffff;
  --ink: #0d0f0e;
  --ink-2: #3f4541;
  --concrete: #d6d8d3;
  --tile: #eceeea;
  --yellow: #f6d10f;
  --green: #00704a;
  --green-ink: #ffffff;
  --black: #0d0f0e;
  --font: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --m: clamp(20px, 3.2vw, 48px);
  --gap: clamp(20px, 2vw, 32px);
  --s-small: 0.875rem;
  --s-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --s-lead: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  --s-head: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem);
  --s-display: clamp(3.25rem, 1.6rem + 6.4vw, 8.25rem);
  color-scheme: light;
}

* { box-sizing: border-box }
[hidden] { display: none !important }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--s-body); line-height: 1.55;
  font-weight: 400; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "kern", "liga" }
::selection { background: var(--yellow); color: var(--ink) }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em }
img, video { display: block; max-width: 100% }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px }
.hero :focus-visible, .f-green :focus-visible, .f-black :focus-visible, footer.site :focus-visible, .config-out :focus-visible { outline-color: var(--yellow) }
p { margin: 0 0 1em; max-width: 64ch }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance }
.wrap { padding-inline: max(var(--m), env(safe-area-inset-left, 0px)) max(var(--m), env(safe-area-inset-right, 0px)) }
.num { font-variant-numeric: tabular-nums }

/* Kopfzeile: Wortmarke links, eine Aktion rechts */
header.site { position: absolute; inset: 0 0 auto; z-index: 5 }
header.site .wrap { display: flex; justify-content: space-between; align-items: center; height: 84px; gap: 16px }
.brand { white-space: nowrap; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; text-decoration: none; color: #fff }
body.plain header.site { position: static; background: var(--paper) }
body.plain .brand { color: var(--ink) }

/* Buttons: eckig, flach, eine Füllung */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; font: inherit; font-size: 1rem; font-weight: 700; letter-spacing: -0.01em;
  text-decoration: none; padding: 17px 26px; min-height: 52px; border: 0; border-radius: 0; cursor: pointer; background: var(--yellow); color: var(--ink);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), background-color .18s }
.btn:hover { transform: translateY(-2px) }
.btn:active { transform: translateY(0) }
.btn.dark { background: var(--ink); color: #fff }
.btn.light { background: #fff; color: var(--ink) }
.btn.big { font-size: 1.125rem; padding: 21px 32px; min-height: 60px }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 15px 24px }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none }
.btn .arrow { transition: transform .18s cubic-bezier(.2,.8,.2,1) }
.btn:hover .arrow { transform: translateX(4px) }
.textlink { font-weight: 700; text-decoration: underline; text-underline-offset: 0.22em }

/* Hero: Stadtvideo vollflächig, Überschrift oben links, Bühne mit Schnellschätzung unten rechts */
.hero { position: relative; min-height: max(720px, 100svh); color: #fff; background: var(--black); overflow: hidden; isolation: isolate; display: grid }
.hero-media { position: absolute; inset: 0; z-index: -2 }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
@media (max-width: 719px) { .hero-media video { display: none } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8, 10, 9, .52) }
.hero .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 8px; align-items: center; align-content: center; padding-block: 120px 96px }
.hero-copy { grid-column: 1 / span 7 }
.hero h1 { font-size: clamp(2.75rem, 1.2rem + 5.2vw, 6rem); line-height: 0.95; letter-spacing: -0.035em; max-width: 13ch }
.hero .lead { font-size: var(--s-lead); line-height: 1.35; max-width: 34ch; margin: 28px 0 32px; color: #fff }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center }
.hero .actions .textlink { color: #fff }
.hero .note { margin-top: 22px; font-size: var(--s-small); color: rgba(255,255,255,.86) }
.stage { position: relative; grid-column: 8 / -1; margin-right: calc(-1 * max(var(--m), env(safe-area-inset-right, 0px))); background: var(--yellow); color: var(--ink);
  clip-path: polygon(80px 0, 100% 0, 100% 100%, 0 100%, 0 80px); padding: clamp(56px, 5vw, 80px) clamp(28px, 3vw, 56px); z-index: 1 }
.stage .panel { width: 100% }
.vid-toggle { position: absolute; left: max(var(--m), env(safe-area-inset-left, 0px)); bottom: 22px; z-index: 2; font: inherit; font-size: var(--s-small); font-weight: 600;
  color: #fff; background: transparent; border: 0; padding: 6px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.22em }

/* Bedienfragmente des Rechners (echte Oberfläche, data-ui) */
[data-ui] { font-size: 15px; line-height: 1.4; color: var(--ink) }
.panel { background: #fff; padding: 28px; width: min(620px, 100%) }
.panel .ptitle { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 18px }
.panel label { display: block; font-weight: 600; margin-bottom: 8px }
.field { display: flex; align-items: center; gap: 10px; border: 2px solid var(--ink); height: 56px; padding: 0 16px; background: #fff }
.field input { border: 0; outline: 0; font: inherit; font-size: 1.25rem; font-weight: 700; width: 100%; background: transparent; color: var(--ink); font-variant-numeric: tabular-nums }
.field span { font-weight: 600; color: var(--ink-2) }
.field:focus-within { outline: 3px solid var(--ink); outline-offset: 2px }
.result { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px }
.result strong { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums }
.result span { font-size: var(--s-small); color: var(--ink-2) }
.result strong.gesperrt { font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1.3; font-weight: 600 }
.driver .mini strong.gesperrt { font-size: inherit }
.panel .hint { margin: 12px 0 0; font-size: var(--s-small); color: var(--ink-2); max-width: 46ch }
.panel .btn { margin-top: 20px }
.seg { display: flex; flex-wrap: wrap; gap: 6px }
.seg button { font: inherit; font-size: 15px; font-weight: 600; padding: 12px 16px; min-height: 46px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; border-radius: 0;
  transition: background-color .15s, color .15s }
.seg button:hover { background: rgba(13,15,14,.06) }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff }

/* Schnellschätzung: eine Frage pro Schritt */
.quick fieldset { border: 0; margin: 0; padding: 0; min-width: 0 }
.quick legend { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 16px; padding: 0 }
.quick legend label { font: inherit; margin: 0 }
.quick .ptitle { font-size: var(--s-small); margin-bottom: 14px }
.qprog { display: flex; gap: 4px; margin-bottom: 16px }
.qprog span { flex: 1; height: 5px; background: var(--concrete); transition: background-color .25s }
.qprog span.on { background: var(--ink) }
.quick .qresult .result { margin-top: 0 }
.qnav { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; gap: 12px }
.qnav [data-vor] { margin-left: auto }
.qnav .skip { font: inherit; font-weight: 700; background: none; border: 0; padding: 8px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.22em; color: var(--ink) }
.quick .qresult .btn { margin-top: 18px }
.qfields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.qfields label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; margin: 0 }
.qfields .voll { grid-column: 1 / -1 }
.qfields input { font: inherit; font-size: 1rem; font-weight: 600; height: 50px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); width: 100% }
.qfields input:focus { outline: 3px solid var(--ink); outline-offset: 2px }
.qcheck { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-weight: 400 }
.qcheck input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--ink) }
.qerr { margin: 10px 0 0; font-weight: 700; color: #9b1c1c; min-height: 1.2em }
@media (max-width: 560px) { .qfields { grid-template-columns: 1fr } }
.quick .seg { display: grid; grid-template-columns: 1fr 1fr }
.quick [data-seg="pacht"] { grid-template-columns: 1fr }

/* Kapitel: vollflächige Farbfelder ohne Abstand zueinander */
.chapter { padding-block: clamp(96px, 12vw, 200px); position: relative }
.f-paper { background: var(--paper); color: var(--ink) }
.f-concrete { background: var(--concrete); color: var(--ink) }
.f-yellow { background: var(--yellow); color: var(--ink) }
.f-green { background: var(--green); color: var(--green-ink) }
.f-black { background: var(--black); color: #fff }
.chapter h2 { font-size: var(--s-head); line-height: 1; letter-spacing: -0.03em; max-width: 24ch }
.chapter .lead { font-size: var(--s-lead); line-height: 1.35; max-width: 46ch; margin-top: 24px }
.source { font-size: var(--s-small); margin-top: 28px; max-width: 80ch; color: inherit }
.source a { color: inherit }

/* Tafel aus Flächen: Leitsatz, Zahl, Bild, Text */
.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(220px, 36svh)); gap: 8px;
  padding: 8px max(var(--m), env(safe-area-inset-right, 0px)) 8px max(var(--m), env(safe-area-inset-left, 0px)); background: var(--paper) }
.tile { position: relative; overflow: hidden; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end }
.tile-a { grid-column: 1 / span 7; grid-row: 1 / span 2; background: var(--black); color: #fff; isolation: isolate }
.tile-a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2 }
.tile-a::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; z-index: -1; background: linear-gradient(180deg, rgba(8,10,9,0), rgba(8,10,9,.62)) } /* taste-skill-ignore: neutrale Abdunklung unter Text auf Foto */
.tile-a h2 { font-size: var(--s-head); line-height: 1.02; letter-spacing: -0.03em; max-width: 16ch }
.tile-b { grid-column: 8 / span 5; grid-row: 1; background: var(--concrete) }
.tile-b strong { display: block; font-size: clamp(3rem, 1.5rem + 4.6vw, 6.5rem); line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums }
.tile-b span { margin-top: 10px; font-size: var(--s-small); font-weight: 600; max-width: 30ch }
.tile-c { grid-column: 8 / span 5; grid-row: 2; background: var(--yellow) }
.tile-c strong { display: block; font-size: clamp(3rem, 1.5rem + 4.6vw, 6.5rem); line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums }
.tile-c span { margin-top: 10px; font-size: var(--s-small); font-weight: 600; max-width: 30ch }
.board-text { grid-column: 1 / -1; background: var(--paper); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding: clamp(40px, 5vw, 72px) 0 }
.board-text .left { grid-column: 1 / span 5 }
.board-text .left p { font-size: var(--s-small); font-weight: 600; max-width: 36ch }
.board-text .right { grid-column: 7 / span 6 }
.board-text .right p { font-size: var(--s-lead); line-height: 1.38; max-width: 36ch }

/* Betriebsart wählen: gefüllte Flächen statt umrandeter Karten */
.typepick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 48px }
.typepick a { display: flex; flex-direction: column; justify-content: space-between; min-height: 260px; padding: 24px; background: var(--paper); color: var(--ink); text-decoration: none;
  transition: background-color .2s, color .2s }
.typepick a b { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); letter-spacing: -0.03em; line-height: 1 }
.typepick a span { font-size: var(--s-small); font-weight: 600; margin-top: 10px; display: block }
.typepick a em { font-style: normal; font-weight: 700; display: inline-flex; gap: 10px; align-items: center }
.typepick a:hover { background: var(--ink); color: #fff }
.typepick a em .arrow { transition: transform .18s }
.typepick a:hover em .arrow { transform: translateX(4px) }

/* Konfigurator: links das feste Ergebnis auf Grün, rechts Werttreiber mit Reglern */
.config { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); background: var(--paper) }
.config-out { grid-column: 1 / span 6; background: var(--green); color: #fff; position: sticky; top: 0; height: 100svh; display: grid; place-items: center; padding: var(--m) }
.config-out .panel { width: min(460px, 100%) }
.config-out dl { margin: 22px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px }
.config-out dt { color: var(--ink-2) }
.config-out dd { margin: 0; font-weight: 600 }
.config-in { grid-column: 8 / span 5; padding: clamp(96px, 10vw, 160px) max(var(--m), env(safe-area-inset-right, 0px)) clamp(96px, 10vw, 160px) 0 }
.config-in > h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); line-height: 1; letter-spacing: -0.03em; margin-bottom: 24px }
.config-in > .lead { font-size: var(--s-lead); line-height: 1.35; margin-bottom: 8px }
.driver { padding-top: 22vh; max-width: 44ch }
.driver:first-of-type { padding-top: 12vh }
.driver h3 { font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 14px }
.driver p { font-size: 1.0625rem; color: var(--ink) }
.driver .seg { margin-top: 18px }
.driver .mini { display: none; margin: 14px 0 0; font-size: var(--s-small); font-weight: 600 }
.driver .mini strong { font-size: 1.125rem; font-variant-numeric: tabular-nums }

/* Bildkapitel: ein Foto vollflächig, Text darunter auf Schwarz */
.photo-chapter { position: relative; background: var(--black); color: #fff }
.photo-chapter figure { margin: 0; height: min(88svh, 900px); overflow: hidden }
.photo-chapter img { width: 100%; height: 100%; object-fit: cover }
.photo-chapter .caption { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; padding-block: 48px 72px; align-items: end }
.photo-chapter .caption h2 { grid-column: 1 / span 7; font-size: var(--s-head); line-height: 1; letter-spacing: -0.03em }
.photo-chapter .caption div { grid-column: 9 / span 4 }
.photo-chapter .caption p { font-size: 1.0625rem }

/* Häufige Fragen: Überschrift bleibt stehen, Fragen als gefüllte Flächen */
.faq-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap) }
.faq-wrap > h2 { grid-column: 1 / span 4; position: sticky; top: 96px; align-self: start; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem) }
.faq { grid-column: 5 / span 8; display: grid; gap: 8px }
.faq details { background: var(--tile); transition: background-color .2s }
.f-concrete .faq details { background: var(--paper) }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 76px; padding: 18px 24px;
  font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3 }
.faq summary::-webkit-details-marker { display: none }
.faq summary i { position: relative; flex: none; width: 18px; height: 18px }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; top: 7.5px; width: 18px; height: 3px; background: currentColor; transition: transform .25s cubic-bezier(.2,.8,.2,1) }
.faq summary i::after { transform: rotate(90deg) }
.faq details[open] { background: var(--yellow) }
.faq details[open] summary i::after { transform: rotate(0deg) }
.faq details p { padding: 0 24px 26px; margin: 0; font-size: 1.0625rem; max-width: 60ch }

/* Abschluss: erster Schritt des Rechners schon offen */
.cta-chapter { min-height: 90svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; padding-block: clamp(80px, 10vw, 160px) }
.cta-chapter .close { grid-column: 1 / span 6 }
.cta-chapter .close h2 { font-size: clamp(2.75rem, 1.4rem + 4.4vw, 6rem); line-height: 0.95; letter-spacing: -0.035em; max-width: 16ch }
.cta-chapter .close p { margin-top: 24px; font-size: var(--s-lead); line-height: 1.35; max-width: 32ch }
.cta-chapter .panel { grid-column: 8 / span 5; align-self: center; width: 100%; max-width: 480px }
.cta-chapter .panel .row { margin-top: 18px }
.cta-chapter .go { grid-column: 8 / span 5; align-self: end; justify-self: start }
#schaetzung { scroll-margin-top: 24px }

/* Footer: der Name kehrt in voller Breite zurück */
footer.site { background: var(--black); color: #fff; padding-block: 64px 32px; overflow: hidden }
footer.site .top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; font-size: 15px }
footer.site .top p { color: rgba(255,255,255,.86); max-width: 40ch; margin: 0 }
footer.site .top .about { grid-column: 1 / span 5 }
footer.site nav { grid-column: span 2 }
footer.site nav b { display: block; font-size: 15px; margin-bottom: 10px }
footer.site nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px }
footer.site a { color: rgba(255,255,255,.86); text-decoration: none }
footer.site a:hover { color: #fff; text-decoration: underline }
footer.site .name { display: block; margin-top: clamp(64px, 10vw, 160px); font-size: clamp(3rem, 0.5rem + 10.5vw, 12rem); font-weight: 800; line-height: 0.85; letter-spacing: -0.04em; color: #fff; text-decoration: none; white-space: nowrap }
footer.site .meta { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 14px; color: rgba(255,255,255,.8) }

/* Rechtstexte und schlichte Seiten */
.legal { padding-block: 56px 120px; max-width: 860px }
.legal h1 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); letter-spacing: -0.03em; line-height: 1; margin-bottom: 32px }
.legal h2 { font-size: 1.375rem; margin: 44px 0 10px; letter-spacing: -0.01em }
.legal p, .legal li { max-width: 68ch }
.todo { background: var(--yellow); padding: 1px 6px; font-weight: 700 }
.draft { background: var(--yellow); padding: 16px 20px; font-weight: 600; margin-bottom: 36px }

/* Abläufe und Listen (Verkaufsseiten) */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 8px }
.steps li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); background: var(--paper); padding: 32px 24px }
.f-paper .steps li { background: var(--tile) }
.steps h3 { grid-column: 1 / span 5; font-size: clamp(1.5rem, 1.15rem + 1vw, 2.125rem); letter-spacing: -0.02em; line-height: 1.08 }
.steps p { grid-column: 7 / span 6; margin: 0; font-size: 1.0625rem }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: start }
.split > :first-child { grid-column: 1 / span 5 }
.split > :last-child { grid-column: 7 / span 6 }
.biglist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px }
.biglist li { background: rgba(255,255,255,.14); padding: 20px 22px; font-size: 1.0625rem }
.f-concrete .biglist li { background: var(--paper) }
.f-paper .biglist li { background: var(--tile) }
.biglist li b { display: block; font-size: 1.25rem; letter-spacing: -0.01em; margin-bottom: 4px }
.textcol h3 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 36px 0 10px }
.textcol h3:first-child { margin-top: 0 }

/* Telefon: feste Aufforderung unten nach dem Hero */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: none; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--ink) }
.sticky-cta .btn { width: 100% }

/* Bewegung: Inhalte sind ohne Skript sichtbar; mit Skript gestaffelt beim Eintritt, ein Foto öffnet sich wie ein Rollladen */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); transition-delay: var(--d, 0ms) }
  .js .rise.in { opacity: 1; transform: none }
  .js .shutter img { clip-path: inset(0 0 100% 0); transform: scale(1.12); transition: clip-path 1.1s cubic-bezier(.7,0,.2,1), transform 1.6s cubic-bezier(.16,1,.3,1) }
  .js .shutter.in img { clip-path: inset(0 0 0 0); transform: scale(1) }
  .hero-media video, .hero-media img { animation: drift 24s ease-in-out infinite alternate }
  @keyframes drift { from { transform: scale(1.02) } to { transform: scale(1.08) } }
}
@media (prefers-reduced-motion: reduce) { .hero-media video { display: none } }

/* Tablet und Telefon: eigene Komposition */
@media (max-width: 980px) {
  .hero { min-height: auto }
  .hero-copy { grid-column: 1 / -1 }
  .hero .wrap { padding-bottom: 0 }
  .stage { grid-column: 1 / -1; margin: 48px calc(-1 * max(var(--m), env(safe-area-inset-right, 0px))) 0 calc(-1 * max(var(--m), env(safe-area-inset-left, 0px)));
    clip-path: polygon(64px 0, 100% 0, 100% 100%, 0 100%, 0 64px); padding: 48px 16px 16px }
  .vid-toggle { top: 96px; bottom: auto; left: auto; right: max(var(--m), env(safe-area-inset-right, 0px)) }
  .board { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 6px }
  .tile-a { grid-column: 1 / -1; grid-row: auto; min-height: 46svh }
  .tile-a h2 { font-size: clamp(1.75rem, 7vw, 2.75rem) }
  .tile-b, .tile-c { grid-column: auto; grid-row: auto; aspect-ratio: 1; max-width: 100% }
  .tile-b { padding: 16px }
  .tile-b strong, .tile-c strong { font-size: 10vw }
  .tile-c { padding: 16px }
  .board-text { padding: 40px 0; display: block }
  .board-text .right { margin-top: 20px }
  .board-text .right p { font-size: 1.1875rem }
  .typepick { grid-template-columns: 1fr 1fr }
  .typepick a { min-height: 180px; padding: 18px }
  .config { display: block }
  .config-out { position: static; height: auto; padding: 40px max(var(--m), env(safe-area-inset-right, 0px)) 40px max(var(--m), env(safe-area-inset-left, 0px)) }
  .driver .mini { display: block }
  .config-out .panel { padding: 16px }
  .config-out .panel .ptitle { margin-bottom: 6px }
  .config-out .result { margin-top: 4px }
  .config-out dl, .config-out .hint { display: none }
  .config-in { padding: 48px max(var(--m), env(safe-area-inset-right, 0px)) 72px max(var(--m), env(safe-area-inset-left, 0px)) }
  .driver, .driver:first-of-type { padding-top: 56px }
  .photo-chapter figure { height: 60svh }
  .photo-chapter .caption h2, .photo-chapter .caption div { grid-column: 1 / -1 }
  .faq-wrap > h2 { grid-column: 1 / -1; position: static; margin-bottom: 32px }
  .faq { grid-column: 1 / -1; gap: 6px }
  .faq summary { font-size: 1.125rem; padding: 16px 18px; min-height: 64px }
  .faq details p { padding: 0 18px 22px }
  .cta-chapter { min-height: 84svh; align-items: start; row-gap: 40px }
  .cta-chapter .close, .cta-chapter .panel, .cta-chapter .go { grid-column: 1 / -1 }
  .cta-chapter .go, .cta-chapter .go .btn { width: 100% }
  .cta-chapter .close h2 { font-size: 11vw }
  .cta-chapter .panel .btn { width: 100% }
  footer.site .top .about { grid-column: 1 / -1 }
  footer.site nav { grid-column: span 6 }
  .steps li { display: block; padding: 24px 18px }
  .steps p { margin-top: 12px }
  .split > :first-child, .split > :last-child { grid-column: 1 / -1 }
}
@media (max-width: 560px) {
  .sticky-cta.on { display: block }
  body.has-sticky footer.site { padding-bottom: 110px }
  .typepick { grid-template-columns: 1fr }
  .hero h1 { font-size: 11vw }
  .panel { padding: 20px }
  footer.site nav { grid-column: 1 / -1 }
}
header.site .btn { white-space: nowrap }

/* Ratgeber: Kopf auf Papier, Text links in Lesebreite, rechts Inhalt und Schnellschätzung (mitlaufend) */
.article-head .wrap { padding-block: clamp(40px, 6vw, 96px) clamp(32px, 4vw, 56px) }
.crumbs { font-size: var(--s-small); font-weight: 600; margin-bottom: clamp(28px, 4vw, 56px) }
.crumbs a { text-decoration: none } .crumbs a:hover { text-decoration: underline }
.article-head h1 { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 5.5rem); line-height: 0.98; letter-spacing: -0.035em; max-width: 20ch }
.article-head .lead { font-size: var(--s-lead); line-height: 1.35; max-width: 44ch; margin: 28px 0 0 }
.article-head .meta { font-size: var(--s-small); color: var(--ink-2); margin: 24px 0 0 }
.article-body .wrap { padding-block: clamp(48px, 5vw, 80px) clamp(80px, 9vw, 140px) }
.article-photo { margin: 0; height: clamp(220px, 34vw, 520px); overflow: hidden; background: var(--concrete) }
.article-photo img { width: 100%; height: 100%; object-fit: cover }
.article-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start }
.prose { grid-column: 1 / span 7; min-width: 0 }
.prose > h2 { font-size: clamp(1.625rem, 1.2rem + 1.3vw, 2.25rem); line-height: 1.1; letter-spacing: -0.025em; margin: clamp(48px, 5vw, 72px) 0 18px; scroll-margin-top: 24px; max-width: 30ch }
.prose p, .prose li { max-width: 66ch }
.prose ul { padding-left: 1.2em; margin: 0 0 1em }
.prose li { margin: 0 0 0.6em }
.prose li b { font-weight: 700 }
.prose a { font-weight: 600 }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0 2px; margin: 8px 0 24px; font-size: 1rem }
.prose caption { text-align: left; font-size: var(--s-small); font-weight: 700; padding: 0 0 10px }
.prose th, .prose td { text-align: left; padding: 14px 18px; vertical-align: top; font-weight: 400; background: var(--tile) }
.prose td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums }
.prose tr.sum th, .prose tr.sum td { font-weight: 700; background: var(--yellow) }
.kurz { background: var(--green); color: var(--green-ink); padding: clamp(24px, 3vw, 36px) }
.kurz h2 { font-size: 1.25rem; letter-spacing: -0.01em; margin: 0 0 14px }
.kurz ul { margin: 0; padding-left: 1.2em }
.kurz li { margin: 0 0 0.5em }
.kurz li:last-child { margin-bottom: 0 }
.quellen, .verwandt { margin-top: clamp(48px, 5vw, 72px) }
.quellen h2, .verwandt h2 { font-size: 1.25rem; letter-spacing: -0.01em; margin: 0 0 14px }
.quellen li { font-size: var(--s-small); color: var(--ink-2) }
.hinweis { font-size: var(--s-small); color: var(--ink-2); background: var(--tile); padding: 16px 18px; margin-top: 20px }
.verwandt ul { list-style: none; padding: 0; display: grid; gap: 8px }
.verwandt a { display: flex; justify-content: space-between; gap: 16px; background: var(--concrete); padding: 20px 22px; text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em }
.verwandt a:hover { background: var(--yellow) }
.article-side { grid-column: 9 / -1; position: sticky; top: 24px; display: grid; gap: 8px; min-width: 0 }
.toc { background: var(--tile); padding: 22px 24px }
.toc-title { font-size: var(--s-small); font-weight: 700; margin: 0 0 10px }
.toc ol { margin: 0; padding-left: 1.2em; font-size: var(--s-small) }
.toc li { margin: 0 0 6px } .toc a { text-decoration: none } .toc a:hover { text-decoration: underline }
.side-quick { background: var(--yellow); padding: 8px }
.side-quick .panel { width: 100%; padding: 22px }
.side-quick .quick legend { font-size: 1.25rem }
.guide-list { grid-column: 1 / span 7; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px }
.guide-list a { display: grid; gap: 8px; background: var(--tile); padding: clamp(22px, 2.6vw, 32px); text-decoration: none }
.guide-list a:hover { background: var(--yellow) }
.guide-list b { font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.1; letter-spacing: -0.02em }
.guide-list span { font-size: 1rem; max-width: 60ch }
.guide-list em { font-style: normal; font-weight: 700; font-size: var(--s-small) }
@media (max-width: 980px) {
  .prose, .guide-list, .article-side { grid-column: 1 / -1 }
  .article-side { position: static; margin-top: 56px }
  .toc { display: none }
}
@media (max-width: 560px) {
  .prose th, .prose td { padding: 12px 14px }
}

/* Telefon: Zahlenkacheln über die volle Breite, kein doppelter Einstieg über der Schnellschätzung, kompakte Karten */
@media (max-width: 719px) {
  .hero .actions { display: none }
  .hero .lead { margin-bottom: 0 }
}
@media (max-width: 560px) {
  .tile-b, .tile-c { grid-column: 1 / -1; aspect-ratio: auto; min-height: 0; padding: 22px 20px }
  .tile-b strong, .tile-c strong { font-size: clamp(2.5rem, 13vw, 3.5rem) }
  .tile-a { min-height: 56svh }
  .typepick a { min-height: 0; gap: 22px; padding: 20px }
  .driver .mini:has(strong.gesperrt) { display: none }
}

/* Betriebsart mit Sternen als zweite Zeile */
.seg button small { display: block; font-size: 12px; font-weight: 500; margin-top: 2px; opacity: .8 }
.f-paper .typepick a { background: var(--tile) }
.f-paper .typepick a:hover { background: var(--ink) }
