/* ============================================================
   Graef AI Consulting — Design System
   Statisch, Multi-Page. Manrope. Hell/Dunkel-Rhythmus.
   Palette: Petrol / Charcoal / Lime / Grau-Blau / Off-White.
   ============================================================ */

/* ---------- 0. Schrift (lokal eingebunden, kein externer Request) ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope.woff2') format('woff2');
}

/* ---------- 1. Tokens ---------- */
:root {
  /* Markenfarben (Vorgabe) */
  --petrol:        #142F32;   /* dunkle Hauptfarbe, primäre Buttons */
  --petrol-700:    #0f2426;   /* dunkler für Tiefe/Hover */
  --petrol-600:    #1c3f43;   /* etwas heller, Karten auf Dunkel */
  --charcoal:      #282930;   /* zweite Dunkelfarbe, Kontrast-Sektionen */
  --charcoal-600:  #34353d;   /* Karten auf Charcoal */
  --lime:          #E3FFCC;   /* Akzent, sparsam */
  --lime-deep:     #c3f59b;   /* etwas satter, für feine Linien/Hover auf Dunkel */
  --grayblue:      #777C90;   /* Sekundär-/Subtext */

  /* Helle Flächen */
  --white:         #ffffff;
  --offwhite:      #f6f7f4;   /* heller Sektions-Hintergrund, leicht warm/neutral */
  --offwhite-2:    #eef0ea;   /* Karten-Trennung auf Hell */

  /* Text-Rollen, WCAG-geprüft */
  --ink:           #142F32;   /* Haupttext auf Hell (= Petrol, sehr hoher Kontrast) */
  --ink-soft:      #3a4a4c;   /* zweite Textstufe auf Hell, > 7:1 */
  --muted-on-light:#5b6470;   /* Subtext auf Hell, ~5.2:1 (abgesichert ggü. #777C90) */
  --on-dark:       #f4f7f2;   /* Haupttext auf Dunkel */
  --on-dark-soft:  #c2cbc4;   /* Subtext auf Dunkel, > 7:1 auf Petrol */
  --on-dark-mute:  #9aa6a2;   /* feiner Subtext auf Dunkel, ~4.8:1 */

  /* Linien / Ränder */
  --border-light:  #e3e6df;   /* Rand auf Hell */
  --border-dark:   rgba(227,255,204,.14);  /* Rand auf Dunkel (Lime, sehr dezent) */

  /* Radius (großzügig, Vorgabe) */
  --r-sm:   12px;
  --r-md:   18px;
  --r-lg:   26px;
  --r-xl:   34px;
  --r-pill: 999px;

  /* Maße */
  --maxw:   1180px;
  --maxw-narrow: 760px;

  /* Typo */
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Fluid Type-Scale (clamp: min / vw / max) */
  --fs-display: clamp(2.5rem, 1.4rem + 4.6vw, 4.5rem);
  --fs-h1:      clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
  --fs-h2:      clamp(1.7rem, 1.25rem + 1.9vw, 2.6rem);
  --fs-h3:      clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  --fs-lead:    clamp(1.08rem, 1rem + 0.35vw, 1.3rem);
  --fs-body:    1.0625rem;   /* 17px */
  --fs-sm:      0.9375rem;   /* 15px */
  --fs-xs:      0.8125rem;   /* 13px */

  /* Spacing-Skala (4px-Basis) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 88px; --sp-10: 120px;

  /* Schatten (subtil, wertig) */
  --shadow-sm: 0 2px 8px rgba(20,47,50,.06);
  --shadow-md: 0 14px 40px -18px rgba(20,47,50,.28);
  --shadow-lg: 0 30px 70px -30px rgba(20,47,50,.45);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- 2. Reset / Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; color: inherit; }
h3 { font-weight: 700; letter-spacing: -0.01em; }

p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--petrol);
  outline-offset: 2px;
  border-radius: 4px;
}
section[class*="--dark"] :focus-visible,
.footer :focus-visible { outline-color: var(--lime); }

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

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

/* Skip-Link (A11y) */
.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--petrol); color: var(--on-dark);
  padding: 10px 18px; border-radius: var(--r-sm);
  z-index: 200; font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- 3. Utility / Layout-Helfer ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted-on-light);
}
.kicker::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: var(--petrol); opacity: .55;
}
.kicker--lime::before { background: var(--lime); opacity: 1; }
.kicker--on-dark { color: var(--on-dark-mute); }

.accent-text { color: var(--petrol); }            /* Akzent-Headline-Teil auf Hell: Petrol, nie Lime */
.lead { font-size: var(--fs-lead); color: var(--ink-soft); line-height: 1.6; }
.measure { max-width: 62ch; }
.measure-tight { max-width: 52ch; }
.center { text-align: center; }
.center .lead, .center .measure { margin-inline: auto; }

/* ---------- 4. Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border-light);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; white-space: nowrap; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  background: var(--petrol); color: var(--lime);
  display: grid; place-items: center; font-weight: 800; font-size: .95rem;
}
.brand__name .accent { color: var(--petrol); }
/* Logo (Vektor-Outline, font-unabhaengig). aspect-ratio sichert die Breite,
   da manche Renderer sie nicht aus den SVG-Attributen ableiten. */
.brand__logo { display: block; height: 38px; width: auto; aspect-ratio: 380.536 / 177.26; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links > a,
.dropdown__trigger {
  color: var(--ink-soft); font-size: var(--fs-sm); font-weight: 600;
  padding: 9px 14px; border-radius: var(--r-pill);
  transition: background .2s var(--ease), color .2s var(--ease);
  background: none; border: 0; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav__links > a:hover,
.dropdown__trigger:hover { background: var(--offwhite-2); color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--petrol); background: var(--offwhite-2); }

/* Dropdown "Leistungen" */
.dropdown { position: relative; }
.dropdown__trigger svg { transition: transform .25s var(--ease); }
.dropdown[data-open="true"] .dropdown__trigger svg { transform: rotate(180deg); }
.dropdown__menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 280px; background: var(--white);
  border: 1px solid var(--border-light); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.dropdown[data-open="true"] .dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__menu a {
  display: block; padding: 11px 14px; border-radius: var(--r-sm);
  font-size: var(--fs-sm); color: var(--ink); font-weight: 600;
}
.dropdown__menu a span { display: block; font-weight: 500; font-size: var(--fs-xs); color: var(--muted-on-light); margin-top: 2px; }
.dropdown__menu a:hover { background: var(--offwhite); }
.dropdown__menu a[aria-current="page"] { background: var(--offwhite-2); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px; margin-right: -8px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 28px; border-radius: var(--r-pill);
  font-family: inherit; font-weight: 700; font-size: var(--fs-sm);
  line-height: 1; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--petrol); color: var(--on-dark); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--petrol-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Lime-Button: dunkler Text auf Lime-Fläche (nur dort wo Akzent gewollt, z.B. auf Dunkel) */
.btn--lime { background: var(--lime); color: var(--petrol); }
.btn--lime:hover { background: var(--lime-deep); transform: translateY(-2px); }

/* Ghost auf Hell */
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border-light); }
.btn--ghost:hover { border-color: var(--petrol); background: var(--white); transform: translateY(-2px); }

/* Ghost auf Dunkel */
.btn--ghost-dark { background: transparent; color: var(--on-dark); border-color: var(--border-dark); }
.btn--ghost-dark:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }

.btn--lg { padding: 17px 36px; font-size: 1rem; }

/* Text-Link mit Pfeil */
.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: var(--fs-sm); color: var(--petrol);
  transition: gap .2s var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover { gap: 11px; }
.link-arrow--on-dark { color: var(--lime); }

/* ---------- 6. Sektions-Rahmen (Hell/Dunkel-Rhythmus) ---------- */
.section { padding-block: clamp(56px, 4vw + 40px, 104px); position: relative; }
.section--light { background: var(--white); color: var(--ink); }
.section--offwhite { background: var(--offwhite); color: var(--ink); }
.section--dark { background: var(--petrol); color: var(--on-dark); }
.section--charcoal { background: var(--charcoal); color: var(--on-dark); }

.section--dark .lead,
.section--charcoal .lead { color: var(--on-dark-soft); }
.section--dark .kicker,
.section--charcoal .kicker { color: var(--on-dark-mute); }
.section--dark .kicker::before,
.section--charcoal .kicker::before { background: var(--lime); opacity: 1; }

/* Sektions-Kopf */
.section__head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { font-size: var(--fs-h2); margin-top: 14px; }
.section__intro { margin-top: 18px; }

/* Eyebrow-Pill (Seiten-Hero der Unterseiten) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em;
}
.eyebrow--light { background: var(--offwhite-2); color: var(--ink-soft); }
.eyebrow--dark  { background: rgba(227,255,204,.12); color: var(--lime); border: 1px solid var(--border-dark); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--petrol); }
.eyebrow--dark .dot { background: var(--lime); }

/* ============================================================
   7. STARTSEITE
   ============================================================ */

/* ----- Hero (Bild, full-bleed, Text links über freiem Himmel) ----- */
.hero-img {
  position: relative;
  isolation: isolate;            /* eigener Stacking-Context für blend-mode des Glows */
  background: var(--petrol-700); /* Fallback, falls Bild noch lädt */
  color: var(--on-dark);
  min-height: clamp(540px, 78vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Medien-Stapel: Foto + Glow + Scrim, absolut, hinter dem Inhalt */
.hero-img__media { position: absolute; inset: 0; z-index: 0; }

.hero-img__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 50%;      /* Rakete/Triebwerk im Blick halten beim Croppen */
  transform-origin: 64% 70%;     /* Ken-Burns zoomt Richtung Triebwerk */
  will-change: transform;
  animation: heroKenBurns 26s var(--ease) infinite alternate;
}

/* Launch-Video: deckt exakt dieselbe Fläche wie das Foto, liegt darüber.
   Verdeckt das Foto (inkl. Ken-Burns/Glow), solange es sichtbar ist. */
.hero-img__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 50%;      /* identisch zum Foto */
  z-index: 1;                    /* über dem Foto, unter Glow + Scrim */
  opacity: 1;
  transition: opacity .8s var(--ease);
  pointer-events: none;
  background: transparent;
}
/* Nach dem einmaligen Abspielen: Video ausblenden, Ruhebild wird sichtbar */
.hero-img.is-video-ended .hero-img__video { opacity: 0; }

/* Lime-grüner Triebwerks-Glow, additiv aufs vorhandene Glühen im Foto */
.hero-img__glow {
  position: absolute; inset: 0;
  z-index: 2;                    /* additiv über Foto UND Video */
  background: radial-gradient(38% 42% at 60% 70%,
    rgba(227,255,204,.55) 0%,
    rgba(195,245,155,.28) 34%,
    transparent 68%);
  mix-blend-mode: screen;
  will-change: opacity, transform;
  animation: heroGlow 6.5s ease-in-out infinite;
  pointer-events: none;
}

/* Scrim: dunkler Verlauf von links für Textkontrast (WCAG AA) + leichte Top-Abdunklung */
.hero-img__scrim {
  position: absolute; inset: 0;
  z-index: 3;                    /* über Foto, Video und Glow: sichert Textkontrast */
  background:
    linear-gradient(96deg,
      rgba(8,22,24,.86) 0%,
      rgba(8,22,24,.66) 32%,
      rgba(8,22,24,.30) 56%,
      rgba(8,22,24,0) 78%),
    linear-gradient(180deg, rgba(8,22,24,.42) 0%, rgba(8,22,24,0) 26%);
  pointer-events: none;
}

.hero-img__inner { position: relative; z-index: 1; width: 100%;
  padding-block: clamp(48px, 7vw, 104px); }
.hero-img__copy { max-width: 620px; }
.hero-img__title {
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem); margin-top: 22px;
  color: var(--on-dark);
  text-shadow: 0 1px 30px rgba(8,22,24,.45);
}
.hero-img__title .hl {
  color: var(--lime);            /* auf Dunkel: Lime als Akzent statt Lime-Fläche */
  text-shadow: 0 1px 24px rgba(20,47,50,.55);
}
.hero-img__lead {
  margin-top: 24px; max-width: 52ch;
  color: var(--on-dark-soft);
  text-shadow: 0 1px 18px rgba(8,22,24,.4);
}
.hero-img__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

@keyframes heroKenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
@keyframes heroGlow {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}

/* ----- Trust-Streifen (schmaler Band unter dem Hero) ----- */
.trust-strip {
  background: var(--offwhite);
  border-bottom: 1px solid var(--border-light);
}
.trust-strip__list {
  list-style: none;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 14px 40px;
  padding-block: 18px;
}
.trust-strip__item {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-sm); line-height: 1.3; color: var(--muted-on-light);
}
.trust-strip__icon {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--petrol); color: var(--lime);
}
.trust-strip__icon svg { width: 16px; height: 16px; }
.trust-strip__text b { font-weight: 800; color: var(--ink); }

/* Auf schmalen Schirmen: gestapelt, weiterhin dezent */
@media (max-width: 760px) {
  .trust-strip__list {
    flex-direction: column; align-items: flex-start;
    gap: 12px; padding-block: 20px;
  }
}

/* ----- Wiederkehrendes Linien-Motiv (dezent, hinter Inhalt) ----- */
.has-motiv { position: relative; overflow: hidden; }
.section-motiv {
  position: absolute; z-index: 0;
  right: clamp(-60px, -2vw, 0px); top: 50%;
  transform: translateY(-50%);
  width: clamp(360px, 42vw, 620px); height: auto;
  opacity: .5;
  pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
}
.has-motiv > .container { position: relative; z-index: 1; }

/* Bild-Platzhalter (überall einsetzbar) */
.ph {
  position: relative; border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(135deg, rgba(20,47,50,.04) 0 14px, transparent 14px 28px),
    var(--offwhite);
  border: 1.5px dashed var(--border-light);
  display: grid; place-items: center; text-align: center;
  color: var(--muted-on-light); padding: 28px; min-height: 200px;
}
.ph__inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ph__tag {
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--petrol); background: var(--lime); padding: 4px 12px; border-radius: var(--r-pill);
}
.ph__label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); }
.ph__hint { font-size: var(--fs-xs); color: var(--muted-on-light); max-width: 34ch; }
.ph svg { width: 30px; height: 30px; color: var(--grayblue); opacity: .7; }
/* Platzhalter auf dunklem Grund */
.ph--on-dark {
  background:
    repeating-linear-gradient(135deg, rgba(227,255,204,.05) 0 14px, transparent 14px 28px),
    var(--petrol-600);
  border-color: var(--border-dark); color: var(--on-dark-mute);
}
.ph--on-dark .ph__label { color: var(--on-dark-soft); }
.ph--on-dark .ph__hint { color: var(--on-dark-mute); }
.ph--on-dark svg { color: var(--lime); opacity: .55; }

/* ----- Problem-Karten (Sektion 2) ----- */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem-card {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 30px 28px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.problem-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--offwhite-2); }
.problem-card__icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--petrol); color: var(--lime); margin-bottom: 20px;
}
.problem-card__icon svg { width: 24px; height: 24px; }
.problem-card h3 { font-size: var(--fs-h3); margin-bottom: 10px; color: var(--petrol); min-height: 2.3em; }
.problem-card p { color: var(--muted-on-light); font-size: var(--fs-sm); }
.section-note {
  margin-top: 36px; font-size: var(--fs-lead); font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 12px;
}
.section-note::before {
  content: ""; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--lime); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23142F32' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-size: 15px; background-repeat: no-repeat; background-position: center;
}
/* Zentrierte Brückenzeile (z.B. Übergang Problem -> Lösung): ohne Haken-Icon */
.section-note--center { justify-content: center; text-align: center; }
.section-note--center::before { display: none; }

/* ----- Lösungs-Teaser (Sektion 3, auf Dunkel) ----- */
.teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.teaser-card {
  background: var(--petrol-600); border: 1px solid var(--border-dark);
  border-radius: var(--r-lg); padding: 30px 28px;
  display: flex; flex-direction: column;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.teaser-card:hover { transform: translateY(-4px); background: #22484c; border-color: rgba(227,255,204,.3); }
.teaser-card__icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(227,255,204,.14); color: var(--lime); margin-bottom: 20px;
}
.teaser-card__icon svg { width: 24px; height: 24px; }
.teaser-card__against { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--lime); margin-bottom: 8px; }
.teaser-card h3 { font-size: var(--fs-h3); color: var(--on-dark); margin-bottom: 12px; }
.teaser-card p { color: var(--on-dark-soft); font-size: var(--fs-sm); flex: 1 1 auto; }
.teaser-card .link-arrow { margin-top: 22px; }

/* ----- Wirksamkeits-Anker (Sektion 4) ----- */
.anchor-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 4vw, 56px); align-items: center; }
.anchor-img { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-md); display: block; }
.proofline { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.proofline li { position: relative; padding-left: 34px; font-size: var(--fs-body); color: var(--ink-soft); }
.proofline li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 6px;
  background: var(--lime);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23142F32' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}

/* ----- Ablauf / Schritte (Sektion 5) ----- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 32px 28px; position: relative;
}
.step__num {
  font-family: var(--font); font-weight: 800; font-size: 1.1rem;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 22px;
  background: var(--petrol); color: var(--lime);
}
.step h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.step p { color: var(--muted-on-light); font-size: var(--fs-sm); }
.step__connector { /* dezente Linie zwischen Schritten auf Desktop */ }

/* ----- Final-CTA-Block (groß, Petrol) ----- */
.cta-block {
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(227,255,204,.16), transparent 60%),
    var(--petrol);
  border-radius: var(--r-xl); padding: clamp(40px, 5vw, 72px);
  text-align: center; color: var(--on-dark);
}
.cta-block h2 { font-size: var(--fs-h2); max-width: 20ch; margin-inline: auto; }
.cta-block .lead { color: var(--on-dark-soft); margin: 18px auto 0; max-width: 56ch; }
.cta-block__actions { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 34px; }
.cta-block__mail {
  font-weight: 700; font-size: var(--fs-body); color: var(--lime);
  border-bottom: 1.5px solid transparent; transition: border-color .2s var(--ease);
}
.cta-block__mail:hover { border-color: var(--lime); }
.cta-block__mail-line { font-size: var(--fs-sm); color: var(--on-dark-mute); }

/* ============================================================
   8. UNTERSEITEN (Leistungen / Über / Kontakt)
   ============================================================ */

/* Seiten-Hero (Problem-Einstieg, dunkel) */
.page-hero {
  background:
    radial-gradient(900px 460px at 90% -10%, rgba(227,255,204,.12), transparent 60%),
    var(--petrol);
  color: var(--on-dark);
  padding-block: clamp(48px, 5vw, 96px);
}
.page-hero__inner { max-width: 800px; }
.page-hero h1 { font-size: var(--fs-h1); margin-top: 20px; }
.page-hero h1 .hl { color: var(--lime); }
.page-hero__sub { font-size: var(--fs-lead); color: var(--on-dark-soft); margin-top: 22px; max-width: 60ch; }
.page-hero__body { color: var(--on-dark-mute); margin-top: 18px; max-width: 64ch; }
.page-hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Lösungs-Bausteine (Karten) */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature-card {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 30px 28px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--offwhite-2); color: var(--petrol); margin-bottom: 18px;
}
.feature-card__icon svg { width: 23px; height: 23px; }
.feature-card h3 { font-size: var(--fs-h3); margin-bottom: 9px; }
.feature-card p { color: var(--muted-on-light); font-size: var(--fs-sm); }
.benefit-line {
  margin-top: 34px; padding: 22px 26px; border-radius: var(--r-md);
  background: var(--offwhite); border-left: 4px solid var(--lime);
  font-size: var(--fs-lead); font-weight: 600; color: var(--ink);
}

/* Beleg-Karten (Cases) */
.proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.proof-card {
  background: var(--charcoal-600); border: 1px solid var(--border-dark);
  border-radius: var(--r-lg); padding: 32px 30px;
}
.proof-card__tag {
  display: inline-block; font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--lime); background: rgba(227,255,204,.1);
  padding: 5px 13px; border-radius: var(--r-pill); margin-bottom: 18px;
}
.proof-card h3 { font-size: 1.2rem; color: var(--on-dark); margin-bottom: 12px; line-height: 1.25; }
.proof-card p { color: var(--on-dark-soft); font-size: var(--fs-sm); }

/* Beleg-Tabelle (KI-Seite) */
.proof-table { width: 100%; border-collapse: collapse; margin-top: 8px; border-radius: var(--r-md); overflow: hidden; }
.proof-table th, .proof-table td { text-align: left; padding: 16px 20px; font-size: var(--fs-sm); border-bottom: 1px solid var(--border-dark); }
.proof-table thead th { background: rgba(227,255,204,.08); color: var(--lime); font-weight: 700; letter-spacing: .03em; }
.proof-table tbody th { color: var(--on-dark); font-weight: 700; width: 34%; }
.proof-table tbody td { color: var(--on-dark-soft); }
.proof-table tbody tr:last-child th, .proof-table tbody tr:last-child td { border-bottom: 0; }

/* Großer Zahlen-Beleg (Marketing-Seite) */
.bigproof {
  background:
    radial-gradient(600px 320px at 12% 10%, rgba(227,255,204,.14), transparent 60%),
    var(--charcoal);
  border-radius: var(--r-xl); padding: clamp(36px, 4vw, 60px);
  border: 1px solid var(--border-dark);
}
.bigproof__metric { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin-bottom: 26px; }
.bigproof__from { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--on-dark-mute); }
.bigproof__arrow { color: var(--lime); }
.bigproof__arrow svg { width: 30px; height: 30px; }
.bigproof__to { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; color: var(--lime); letter-spacing: -.02em; line-height: 1; }
.bigproof__span { width: 100%; font-size: var(--fs-sm); color: var(--on-dark-mute); }
.bigproof blockquote { font-size: var(--fs-lead); color: var(--on-dark); line-height: 1.55; border-left: 3px solid var(--lime); padding-left: 22px; }
.bigproof__after { margin-top: 24px; color: var(--on-dark-soft); }

/* Querverweis-Zeile (sekundär, unter CTA) */
.crosslinks {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--border-dark);
}
.crosslinks__label { font-size: var(--fs-sm); color: var(--on-dark-mute); }
.crosslinks a { font-weight: 700; font-size: var(--fs-sm); color: var(--lime); display: inline-flex; align-items: center; gap: 6px; }
.crosslinks a:hover { text-decoration: underline; }
.crosslinks .sep { color: var(--on-dark-mute); }

/* ----- Über-Seite ----- */
.bio-grid { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(32px, 4vw, 56px); align-items: start; }
.bio-points { list-style: none; margin-top: 30px; display: grid; gap: 16px; }
.bio-points li {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--r-md); padding: 20px 22px;
}
.bio-points b { display: block; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.bio-points span { color: var(--muted-on-light); font-size: var(--fs-sm); }
.bio-photo { position: sticky; top: 96px; }
.bio-photo .ph { min-height: 380px; aspect-ratio: 4/5; }
.bio-img { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-md); display: block; }
.stance {
  background: var(--petrol); color: var(--on-dark);
  border-radius: var(--r-xl); padding: clamp(36px, 4vw, 60px);
}
.stance .lead { color: var(--on-dark-soft); max-width: 64ch; }

/* ----- Kontakt-Seite ----- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.riskbox {
  background: var(--offwhite); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 32px 30px;
}
.riskbox h2 { font-size: var(--fs-h3); margin-bottom: 18px; }
.risklist { list-style: none; display: grid; gap: 14px; }
.risklist li { position: relative; padding-left: 36px; font-weight: 600; color: var(--ink); }
.risklist li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 7px;
  background: var(--petrol);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E3FFCC' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-size: 14px; background-repeat: no-repeat; background-position: center;
}
.contact-action {
  background: var(--petrol); color: var(--on-dark);
  border-radius: var(--r-lg); padding: 36px 32px; text-align: left;
}
.contact-action h2 { font-size: var(--fs-h3); color: var(--on-dark); margin-bottom: 14px; }
.contact-action p { color: var(--on-dark-soft); margin-bottom: 26px; }
.contact-action .btn { width: 100%; }
.contact-action__mail {
  display: block; margin-top: 20px; text-align: center;
  font-weight: 800; font-size: 1.15rem; color: var(--lime);
  word-break: break-word;
}
.contact-action__hint { margin-top: 22px; font-size: var(--fs-xs); color: var(--on-dark-mute); text-align: center; }

/* ============================================================
   9. FOOTER (mehrspaltig, dunkel)
   ============================================================ */
.footer { background: var(--petrol-700); color: var(--on-dark-soft); padding-block: clamp(48px, 5vw, 72px) 32px; }
.footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid var(--border-dark);
}
.footer__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--on-dark); }
.footer__brand .brand__name .accent { color: var(--lime); }
.footer__logo { display: block; height: 42px; width: auto; aspect-ratio: 380.536 / 177.26; }
.footer__tagline { margin-top: 16px; font-size: var(--fs-sm); color: var(--on-dark-mute); max-width: 38ch; }
.footer__mail { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--lime); font-size: var(--fs-sm); }
.footer__mail:hover { text-decoration: underline; }
.footer__col h4 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--on-dark-mute); font-weight: 700; margin-bottom: 16px; }
.footer__col ul { list-style: none; display: grid; gap: 11px; }
.footer__col a { font-size: var(--fs-sm); color: var(--on-dark-soft); transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--lime); }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; padding-top: 28px; font-size: var(--fs-xs); color: var(--on-dark-mute);
}
.footer__bottom a:hover { color: var(--lime); }
.footer__totop { display: inline-flex; align-items: center; gap: 7px; }
.footer__totop svg { width: 14px; height: 14px; }

/* ============================================================
   10. RECHTSSEITEN (Impressum / Datenschutz)
   ============================================================ */
.legal { padding-block: clamp(40px, 4vw, 72px) clamp(56px, 5vw, 96px); }
.legal__inner { max-width: var(--maxw-narrow); }
.legal .back { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: var(--fs-sm); color: var(--petrol); margin-bottom: 28px; }
.legal .back svg { width: 16px; height: 16px; }
.legal h1 { font-size: var(--fs-h1); margin-bottom: 10px; }
.legal h2 { font-size: var(--fs-h3); margin: 38px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 11px; }
.legal ul { padding-left: 22px; margin-bottom: 11px; }
.legal a { color: var(--petrol); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.placeholder {
  display: inline-block; background: var(--lime); color: var(--petrol);
  border-radius: 6px; padding: 1px 8px; font-size: .92em; font-weight: 600;
}
.legal__note {
  margin-top: 40px; padding: 18px 22px; border-radius: var(--r-md);
  background: var(--offwhite); border: 1px dashed var(--border-light);
  font-size: var(--fs-sm);
}

/* ============================================================
   11. RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .anchor-grid,
  .bio-grid { grid-template-columns: 1fr; }
  .bio-photo { position: static; }
  .bio-photo .ph { aspect-ratio: 16/10; min-height: 240px; }
}

/* Bild-Hero: schmaler werdender Himmel, Scrim dichter ziehen für Lesbarkeit */
@media (max-width: 860px) {
  .hero-img { min-height: clamp(500px, 86vh, 640px); }
  .hero-img__photo { object-position: 68% 46%; }
  .hero-img__scrim {
    background:
      linear-gradient(96deg,
        rgba(8,22,24,.90) 0%,
        rgba(8,22,24,.74) 42%,
        rgba(8,22,24,.46) 70%,
        rgba(8,22,24,.22) 100%),
      linear-gradient(180deg, rgba(8,22,24,.45) 0%, rgba(8,22,24,0) 30%);
  }
}

@media (max-width: 860px) {
  .problem-grid,
  .teaser-grid,
  .steps,
  .feature-grid,
  .proof-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  /* Mobile-Nav */
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--white); border-bottom: 1px solid var(--border-light);
    padding: 0 18px; max-height: 0; overflow: hidden;
    transition: max-height .32s var(--ease), padding .32s var(--ease);
    box-shadow: var(--shadow-md);
  }
  .nav__links.open { max-height: calc(100vh - 72px); padding: 14px 18px 22px; overflow-y: auto; }
  .nav__links > a { width: 100%; padding: 14px 16px; border-radius: var(--r-sm); font-size: 1rem; }
  .nav__links .btn { width: 100%; margin-top: 10px; }

  /* Dropdown wird im Mobile-Menü zur aufgeklappten Liste */
  .dropdown { width: 100%; }
  .dropdown__trigger { width: 100%; justify-content: space-between; padding: 14px 16px; font-size: 1rem; border-radius: var(--r-sm); }
  .dropdown__menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; padding: 0 0 8px 12px;
    min-width: 0; max-height: 0; overflow: hidden; transition: max-height .3s var(--ease);
  }
  .dropdown[data-open="true"] .dropdown__menu { max-height: 400px; }

  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand-col { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .container { padding-inline: 18px; }
  .hero-img__actions .btn,
  .page-hero__actions .btn { width: 100%; }
  .section-motiv { opacity: .38; width: clamp(280px, 70vw, 380px); }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .proof-table thead { display: none; }
  .proof-table tbody th, .proof-table tbody td { display: block; width: 100%; padding: 8px 18px; }
  .proof-table tbody th { padding-top: 18px; }
  .proof-table tbody td { padding-bottom: 18px; color: var(--on-dark-mute); }
  .proof-table tbody tr { display: block; border-bottom: 1px solid var(--border-dark); }
  .proof-table tbody tr:last-child { border-bottom: 0; }
}

/* ============================================================
   11b. KI-SEITE: Zusatzkomponenten
   (nach Responsive platziert, damit eigene Media-Queries greifen)
   ============================================================ */

/* Vierstufige Treppe (nutzt .steps / .step) */
.steps--four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .steps--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps--four { grid-template-columns: 1fr; } }

/* Vorher / Nachher (auf Dunkel) */
.shift { display: grid; gap: 14px; margin-top: 28px; }
.shift__row { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: stretch; gap: 12px; }
.shift__cell { padding: 16px 20px; border-radius: var(--r-md); font-size: var(--fs-sm); line-height: 1.45; display: flex; align-items: center; }
.shift__before { background: var(--charcoal-600); color: var(--on-dark-mute); }
.shift__after { background: var(--petrol-600); color: var(--on-dark); font-weight: 600; border: 1px solid var(--border-dark); }
.shift__arrow { display: grid; place-items: center; color: var(--lime); }
.shift__arrow svg { width: 22px; height: 22px; }
@media (max-width: 620px) {
  .shift__row { grid-template-columns: 1fr; gap: 6px; }
  .shift__arrow { transform: rotate(90deg); height: 26px; margin: 2px 0; }
}

/* Drei Hebel (3-spaltige Karten auf Hell) */
.lever-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .lever-grid { grid-template-columns: 1fr; } }

/* Startseite: Lösungs-Sektion mit hervorgehobenem KI-Angebot */
.solution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.solution-grid .teaser-card--featured { grid-column: 1 / -1; }
@media (max-width: 860px) { .solution-grid { grid-template-columns: 1fr; } }
.teaser-card--featured { background: var(--petrol-600); border-color: rgba(227,255,204,.32); }
.teaser-card--featured h3 { font-size: var(--fs-h2); }
.offer-points { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 18px 0 6px; }
.offer-points li { position: relative; padding-left: 26px; font-size: var(--fs-sm); color: var(--on-dark-soft); font-weight: 600; }
.offer-points li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 5px;
  background: var(--lime);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23142F32' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-size: 11px; background-repeat: no-repeat; background-position: center;
}

/* ---------- 12. Motion-Präferenz ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }

  /* Bild-Hero: statisches Bild, keine Bewegung, kein Video */
  .hero-img__photo { animation: none !important; transform: none !important; }
  .hero-img__glow  { animation: none !important; opacity: 0 !important; transform: none !important; }
  /* Video gar nicht zeigen (JS laedt es ohnehin nicht), Foto liegt frei */
  .hero-img__video { display: none !important; }
}
