/* ==========================================================================
   Hadmi Ingenieure – Stylesheet
   Layout-Idee: Die Seite liest sich wie ein Plansatz. Achsraster, Positions-
   nummern und ein Schriftfeld (Plankopf) strukturieren die Inhalte.
   Alle Dateien liegen auf der eigenen Domain – keine externen Server.
   ========================================================================== */

/* ---------- Schriften (selbst gehostet) ---------- */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #192027;        /* Grundfläche */
  --ink-2: #1d252d;      /* Wechselfläche */
  --ink-3: #242e37;      /* Karten */
  --line: #2f3a45;       /* Linien */
  --line-2: #3e4a56;     /* kräftigere Linien */
  --olive: #555a2c;      /* Markenfarbe */
  --olive-hi: #646a34;
  --lime: #9aa448;       /* Akzent auf Dunkel */
  --lime-hi: #b3bd5e;
  --paper: #eceee7;      /* Text hell */
  --mute: #a6aeb6;       /* Text gedämpft */
  --mute-2: #7f8a94;

  --f-display: "Manrope", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-body: "Manrope", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: var(--f-body); /* Beschriftungen ebenfalls in Manrope */

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);
  --step-3: clamp(1.95rem, 1.4rem + 2.3vw, 2.9rem);
  --step-4: clamp(2.45rem, 1.5rem + 4.2vw, 4.5rem);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 8px;
  --header-h: 84px;

  color-scheme: dark;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 750; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 14px; font-weight: 700; text-decoration: none; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.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; }

/* Mono-Beschriftung (wie auf Plänen) */
.label {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}
.label--mute { color: var(--mute-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 1.4em;
  border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--f-body); font-weight: 700; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--olive); color: #fff; border-color: var(--olive-hi); }
.btn--primary:hover { background: var(--olive-hi); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--primary svg { transition: transform .2s ease; }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime-hi); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(25, 32, 39, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(25, 32, 39, 0.95); }
/* Ein Backdrop-Filter würde das fixierte Mobil-Menü einsperren – solange es offen ist, abschalten */
.site-header.menu-open, .site-header:has(.menu[open]) { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--ink); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); }
.brand__logo { display: block; height: 64px; width: auto; }
@media (max-width: 560px) { .brand__logo { height: 54px; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--mute); font-weight: 600; font-size: 0.95rem; padding: 10px 12px; border-radius: var(--radius); transition: color .2s ease; }
.nav a:hover { color: var(--paper); }
.nav .btn { margin-left: 12px; min-height: 44px; color: #fff; padding: 0 1.1em; }

/* Mobil-Menü: funktioniert auch ohne JavaScript (details/summary) */
.menu { display: none; }
.menu > summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: var(--radius); }
.menu > summary::-webkit-details-marker { display: none; }
.menu__icon { width: 20px; height: 14px; position: relative; }
.menu__icon span { position: absolute; left: 0; right: 0; height: 2px; background: var(--paper); transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.menu__icon span:nth-child(1) { top: 0; }
.menu__icon span:nth-child(2) { top: 6px; }
.menu__icon span:nth-child(3) { top: 12px; }
.menu[open] .menu__icon span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu[open] .menu__icon span:nth-child(2) { opacity: 0; }
.menu[open] .menu__icon span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.menu__panel {
  position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); bottom: 0;
  background: var(--ink); border-top: 1px solid var(--line);
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
}
.menu__panel a:not(.btn) { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; color: var(--paper); }
.menu__panel a:not(.btn) small { font-family: var(--f-mono); font-size: 0.75rem; color: var(--mute-2); letter-spacing: 0.1em; }
.menu__panel .btn { margin-top: 24px; width: 100%; }
.menu__contact { margin-top: 20px; display: grid; gap: 6px; color: var(--mute); font-size: 0.95rem; }
.menu__panel .menu__contact a:not(.btn) { display: block; padding: 4px 0; border: 0; font-family: var(--f-body); font-size: 1.05rem; font-weight: 650; color: var(--paper); }

@media (max-width: 960px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(32px, 5vw, 72px) clamp(12px, 1.5vw, 20px); overflow: hidden; }
.hero + .section { padding-top: clamp(40px, 4.5vw, 64px); }
.hero::before { /* Achsraster */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(154,164,72,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(154,164,72,.07) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero__lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); color: var(--mute); max-width: 34em; }
.hero__lead strong { color: var(--paper); font-weight: 650; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero__trust { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
.hero__trust li {
  display: flex; align-items: center; gap: 16px; min-height: 96px; padding: 20px 22px;
  background: linear-gradient(140deg, rgba(154,164,72,.10), rgba(154,164,72,0) 55%), rgba(36,46,55,.75);
  border: 1px solid var(--line); border-radius: 14px;
  color: var(--paper); font-size: 1.04rem; font-weight: 700; line-height: 1.35;
  transition: border-color .35s ease, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.hero__trust li:hover { border-color: rgba(154,164,72,.55); transform: translateY(-3px); box-shadow: 0 16px 34px -18px rgba(0,0,0,.7), 0 0 36px -14px rgba(154,164,72,.4); }
.trust__ico { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--olive); color: #fff; box-shadow: 0 10px 22px -12px rgba(85,90,44,.9); }
.trust__ico svg { width: 24px; height: 24px; }
.nowrap { white-space: nowrap; }
@media (max-width: 1100px) { .hero__trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hero__trust { grid-template-columns: minmax(0, 1fr); } .hero__trust li { min-height: 78px; padding: 16px 18px; } }

/* Hero-Bild mit Achsen */
.plan { position: relative; min-width: 0; margin: 0; }
.plan__top { position: relative; }
.plan__frame { position: relative; border: 1px solid var(--line-2); background: var(--ink-2); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px -40px rgba(0,0,0,.9); }
.plan__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.plan__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.04); }
.plan__photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(25,32,39,0) 60%, rgba(25,32,39,.45) 100%); }


@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  }
@media (max-width: 520px) {
    .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(32px, 5vw, 72px); align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head h2 { font-size: var(--step-3); }
.section__head p { color: var(--mute); max-width: 36em; }
.section__head .label { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.section__head .label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, var(--line-2), transparent); }
@media (max-width: 860px) { .section__head { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Kennzahlen-Leiste ---------- */
.facts { border-block: 1px solid var(--line); background: var(--ink-2); }
.facts__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 26px 24px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); min-width: 0; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact__value { font-family: var(--f-display); font-weight: 650; font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fact__value span { color: var(--lime); }
.fact__text { color: var(--mute); font-size: 0.92rem; line-height: 1.45; }
@media (max-width: 860px) {
  .facts__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 20px 16px; }
  .fact__value { font-size: 1.35rem; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.service {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 24px; align-content: start;
  padding: clamp(24px, 3.4vw, 40px);
  background: var(--ink-3); border: 1px solid var(--line); border-radius: 18px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color .35s ease, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
/* Lichtkegel, folgt der Maus bzw. dem Finger */
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(154,164,72,.20), rgba(85,90,44,.10) 35%, transparent 65%);
  opacity: 0; transition: opacity .4s ease;
}
/* Linie oben, die sich aufzieht */
.service::after {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--olive), var(--lime));
  transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.service:hover, .service:focus-visible, .service.is-active {
  border-color: rgba(154,164,72,.55);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.6), 0 0 0 1px rgba(154,164,72,.12), 0 0 46px -12px rgba(154,164,72,.35);
}
.service:hover::before, .service:focus-visible::before, .service.is-active::before { opacity: 1; }
.service:hover::after, .service:focus-visible::after, .service.is-active::after { transform: scaleX(1); }
.service:focus-visible { outline: none; }
.service__icon { grid-row: span 4; width: 60px; height: 60px; padding: 8px; color: var(--lime); border: 1px solid var(--line-2); border-radius: 50%; transition: transform .45s cubic-bezier(.3,1.4,.5,1), background-color .35s ease, color .35s ease, border-color .35s ease; }
.service:hover .service__icon, .service:focus-visible .service__icon, .service.is-active .service__icon { transform: scale(1.08) rotate(-4deg); background: var(--olive); color: #fff; border-color: var(--olive-hi); }
.service__pos { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute-2); transition: color .35s ease; }
.service:hover .service__pos, .service.is-active .service__pos { color: var(--lime); }
.service h3 { font-size: var(--step-2); }
.service__claim { color: var(--lime-hi); font-weight: 650; }
.service__text { color: var(--mute); }
.service__tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.service__tags li { font-size: 0.78rem; font-weight: 650; color: var(--paper); border: 1px solid var(--line-2); padding: 5px 11px; border-radius: 999px; transition: border-color .35s ease, background-color .35s ease; }
.service:hover .service__tags li, .service.is-active .service__tags li { border-color: rgba(154,164,72,.5); background: rgba(154,164,72,.08); }
.service.is-pulse .service__icon { animation: pulse .6s ease; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(154,164,72,.55); } 100% { box-shadow: 0 0 0 18px rgba(154,164,72,0); } }
@media (max-width: 860px) {
  .services { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .service { grid-template-columns: minmax(0, 1fr); }
  .service__icon { grid-row: auto; width: 54px; height: 54px; margin-bottom: 8px; }
  .service__tags { grid-column: 1; }
}

/* ---------- Zielgruppen ---------- */
.audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.audience {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start;
  padding: clamp(26px, 3vw, 36px);
  background: radial-gradient(120% 140% at 0% 0%, rgba(154,164,72,.12), rgba(154,164,72,0) 50%), var(--ink-3);
  border: 1px solid var(--line); border-radius: 18px; min-height: 190px;
  transition: border-color .4s ease, transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
}
.audience:hover { border-color: rgba(154,164,72,.55); transform: translateY(-4px); box-shadow: 0 22px 48px -24px rgba(0,0,0,.75), 0 0 50px -18px rgba(154,164,72,.35); }
.audience__icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(145deg, var(--olive-hi), var(--olive)); color: #fff; box-shadow: 0 14px 28px -14px rgba(85,90,44,.95), inset 0 1px 0 rgba(255,255,255,.12); transition: transform .45s cubic-bezier(.3,1.4,.5,1); }
.audience:hover .audience__icon { transform: rotate(-6deg) scale(1.06); }
.audience__icon svg { width: 30px; height: 30px; }
.audience__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.audience h3 { font-size: 1.4rem; }
.audience p { color: var(--mute); font-size: 1rem; max-width: 34em; }
.audience__mark { position: absolute; right: -24px; bottom: -28px; width: 170px; height: 170px; color: var(--lime); opacity: .06; z-index: -1; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .4s ease; }
.audience:hover .audience__mark { transform: translate(-10px, -10px) rotate(-6deg); opacity: .12; }
@media (max-width: 860px) { .audiences { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .audience { grid-template-columns: minmax(0, 1fr); gap: 16px; } .audience__icon { width: 54px; height: 54px; } }

/* ---------- Projekte ---------- */
/* Projekt-Slider: natives Wischen mit Scroll-Snap, Pfeile per JavaScript */
.slider { position: relative; }
.slider__bar { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-bottom: 18px; }
.slider__count { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--mute); font-variant-numeric: tabular-nums; }
.slider__nav { display: flex; gap: 8px; }
.slider__nav .lb-btn[disabled] { opacity: .35; cursor: default; border-color: var(--line); color: var(--mute); }
.projects { --per: 3; --gap: 16px; display: flex; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 6px; margin: -4px -2px 0; -webkit-overflow-scrolling: touch; }
.projects::-webkit-scrollbar { display: none; }
.projects:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.project { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); min-width: 0; scroll-snap-align: start; }
.slider__progress { margin-top: 20px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.slider__progress span { position: absolute; left: 0; top: 0; bottom: 0; width: 37.5%; background: var(--lime); transition: left .25s ease, width .25s ease; }
.project button { all: unset; display: block; width: 100%; cursor: zoom-in; border-radius: var(--radius); }
.project button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.project__img { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--ink-3); }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.project button:hover .project__img img { transform: scale(1.035); }
.project__chip { position: absolute; left: 12px; top: 12px; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(25,32,39,.88); color: var(--lime-hi); padding: 5px 9px; border-radius: 2px; }
.project__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 2px 0; }
.project__title { font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; line-height: 1.3; }
.project__place { font-family: var(--f-mono); font-size: 0.75rem; color: var(--mute); white-space: nowrap; }
.projects__note { margin-top: 36px; color: var(--mute); max-width: 44em; }
@media (max-width: 960px) {
  .projects { --per: 2; }
}
@media (max-width: 560px) {
  .projects { --per: 1.15; --gap: 12px; }
  .project__meta { flex-direction: column; gap: 2px; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(12,16,20,.99); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: calc(12px + env(safe-area-inset-top, 0px)) 12px calc(16px + env(safe-area-inset-bottom, 0px)); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--mute); font-family: var(--f-mono); font-size: 0.8rem; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; padding: 12px 0; }
.lightbox__stage img { max-width: min(1400px, 100%); max-height: 100%; object-fit: contain; border-radius: 2px; }
.lightbox__caption { text-align: center; color: var(--paper); font-weight: 600; padding-inline: 56px; }
.lightbox__caption small { display: block; color: var(--mute); font-weight: 500; font-family: var(--f-mono); font-size: 0.78rem; margin-top: 2px; }
.lb-btn { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--ink); color: var(--paper); border-radius: var(--radius); cursor: pointer; }
.lb-btn:hover { border-color: var(--lime); color: var(--lime-hi); }
.lb-btn svg { width: 20px; height: 20px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

/* ---------- Ablauf (animierte Zeitleiste) ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.steps__track { position: absolute; left: 28px; right: calc((100% - 64px) / 5 - 28px); top: 27px; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; list-style: none; }
.steps__fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--olive), var(--lime)); transform-origin: left; transform: scaleX(1); }
.step { position: relative; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.step__num {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--olive); color: #fff; font-weight: 800; font-size: 1.15rem;
  border: 1px solid var(--olive-hi); box-shadow: 0 0 0 6px var(--ink), 0 10px 26px -10px rgba(154,164,72,.6);
  transition: transform .4s cubic-bezier(.3,1.4,.5,1);
}
.step__card { flex: 1; padding: 20px 20px 22px; background: var(--ink-3); border: 1px solid var(--line); border-radius: 14px; transition: border-color .35s ease, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.step:hover .step__card { border-color: rgba(154,164,72,.5); transform: translateY(-4px); box-shadow: 0 18px 38px -22px rgba(0,0,0,.75); }
.step:hover .step__num { transform: scale(1.08); }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--mute); font-size: 0.96rem; }
/* Animation beim Hineinscrollen (nur mit JavaScript, sonst sofort sichtbar) */
.steps.is-armed .steps__fill { transform: scaleX(0); }
.steps.is-armed .step__num { transform: scale(.4); opacity: 0; }
.steps.is-armed .step__card { opacity: 0; transform: translateY(18px); }
.steps.is-in .steps__fill { transform: scaleX(1); transition: transform 1.6s cubic-bezier(.6,.1,.2,1) .15s; }
.steps.is-in .step__num { transform: none; opacity: 1; transition: transform .55s cubic-bezier(.3,1.5,.5,1), opacity .3s ease; transition-delay: calc(.2s + var(--i) * .3s); }
.steps.is-in .step__card { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(.3s + var(--i) * .3s); }
@media (max-width: 960px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .steps__track { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .steps__fill { transform-origin: top; }
  .steps.is-armed .steps__fill { transform: scaleY(0); }
  .steps.is-in .steps__fill { transform: scaleY(1); }
  .step { flex-direction: row; align-items: flex-start; gap: 18px; }
}

/* ---------- Über uns ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about__copy { display: flex; flex-direction: column; gap: 20px; }
.about__copy h2 { font-size: var(--step-3); }
.about__copy p { color: var(--mute); max-width: 36em; }
.about__visual { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.portrait { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(circle at 50% 40%, rgba(154,164,72,.16), transparent 62%), var(--ink-3); display: grid; place-items: center; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .portrait__logo { width: 42%; height: auto; max-height: 82%; object-fit: contain; filter: drop-shadow(0 10px 30px rgba(154,164,72,.18)); }
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.fact-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 4px 14px; align-items: center; padding: 18px; background: var(--ink-3); border: 1px solid var(--line); border-radius: 14px; transition: border-color .35s ease, transform .35s cubic-bezier(.2,.7,.2,1); }
.fact-card:hover { border-color: rgba(154,164,72,.5); transform: translateY(-3px); }
.fact-card__ico { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(154,164,72,.14); color: var(--lime); }
.fact-card__ico svg { width: 22px; height: 22px; }
.fact-card dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute-2); }
.fact-card dd { margin: 0; color: var(--paper); font-weight: 700; font-size: 0.98rem; line-height: 1.35; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .facts-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- CTA-Band ---------- */
.cta { background: var(--olive); color: #fff; padding-block: clamp(48px, 7vw, 84px); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: linear-gradient(to left, #000, transparent 70%); mask-image: linear-gradient(to left, #000, transparent 70%); pointer-events: none; }
.cta__row { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { font-size: var(--step-3); max-width: 14em; }
.cta p { color: rgba(255,255,255,.82); margin-top: 12px; max-width: 34em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.cta .btn--ghost:hover { border-color: #fff; color: #fff; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--header-h) + 32px); display: flex; flex-direction: column; gap: 18px; }
.faq__intro h2 { font-size: var(--step-3); }
.faq__intro p { color: var(--mute); }
.faq__intro a { color: var(--lime-hi); font-weight: 650; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 16px; align-items: center; padding: 22px 0; font-family: var(--f-display); font-weight: 600; font-size: 1.14rem; line-height: 1.35; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--lime-hi); }
.faq__toggle { width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 50%; position: relative; }
.faq__toggle::before, .faq__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .25s ease; }
.faq__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item[open] summary { color: var(--lime-hi); }
.faq__answer { padding: 0 44px 24px 0; color: var(--mute); }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } .faq__intro { position: static; } .faq__answer { padding-right: 0; } }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; padding: clamp(22px, 3.4vw, 40px); background: var(--ink-3); border: 1px solid var(--line); border-radius: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field .field__label { font-weight: 650; font-size: 0.92rem; }
.field label .opt { color: var(--mute-2); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius);
  color: var(--paper); font-size: 1rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239aa448' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: var(--mute-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(154,164,72,.18); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #d27b5d; }
.field__error { color: #e59a7e; font-size: 0.85rem; font-weight: 600; }
.field__hint { color: var(--mute-2); font-size: 0.84rem; }

.upload { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--ink); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.upload:hover, .upload.is-drag { border-color: var(--lime); background: rgba(154,164,72,.05); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload svg { width: 28px; height: 28px; color: var(--lime); flex: none; }
.upload__text { font-size: 0.95rem; color: var(--paper); font-weight: 600; }
.upload__text small { display: block; color: var(--mute-2); font-weight: 500; font-size: 0.82rem; }
.upload-list { display: grid; gap: 6px; margin-top: 4px; }
.upload-list li { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 0.78rem; color: var(--mute); border-bottom: 1px solid var(--line); padding: 6px 0; }
.upload-list li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.consent { grid-column: 1 / -1; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 0.92rem; color: var(--mute); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--olive); }
.consent a { color: var(--lime-hi); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__submit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 4px; }
.form__submit .btn { min-width: 260px; }
.form__submit small { color: var(--mute-2); font-size: 0.84rem; }
.form__status { grid-column: 1 / -1; padding: 14px 16px; border-radius: var(--radius); font-weight: 600; }
.form__status--ok { background: rgba(154,164,72,.14); border: 1px solid var(--lime); color: var(--paper); }
.form__status--err { background: rgba(210,123,93,.12); border: 1px solid #d27b5d; color: var(--paper); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.contact__card { display: flex; flex-direction: column; gap: 22px; padding: clamp(22px, 3vw, 32px); background: var(--ink-3); border: 1px solid var(--line); border-radius: 18px; }
.contact__card h3 { font-size: 1.3rem; }
.contact__lines { display: grid; gap: 16px; }
.contact__line { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; }
.contact__line .ico { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; color: var(--lime); }
.contact__line .ico svg { width: 18px; height: 18px; }
.contact__line small { display: block; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute-2); }
.contact__line a, .contact__line span { color: var(--paper); font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.contact__line a:hover { color: var(--lime-hi); }
.contact__note { padding-top: 18px; border-top: 1px solid var(--line); color: var(--mute); font-size: 0.92rem; display: grid; gap: 8px; }
@media (max-width: 960px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); } .form__submit .btn { width: 100%; min-width: 0; } }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(56px, 7vw, 88px) calc(28px + env(safe-area-inset-bottom, 0px)); background: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px); }
.footer-cell { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-cell h2 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute-2); }
.footer-cell p, .footer-cell li { color: var(--mute); font-size: 0.94rem; line-height: 1.7; }
.footer-cell a { color: var(--paper); text-decoration: none; }
.footer-cell a:hover { color: var(--lime-hi); }
.footer-logo { width: 150px; color: var(--lime); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(40px, 5vw, 64px); font-size: 0.8rem; color: var(--mute-2); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Rechtstexte / Unterseiten ---------- */
.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: var(--step-3); margin-top: 14px; }
.page-head p { color: var(--mute); margin-top: 14px; max-width: 40em; }
.legal { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px); }
.legal__body { max-width: 760px; }
.legal__body h2 { font-size: 1.35rem; margin: 44px 0 12px; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { font-size: 1.05rem; margin: 26px 0 8px; }
.legal__body p, .legal__body li { color: var(--mute); }
.legal__body p + p { margin-top: 12px; }
.legal__body ul { display: grid; gap: 6px; margin-top: 10px; }
.legal__body li { padding-left: 18px; position: relative; }
.legal__body li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 1px; background: var(--lime); }
.legal__body a { color: var(--lime-hi); }
.legal__body address { font-style: normal; color: var(--paper); line-height: 1.7; }
.legal__body strong { color: var(--paper); }

.notice { padding-block: clamp(72px, 12vw, 160px); }
.notice__box { max-width: 640px; display: flex; flex-direction: column; gap: 20px; }
.notice__box h1 { font-size: var(--step-3); }
.notice__box p { color: var(--mute); }
.notice__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Einblenden beim Scrollen (nur Elemente unterhalb des ersten Bildschirms) ---------- */
.reveal-armed { opacity: 0; transform: translateY(22px); }
.reveal-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Cookie-Banner ---------- */
.consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; padding: 0 var(--gutter) calc(16px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.consent-banner__inner { pointer-events: auto; max-width: 760px; margin: 0 auto; padding: 22px 24px; background: rgba(29,37,45,.98); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.85); display: grid; gap: 14px; }
.consent-banner__title { font-weight: 800; font-size: 1.05rem; }
.consent-banner__text { color: var(--mute); font-size: 0.9rem; line-height: 1.55; }
.consent-banner__text a { color: var(--lime-hi); }
.consent-banner__options { display: grid; gap: 10px; }
.consent-opt { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 12px 14px; background: var(--ink); border: 1px solid var(--line); border-radius: 10px; font-size: 0.86rem; color: var(--mute); cursor: pointer; }
.consent-opt input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--olive); }
.consent-opt b { display: block; color: var(--paper); font-size: 0.92rem; margin-bottom: 2px; }
.consent-banner__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.consent-banner__actions .btn { min-height: 46px; padding: 0 1.1em; font-size: 0.92rem; }
@media (max-width: 560px) { .consent-banner__actions .btn { flex: 1 1 100%; } .consent-banner__inner { padding: 18px; } }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .cta, .site-footer, .form, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
}
