/* ============================================================
   Martinez Baugesellschaft mbH — rohbau-regensburg.de
   Design: "Industrial Premium"
   Signature: die Kursiv-Schräge des MARTINEZ-Schriftzugs (-12°)
   kehrt als Struktur-Motiv wieder — Eyebrows, Akzentbalken,
   Trennlinien, Hover-Zustände.
   ============================================================ */

/* ---------- 1. Fonts (lokal, DSGVO) ---------- */
@font-face {
  font-family: "Saira Condensed";
  src: url("../fonts/sairacondensed-700-latin.woff2") format("woff2");
  font-weight: 700; 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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Saira Condensed";
  src: url("../fonts/sairacondensed-700-latin-ext.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Saira Condensed";
  src: url("../fonts/sairacondensed-800-latin.woff2") format("woff2");
  font-weight: 800; 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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Saira Condensed";
  src: url("../fonts/sairacondensed-800-latin-ext.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 2. Tokens ---------- */
:root {
  --blue-900: #0A2360;
  --blue-700: #103080;
  --blue-500: #2A54C0;
  --red: #D51920;
  --red-600: #B4141B;
  --ink: #1A1C22;
  --muted: #5B616E;
  --beton: #F4F5F7;
  --line: #E4E7EC;
  --white: #FFFFFF;

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1200px;

  --font-display: "Saira Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --skew: -12deg;             /* Signature: Logo-Kursive */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-1: 0 1px 2px rgba(10, 35, 96, .06), 0 4px 16px rgba(10, 35, 96, .06);
  --shadow-2: 0 8px 20px rgba(10, 35, 96, .10), 0 24px 48px rgba(10, 35, 96, .12);

  --header-h: 84px;
  --header-h-sm: 64px;
}

/* ---------- 3. Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* muss die display-Werte der Komponenten schlagen (Buttons, Schritte) */
[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;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

/* Sprite-Icons ohne eigene Klasse bekommen eine Grundgröße —
   sonst rendert der Browser sie mit 300×150 px. */
svg:where(:not([class])) { width: 1.1em; height: 1.1em; flex: none; }

a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

button, input, select, textarea { font: inherit; color: inherit; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--red); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

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

/* ---------- 4. Typografie ---------- */
h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: .005em;
  text-transform: uppercase;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1, .h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2, .h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3, .h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 700; }
h4 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.15rem; margin: 0 0 .4em; letter-spacing: .01em; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); line-height: 1.65; }
.muted { color: var(--muted); }

/* Eyebrow — der schräge rote Marker */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-700);
  margin: 0 0 1em;
}
.eyebrow::before {
  content: ""; width: 26px; height: 8px; background: var(--red);
  transform: skewX(var(--skew)); flex: none;
}
.eyebrow--light { color: rgba(255, 255, 255, .82); }

/* ---------- 5. Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 32px); }
.wrap--narrow { max-width: 780px; }

.section { padding-block: clamp(64px, 9vw, 128px); }
.section--beton { background: var(--beton); }
.section--blue { background: var(--blue-900); color: #fff; }
.section--blue h2, .section--blue h3 { color: #fff; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ---------- 6. Buttons ---------- */
.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 16px 30px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .05em; line-height: 1;
  border: 2px solid var(--btn-bg); border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn > * { position: relative; z-index: 1; }
/* schräger Sheen beim Hover — dasselbe Motiv wie der Eyebrow */
.btn::after {
  content: ""; position: absolute; inset: -2px -40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
  transform: translateX(-130%) skewX(var(--skew));
  transition: transform .55s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(213, 25, 32, .28); color: var(--btn-fg); }
.btn:hover::after { transform: translateX(130%) skewX(var(--skew)); }
.btn:active { transform: translateY(0); }

.btn--outline {
  --btn-bg: transparent; --btn-fg: var(--blue-700);
  border-color: var(--blue-700);
}
.btn--outline:hover { background: var(--blue-700); color: #fff; box-shadow: 0 10px 24px rgba(16, 48, 128, .24); }

.btn--ghost-light {
  --btn-bg: transparent; --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(2px);
}
.btn--ghost-light:hover { background: #fff; color: var(--blue-900); border-color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }

.btn--sm { padding: 12px 20px; font-size: .95rem; }
.btn--full { width: 100%; }

.btn svg { width: 18px; height: 18px; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; text-decoration: none; color: var(--blue-700);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- 7. Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: height .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header::before {
  content: ""; position: absolute; inset: 0 0 -32px;
  background: linear-gradient(180deg, rgba(10, 35, 96, .72) 30%, rgba(10, 35, 96, 0));
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.header.is-solid { height: var(--header-h-sm); background: #fff; box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(10, 35, 96, .07); }
.header.is-solid::before { opacity: 0; }

/* Unterseiten starten direkt mit weißem Header */
body.has-solid-header .header { background: #fff; box-shadow: 0 1px 0 var(--line); }
body.has-solid-header .header::before { opacity: 0; }
body.has-solid-header { padding-top: var(--header-h); }

.header .wrap { display: flex; align-items: center; gap: 24px; position: relative; }

.brand { display: flex; align-items: center; flex: none; margin-right: auto; }
.brand img { width: 168px; height: 48px; object-fit: contain; object-position: left center; transition: width .3s var(--ease), height .3s var(--ease); }
.brand .brand-dark { display: none; }
/* Die helle Variante steht über bewegtem Bild – ein Schatten hält sie auch
   auf hellen Videobildern lesbar. */
.brand .brand-light { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45)); }
.header.is-solid .brand .brand-dark,
body.has-solid-header .brand .brand-dark { display: block; }
.header.is-solid .brand .brand-light,
body.has-solid-header .brand .brand-light { display: none; }
.header.is-solid .brand img { width: 140px; height: 40px; }

/* Navigation (Desktop) */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  display: block; padding: 10px 14px;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.02rem; letter-spacing: .03em; color: #fff; text-decoration: none;
  transition: color .2s;
}
.header.is-solid .nav a, body.has-solid-header .nav a { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px;
  background: var(--red); transform: scaleX(0) skewX(var(--skew)); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav a:hover, .nav a[aria-current] { color: var(--red); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1) skewX(var(--skew)); }

/* Dropdown Leistungen */
.nav-drop { position: relative; }
.nav-drop > button {
  display: flex; align-items: center; gap: .4em;
  background: none; border: 0; cursor: pointer; padding: 10px 14px;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.02rem; letter-spacing: .03em; color: #fff;
}
.header.is-solid .nav-drop > button, body.has-solid-header .nav-drop > button { color: var(--ink); }
.nav-drop > button:hover { color: var(--red); }
.nav-drop > button svg { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.nav-drop > button[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav-drop-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 268px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-2); padding: 8px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav-drop-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav-drop.is-open .nav-drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop-menu a {
  color: var(--ink); padding: 11px 14px; border-radius: var(--radius-sm);
  font-size: .98rem; letter-spacing: .02em;
}
.nav-drop-menu a::after { display: none; }
.nav-drop-menu a:hover { background: var(--beton); color: var(--red); }

.header-cta { flex: none; }
.header .btn { padding: 13px 22px; font-size: .95rem; }

/* Burger */
.burger {
  display: none; flex: none;
  width: 46px; height: 46px; padding: 0;
  background: none; border: 0; cursor: pointer;
  align-items: center; justify-content: center;
}
.burger span {
  display: block; position: relative; width: 26px; height: 2px; background: #fff;
  transition: background-color .2s, transform .3s var(--ease);
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 26px; height: 2px; background: inherit;
  transition: transform .3s var(--ease), top .2s var(--ease);
}
.burger span::before { top: -8px; }
.burger span::after { top: 8px; }
.header.is-solid .burger span, body.has-solid-header .burger span { background: var(--ink); }

/* ---------- 8. Off-Canvas Mobilmenü ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 110;
  visibility: hidden; pointer-events: none;
  /* Das geschlossene Panel steht rechts außerhalb — sonst wächst die Seite in die Breite. */
  overflow: hidden;
}
.drawer[data-open="true"] { visibility: visible; pointer-events: auto; }
.drawer-backdrop {
  position: absolute; inset: 0; background: rgba(10, 35, 96, .5);
  opacity: 0; transition: opacity .3s var(--ease);
  border: 0; width: 100%; cursor: pointer;
}
.drawer[data-open="true"] .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; inset: 0 0 0 auto; width: min(400px, 88vw);
  background: var(--blue-900); color: #fff;
  padding: 24px clamp(20px, 6vw, 32px) 40px;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .38s var(--ease);
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer[data-open="true"] .drawer-panel { transform: translateX(0); }

.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.drawer-top img { width: 150px; height: 43px; object-fit: contain; object-position: left; }
.drawer-close {
  width: 46px; height: 46px; border: 0; background: rgba(255, 255, 255, .1); border-radius: 50%;
  color: #fff; cursor: pointer; display: grid; place-items: center; transition: background-color .2s;
}
.drawer-close:hover { background: var(--red); }
.drawer-close svg { width: 18px; height: 18px; }

.drawer-nav { list-style: none; margin: 0; padding: 0; }
.drawer-nav > li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.drawer-nav a {
  display: block; padding: 16px 0; color: #fff; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.35rem; letter-spacing: .02em;
  transition: color .2s, padding-left .25s var(--ease);
}
.drawer-nav a:hover, .drawer-nav a[aria-current] { color: #fff; padding-left: 10px; }
.drawer-nav a[aria-current] { color: var(--red); }
.drawer-sub { list-style: none; margin: 0 0 14px; padding: 0 0 0 16px; border-left: 2px solid var(--red); }
.drawer-sub a { font-family: var(--font-body); font-weight: 500; font-size: 1rem; text-transform: none; padding: 8px 0; color: rgba(255, 255, 255, .78); letter-spacing: 0; }
.drawer-sub a:hover { color: #fff; }

.drawer-foot { margin-top: auto; padding-top: 32px; }
.drawer-foot .btn { width: 100%; margin-bottom: 16px; }
.drawer-foot .tel { display: flex; align-items: center; gap: .6em; color: #fff; text-decoration: none; font-weight: 600; }
.drawer-foot .tel svg { width: 18px; height: 18px; color: var(--red); }

/* ---------- 9. Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 900px);
  display: flex; align-items: flex-end;
  padding-block: calc(var(--header-h) + 48px) clamp(48px, 7vw, 88px);
  color: #fff; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media img { position: absolute; inset: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 35, 96, .58) 0%, rgba(10, 35, 96, .18) 34%, rgba(10, 35, 96, .72) 78%, rgba(10, 35, 96, .92) 100%),
    linear-gradient(90deg, rgba(10, 35, 96, .55) 0%, rgba(10, 35, 96, 0) 62%);
}
.hero h1 { color: #fff; max-width: 21ch; margin-bottom: .35em; }
.hero .hero-sub { max-width: 60ch; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: rgba(255, 255, 255, .9); margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(32px, 5vw, 52px); }

.chips { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 0; padding: 0; }
.chips li {
  display: flex; align-items: center; gap: .6em;
  font-size: .92rem; font-weight: 500; color: rgba(255, 255, 255, .92);
}
.chips li::before {
  content: ""; width: 10px; height: 16px; background: var(--red);
  transform: skewX(var(--skew)); flex: none;
}

.hero-scroll {
  position: absolute; right: clamp(20px, 5vw, 32px); bottom: clamp(48px, 7vw, 88px); z-index: 1;
  writing-mode: vertical-rl; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6); text-decoration: none; display: none;
}
.hero-scroll::after { content: ""; display: block; width: 1px; height: 54px; margin: 12px auto 0; background: linear-gradient(rgba(255, 255, 255, .6), transparent); }
@media (min-width: 1100px) { .hero-scroll { display: block; } }

/* ---------- 10. Stat-Leiste ---------- */
.stats { background: var(--blue-900); color: #fff; }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border-left: 1px solid rgba(255, 255, 255, .13);
}
.stat { padding: clamp(32px, 4vw, 48px) clamp(16px, 2.5vw, 32px); border-right: 1px solid rgba(255, 255, 255, .13); }
.stat-num {
  font-family: var(--font-display); font-weight: 800; line-height: 1;
  font-size: clamp(2.6rem, 5vw, 4rem); color: #fff;
  display: flex; align-items: baseline; gap: .04em;
}
.stat-num .suffix { color: var(--red); }
.stat-label { margin-top: .5em; font-size: .9rem; color: rgba(255, 255, 255, .68); letter-spacing: .04em; }

/* ---------- 11. Media + Text ---------- */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-text { grid-template-columns: 1.05fr 1fr; } }
.split--reverse > .split-media { order: 2; }
@media (max-width: 899px) { .split--reverse > .split-media { order: 0; } }

.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-2); }
/* Schräger Akzent: kurz halten — skewX verschiebt proportional zur Höhe,
   ein hoher Balken würde zur Diagonale ausfransen. */
.split-media::before {
  content: ""; position: absolute; left: -14px; top: 32px; width: 9px; height: 96px;
  background: var(--red); transform: skewX(var(--skew)); border-radius: 2px;
}

.checklist { list-style: none; margin: 1.6em 0 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: .85em; align-items: flex-start; }
.checklist li svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--red); }
.checklist strong { display: block; font-weight: 600; }
.checklist span { color: var(--muted); font-size: .96rem; }
.section--blue .checklist span { color: rgba(255, 255, 255, .72); }

/* ---------- 12. Leistungs-Kacheln ---------- */
.cards { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: var(--red); transform: skewX(var(--skew)) translateX(-8px) scaleY(0); transform-origin: top;
  transition: transform .38s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: transparent; color: inherit; }
.card:hover::before { transform: skewX(var(--skew)) translateX(-3px) scaleY(1); }

.card-icon {
  width: 56px; height: 56px; margin-bottom: 22px; color: var(--blue-700);
  transition: color .3s var(--ease), transform .4s var(--ease);
}
.card:hover .card-icon { color: var(--red); transform: translateY(-2px); }
.card h3 { margin-bottom: .25em; }
.card .card-claim { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: .86rem; letter-spacing: .1em; color: var(--red); margin-bottom: 1em; }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: 1.6em; }
.card .card-more { margin-top: auto; display: inline-flex; align-items: center; gap: .5em; font-weight: 600; color: var(--blue-700); font-size: .96rem; }
.card .card-more svg { width: 16px; height: 16px; transition: transform .28s var(--ease); }
.card:hover .card-more { color: var(--red); }
.card:hover .card-more svg { transform: translateX(5px); }

/* ---------- 13. Ablauf (echte Reihenfolge → Nummern sind Information) ---------- */
.steps { display: grid; gap: clamp(24px, 3vw, 32px); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: step; }
.step { position: relative; padding-top: 28px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: -14px; left: -6px; z-index: 0;
  font-family: var(--font-display); font-weight: 800; font-size: 5.5rem; line-height: 1;
  color: var(--blue-900); opacity: .07;
}
.step-icon { position: relative; width: 52px; height: 52px; color: var(--red); margin-bottom: 18px; }
.step h3 { position: relative; margin-bottom: .4em; }
.step p { position: relative; color: var(--muted); font-size: .97rem; }
.section--blue .step::before { color: #fff; opacity: .12; }
.section--blue .step p { color: rgba(255, 255, 255, .74); }

/* ---------- 14. Referenzen-Galerie ---------- */
/* Mosaik: ein Leitbild über zwei Spalten und Reihen, daneben ein 2×2-Raster. */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--blue-900); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .7s var(--ease), opacity .4s; }
.gallery .g-hero { grid-column: span 2; grid-row: span 2; }
.gallery .g-hero img { aspect-ratio: auto; }
.gallery figure:hover img { transform: scale(1.05); opacity: .9; }
.gallery figcaption {
  position: absolute; inset: auto 0 0; padding: 30px 18px 14px; color: #fff;
  font-size: .88rem; font-weight: 500;
  background: linear-gradient(transparent, rgba(10, 35, 96, .85));
}
@media (max-width: 920px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .g-hero { grid-row: span 1; }
  .gallery .g-hero img { aspect-ratio: 3 / 2; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .g-hero { grid-column: span 1; }
}

/* Projekt-Teaser */
.teaser {
  display: grid; gap: 0; overflow: hidden;
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-2);
}
@media (min-width: 860px) { .teaser { grid-template-columns: 1.15fr 1fr; } }
.teaser-media { position: relative; overflow: hidden; min-height: 280px; }
.teaser-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.teaser:hover .teaser-media img { transform: scale(1.04); }
.teaser-badge {
  position: absolute; top: 20px; left: 20px; z-index: 1;
  background: var(--red); color: #fff; padding: 8px 16px;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .1em;
  transform: skewX(var(--skew)); border-radius: 3px;
}
.teaser-badge > span { display: block; transform: skewX(calc(-1 * var(--skew))); }
.teaser-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.teaser-facts { list-style: none; margin: 0 0 1.8em; padding: 0; display: grid; gap: 10px; }
.teaser-facts li { display: flex; gap: .7em; align-items: baseline; font-size: .96rem; }
.teaser-facts b { font-family: var(--font-display); font-size: 1.15rem; color: var(--blue-700); min-width: 3.4em; }

/* ---------- 15. FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  text-transform: uppercase; letter-spacing: .01em; line-height: 1.25;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--red); }
.faq-icon { position: relative; flex: none; width: 24px; height: 24px; margin-top: 2px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--red);
  transform: translate(-50%, -50%); transition: transform .3s var(--ease), opacity .3s;
}
.faq-icon::before { width: 18px; height: 2.5px; }
.faq-icon::after { width: 2.5px; height: 18px; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-answer { overflow: hidden; }
.faq-answer > div { padding: 0 56px 26px 0; color: var(--muted); }

/* ---------- 16. Formulare & Konfigurator ---------- */
.field { margin-bottom: 18px; }
.field > label, .fieldset-legend {
  display: block; margin-bottom: 8px;
  font-size: .88rem; font-weight: 600; letter-spacing: .03em; color: var(--ink);
}
.field .req { color: var(--red); }
.field .hint { display: block; margin-top: 6px; font-size: .82rem; color: var(--muted); }

.input, .textarea, .select {
  width: 100%; padding: 15px 16px;
  background: #fff; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235B616E' stroke-width='2'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 44px;
}
/* Platzhalter klar vom eingegebenen Text unterscheidbar, aber lesbar (nicht das blasse Browser-Grau). */
.input::placeholder, .textarea::placeholder { color: #98a0ad; opacity: 1; }
.input:hover, .textarea:hover, .select:hover { border-color: #c9cfda; }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(42, 84, 192, .14);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] {
  border-color: var(--red); box-shadow: 0 0 0 4px rgba(213, 25, 32, .1);
}
.error-msg { display: none; margin-top: 6px; font-size: .84rem; color: var(--red-600); font-weight: 500; }
.error-msg.is-visible { display: block; }

.field-row { display: grid; gap: 18px; }
@media (min-width: 620px) { .field-row--2 { grid-template-columns: 1fr 1fr; } .field-row--pl-ort { grid-template-columns: 1fr 2fr; } }

.consent { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0; }
.consent input[type="checkbox"] {
  flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--red); cursor: pointer;
}
.consent label { font-size: .88rem; color: var(--muted); line-height: 1.6; }

.hp { position: absolute !important; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* Konfigurator */
.configurator {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-2);
  padding: clamp(24px, 4vw, 52px);
  max-width: 900px; margin-inline: auto;
}
.cfg-progress { margin-bottom: clamp(28px, 3vw, 40px); }
.cfg-progress-bar { position: relative; height: 5px; background: var(--line); border-radius: 99px; overflow: hidden; }
.cfg-progress-bar i {
  position: absolute; inset: 0 auto 0 0; display: block; width: 25%;
  background: var(--red); border-radius: 99px; transition: width .45s var(--ease);
}
.cfg-progress-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.cfg-progress-meta .cfg-step-name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .03em; }
.cfg-progress-meta .cfg-step-count { font-size: .84rem; color: var(--muted); letter-spacing: .06em; }

.cfg-step > h3 { margin-bottom: 1.2em; scroll-margin-top: 120px; }
/* Die Überschrift ist nur Sprungziel für Screenreader, kein Bedienelement. */
.cfg-step > h3:focus, .cfg-step > h3:focus-visible { outline: none; }

.choice-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(216px, 1fr)); margin-bottom: 8px; }
.choice {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 18px 18px 18px 16px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  font-weight: 500; font-size: .97rem; line-height: 1.35;
  min-width: 0; overflow-wrap: anywhere;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice .dot {
  flex: none; width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; transition: border-color .2s;
}
.choice .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); transform: scale(0); transition: transform .22s var(--ease); }
.choice:hover { border-color: #c2cadb; transform: translateY(-1px); }
.choice:has(input:checked) { border-color: var(--red); background: #fff6f6; box-shadow: 0 6px 18px rgba(213, 25, 32, .1); }
.choice:has(input:checked) .dot { border-color: var(--red); }
.choice:has(input:checked) .dot::after { transform: scale(1); }
.choice:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 3px; }

.cfg-summary { background: var(--beton); border-radius: var(--radius-sm); padding: 20px 22px; margin-bottom: 24px; }
.cfg-summary h4 { margin-bottom: .8em; }
.cfg-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; font-size: .92rem; }
.cfg-summary dt { color: var(--muted); }
.cfg-summary dd { margin: 0; font-weight: 500; }

.cfg-nav { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.cfg-nav .btn--outline { border-color: var(--line); color: var(--muted); }
.cfg-nav .btn--outline:hover { border-color: var(--blue-700); background: var(--blue-700); color: #fff; }
.cfg-nav .spacer { flex: 1; }

.form-status { margin-top: 18px; padding: 14px 18px; border-radius: var(--radius-sm); font-size: .93rem; font-weight: 500; }
.form-status[hidden] { display: none; }
.form-status.is-error { background: #fdeced; color: var(--red-600); border: 1px solid #f6c9cb; }
.form-status.is-busy { background: var(--beton); color: var(--muted); }

/* ---------- 17. Kontakt ---------- */
.contact-grid { display: grid; gap: clamp(32px, 4vw, 64px); }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list svg { width: 24px; height: 24px; flex: none; color: var(--red); margin-top: 3px; }
.contact-list .k { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list a, .contact-list .v { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.contact-list a:hover { color: var(--red); }
.contact-list address { font-style: normal; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.3; }

.map-card { display: block; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); text-decoration: none; }
.map-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .7s var(--ease); }
.map-card:hover img { transform: scale(1.04); }
.map-card .map-label {
  position: absolute; inset: auto 0 0; padding: 40px 20px 18px; color: #fff;
  background: linear-gradient(transparent, rgba(10, 35, 96, .9));
  display: flex; align-items: center; gap: .6em; font-weight: 600; font-size: .95rem;
}
.map-card .map-label svg { width: 18px; height: 18px; }

.note {
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--beton); border-left: 4px solid var(--red);
  padding: 12px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .92rem; font-weight: 500;
}
.note svg { width: 18px; height: 18px; color: var(--red); flex: none; }

/* ---------- 18. CTA-Band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--red-600); color: #fff; }
.cta-band::before {
  content: ""; position: absolute; z-index: -1; inset: -20% -10% -20% 50%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .18));
  transform: skewX(var(--skew));
}
/* Primär-Button auf rotem Grund invertieren; der Ghost-Button bleibt weiß umrandet. */
.cta-band .btn:not(.btn--ghost-light) { --btn-bg: #fff; --btn-fg: var(--red-600); }
.cta-band .btn:not(.btn--ghost-light):hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
.cta-band .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { color: rgba(255, 255, 255, .76); margin: 0; max-width: 56ch; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 19. Breadcrumbs & Seiten-Header ---------- */
.page-header { position: relative; background: var(--beton); padding-block: clamp(40px, 5vw, 72px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-header h1 { max-width: 20ch; margin-bottom: .3em; }
.page-header .lead { max-width: 66ch; }

.breadcrumb { margin-bottom: 22px; font-size: .84rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5em; margin: 0; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: .5em; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; color: var(--line); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

/* Definitionsblock (KI-/Snippet-optimiert) */
.definition {
  background: var(--beton); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px);
  border-left: 6px solid var(--red);
}
.definition h2, .definition h3 { margin-bottom: .5em; }
.definition ul { margin: 1em 0 0; padding-left: 1.2em; color: var(--muted); }
.definition li { margin-bottom: .5em; }
.definition li::marker { color: var(--red); }

.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.4em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--red); }
.prose address { font-style: normal; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.6em; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--font-display); text-transform: uppercase; font-size: .92rem; letter-spacing: .04em; }

.related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4em; }
.related a {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 99px;
  font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--ink);
  transition: border-color .2s, color .2s, transform .2s var(--ease);
}
.related a svg { width: 15px; height: 15px; color: var(--red); transition: transform .25s var(--ease); }
.related a:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.related a:hover svg { transform: translateX(3px); }

/* ---------- 20. Footer ---------- */
.footer { background: var(--blue-900); color: rgba(255, 255, 255, .74); padding-block: clamp(56px, 7vw, 88px) 0; font-size: .94rem; }
.footer-grid { display: grid; gap: clamp(32px, 4vw, 56px); }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1.1fr; } }

.footer img.footer-logo { width: 190px; height: 55px; object-fit: contain; object-position: left; margin-bottom: 22px; }
.footer h3 { font-size: .88rem; letter-spacing: .14em; color: #fff; margin-bottom: 1.4em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer a { color: rgba(255, 255, 255, .74); text-decoration: none; transition: color .2s, padding-left .2s var(--ease); }
.footer a:hover { color: #fff; }
.footer nav a:hover { padding-left: 5px; }
.footer address { font-style: normal; line-height: 1.8; }

.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; transition: background-color .2s, border-color .2s, transform .2s var(--ease); }
.social a:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

.footer-bottom {
  margin-top: clamp(48px, 5vw, 64px); padding-block: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; align-items: center;
  font-size: .86rem; color: rgba(255, 255, 255, .55);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
/* Der Credit steht bewusst am Ende der Zeile und tritt hinter die Pflichtlinks zurück. */
.footer-bottom .footer-credit { margin: 0; margin-left: auto; color: rgba(255, 255, 255, .45); text-align: right; line-height: 1.5; }
.footer-bottom .footer-credit a { color: rgba(255, 255, 255, .68); text-decoration: none; }
.footer-bottom .footer-credit a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom .footer-credit-tagline { color: rgba(255, 255, 255, .4); }
.footer-bottom .footer-credit-tagline::before { content: "|"; margin: 0 .5em; color: rgba(255, 255, 255, .28); }
@media (max-width: 720px) { .footer-bottom .footer-credit { margin-left: 0; text-align: left; } }

/* ---------- 20b. Schwebender WhatsApp-Button ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 95;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 12px 26px rgba(37, 211, 102, .5); color: #fff; }
.wa-float:active { transform: translateY(0) scale(1); }
/* Sanfter Puls beim ersten Erscheinen – zieht dezent den Blick an */
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .55);
  animation: wa-pulse 2.6s ease-out 1.2s 3;
}
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
/* Solange das Off-Canvas-Menü offen ist, tritt der Button zurück. */
body.is-locked .wa-float { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .wa-float::after { animation: none; } }
@media (max-width: 640px) { .wa-float { right: 14px; bottom: 14px; } }

/* WhatsApp-Popup: wächst aus dem Button heraus.
   Mobil = Text-Blase (Tap öffnet Chat). Desktop = QR-Panel (scannen → Chat aufs Handy),
   weil ein wa.me-Klick am PC sonst zu WhatsApp Web und von der Seite weg führt. */
.wa-pop {
  position: fixed; right: 18px; bottom: 84px; z-index: 94;
  width: min(280px, calc(100vw - 36px));
  display: none; transform-origin: bottom right;
  transform: scale(.3) translateY(14px); opacity: 0;
  transition: transform .34s cubic-bezier(.2, .85, .3, 1.25), opacity .26s ease;
}
.wa-pop.is-show { display: block; }
.wa-pop.is-in { transform: scale(1) translateY(0); opacity: 1; }
.wa-pop__bubble {
  position: relative; display: block; background: #fff; color: var(--ink);
  text-decoration: none; border-radius: 16px; padding: 16px 18px 15px;
  box-shadow: 0 16px 40px rgba(10, 35, 96, .2); border: 1px solid var(--line);
}
.wa-pop__bubble::after {
  content: ""; position: absolute; right: 22px; bottom: -7px; width: 14px; height: 14px;
  background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.wa-pop__title { display: block; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .02em; margin-bottom: 4px; }
.wa-pop__text { display: block; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.wa-pop__wa { color: #25D366; font-weight: 600; }
.wa-pop__qr { display: block; width: 156px; height: 156px; margin: 13px auto 10px; border-radius: 8px; }
.wa-pop__meta { display: block; font-size: .8rem; line-height: 1.5; color: var(--muted); text-align: center; }
.wa-pop__tel { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-align: center; margin-top: 2px; }
.wa-pop__weblink { display: inline-block; margin-top: 8px; font-size: .82rem; color: #128C3E; font-weight: 600; }
.wa-pop__close {
  position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0;
  background: transparent; color: var(--muted); font-size: 20px; line-height: 28px;
  text-align: center; cursor: pointer; border-radius: 50%; padding: 0;
}
.wa-pop__close:hover { background: var(--beton); color: var(--ink); }
a.wa-pop__bubble:hover .wa-pop__title { color: var(--red); }
body.is-locked .wa-pop { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .wa-pop { transition: opacity .2s ease; transform: none; }
  .wa-pop.is-in { transform: none; }
}
@media (max-width: 640px) { .wa-pop { right: 14px; bottom: 76px; } }

/* ---------- 21. Animationen ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); }
.js [data-reveal] { transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* Ken-Burns auf dem Poster, solange das Video lädt */
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1.14); } }
.hero-media img { animation: kenburns 22s var(--ease) infinite alternate; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-media img { animation: none; }
}

/* ---------- 22. Responsiv ---------- */
@media (max-width: 1023px) {
  .nav, .header-cta { display: none; }
  .burger { display: flex; }
  .brand img { width: 150px; height: 43px; }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; --header-h-sm: 60px; }
  .brand img { width: 132px; height: 38px; }
  .header.is-solid .brand img { width: 122px; height: 35px; }
  .hero { min-height: 88svh; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; border-left: 0; }
  .stat { border-right: 1px solid rgba(255, 255, 255, .13); border-bottom: 1px solid rgba(255, 255, 255, .13); }
  .stat:nth-child(2n) { border-right: 0; }
  .split-media::before { left: -8px; width: 6px; }
  .faq-answer > div { padding-right: 0; }
  .cfg-nav { flex-wrap: wrap; }
  .cfg-nav .btn { flex: 1 1 auto; }
}

@media print {
  .header, .drawer, .hero-media, .configurator, .cta-band, .footer { display: none !important; }
  body { color: #000; }
}

/* Bewerbungsformular: Checkbox-Kacheln (eckig) + kompaktes Grid */
.choice--check .dot { border-radius: 6px; }
.choice--check input:checked ~ .dot::after { border-radius: 2px; }
.choice-grid--compact { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* fieldset-Overflow-Fix: mehrstufige Formulare (Konfigurator + Bewerbung) dürfen
   unter ihre Inhaltsbreite schrumpfen — sonst 4px Überlauf bei 320px. */
.cfg-step { min-width: 0; }
