/* LED Öhringen – Landingpage 2026
   Tokens aus der Taste-Skill-Richtung "The dark room" (Palette "Green-black and bone").
   Schrift: Work Sans (variabel, lokal gehostet, SIL OFL 1.1). Alle Pfade relativ. */

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/work-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/work-sans-latin-ext-wght-normal.woff2") format("woff2");
  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 {
  --bg: #161c1a;
  --surface: #1f2725;
  --surface-2: #2a3532;     /* Fläche auf --surface (ruhige Buttons, Zusatzkarten) */
  --ink: #e3e2da;
  --muted: #a3a99f;
  --accent: #9fc7b8;
  --accent-ink: #161c1a;
  --accent-deep: #4d8572;   /* Akzent auf hellem Grund (Footer) */
  --ink-soft: #4a514c;      /* gedämpfter Text auf hellem Grund (Footer) */
  --scrim: rgba(22, 28, 26, 0.55);
  --wall1: #2f6bff;   /* Farbe von Wall 1 (wie die Markierung in den Drohnenfotos) */
  --wall2: #ff3b30;   /* Farbe von Wall 2 */
  color-scheme: dark;

  --font: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step-small: 0.9375rem;
  --step-body: 1.125rem;
  --step-lead: 1.5rem;
  --step-h2s: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);

  --margin: clamp(16px, 2vw, 32px);
  --bar-h: 56px; /* Höhe der festen Navigationsleiste (Telefon, einzeilig) */

  /* Bewegung (emil-design-eng): starkes Ease-out, kurze Zeiten */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--bar-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Hero: "Name under a photograph" ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: 100svh;
  padding-bottom: var(--margin);
}

.hero__photo {
  position: relative;
  margin: 0;
  background: var(--surface);
  overflow: hidden;
  aspect-ratio: 1 / 1; /* Telefon: quadratischer Ausschnitt des Drohnenfotos (img/lage-ueberblick-mobil.webp), ganz zu sehen */
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
/* Ab Tablet liegt die Leiste über dem Foto: dunkler Verlauf oben, damit Logo und Navigation lesbar bleiben (Himmel ist hell) */
@media (min-width: 768px) {
  .hero__photo::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: calc(var(--bar-h) + 56px);
    z-index: 1;
    background: linear-gradient(to bottom, rgba(22, 28, 26, 0.78), rgba(22, 28, 26, 0)); /* taste-skill-ignore: neutraler Verlauf über dem Foto, nur für die Lesbarkeit der Leiste */
    pointer-events: none;
  }
}

/* Dauerhaft sichtbare Leiste (position: fixed): Logo links, Navigation rechts. Ohne JavaScript immer mit Hintergrund. */
.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 16px;
  min-height: var(--bar-h);
  padding: 0 var(--margin);
  background: var(--bg);
  transition: background-color 200ms ease-out;
}
.js .bar:not(.is-solid) { background: transparent; }
.bar-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 8px; pointer-events: none; }
.bar__logo { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.bar__nav {
  display: flex;
  gap: clamp(10px, 2.2vw, 32px);
  font-size: var(--step-small);
  font-weight: 500;
}
.bar__nav a {
  text-decoration: none;
  padding: 0.5rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.hero__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px var(--margin) 0;
}

.hero__row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 0 clamp(8px, 2vw, 24px);
}
.hero__lead {
  margin: 0;
  max-width: 38ch;
  font-size: var(--step-lead);
  line-height: 1.35;
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 48px;
  padding: 0 28px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: var(--step-body);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0;
  white-space: nowrap;
  transition: background-color 150ms ease-out, transform 160ms var(--ease-out);
}

.hero__name {
  order: -1;
  margin: 0;
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.92;
  padding-bottom: 0.06em;
  margin-left: -0.05em;
  font-size: 20vw;
  /* Telefon: zweizeilig "LED / Öhringen" */
}

@media (min-width: 768px) {
  .hero {
    grid-template-rows: 52svh 1fr;
    height: 100svh;
    min-height: 600px;
    padding-bottom: 0;
  }
  .hero__photo { aspect-ratio: auto; }
  .hero__photo img { object-position: 50% 75%; } /* Walls und Pfeile liegen im unteren Bilddrittel */
  /* Tablet hochkant: 4:3-Ausschnitt (Walls und Pfeile in der Mitte), damit unter dem Foto keine große Leerfläche entsteht */
  @media (max-width: 1100px) and (orientation: portrait) {
    .hero { grid-template-rows: auto 1fr; }
    .hero__photo { aspect-ratio: 4 / 3; }
    .hero__photo img { object-position: 55% 75%; }
  }
  .hero__body { justify-content: flex-end; padding-top: 0; padding-bottom: var(--margin); }

  .hero__row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
  }
  .hero__lead { max-width: 34ch; }
  .btn { align-self: flex-start; }

  .hero__name {
    /* füllt die Breite zwischen den Rändern; auf flachen Fenstern begrenzt die Höhe */
    font-size: min(16vw, 26svh);
    line-height: 0.95;
    padding-bottom: 0.04em;
    margin-left: -0.08em; /* optischer Randausgleich der Versalie L */
    white-space: nowrap;
  }
  .hero__br { display: none; }
  .hero__name { order: 0; }
}

/* ---------- Grundraster und gemeinsame Bausteine ---------- */

:root { --space-section: clamp(80px, 11vw, 176px); }

.section { padding-block: var(--space-section); }

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 24px;
  padding-inline: var(--margin);
}
.grid > * { grid-column: 1 / -1; }

h2 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(2.125rem, 4.6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
h3 { margin: 0; font-weight: 500; font-size: var(--step-lead); line-height: 1.2; }
p { margin: 0; }
dl, dd { margin: 0; }
address { font-style: normal; }

.link {
  color: var(--accent);
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

/* ---------- Intro ---------- */

/* Hervorgehobene Überschriften in der Akzentfarbe (Design-Grün) */
#intro-h, #walls-h, #impressionen-h, #leistungen-h, #preise-h, #technik-h, #ablauf-h, #faq-h, #kontakt-h { color: var(--accent); }
/* Überschrift mit kleiner Zusatzzeile darunter (Standort / am Tor zu Öhringen) */
.h2__sub { display: block; margin-top: 14px; font-size: var(--step-lead); font-weight: 400; line-height: 1.3; letter-spacing: 0; color: var(--ink); }
.intro__h { font-size: clamp(2rem, 8.4vw, 3.25rem); line-height: 0.98; letter-spacing: -0.04em; }
/* Aufsteigender Chart als Sinnbild für Erfolg (dekorativ): Säulen wachsen einmal von unten, dann blendet der Pfeil ein */
.intro__lead { margin-top: 28px; max-width: 34ch; font-size: var(--step-lead); line-height: 1.3; }
.intro__chart { margin-top: 40px; max-width: 400px; color: var(--accent); }
.intro__chart svg { display: block; width: 100%; height: auto; }
.js .chart__bar { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0.2); opacity: 0; transition: transform 640ms var(--ease-out), opacity 360ms var(--ease-out); }
.js .chart__trend { opacity: 0; transition: opacity 400ms 520ms var(--ease-out); }
.js .intro__chart.is-in .chart__bar, .js .intro__chart.is-in .chart__trend { transform: none; opacity: 1; }
.chart__bar:nth-of-type(2) { transition-delay: 60ms; }
.chart__bar:nth-of-type(3) { transition-delay: 120ms; }
.chart__bar:nth-of-type(4) { transition-delay: 180ms; }
.chart__bar:nth-of-type(5) { transition-delay: 240ms; }
.chart__bar:nth-of-type(6) { transition-delay: 300ms; }
@media (prefers-reduced-motion: reduce) {
  .js .chart__bar { transform: none; transition: opacity 240ms ease-out; transition-delay: 0s; }
  .js .chart__trend { transition: opacity 240ms ease-out; }
}
.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: clamp(56px, 8vw, 128px);
  padding-inline: var(--margin);
}
/* Kennzahlen als grüne Boxen (Akzentfläche mit dunkler Schrift): Kernaussage oben (fett), Zahl darunter, Detailzeile unten */
.fact { display: flex; flex-direction: column; gap: 12px; min-height: 250px; padding: 28px 24px 26px; background: var(--accent); color: var(--accent-ink); }
.fact dt { display: flex; flex-direction: column; gap: 18px; }
.fact dt strong { font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.fact dt > span { font-size: clamp(2.5rem, 4.4vw, 4rem); font-weight: 300; line-height: 1; letter-spacing: -0.035em; }
.fact dd { margin-top: auto; font-size: var(--step-small); line-height: 1.4; color: rgba(22, 28, 26, 0.78); }
@media (min-width: 600px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact dt strong { min-height: 2.4em; } /* zwei Zeilen Platz, damit die Zahlen nebeneinander auf einer Höhe stehen */
}

/* ---------- Walls ---------- */

.walls__head { row-gap: 32px; }
.walls__where { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.walls__where address { font-size: var(--step-lead); line-height: 1.3; }
.walls__cards { margin-top: clamp(48px, 7vw, 96px); row-gap: 56px; }
.wall__photo { position: relative; margin: 0; }
.wall img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.wall h3 { margin: 24px 0 16px; font-size: var(--step-h2s); font-weight: 400; }
.wall__facts { display: grid; gap: 14px; }
.wall__facts dt { color: var(--muted); font-size: var(--step-small); }
.wall__facts dd { font-size: var(--step-body); }


/* ---------- Leistungen ---------- */

.leistungen__h { max-width: 14ch; margin-bottom: 32px; }
.leistungen .grid { row-gap: 16px; }
/* Die drei Leistungen als grüne Boxen (Akzentfläche mit dunkler Schrift), wie die Kennzahlen */
.leistung { display: flex; flex-direction: column; gap: 16px; padding: 28px 24px 32px; background: var(--accent); color: var(--accent-ink); }
.leistung p { max-width: 38ch; line-height: 1.45; }
.leistung h3 { margin-bottom: 4px; font-weight: 600; }
.leistung a { text-underline-offset: 0.2em; }

/* ---------- Technik ---------- */

.technik__intro { display: flex; flex-direction: column; gap: 24px; margin-bottom: 48px; }
.technik__intro p { font-size: var(--step-lead); line-height: 1.3; max-width: 26ch; }
.specs, .contact { display: grid; gap: 22px; }
.specs > div, .contact > div { display: grid; gap: 4px; }
.specs dt, .contact dt { color: var(--muted); font-size: var(--step-small); }
.specs dd, .contact dd { font-size: var(--step-body); line-height: 1.35; }

/* ---------- Preise ---------- */

.preise__intro { display: flex; flex-direction: column; gap: 24px; margin-bottom: 56px; }
.preise__intro p { font-size: var(--step-body); max-width: 36ch; color: var(--muted); }
.preise__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: stretch; }
/* Jede Gruppe (Reichweitenpakete, Jobanzeige, Event-Werbung, Sonderkonditionen) als grüne Box, Schrift dunkel */
.group { padding: 28px 24px 32px; background: var(--accent); color: var(--accent-ink); }
.group h3 { font-size: var(--step-lead); font-weight: 600; }
.group__note { margin-top: 4px; color: rgba(22, 28, 26, 0.78); font-size: var(--step-small); }
.group ul { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 28px; }
/* Pakete als echte Tabellen (table/tr/th/td mit ARIA-Rollen, damit die Tabellensemantik trotz Grid-Darstellung bleibt): Name links, Preis rechts, darunter die Leistungen */
.pakete { display: block; margin: 24px 0 0; }
.pakete tbody { display: grid; gap: 28px; }
.pakete tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: baseline; font-size: var(--step-body); }
.pakete th, .pakete td { padding: 0; text-align: left; }
.pakete td.row__price { text-align: right; }
.pakete td:nth-child(n+3) { grid-column: 1 / -1; font-size: var(--step-small); line-height: 1.45; color: rgba(22, 28, 26, 0.8); }
.pakete td:nth-child(3) { margin-top: 6px; }
.row__name { font-weight: 500; }
.row__price { color: rgba(22, 28, 26, 0.8); font-variant-numeric: tabular-nums; }
.row__price b { color: var(--accent-ink); font-weight: 600; }
.group--rabatt p { margin-top: 14px; max-width: 44ch; font-size: var(--step-body); line-height: 1.5; }
.group--rabatt h3 { margin-bottom: 18px; }
.group--rabatt ul { display: block; margin: 8px 0 0; padding-left: 1.25em; list-style: disc; font-size: var(--step-body); line-height: 1.5; }
.group--rabatt li { padding-left: 0.2em; }
.group--rabatt li + li { margin-top: 4px; }
.group--rabatt li::marker { color: var(--accent-ink); }
.rabatt__cols { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 48px; }
.rabatt__cols p:first-child { margin-top: 0; }
.rabatt__cols > div + div { margin-top: 14px; }
.preise__list .btn { margin-top: 8px; }

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

.ablauf__h { margin-bottom: clamp(32px, 5vw, 72px); font-size: var(--step-h2s); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: clamp(32px, 4vw, 56px); }
.steps li { display: grid; gap: 12px; align-items: end; }
.step__verb { font-size: clamp(2.75rem, 12vw, 9.5rem); font-weight: 300; line-height: 0.95; letter-spacing: -0.045em; transition: color 350ms ease-out; }
/* Der Schritt in Bildschirmmitte wird beim Scrollen grün (js/main.js, Teil 0d), danach wieder hell */
.steps li.is-active .step__verb { color: var(--accent); }
.steps p { max-width: 32ch; font-size: var(--step-body); line-height: 1.45; }

/* ---------- Impressionen ---------- */

/* Abschnitte, die direkt an einen vorherigen anschließen, mit halbem Abstand nach oben */
.impressionen, .technik { padding-top: calc(var(--space-section) * 0.4); }
.impressionen__h { margin-bottom: 48px; }
.imp { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.imp + .imp { margin-top: 24px; }
video.imp { display: block; background: var(--surface); cursor: pointer; }
.imp--3 { width: 78%; margin-left: auto; }
.imp--extra { display: none; }

/* ---------- CTA ---------- */

.cta { background: var(--surface); }
.cta__text { margin-bottom: 40px; font-size: var(--step-lead); line-height: 1.3; max-width: 22ch; }
.cta__text a { white-space: nowrap; }
.cta__card {
  padding: clamp(28px, 4vw, 56px);
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  display: grid;
  gap: 20px;
}
.cta__card h2 { font-size: var(--step-h2s); font-weight: 400; letter-spacing: -0.02em; }
.cta__card p { max-width: 36ch; margin-inline: auto; font-size: var(--step-body); }
.btn--bar { width: 100%; min-height: 56px; background: var(--bg); color: var(--ink); }

/* ---------- Kontakt ---------- */

.kontakt .grid { row-gap: 40px; }

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(48px, 6vw, 96px) var(--margin) 28px;
}
.footer a { text-decoration: none; }
.footer :focus-visible { outline-color: var(--bg); }
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; font-size: var(--step-body); line-height: 1.5; }
.footer__cols p { color: var(--ink-soft); }
.footer__cols a { color: var(--ink-soft); }
.footer .footer__first { color: var(--bg); font-weight: 600; }
.footer__mark {
  margin: clamp(64px, 10vw, 160px) 0 0 -0.05em;
  font-size: 20vw;
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.045em;
  padding-bottom: 0.06em;
}
.footer__legal { margin-top: 16px; font-size: var(--step-small); color: var(--ink-soft); }

/* ---------- Logo im Hero ---------- */

.logo { --uml-s: 0.14em; --uml-g: 0.12em; font-size: 1.25rem; font-weight: 300; line-height: 1; letter-spacing: -0.045em; white-space: nowrap; }

/* "LED" der Wortmarke auf einem grünen Panel (schematische LED-Wall) */
.logo__led { display: inline-block; margin-right: 0.3em; padding: 0.16em 0.24em 0.12em 0.22em; background: var(--accent); color: var(--accent-ink); }

/* Ö der Wortmarke: statt der Punkte zwei Panels (zwei Walls) in der Akzentfarbe */
.uml { position: relative; display: inline-block; }
.uml i { position: absolute; top: var(--uml-y, 0em); width: var(--uml-s, 0.095em); height: var(--uml-s, 0.095em); background: var(--uml-color, var(--accent)); }
.uml i:first-child { left: calc(50% - var(--uml-g, 0.115em) / 2 - var(--uml-s, 0.095em)); }
.uml i:last-child { left: calc(50% + var(--uml-g, 0.115em) / 2); }
.footer { --uml-color: var(--accent-deep); }

/* ---------- Konfigurator-Overlay ---------- */

html.is-locked { overflow: hidden; }
.overlay {
  width: 100%; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--bg); color: var(--ink);
}
.overlay[open] { display: flex; flex-direction: column; }
.overlay::backdrop { background: rgba(0, 0, 0, 0.7); }
.overlay__bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-left: 20px; }
.overlay__newtab { font-size: var(--step-small); color: var(--muted); text-underline-offset: 0.25em; }
.overlay__close {
  flex: none; min-height: 48px; padding: 0 20px;
  background: var(--accent); color: var(--accent-ink); border: 0; font: inherit; font-weight: 600; cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.overlay__close:active { transform: scale(0.97); }
.overlay__frame { flex: 1; width: 100%; border: 0; background: #fff; }

/* ---------- ab Tablet / Desktop ---------- */

@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }

  .intro .grid { row-gap: 0; }
  .intro__h { grid-column: 1 / 9; font-size: clamp(2.5rem, 5vw, 5.25rem); }
  .intro__lead { grid-column: 1 / 8; margin-top: 32px; }
  .intro__chart { grid-column: 9 / 13; grid-row: 1 / span 2; margin-top: 0.5rem; justify-self: end; width: 100%; }

  .walls__head h2 { grid-column: 1 / 8; }
  .walls__where { grid-column: 9 / 13; }
  .walls__cards .wall:nth-child(1) { grid-column: 1 / 7; }
  .walls__cards .wall:nth-child(2) { grid-column: 7 / 13; }

  .leistungen__h { grid-column: 1 / -1; margin-bottom: 40px; }

  .technik__intro { grid-column: 1 / 6; margin-bottom: 0; }
  .specs { grid-column: 7 / 13; }

  .preise__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group--pakete { grid-row: span 2; }
  .group--rabatt { grid-column: 1 / -1; }
  .rabatt__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rabatt__cols > div + div { margin-top: 0; }
  .preise__list .btn { grid-column: 1 / -1; justify-self: start; }

  .steps li { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .step__verb { grid-column: 1 / 9; font-size: clamp(2.75rem, 9.4vw, 9.5rem); } /* passt in die linken 8 Spalten, ohne den Text daneben zu berühren */
  .steps p { grid-column: 9 / 13; }

  .impressionen__h { grid-column: 1 / -1; }
  .imp { margin: 0; }
  .imp + .imp { margin-top: 0; }
  .impressionen .grid { row-gap: 32px; }
  .imp--extra { display: block; }
  .imp--2 { grid-column: 1 / 8; grid-row: 2; width: 100%; }
  .imp--4 { grid-column: 9 / 13; grid-row: 2; align-self: end; width: 100%; margin-top: 12vw; }
  .imp--5 { grid-column: 1 / 5; grid-row: 3; width: 100%; }
  .imp--3 { grid-column: 5 / 13; grid-row: 3; width: 100%; }

  .faq__h { grid-column: 1 / 6; }
  .faq__list { grid-column: 6 / 13; }

  .cta__text { grid-column: 1 / 5; align-self: end; margin-bottom: 0; }
  .cta__card { grid-column: 6 / 13; --tilt: -1.2deg; transform: rotate(var(--tilt)); }

  .kontakt h2 { grid-column: 1 / 6; }
  .contact { grid-column: 7 / 13; }

  .footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__mark { font-size: min(16vw, 26svh); white-space: nowrap; margin-left: -0.08em; }
  .overlay { width: min(1100px, 94vw); height: 94dvh; margin: auto; }
}

/* ---------- Häufige Fragen ---------- */

.faq__h { margin-bottom: clamp(32px, 5vw, 56px); font-size: var(--step-h2s); }
.faq__list { display: grid; gap: 8px; align-content: start; }
.faq details { background: var(--surface); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  padding: 14px 20px;
  font-size: var(--step-body);
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 20px; max-width: 60ch; color: var(--muted); }
.faq details p a { color: var(--ink); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ---------- Einwilligung (Cookie-Dialog, eigene Lösung, js/main.js Teil 4) ---------- */

.consent {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(24px, 4vw, 40px);
  border: 0;
  background: var(--surface);
  color: var(--ink);
  overflow: auto;
}
.consent::backdrop { background: rgba(0, 0, 0, 0.7); }
.consent h2 { margin: 0 0 16px; font-size: var(--step-h2s); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }
.consent p { margin: 0 0 16px; max-width: 46ch; line-height: 1.45; }
.consent a { color: var(--ink); }
.consent__opts { display: grid; gap: 8px; margin: 24px 0; }
.consent__opt { display: flex; align-items: flex-start; gap: 16px; padding: 14px 16px; background: var(--surface-2); }
.consent__opt input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--accent); }
.consent__opt span { display: grid; gap: 2px; }
.consent__opt small { color: var(--muted); font-size: var(--step-small); line-height: 1.4; }
.consent__actions { display: grid; gap: 8px; }
.consent__actions .btn { width: 100%; align-self: stretch; }
button.btn { border: 0; font-family: inherit; cursor: pointer; }
.btn--quiet { background: var(--surface-2); color: var(--ink); }
.consent__actions .consent__save { grid-column: 1 / -1; }
.consent h2:focus { outline: none; }
@media (min-width: 560px) {
  .consent__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (hover: hover) and (pointer: fine) {
  .btn--quiet:hover { background: #34423d; }
}
.consent[open] { animation: dialog-in 200ms var(--ease-out); }
.consent[open]::backdrop { animation: fade 200ms ease-out; }
@media (prefers-reduced-motion: reduce) {
  .consent[open] { animation: fade 150ms ease-out; }
}

/* ---------- Rechtsseiten (Impressum, Datenschutz) ---------- */

.legal-head { position: sticky; top: 0; z-index: 20; padding: var(--margin); background: var(--bg); }
.legal-head a { text-decoration: none; font-size: 0.9375rem; }
.legal { max-width: 76ch; margin: 0 var(--margin); padding: clamp(24px, 5vw, 72px) 0 96px; }
.legal h1 { margin: 0 0 40px; font-weight: 300; font-size: clamp(2.25rem, 6vw, 4.5rem); line-height: 1.04; letter-spacing: -0.035em; }
.legal h2 { margin: 56px 0 8px; font-weight: 400; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.2; letter-spacing: -0.01em; }
.legal h3 { margin: 28px 0 4px; font-weight: 600; font-size: 1.125rem; line-height: 1.3; }
.legal p, .legal li { margin-top: 12px; font-size: 1.0625rem; line-height: 1.6; }
.legal ul { margin: 12px 0 0; padding-left: 1.25em; }
.legal a { color: var(--accent); text-underline-offset: 0.2em; }
.legal .todo { margin-top: 16px; padding: 14px 18px; background: var(--surface); color: var(--ink); font-size: 1rem; }
.legal-foot { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 28px var(--margin) 48px; font-size: 0.9375rem; }
.legal-foot a { text-decoration: none; color: var(--muted); }

/* Leistungen dreispaltig erst ab 1024 px; Preise mit Überschrift links neben der Liste erst ab 1280 px (darunter steht die Liste in voller Breite, zweispaltig) */
@media (min-width: 1024px) {
  .leistung { grid-column: span 4; }
}
@media (min-width: 1280px) {
  .preise__intro { grid-column: 1 / 5; margin-bottom: 0; }
  .preise__list { grid-column: 5 / 13; }
}
@media (min-width: 1200px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact dt > span { font-size: clamp(2.5rem, 3.4vw, 3.75rem); } /* „6 Sekunden“ bleibt einzeilig */
}

/* ---------- Bewegung ----------
   Nur transform/opacity (bzw. translate/scale). Nichts bewegt sich ohne Zweck: Einstieg des Heros beim Laden,
   Einblenden der Inhalte beim Scrollen (einmal), Druck- und Hover-Rückmeldung. Fokus erscheint ohne Verzögerung. */

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes settle { from { transform: scale(1.04); } }
@keyframes fade { from { opacity: 0; } }
@keyframes dialog-in { from { opacity: 0; transform: scale(0.98); } }

/* Hero beim Laden: Foto setzt sich, dann Navigation, Name, Satz, Button (60–120 ms Versatz) */
.hero__photo img { animation: settle 700ms var(--ease-out) backwards; }
.bar__logo, .bar__nav { animation: fade 450ms 150ms ease-out backwards; }
.hero__name { animation: rise 600ms 220ms var(--ease-out) backwards; }
.hero__lead { animation: rise 520ms 320ms var(--ease-out) backwards; }
.hero .btn { animation: rise 520ms 400ms var(--ease-out) backwards; }

/* Inhalte beim Scrollen: einmal einblenden, nur wenn JavaScript läuft (sonst ist alles sofort sichtbar) */
.js [data-reveal] {
  opacity: 0;
  translate: 0 12px;
  transition: opacity 360ms var(--ease-out), translate 360ms var(--ease-out);
}
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* Rückmeldung beim Drücken */
.btn:active { transform: scale(0.97); }

/* Overlay (Testversion): schnell hinein, ohne Verzögerung hinaus */
.overlay[open] { animation: dialog-in 200ms var(--ease-out); }
.overlay[open]::backdrop { animation: fade 200ms ease-out; }

/* Hover nur für Mauszeiger, nie für Touch */
@media (hover: hover) and (pointer: fine) {
  .bar__nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
  .btn:hover { background: var(--ink); }
  .link:hover { color: var(--ink); }
  .btn--bar:hover { background: var(--surface); }
  .footer a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
  .legal-head a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
  .legal-foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; }
  .link, .bar__nav a, .footer a { transition: color 180ms ease; }
  .cta__card, .js .cta__card[data-reveal] { transition: transform 300ms var(--ease-in-out), opacity 360ms var(--ease-out), translate 360ms var(--ease-out); }
  .cta__card:hover { transform: rotate(0deg); }
}

/* Weniger Bewegung: nur sanftes Einblenden, keine Wege */
@media (prefers-reduced-motion: reduce) {
  .hero__photo img, .bar__logo, .bar__nav, .hero__name, .hero__lead, .hero .btn { animation: fade 300ms ease-out backwards; }
  .js [data-reveal] { translate: none; transition: opacity 240ms ease-out; }
  .btn:active { transform: none; }
  .overlay[open] { animation: fade 150ms ease-out; }
  .cta__card:hover { transform: rotate(var(--tilt, 0deg)); }
}


/* Sprunglink und Touch-Ziele */
.skip { position: absolute; left: var(--margin); top: -100px; z-index: 30; padding: 12px 20px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }
.footer a, .contact a, .legal-foot a, .legal-head a { display: inline-block; padding-block: 0.15em; }
@media (pointer: coarse) {
  .footer__cols a, .contact a, .legal-foot a, .legal-head a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Leiste: Telefon kompakt einzeilig, ab Tablet größeres Logo, unter 340 px zweizeilig */
@media (max-width: 767px) {
  :root { --bar-h: 92px; } /* Zeile 1: Logo und grüner Button, Zeile 2: die fünf Links */
  .logo { font-size: 1rem; }
  .bar { gap: 0 8px; padding-top: 4px; }
  .bar__logo { order: 1; }
  .bar__cta {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }
  .bar__nav { order: 3; flex: 1 0 100%; justify-content: space-between; font-size: 0.8125rem; gap: 4px; }
  .bar__nav a { min-height: 40px; }
  .bar__cta:active { transform: scale(0.97); }
  /* Das Foto beginnt unterhalb der Leiste, damit nichts überdeckt wird */
  .hero__photo { margin-top: var(--bar-h); }
}
@media (min-width: 768px) {
  :root { --bar-h: 72px; }
  .logo { font-size: 1.625rem; }
  .bar__cta { display: none; }
}
/* Schmale Telefone: Links etwas kleiner (Platz für „Werbeflächen“); unter 340 px umbrechen die Links in zwei Zeilen */
@media (max-width: 374px) {
  .bar__nav { font-size: 0.75rem; }
}
@media (max-width: 339px) {
  :root { --bar-h: 132px; }
  .bar__cta { padding: 0 10px; font-size: 0.8125rem; }
  .bar__nav { flex-wrap: wrap; justify-content: center; gap: 0 14px; }
}

/* Mitlaufender Button ab Tablet: unter der Leiste, rechts; sichtbar, sobald der Hero-Button nicht mehr im Bild ist */
.btn--float { display: none; }
@media (min-width: 768px) {
  .btn--float {
    position: fixed;
    top: calc(var(--bar-h) + 12px);
    right: var(--margin);
    z-index: 19;
    display: inline-flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 200ms ease-out, transform 220ms var(--ease-out), visibility 0s 200ms, background-color 150ms ease-out;
  }
  .btn--float.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .btn--float.is-on:active { transform: scale(0.97); }
}
@media (prefers-reduced-motion: reduce) {
  .btn--float { transform: none; }
}

/* ---------- Legenden in den Lagefotos (Farben von Wall 1 und Wall 2) ---------- */

.legend {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(22, 28, 26, 0.88);
  color: var(--ink);
  font-size: var(--step-small);
  line-height: 1.3;
}
.legend__item::before {
  content: "";
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-right: 0.55em;
  background: var(--wall1);
}
.legend__item--2::before { background: var(--wall2); }
.legend__note { color: var(--muted); }
.wall--1 h3::before, .wall--2 h3::before { content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin-right: 0.35em; vertical-align: 0.12em; background: var(--wall1); }
.wall--2 h3::before { background: var(--wall2); }
.wall__note { margin-top: 12px; color: var(--muted); font-size: var(--step-small); }
.walls__overview { margin-top: clamp(64px, 8vw, 120px); }
.walls__overview figure { position: relative; margin: 0; }
.walls__overview img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
@media (max-width: 767px) {
  .walls__overview img { aspect-ratio: 870 / 640; } /* Telefon-Fassung der Lageskizze, siehe <picture> */
}

/* Foto antippen/anklicken: ganzes Bild groß (Lightbox) */
.zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: zoom-in; }
.zoom__hint { position: absolute; right: 12px; bottom: 12px; padding: 6px 12px; background: rgba(22, 28, 26, 0.82); color: var(--ink); font-size: var(--step-small); font-weight: 500; line-height: 1.2; }
.zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lightbox {
  width: 100%; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--bg); color: var(--ink);
}
.lightbox[open] { display: flex; flex-direction: column; animation: dialog-in 200ms var(--ease-out); }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.85); }
.lightbox__bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-left: 16px; font-size: var(--step-small); color: var(--muted); }
.lightbox__close {
  flex: none; min-height: 48px; padding: 0 20px;
  background: var(--accent); color: var(--accent-ink); border: 0; font: inherit; font-weight: 600; cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.lightbox__close:active { transform: scale(0.97); }
.lightbox__scroll { flex: 1; overflow: auto; overscroll-behavior: contain; }
.lightbox__scroll img { display: block; width: 1500px; max-width: none; height: auto; } /* Handy: größer als der Bildschirm, per Wischen verschieben */
@media (min-width: 768px) {
  .lightbox__scroll img { width: 100%; max-width: 2000px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox[open] { animation: fade 150ms ease-out; }
}

.legend--below { position: static; max-width: none; margin-top: 14px; padding: 0; background: none; }
/* Legende der Lageskizze: ab 1100 px oben links im Bild (wie ein Kartenschlüssel). Auf schmaleren Bildschirmen würde sie die Beschriftung "Zubringer" überdecken und steht deshalb unter dem Bild (ab Tablet in einer Zeile). */
@media (max-width: 1099px) {
  .walls__overview .legend { position: static; max-width: none; margin-top: 14px; padding: 0; background: none; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .walls__overview .legend { flex-direction: row; flex-wrap: wrap; gap: 6px 28px; }
}
