/* =========================================================
   AKS GmbH – Designsystem
   Farben, Schrift, Abstände und alle wiederverwendbaren Bausteine.
   Änderungen an Farben/Schrift nur hier in :root vornehmen.
   ========================================================= */

:root {
  /* Marke */
  --navy: #1c2a7f;
  --navy-700: #16216a;
  --navy-900: #0f1746;
  --gold: #f2c230;          /* RAL 1023 – nur als Fläche/Linie, nie als Text auf Weiß */
  --gold-600: #d9a814;

  /* Neutrale Töne (kühl, passend zu Navy) */
  --ink: #1e2230;
  --muted: #565c6e;
  --line: #e2e5ee;
  --paper: #ffffff;
  --studio: #f2f3f6;        /* heller „Studio“-Hintergrund für Renderings */
  --studio-2: #e6e8ef;
  --on-dark: #c9cee8;
  --on-dark-muted: #9aa0c8;

  /* Schrift */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Form & Raster */
  /* Freigestellte Produkte vom Hintergrund abheben: heller Saum, dann zwei Schatten.
     Der Saum trennt gelbe Produkte vom goldenen Bogen dahinter. */
  --produkt-schatten:
    drop-shadow(0 0 2px rgba(255, 255, 255, 1))
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.85))
    drop-shadow(0 6px 10px rgba(15, 23, 70, 0.22))
    drop-shadow(0 30px 34px rgba(15, 23, 70, 0.20));
  --radius: 6px;            /* ein Radius für alles: Buttons, Kacheln, Bilder */
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --section-y: clamp(64px, 8vw, 112px);

  /* Bewegung & Tiefe */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 22px 50px rgba(15, 23, 70, 0.14);
  --shadow-sm: 0 8px 22px rgba(15, 23, 70, 0.1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Manche Plugins färben Links pauschal ein – das OneTap-Barrierefreiheitswerkzeug
   etwa setzt „body a { color: … }" per Inline-CSS, was unser schlichtes „a"
   überstimmt und die Fußzeile blau werden lässt. Wir wiederholen die Vererbung
   deshalb mit etwas mehr Gewicht. Bewusst ohne !important: Eigene Klassen wie
   .nav-link oder .text-link sollen weiterhin gewinnen. */
html body a { color: inherit; }
/* Ein Link mitten im Fliesstext muss als Link zu erkennen sein. Nur Links ohne
   eigene Klasse: Schaltflaechen, Menue und Fusszeile behalten ihr Aussehen. */
html body .section p a:not([class]) {
  color: var(--navy); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
html body .section p a:not([class]):hover {
  text-decoration-color: var(--gold); text-decoration-thickness: 3px;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.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 {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
.is-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

/* ---------- Typo-Bausteine ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--gold); border-radius: 2px; }

.section { padding-block: var(--section-y); }
.section--studio { background: var(--studio); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 {
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  text-transform: uppercase; color: var(--navy-900);
}
.section-head p { margin-top: 0.9rem; font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-display); font-weight: 600; font-size: 1.14rem; letter-spacing: 0.02em;
  padding: 0.72em 1.45em; border-radius: var(--radius); border: 2px solid transparent;
  white-space: nowrap; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn i { font-size: 1.1em; transition: transform 0.3s var(--ease); }
.btn:hover i { transform: translateX(3px); }
.btn-primary { background: var(--gold); color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-600); }
.btn-secondary { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-secondary:hover { background: var(--navy); color: #fff; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--navy);
}
.text-link:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
/* Weichzeichner auf eigener Ebene: backdrop-filter direkt am Header würde das
   fest positionierte Mobilmenü an die Header-Höhe binden */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(15, 23, 70, 0.06); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; color: var(--navy); flex: none; }
.brand svg { height: 42px; width: auto; }

.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  display: block; padding: 10px 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--ink);
  transition: color 0.2s ease;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--navy); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); }
.sub-toggle {
  display: grid; place-items: center; width: 32px; height: 44px; margin-left: -8px;
  background: none; border: 0; cursor: pointer; color: var(--muted); border-radius: var(--radius);
}
.sub-toggle i { transition: transform 0.25s var(--ease); }
.has-sub.is-open .sub-toggle i { transform: rotate(180deg); }
.submenu {
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0.2s;
}
.submenu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 4px; font-size: 1rem; color: var(--ink); }
.submenu a i { flex: none; width: 1.3em; font-size: 1.15rem; color: var(--navy); text-align: center; }
.submenu a:hover { background: var(--studio); color: var(--navy); }
@media (hover: hover) and (min-width: 981px) {
  .has-sub:hover .submenu { opacity: 1; visibility: visible; transform: none; }
}
.has-sub.is-open .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }

.header-actions { display: flex; align-items: center; gap: 18px; }
/* Telefonnummern nie umbrechen: eine halbe Nummer am Zeilenende liest sich schlecht. */
a[href^="tel:"] { white-space: nowrap; }

.header-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--navy); white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: var(--navy); font-size: 1.8rem; }

@media (max-width: 1180px) { .header-phone { display: none; } }
@media (max-width: 980px) {
  .burger { display: grid; place-items: center; }
  .header-actions .btn { display: none; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto;
    padding: 16px var(--gutter) 40px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0.25s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  body.nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-link { flex: 1; padding: 16px 0; font-size: 1.4rem; }
  .sub-toggle { width: 48px; height: 48px; margin: 0; font-size: 1.2rem; }
  .submenu {
    position: static; flex-basis: 100%; min-width: 0; border: 0; box-shadow: none; padding: 0 0 12px 12px;
    display: none; opacity: 1; visibility: visible; transform: none;
  }
  .has-sub.is-open .submenu { display: block; }
  .nav-mobile-cta { display: flex !important; }
}
.nav-mobile-cta { display: none !important; margin-top: 24px; flex-direction: column; gap: 14px; align-items: flex-start; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 78% 45%, #ffffff 0%, var(--studio) 52%, var(--studio-2) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  min-height: min(720px, calc(100dvh - var(--header-h)));
  padding-block: clamp(40px, 6vw, 80px);
}
.hero-grid > * { min-width: 0; }
.hero-copy { container-type: inline-size; }
.hero-title {
  margin: 0.45em 0 0.4em;
  font-size: clamp(2rem, 4.9vw, 4.6rem); font-weight: 700; line-height: 0.96;
  text-transform: uppercase; color: var(--navy-900);
  hyphens: manual; overflow-wrap: normal;
}
/* „Sondermaschinenbau“ darf nie umbrechen: Schriftgröße an die Breite der Textspalte gekoppelt */
@supports (font-size: 1cqi) {
  .hero-title { font-size: clamp(2rem, 11cqi, 4.6rem); }
}
.hero-lead { font-size: clamp(1.1rem, 1.45vw, 1.3rem); color: var(--muted); max-width: 40ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stage { position: relative; aspect-ratio: 5 / 4; width: 100%; }
.stage-swoosh { position: absolute; inset: -4% -6% -2% -4%; width: 110%; height: 106%; pointer-events: none; overflow: visible; }
.stage-item {
  position: absolute; inset: 4% 2% 8%; display: grid; place-items: center;
  opacity: 0; transform: translateY(14px) scale(0.97);
  transition: opacity 0.9s ease, transform 1.3s var(--ease);
}
.stage-item.is-active { opacity: 1; transform: none; }
/* Bild füllt die Bühne und wird darin eingepasst – nie größer als die Bühne */
.stage-item img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; filter: var(--produkt-schatten);
}
/* Quellbild unten abgeschnitten: kleiner einsetzen und nach unten ausblenden */
.stage-item--fade { inset: 2% 18% 14%; }
.stage-item--fade img {
  object-position: center top; filter: none;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 60%, transparent 95%);
}
.stage-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.stage-caption {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.45rem, 2.1vw, 1.9rem);
  text-transform: uppercase; letter-spacing: 0.01em; color: var(--navy-900);
  display: inline-flex; gap: 12px; align-items: center;
}
.stage-caption i { color: var(--navy); font-size: 1.1em; transition: transform 0.35s var(--ease); }
.stage-caption:hover i { transform: translateX(5px); }
.stage-caption:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.stage-toggle { width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.7); color: var(--navy); cursor: pointer; display: grid; place-items: center; }

.draw-path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-loaded .hero .draw-path { animation: draw 1.8s var(--ease) 0.15s forwards; }
.is-loaded .hero .draw-path.is-late { animation-delay: 0.5s; }
[data-draw].is-in .draw-path { animation: draw 1.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .stage { max-width: 520px; margin-inline: auto; }
}

/* ---------- Vertrauensleiste ---------- */
.trustbar { background: #fff; border-bottom: 1px solid var(--line); }
.trust-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-list li {
  display: flex; align-items: center; gap: 12px; padding: 22px 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink);
}
.trust-list li + li { border-left: 1px solid var(--line); padding-left: 24px; }
.trust-list i { font-size: 1.9rem; color: var(--navy); flex: none; }
@media (max-width: 860px) {
  .trust-list { grid-template-columns: 1fr 1fr; }
  .trust-list li + li { border-left: 0; padding-left: 12px; }
  .trust-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Leistungs-Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius);
  min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end;
  grid-column: span 4;
}
.tile-body { position: relative; z-index: 2; padding: clamp(22px, 2.4vw, 32px); }
.tile h3 { font-size: clamp(1.7rem, 2.3vw, 2.2rem); text-transform: uppercase; }
.tile p { margin-top: 0.45rem; max-width: 38ch; }
.tile-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
}
.tile-more i { transition: transform 0.35s var(--ease); }
.tile:hover .tile-more i { transform: translateX(5px); }
.tile .stretch { position: absolute; inset: 0; z-index: 3; }
.tile .stretch:focus-visible { outline-offset: -4px; }
.tile-media { position: absolute; inset: 0; z-index: -1; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.tile:hover .tile-media img { transform: scale(1.04); }

.tile--photo { color: #fff; }
.tile--photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 70, 0) 30%, rgba(15, 23, 70, 0.88) 100%);
}
.tile--photo p { color: #e6e9f7; }
.tile--studio { background: radial-gradient(110% 90% at 70% 30%, #fff 0%, var(--studio) 60%, var(--studio-2) 100%); color: var(--navy-900); }
.tile--studio p { color: var(--muted); }
.tile--studio .tile-more { color: var(--navy); }
.tile--studio .tile-media { inset: 6% 6% 46% 6%; }
.tile--studio .tile-media img { object-fit: contain; object-position: center; filter: drop-shadow(0 18px 18px rgba(15, 23, 70, 0.16)); }
.tile--navy { background: radial-gradient(120% 100% at 80% 10%, #2a3a9e 0%, var(--navy) 45%, var(--navy-900) 100%); color: #fff; }
.tile--navy p { color: var(--on-dark); }
.tile--navy .tile-media { inset: 2% -10% 50% 12%; }
.tile--navy .tile-media img { object-fit: contain; }
.tile--photo .tile-more, .tile--navy .tile-more { color: var(--gold); }

.t-rwa { grid-column: span 7; min-height: 460px; }
.t-dicht { grid-column: span 5; min-height: 460px; }
.t-filter { grid-column: span 12; min-height: 240px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.t-filter .tile-media { position: relative; inset: auto; align-self: stretch; min-height: 280px; }
.t-filter .tile-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 45%;
}
/* Mikroskop: Arm ist im Quellbild abgeschnitten, daher nach unten weich ausblenden */
.t-entw .tile-media { inset: 4% 8% 42% 8%; }
.t-entw .tile-media img {
  object-position: center top;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 62%, transparent 96%);
}

@media (max-width: 980px) {
  .tile, .t-dicht { grid-column: span 6; }
  .t-rwa { grid-column: span 12; min-height: 380px; }
  .t-dicht { min-height: 340px; }
}
@media (max-width: 640px) {
  .tile, .t-rwa, .t-dicht, .t-filter { grid-column: span 12; min-height: 440px; }
  .t-filter { min-height: 0; }
  .t-filter { grid-template-columns: 1fr; }
  .t-filter .tile-media { order: -1; min-height: 200px; }

  /* Auf schmalen Schirmen braucht der Text mehr Höhe, dadurch rutscht er unter
     das freigestellte Produkt. Das Bild endet deshalb früher – sonst steht der
     Maschinenfuß mitten in der Überschrift. Die Fotokacheln sind nicht betroffen,
     dort liegt das Bild absichtlich hinter dem Text. */
  .tile--studio .tile-media { inset: 5% 6% 52% 6%; }
}

/* ---------- Ablauf ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.process-line { position: absolute; top: 27px; left: 28px; right: 28px; height: 6px; width: auto; overflow: visible; }
.step { position: relative; }
.step-icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--navy); color: var(--navy); font-size: 1.6rem;
  position: relative; z-index: 1;
}
.step h3 { margin: 20px 0 10px; font-size: clamp(1.6rem, 2.2vw, 2rem); text-transform: uppercase; color: var(--navy-900); }
.step p { color: var(--muted); max-width: 34ch; }
@media (max-width: 780px) {
  .process { grid-template-columns: 1fr; gap: 32px; padding-left: 0; }
  .process-line { display: none; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; }
  .step h3 { margin: 10px 0 6px; }
  .step p { grid-column: 2; }
}

/* ---------- Kennzahlen ---------- */
.stats-band {
  background: radial-gradient(90% 140% at 85% 0%, #22318f 0%, var(--navy-900) 60%);
  color: #fff; padding-block: clamp(56px, 7vw, 88px);
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 8px clamp(16px, 2.4vw, 32px); }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.14); }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.8rem, 4.6vw, 4rem); line-height: 1; color: var(--gold); white-space: nowrap; }
.stat-label { margin-top: 10px; color: var(--on-dark); font-size: 1.05rem; }
.stats-foot {
  margin-top: clamp(32px, 4vw, 48px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; align-items: center; gap: 12px; color: var(--on-dark); font-size: 1.08rem;
}
.stats-foot i { font-size: 1.5rem; color: var(--gold); }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } .stat + .stat { border-left: 0; } }

/* ---------- Warum AKS ---------- */
.why { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.why .section-head { margin-bottom: 20px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 1.8vw, 1.5rem); color: var(--navy-900);
}
.acc-trigger i { flex: none; font-size: 1.3rem; color: var(--navy); transition: transform 0.35s var(--ease); }
.acc-item.is-open .acc-trigger i { transform: rotate(45deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; visibility: hidden; transition: visibility 0.4s; }
.acc-item.is-open .acc-panel > div { visibility: visible; }
.acc-panel p { padding-bottom: 22px; color: var(--muted); max-width: 58ch; }
.why-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 900px) {
  .why { grid-template-columns: 1fr; }
  .why-media img { aspect-ratio: 16 / 10; }
}

/* ---------- Kontakt-Abschluss ---------- */
.contact-cta { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.contact-cta h2 { margin-top: 18px; font-size: clamp(2.1rem, 3.6vw, 3.2rem); text-transform: uppercase; color: var(--navy-900); }
.contact-cta .cta-text { margin: 16px 0 28px; font-size: 1.18rem; color: var(--muted); max-width: 48ch; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

.person {
  display: grid; grid-template-columns: minmax(200px, 46%) 1fr; align-items: stretch;
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.person img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: center 25%; }
.person > div { padding: 26px 24px; align-self: center; }
.person-name { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; color: var(--navy-900); line-height: 1.1; }
.person-role { color: var(--muted); font-size: 0.98rem; line-height: 1.35; margin-top: 2px; }  /* 1.6 aus dem Fliesstext ist fuer eine zwei- bis dreizeilige Funktionsangabe zu luftig */
.person-quote { margin: 10px 0 12px; font-weight: 500; color: var(--ink); }
.person-links { display: grid; gap: 4px; font-size: 0.98rem; }
.person-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); }
.person-links a:hover { text-decoration: underline; }
@media (max-width: 900px) { .contact-cta { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .person { grid-template-columns: 1fr; }
  .person img { height: auto; min-height: 0; aspect-ratio: 4 / 5; }
}

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--navy-900); color: var(--on-dark); padding-top: clamp(40px, 4.6vw, 56px); font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px 32px; padding-bottom: 30px; }
.footer-brand { color: #fff; display: inline-flex; }
.footer-brand svg { height: 44px; width: auto; }
.footer-claim { margin: 12px 0 14px; max-width: 34ch; }
.footer-claim strong { color: #fff; font-weight: 600; }
.footer-contact { display: grid; gap: 6px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: var(--gold); font-size: 1.15rem; margin-top: 3px; }
.footer-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin-bottom: 11px; }
.footer-links { display: grid; gap: 6px; }
.site-footer a { transition: color 0.2s ease; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding-block: 15px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: var(--on-dark-muted); font-size: 0.88rem;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
/* Auf dem Handy die drei Linklisten nebeneinander statt untereinander -
   das halbiert die Hoehe der Fusszeile. Der Markenblock bleibt breit. */
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .footer-grid > *:first-child { grid-column: 1 / -1; }
}

/* =========================================================
   Unterseiten
   ========================================================= */

/* ---------- Seiten-Hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 80% 40%, #ffffff 0%, var(--studio) 55%, var(--studio-2) 100%);
}
.page-hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  padding-block: clamp(40px, 6vw, 84px);
}
.page-hero-grid > * { min-width: 0; }
.page-hero--compact .page-hero-grid { grid-template-columns: 1fr; padding-block: clamp(36px, 5vw, 64px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: "/"; color: #aab0c2; }
.crumbs a { color: var(--navy); }
.crumbs a:hover { text-decoration: underline; }
.page-title {
  margin: 18px 0 16px;
  font-size: clamp(2.3rem, 4.6vw, 4rem); font-weight: 700; line-height: 0.98;
  text-transform: uppercase; color: var(--navy-900);
}
.page-lead { font-size: clamp(1.1rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 46ch; margin-bottom: 1.8rem; }
.page-hero--compact .page-lead { margin-bottom: 0; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* Zertifikate als Stapel im Hero */
.cert-stack { position: relative; aspect-ratio: 5 / 4; max-width: 560px; width: 100%; margin-inline: auto; }
.cert-stack img {
  position: absolute; width: 46%; border-radius: 3px; background: #fff;
  box-shadow: 0 24px 50px rgba(15, 23, 70, 0.18); transform: rotate(var(--r, 0deg));
}
.cert-stack .cert-back { left: 12%; top: 12%; --r: -6deg; }
.cert-stack .cert-front { right: 12%; top: 3%; --r: 4deg; }
@media (prefers-reduced-motion: no-preference) {
  .is-loaded .cert-stack img { animation: cert-in 1.1s var(--ease) both; }
  .is-loaded .cert-stack .cert-front { animation-delay: 0.25s; }
}
@keyframes cert-in { from { opacity: 0; transform: translateY(34px) rotate(0deg); } }

/* Foto im Hero mit Schwung */
.page-visual { position: relative; }
.page-visual .stage-swoosh { inset: -9% -7% -12% -9%; width: 116%; height: 121%; z-index: 0; }
.page-visual img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
/* freigestelltes Produkt ohne Karte, wie im Hero der Startseite */
.page-visual--bare img { aspect-ratio: 1 / 1; object-fit: contain; border-radius: 0; box-shadow: none; filter: var(--produkt-schatten); }

/* ---------- Nachweise (Qualität) ---------- */
.proof { display: grid; grid-template-columns: 7fr 5fr; gap: 16px; }
.proof-main {
  display: flex; flex-direction: column; border-radius: var(--radius); color: #fff;
  padding: clamp(28px, 3.4vw, 48px);
  background: radial-gradient(120% 100% at 85% 0%, #2a3a9e 0%, var(--navy) 45%, var(--navy-900) 100%);
}
.proof-icon { font-size: 2.6rem; color: var(--gold); }
.proof-main h3 { margin: 14px 0 10px; font-size: clamp(2rem, 3.2vw, 2.8rem); text-transform: uppercase; }
.proof-main p { color: var(--on-dark); max-width: 46ch; }
.proof-data {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0;
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.proof-data dt { font-size: 0.92rem; color: var(--on-dark-muted); }
.proof-data dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: #fff; overflow-wrap: anywhere; }
.proof-main .text-link { color: var(--gold); margin-top: auto; }
.proof-side { display: grid; gap: 16px; }
.proof-card {
  position: relative; display: flex; flex-direction: column; background: var(--studio);
  border-radius: var(--radius); padding: clamp(24px, 2.6vw, 34px); transition: background-color 0.3s ease;
}
.proof-card:hover { background: var(--studio-2); }
.proof-card .proof-icon { color: var(--navy); font-size: 2.1rem; }
.proof-card h3 { margin: 10px 0 8px; font-size: 1.7rem; text-transform: uppercase; color: var(--navy-900); }
.proof-card p { color: var(--muted); }
.proof-card .text-link { margin-top: 14px; }
.stretch-link::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 900px) { .proof { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .proof-data { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Grundsätze ---------- */
.principles { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.principles .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.principle { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 28px 0; border-top: 1px solid var(--line); }
.principle:first-child { border-top: 0; padding-top: 0; }
.principle-icon {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--navy); font-size: 1.8rem; box-shadow: var(--shadow-sm);
}
.principle h3 { margin: 4px 0 8px; font-size: clamp(1.5rem, 2vw, 1.8rem); text-transform: uppercase; color: var(--navy-900); }
.principle p { color: var(--muted); max-width: 52ch; }
@media (max-width: 900px) {
  .principles { grid-template-columns: 1fr; }
  .principles .section-head { position: static; }
}

/* ---------- Vorteile auf Navy ---------- */
.benefit-band {
  color: #fff; padding-block: var(--section-y);
  background: radial-gradient(90% 140% at 15% 0%, #22318f 0%, var(--navy-900) 60%);
}
.benefit-band .section-head h2 { color: #fff; }
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.benefit { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 28px 28px 28px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.benefit:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.14); }
.benefit:nth-child(even) { padding-left: 32px; }
.benefit i { font-size: 2rem; color: var(--gold); }
.benefit h3 { margin-bottom: 6px; font-size: 1.55rem; text-transform: uppercase; }
.benefit p { color: var(--on-dark); }
@media (max-width: 760px) {
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit:nth-child(odd) { border-right: 0; }
  .benefit:nth-child(even) { padding-left: 0; }
}

/* ---------- Kennwerte (Schweißfachbetrieb) ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.fact { background: var(--studio); border-radius: var(--radius); padding: clamp(22px, 2.4vw, 32px); }
.fact dt { font-size: 0.98rem; color: var(--muted); }
.fact dd { margin: 10px 0 0; }
.fact-value { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; color: var(--navy-900); }
.fact-note { display: block; margin-top: 10px; color: var(--muted); }
.fact--accent { background: radial-gradient(120% 100% at 85% 0%, #2a3a9e 0%, var(--navy) 45%, var(--navy-900) 100%); }
.fact--accent dt, .fact--accent .fact-note { color: var(--on-dark); }
.fact--accent .fact-value { color: var(--gold); }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Bild + Text ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split > * { min-width: 0; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media--flat img { aspect-ratio: auto; object-fit: contain; object-position: center; background: #fff; }
.split-media--bare img { aspect-ratio: auto; object-fit: contain; background: none; border-radius: 0; box-shadow: none; }
.split h2 { font-size: clamp(2.1rem, 3.6vw, 3.2rem); text-transform: uppercase; color: var(--navy-900); }
.split-text { margin: 16px 0 26px; font-size: 1.12rem; color: var(--muted); max-width: 52ch; }
.link-list { border-top: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a, .link-list .item {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--navy-900);
}
.link-list .sub { display: block; font-family: var(--font-body); font-weight: 400; font-size: 1rem; color: var(--muted); }
.link-list a i { flex: none; color: var(--navy); transition: transform 0.35s var(--ease); }
.link-list a:hover i { transform: translateX(5px); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-media img { aspect-ratio: 4 / 3; max-height: 460px; }
}

/* ---------- Prüfpunkte & Hinweis ---------- */
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; margin-bottom: clamp(32px, 4vw, 48px); }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.12rem; font-weight: 500; }
.checks i { flex: none; margin-top: 2px; font-size: 1.5rem; color: var(--navy); }
.callout {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; max-width: 860px;
  background: #fff; border-left: 5px solid var(--gold); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 32px); box-shadow: var(--shadow-sm);
}
.callout > i { font-size: 2.2rem; color: var(--navy); }
.callout h3 { margin-bottom: 6px; font-size: 1.6rem; text-transform: uppercase; color: var(--navy-900); }
.callout p { color: var(--muted); }
.callout--wide { max-width: none; margin-top: 16px; }
@media (max-width: 640px) { .checks { grid-template-columns: 1fr; } }

/* ---------- Vorher/Nachher-Regler ---------- */
.compare {
  position: relative; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); background: #fff;
  /* 38 %: Der Schieber steht links neben der Radnabe, damit das AKS-Logo
     von Anfang an ganz auf der sauberen Seite liegt. */
  --pos: 38%;
}
.compare img { display: block; width: 100%; aspect-ratio: 900 / 760; object-fit: cover; }
.compare-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--gold); pointer-events: none; }
.compare-knob {
  position: absolute; top: 72%; left: var(--pos); width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 50%; background: var(--gold); color: var(--navy-900); display: grid; place-items: center;
  font-size: 1.4rem; box-shadow: var(--shadow); pointer-events: none;
}
.compare-tag {
  position: absolute; top: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(15, 23, 70, 0.78);
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.04em;
  text-transform: uppercase; pointer-events: none;
}
.compare-tag--vorher { left: 14px; }
.compare-tag--nachher { right: 14px; }
.compare input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; appearance: none; background: none;
}
.compare input[type="range"]:focus-visible { outline: none; }
.compare:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 3px; }
.compare-hint { margin-top: 14px; color: var(--muted); font-size: 0.98rem; }

/* ---------- Zertifikats-Karten ---------- */
.cert-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert {
  display: flex; flex-direction: column; overflow: hidden; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow 0.3s ease, transform 0.35s var(--ease);
}
.cert:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.cert-thumb { height: 300px; overflow: hidden; padding: 28px 28px 0; background: var(--studio); }
.cert-thumb img { width: 76%; margin-inline: auto; box-shadow: 0 10px 30px rgba(15, 23, 70, 0.14); transition: transform 0.6s var(--ease); }
.cert:hover .cert-thumb img { transform: translateY(-6px); }
.cert-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 28px; }
.cert-body h2 { font-size: 1.6rem; line-height: 1.05; text-transform: uppercase; color: var(--navy-900); }
.cert-body .btn { margin-top: auto; align-self: flex-start; }
.cert-hint { margin-top: 10px; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 980px) { .cert-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cert-list { grid-template-columns: 1fr; } }

/* ---------- Drei Generationen (Über uns) ---------- */
.generations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; }
.generations figure { margin: 0; }
.generations img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 15%; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.generations figure:nth-child(2) { transform: translateY(-28px); }
.generations figcaption { margin-top: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--navy-900); line-height: 1.15; }
.generations figcaption span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 900px) { .generations { max-width: 560px; } .generations figure:nth-child(2) { transform: none; } }

/* ---------- Meilensteine ---------- */
.milestones { display: grid; grid-template-columns: 7fr 5fr; gap: 16px; }
.ms {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 280px; padding: clamp(26px, 3vw, 44px);
}
.ms-year { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.6rem, 6vw, 5.4rem); line-height: 0.85; }
.ms h3 { margin: 14px 0 8px; font-size: clamp(1.6rem, 2.4vw, 2.2rem); text-transform: uppercase; }
.ms p { max-width: 46ch; }
.ms--big {
  grid-row: span 2; min-height: 580px; color: #fff;
  background: radial-gradient(120% 100% at 85% 0%, #2a3a9e 0%, var(--navy) 45%, var(--navy-900) 100%);
}
.ms--big .ms-year { font-size: clamp(5rem, 11vw, 9.5rem); color: var(--gold); }
.ms--big p { color: var(--on-dark); font-size: 1.12rem; }
.ms-swoosh { position: absolute; right: -12%; top: -10%; width: 78%; z-index: -1; opacity: 0.55; overflow: visible; }
.ms--photo { color: #fff; }
.ms--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.9s var(--ease); }
.ms--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 23, 70, 0.15) 0%, rgba(15, 23, 70, 0.9) 78%); }
.ms--photo:hover img { transform: scale(1.04); }
.ms--photo .ms-year { color: var(--gold); }
.ms--photo p { color: #e6e9f7; }
.ms--studio { background: radial-gradient(110% 90% at 80% 20%, #fff 0%, var(--studio) 60%, var(--studio-2) 100%); color: var(--navy-900); }
.ms--studio .ms-year { color: var(--navy); }
.ms--studio p { color: var(--muted); }
@media (max-width: 900px) {
  .milestones { grid-template-columns: 1fr; }
  .ms--big { grid-row: auto; min-height: 420px; }
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 15%; border-radius: var(--radius); background: var(--studio); }
.member h3 { margin-top: 14px; font-size: 1.45rem; color: var(--navy-900); }
.member p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; } .member h3 { font-size: 1.2rem; } }

/* ---------- Werte ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.values--3 { grid-template-columns: repeat(3, 1fr); }
.value { background: var(--studio); border-radius: var(--radius); padding: clamp(22px, 2.4vw, 30px); }
.value i { font-size: 2.2rem; color: var(--navy); }
.value h3 { margin: 12px 0 6px; font-size: 1.55rem; text-transform: uppercase; color: var(--navy-900); }
.value p { color: var(--muted); }
@media (max-width: 980px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* ---------- Stellenanzeige ---------- */
.job { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.job-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 32px;
  padding: clamp(24px, 3vw, 40px); color: #fff;
  background: radial-gradient(120% 140% at 90% 0%, #2a3a9e 0%, var(--navy) 45%, var(--navy-900) 100%);
}
.job-head h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); text-transform: uppercase; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tags li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: var(--on-dark); font-size: 0.95rem; }
.job-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); padding: clamp(24px, 3vw, 40px); }
.job-cols h4 { margin-bottom: 12px; font-size: 1.45rem; text-transform: uppercase; color: var(--navy-900); }
.job-cols li { position: relative; padding: 5px 0 5px 22px; color: var(--ink); }
.job-cols li::before { content: ""; position: absolute; left: 0; top: 15px; width: 10px; height: 3px; background: var(--gold); border-radius: 2px; }
@media (max-width: 900px) { .job-cols { grid-template-columns: 1fr; } }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1040px) { .quad { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .quad { grid-template-columns: 1fr; } }
.duo-card { display: flex; flex-direction: column; background: var(--studio); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.duo-card i { font-size: 2.2rem; color: var(--navy); }
.duo-card h3 { margin: 12px 0 8px; font-size: clamp(1.6rem, 2.4vw, 2rem); text-transform: uppercase; color: var(--navy-900); }
.duo-card p { color: var(--muted); max-width: 52ch; }
.duo-card .text-link { margin-top: 18px; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* ---------- Formulare ---------- */
.form-card { background: #fff; border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow-sm); }
.form-card--outline { box-shadow: none; border: 1px solid var(--line); }
.form-card h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); text-transform: uppercase; color: var(--navy-900); }
.form-card > p { margin: 8px 0 24px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.98rem; color: var(--ink); }
.field .req { color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #8a93a8; border-radius: var(--radius); padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
/* Avada faerbt Formularfelder grau ein und gewinnt gegen ".field input".
   Mit "html body" davor sind wir staerker, ohne !important zu brauchen. */
html body .field input, html body .field select, html body .field textarea { color: var(--ink); }
html body .field input::placeholder, html body .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(28, 42, 127, 0.18); }
.field input[type="file"] { padding: 10px; background: var(--studio); }
.field .hint { font-size: 0.9rem; color: var(--muted); }
.check { grid-column: 1 / -1; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.96rem; color: var(--ink); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.check a { color: var(--navy); text-decoration: underline; }
[hidden] { display: none !important; }
.form-legal { grid-column: 1 / -1; margin: 0; font-size: 0.94rem; line-height: 1.55; color: var(--muted); }
.form-legal a { color: var(--navy); text-decoration: underline; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.form-foot small { color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: var(--radius); background: #fff6d6; border-left: 4px solid var(--gold); color: var(--ink); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-grid > * { min-width: 0; }
.info-card { background: radial-gradient(120% 100% at 85% 0%, #2a3a9e 0%, var(--navy) 45%, var(--navy-900) 100%); color: #fff; border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.info-card h2 { font-size: 1.8rem; text-transform: uppercase; margin-bottom: 18px; }
.info-list { display: grid; gap: 14px; }
.info-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; color: var(--on-dark); }
.info-list i { font-size: 1.4rem; color: var(--gold); margin-top: 2px; }
.info-list a { color: #fff; font-weight: 600; }
.info-list a:hover { color: var(--gold); }
.contact-side { display: grid; gap: 16px; }
.contact-side .person { grid-template-columns: 40% 1fr; }
.contact-side .person img { min-height: 260px; }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.people-card { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.people-card img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: center 15%; }
.people-card h3 { font-size: 1.3rem; color: var(--navy-900); }
.people-card .area { font-size: 0.95rem; color: var(--muted); line-height: 1.4; }

.map-box { position: relative; aspect-ratio: 16 / 7; min-height: 320px; border-radius: var(--radius); overflow: hidden; background: var(--studio-2); display: grid; place-items: center; text-align: center; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { max-width: 460px; padding: 24px; }
.map-consent i { font-size: 2.6rem; color: var(--navy); }
.map-consent p { margin: 10px 0 18px; color: var(--muted); font-size: 0.98rem; }
.map-consent .btn { margin: 4px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact-side .person { grid-template-columns: 1fr; } }

/* ---------- WhatsApp-Karte ---------- */
.wa-card {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-left: 5px solid #25d366;
  border-radius: var(--radius); padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--shadow-sm);
}
.wa-card > i { font-size: 2.4rem; color: #25d366; }
.wa-card h3 { font-size: 1.5rem; text-transform: uppercase; color: var(--navy-900); }
.wa-card p { margin: 8px 0 16px; color: var(--muted); }
.wa-card .hint { margin: 10px 0 0; font-size: 0.95rem; }
/* Kleingedrucktes: der rechtliche Hinweis soll lesbar bleiben, aber nicht
   mit der eigentlichen Aussage der Karte konkurrieren. */
.kleingedruckt { margin: 12px 0 0; font-size: 0.82rem; line-height: 1.45; color: var(--muted); }
.wa-card .kleingedruckt { margin-bottom: 0; }

/* ---------- Zweispaltiger Fließtext ---------- */
.text-cols { columns: 2; column-gap: clamp(32px, 4vw, 64px); }
.text-cols p { break-inside: avoid; margin-bottom: 1.1rem; font-size: 1.12rem; color: var(--muted); }
@media (max-width: 760px) { .text-cols { columns: 1; } }

/* ---------- Anfahrt ---------- */
.plan-cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.map-box--large { min-height: 420px; aspect-ratio: 4 / 3; }
.minor-head { font-size: 1.6rem; text-transform: uppercase; color: var(--navy-900); margin-bottom: 16px; }
.info-list--light li { color: var(--ink); }
.info-list--light i { color: var(--navy); }
.info-list--light a { color: var(--navy); font-weight: 600; }
.info-list--light a:hover { text-decoration: underline; }
@media (max-width: 900px) { .plan-cols { grid-template-columns: 1fr; } .map-box--large { aspect-ratio: 4 / 3; min-height: 320px; } }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 78ch; }
.legal h2 { margin: clamp(32px, 4vw, 48px) 0 12px; font-size: clamp(1.7rem, 2.6vw, 2.2rem); text-transform: uppercase; color: var(--navy-900); }
.legal h3 { margin: 26px 0 8px; font-size: 1.3rem; color: var(--navy-900); }
.legal p { margin-bottom: 1rem; color: var(--ink); }
.legal ul { margin: 0 0 1rem; padding-left: 0; }
.legal ul li { position: relative; padding: 4px 0 4px 22px; color: var(--ink); }
.legal ul li::before { content: ""; position: absolute; left: 0; top: 15px; width: 10px; height: 3px; background: var(--gold); border-radius: 2px; }
.legal dl { display: grid; grid-template-columns: minmax(180px, auto) 1fr; gap: 6px 24px; margin: 0 0 1.4rem; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; font-weight: 600; }
.legal a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.legal .stand { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.legal-note {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin: 24px 0;
  background: #fff6d6; border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 18px 22px;
}
.legal-note i { font-size: 1.6rem; color: var(--navy); }
.legal-note p { margin: 0; font-size: 0.98rem; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; gap: 2px 0; } .legal dd { margin-bottom: 10px; } }

/* ---------- Rechtstexte Ende ---------- */
/* ---------- Bausteine Produktseiten ---------- */
.checklist-dark { display: grid; gap: 10px; margin: 0 0 26px; }
.checklist-dark li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.08rem; font-weight: 500; color: var(--ink); }
.checklist-dark i { flex: none; margin-top: 2px; font-size: 1.4rem; color: var(--navy); }

.branchen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(28px, 3vw, 40px); }
.branchen li {
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--navy-900);
}

.steps-list { display: grid; gap: 0; margin-top: 8px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps-list li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps-num {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.2;
  color: var(--navy); /* Gold hätte auf hellem Grund nur 1,98:1 */
}
.steps-num::after { content: ""; display: block; width: 26px; height: 3px; margin-top: 8px; background: var(--gold); border-radius: 2px; }
.steps-list strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--navy-900); }
.steps-list .sub { display: block; margin-top: 2px; color: var(--muted); }

.media-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.media-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media-card-body { padding: clamp(22px, 2.4vw, 32px); }
.media-card h3 { font-size: clamp(1.5rem, 2.1vw, 1.9rem); text-transform: uppercase; color: var(--navy-900); }
.media-card p { margin-top: 10px; color: var(--muted); }
.media-card--flat img { aspect-ratio: 4 / 3 !important; }
.media-card--product img { aspect-ratio: 1 / 1; object-fit: contain; background: #fff; padding: clamp(18px, 2.4vw, 32px) clamp(18px, 2.4vw, 32px) 0; }

/* ---------- Partnerkarten ---------- */
.partner-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.partner-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(24px, 2.8vw, 36px);
  border-top: 4px solid var(--gold); transition: box-shadow 0.3s ease, transform 0.35s var(--ease);
}
.partner-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.partner-logo {
  height: 64px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.partner-logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
@media (max-width: 560px) { .partner-logo { height: 62px; } }
.partner-tag { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.partner-card h2 { margin: 8px 0 12px; font-size: clamp(1.6rem, 2.2vw, 2rem); text-transform: uppercase; color: var(--navy-900); }
.partner-card p { color: var(--muted); }
.partner-card .text-link { margin-top: 18px; }

/* ---------- Danke ---------- */
.thanks { text-align: center; max-width: 640px; margin-inline: auto; }
.thanks i { font-size: 4rem; color: var(--navy); }
.thanks .page-lead { margin-inline: auto; }
.thanks .hero-actions { justify-content: center; }

/* ---------- Scroll-Einblendung ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .draw-path { stroke-dashoffset: 0; }
}

/* ============================================================
   EINWILLIGUNG (Cookie-Banner)
   Erscheint erst, wenn keine gespeicherte Entscheidung vorliegt.
   „Alle akzeptieren" und „Nur notwendige" sind bewusst gleich
   groß und gleich auffällig – das verlangen die Aufsichtsbehörden.
   ============================================================ */
.consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 200;
  padding: var(--gutter);
  display: flex;
  justify-content: center;
}

.consent::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 70, 0.35);
  z-index: -1;
}

.consent-box {
  width: min(760px, 100%);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  padding: clamp(20px, 3vw, 32px);
  max-height: calc(100vh - 2 * var(--gutter));
  overflow-y: auto;
}

.consent-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.15;
  color: var(--navy-900);
  margin: 0 0 8px;
}

.consent-text {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 18px;
  max-width: 62ch;
}

.consent-text a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* Zweite Ebene: die einzelnen Zwecke */
.consent-optionen {
  border-top: 1px solid var(--line);
  margin: 0 0 18px;
  padding-top: 14px;
  display: grid;
  gap: 12px;
}

.consent-option {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
}

.consent-option input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.consent-option input:disabled { cursor: default; }
.consent-option strong { display: block; color: var(--ink); font-size: 0.98rem; }

/* Schaltflächen: die beiden Hauptknöpfe teilen sich eine Zeile und
   sind identisch dimensioniert. */
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.consent-btn {
  flex: 1 1 220px;
  justify-content: center;
  min-height: 52px;
  font-size: 1rem;
}

/* Zustimmen und Ablehnen sehen absichtlich gleich aus. Eine gelbe gegen eine
   blasse Schaltfläche gilt Aufsichtsbehörden und Gerichten als Nudging, das die
   Freiwilligkeit der Einwilligung in Frage stellt (DSK-Orientierungshilfe
   Telemedien; VG Hannover, 19.03.2025, 10 A 5385/22). Farbe, Größe, Schrift und
   Kontrast sind deshalb identisch – bitte nicht „schöner" machen. */
.consent-btn--ja,
.consent-btn--nein {
  background: var(--paper);
  color: var(--navy-900);
  border-color: var(--navy);
}

.consent-btn--ja:hover,
.consent-btn--nein:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.consent-mehr {
  flex: 0 0 auto;
  background: none;
  border: 0;
  padding: 8px 4px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--navy);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.consent-mehr:hover { text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

@media (max-width: 560px) {
  .consent-btn { flex-basis: 100%; }
  .consent-actions { flex-direction: column; align-items: stretch; }
  .consent-mehr { text-align: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .consent-box { animation: consent-auf 0.4s var(--ease) both; }
  @keyframes consent-auf {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }
}

/* ============================================================
   DATENTABELLE (technische Daten, z. B. S0 / S0E)
   Auf schmalen Bildschirmen scrollt sie waagerecht statt zu brechen.
   ============================================================ */
.datentabelle-rahmen { overflow-x: auto; margin: 0 0 14px; }

.datentabelle {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.datentabelle caption {
  text-align: left;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0 0 10px;
}

.datentabelle th,
.datentabelle td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.datentabelle thead th {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--navy-900);
  border-bottom: 2px solid var(--navy);
  white-space: nowrap;
}

.datentabelle tbody th {
  font-weight: 500;
  color: var(--muted);
  width: 42%;
}

.datentabelle tbody td { color: var(--ink); }
.datentabelle tbody tr:last-child th,
.datentabelle tbody tr:last-child td { border-bottom: 0; }
.datentabelle tbody tr:hover th,
.datentabelle tbody tr:hover td { background: var(--studio); }

.datentabelle .th-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 2px;
}

/* Formularmeldungen vom Server */
.form-status--fehler { background: #fdeaea; border-left-color: #c0392b; }
.callout--erfolg { border-color: #2e7d32; background: #f1f8f2; }
.callout--erfolg > i { color: #2e7d32; }
