/* Startseite (index.html).

   Farben, Logo und Typografie stammen aus dem Planer und den Rechtsseiten
   (style.css, impressum.css), damit der Übergang zum Planer nahtlos wirkt. */

:root {
  color-scheme: light;
  --brand: #16231c;
  --brand-deep: #101a15;
  --brand-soft: #1e3128;
  --ink: #17241d;
  --muted: #5f6b63;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --line: #dfe3dc;
  --accent: #e8871e;
  --accent-dark: #c96f0e;
  --accent-ink: #a64d12;
  --on-dark: rgba(255, 255, 255, 0.74);
  --wrap: min(1120px, calc(100% - 40px));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Die Kopfleiste klebt oben – Sprungziele dürfen nicht darunter verschwinden. */
section[id] { scroll-margin-top: 84px; }

/* Dunkel, damit die durchsichtige Kopfleiste am Seitenanfang auf demselben
   Grün sitzt wie der Hero darunter. Der helle Papierton kommt von <main>. */
body {
  margin: 0;
  color: var(--ink);
  background: var(--brand);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main { background: var(--paper); }

h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.12; margin: 0; }
p { margin: 0; }
img, svg { max-width: 100%; }

a { color: var(--accent-ink); }
a:hover { color: #71330b; }

:focus-visible {
  outline: 3px solid rgba(232, 135, 30, 0.6);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: var(--wrap); margin-inline: auto; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  border-radius: 10px;
  transition: top 0.15s;
}

.skip-link:focus-visible { top: 12px; }

/* ------------------------------------------------------------ Logo/Marke */

/* Kopf- und Fußzeile sind dunkel, deshalb steht dort die helle Variante
   des Logos (assets/logo-hell.svg). Das grüne Original liegt in
   assets/logo.svg und steckt im Seitensymbol favicon.svg. */
.brand-mark {
  flex: none;
  width: 32px;
  height: 32px;
}

/* --------------------------------------------------------- Schaltflächen */

.btn {
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 800;
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  translate: var(--magnetic-x) var(--magnetic-y);
  transition: translate 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.15s ease,
    background-color 0.15s ease, box-shadow 0.15s ease;
}

/* Dunkler Text auf Orange: Weiß auf diesem Orange käme nur auf ein
   Kontrastverhältnis von 2,7:1 und wäre für Fließtextgrößen zu schwach. */
.btn-primary {
  position: relative;
  overflow: hidden;
  color: var(--brand);
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(232, 135, 30, 0.28);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -35%;
  width: 28%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-18deg) translateX(-260%);
  transition: transform 0.65s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.btn-primary:hover {
  color: var(--brand);
  background: #f2953a;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(232, 135, 30, 0.34);
}

.btn-primary:hover::after { transform: skewX(-18deg) translateX(620%); }

.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline-color: #fff; }

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.26);
}

.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }

.btn-xl {
  min-height: 62px;
  padding: 18px 40px;
  font-size: 19px;
  border-radius: 15px;
}

/* --------------------------------------------------------------- Kopfleiste */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-stuck {
  background: rgba(16, 26, 21, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--accent), #f5b461);
  box-shadow: 0 0 14px rgba(232, 135, 30, 0.45);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  transition: transform 0.08s linear;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.brand:hover { color: #fff; }

.site-nav {
  display: flex;
  gap: 6px;
}

.site-nav a {
  position: relative;
  padding: 8px 14px;
  color: var(--on-dark);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 9px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.09); }

.site-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  transform-origin: center;
  animation: nav-mark-in 0.28s ease both;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  padding: 3px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
}

.lang-switch button {
  min-width: 42px;
  min-height: 32px;
  padding: 4px 10px;
  color: var(--on-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-switch button:hover { color: #fff; }

.lang-switch button[aria-pressed="true"] {
  color: var(--brand);
  background: #fff;
}

/* ---------------------------------------------------------------- Hero */

.hero {
  --hero-glow-x: 0px;
  --hero-glow-y: 0px;
  position: relative;
  padding: clamp(40px, 7vw, 78px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
  color: #fff;
  /* Der Schein bleibt vom oberen Rand weg, sonst entstünde dort eine sichtbare
     Kante zur Kopfleiste. */
  background:
    radial-gradient(ellipse 62% 55% at 50% 46%, rgba(232, 135, 30, 0.15), transparent 72%),
    var(--brand);
}

/* Eigene, GPU-freundlich verschiebbare Ebene fuer den dezenten Maus-Schein. */
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 43%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 135, 30, 0.085), transparent 76%);
  pointer-events: none;
  transform: translate3d(calc(var(--hero-glow-x) - 50%), calc(var(--hero-glow-y) - 50%), 0);
  will-change: transform;
}

/* Millimeterpapier im Hintergrund – dieselbe Anmutung wie die Zeichenfläche
   des Planers. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 35%, transparent 78%);
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero-inner {
  width: min(900px, calc(100% - 40px));
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  padding: 7px 16px;
  color: #f6c88b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: rgba(232, 135, 30, 0.14);
  border: 1px solid rgba(232, 135, 30, 0.34);
  border-radius: 999px;
}

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(34px, 5.2vw, 54px);
  font-weight: 800;
}

.h1-line { display: block; }
.h1-accent { color: var(--accent); }

.lead {
  max-width: 62ch;
  margin: 22px auto 0;
  color: var(--on-dark);
  font-size: clamp(17px, 1.6vw, 19px);
}

.hero-action { margin-top: 36px; }

.cta-note {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 600;
}

/* ------------------------------------------------- Beispielgrundriss (SVG) */

.hero-plan {
  --plan-rx: 0deg;
  --plan-ry: 0deg;
  position: relative;
  width: min(980px, calc(100% - 32px));
  margin: clamp(36px, 6vw, 58px) auto 0;
  isolation: isolate;
  perspective: 1100px;
  contain: layout style;
}

.plan-svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 30px 46px rgba(0, 0, 0, 0.22);
  transform: rotateX(var(--plan-rx)) rotateY(var(--plan-ry));
  transform-origin: center;
  transform-style: preserve-3d;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease;
  will-change: transform;
}

.hero-plan.is-probing .plan-svg {
  box-shadow: 0 34px 50px rgba(0, 0, 0, 0.25);
  transition-duration: 0.08s;
}

.plan-rooms rect {
  fill: rgba(255, 255, 255, 0.05);
  transition: fill 0.18s ease;
}

.plan-rooms rect.is-room-active { fill: rgba(232, 135, 30, 0.16); }

.plan-labels text { transition: fill 0.18s ease; }
.plan-labels text.is-room-active { fill: #ffd49d; }

.plan-wall path {
  fill: none;
  stroke: #f4f1e6;
  stroke-linecap: round;
}

.plan-wall-outer path { stroke-width: 11; }
.plan-wall-inner path { stroke-width: 8; }

.plan-window rect {
  fill: var(--brand);
  stroke: rgba(244, 241, 230, 0.7);
  stroke-width: 1.5;
}

.plan-window-line path {
  fill: none;
  stroke: rgba(244, 241, 230, 0.85);
  stroke-width: 2.5;
}

.plan-door path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 2;
}

.plan-name {
  fill: #fff;
  font-size: 17px;
  font-weight: 700;
  text-anchor: middle;
}

.plan-area {
  fill: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  text-anchor: middle;
}

.plan-dim path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}

.plan-dim-label {
  fill: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-anchor: middle;
}

/* Ein kleines Mess-Fadenkreuz macht das Beispiel nicht nur dekorativ, sondern
   lässt es sich bereits wie die Zeichenfläche des eigentlichen Planers anfühlen. */
.plan-probe {
  --probe-px: 50%;
  --probe-py: 50%;
  --readout-x: 50%;
  --readout-y: 50%;
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  border-radius: 18px;
  transition: opacity 0.18s ease;
}

.hero-plan.is-probing .plan-probe { opacity: 1; }

.plan-probe::before,
.plan-probe::after {
  content: "";
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(232, 135, 30, 0.72), transparent);
}

.plan-probe::before {
  top: 4%;
  bottom: 7%;
  left: 0;
  width: 1px;
  background: linear-gradient(transparent, rgba(232, 135, 30, 0.72), transparent);
  transform: translate3d(var(--probe-px), 0, 0);
  will-change: transform;
}

.plan-probe::after {
  left: 3%;
  right: 4%;
  top: 0;
  height: 1px;
  transform: translate3d(0, var(--probe-py), 0);
  will-change: transform;
}

.plan-probe-point {
  position: absolute;
  left: 0;
  top: 0;
  width: 11px;
  height: 11px;
  border: 2px solid #ffd49d;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 135, 30, 0.14);
  transform: translate3d(var(--probe-px), var(--probe-py), 0) translate(-50%, -50%);
  will-change: transform;
}

.plan-probe-readout {
  position: absolute;
  left: 0;
  top: 0;
  padding: 5px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: rgba(16, 26, 21, 0.86);
  border: 1px solid rgba(232, 135, 30, 0.55);
  border-radius: 7px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  transform: translate3d(var(--readout-x), var(--readout-y), 0)
    translate(-50%, calc(-100% - 14px));
  will-change: transform;
}

/* ------------------------------------------------------ Abschnittsgerüst */

section { padding: clamp(56px, 8vw, 96px) 0; }

.section-eyebrow {
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

section h2 {
  margin-top: 10px;
  font-size: clamp(29px, 4vw, 44px);
  font-weight: 800;
}

.section-lead {
  max-width: 60ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

/* ------------------------------------------------------- Kostenfreiheit */

.promise { padding-top: clamp(48px, 7vw, 80px); }

.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.promise-card {
  --card-rx: 0deg;
  --card-ry: 0deg;
  --card-lift: 0px;
  --card-x: 50%;
  --card-y: 50%;
  position: relative;
  overflow: hidden;
  padding: 30px 28px 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(30, 46, 36, 0.07);
  transform: perspective(900px) rotateX(var(--card-rx)) rotateY(var(--card-ry)) translateY(var(--card-lift));
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.2s ease;
}

.promise-card:hover {
  --card-lift: -3px;
  box-shadow: 0 22px 48px rgba(30, 46, 36, 0.11);
}

.promise-card h3 {
  margin-top: 12px;
  font-size: 21px;
  font-weight: 800;
}

.promise-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

/* Muss nach ".promise-card p" stehen und dieselbe Spezifität erreichen. */
.promise-card .promise-figure {
  margin-top: 0;
  color: var(--accent);
  font-size: 58px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

/* --------------------------------------------------------------- Ablauf */

.steps { background: var(--panel); }

.step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  padding: 0;
  margin: 46px 0 0;
  list-style: none;
  counter-reset: step;
}

.step { position: relative; padding-top: 26px; border-top: 3px solid var(--line); }

.step::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -3px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #f2b15e);
  transform: scaleX(0);
  transform-origin: left;
}

.step.is-visible::before { animation: step-line-in 0.75s 0.16s ease-out both; }

.step-num {
  display: block;
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.step h3 {
  margin-top: 8px;
  font-size: 23px;
  font-weight: 800;
}

.step p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
}

/* ----------------------------------------------------------- Funktionen */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 46px;
}

.feature {
  --card-rx: 0deg;
  --card-ry: 0deg;
  --card-lift: 0px;
  --card-x: 50%;
  --card-y: 50%;
  position: relative;
  overflow: hidden;
  padding: 28px 26px 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  transform: perspective(900px) rotateX(var(--card-rx)) rotateY(var(--card-ry)) translateY(var(--card-lift));
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.2s ease;
}

.feature:hover {
  --card-lift: -4px;
  box-shadow: 0 18px 40px rgba(30, 46, 36, 0.1);
}

.pointer-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -1px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle 300px at var(--card-x) var(--card-y),
    rgba(232, 135, 30, 0.065), transparent 72%);
  transition: opacity 0.24s ease;
}

.pointer-card:hover::before { opacity: 1; }

.pointer-card > * {
  position: relative;
  z-index: 1;
  transform: translateZ(0);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--brand);
  background: #f1f3ee;
  border-radius: 12px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.pointer-card:hover .feature-icon {
  color: var(--accent-dark);
  background: #fff2df;
  transform: translateZ(22px) scale(1.04);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 800;
}

.feature p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

/* ---------------------------------------------------- Beispiel Bungalow */

.bungalow-example {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(232, 135, 30, 0.12), transparent 28%),
    #e8ece6;
}

.bungalow-example::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -170px;
  width: 460px;
  height: 460px;
  pointer-events: none;
  border: 1px solid rgba(22, 35, 28, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(22, 35, 28, 0.025), 0 0 0 88px rgba(22, 35, 28, 0.02);
}

.bungalow-example-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.32fr);
  gap: clamp(38px, 6vw, 78px);
  align-items: center;
}

.bungalow-copy .section-lead { max-width: 52ch; }

.bungalow-points {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.bungalow-points li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 16px;
}

.bungalow-points li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 9px;
  width: 11px;
  height: 6px;
  border-left: 2.5px solid var(--accent-dark);
  border-bottom: 2.5px solid var(--accent-dark);
  transform: rotate(-45deg);
}

.bungalow-points strong { color: var(--ink); }
.bungalow-copy .btn { margin-top: 30px; }

.bungalow-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}

.bungalow-shot {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #fff;
  border: 1px solid rgba(22, 35, 28, 0.12);
  border-radius: 18px;
  box-shadow: 0 24px 54px rgba(22, 35, 28, 0.16);
}

.bungalow-shot-3d { grid-column: 1 / -1; }
.bungalow-shot-2d { grid-column: 3 / -1; margin-top: -4px; }

.bungalow-shot img {
  display: block;
  width: 100%;
  height: auto;
  background: #dce4d8;
}

.bungalow-shot figcaption {
  padding: 10px 14px 11px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.025em;
}

/* ----------------------------------------------------------- Zielgruppe */

.audience { background: var(--panel); }

.audience-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.check-list {
  display: grid;
  gap: 14px;
  padding: 30px 30px 32px;
  margin: 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 18px;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--ink);
  font-size: 16px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 10px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* ----------------------------------------------------------------- Blog */

.blog-teaser { background: var(--panel); }

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 40px;
}

/* Bewusst flacher als .feature und .promise-card: Der Anriss soll neugierig
   machen und nicht mit den Funktionskarten darüber um Aufmerksamkeit ringen. */
.teaser-card {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.teaser-card:hover {
  color: inherit;
  border-color: rgba(232, 135, 30, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(30, 46, 36, 0.08);
}

.teaser-card h3 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.28;
  /* Überschriften stammen von Besuchenden: Ein einzelnes langes Wort darf
     die Karte nicht auseinanderziehen. */
  overflow-wrap: anywhere;
}

.teaser-card .teaser-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
}

/* Der Anrisstext wird nach drei Zeilen abgeschnitten, damit die Karten in
   einer Reihe gleich hoch bleiben. */
.teaser-card .teaser-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.teaser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* Zweitrangige Schaltfläche auf hellem Grund – btn-ghost ist für die
   dunkle Kopfleiste gemacht und wäre hier unsichtbar. */
.btn-outline {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.btn-outline:hover {
  color: var(--accent-ink);
  background: var(--paper);
  border-color: var(--accent);
}

/* --------------------------------------------------------------- Fragen */

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 40px;
}

.faq details {
  padding: 4px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.faq summary {
  padding: 18px 34px 18px 0;
  font-size: 18px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  position: absolute;
  right: 24px;
  width: 11px;
  height: 11px;
  margin-top: 5px;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details { position: relative; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }

.faq details p {
  padding-bottom: 22px;
  color: var(--muted);
  font-size: 16px;
  max-width: 78ch;
}

/* ------------------------------------------------------------ Abschluss */

.closing {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 55% 70% at 50% 110%, rgba(232, 135, 30, 0.28), transparent 70%),
    var(--brand);
}

.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000 30%, transparent 75%);
}

.closing-inner {
  position: relative;
  max-width: 640px;
  text-align: center;
}

.closing h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; }

.closing-text {
  margin-top: 18px;
  color: var(--on-dark);
  font-size: 18px;
}

.closing .btn { margin-top: 34px; }

/* -------------------------------------------------------------- Fußzeile */

.site-footer {
  padding: clamp(40px, 6vw, 62px) 0 44px;
  color: var(--on-dark);
  background: var(--brand-deep);
}

.footer-inner {
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
}

.footer-nav a {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.footer-note {
  max-width: 66ch;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ------------------------------------------------------------ Einblenden */

/* Nur wenn JavaScript läuft, wird überhaupt etwas versteckt – sonst bliebe
   der halbe Seiteninhalt unsichtbar. */
.js-reveal .reveal {
  opacity: 0;
  translate: 0 16px;
  transition: opacity 0.6s ease, translate 0.6s ease, transform 0.18s ease-out,
    box-shadow 0.2s ease;
}

.js-reveal .reveal.is-visible { opacity: 1; translate: 0 0; }

/* Choreografie nur nach erfolgreichem JavaScript-Start. Ohne JavaScript bleibt
   der Hero vollständig sichtbar und bedienbar. */
.motion-ready .hero .eyebrow { animation: hero-rise-in 0.55s 0.04s ease-out both; }
.motion-ready .hero .h1-line:first-child { animation: hero-rise-in 0.72s 0.12s ease-out both; }
.motion-ready .hero .h1-accent { animation: hero-rise-in 0.72s 0.2s ease-out both; }
.motion-ready .hero .lead { animation: hero-rise-in 0.68s 0.3s ease-out both; }
.motion-ready .hero .hero-action { animation: hero-rise-in 0.68s 0.4s ease-out both; }
.motion-ready .hero .hero-plan { animation: plan-enter 0.9s 0.46s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

.motion-ready .hero-plan:not(.is-drawing) .plan-wall path {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
}

.motion-ready .hero-plan:not(.is-drawing) .plan-window,
.motion-ready .hero-plan:not(.is-drawing) .plan-window-line,
.motion-ready .hero-plan:not(.is-drawing) .plan-door,
.motion-ready .hero-plan:not(.is-drawing) .plan-labels,
.motion-ready .hero-plan:not(.is-drawing) .plan-dim { opacity: 0; }

.hero-plan.is-drawing .plan-wall path {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: plan-draw 1.3s 0.05s cubic-bezier(0.35, 0.1, 0.2, 1) forwards;
}

.hero-plan.is-drawing .plan-wall-inner path { animation-delay: 0.18s; }

.hero-plan.is-drawing .plan-window,
.hero-plan.is-drawing .plan-window-line,
.hero-plan.is-drawing .plan-door,
.hero-plan.is-drawing .plan-labels,
.hero-plan.is-drawing .plan-dim {
  opacity: 0;
  animation: plan-detail-in 0.5s 0.48s ease-out forwards;
}

.hero-plan.is-drawing .plan-labels { animation-delay: 0.62s; }
.hero-plan.is-drawing .plan-dim { animation-delay: 0.75s; }

@keyframes hero-rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes plan-enter {
  from { opacity: 0; transform: translateY(34px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes plan-draw { to { stroke-dashoffset: 0; } }

@keyframes plan-detail-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

@keyframes nav-mark-in {
  from { opacity: 0; transform: scaleX(0.25); }
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes step-line-in { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js-reveal .reveal { opacity: 1; translate: 0 0; }
  .btn { translate: 0 0; }
  .promise-card, .feature, .plan-svg { transform: none; }
  .btn-primary:hover, .feature:hover { transform: none; }
  .plan-probe { display: none; }
  .motion-ready .hero-plan:not(.is-drawing) .plan-wall path { stroke-dashoffset: 0; }
  .motion-ready .hero-plan:not(.is-drawing) .plan-window,
  .motion-ready .hero-plan:not(.is-drawing) .plan-window-line,
  .motion-ready .hero-plan:not(.is-drawing) .plan-door,
  .motion-ready .hero-plan:not(.is-drawing) .plan-labels,
  .motion-ready .hero-plan:not(.is-drawing) .plan-dim { opacity: 1; }
}

/* -------------------------------------------------------------- Schmaler */

@media (max-width: 900px) {
  .site-nav { display: none; }
  .bungalow-example-inner { grid-template-columns: 1fr; }
  .bungalow-copy .section-lead { max-width: 62ch; }
  .audience-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .plan-name { font-size: 30px; }
  .plan-area { display: none; }
  .plan-dim-label { font-size: 26px; }
  .plan-dim path { stroke-width: 3; }
  .hero-plan { width: calc(100% - 24px); }
  .btn-xl { width: 100%; padding-inline: 20px; font-size: 17px; }
  .promise-card, .feature { padding: 24px 22px 26px; }
  .bungalow-shot-2d { grid-column: 1 / -1; }
  .check-list { padding: 24px 22px 26px; }
}

@media (max-width: 520px) {
  .header-cta { display: none; }
  .brand-name { display: none; }
  .site-header { gap: 12px; }
  .eyebrow { padding: 6px 13px; font-size: 11.5px; letter-spacing: 0.07em; }
  .faq summary { font-size: 17px; }
}
