/* ==========================================================================
   gcg gmbh – Website-Design-System «Hell & Flach»
   Weisse Basis, flache pastellfarbene Farbflächen, scharfe Kanten,
   kräftige rechteckige Buttons. Headlines: Plus Jakarta Sans, Text: Inter.
   ========================================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-var.woff2') format('woff2');
}

:root {
  --navy: #0E1E42;
  --ink: #1A2437;
  --ink-soft: #46516A;
  --muted: #71798C;

  --bg: #FFFFFF;
  --bg-grey: #F4F5F6;
  --line: #E4E7EA;

  --green: #16A34A;
  --green-deep: #107A38;
  --sky: #0284C7;
  --amber: #D97706;

  --tint-mint: #E7F4EC;
  --tint-sky: #E8F2FA;
  --tint-sand: #F6EFE3;
  --tint-navy: #EDF0F6;

  --font-head: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --container: 1200px;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
address { font-style: normal; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---- Typografie ---- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--navy);
}
h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.22rem; line-height: 1.3; }

.lead { font-size: 1.09rem; color: var(--ink-soft); max-width: 640px; }
.grad-text { color: var(--green); }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--tint-mint);
  padding: 7px 14px;
  margin-bottom: 20px;
}
.kicker--sky { color: #075E8D; background: var(--tint-sky); }
.kicker--amber { color: #92510A; background: var(--tint-sand); }
.kicker--navy { color: var(--navy); background: var(--tint-navy); }
.kicker--light { color: var(--green-deep); background: var(--tint-mint); }

.section { padding: 88px 0; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.section-head p { margin-top: 16px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border: none;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  transition: all 0.18s ease;
}
.btn .arr { transition: transform 0.18s ease; }
.btn:hover .arr { transform: translateX(4px); }

.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-deep); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: #1A2F5E; }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--tint-navy); }
.btn--outline-light,
.btn--outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn--outline-light:hover,
.btn--outline:hover { background: var(--navy); color: #fff; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--green-deep);
}
.textlink .arr { transition: transform 0.2s ease; }
.textlink:hover .arr { transform: translateX(4px); }

.ibadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: var(--tint-mint);
  color: var(--green-deep);
  flex-shrink: 0;
}
.ibadge svg { width: 26px; height: 26px; }
.ibadge--sky { background: var(--tint-sky); color: #075E8D; }
.ibadge--amber { background: var(--tint-sand); color: #92510A; }
.ibadge--navy { background: var(--tint-navy); color: var(--navy); }

/* ==========================================================================
   Header – hell
   ========================================================================== */
/* Kein backdrop-filter: er macht den Header zum Containing Block für
   position:fixed und zerschneidet das Mobile-Fullscreen-Menü. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.header-logo img { width: 122px; height: auto; }

/* Logo und Burger bleiben über dem Mobile-Overlay (z-index 890) sichtbar */
.header-logo, .nav-toggle { position: relative; z-index: 895; }

.main-nav { display: none; align-items: center; gap: 2px; }
.main-nav a {
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.16s ease;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--navy); }
.main-nav a.is-active { color: var(--navy); font-weight: 600; border-bottom-color: var(--green); }
.main-nav .nav-cta {
  margin-left: 14px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  padding: 12px 24px;
  border-bottom: none;
}
.main-nav .nav-cta:hover { background: var(--green-deep); color: #fff; }

.header-right { display: flex; align-items: center; gap: 16px; }
.header-phone { display: none; white-space: nowrap; font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; color: var(--navy); }
.header-phone:hover { color: var(--green-deep); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 12px 11px;
  background: var(--tint-navy);
  border: none;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); transition: all 0.25s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.nav-open { overflow: hidden; }

/* Mobile-Menü: animiertes Fullscreen-Overlay (immer gerendert, damit die
   Transitions greifen; Zentrierung über auto-Margins bleibt scrollbar) */
@media (max-width: 1023px) {
  .main-nav {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 890;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: calc(var(--header-h) + 16px) 26px 36px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.28s ease, visibility 0s linear 0.28s;
  }
  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.28s ease;
  }
  .main-nav a {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    white-space: normal;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.32s ease, transform 0.32s ease;
  }
  .main-nav a:first-child { margin-top: auto; }
  .main-nav a.is-active { color: var(--green-deep); }
  .main-nav .nav-cta { margin: 22px 0 auto; text-align: center; justify-content: center; display: flex; color: #fff; border-bottom: none; }
  .main-nav.is-open a { opacity: 1; transform: none; }
  .main-nav.is-open a:nth-child(1) { transition-delay: 0.05s; }
  .main-nav.is-open a:nth-child(2) { transition-delay: 0.09s; }
  .main-nav.is-open a:nth-child(3) { transition-delay: 0.13s; }
  .main-nav.is-open a:nth-child(4) { transition-delay: 0.17s; }
  .main-nav.is-open a:nth-child(5) { transition-delay: 0.21s; }
  .main-nav.is-open a:nth-child(6) { transition-delay: 0.25s; }
  .main-nav.is-open a:nth-child(7) { transition-delay: 0.29s; }
}
@media (prefers-reduced-motion: reduce) {
  .main-nav, .main-nav a { transition: none; }
}

/* ==========================================================================
   Hero – hell, mit Service-Leiste
   ========================================================================== */
.hero { background: var(--bg); }
.hero-stage { position: relative; }
.hero-stage__text { padding: 48px 0 40px; }
.hero h1 { margin-bottom: 24px; font-size: clamp(2.4rem, 4.8vw, 3.5rem); }
.hero .lead { margin-bottom: 36px; max-width: 540px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero-Video: mobil in voller Breite unter dem Text, Desktop absolut
   rechts randbündig mit weissem Verlauf (siehe responsive.css).
   Kein Loop: nach dem Ende blendet das scharfe Standbild des
   Schlussframes ein (.is-ended via main.js). */
.hero-video { position: relative; margin-bottom: 48px; }
.hero-video video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-video__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.hero-video.is-ended .hero-video__still { opacity: 1; }
.hero-video__fade { display: none; }

.svc-ribbon { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); }
.svc-ribbon a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  border-top: 1px solid var(--line);
  transition: all 0.16s ease;
}
.svc-ribbon a:first-child { border-top: none; }
.svc-ribbon a:hover { background: var(--tint-mint); color: var(--green-deep); }
.svc-ribbon svg { width: 17px; height: 17px; color: var(--green); flex-shrink: 0; }

/* ==========================================================================
   Leistungs-Kacheln
   ========================================================================== */
.tile-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.tile { position: relative; display: block; background: var(--bg-grey); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.tile:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(14, 30, 66, 0.12); }
.tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tile::after { display: none; }
.tile__body { padding: 22px 24px 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.tile__body h3 { font-size: 1.25rem; margin-bottom: 4px; }
.tile__body p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; }
.tile__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--navy);
  flex-shrink: 0;
  transition: all 0.18s ease;
}
.tile__arrow svg { width: 20px; height: 20px; color: #fff; }
.tile:hover .tile__arrow { background: var(--green); }

/* ==========================================================================
   Werte-Karten & Stats
   ========================================================================== */
.value-cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
.value-card { background: var(--bg-grey); padding: 32px 28px; }
.value-card:nth-child(1) { background: var(--tint-mint); }
.value-card:nth-child(2) { background: var(--tint-sky); }
.value-card:nth-child(3) { background: var(--tint-sand); }
.value-card:nth-child(4) { background: var(--tint-navy); }
.value-card .ibadge { margin-bottom: 18px; background: #fff; }
.value-card h3 { margin-bottom: 8px; }
.value-card p { font-size: 0.95rem; color: var(--ink-soft); }

.stat-pills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.stat-pill { background: #fff; padding: 26px 28px; }
.stat-pill strong { display: block; font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; line-height: 1.05; color: var(--navy); }
.stat-pill strong em { font-style: normal; color: var(--green); }
.stat-pill span { font-size: 0.85rem; color: var(--muted); font-weight: 500; }

/* ==========================================================================
   Fernwärme-Fläche (Mint)
   ========================================================================== */
.fw-mega { background: var(--tint-mint); padding: 88px 0; }
.fw-mega__grid { display: grid; grid-template-columns: 1fr; gap: 42px; align-items: center; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.fw-mega h2 { margin-bottom: 18px; }
.fw-mega .lead { margin-bottom: 30px; }
.fw-mega .kicker { background: #fff; }
.fw-mega__media img { width: 100%; }

.fw-feats { display: grid; gap: 10px; margin-bottom: 34px; }
.fw-feats li { display: flex; align-items: center; gap: 14px; background: #fff; padding: 14px 18px; font-size: 0.95rem; color: var(--ink-soft); }
.fw-feats .dot { width: 26px; height: 26px; background: var(--green); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fw-feats .dot svg { width: 14px; height: 14px; color: #fff; }
.fw-feats strong { color: var(--navy); }

/* ==========================================================================
   Galerie
   ========================================================================== */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery-grid figure { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-grey); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-grid figure:hover img { transform: scale(1.045); }

/* ==========================================================================
   CTA-Fläche
   ========================================================================== */
.cta-banner { background: var(--tint-mint); padding: 64px 32px; text-align: center; }
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p { color: var(--ink-soft); max-width: 520px; margin: 0 auto 30px; }
.cta-banner__actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; align-items: center; }
.cta-banner .btn--white { background: var(--green); color: #fff; }
.cta-banner .btn--white:hover { background: var(--green-deep); }
.cta-banner__phone { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.cta-banner__phone:hover { color: var(--green-deep); }
.cta-banner__phone svg { color: var(--green); }

/* ==========================================================================
   Unterseiten
   ========================================================================== */
.page-head { background: var(--bg); padding: 64px 0 40px; }
.page-head h1 { max-width: 680px; margin-bottom: 20px; }
.page-head .lead { max-width: 660px; }

.page-hero-img img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
/* Schnittbilder brauchen mehr Höhe: Dach und Bodenleitungen sollen sichtbar bleiben */
.page-hero-img--system img { aspect-ratio: 2 / 1; }

.feature-split { display: grid; grid-template-columns: 1fr; gap: 0; align-items: stretch; }
.feature-split__img { min-height: 320px; }
.feature-split__img img { width: 100%; height: 100%; object-fit: cover; }
.feature-split__img .contact-map { height: 100%; margin: 0; }
.feature-split__img .contact-map img { height: 100%; }
.feature-card { background: var(--bg-grey); padding: 44px 36px; }
.feature-card h2 { font-size: 1.6rem; margin-bottom: 12px; }
.feature-card > p { font-size: 0.98rem; color: var(--ink-soft); margin-bottom: 22px; }
.feature-card ul { display: grid; gap: 13px; margin-bottom: 28px; }
.feature-card li { display: flex; gap: 13px; align-items: flex-start; font-size: 0.95rem; color: var(--ink-soft); }
.feature-card li strong { color: var(--navy); }

.check-dot { width: 24px; height: 24px; background: var(--green); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.check-dot svg { width: 13px; height: 13px; color: #fff; }
.check-dot--sky { background: var(--sky); }
.check-dot--amber { background: var(--amber); }
.check-dot--navy { background: var(--navy); }

.numlist { display: grid; grid-template-columns: 1fr; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.numlist__item { display: flex; gap: 18px; background: #fff; padding: 26px 26px; }
/* Bewusst KEINE Nummerierung (01, 02, …) – thematische Icons (Lucide, ISC) */
.numlist__item .ibadge { width: 46px; height: 46px; }
.numlist__item .ibadge svg { width: 22px; height: 22px; }
.numlist__item h3 { font-size: 1.08rem; margin-bottom: 5px; }
.numlist__item p { font-size: 0.93rem; color: var(--ink-soft); }
.numlist__item p a { color: var(--green-deep); font-weight: 700; }

/* ==========================================================================
   Lead-Konfigurator (Multistep je Service)
   ========================================================================== */
.konfigurator { background: var(--bg-grey); padding: 88px 0; }
.konfigurator--mint { background: var(--tint-mint); }
.konfigurator--sky { background: var(--tint-sky); }
.konfigurator--sand { background: var(--tint-sand); }
.konfigurator--navy-t { background: var(--tint-navy); }

.konfig-card { background: #fff; max-width: 760px; margin: 0 auto; padding: 40px 34px; box-shadow: 0 18px 50px rgba(14, 30, 66, 0.1); }
.konfig-card__head { margin-bottom: 24px; }
.konfig-card__head h2 { font-size: 1.6rem; margin-bottom: 6px; }
.konfig-card__head p { font-size: 0.95rem; color: var(--muted); }

.konfig-progress { display: flex; gap: 6px; margin-bottom: 28px; }
.konfig-progress button {
  flex: 1;
  height: 6px;
  border: none;
  background: var(--line);
  transition: background 0.25s ease;
  padding: 0;
  position: relative;
}
.konfig-progress button::after {
  content: attr(data-label);
  position: absolute;
  top: 10px;
  left: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.konfig-progress button.is-active { background: var(--green); }
.konfig-progress button.is-active::after { color: var(--green-deep); font-weight: 700; }
.konfig-progress button.is-done { background: var(--green); opacity: 0.5; }

.konfig-step { display: none; padding-top: 16px; }
.konfig-step.is-active { display: block; animation: fadeUp 0.35s ease; }
.konfig-step__title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; }

.konfig-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.konfig-option {
  border: 2px solid var(--line);
  background: #fff;
  padding: 18px 16px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  transition: all 0.15s ease;
  min-height: 62px;
}
.konfig-option small { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted); margin-top: 3px; }
.konfig-option:hover { border-color: var(--green); }
.konfig-option.is-selected { border-color: var(--green); background: var(--tint-mint); }

.konfig-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; }
.konfig-back { background: none; border: none; font-weight: 600; color: var(--muted); padding: 10px 6px; }
.konfig-back:hover { color: var(--navy); }
.konfig-next, .konfig-submit { flex: 1; max-width: 340px; margin-left: auto; }

.konfig-trust { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; font-size: 0.8rem; color: var(--muted); }
.konfig-trust svg { width: 14px; height: 14px; color: var(--green); }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.contact-info { background: var(--tint-navy); padding: 40px 34px; }
.contact-info h2 { font-size: 1.45rem; margin-bottom: 22px; }
.contact-list { display: grid; gap: 20px; }
.contact-list .label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 4px; }
.contact-list > div { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; }
.contact-list a { font-weight: 700; color: var(--navy); }
.contact-list a:hover { color: var(--green-deep); }
.contact-map { margin-top: 26px; overflow: hidden; }
.contact-map img { width: 100%; }
.contact-map a { display: block; transition: opacity 0.16s ease; }
.contact-map a:hover { opacity: 0.92; }
.map-note { margin-top: 8px; font-size: 0.78rem; color: var(--muted); }

.form-card { background: var(--bg-grey); padding: 40px 34px; }
.form-card h2 { font-size: 1.45rem; margin-bottom: 6px; }
.form-card > p { font-size: 0.93rem; color: var(--muted); margin-bottom: 26px; }

.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr; }

.field label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 7px; color: var(--navy); }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: all 0.16s ease;
}
.field textarea { height: auto; min-height: 130px; padding: 14px 16px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2371798C' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #DC2626; }
.field-error { display: none; font-size: 0.8rem; color: #DC2626; margin-top: 5px; }
.field.has-error .field-error { display: block; }

.consent-field { display: flex; gap: 11px; align-items: flex-start; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.55; }
.consent-field input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); flex-shrink: 0; }
.consent-field a { text-decoration: underline; }
.consent-field.has-error { color: #DC2626; }

.form-error-box { display: none; background: #FEF2F2; border: 1px solid #FECACA; color: #DC2626; font-size: 0.9rem; padding: 12px 16px; }
.form-note { font-size: 0.8rem; color: var(--muted); }
.hidden-input { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ==========================================================================
   Rechtsseiten & Danke
   ========================================================================== */
.legal-wrap { background: var(--bg-grey); padding: 44px 30px; margin: 48px 0 72px; }
.legal-wrap h1 { margin-bottom: 26px; }
.legal-wrap h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.legal-wrap p, .legal-wrap li { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 10px; }
.legal-wrap ul { list-style: disc; padding-left: 22px; }
.legal-wrap a { color: var(--green-deep); font-weight: 600; }

.thanks-wrap { padding: 100px 0; text-align: center; }
.thanks-badge { width: 76px; height: 76px; margin: 0 auto 28px; background: var(--green); display: flex; align-items: center; justify-content: center; }
.thanks-badge svg { width: 36px; height: 36px; color: #fff; }
.thanks-wrap h1 { margin-bottom: 14px; }
.thanks-wrap p { color: var(--ink-soft); max-width: 520px; margin: 0 auto 32px; }
.thanks-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Footer – hell
   ========================================================================== */
.site-footer { background: var(--bg-grey); border-top: 1px solid var(--line); color: var(--ink-soft); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-bottom: 44px; }
.footer-brand img { margin-bottom: 18px; }
.footer-brand p { font-size: 0.92rem; max-width: 300px; }
.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 16px;
}
.footer-address, .footer-contactlinks { font-size: 0.94rem; line-height: 1.7; }
.footer-contactlinks { margin-top: 10px; }
.footer-contactlinks a { font-weight: 700; color: var(--navy); }
.footer-contactlinks a:hover { color: var(--green-deep); }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.94rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--navy); }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; color: var(--muted); }

/* ==========================================================================
   Cookie-Banner
   ========================================================================== */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; display: flex; justify-content: center; padding: 16px; }
.cookie-banner__content { max-width: 700px; width: 100%; background: #fff; border: 1px solid var(--line); padding: 22px 24px; box-shadow: 0 16px 50px rgba(14, 30, 66, 0.18); }
.cookie-banner__text h3 { font-size: 1rem; margin-bottom: 6px; }
.cookie-banner__text p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.55; }
.cookie-banner__link { font-weight: 600; text-decoration: underline; color: var(--green-deep); }
.cookie-banner__actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.cookie-btn { flex: 1; min-width: 140px; padding: 13px 18px; border: none; font-family: var(--font-head); font-size: 0.9rem; font-weight: 700; transition: all 0.18s ease; }
.cookie-btn--accept { background: var(--green); color: #fff; }
.cookie-btn--accept:hover { background: var(--green-deep); }
.cookie-btn--reject { background: var(--bg-grey); color: var(--navy); border: 1px solid var(--line); }
.cookie-btn--reject:hover { background: var(--line); }

/* ==========================================================================
   Blick ins System (Schnittbilder der Gewerke)
   ========================================================================== */
.system-img img { display: block; width: 100%; height: auto; }
