/* =====================================================================
   NOVASUN ENGINEERING — Design System
   Photovoltaik EPC · warm gold + white · consistent tokens
   ---------------------------------------------------------------------
   Struktur:
   1) Design-Tokens (Farben, Typo, Abstände, Radien, Schatten)
   2) Reset & Basis
   3) Layout-Helfer (container, grid, section)
   4) Typografie
   5) Komponenten (Buttons, Karten, Header, Footer, Hero, Formular ...)
   6) Animationen (Reveal, Counter) + prefers-reduced-motion
   7) Dark Mode
   8) Responsive
   ===================================================================== */

/* ------------------------------------------------------------------ */
/* 1) DESIGN-TOKENS                                                    */
/* ------------------------------------------------------------------ */
:root {
  /* Marken-Gold (warmes Gelbgold) */
  --gold-50:  #fdf8ec;
  --gold-100: #f9edcd;
  --gold-200: #f2d998;
  --gold-300: #ecc563;
  --gold-400: #e6b23a;
  --gold-500: #e0a82e;   /* Primär */
  --gold-600: #c6871a;   /* Tiefes Gold */
  --gold-700: #9c6712;
  --gold-800: #6f490f;
  --gold-900: #40290a;

  /* Warme Neutraltöne */
  --white:    #ffffff;
  --cream:    #fbf8f2;   /* warmes Weiß für Sektionen */
  --sand:     #f4eee2;
  --ink-900:  #1a1712;   /* Text nahezu schwarz, warm */
  --ink-700:  #3a342b;
  --ink-500:  #6b6252;
  --ink-400:  #8a8070;
  --line:     #e9e0cf;   /* Rahmen/Trennlinien */

  /* Semantische Farbrollen (Light = Standard) */
  --bg:            var(--white);
  --bg-alt:        var(--cream);
  --bg-elevated:   var(--white);
  --surface:       var(--white);
  --surface-2:     var(--sand);
  --text:          var(--ink-900);
  --text-muted:    var(--ink-500);
  --text-invert:   #ffffff;
  --border:        var(--line);
  --accent:        var(--gold-500);   /* leuchtendes Gold: CTAs, Flächen, Rahmen (Signal/Energie) */
  --accent-strong: var(--gold-700);   /* tiefes, gut lesbares Gold: Text, Links, Eyebrows (Vertrauen/Wertigkeit) */
  --accent-mid:    var(--gold-600);   /* Übergänge/Hover */
  --accent-soft:   var(--gold-100);
  --ring:          rgba(224, 168, 46, 0.45);

  /* Warme Füll-Flächen statt Schwarz: helle Amber-Bänder mit dunkler
     Schrift. Bewusst heller als die Buttons (--accent #e0a82e), damit
     die goldenen CTAs darauf klar hervortreten. */
  --band:        #fbe8bd;   /* helle, warme Amber-Fläche */
  --band-2:      #f6dda4;   /* etwas tieferes Amber für Verläufe */
  --band-text:   var(--ink-900);
  --band-muted:  var(--ink-500);

  /* Status */
  --danger: #c0392b;
  --success: #2e7d4f;

  /* Zweitakzent: gedämpftes Salbeigrün – Nachhaltigkeit/Positiv, sehr sparsam
     eingesetzt (Häkchen, CO₂-Kennzahl). Gold bleibt die Leitfarbe. */
  --eco:        #3f7a5e;
  --eco-strong: #2f6349;
  --eco-soft:   #e9f3ed;
  --eco-bright: #6fbf94;  /* helle Variante für dunkle Flächen */

  /* Typografie */
  /* Einheitliche Typografie: Syne für alles (Text, Überschriften, Labels) */
  --font-sans: "Syne", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Syne", "Segoe UI", system-ui, sans-serif;   /* Überschriften & Kennzahlen */
  --font-mono: "Syne", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; /* Daten/Utility – bewusst gleiche Schrift für ein einheitliches Bild */
  /* Modulare Skala nach dem Goldenen Schnitt (φ ≈ 1.618):
     lg = φ¹, 2xl = φ², 4xl = φ³ – klare, harmonische Hierarchie. */
  --fs-xs:   0.79rem;
  --fs-sm:   0.9rem;
  --fs-base: 1rem;
  --fs-md:   1.2rem;     /* Lead – ruhig über Fließtext */
  --fs-lg:   1.618rem;   /* φ¹  → H3 */
  --fs-xl:   2.058rem;   /* φ^1.5 → Abschnitts-/Prosa-Titel */
  --fs-2xl:  2.618rem;   /* φ²  → H2 */
  --fs-3xl:  3.33rem;    /* Seiten-Hero-H1 / Kennzahlen */
  --fs-4xl:  4.236rem;   /* φ³  → Hero-H1 */
  --lh-tight: 1.1;
  --lh-snug:  1.32;
  --lh-body:  1.62;      /* ≈ Goldener Schnitt: ruhiger, gut lesbarer Fließtext */

  /* Abstände (8pt-Raster) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6.5rem;   /* ≈ 4 × φ  – großzügiger Abschnittsabstand */
  --sp-10: 10.5rem; /* ≈ 6.5 × φ */

  /* Radien */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Schatten (warm getönt) */
  --shadow-sm: 0 1px 2px rgba(64, 41, 10, 0.06), 0 2px 6px rgba(64, 41, 10, 0.05);
  --shadow-md: 0 8px 24px rgba(64, 41, 10, 0.10);
  --shadow-lg: 0 20px 55px rgba(64, 41, 10, 0.16);
  --shadow-gold: 0 12px 32px rgba(224, 168, 46, 0.35);

  /* Layout */
  --container: 1680px;
  --container-narrow: 820px;
  --header-h: 92px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.55s;
}

/* ------------------------------------------------------------------ */
/* 2) RESET & BASIS                                                    */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
a:not([class]) { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
a:not([class]):hover { color: var(--gold-700); }

ul, ol { padding: 0; list-style: none; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip-Link (Barrierefreiheit) */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background: var(--ink-900);
  color: #fff;
  padding: var(--sp-3) var(--sp-4);
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

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

/* ------------------------------------------------------------------ */
/* 3) LAYOUT                                                           */
/* ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  /* Füllt die Bildschirmbreite; Seitenränder wachsen mit dem Viewport,
     bis der Inhalt das lesefreundliche Maximum (--container) erreicht. */
  padding-inline: clamp(1.25rem, 4vw, 4rem);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3.5rem, 6vw, var(--sp-9)); }
.section--tight { padding-block: var(--sp-8); }
.section--alt { background: var(--bg-alt); }
.section--ink { background: linear-gradient(135deg, var(--band), var(--band-2)); color: var(--band-text); }
.section--gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--ink-900);
}

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.stack > * + * { margin-top: var(--sp-4); }
.flow > * + * { margin-top: var(--sp-5); }

/* Section-Kopf */
.section-head { max-width: 720px; margin-bottom: var(--sp-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-head.center .eyebrow { justify-content: center; }

/* ------------------------------------------------------------------ */
/* 4) TYPOGRAFIE                                                       */
/* ------------------------------------------------------------------ */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: var(--lh-tight); font-weight: 700; letter-spacing: -0.015em; color: var(--text); }
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-2xl); line-height: var(--lh-snug); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p  { max-width: 68ch; }
.lead { font-size: var(--fs-md); color: var(--text-muted); line-height: var(--lh-body); }
.muted { color: var(--text-muted); }
.text-gold { color: var(--accent-strong); }
.balance { text-wrap: balance; }

/* Gold-Highlight in Headlines */
.hl { color: var(--accent-strong); }
.hero .hl { color: var(--gold-400); }
.section--ink .hl { color: var(--accent-strong); }

/* ---------- Signatur: „Instrument-Readout"-Datentypografie ---------- */
/* Labels, Pfade und Messwerte in Space Mono → technische Präzision (EPC/Ingenieurwesen). */
.breadcrumbs, .article-meta, .badge, .chip, .lang-toggle, .job__tags,
.chart-label, .chart-be-label, .footer-bottom, .stat__label { font-family: var(--font-mono); }
.badge, .chip { letter-spacing: 0.04em; }
/* Geometrische Zahlen (Syne) + tabellarische Ziffern für Ausrichtung */
.hero__trust strong, .calc-table tr.is-total td:last-child { font-family: var(--font-display); }
.hero__trust strong, [data-count], .calc-table, .article-meta { font-variant-numeric: tabular-nums; }
.calc-table td:last-child, .calc-table th:last-child { font-family: var(--font-mono); }

/* ------------------------------------------------------------------ */
/* 5) KOMPONENTEN                                                      */
/* ------------------------------------------------------------------ */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s, color 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--accent); color: var(--ink-900); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-2px); }
.btn--invert { background: var(--white); color: var(--ink-900); }
.btn--invert:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--dark { background: var(--ink-900); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #000; }
.btn--lg { padding: 1.05rem 2rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Text-Link mit Pfeil */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-weight: 700; color: var(--accent-strong);
}
.link-arrow svg { transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --- Badges / Chips / Pills --- */
.badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--gold-800);
  border: 1px solid var(--gold-200);
}
.badge--b2b { background: #eef3ff; color: #234; border-color: #d6e2ff; }
.badge--b2c { background: var(--accent-soft); color: var(--gold-800); border-color: var(--gold-200); }

.chip {
  padding: 0.45rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.18s var(--ease);
}
.chip[aria-pressed="true"], .chip:hover {
  border-color: var(--accent);
  color: var(--ink-900);
  background: var(--accent-soft);
}

/* --- Karten --- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
  overflow: hidden;
  height: 100%;
}
.card::after {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold-200); }
.card:hover::after { transform: scaleX(1); }
.card__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent-strong);
  margin-bottom: var(--sp-4);
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: var(--sp-3); }
.card p { color: var(--text-muted); font-size: var(--fs-sm); }
.card__link { margin-top: var(--sp-4); display: inline-flex; }

/* Icon-Liste */
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: var(--sp-3);
  color: var(--text-muted);
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.35em;
  width: 20px; height: 20px;
  background: var(--eco-soft);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6349' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}
/* --- Header / Navigation --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s, background 0.2s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5);
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); font-weight: 800; letter-spacing: -0.02em; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__logo { height: 60px; width: auto; max-width: none; flex: none; display: block; }
.site-footer .brand__logo { height: 34px; }
.brand__name { font-size: 1.15rem; line-height: 1.05; }
.brand__name small { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }

.nav-links { display: flex; align-items: center; gap: var(--sp-2); }
.nav-links > li > a, .nav-links > li > button {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--r-sm);
  font-weight: 600; font-size: var(--fs-sm);
  color: var(--text);
  transition: color 0.15s, background 0.15s;
}
.nav-links > li > a:hover, .nav-links a[aria-current="page"] { color: var(--accent-strong); }
.nav-links a[aria-current="page"] { background: var(--accent-soft); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown-toggle svg { transition: transform 0.2s var(--ease); }
.has-dropdown:hover .dropdown-toggle svg,
.has-dropdown:focus-within .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 300px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-3);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
}
.dropdown a strong { display: block; font-weight: 700; color: var(--text); }
.dropdown a span { font-size: var(--fs-xs); color: var(--text-muted); }
.dropdown a:hover { background: var(--accent-soft); }

.nav-actions { display: flex; align-items: center; gap: var(--sp-3); }

/* Sprachumschalter */
.lang-switch { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 700;
}
.lang-toggle:hover { border-color: var(--accent); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-2);
  min-width: 150px;
  display: none;
}
.lang-menu.open { display: block; }
.lang-menu button {
  display: flex; width: 100%; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.6rem; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 600; text-align: left;
}
.lang-menu button:hover { background: var(--accent-soft); }
.lang-menu button[aria-current="true"] { color: var(--accent-strong); font-weight: 800; }

/* Theme-Toggle */

/* Mobile-Toggle */
.nav-toggle { display: none; width: 44px; height: 44px; place-items: center; border: 1px solid var(--border); border-radius: var(--r-sm); }
.nav-toggle span { position: relative; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.2s; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* --- Hero --- */
.hero { position: relative; overflow: hidden; padding-block: var(--sp-9) var(--sp-9); background: var(--bg-alt); }
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__mesh {
  position: absolute; inset: -20% -10%;
  background:
    radial-gradient(45% 45% at 20% 20%, rgba(224,168,46,0.28), transparent 60%),
    radial-gradient(40% 40% at 85% 15%, rgba(244,201,93,0.30), transparent 60%),
    radial-gradient(50% 50% at 75% 85%, rgba(198,135,26,0.22), transparent 60%);
  filter: blur(10px);
  animation: meshFloat 18s ease-in-out infinite alternate;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.hero__inner { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.618fr 1fr; gap: var(--sp-8); align-items: center; }
.hero h1 { margin-bottom: var(--sp-5); text-wrap: balance; }
.hero .lead { font-size: var(--fs-lg); max-width: 60ch; color: var(--ink-700); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--sp-5); margin-top: var(--sp-7); align-items: center; color: var(--text-muted); font-size: var(--fs-sm); }
.hero__trust strong { color: var(--text); }

@keyframes meshFloat {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}

/* Zwei-Pfad-Auswahl (B2B/B2C) */
.pathcards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.pathcard {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.pathcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.pathcard h3 { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.pathcard p { font-size: var(--fs-sm); color: var(--text-muted); }
.pathcard .link-arrow { margin-top: var(--sp-4); }

/* --- Kennzahlen / Counter --- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.stat { text-align: center; padding: var(--sp-5); }
.stat__num { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 700; letter-spacing: -0.02em; color: var(--accent-strong); line-height: 1; font-variant-numeric: tabular-nums; }
.section--ink .stat__num, .section--gold .stat__num { color: inherit; }
.section--gold .stat__num { color: var(--ink-900); }
.stat__num--eco { color: var(--eco); }
.section--ink .stat__num--eco { color: var(--eco-strong); }
.stat__label { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--text-muted); }
.section--ink .stat__label { color: var(--band-muted); }
.section--gold .stat__label { color: var(--ink-700); }

/* --- Prozess-Schritte --- */
.steps { counter-reset: step; display: grid; gap: var(--sp-5); }
.steps.grid-3, .steps.grid-4 { grid-auto-flow: row; }
.step {
  position: relative;
  padding: var(--sp-6);
  padding-top: var(--sp-7);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; top: var(--sp-4); right: var(--sp-5);
  font-size: 2.4rem; font-weight: 800; color: var(--gold-200);
  letter-spacing: -0.04em;
}
.step h3 { margin-bottom: var(--sp-2); font-size: var(--fs-md); }
.step p { font-size: var(--fs-sm); color: var(--text-muted); }

/* --- Referenz-/Projektkacheln --- */
.project-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  height: 100%;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.06); }
.project-card__cat { position: absolute; top: var(--sp-3); left: var(--sp-3); }
.project-card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.project-card__body h3 { font-size: var(--fs-md); }
.project-card__meta { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: auto; padding-top: var(--sp-3); font-size: var(--fs-sm); color: var(--text-muted); border-top: 1px solid var(--border); }
.project-card__meta b { color: var(--accent-strong); }

.filter-bar { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }

/* --- Testimonials --- */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.testimonial blockquote { font-size: var(--fs-md); line-height: 1.5; }
.testimonial figcaption { margin-top: var(--sp-4); display: flex; align-items: center; gap: var(--sp-3); }
.testimonial .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; font-weight: 800; color: var(--accent-strong); }
.testimonial cite { font-style: normal; font-weight: 700; display: block; }
.testimonial small { color: var(--text-muted); }

/* --- Logos / Trust-Leiste --- */
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-7); opacity: 0.85; }
.logo-row .logo { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; color: var(--text-muted); letter-spacing: 0.02em; }
.logo-row .logo svg { width: 26px; height: 26px; color: var(--accent); }

/* --- FAQ Accordion --- */
.accordion { border-top: 1px solid var(--border); }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) 0;
  text-align: left;
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--text);
}
.accordion__trigger:hover { color: var(--accent-strong); }
.accordion__icon { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); transition: 0.2s; }
.accordion__icon::before, .accordion__icon::after { content: ""; position: absolute; width: 12px; height: 2px; background: var(--accent-strong); border-radius: 2px; transition: 0.25s var(--ease); }
.accordion__icon { position: relative; }
.accordion__icon::after { transform: rotate(90deg); }
.accordion__trigger[aria-expanded="true"] .accordion__icon { background: var(--accent-soft); border-color: var(--accent); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: rotate(0); opacity: 0; }
.accordion__panel { overflow: hidden; max-height: 0; transition: max-height 0.35s var(--ease); }
.accordion__panel-inner { padding-bottom: var(--sp-5); color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) { .accordion__panel { transition: none; } }

/* --- CTA-Block --- */
.cta-block {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  background: linear-gradient(135deg, var(--band), var(--band-2));
  color: var(--ink-900);
  text-align: center;
  border: 1px solid var(--gold-300);
}
.cta-block::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 90% at 50% 0%, rgba(255,255,255,0.5), transparent 70%);
}
.cta-block > * { position: relative; }
.cta-block h2 { color: var(--ink-900); margin-bottom: var(--sp-3); }
.cta-block p { color: var(--ink-700); margin-inline: auto; margin-bottom: var(--sp-6); }
.cta-block .btn-row { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }
/* Zweit-Button dunkel, damit er auf dem hellen Band kontrastiert */
.cta-block .btn--invert { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.cta-block .btn--invert:hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* --- Formular --- */
.form { display: grid; gap: var(--sp-5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label { font-weight: 700; font-size: var(--fs-sm); }
.field .req { color: var(--danger); }
.field input, .field textarea, .field select {
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
}
.field textarea { min-height: 140px; resize: vertical; }
.field .error-msg { color: var(--danger); font-size: var(--fs-xs); font-weight: 600; min-height: 1em; display: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); }
.field.invalid .error-msg { display: block; }
.checkbox-field { display: flex; gap: var(--sp-3); align-items: flex-start; }
.checkbox-field input { width: 20px; height: 20px; flex: none; margin-top: 0.15rem; accent-color: var(--accent-strong); }
.checkbox-field label { font-weight: 500; font-size: var(--fs-sm); color: var(--text-muted); }
.form-success {
  display: none;
  padding: var(--sp-5);
  border-radius: var(--r-md);
  background: #eaf6ee;
  border: 1px solid #b9e2c6;
  color: var(--success);
  font-weight: 600;
}
.form-success.show { display: block; }

/* --- Info-/Placeholder-Markierung --- */
.placeholder-note {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-4);
  background: repeating-linear-gradient(135deg, #fff8e6, #fff8e6 12px, #fdf1cf 12px, #fdf1cf 24px);
  border: 1px dashed var(--gold-500);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--gold-900);
}
.placeholder-note svg { flex: none; width: 20px; height: 20px; color: var(--gold-700); }

/* --- Breadcrumbs --- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: var(--fs-sm); color: var(--text-muted); padding-block: var(--sp-5) 0; }
.breadcrumbs a:hover { color: var(--accent-strong); }
.breadcrumbs li::after { content: "›"; margin-left: 0.4rem; color: var(--text-muted); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs li:last-child { color: var(--text); font-weight: 600; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* --- Page-Hero (Unterseiten) --- */
.page-hero { position: relative; overflow: hidden; padding-block: var(--sp-8) var(--sp-8); background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.page-hero__mesh {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(40% 70% at 85% 20%, rgba(224,168,46,0.22), transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: var(--fs-3xl); margin-block: var(--sp-3); max-width: 20ch; }
.page-hero p { font-size: var(--fs-md); color: var(--text-muted); max-width: 60ch; }

/* --- Split-/Media-Block --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
.split--reverse .split__media { order: 2; }
.media-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--surface-2);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* --- Artikel-Prosa --- */
.prose { max-width: 72ch; font-size: var(--fs-md); }
.prose > * + * { margin-top: var(--sp-5); }

/* Einleitungsabsatz als Lead hervorheben */
.prose > p:first-of-type { font-size: var(--fs-lg); line-height: 1.5; color: var(--text); font-weight: 500; }

/* H2 mit Gold-Akzentbalken über einer feinen Trennlinie */
.prose h2 {
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  font-size: var(--fs-xl);
  border-top: 1px solid var(--border);
  position: relative;
}
.prose h2::before {
  content: "";
  position: absolute; top: -2px; left: 0;
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  border-radius: 3px;
}
.prose h3 { margin-top: var(--sp-6); font-size: var(--fs-lg); color: var(--accent-strong); }

/* Aufzählungen mit gold-gerauteten Markern statt schlichter Punkte */
.prose ul { list-style: none; padding-left: 0; display: grid; gap: var(--sp-3); }
.prose ul li { position: relative; padding-left: 1.9rem; color: var(--text); }
.prose ul li::before {
  content: "";
  position: absolute; left: 2px; top: 0.5em;
  width: 10px; height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  transform: rotate(45deg);
}
.prose ol { padding-left: 1.4rem; }
.prose ol li { margin-bottom: var(--sp-2); }

/* Zitat als gestaltete Callout-Box */
.prose blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: var(--sp-5) var(--sp-6);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--fs-md);
  color: var(--text);
  font-style: italic;
}
.prose img { border-radius: var(--r-md); }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* --- Artikel-Layout: nutzt die Bildschirmbreite wie die übrigen Seiten --- */
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 74ch) minmax(260px, 340px);
  gap: var(--sp-8);
  justify-content: center;
  align-items: start;
}
.article-main { min-width: 0; }
.article-main .prose { max-width: none; }
.article-aside { position: sticky; top: calc(var(--header-h) + var(--sp-4)); display: grid; gap: var(--sp-5); }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--shadow-sm); }
.side-card h3 { font-size: var(--fs-md); margin: var(--sp-3) 0 var(--sp-2); }
.side-card p { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--sp-4); }
.side-card .btn { width: 100%; }
.side-toc { list-style: none; padding: 0; display: grid; gap: var(--sp-2); font-size: var(--fs-sm); }
.side-toc a { color: var(--text-muted); text-decoration: none; }
.side-toc a:hover { color: var(--accent-strong); }
@media (max-width: 960px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}

/* --- Beispielrechnung --- */
.calc-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-5) var(--sp-6); }
.calc-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.calc-table th, .calc-table td { padding: 0.6rem 0.4rem; border-bottom: 1px solid var(--border); text-align: left; }
.calc-table th { color: var(--text-muted); font-weight: 600; }
.calc-table td:last-child, .calc-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-table tr.is-sub td { color: var(--text-muted); }
.calc-table tr.is-total td { font-weight: 800; color: var(--accent-strong); border-top: 2px solid var(--gold-300); border-bottom: none; padding-top: 0.8rem; }

/* --- Amortisationsdiagramm --- */
.chart-figure { margin: 0; }
.chart { width: 100%; height: auto; color: var(--text); display: block; }
.chart-axis { stroke: currentColor; opacity: 0.18; }
.chart-line { fill: none; stroke: var(--gold-600); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart-loss { fill: rgba(192, 57, 43, 0.14); }
.chart-profit { fill: rgba(63, 122, 94, 0.20); }
.chart-label { fill: currentColor; font-size: 12px; opacity: 0.75; }
.chart-be { fill: var(--gold-600); }
.chart-be-label { fill: var(--accent-strong); font-size: 12px; font-weight: 700; }
.chart-figure figcaption { font-size: var(--fs-xs); color: var(--text-muted); margin-top: var(--sp-3); }

/* Article-Meta */
.article-meta { display: flex; flex-wrap: wrap; gap: var(--sp-4); color: var(--text-muted); font-size: var(--fs-sm); align-items: center; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-muted); }

/* --- Team --- */
.team-card { text-align: center; }
.team-card .avatar-lg { width: 100%; aspect-ratio: 1; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--gold-100), var(--gold-300)); display: grid; place-items: center; font-size: 2.5rem; font-weight: 800; color: var(--gold-700); margin-bottom: var(--sp-4); }
.team-card h3 { font-size: var(--fs-md); }
.team-card p { font-size: var(--fs-sm); color: var(--text-muted); }

/* --- Jobs --- */
.job {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.job:hover { transform: translateX(4px); border-color: var(--accent); }
.job__info h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.job__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-muted); }
.job__tags span { display: inline-flex; align-items: center; gap: 0.3rem; }

/* --- Footer (hell-warm) --- */
.site-footer { background: linear-gradient(180deg, var(--band), var(--band-2)); color: var(--ink-700); padding-top: var(--sp-8); margin-top: var(--sp-9); border-top: 1px solid var(--gold-300); }
.site-footer a { color: var(--ink-700); }
.site-footer a:hover { color: var(--accent-strong); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-6); padding-bottom: var(--sp-8); }
.footer-brand .brand__name, .footer-brand .brand__name small { color: var(--ink-900); }
.footer-brand p { font-size: var(--fs-sm); margin-top: var(--sp-4); max-width: 34ch; }
.footer-col h4 { color: var(--ink-900); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--sp-4); }
.footer-col ul { display: grid; gap: var(--sp-3); font-size: var(--fs-sm); }
.footer-social { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(26,23,18,0.18); border-radius: var(--r-sm); color: var(--ink-700); }
.footer-social a:hover { border-color: var(--accent-strong); background: rgba(224,168,46,0.18); color: var(--ink-900); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; align-items: center;
  padding-block: var(--sp-5);
  border-top: 1px solid rgba(26,23,18,0.14);
  font-size: var(--fs-xs);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* --- Cookie-Banner --- */
.cookie-banner {
  position: fixed; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4);
  z-index: 200;
  max-width: 560px; margin-inline: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-5);
  display: none;
}
.cookie-banner.show { display: block; animation: slideUp 0.4s var(--ease); }
.cookie-banner p { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--sp-4); }
.cookie-banner .btn-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ------------------------------------------------------------------ */
/* 6) ANIMATIONEN                                                      */
/* ------------------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__mesh { animation: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ------------------------------------------------------------------ */
/* 8) RESPONSIVE                                                       */
/* ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  :root { --fs-4xl: 3.4rem; --fs-3xl: 2.8rem; --fs-2xl: 2.2rem; --fs-xl: 1.85rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-4);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-120%);
    transition: transform 0.3s var(--ease);
  }
  .nav-links.open { display: flex; transform: translateY(0); }
  .nav-links > li > a, .nav-links > li > button { padding: var(--sp-4) var(--sp-2); font-size: var(--fs-md); width: 100%; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 var(--sp-3) var(--sp-4); min-width: 0; }
  .has-dropdown .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .grid-2, .grid-3, .grid-4, .pathcards, .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 auto; }
}

@media (max-width: 560px) {
  :root { --fs-4xl: 2.7rem; --fs-3xl: 2.2rem; --fs-2xl: 1.95rem; --sp-9: 4rem; --sp-8: 3rem; --header-h: 66px; }
  .container { padding-inline: var(--sp-4); }
  .brand__logo { height: 34px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .job { flex-direction: column; align-items: flex-start; }
  .cta-block { padding: var(--sp-6) var(--sp-5); }
}

@media (max-width: 360px) {
  :root { --fs-4xl: 2.35rem; --fs-3xl: 2rem; }
  .hero__trust { gap: var(--sp-3); }
  .brand__logo { height: 30px; }
}

/* Print */
@media print {
  .site-header, .site-footer, .cookie-banner, .hero__bg { display: none; }
  body { color: #000; background: #fff; }
}
