/* ============================================================
   BKF Service GmbH – Website-Prototyp
   Farbwelt & Typografie nach Moodboard Variante 1
   ============================================================ */

/* ---------- Lokale Fonts (statt Google Fonts CDN) ---------- */
/* Inter 400/500/600/700 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
/* Barlow Condensed 600/700/800 */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

:root {
  --color-bg: #0D0F12;
  --color-bg-soft: #15181D;
  --color-bg-card: #1E1E1E;
  --color-border: rgba(255, 255, 255, 0.12);

  --color-green: #06A143;
  --color-green-dark: #047A34;
  --color-yellow: #FAE810;
  --color-blue: #1E6BFF;

  --color-text: #F4F6F2;
  --color-muted: #A8B0AA;
  --color-dark: #050607;

  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 10px;
}

html[data-theme="light"] {
  --color-bg: #F6F8F2;
  --color-bg-soft: #EAEFE5;
  --color-bg-card: #FFFFFF;
  --color-border: rgba(14, 22, 17, 0.14);

  --color-green: #047A34;
  --color-green-dark: #035C29;
  --color-yellow: #D7B800;
  --color-blue: #155AD1;

  --color-text: #101713;
  --color-muted: #526158;
  --color-dark: #101713;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--color-green); text-decoration: none; }
a:hover { color: var(--color-yellow); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-green);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.7rem); }

.accent { color: var(--color-green); }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  color: var(--color-green);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 46rem;
}

.section-head { margin-bottom: 2.75rem; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

.headline-mark {
  display: inline-block;
  width: 56px;
  height: 4px;
  background: var(--color-yellow);
  margin-bottom: 1rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(5, 6, 7, 0.75), rgba(5, 6, 7, 0));
}

.site-header.scrolled {
  background: rgba(13, 15, 18, 0.9);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 1.25rem;
  max-width: var(--container);
  margin: 0 auto;
}

.logo-link img { height: 56px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 1.75rem; }

.main-nav a {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover { color: var(--color-green); }

.main-nav a[aria-current="page"] {
  color: var(--color-green);
  border-bottom-color: var(--color-yellow);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.theme-switch {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 140;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-text);
  background: rgba(13, 15, 18, 0.86);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 0.55rem 0.55rem 0.55rem 0.9rem;
  text-transform: uppercase;
  white-space: nowrap;
}

html[data-theme="light"] .theme-switch {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 36px rgba(16, 23, 19, 0.16);
}

.theme-toggle {
  position: relative;
  width: 54px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg-soft);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-text);
  transition: transform 0.2s ease, background 0.2s ease;
}

.theme-toggle[aria-checked="true"] {
  background: var(--color-green);
  border-color: var(--color-green);
}

.theme-toggle[aria-checked="true"]::before {
  background: #fff;
  transform: translateX(24px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--color-green);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-green-dark);
  color: #fff;
  box-shadow: 0 0 22px rgba(6, 161, 67, 0.45);
}
.btn-primary::after { content: "→"; font-family: var(--font-body); }

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--color-text);
}
.btn-outline:hover {
  border-color: var(--color-yellow);
  color: var(--color-text);
}

html[data-theme="light"] .btn-outline {
  border-color: rgba(16, 23, 19, 0.24);
}

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--color-dark);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../images/hero5.png") center / cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.92) 0%, rgba(5, 6, 7, 0.55) 45%, rgba(5, 6, 7, 0.15) 100%),
    linear-gradient(180deg, rgba(5, 6, 7, 0.55) 0%, rgba(5, 6, 7, 0) 25%, rgba(5, 6, 7, 0) 70%, rgba(5, 6, 7, 0.85) 100%);
}

.hero > .container {
  width: 100%;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 8rem;
  padding-bottom: 4rem;
  /* Textbreite begrenzen, aber links am Container ausrichten (nicht zentrieren) */
  max-width: 44rem;
  margin-left: 0;
  margin-right: auto;
}

.hero__text {
  margin: 1.5rem 0 2rem;
  font-size: 1.15rem;
  color: rgba(244, 246, 242, 0.9);
  max-width: 36rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Trust-Bar */
.trust-bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-border);
  background: rgba(5, 6, 7, 0.6);
  backdrop-filter: blur(8px);
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.trust-item {
  padding: 1.4rem 1.5rem;
  border-left: 1px solid var(--color-border);
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.trust-item:first-child { border-left: none; }

.trust-item .icon { flex: 0 0 auto; margin-top: 0.2rem; }

.trust-item h3 { font-size: 1.15rem; color: var(--color-text); }
.trust-item p { font-size: 0.9rem; color: var(--color-muted); }

/* ---------- Subpage-Hero ----------
   Hero-Bild pro Seite austauschbar über die Custom-Property --hero-image.
   Im HTML am Section-Tag überschreiben (Pfad relativ zur HTML-Datei):
   <section class="page-hero" style="--hero-image: url('assets/images/hero-leistungen.webp')">
   Ohne Angabe greift das Standardbild aus dem Fallback unten.
   Optional --hero-pos für den Bildausschnitt, z. B. --hero-pos: center 60%;
*/
.page-hero {
  --hero-image: url("../images/hero3.jpg");
  --hero-pos: center 30%;
  position: relative;
  padding: 10rem 0 4rem;
  background-image:
    linear-gradient(90deg, rgba(5, 6, 7, 0.94) 0%, rgba(5, 6, 7, 0.75) 55%, rgba(5, 6, 7, 0.5) 100%),
    var(--hero-image);
  background-position: center, var(--hero-pos);
  background-size: auto, cover;
  background-repeat: no-repeat;
  border-bottom: 0px solid var(--color-border);
}

.page-hero .lead { margin-top: 1.25rem; }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-green); }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-soft { background: var(--color-bg-soft); }

/* ---------- Parallax-Section ----------
   Fest stehendes Hintergrundbild (Parallax-Effekt) hinter einer Section.
   Bild im HTML am Section-Tag setzen (Pfad relativ zur HTML-Datei):
   <section class="section section-parallax" style="--parallax-image: url('assets/images/parallax1.webp')">
   Optional --parallax-pos für den Bildausschnitt, z. B. --parallax-pos: center 40%;
   Dunkle Overlay-Ebene sorgt dafür, dass der Text lesbar bleibt.
*/
.section-parallax {
  --parallax-pos: center;
  position: relative;
  background:
    linear-gradient(180deg, rgba(13, 15, 18, 0.86) 0%, rgba(13, 15, 18, 0.78) 50%, rgba(13, 15, 18, 0.86) 100%),
    var(--parallax-image);
  background-position: center, var(--parallax-pos);
  background-size: cover, cover;
  background-repeat: no-repeat;
  background-attachment: fixed, fixed;
}

/* Intro zweispaltig */
.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}

.fact-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-green);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.fact-box h3 { margin-bottom: 0.5rem; }
.fact-box p { color: var(--color-muted); font-size: 0.95rem; }
.fact-box .tagline { margin-top: 0.75rem; color: var(--color-text); font-size: 0.9rem; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: var(--color-green);
  transform: translateY(-4px);
}

.card .icon { margin-bottom: 1.1rem; }

.card h3 {
  position: relative;
  padding-bottom: 0.7rem;
  margin-bottom: 0.8rem;
}

.card h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 34px;
  height: 3px;
  background: var(--color-yellow);
}

.card p { color: var(--color-muted); font-size: 0.95rem; }

.card .card-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ---------- Icons ---------- */
.icon {
  width: 44px;
  height: 44px;
  stroke: var(--color-green);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon .accent-stroke { stroke: var(--color-yellow); }
.icon-sm { width: 30px; height: 30px; }

/* ---------- Prozess / Ablauf ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.process-step {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
}

.process-step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1.5rem;
  width: 1.5rem;
  height: 2px;
  background: var(--color-yellow);
}
.process-step:last-child::after { display: none; }

.process-step .num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-green);
  line-height: 1;
  display: block;
  margin-bottom: 0.75rem;
}

.process-step h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.process-step p { color: var(--color-muted); font-size: 0.92rem; }

/* ---------- Liquid-Glass-Kacheln (über Parallax-Bild) ----------
   Frosted-Glass-Optik: durchscheinender, unscharfer Hintergrund + heller Rand.
   Fallback (ohne backdrop-filter): halbtransparente, aber deckende Fläche. */
.section-parallax .process-step {
  background: rgba(30, 30, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.section-parallax .process-step p { color: #d7dcd6; }

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .section-parallax .process-step {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
  }
}

/* Vertikale Timeline (Projektablauf-Seite) */
.timeline {
  position: relative;
  margin-left: 9px; /* bündig zum Container, Platz für die Punkte */
  padding-left: 2.5rem;
  border-left: 2px solid var(--color-border);
  max-width: 50rem;
}

.timeline-item { position: relative; padding-bottom: 3rem; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-2.5rem - 9px);
  top: 0.4rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 0 4px rgba(6, 161, 67, 0.25);
}

.timeline-item .num {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-yellow);
  text-transform: uppercase;
}

.timeline-item h3 { margin: 0.35rem 0 0.6rem; }
.timeline-item p { color: var(--color-muted); max-width: 42rem; }

.timeline-item ul { margin: 0.75rem 0 0 1.2rem; color: var(--color-muted); }
.timeline-item li { margin-bottom: 0.35rem; }

/* ---------- CTA-Band ---------- */
.cta-band {
  position: relative;
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 4rem 0;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(45deg,
    var(--color-yellow) 0 14px,
    var(--color-dark) 14px 28px);
  opacity: 0.85;
}

.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-band p { color: var(--color-muted); max-width: 34rem; }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-info h3 { margin-bottom: 1rem; }
.contact-info p { color: var(--color-muted); margin-bottom: 1rem; }
.contact-info .contact-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  color: var(--color-text);
}

.placeholder-note {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-yellow);
  border: 1px dashed rgba(250, 232, 16, 0.5);
  border-radius: 4px;
  padding: 0 0.4rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* Formular */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-field input,
.form-field textarea {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--color-green);
}

.form-note {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.spam-check {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form.is-submitting {
  opacity: 0.82;
}

.contact-form button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.form-overlay[hidden] {
  display: none;
}

.form-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
}

.form-overlay__panel {
  position: relative;
  width: min(100%, 28rem);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-overlay__panel::before {
  content: "";
  display: block;
  width: 3rem;
  height: 0.25rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: var(--color-green);
}

.form-overlay[data-state="loading"] .form-overlay__panel::before {
  background: var(--color-yellow);
}

.form-overlay[data-state="error"] .form-overlay__panel::before {
  background: #e15d4f;
}

.form-overlay__eyebrow {
  margin-bottom: 0.5rem;
  color: var(--color-green);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.form-overlay__panel h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.form-overlay__panel p {
  color: var(--color-muted);
}

.form-overlay__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-bg-soft);
  color: var(--color-text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.form-overlay__close:hover,
.form-overlay__close:focus-visible {
  border-color: var(--color-green);
  color: var(--color-green);
}

body.form-overlay-open {
  overflow: hidden;
}

/* ---------- Text-Seiten (Impressum, Datenschutz, Fachseiten) ---------- */
.prose { max-width: 50rem; }

/* Prose-Seiten: linksbündig zum Container (Logo/Claim), Zeilenlänge begrenzt */
.container.prose { max-width: var(--container); }
.container.prose > * { max-width: 50rem; }

.prose h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  margin: 2.5rem 0 0.9rem;
}
.prose h2:first-child { margin-top: 0; }

.prose h3 { margin: 1.75rem 0 0.6rem; font-size: 1.25rem; }
.prose p { margin-bottom: 1rem; color: var(--color-muted); }
.prose strong { color: var(--color-text); }
.prose ul { margin: 0 0 1rem 1.3rem; color: var(--color-muted); }
.prose li { margin-bottom: 0.4rem; }

.prose address {
  font-style: normal;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.notice-box {
  background: var(--color-bg-card);
  border: 1px solid rgba(250, 232, 16, 0.4);
  border-left: 4px solid var(--color-yellow);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--color-muted);
  font-size: 0.92rem;
}
.notice-box strong { color: var(--color-yellow); }

.info-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-green);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}
.info-box strong { color: var(--color-text); }

/* Checkliste */
.check-list { list-style: none; margin: 1rem 0; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.7rem;
  color: var(--color-muted);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-green);
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-dark);
  border-top: 1px solid var(--color-border);
  padding: 3.5rem 0 2rem;
  margin-top: 0;
}

.footer-warnstripe {
  height: 6px;
  background: repeating-linear-gradient(45deg,
    var(--color-yellow) 0 14px,
    var(--color-dark) 14px 28px);
  opacity: 0.85;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-grid h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.footer-grid p, .footer-grid li { color: var(--color-muted); font-size: 0.92rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { color: var(--color-muted); }
.footer-grid a:hover { color: var(--color-green); }

.footer-logo img { height: 60px; width: auto; margin-bottom: 1rem; }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.footer-bottom a { color: var(--color-muted); }
.footer-bottom a:hover { color: var(--color-green); }

/* ---------- Light Mode ---------- */
html[data-theme="light"] .site-header {
  background: rgba(246, 248, 242, 0.88);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
}

html[data-theme="light"] .site-header.scrolled {
  background: rgba(246, 248, 242, 0.96);
}

html[data-theme="light"] .hero {
  background: var(--color-bg-soft);
}

html[data-theme="light"] .hero__overlay {
  background:
    linear-gradient(90deg, rgba(246, 248, 242, 0.96) 0%, rgba(246, 248, 242, 0.78) 48%, rgba(246, 248, 242, 0.26) 100%),
    linear-gradient(180deg, rgba(246, 248, 242, 0.75) 0%, rgba(246, 248, 242, 0) 35%, rgba(246, 248, 242, 0) 68%, rgba(246, 248, 242, 0.92) 100%);
}

html[data-theme="light"] .hero__text {
  color: var(--color-muted);
}

html[data-theme="light"] .trust-bar {
  background: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .page-hero {
  background-image:
    linear-gradient(90deg, rgba(246, 248, 242, 0.96) 0%, rgba(246, 248, 242, 0.82) 58%, rgba(246, 248, 242, 0.5) 100%),
    var(--hero-image);
}

html[data-theme="light"] .section-parallax {
  background:
    linear-gradient(180deg, rgba(246, 248, 242, 0.9) 0%, rgba(246, 248, 242, 0.82) 50%, rgba(246, 248, 242, 0.9) 100%),
    var(--parallax-image);
}

html[data-theme="light"] .section-parallax .process-step {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(16, 23, 19, 0.16);
  box-shadow:
    0 10px 26px rgba(16, 23, 19, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

html[data-theme="light"] .section-parallax .process-step p {
  color: var(--color-muted);
}

html[data-theme="light"] .placeholder-note {
  color: #776500;
  border-color: rgba(119, 101, 0, 0.38);
}

html[data-theme="light"] .site-footer {
  background: #101713;
  color: #F4F6F2;
}

html[data-theme="light"] .site-footer h3 {
  color: #F4F6F2;
}

html[data-theme="light"] .site-footer p,
html[data-theme="light"] .site-footer li,
html[data-theme="light"] .site-footer a,
html[data-theme="light"] .footer-bottom {
  color: #B7C0B8;
}

html[data-theme="light"] .site-footer a:hover {
  color: var(--color-yellow);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 85vw);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    background: rgba(13, 15, 18, 0.98);
    border-left: 1px solid var(--color-border);
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  html[data-theme="light"] .main-nav {
    background: rgba(246, 248, 242, 0.98);
  }

  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.3rem; padding: 0.5rem 0; }
  .nav-toggle { display: block; position: relative; z-index: 110; }
  .header-cta { display: none; }
}

@media (max-width: 980px) {
  .card-grid, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }

  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step::after { display: none; }

  .split, .contact-grid { grid-template-columns: 1fr; }

  .trust-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-top: 1px solid var(--color-border); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .header-inner { gap: 0.75rem; }
  .logo-link img { height: 48px; }

  .theme-switch { font-size: 0.72rem; gap: 0.4rem; }

  .theme-toggle {
    width: 48px;
    height: 26px;
  }

  .theme-toggle::before {
    width: 18px;
    height: 18px;
  }

  .theme-toggle[aria-checked="true"]::before {
    transform: translateX(22px);
  }

  .header-cta { display: none; }

  .hero {
    display: block;
    min-height: 90vh;
    align-items: flex-start;
  }

  .hero__content {
    padding-top: 5.75rem;
    padding-bottom: 1.5rem;
  }

  .card-grid, .card-grid.cols-2, .card-grid.cols-4,
  .process-grid, .form-grid { grid-template-columns: 1fr; }

  .trust-bar__grid { grid-template-columns: 1fr; }
  .hero .trust-bar {
    position: relative !important;
    inset: auto !important;
    margin-top: 1rem;
  }
  .trust-item { border-left: none; }

  .footer-grid { grid-template-columns: 1fr; }

  .section { padding: 3.5rem 0; }
  .page-hero { padding: 8rem 0 3rem; }

  /* background-attachment: fixed wird auf iOS/Mobil ignoriert und ruckelt –
     daher mitscrollen lassen. */
  .section-parallax { background-attachment: scroll, scroll; }

  .hero__actions {
    margin-bottom: 1rem;
  }

  .hero__actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 380px) {
  .theme-switch__label {
    max-width: 4.8rem;
    line-height: 1.1;
    white-space: normal;
  }
}
