/* =====================================================================================
   Musterseite Installateur · Gestaltung
   Aufbau: Grundlagen · Kopf · Knöpfe · Haus (Röntgenblick, Fahrt, ruhige Fassung) · Abschnitte · Fuß
   ===================================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf) + 12px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--schrift); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.behaelter { width: min(100% - 40px, var(--breite)); margin-inline: auto; }
.sprung { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: var(--radius-klein); background: var(--text); color: #fff; }
.sprung:focus { top: 12px; }
.marke { font-size: 14px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.marke-hell { color: #8fd3ea; }
.leise { color: var(--muted); }
.klein { font-size: 14px; }
h1 { font-size: clamp(38px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.028em; font-weight: 750; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.022em; font-weight: 720; text-wrap: balance; }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.01em; font-weight: 700; }

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 30; height: var(--kopf); background: rgba(244, 241, 236, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(18, 32, 42, .06); }
.kopf-innen { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 780; font-size: 21px; letter-spacing: -.02em; }
.logo-zeichen { width: 30px; height: 30px; color: var(--accent); }
.menue { display: flex; gap: 26px; margin-left: 12px; }
.menue a { color: var(--text); text-decoration: none; font-weight: 560; font-size: 16px; }
.menue a:hover { color: var(--accent); }
.kopf-tel { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 16px; font-variant-numeric: tabular-nums; }
.punkt { width: 9px; height: 9px; border-radius: 50%; background: #22a55b; box-shadow: 0 0 0 4px rgba(34, 165, 91, .18); }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 680; font-size: 17px; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.knopf:hover { background: var(--accent-tief); }
.knopf:active { transform: translateY(1px); }
.knopf-klein { min-height: 42px; padding: 0 18px; font-size: 15px; }
.knopf-leise { background: rgba(255, 255, 255, .78); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.knopf-leise:hover { background: #fff; }
.knopf-hell { background: #fff; color: var(--text); }
.knopf-hell:hover { background: #eef4f6; }

/* =====================================================================================
   Das Haus
   Ohne JavaScript, in „starr" und am schmalen Bildschirm: Bild mit Linse, darunter die Räume als Karten.
   Mit .haus-an: klebende Bühne, das Video füllt den Bildschirm, Scrollen spult die Fahrt.
   ===================================================================================== */
.haus-buehne { position: relative; }
.haus-bild { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.haus-video { display: none; }
.roentgen, .roentgen img { position: absolute; inset: 0; width: 100%; height: 100%; }
.roentgen img { object-fit: cover; object-position: 100% 50%; }
.roentgen-durch { opacity: 0; }
.roentgen-ring { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 50%; pointer-events: none; opacity: 0; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 0 0 7px rgba(10, 106, 138, .25), 0 18px 50px rgba(0, 0, 0, .25); }
html.linse-an .roentgen-durch {
  opacity: 1;
  -webkit-mask-image: radial-gradient(circle var(--lr, 0px) at var(--lx, -999px) var(--ly, -999px), #000 calc(100% - 1.5px), transparent 100%);
          mask-image: radial-gradient(circle var(--lr, 0px) at var(--lx, -999px) var(--ly, -999px), #000 calc(100% - 1.5px), transparent 100%);
}
html.linse-an .roentgen-ring { opacity: 1; }
.schilder { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.schild { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--text); font-size: 14px; font-weight: 660; white-space: nowrap; box-shadow: 0 6px 20px rgba(11, 24, 34, .18); opacity: 0; transition: opacity .25s; will-change: transform; }
.schild::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--farbe, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--farbe, var(--accent)) 25%, transparent); }
.schild.an { opacity: 1; }

.held { padding: 40px 0 28px; }
.held-text { max-width: 33rem; }
.einleitung { margin-top: 20px; font-size: 20px; color: var(--muted); max-width: 30rem; }
.held-knoepfe { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.held-hinweis { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; font-weight: 600; color: var(--muted); }
.hinweis-linse::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 9px; border-radius: 50%; border: 2px solid var(--accent); vertical-align: -1px; }
.hinweis-scroll { display: none; }
.hinweis-scroll::before { content: "↓"; margin-right: 8px; color: var(--accent); }
.nur-finger { display: none; }
@media (hover: none) { .nur-maus { display: none; } .nur-finger { display: inline; } }

/* Räume als Karten (ruhige Fassung) */
.etappen { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding: 48px 0 0; }
.etappen li { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 rgba(18, 32, 42, .04); }
.etappen li > :not(img) { margin-inline: 24px; }
.etappen li > :last-child { margin-bottom: 26px; }
.etappe-bild { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 20px; }
.etappe-ort { margin-bottom: 6px; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.etappen h2 { font-size: 30px; }
.etappen h3 { margin-bottom: 10px; }
.etappen p { color: var(--muted); font-size: 17px; }
.etappen p + p { margin-top: 14px; }
.etappe-zahl { font-size: 26px !important; font-weight: 760; color: var(--text) !important; letter-spacing: -.01em; }
.etappe-zahl span { display: block; font-size: 15px; font-weight: 560; color: var(--muted); letter-spacing: 0; }
.stockwerke { display: none; }

/* ----- Fahrt: klebende Bühne über die volle Fensterhöhe ----- */
html.haus-an .haus-spur { height: 1000vh; height: 1000svh; }
html.haus-an .haus-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; margin-top: calc(-1 * var(--kopf)); }
html.haus-an .haus-bild { position: absolute; inset: 0; aspect-ratio: auto; }
html.haus-an .haus-video { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--bg); }
html.haus-an .roentgen img { object-position: 50% 50%; }
html.haus-an .roentgen { transition: opacity .35s; }
html.haus-an.fahrt-laeuft.video-bereit .roentgen { opacity: 0; pointer-events: none; }
html.haus-an .held { position: absolute; inset: 0; display: flex; align-items: center; padding: var(--kopf) 0 0; pointer-events: none; z-index: 4; }
html.haus-an .held-text { pointer-events: auto; padding: 34px 34px 30px; margin-left: -34px; border-radius: var(--radius-gross); background: radial-gradient(closest-side, rgba(244, 241, 236, .92), rgba(244, 241, 236, .75) 70%, rgba(244, 241, 236, 0)); }
html.haus-an .hinweis-scroll { display: inline; }
html.haus-an .etappe-bild { display: none; }
html.haus-an .etappen { display: block; position: absolute; left: 0; right: 0; bottom: 9vh; padding: 0; z-index: 4; pointer-events: none; }
html.haus-an .etappen li { position: absolute; left: 0; bottom: 0; width: min(440px, 100%); padding: 26px 0 2px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 60px rgba(11, 24, 34, .16); opacity: 0; transform: translateY(18px); transition: opacity .45s, transform .45s cubic-bezier(.2, .8, .2, 1); }
html.haus-an .etappen li.ist-aktiv { opacity: 1; transform: none; pointer-events: auto; }
html.haus-an .etappen li > :last-child { margin-bottom: 24px; }
html.haus-an .stockwerke { display: flex; flex-direction: column; gap: 8px; position: absolute; right: max(20px, calc((100vw - var(--breite)) / 2)); top: 50%; transform: translateY(-50%); z-index: 4; transition: opacity .4s; }
html.haus-an .stockwerke li { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .75); color: var(--muted); font-size: 14px; font-weight: 640; transition: background .3s, color .3s, transform .3s; }
html.haus-an .stockwerke b { display: inline-grid; place-items: center; width: 34px; height: 26px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 12px; letter-spacing: .04em; }
html.haus-an .stockwerke li.ist-aktiv { background: var(--text); color: #fff; transform: translateX(-6px); }
html.haus-an .stockwerke li.ist-aktiv b { background: var(--accent); color: #fff; }
html.haus-an:not(.fahrt-laeuft) .stockwerke { opacity: 0; }
html.haus-an.fahrt-laeuft .held { opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
html.haus-an .held { transition: opacity .35s; }

/* ---------- Zahlen ---------- */
.zahlen { padding: var(--abstand) 0 0; }
.zahlen-liste { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.zahlen-liste li { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); }
.zahlen-liste b { display: block; font-size: clamp(40px, 4.4vw, 56px); line-height: 1; letter-spacing: -.03em; font-weight: 760; }
.zahlen-liste span { display: block; margin-top: 10px; color: var(--muted); font-size: 16px; }

/* ---------- Leistungen ---------- */
.leistungen, .preise, .fragen { padding: var(--abstand) 0 0; }
.abschnitt-kopf { max-width: 40rem; margin-bottom: 40px; }
.abschnitt-kopf .leise { margin-top: 14px; }
.kacheln { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.kachel { grid-column: span 2; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.kachel-gross { grid-column: span 4; grid-row: span 2; }
.kachel img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.kachel-gross img { aspect-ratio: auto; flex: 1; min-height: 280px; }
.kachel-text { padding: 22px 24px 26px; }
.kachel-text p { margin-top: 8px; color: var(--muted); font-size: 17px; }
.kachel-text .kachel-zahl { margin-top: 14px; color: var(--text); font-weight: 700; }
.kacheln .kachel:nth-child(2), .kacheln .kachel:nth-child(3) { grid-column: span 2; }
.kachel-schlicht { grid-column: span 3 !important; background: var(--surface-2); justify-content: center; }
.kachel-not { grid-column: span 3 !important; background: var(--nacht); color: var(--nacht-text); justify-content: center; }
.kachel-not p { color: var(--nacht-leise) !important; }
.kachel-not .knopf { margin-top: 18px; }

/* ---------- Preise ---------- */
.preise-raster { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.preis-liste { border-radius: var(--radius); background: var(--surface); padding: 8px 28px; }
.preis-liste div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.preis-liste div:last-child { border-bottom: 0; }
.preis-liste dd { font-weight: 720; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Stimmen ---------- */
.stimmen { padding: var(--abstand) 0 0; }
.stimmen-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stimme { padding: 34px 34px 30px; border-radius: var(--radius); background: var(--surface-2); }
.stimme blockquote p { font-size: 23px; line-height: 1.38; letter-spacing: -.01em; font-weight: 600; }
.stimme figcaption { margin-top: 18px; color: var(--muted); font-size: 15px; }

/* ---------- Fragen ---------- */
.fragen-raster { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.fragen-liste details { border-bottom: 1px solid var(--border); }
.fragen-liste summary { cursor: pointer; padding: 20px 40px 20px 0; font-weight: 680; font-size: 19px; list-style: none; position: relative; }
.fragen-liste summary::-webkit-details-marker { display: none; }
.fragen-liste summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 26px; font-weight: 400; color: var(--accent); }
.fragen-liste details[open] summary::after { content: "−"; }
.fragen-liste details p { padding: 0 0 22px; color: var(--muted); max-width: 40rem; }

/* ---------- Kontakt ---------- */
.kontakt { margin-top: var(--abstand); padding: var(--abstand) 0; background: var(--nacht); color: var(--nacht-text); }
.kontakt-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.kontakt-text p { margin-top: 18px; color: var(--nacht-leise); }
.kontakt address { margin-top: 24px; font-style: normal; line-height: 1.7; }
.kontakt a { color: #8fd3ea; }
.formular { padding: 30px; border-radius: var(--radius); background: #fff; color: var(--text); }
.feld { margin-bottom: 16px; }
.feld label { display: block; margin-bottom: 6px; font-weight: 640; font-size: 15px; }
.feld input, .feld select, .feld textarea { width: 100%; padding: 13px 14px; border: 1px solid #c9d2d7; border-radius: var(--radius-klein); background: #fff; color: var(--text); font: inherit; font-size: 17px; }
.formular .knopf { width: 100%; margin-top: 4px; }
.formular-meldung { margin-top: 12px; font-weight: 600; }
.formular .leise { margin-top: 12px; }

/* ---------- Fuß ---------- */
.fuss { padding: 56px 0 0; background: #081219; color: var(--nacht-leise); font-size: 15px; }
.fuss-raster { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.fuss address { font-style: normal; }
.fuss a { color: var(--nacht-text); }
.fuss-logo { color: #fff; font-weight: 780; font-size: 20px; margin-bottom: 6px; }
.fuss-links a { margin-right: 16px; }
.fuss-demo { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.fuss-zeile { width: 100%; max-width: none; margin: 0; padding: 22px 20px 26px; text-align: center; font-size: 13px; color: #6f8089; }
.fuss-zeile a { color: #8fa0a9; }
.anruf-leiste { display: none; }

/* ---------- Auftritt beim Scrollen (mittel) ---------- */
html.js[data-bewegung="mittel"] [data-auftritt], html.js[data-bewegung="dynamisch"] [data-auftritt] { opacity: 0; transform: translateY(22px); transition: opacity .6s, transform .6s cubic-bezier(.2, .8, .2, 1); }
html.js [data-auftritt].ist-da { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { html.js [data-auftritt] { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ---------- Schmal ---------- */
@media (max-width: 980px) {
  .menue { display: none; }
  .kacheln { grid-template-columns: 1fr 1fr; }
  .kachel, .kachel-gross, .kachel-schlicht, .kachel-not, .kacheln .kachel:nth-child(2), .kacheln .kachel:nth-child(3) { grid-column: span 1 !important; grid-row: auto; }
  .kachel-gross { grid-column: span 2 !important; }
  .preise-raster, .fragen-raster, .kontakt-raster { grid-template-columns: 1fr; gap: 28px; }
  .zahlen-liste { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; padding-bottom: 64px; }
  .kopf-tel { display: none; }
  .kopf .knopf-klein { margin-left: auto; }
  .kacheln { grid-template-columns: 1fr; }
  .kachel-gross { grid-column: span 1 !important; }
  .stimmen-raster { grid-template-columns: 1fr; }
  .fuss-raster { grid-template-columns: 1fr; }
  .anruf-leiste { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; min-height: 52px; align-items: center; justify-content: center; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px rgba(11, 24, 34, .3); }
  .schild { font-size: 12px; padding: 4px 10px 4px 8px; }
}
