/* ==========================================================================
   Frolov GmbH — Globales Stylesheet
   Umsetzung von DESIGN.md (Geothermie & Erdwärmebohrungen)
   ========================================================================== */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Primär — Navy (finale Markenpalette aus dem Logo) */
  --color-primary-900: #14202b;  /* dunkelste Ebene */
  --color-primary-800: #1e2e3d;  /* Hauptmarkenfarbe / Basis */
  --color-primary-700: #2a4055;  /* Karten, Panels, Links */
  --color-primary-600: #3a5670;  /* Ränder, Hover */
  --color-primary-500: #5b7e9c;  /* gedämpfter Text */
  --color-primary-100: #d8e2ec;  /* heller Navy-Tint */
  --color-primary-50:  #eef3f8;  /* sehr heller Tint */

  /* Akzent — Corporate Blau (Blau/Weiß-Markenwelt) */
  --color-accent-600: #2459ab;   /* Hover */
  --color-accent-500: #2f6fd6;   /* primärer Akzent */
  --color-accent-100: #e4edfb;

  /* Neutrale */
  --color-ink: #14202b;          /* Haupttext */
  --color-ink-soft: #45555f;
  --color-muted: #6b7a8c;        /* sekundärer Text */
  --color-line: #cbd5e0;         /* Rahmen */
  --color-surface: #FFFFFF;
  --color-bg: #f6f8fa;           /* Seitenhintergrund */
  --color-bg-tint: #e9eef3;      /* Surface 2 / alternierende Sektionen */

  /* Semantik (Blau/Weiß-konform, kein Grün/Orange) */
  --color-success: #2f6fd6;
  --color-warning: #5b7e9c;
  --color-error: #c0392b;
  --color-info: #3a7bd5;

  /* Typografie — charaktervolles Paar (frontend-design: keine generischen Fonts) */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-mega: clamp(2.75rem, 1.4rem + 6vw, 6rem);
  --fs-display: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  --fs-h1: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  --fs-h2: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-body: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-small: 0.875rem;

  /* Spacing (8px-Basis) */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-8: 48px; --space-10: 64px;
  --space-12: 96px; --space-16: 128px;

  /* Layout */
  --container-max: 1180px;
  --container-narrow: 760px;

  /* Radius */
  --radius-sm: 8px; --radius: 14px; --radius-lg: 22px; --radius-pill: 999px;

  /* Schatten */
  --shadow-sm: 0 1px 2px rgba(16,34,28,.06);
  --shadow: 0 6px 24px rgba(16,34,28,.08);
  --shadow-lg: 0 18px 48px rgba(16,34,28,.12);

  --transition: 200ms ease;
}

/* ---------- 2. Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture, video { display: block; max-width: 100%; height: auto; }
a { color: var(--color-primary-700); text-decoration-color: rgba(30,46,61,.32); text-underline-offset: 3px; }
a:hover { color: var(--color-primary-600); }
ul, ol { padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--color-accent-500); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }
p { max-width: 68ch; }

/* ---------- 3. Layout-Helfer ---------- */
.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: clamp(1rem, 5vw, 2.5rem); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--space-12); }
@media (max-width: 640px) { .section { padding-block: var(--space-10); } }
.section--tint { background: var(--color-bg-tint); }
.section--dark { background: var(--color-primary-800); color: #E8F1EC; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent-600);
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  opacity: .7;
}
.section--dark .eyebrow { color: var(--color-accent-500); }
.lead { font-size: var(--fs-lead); color: var(--color-ink-soft); max-width: 60ch; }
.section-head { max-width: 720px; margin-bottom: var(--space-8); }
.text-center { text-align: center; }
.text-center .lead, .text-center p { margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--color-primary-700); color: #fff; padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 14px 28px; border-radius: var(--radius-pill); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: var(--transition); white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--color-primary-800); color: #fff; }
.btn--primary:hover { background: var(--color-primary-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--accent { background: var(--color-accent-500); color: #fff; }
.btn--accent:hover { background: var(--color-accent-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; border-color: var(--color-primary-600); color: var(--color-primary-700); }
.btn--ghost:hover { background: var(--color-primary-50); color: var(--color-primary-700); }
.btn--light { background: #fff; color: var(--color-primary-700); }
.btn--light:hover { background: var(--color-primary-50); transform: translateY(-1px); }
.btn--block { width: 100%; }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.text-center .cta-row { justify-content: center; }

/* ---------- 5. Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-line);
  transition: box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.94);
  border-bottom-color: transparent;
  box-shadow: 0 8px 30px rgba(20,32,43,.10);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: 72px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; line-height: 1; }
.brand img { height: 46px; width: auto; display: block; }
.brand__name { display: inline-block; font-family: "Saira Condensed", var(--font-display); font-weight: 900; font-size: 1.85rem; letter-spacing: .348em; margin-right: -.348em; text-transform: uppercase; color: var(--color-primary-800); line-height: .82; transform: skewX(-12deg); transform-origin: left center; }
.brand__sub { display: block; font-family: var(--font-body); font-weight: 600; font-size: .55rem; letter-spacing: .19em; text-transform: uppercase; color: var(--color-muted); white-space: nowrap; margin-top: 3px; }

.nav { gap: var(--space-4); }
.brand { margin-right: var(--space-3); }
.site-header .brand img { height: 44px; width: auto; max-width: none; display: block; }
.site-footer .brand img { height: 42px; width: auto; max-width: none; display: block; }
.nav-links { display: flex; align-items: center; gap: clamp(10px, 1.1vw, 18px); list-style: none; padding: 0; margin: 0; }
.nav-links a { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--color-ink); text-decoration: none; padding: 6px 2px; position: relative; white-space: nowrap; }
.nav-links a:hover { color: var(--color-primary-600); }
.nav-links a[aria-current="page"] { color: var(--color-primary-700); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--color-accent-500); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.nav-phone { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-display); font-weight: 700; color: var(--color-primary-700); text-decoration: none; white-space: nowrap; }
.nav-phone svg { width: 18px; height: 18px; }

/* Dropdown „Leistungen" */
.nav-has-sub { position: relative; }
.nav-sub-toggle {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-display);
  font-weight: 600; font-size: .9rem; color: var(--color-ink); background: none; border: 0;
  cursor: pointer; padding: 6px 2px; white-space: nowrap;
}
.nav-sub-toggle:hover, .nav-sub-toggle[data-active="true"] { color: var(--color-primary-700); }
.nav-chev { width: 14px; height: 14px; transition: transform .2s ease; flex: none; }
.nav-sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 12px); left: 50%;
  min-width: 232px; background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-6px);
  transition: opacity .2s ease, transform .2s ease; z-index: 200;
}
.nav-sub::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-sub a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--color-ink); text-decoration: none; white-space: nowrap; }
.nav-sub a:hover, .nav-sub a[aria-current="page"] { background: var(--color-primary-50); color: var(--color-primary-700); }
.nav-has-sub:hover .nav-sub, .nav-has-sub:focus-within .nav-sub { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-has-sub:hover .nav-chev, .nav-sub-toggle[aria-expanded="true"] .nav-chev { transform: rotate(180deg); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  border-radius: var(--radius-sm); color: var(--color-primary-700);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .brand { margin-right: 0; }
  .nav-sub-toggle { width: 100%; justify-content: space-between; padding: 14px 8px; border-bottom: 1px solid var(--color-line); font-size: 1.05rem; }
  .nav-sub, .nav-has-sub:hover .nav-sub, .nav-has-sub:focus-within .nav-sub { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; min-width: 0; padding: 0 0 0 14px; max-height: 0; overflow: hidden; transition: max-height .25s ease; }
  .nav-sub-toggle[aria-expanded="true"] + .nav-sub { max-height: 400px; }
  .nav-sub a { padding: 12px 8px; border-bottom: 1px solid var(--color-line); font-size: 1.02rem; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--color-line);
    padding: var(--space-4); box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: var(--transition);
  }
  .nav-links li { display: block; }
  .nav-links a { display: block; padding: 14px 8px; border-bottom: 1px solid var(--color-line); font-size: 1.05rem; }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav[data-open="true"] .nav-links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-actions .nav-phone span { display: none; }
  .nav-actions .btn { display: none; }
}

/* ---------- 5b. Utility-Leiste + Mega-Menü ---------- */
.util-bar { background: var(--color-primary-800); color: rgba(255,255,255,.8); font-size: .8rem; }
.util-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.util-phone { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.9); text-decoration: none; font-family: var(--font-display); font-weight: 600; }
.util-phone svg { width: 15px; height: 15px; opacity: .85; }
.util-phone:hover { color: #fff; }
.util-right { display: inline-flex; align-items: center; gap: 18px; }
.util-rating { display: inline-flex; align-items: center; gap: 5px; color: #ffd36b; }
.util-rating svg { width: 14px; height: 14px; }
.util-partner { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.28); border-radius: 6px; padding: 3px 10px; font-family: var(--font-display); font-weight: 600; }
.util-partner svg { width: 13px; height: 13px; }
.util-partner:hover { background: rgba(255,255,255,.12); }
.nav-sub-toggle { position: relative; }
.nav-sub-toggle[data-active="true"] { color: var(--color-primary-700); }
.nav-sub-toggle[data-active="true"]::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: -2px; height: 2px; background: var(--color-accent-500); border-radius: 2px; }

.nav-sub--mega { left: 0; right: auto; min-width: 0; width: 560px; padding: 18px; transform: translateX(0) translateY(-6px); }
.nav-sub--mega.nav-sub--right { left: auto; right: 0; }
.nav-sub--w600 { width: 600px; }
.nav-sub--w760 { width: 760px; }
.nav-has-sub:hover .nav-sub--mega, .nav-has-sub:focus-within .nav-sub--mega { transform: translateX(0) translateY(0); }
.nav-mega { display: grid; gap: 4px 24px; }
.nav-mega--feat { grid-template-columns: 1fr 1fr 1.15fr; align-items: start; }
.nav-mega--3 { grid-template-columns: repeat(3, 1fr); }
.nav-mega--4 { grid-template-columns: repeat(4, 1fr); }
.nav-mega__h { margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--color-muted); }
.nav-sub--mega a { padding: 6px 8px; white-space: normal; font-size: .9rem; }
.nav-sub--mega a.nav-mega__feature { display: flex; flex-direction: column; justify-content: center; align-self: stretch; background: var(--color-primary-800); color: #fff; border-radius: var(--radius); padding: 16px !important; white-space: normal; }
.nav-sub--mega a.nav-mega__feature:hover { background: var(--color-primary-700); color: #fff; }
.nav-mega__badge { align-self: flex-start; background: #e5533d; color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 5px; margin-bottom: 8px; }
.nav-mega__ftitle { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.nav-mega__fsub { color: rgba(255,255,255,.75); font-size: .82rem; margin-top: 4px; line-height: 1.4; }

@media (max-width: 1100px) {
  .util-bar { display: none; }
  .nav-sub--mega, .nav-sub--mega.nav-sub--right, .nav-sub--w600, .nav-sub--w760 { width: auto; left: 0; right: auto; padding: 0 0 0 14px; transform: none; }
  .nav-sub-toggle[aria-expanded="true"] + .nav-sub--mega { max-height: 1600px; }
  .nav-mega, .nav-mega--feat, .nav-mega--3, .nav-mega--4 { grid-template-columns: 1fr; gap: 0; }
  .nav-mega__h { margin-top: 12px; }
  .nav-mega__feature { margin: 10px 0; }
}

/* ---------- 5c. Menü-Wow: Signatur-Visual + Motion ---------- */
/* Panel: weiches Easing + leichtes Scale beim Aufklappen */
.nav-sub--mega { transform: translateY(-8px) scale(.98); transform-origin: top center; transition: opacity .28s ease, transform .3s cubic-bezier(.16,1,.3,1); }
.nav-has-sub:hover .nav-sub--mega, .nav-has-sub:focus-within .nav-sub--mega { transform: translateY(0) scale(1); }
/* Gestaffeltes Einblenden der Mega-Inhalte */
.nav-sub--mega .nav-mega > * { opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.nav-has-sub:hover .nav-sub--mega .nav-mega > *, .nav-has-sub:focus-within .nav-sub--mega .nav-mega > * { opacity: 1; transform: none; }
.nav-sub--mega .nav-mega > *:nth-child(1) { transition-delay: .05s; }
.nav-sub--mega .nav-mega > *:nth-child(2) { transition-delay: .11s; }
.nav-sub--mega .nav-mega > *:nth-child(3) { transition-delay: .17s; }
.nav-sub--mega .nav-mega > *:nth-child(4) { transition-delay: .23s; }
/* Animierte Unterstriche: Top-Level-Links + Dropdown-Toggles */
.nav-links > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--color-accent-500); border-radius: 2px; transform: scaleX(0); transform-origin: center; transition: transform .25s ease; }
.nav-links > li > a:hover::after, .nav-links > li > a[aria-current="page"]::after { transform: scaleX(1); }
.nav-sub-toggle::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: -2px; height: 2px; background: var(--color-accent-500); border-radius: 2px; transform: scaleX(0); transform-origin: center; transition: transform .25s ease; }
.nav-sub-toggle:hover::after, .nav-has-sub:focus-within .nav-sub-toggle::after, .nav-sub-toggle[data-active="true"]::after { transform: scaleX(1); }
/* Signatur-Bohrprofil in der Komplettservice-Kachel */
.nav-sub--mega a.nav-mega__feature { position: relative; overflow: hidden; padding: 16px 62px 16px 16px !important; }
.nav-mega__bore { position: absolute; top: 0; right: 0; height: 100%; width: 56px; opacity: .9; pointer-events: none; }
.nav-mega__ftext { position: relative; z-index: 1; display: flex; flex-direction: column; }
@media (prefers-reduced-motion: reduce) {
  .nav-sub--mega, .nav-sub--mega .nav-mega > * { transition: none !important; transform: none !important; opacity: 1 !important; }
  .bh-flow-stream { animation: none !important; }
}
@media (max-width: 1100px) {
  .nav-sub-toggle::after { display: none; }
  .nav-sub--mega .nav-mega > * { opacity: 1 !important; transform: none !important; }
  .nav-mega__bore { display: none; }
  .nav-sub--mega a.nav-mega__feature { padding: 16px !important; }
}

/* ---------- 5d. Menüleiste: Shrink-on-Scroll + CTA-Glow ---------- */
.util-bar { overflow: hidden; max-height: 60px; transition: max-height .3s ease, opacity .25s ease; }
.nav-actions .btn--accent { box-shadow: 0 4px 14px rgba(47,111,214,.28); }
.nav-actions .btn--accent:hover { box-shadow: 0 8px 22px rgba(47,111,214,.42); }
@media (min-width: 1101px) {
  .nav { transition: min-height .28s ease; }
  .site-header .brand img { transition: height .28s ease; }
  .site-header.is-scrolled .util-bar { max-height: 0; opacity: 0; }
  .site-header.is-scrolled .nav { min-height: 58px; }
  .site-header.is-scrolled .brand img { height: 37px; }
}
@media (prefers-reduced-motion: reduce) {
  .util-bar, .nav, .site-header .brand img { transition: none !important; }
}

/* ---------- 6. Hero ---------- */
.hero { position: relative; background: linear-gradient(180deg, var(--color-primary-50), var(--color-bg) 70%); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-10); align-items: center; padding-block: var(--space-12); }
.hero h1 { font-size: var(--fs-display); }
.hero .lead { margin-top: var(--space-5); }
.hero .cta-row { margin-top: var(--space-6); }
.hero__media { position: relative; }
.hero__media img, .hero__media .media-ph { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero__media { order: -1; }
  .hero__media img, .hero__media .media-ph { aspect-ratio: 16/10; }
}

.trust-badges { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.trust-badge { display: inline-flex; align-items: center; gap: var(--space-2); background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-pill); padding: 8px 16px; font-size: var(--fs-small); font-weight: 600; box-shadow: var(--shadow-sm); }
.trust-badge svg { width: 18px; height: 18px; color: var(--color-primary-600); }

/* Bild-Platzhalter (bis echte Fotos vorliegen) */
.media-ph {
  display: grid; place-items: center; text-align: center; padding: var(--space-6);
  background: linear-gradient(135deg, var(--color-primary-100), var(--color-accent-100));
  color: var(--color-primary-700); font-family: var(--font-display); font-weight: 700;
  border: 1px dashed var(--color-primary-500);
}
.media-ph span { font-size: var(--fs-small); font-weight: 500; opacity: .8; }

/* ---------- 7. Cards & Grids ---------- */
.grid { display: grid; gap: var(--space-6); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm);
  transition: var(--transition); display: flex; flex-direction: column; gap: var(--space-3);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card h3 { margin-top: var(--space-1); }
.card p { color: var(--color-ink-soft); }
.card__link { margin-top: auto; font-family: var(--font-display); font-weight: 700; color: var(--color-primary-600); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.card__link:hover { gap: 10px; color: var(--color-primary-700); }

.icon-badge {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--color-primary-50); color: var(--color-primary-600);
}
.icon-badge svg { width: 26px; height: 26px; }
.card:hover .icon-badge { background: var(--color-accent-100); color: var(--color-accent-600); }

/* ---------- 8. Stats-Band ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-6); text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); color: var(--color-accent-500); line-height: 1; }
.stat__label { margin-top: var(--space-2); color: #BFD6CB; font-size: var(--fs-small); }

/* ---------- 9. Prozess / Steps ---------- */
.steps { display: grid; gap: var(--space-5); counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); align-items: start; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); }
.step__num { counter-increment: step; align-self: start; min-width: 1.7em; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1.4rem + 1.6vw, 2.9rem); line-height: .85; color: var(--color-primary-100); letter-spacing: -.02em; transition: color .25s ease; }
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.15rem; }
.step p { margin-top: 4px; color: var(--color-ink-soft); }

/* ---------- 10. Feature-Liste (Checks) ---------- */
.check-list { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.check-list li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; }
.check-list li::before {
  content: ""; width: 24px; height: 24px; border-radius: var(--radius-pill); margin-top: 2px;
  background: var(--color-primary-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e2e3d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- 11. Split (Text + Media) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media img, .split__media .media-ph { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: var(--space-6); } .split--reverse .split__media { order: 0; } }

/* ---------- 12. FAQ (native details) ---------- */
.faq { display: grid; gap: var(--space-3); max-width: 820px; }
.faq details {
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius); padding: 0 var(--space-5); transition: var(--transition);
}
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--color-primary-100); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--space-5) 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--color-primary-600);
  transition: var(--transition); flex: none; line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--space-5); color: var(--color-ink-soft); margin: 0; }

/* ---------- 13. CTA-Band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--color-primary-700), var(--color-primary-900)); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 4rem); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 110% at 82% -10%, rgba(47,111,214,.40), transparent 60%), radial-gradient(45% 90% at 10% 120%, rgba(91,157,255,.18), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }

/* --- Galerie / Einblicke --- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-4); }
.gallery__item { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--color-line); background: var(--color-surface); }
.gallery__item img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s ease; }
.gallery__item:hover { box-shadow: var(--shadow); }
.gallery__item:hover img { transform: scale(1.06); }
.split__media--tall img { aspect-ratio: 3/4; }
.article-figure { margin: 0 0 var(--space-6); }
.article-figure img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); display: block; }
.article-figure figcaption { font-size: var(--fs-small); color: var(--color-muted); margin-top: var(--space-2); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #CFE3D9; margin-inline: auto; margin-top: var(--space-3); }
.cta-band .cta-row { justify-content: center; margin-top: var(--space-6); }

/* ---------- 14. Prose (Textseiten) ---------- */
.prose > * + * { margin-top: var(--space-4); }
.glossar dt { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--color-ink); margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--color-line); scroll-margin-top: 90px; }
.glossar dt:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.glossar dd { margin: var(--space-2) 0 0; color: var(--color-ink-soft); }
.prose h2 { margin-top: var(--space-8); }
.prose h3 { margin-top: var(--space-6); }
.prose ul, .prose ol { display: grid; gap: var(--space-2); }

/* ---------- 15. Breadcrumb ---------- */
.breadcrumb { font-size: var(--fs-small); color: var(--color-muted); padding-block: var(--space-4); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; }
.breadcrumb li::after { content: "›"; margin-left: var(--space-2); color: var(--color-line); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--color-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary-600); }

/* ---------- 16. Page-Hero (Unterseiten) ---------- */
.page-hero { background: linear-gradient(180deg, var(--color-primary-50), var(--color-bg)); padding-block: var(--space-8) var(--space-10); }
.page-hero h1 { margin-top: var(--space-2); }
.page-hero .lead { margin-top: var(--space-4); }

/* ---------- 17. Förder-Karten ---------- */
.fund-card { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.fund-card .amount { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: var(--color-accent-500); }
.fund-card h3 { display: flex; align-items: center; gap: var(--space-3); }
.tag { display: inline-block; font-size: var(--fs-small); font-weight: 600; background: var(--color-primary-50); color: var(--color-primary-700); border-radius: var(--radius-pill); padding: 3px 12px; }

/* ---------- 18. Formular ---------- */
.form { display: grid; gap: var(--space-5); }
.form-row { display: grid; gap: var(--space-5); grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: var(--space-2); }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.field .req { color: var(--color-error); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--color-ink); background: var(--color-surface);
  border: 1.5px solid var(--color-line); border-radius: var(--radius); padding: 12px 14px; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--color-primary-600); box-shadow: 0 0 0 3px rgba(30,46,61,.14); }
.field textarea { min-height: 140px; resize: vertical; }
.checkbox { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; font-size: .95rem; color: var(--color-ink-soft); }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--color-primary-600); }
.form-note { font-size: var(--fs-small); color: var(--color-muted); }

/* ---------- 19. Kontakt-Infos ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: var(--space-8); } }
.info-list { list-style: none; padding: 0; display: grid; gap: var(--space-5); }
.info-list li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start; }
.info-list .icon-badge { width: 44px; height: 44px; }
.info-list strong { font-family: var(--font-display); display: block; }
.info-list a { text-decoration: none; }

/* ---------- 20. Footer ---------- */
.site-footer { background: var(--color-primary-900); color: #B7CEC3; padding-block: var(--space-10) var(--space-6); margin-top: var(--space-8); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-8); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.site-footer a { color: #B7CEC3; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { color: #8FB0A4; margin-top: var(--space-3); font-size: var(--fs-small); }
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-pill); background: rgba(255,255,255,.08); }
.footer-social a:hover { background: var(--color-accent-500); color: var(--color-primary-900); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: var(--space-8); padding-top: var(--space-5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); font-size: var(--fs-small); }
.footer-bottom a { margin-left: var(--space-4); }

/* ---------- 21. Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 22. Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ==========================================================================
   23. WOW-LAYER — frontend-design: Gradient-Mesh, Grain, Motion, Asymmetrie
   ========================================================================== */

/* Headings noch markanter mit Bricolage Grotesque */
h1, h2, h3, h4 { letter-spacing: -0.035em; }

/* --- Subtile Korn-/Noise-Textur über der ganzen Seite --- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* --- Hero: Vollbild-Foto, Ken-Burns, modern --- */
.hero { position: relative; overflow: hidden; min-height: 90vh; display: flex; align-items: center; color: #fff; isolation: isolate; background: #14202b; }
.hero__bg { position: absolute; inset: 0; z-index: -2; background: url("/assets/fotos/bohrgeraet-hero.jpg") 30% 42% / cover no-repeat; transform: scale(1.04); animation: kenburns 26s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04) translate(0,0); } to { transform: scale(1.15) translate(-2%, -2%); } }
.hero__overlay { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(102deg, rgba(12,19,26,.95) 0%, rgba(16,26,36,.86) 46%, rgba(20,32,43,.62) 100%),
  linear-gradient(0deg, rgba(12,19,26,.6), transparent 32%); }
.hero .container { position: relative; z-index: 1; }
.hero__inner { max-width: 840px; padding-block: clamp(5rem, 13vh, 9rem); }
.hero .eyebrow { color: #8fbcff; }
.hero h1 { font-size: clamp(2.5rem, 1.3rem + 3.9vw, 5rem); line-height: 1.04; color: #fff; text-shadow: 0 2px 26px rgba(0,0,0,.4); hyphens: manual; overflow-wrap: normal; margin-bottom: var(--space-2); }
.hero h1 .accent { color: #5c9dff; }
.rotator { display: inline-block; transition: opacity .4s ease, transform .4s ease; }
.rotator.is-out { opacity: 0; transform: translateY(12px); }
.hero .lead { color: rgba(255,255,255,.9); text-shadow: 0 1px 14px rgba(0,0,0,.35); margin-top: var(--space-4); }
.hero .cta-row { margin-top: var(--space-6); }
.hero .trust-badges { margin-top: var(--space-8); }
.hero .trust-badge { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.20); color: #fff; box-shadow: none; backdrop-filter: blur(6px); }
.hero .trust-badge svg { color: #8fbcff; }
.hero .btn--primary { background: var(--color-accent-500); }
.hero .btn--primary:hover { background: var(--color-accent-600); }
.hero .btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.hero .btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; color: rgba(255,255,255,.82); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.hero__scroll svg { width: 22px; height: 22px; animation: bob 1.9s ease-in-out infinite; }
.hero__scroll:hover { color: #fff; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .hero__bg { animation: none; } .hero__scroll svg { animation: none; } }

/* Lade-Animation: gestaffeltes Einblenden beim Seitenaufbau */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.load-seq > * { opacity: 0; animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.load-seq > *:nth-child(1) { animation-delay: .05s; }
.load-seq > *:nth-child(2) { animation-delay: .15s; }
.load-seq > *:nth-child(3) { animation-delay: .25s; }
.load-seq > *:nth-child(4) { animation-delay: .35s; }
.load-seq > *:nth-child(5) { animation-delay: .45s; }
@media (prefers-reduced-motion: reduce) { .load-seq > * { opacity: 1; animation: none; } }

/* --- Hero Depth-Visual: Container für die SVG-Bohrgrafik --- */
.depth-visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/5; background: #14202c;
  border: 1px solid rgba(255,255,255,.08);
}


/* --- Magnetische / glänzende Buttons --- */
.btn--primary, .btn--accent { position: relative; overflow: hidden; }
.btn--primary::before, .btn--accent::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg); transition: left .6s ease;
}
.btn--primary:hover::before, .btn--accent:hover::before { left: 140%; }

/* --- Karten: ruhiger Hover-Lift (ohne Akzent-Seitenkante) --- */
.card { position: relative; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--color-primary-100); }

/* --- Stat-Counter: Akzent-Glow --- */
.stat__num { text-shadow: 0 0 38px rgba(47,111,214,.35); }
.section--dark { position: relative; overflow: hidden; }
.section--dark::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(50% 120% at 15% 0%, rgba(58,86,111,.45), transparent 60%),
              radial-gradient(50% 120% at 90% 100%, rgba(47,111,214,.22), transparent 60%);
}
.section--dark .container { position: relative; z-index: 1; }

/* --- Process-Steps: durchgehende Achse (Timeline-Look) --- */
.steps { position: relative; }
.step { position: relative; transition: var(--transition); }
.step:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: var(--color-primary-100); }
.step:hover .step__num { color: var(--color-accent-500); }

/* --- Reveal mit Stagger über CSS-Variable --- */
.reveal { transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }

/* --- Großes „Section-Number"-Detail (Asymmetrie) --- */
.section-index { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem,8vw,7rem); line-height: .8; color: var(--color-primary-100); -webkit-text-stroke: 1px var(--color-primary-500); -webkit-text-fill-color: transparent; }

/* --- Pull-Quote / Highlight-Block --- */
.highlight {
  background: var(--color-primary-50); border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lead); color: var(--color-primary-700);
}

/* --- Artikel-Byline (E-E-A-T) --- */
.article-byline { margin-top: var(--space-5); font-size: var(--fs-small); color: var(--color-muted); border-top: 1px solid var(--color-line); padding-top: var(--space-4); }
.article-byline a { color: var(--color-primary-700); font-weight: 600; }

/* --- Vergleichstabelle (AEO Table-Snippet) --- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: var(--space-4) 0; }
table.compare { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
table.compare th, table.compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--color-line); }
table.compare thead th { background: var(--color-primary-800); color: #fff; font-family: var(--font-display); font-weight: 700; }
table.compare thead th:first-child { border-top-left-radius: var(--radius-sm); }
table.compare thead th:last-child { border-top-right-radius: var(--radius-sm); }
table.compare tbody tr:nth-child(even) { background: var(--color-bg-tint); }
table.compare td:first-child { font-weight: 600; color: var(--color-ink); }
table.compare td:nth-child(2) { color: var(--color-primary-700); font-weight: 600; }

/* --- Personen-/Autor-Karte (E-E-A-T) --- */
.person-card { margin-top: var(--space-4); background: var(--color-primary-50); border: 1px solid var(--color-line); border-radius: var(--radius); padding: var(--space-5); }
.person-card strong { font-family: var(--font-display); font-size: 1.15rem; display: block; color: var(--color-primary-800); }
.person-card > span { display: block; color: var(--color-muted); font-size: var(--fs-small); margin-top: 2px; }
.person-creds { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; gap: var(--space-2); }
.person-creds li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; font-size: .95rem; color: var(--color-ink-soft); }
.person-creds li::before { content: ""; width: 20px; height: 20px; margin-top: 1px; background: var(--color-primary-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e2e3d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat; border-radius: 50%; }

/* --- Logo-Wortmarke: heller Footer-Kontext --- */
.site-footer .brand__name { color: #fff; }
.site-footer .brand__sub { color: rgba(255,255,255,.6); }

/* --- Realistische Bohr-Visualisierung (Hero) --- */
.depth-visual { background: #1a2735; }
.depth-visual svg.rig-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rig-rod { transform-box: fill-box; transform-origin: top center; animation: rodGrow 3.6s cubic-bezier(.45,.05,.55,.95) infinite alternate; }
.rig-bit { animation: bitDown 3.6s cubic-bezier(.45,.05,.55,.95) infinite alternate; }
@keyframes rodGrow { 0% { transform: scaleY(.05); } 100% { transform: scaleY(1); } }
@keyframes bitDown { 0% { transform: translateY(0); } 100% { transform: translateY(392px); } }
.rig-dust { transform-origin: center; animation: dust 1s ease-in-out infinite; }
@keyframes dust { 0%,100% { opacity: .15; } 50% { opacity: .5; } }
.depth-caption {
  position: absolute; left: 16px; bottom: 14px; right: 16px; z-index: 2;
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .92rem; line-height: 1.2;
  text-shadow: 0 1px 8px rgba(0,0,0,.5); text-wrap: balance;
}
.depth-caption span { display: block; margin-top: 3px; font-family: var(--font-body); font-weight: 500; font-size: .7rem; color: rgba(255,255,255,.75); letter-spacing: .01em; }
@media (prefers-reduced-motion: reduce) {
  .rig-rod { animation: none; transform: scaleY(.82); }
  .rig-bit { animation: none; transform: translateY(322px); }
  .rig-dust { animation: none; }
}


/* ============================================================
   Bohrprofil – interaktiver Erdwärme-Querschnitt (Eyecatcher)
   ============================================================ */
.bh-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-10); align-items: center; }
.bh-text .lead { margin-top: var(--space-4); }
.bh-facts { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; gap: var(--space-2); max-width: 460px; }
.bh-facts li { display: flex; justify-content: space-between; gap: var(--space-4); padding: 10px 14px; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-sm); }
.bh-facts__k { color: var(--color-ink-soft); }
.bh-facts__v { color: var(--color-primary-800); font-weight: 700; text-align: right; }
.bh-figure { margin: 0; }
.bh-figure svg { display: block; width: 100%; height: auto; max-width: 460px; margin-inline: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: #eef3f8; }
.bh-figure figcaption { margin-top: var(--space-3); text-align: center; font-size: var(--fs-small); color: var(--color-muted); }

/* Sonde: dauerhaft vollständig gezeichnet – robust, unabhängig von
   Scroll-/Animations-/Tab-Zustand. Sieht damit nie halb-fertig aus. */
.bh-sonde { stroke-dashoffset: 0; }

/* Zirkulation der Sole: fließende Highlights – kalt (blau) runter, warm (rot) hoch.
   Läuft dauerhaft (nicht von is-visible abhängig), damit es nie „steht". */
.bh-flow-stream { stroke-dasharray: 10 34; stroke-dashoffset: 0; animation: bhStream 1.5s linear infinite; }
@keyframes bhStream { to { stroke-dashoffset: -44; } }

/* Wärme-Chevrons erscheinen gestaffelt */
.bh-heat__i { opacity: 0; }
.bh-figure.is-visible .bh-heat__i { animation: bhHeat .5s ease forwards; }
.bh-figure.is-visible .bh-heat__i:nth-child(1) { animation-delay: 1.7s; }
.bh-figure.is-visible .bh-heat__i:nth-child(2) { animation-delay: 1.8s; }
.bh-figure.is-visible .bh-heat__i:nth-child(3) { animation-delay: 1.95s; }
.bh-figure.is-visible .bh-heat__i:nth-child(4) { animation-delay: 2.05s; }
.bh-figure.is-visible .bh-heat__i:nth-child(5) { animation-delay: 2.2s; }
.bh-figure.is-visible .bh-heat__i:nth-child(6) { animation-delay: 2.3s; }
@keyframes bhHeat { from { opacity: 0; } to { opacity: 0.9; } }

/* Fenster-/Wärmepumpen-Glühen */
.bh-window { transform-box: fill-box; transform-origin: center; }
.bh-figure.is-visible .bh-window { animation: bhGlow 3s 2.4s ease-in-out infinite; }
@keyframes bhGlow { 0%,100% { fill: #2f6fd6; } 50% { fill: #ffc861; } }

@media (max-width: 860px) {
  .bh-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .bh-figure svg { max-width: 400px; }
}
@media (prefers-reduced-motion: reduce) {
  .bh-sonde { stroke-dashoffset: 0; }
  .bh-heat__i { opacity: 0.9; }
  .bh-flow-stream { animation: none; opacity: 0.55; }
  .bh-figure.is-visible .bh-heat__i,
  .bh-figure.is-visible .bh-window { animation: none; }
}

/* ============================================================
   NRW-Einsatzkarte (Eyecatcher)
   ============================================================ */
.nrw-wrap { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: var(--space-10); align-items: center; }
.nrw-map { position: relative; width: 100%; max-width: 620px; aspect-ratio: 520 / 560; margin-inline: auto;
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.nrw-bg { position: absolute; inset: 0; width: 100%; height: 100%; }

.nrw-pin { position: absolute; transform: translate(-50%, -50%); display: block; width: 18px; height: 18px; z-index: 1; }
.nrw-pin:focus-visible { outline: none; }
.nrw-dot { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--color-accent-500);
  border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(20,32,43,.35); transition: transform .18s ease, background .18s ease; }
.nrw-pin:hover .nrw-dot, .nrw-pin:focus-visible .nrw-dot { transform: scale(1.35); background: var(--color-accent-600); }
.nrw-pin:focus-visible .nrw-dot { box-shadow: 0 0 0 3px var(--color-accent-100), 0 2px 6px rgba(20,32,43,.35); }

/* Sitz (HQ) hervorheben */
.nrw-pin--hq { width: 22px; height: 22px; z-index: 2; }
.nrw-pin--hq .nrw-dot { width: 20px; height: 20px; background: var(--color-primary-800); }
.nrw-pin--hq .nrw-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--color-accent-500); animation: nrwPulse 2.4s ease-out infinite; }
@keyframes nrwPulse { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
.nrw-river-flow { animation: nrwFlow 3.5s linear infinite; }
@keyframes nrwFlow { to { stroke-dashoffset: -62; } }
@media (prefers-reduced-motion: reduce) { .nrw-river-flow { animation: none; } }

/* Tooltip */
.nrw-tip { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translate(-50%, 6px);
  min-width: 150px; max-width: 220px; background: var(--color-primary-900); color: #fff; text-align: center;
  padding: 10px 12px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, transform .18s ease; z-index: 5; }
.nrw-tip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: var(--color-primary-900); }
.nrw-tip strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.nrw-tip small { display: block; color: #9db4c9; font-size: .78rem; margin-top: 1px; }
.nrw-tip em { display: block; color: var(--color-accent-500); font-style: normal; font-weight: 700; font-size: .82rem; margin-top: 4px; }
.nrw-tip .nrw-go { display: block; color: #cdddf2; font-size: .78rem; margin-top: 6px; }
.nrw-pin:hover, .nrw-pin:focus-visible { z-index: 6; }
.nrw-pin:hover .nrw-tip, .nrw-pin:focus-visible .nrw-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto; }

/* Seitliche Info + Legende */
.nrw-hint { display: flex; align-items: center; gap: 10px; color: var(--color-ink-soft); font-size: var(--fs-small); margin-bottom: var(--space-5); }
.nrw-hint__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--color-accent-500); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(20,32,43,.3); flex: none; }
.nrw-legend { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nrw-legend a { display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  padding: 9px 12px; background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--color-primary-800); font-weight: 600; font-size: var(--fs-small); transition: var(--transition); }
.nrw-legend a:hover { border-color: var(--color-accent-500); color: var(--color-accent-600); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.nrw-legend a span { color: var(--color-muted); font-weight: 500; white-space: nowrap; }
.nrw-note { margin-top: var(--space-5); font-size: var(--fs-small); color: var(--color-muted); }

@media (max-width: 860px) {
  .nrw-wrap { grid-template-columns: 1fr; gap: var(--space-8); }
}
@media (max-width: 480px) {
  .nrw-legend { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .nrw-pin--hq .nrw-dot::after { animation: none; }
}

.nrw-legend__head { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small);
  color: var(--color-primary-800); margin-bottom: 10px; letter-spacing: .01em; }

/* Stadtnamen auf der Karte */
.nrw-name { position: absolute; left: 23px; top: 50%; transform: translateY(-50%);
  font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap; color: var(--color-primary-800);
  pointer-events: none; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 1px 2px #fff; }
.nrw-pin--left .nrw-name { left: auto; right: 23px; }
.nrw-pin--hq .nrw-name { font-weight: 800; color: var(--color-primary-900); }
.nrw-pin--below .nrw-name { left: 50%; top: auto; bottom: -11px; transform: translate(-50%, 100%); }

/* ============================================================
   NRW-Karte – interaktiver Standort-Explorer
   ============================================================ */
.nrw-explore { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: var(--space-8); align-items: start; }
/* Button-Reset für Pins */
.nrw-pin { border: 0; background: none; padding: 0; margin: 0; font: inherit; cursor: pointer; }
.nrw-pin .nrw-name { transition: font-weight .12s ease; }
.nrw-pin.is-active { z-index: 7; }
.nrw-pin.is-active .nrw-dot { transform: scale(1.55); box-shadow: 0 0 0 5px rgba(47,111,214,.20), 0 3px 10px rgba(20,32,43,.45); }
.nrw-pin.is-active .nrw-name { font-weight: 800; color: var(--color-primary-900); }

/* Detail-Panel */
.nrw-panel { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: var(--space-6); position: sticky; top: 92px; }
.nrw-panel .eyebrow { margin-bottom: var(--space-2); }
.nrw-panel__name { font-size: 1.6rem; line-height: 1.1; }
.nrw-panel__sub { color: var(--color-muted); font-size: var(--fs-small); margin: 2px 0 var(--space-5); }
.nrw-panel__vals { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-bottom: var(--space-5); }
.nrw-val { background: var(--color-primary-50); border: 1px solid var(--color-line); border-radius: var(--radius-sm); padding: 10px 12px; }
.nrw-val > span { display: block; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--color-muted); }
.nrw-val strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--color-primary-800); line-height: 1.2; }
.nrw-val small { color: var(--color-muted); font-size: .68rem; }
.nrw-gauge { margin-bottom: var(--space-5); }
.nrw-gauge__top { font-size: var(--fs-small); color: var(--color-ink-soft); margin-bottom: 7px; }
.nrw-gauge__top em { font-style: normal; font-weight: 800; color: var(--color-accent-600); }
.nrw-gauge__track { height: 10px; border-radius: 999px; background: var(--color-bg-tint); overflow: hidden; }
.nrw-gauge__fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #7f9bb4, #2f6fd6); transition: width .5s cubic-bezier(.4,0,.2,1); }
.nrw-gauge__scale { display: flex; justify-content: space-between; font-size: .68rem; color: var(--color-muted); margin-top: 5px; }
.nrw-panel__cta { margin-bottom: var(--space-4); }
.nrw-panel__cta .btn { padding: 11px 18px; font-size: .95rem; }
.nrw-panel__src { font-size: .72rem; color: var(--color-muted); line-height: 1.4; }

/* Aufklappbare Gesamtliste */
.nrw-all { margin-top: var(--space-8); background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: var(--space-4) var(--space-6); }
.nrw-all > summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; color: var(--color-primary-800); }
.nrw-all[open] > summary { margin-bottom: var(--space-5); }
.nrw-all .nrw-legend { margin-top: 0; }

@media (max-width: 860px) {
  .nrw-explore { grid-template-columns: 1fr; gap: var(--space-6); }
  .nrw-panel { position: static; }
}
@media (prefers-reduced-motion: reduce) { .nrw-gauge__fill { transition: none; } }

/* ============================================================
   Angebots-Assistent (Wizard)
   ============================================================ */
.wizard { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(var(--space-5), 4vw, var(--space-8)); }
.wizard__progress ol { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: flex; gap: var(--space-2); }
.wizard__progress li { flex: 1; display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small); color: var(--color-muted); white-space: nowrap; }
.wizard__progress li span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--color-bg-tint); color: var(--color-muted); font-size: .85rem; flex: none; transition: var(--transition); }
.wizard__progress li.is-active { color: var(--color-primary-800); }
.wizard__progress li.is-active span { background: var(--color-accent-500); color: #fff; }
.wizard__bar { height: 6px; border-radius: 999px; background: var(--color-bg-tint); overflow: hidden; }
.wizard__bar span { display: block; height: 100%; background: linear-gradient(90deg, #5b7e9c, #2f6fd6); border-radius: 999px; transition: width .4s cubic-bezier(.4,0,.2,1); }

.wizard__step { border: 0; padding: 0; margin: var(--space-6) 0 0; min-inline-size: auto; }
.wizard__step[hidden] { display: none; }
.wizard__step.is-active { animation: wizIn .35s ease; }
@keyframes wizIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.wizard__title { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h3); color: var(--color-ink); padding: 0; margin-bottom: var(--space-5); }
.wizard__q { font-weight: 700; margin: var(--space-6) 0 var(--space-3); color: var(--color-primary-800); }
.wizard__q:first-of-type { margin-top: 0; }
.wizard__hint { display: block; font-weight: 400; font-size: var(--fs-small); color: var(--color-muted); }

/* Klick-Karten */
.opt-grid { display: grid; gap: var(--space-3); }
.opt-grid--2 { grid-template-columns: repeat(2, 1fr); }
.opt-grid--3 { grid-template-columns: repeat(3, 1fr); }
.opt-grid--4 { grid-template-columns: repeat(4, 1fr); }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt__box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 96px; padding: var(--space-4) var(--space-3); border: 1.5px solid var(--color-line); border-radius: var(--radius); background: #fff;
  font-weight: 600; font-size: var(--fs-small); color: var(--color-primary-800); transition: var(--transition); }
.opt__box--sm { min-height: 56px; flex-direction: row; }
.opt__ico { color: var(--color-primary-500); }
.opt__ico svg { width: 30px; height: 30px; }
.opt:hover .opt__box { border-color: var(--color-accent-500); transform: translateY(-1px); }
.opt input:checked + .opt__box { border-color: var(--color-accent-500); background: var(--color-accent-100); box-shadow: inset 0 0 0 1px var(--color-accent-500); }
.opt input:checked + .opt__box .opt__ico { color: var(--color-accent-600); }
.opt input:focus-visible + .opt__box { outline: 3px solid var(--color-accent-500); outline-offset: 2px; }

/* Eingabefelder */
.field-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(3, 1fr); }
.field-grid--contact { grid-template-columns: repeat(2, 1fr); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-small); font-weight: 600; color: var(--color-primary-800); }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea { font: inherit; font-weight: 400; padding: 11px 13px; border: 1.5px solid var(--color-line); border-radius: var(--radius-sm); background: #fff; color: var(--color-ink); width: 100%; transition: var(--transition); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-accent-500); box-shadow: 0 0 0 3px var(--color-accent-100); }
.field__wrap { position: relative; display: block; }
.field__unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: .8rem; color: var(--color-muted); pointer-events: none; }
.field__wrap input { padding-right: 74px; }
.field.checkbox { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--color-ink-soft); }
.field.checkbox input { width: auto; margin-top: 3px; flex: none; }

.wizard__nav { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-8); }
.wizard__spacer { flex: 1; }
.wizard__note { margin-top: var(--space-4); font-size: var(--fs-small); color: var(--color-accent-600); font-weight: 600; }
.wizard__alt { margin-top: var(--space-5); text-align: center; color: var(--color-muted); font-size: var(--fs-small); }

@media (max-width: 620px) {
  .opt-grid--4, .opt-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .field-grid, .field-grid--contact { grid-template-columns: 1fr; }
  .wizard__progress li { font-size: .72rem; }
}

/* ============================================================
   Angebots-Assistent · Live-Sofort-Einschätzung
   ============================================================ */
.wizard-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: var(--space-8); align-items: start; }
.est { position: sticky; top: 92px; background: var(--color-primary-800); color: #e8f1ec; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-6); }
.est .eyebrow { color: var(--color-accent-500); }
.est__title { color: #fff; font-size: 1.4rem; margin-bottom: var(--space-4); }
.est__empty { color: #b7cec3; font-size: var(--fs-small); line-height: 1.6; }
.est__empty strong { color: #fff; }
.est__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.est__cell { background: rgba(255,255,255,.06); border-radius: var(--radius-sm); padding: 12px 14px; }
.est__cell span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: #9db4c9; }
.est__cell strong { font-family: var(--font-display); font-size: 1.25rem; color: #fff; }
.est__config { margin-top: var(--space-3); padding: 10px 14px; border: 1px dashed rgba(255,255,255,.25); border-radius: var(--radius-sm); font-size: var(--fs-small); color: #dce8f2; }
.est__cost { margin-top: var(--space-4); display: flex; flex-direction: column; gap: 2px; }
.est__cost span { font-size: .75rem; color: #9db4c9; }
.est__cost strong { font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.est__save { margin-top: var(--space-5); background: rgba(47,111,214,.16); border: 1px solid rgba(47,111,214,.4); border-radius: var(--radius); padding: var(--space-4); }
.est__save-label { font-size: .75rem; color: #cdddf2; }
.est__save-num { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: #8fd0ff; line-height: 1.1; margin: 2px 0 var(--space-3); }
.est__bars { display: grid; gap: 8px; }
.est__bar { display: block; }
.est__bar label { display: flex; justify-content: space-between; font-size: .72rem; color: #cdddf2; margin-bottom: 3px; }
.est__bar-fill { display: block; height: 9px; border-radius: 999px; transition: width .6s cubic-bezier(.4,0,.2,1); }
.est__bar-fill--gas { background: #7d94a8; }
.est__bar-fill--geo { background: linear-gradient(90deg, #2f6fd6, #8fd0ff); }
.est__foerder { margin-top: var(--space-3); font-size: var(--fs-small); color: #b8e6c4; }
.est__cta { margin-top: var(--space-5); }
.est__note { margin-top: var(--space-3); font-size: .68rem; color: #8aa2b5; line-height: 1.5; }
@media (max-width: 900px) {
  .wizard-layout { grid-template-columns: 1fr; }
  .est { position: static; order: -1; }
}
@media (prefers-reduced-motion: reduce) { .est__bar-fill { transition: none; } }

/* ============================================================
   Angebots-Assistent · Abschluss-Screen
   ============================================================ */
.wizard__done { text-align: center; padding: var(--space-4) 0; animation: wizIn .4s ease; }
.done__check { display: inline-grid; place-items: center; width: 84px; height: 84px; margin-bottom: var(--space-5); }
.done__check svg { width: 84px; height: 84px; }
.done__circle { stroke: var(--color-accent-500); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: doneCircle .6s ease forwards; }
.done__mark { stroke: var(--color-accent-500); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: doneMark .4s .5s ease forwards; }
@keyframes doneCircle { to { stroke-dashoffset: 0; } }
@keyframes doneMark { to { stroke-dashoffset: 0; } }
.done__title { font-size: var(--fs-h2); margin-bottom: var(--space-3); }
.done__sub { max-width: 52ch; margin: 0 auto var(--space-8); color: var(--color-ink-soft); font-size: var(--fs-lead); }
.done__timeline { list-style: none; padding: 0; margin: 0 auto var(--space-8); max-width: 560px; text-align: left; display: grid; gap: 2px; }
.done__timeline li { display: flex; gap: var(--space-4); padding: var(--space-4) 0; position: relative; }
.done__timeline li::before { content: ""; position: absolute; left: 18px; top: 40px; bottom: -6px; width: 2px; background: var(--color-line); }
.done__timeline li:last-child::before { display: none; }
.done__timeline li > span { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--color-accent-500); color: #fff; font-family: var(--font-display); font-weight: 800; z-index: 1; }
.done__timeline strong { display: block; font-family: var(--font-display); color: var(--color-primary-800); margin-bottom: 2px; }
.done__timeline div { color: var(--color-ink-soft); font-size: var(--fs-small); padding-top: 6px; }
.wizard__done .cta-row { justify-content: center; }
@media (prefers-reduced-motion: reduce) {
  .done__circle, .done__mark { animation: none; stroke-dashoffset: 0; }
}

/* Bohrprofil scroll-gesteuert (Sonde bohrt beim Scrollen) */

/* ============================================================
   Kosten-/Ersparnis-Rechner (Homepage)
   ============================================================ */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.calc__panel { padding: clamp(var(--space-5), 4vw, var(--space-8)); display: flex; flex-direction: column; justify-content: center; }
.calc__toggle { display: inline-flex; background: var(--color-bg-tint); border-radius: var(--radius-pill); padding: 4px; margin-bottom: var(--space-6); align-self: flex-start; }
.calc__toggle button { border: 0; background: none; font: inherit; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small); color: var(--color-muted); padding: 8px 16px; border-radius: var(--radius-pill); cursor: pointer; transition: var(--transition); }
.calc__toggle button.is-active { background: #fff; color: var(--color-primary-800); box-shadow: var(--shadow-sm); }
.calc__slabel { font-weight: 600; color: var(--color-primary-800); margin-bottom: var(--space-4); }
.calc__slabel strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--color-accent-600); }
.calc__slider { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: var(--color-bg-tint); outline-offset: 4px; }
.calc__slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--color-accent-500); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(20,32,43,.35); cursor: pointer; }
.calc__slider::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--color-accent-500); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(20,32,43,.35); cursor: pointer; }
.calc__scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--color-muted); margin-top: 8px; }
.calc__out { background: var(--color-primary-800); color: #e8f1ec; padding: clamp(var(--space-5), 4vw, var(--space-8)); }
.calc__stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-bottom: var(--space-5); }
.calc__stat { background: rgba(255,255,255,.06); border-radius: var(--radius-sm); padding: 12px 14px; }
.calc__stat span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: #9db4c9; }
.calc__stat strong { font-family: var(--font-display); font-size: 1.3rem; color: #fff; }
.calc__save { background: rgba(47,111,214,.16); border: 1px solid rgba(47,111,214,.4); border-radius: var(--radius); padding: var(--space-4); margin-bottom: var(--space-5); }
.calc__save-label { font-size: .75rem; color: #cdddf2; }
.calc__save-num { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: #8fd0ff; line-height: 1.1; margin: 2px 0 var(--space-3); }
.calc__note { margin-top: var(--space-3); font-size: .68rem; color: #8aa2b5; line-height: 1.5; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }

/* Rechner: Bohrmeter-Fokus */
.calc__stat--hero { background: rgba(47,111,214,.16); border: 1px solid rgba(47,111,214,.4); }
.calc__stat--hero strong { color: #8fd0ff; }
.calc__config { margin: -14px 0 var(--space-5); font-size: var(--fs-small); color: #cdddf2; }

/* Quellenangabe unter Tabellen/Artikeln */
.article-source { margin-top: calc(-1 * var(--space-3)); font-size: var(--fs-small); color: var(--color-muted); }

/* Heizungskeller-Anschlussgrafik */
.hk-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(var(--space-6), 4vw, var(--space-10)); align-items: center; }
.hk-figure { margin: 0; }
.hk-figure svg { display: block; width: 100%; height: auto; max-width: 680px; margin-inline: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: #eef3f8; }
.hk-figure figcaption { margin-top: var(--space-3); text-align: center; font-size: var(--fs-small); color: var(--color-muted); }
.hk-text ul { margin: var(--space-4) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-3); }
.hk-text li { position: relative; padding-left: 28px; line-height: 1.5; }
.hk-text li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--color-accent-500); }
.hk-text li::after { content: ""; position: absolute; left: 5px; top: 8.5px; width: 6px; height: 3.5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
@media (max-width: 860px) { .hk-wrap { grid-template-columns: 1fr; } }

/* Referenzprojekt – Eckdaten */
.ref-facts { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.ref-facts li { font-size: var(--fs-small); color: var(--color-ink-soft); line-height: 1.4; }
.ref-facts strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--color-primary-800); }
@media (max-width: 560px) { .ref-facts { grid-template-columns: 1fr; } }

/* Referenzprojekt – Fotos (standardmäßig verborgen, erst nach erfolgreichem Laden sichtbar) */
.ref-media { margin-bottom: var(--space-4); }
.ref-media:not(:has(.is-loaded)) { margin-bottom: 0; }
.ref-figure { margin: 0; border-radius: var(--radius); overflow: hidden; display: none; }
.ref-figure.is-loaded { display: block; }
.ref-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.ref-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.ref-gallery:has(.is-loaded) { margin-top: 8px; }
.ref-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); display: none; }
.ref-gallery img.is-loaded { display: block; }

/* Sticky Mobile-CTA-Bar (Anrufen + Angebot) – nur auf kleinen Screens */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    background: var(--color-line); box-shadow: 0 -6px 20px rgba(20,32,43,.16);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-cta__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 54px; padding: 12px 8px; text-decoration: none;
    font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  }
  .mobile-cta__btn svg { width: 20px; height: 20px; flex: none; }
  .mobile-cta__btn--call { background: #fff; color: var(--color-primary-800); }
  .mobile-cta__btn--offer { background: var(--color-accent-500); color: #fff; }
  .mobile-cta__btn--wa { background: #25d366; color: #fff; }
  .mobile-cta--3 { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer { padding-bottom: 78px; }
}

/* Cookie-/Consent-Banner */
.consent[hidden] { display: none; }
.consent { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: var(--space-4); }
.consent__backdrop { position: absolute; inset: 0; background: rgba(12,20,28,.6); }
.consent__dialog { position: relative; background: #fff; border-radius: var(--radius-lg); box-shadow: 0 24px 70px rgba(12,20,28,.35); max-width: 560px; width: 100%; padding: clamp(var(--space-5), 4vw, var(--space-8)); max-height: 90vh; overflow: auto; }
.consent__dialog h2 { margin-bottom: var(--space-3); }
.consent__cats { margin: var(--space-5) 0; display: grid; gap: var(--space-3); }
.consent__cat { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; line-height: 1.45; }
.consent__cat input { margin-top: 3px; flex: none; }
.consent__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.consent__actions .btn { flex: 1 1 auto; }
.consent__links { margin-top: var(--space-4); font-size: var(--fs-small); color: var(--color-muted); }
.consent__links a { color: inherit; }
.footer-bottom [data-consent-open] { cursor: pointer; }

/* Platzhalter für einwilligungspflichtige externe Einbindungen (z. B. Karte) */
.map-consent { position: relative; display: flex; align-items: center; justify-content: center; min-height: 300px; background: #eef3f7; text-align: center; }
.map-consent__inner { padding: var(--space-6); max-width: 440px; }
.map-consent__inner p { margin-bottom: var(--space-3); font-size: .95rem; }
.map-consent__hint { font-size: var(--fs-small); color: var(--color-muted); margin-bottom: 0; }
.map-consent.is-loaded { display: block; min-height: 0; }

/* ---------- Kundenstimmen / Reviews ---------- */
.reviews {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: var(--space-6);
  align-items: stretch;
}
.reviews__score {
  background: var(--color-primary-800);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.reviews__stars { font-size: 1.4rem; letter-spacing: 4px; color: #fff; margin-bottom: var(--space-3); }
.reviews__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.reviews__meta { color: var(--color-primary-100); margin-bottom: var(--space-4); }
.reviews__meta strong { color: #fff; }
.reviews__link { color: #fff; font-weight: 600; font-size: var(--fs-small); text-decoration: underline; text-underline-offset: 3px; }
.reviews__link:hover { color: var(--color-primary-100); }

.review {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.review__stars { color: var(--color-accent-500); font-size: 1.1rem; letter-spacing: 2px; }
.review__text {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--color-ink);
  font-weight: 500;
  margin: 0;
}
.review__author { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.review__name { font-weight: 700; color: var(--color-primary-800); }
.review__source { font-size: var(--fs-small); color: var(--color-muted); }

@media (max-width: 720px) {
  .reviews { grid-template-columns: 1fr; }
}
