/* ==========================================================================
   Fa-1Stein — Design System
   Deutsches Industrial Engineering + moderner Meisterbetrieb.
   Ruhig, präzise, hochwertig. Keine Verläufe, kein Glassmorphism.
   ========================================================================== */

:root {
  /* Farben: tiefes Anthrazit-Navy statt reinem Schwarz, geschärfter
     Kupfer/Bronze-Akzent — bewusst distinktiver als Standard-"Handwerker-Orange". */
  --ink: #0c0f14;
  --ink-2: #12161d;
  --ink-soft: #191f28;
  --ink-line: rgba(255, 255, 255, 0.07);
  --steel: #2a3f50;
  --steel-2: #47637a;
  --copper: #a5651a;
  --copper-2: #dc9a4f;
  /* dunklere Variante für Fließtext/Links auf hellem Grund (WCAG AA, >=4.5:1) */
  --copper-text: #8f5416;
  --bg: #f5f3ee;
  --surface: #ffffff;
  --border: #e1ded5;
  --border-strong: #cac5b8;
  --muted: #5a6169;
  /* auf mind. 4.5:1 gegen --bg abgestimmt (WCAG AA für Fließtext) */
  --muted-2: #666c73;
  --ok: #3d6b4c;

  /* Typografie: bewusst Systemfont-Stack statt externer Web-Fonts (Google
     Fonts o. ä.) — keine Drittanbieter-Anfrage, kein Font-Ladeverzögerung,
     kein zusätzlicher Datenschutzhinweis nötig ("privacy by design"). */
  --font-body: -apple-system, "Segoe UI", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;

  /* Radius / Schatten — bewusst zurückhaltend */
  --radius: 2px;
  --shadow-sm: 0 1px 2px rgba(18, 22, 27, 0.06);
  --shadow-md: 0 4px 16px rgba(18, 22, 27, 0.08);
  --shadow-lg: 0 16px 48px rgba(9, 12, 16, 0.28);

  /* Bewegung: hochwertiges, konsistentes Easing statt Standard-ease */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Raster */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  color-scheme: light;
}

/* ---------------------------------- Reset -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); }
h4 { font-size: 1.05rem; }
p { color: var(--muted); }
p + p { margin-top: 1em; }

.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 62ch; }
/* Kontextuelle Inline-Links innerhalb von Fließtext (interne Verlinkung
   zwischen Leistungsseiten) – ohne eigene Klasse sonst unsichtbar, da der
   globale Reset a-Tags auf color:inherit/keine Unterstreichung setzt. */
.lede a, .content-section p a { color: var(--copper-text); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(143, 84, 22, 0.4); }
.lede a:hover, .content-section p a:hover { text-decoration-color: currentColor; }
.section--dark .lede a, .hero .lede a { color: var(--copper-2); text-decoration-color: rgba(220, 154, 79, 0.45); }

/* Sichtbarer Fokus-Zustand überall */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------------------------------- Layout -------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark p { color: #b7bdc4; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper-text);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 1.4em;
  height: 2px;
  background: var(--copper);
  display: inline-block;
}
.section--dark .eyebrow { color: var(--copper-2); }
.eyebrow--on-dark { color: var(--copper-2); }
.eyebrow--on-dark::before { background: var(--copper-2); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--between { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }

/* ---------------------------------- Buttons -------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95rem 1.7rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-2px); }
.section--dark .btn-secondary { color: #fff; border-color: #454e57; }
.section--dark .btn-secondary:hover { border-color: #fff; }
.hero .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.4); }
.hero .btn-secondary:hover { border-color: #fff; }
.btn-ghost { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--border-strong); border-radius: 0; padding: 0.2rem 0; }
.btn-ghost:hover { border-color: var(--copper-text); color: var(--copper-text); }
.btn-block { width: 100%; justify-content: center; }

/* ---------------------------------- Header -------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 243, 238, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

/* Transparent, über dem dunklen Hero schwebend — nur Startseite. Wechselt
   beim Scrollen auf den regulären hellen Header (main.js setzt .is-scrolled). */
.site-header--transparent {
  position: fixed;
  inset-inline: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.site-header--transparent .nav-link,
.site-header--transparent .brand,
.site-header--transparent .header-phone,
.site-header--transparent .nav-toggle {
  color: #fff;
}
.site-header--transparent .nav-toggle { border-color: rgba(255, 255, 255, 0.35); }
.site-header--transparent.is-scrolled {
  background: rgba(245, 243, 238, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.site-header--transparent.is-scrolled .nav-link,
.site-header--transparent.is-scrolled .brand,
.site-header--transparent.is-scrolled .header-phone {
  color: var(--ink);
}
.site-header--transparent.is-scrolled .nav-toggle { border-color: var(--border-strong); }
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}
.brand { display: flex; align-items: center; }
.brand__mark { height: 32px; width: auto; flex-shrink: 0; }
.brand__mark svg { height: 100%; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav > ul { display: flex; align-items: center; gap: 0.15rem; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
}
.nav-link:hover { color: var(--copper-text); }
.has-mega { position: relative; }
.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, 90vw);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 1.25rem;
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem;
  margin-top: 0.5rem;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega { display: grid; }
.mega a { display: block; padding: 0.7rem 0.8rem; border-radius: var(--radius); }
.mega a:hover { background: var(--bg); }
.mega a strong { display: block; font-size: 0.92rem; font-weight: 600; }
.mega a small { display: block; color: var(--muted-2); font-size: 0.8rem; margin-top: 0.15rem; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.header-phone { display: none; }
@media (min-width: 1000px) { .header-phone { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.9rem; font-weight: 500; white-space: nowrap; } }
.header-phone svg { width: 16px; height: 16px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}
@media (max-width: 940px) {
  .main-nav { display: none; }
  .header-phone { display: none !important; }
  .nav-toggle { display: inline-flex; }
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.mobile-nav.is-open { display: block; }
.mobile-nav .container { padding-block: 1rem; }
.mobile-nav details { border-bottom: 1px solid var(--border); }
.mobile-nav summary { padding: 0.9rem 0.1rem; font-weight: 600; display: flex; justify-content: space-between; }
.mobile-nav a { display: block; padding: 0.75rem 0.1rem; font-weight: 500; }
.mobile-nav .mobile-sub a { padding-left: 1rem; color: var(--muted); font-weight: 400; }
.mobile-nav__cta { padding-block: 1rem; }

/* ---------------------------------- Hero -------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  min-height: min(100vh, 920px);
  display: flex;
  align-items: center;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
  padding-block: clamp(6.5rem, 12vw, 9rem) clamp(3.5rem, 8vw, 6rem);
  width: 100%;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__copy { max-width: 40rem; }
.hero__title {
  color: #fff;
  margin-bottom: 1.3rem;
  font-size: clamp(2.6rem, 6.4vw, 4.9rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero .lede { color: #c3c8cd; margin-bottom: 2.1rem; font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
.hero__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 2.75rem; }
.hero__meta { display: flex; gap: 1.75rem; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.8rem; color: #9aa2a9; padding-top: 1.75rem; border-top: 1px solid var(--ink-line); }
.hero__meta strong { color: #fff; display: block; font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; }
.hero__art { position: relative; will-change: transform; min-height: 0; }
.hero__art svg { width: 100%; height: auto; }
@media (max-width: 900px) { .hero__art { max-width: 420px; margin-inline: auto; height: auto !important; } }

/* Gerahmte Hero-Illustration: streckt sich über die volle Höhe der Textspalte
   (statt frei in der Mitte zu "schweben") – Ober-/Unterkante fluchten mit
   Eyebrow oben und Meta-Zeile unten, Bildausschnitt per object-fit: cover. */
.hero__art-frame {
  position: relative;
  height: 100%;
  min-height: 320px;
  border: 1px solid var(--ink-line);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
}
.hero__art-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(220, 154, 79, 0.18);
  pointer-events: none;
}
.hero__art-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (max-width: 900px) { .hero__art-frame img { height: auto; object-fit: initial; } }
.hero__art-frame__dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--copper-2); box-shadow: 0 0 0 4px rgba(220, 154, 79, 0.18); pointer-events: none; }
.hero__art-frame__dot--tl { top: 14px; left: 14px; }
.hero__art-frame__dot--br { bottom: 14px; right: 14px; }

/* Blueprint-Liniennetz — durchgehendes Motiv, auch auf dem Schluss-CTA genutzt */
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 60% 55% at 28% 32%, black 0%, transparent 72%);
  pointer-events: none;
}

.hero__scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8890989c;
}
.hero__scroll-cue span {
  width: 1px;
  height: 22px;
  background: linear-gradient(#dc9a4f, transparent);
  animation: scroll-cue 1.8s var(--ease) infinite;
}
@keyframes scroll-cue {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}
@media (max-width: 700px), (max-height: 700px) { .hero__scroll-cue { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero__scroll-cue span { animation: none; } }

/* Mask-Reveal für die Hero-Überschrift. Bewusst als autostartende CSS-
   @keyframes-Animation umgesetzt statt IntersectionObserver-getriggert:
   die H1 ist immer sofort im Viewport (kein Scrollen nötig) und darf unter
   keinen Umständen von JavaScript abhängen, um sichtbar zu werden. */
@keyframes mask-reveal {
  from { clip-path: inset(0 0 100% 0); opacity: 0; }
  to { clip-path: inset(0 0 0% 0); opacity: 1; }
}
[data-reveal-mask] { animation: mask-reveal 0.9s var(--ease) 0.1s both; }
@media (prefers-reduced-motion: reduce) { [data-reveal-mask] { animation: none; clip-path: none; opacity: 1; } }

/* ---------------------------------- Trust strip -------------------------------- */
.trust-strip { background: var(--surface); border-bottom: 1px solid var(--border); }
.trust-strip__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding-block: 1.1rem;
}
.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1.5rem 0.5rem 0;
  margin-right: 1.5rem;
  border-right: 1px solid var(--border);
  flex: 1 1 auto;
  min-width: 200px;
}
.trust-strip__item:last-child { border-right: none; margin-right: 0; }
.trust-strip__mark { width: 18px; height: 18px; flex-shrink: 0; color: var(--copper-text); }
.trust-strip__item strong { display: block; font-size: 0.9rem; font-weight: 600; }
.trust-strip__item small { display: block; font-size: 0.78rem; color: var(--muted-2); }
@media (max-width: 900px) {
  .trust-strip__item { border-right: none; flex-basis: 46%; }
}
@media (max-width: 560px) { .trust-strip__item { flex-basis: 100%; } }

/* ---------------------------------- Cards -------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }

.service-card__icon { width: 44px; height: 44px; color: var(--copper); margin-bottom: 1.1rem; }
.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { font-size: 0.95rem; }
.service-card__link { margin-top: auto; padding-top: 1.25rem; font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.4em; }
.service-card__link svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.card:hover .service-card__link svg { transform: translateX(3px); }

.category-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.category-tag--industrie { color: var(--steel); border-color: var(--steel-2); }
.category-tag--shk { color: var(--copper-text); border-color: var(--copper-2); }

/* ---------------------------------- Bento (Leistungen, Startseite) -------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.bento__item {
  background: var(--surface);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s var(--ease);
  min-height: 260px;
}
.bento__item:hover { background: #faf9f6; }
.bento__item--lg { grid-column: span 2; grid-row: span 2; min-height: 100%; }
.bento__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: auto; padding-bottom: 1.5rem; }
.bento__icon { width: 40px; height: 40px; color: var(--copper-text); }
.bento__item--lg .bento__icon { width: 56px; height: 56px; }
.bento__item h3 { margin-bottom: 0.5rem; }
.bento__item--lg h3 { font-size: clamp(1.5rem, 2vw, 1.9rem); }
.bento__item p { font-size: 0.95rem; }
.bento__link { margin-top: 1.25rem; font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.4em; color: var(--ink); }
.bento__link svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.bento__item:hover .bento__link svg { transform: translateX(4px); }

/* Bildhinterlegte Galvanik-Kachel (bewusst nur die featured Karte, keine
   Foto-Behauptung anderswo) – dunkler Verlauf sichert Textkontrast. */
.bento__item--photo {
  position: relative;
  color: #fff;
  background-image: linear-gradient(190deg, rgba(12, 15, 20, 0.12) 0%, rgba(12, 15, 20, 0.62) 58%, rgba(12, 15, 20, 0.93) 100%), url("/assets/img/galvanik-anlage.jpg");
  background-size: cover;
  background-position: center;
}
.bento__item--photo:hover {
  background-image: linear-gradient(190deg, rgba(12, 15, 20, 0.12) 0%, rgba(12, 15, 20, 0.62) 58%, rgba(12, 15, 20, 0.93) 100%), url("/assets/img/galvanik-anlage.jpg");
}
.bento__item--photo .category-tag { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.bento__item--photo .bento__icon { color: var(--copper-2); filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45)); }
.bento__item--photo p { color: #d6dae0; }
.bento__item--photo .bento__link { color: #fff; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__item--lg { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .bento__item--lg { grid-column: span 1; }
}

/* ---------------------------------- Use-Case-Grid (Problemlösung) -------------------------------- */
.usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.usecase { background: var(--surface); padding: clamp(1.5rem, 2.2vw, 2rem); }
.usecase__icon { width: 32px; height: 32px; color: var(--copper-text); margin-bottom: 1rem; display: block; }
.usecase h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.usecase p { font-size: 0.92rem; margin: 0; }
@media (max-width: 900px) { .usecase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .usecase-grid { grid-template-columns: 1fr; } }

/* ---------------------------------- Referenzen / Client list -------------------------------- */
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.client-grid__item {
  background: var(--surface);
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  min-height: 96px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
}
@media (max-width: 900px) { .client-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .client-grid { grid-template-columns: 1fr; } }

/* ---------------------------------- Referenz-Marquee (Startseite) -------------------------------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  padding: 1.5rem 2.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--muted-2);
  white-space: nowrap;
  border-right: 1px solid var(--border);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: 100%; }
}

/* ---------------------------------- CTA section -------------------------------- */
.cta-section {
  background: var(--steel);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-section h2 { color: #fff; margin-bottom: 0.5rem; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.cta-section p { color: #d3dbe1; margin: 0; max-width: 42ch; }
.cta-section__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.cta-section .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-section .btn-secondary:hover { border-color: #fff; }

/* ---------------------------------- Breadcrumbs -------------------------------- */
.breadcrumbs { padding-block: 1rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.82rem; color: var(--muted-2); }
.breadcrumbs a { color: var(--muted-2); }
.breadcrumbs a:hover { color: var(--copper-text); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: var(--border-strong); }
.breadcrumbs li[aria-current] { color: var(--ink); font-weight: 500; }

/* ---------------------------------- Content sections -------------------------------- */
.content-section { max-width: 72ch; }
/* .checklist ist bewusst kontextunabhängig (kein .content-section-Zwang),
   damit sie auch außerhalb (z. B. in dunklen Sections) korrekt erbt/skaliert. */
.checklist { display: grid; gap: 0.7rem; margin-top: 1rem; }
.checklist li { display: flex; gap: 0.6em; font-size: 0.98rem; }
.checklist svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--copper-text); margin-top: 0.15em; }
.section--dark .checklist svg, .hero .checklist svg { color: var(--copper-2); }

.process-list { display: grid; gap: 0; counter-reset: step; }
.process-list__item { display: grid; grid-template-columns: 3rem 1fr; gap: 1.25rem; padding-block: 1.25rem; border-top: 1px solid var(--border); }
.process-list__item:last-child { border-bottom: 1px solid var(--border); }
.process-list__num { font-family: var(--font-mono); font-weight: 600; color: var(--copper-text); font-size: 1.1rem; }
.process-list__item h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.process-list__item p { font-size: 0.95rem; margin: 0; }

/* ---------------------------------- FAQ -------------------------------- */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  padding: 1.15rem 0.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex-shrink: 0; width: 20px; height: 20px; transition: transform 0.15s ease; color: var(--copper); }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item p { padding-bottom: 1.15rem; font-size: 0.97rem; max-width: 62ch; }

/* ---------------------------------- Forms -------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 0.88rem; font-weight: 600; }
.form-field .optional { font-weight: 400; color: var(--muted-2); }
.form-field input, .form-field textarea, .form-field select {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  background: var(--surface);
  font-size: 0.95rem;
  width: 100%;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--copper); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--muted-2); }
.form-status { padding: 1rem 1.1rem; border-radius: var(--radius); font-size: 0.92rem; display: none; }
.form-status.is-visible { display: block; }
.form-status--ok { background: #eaf3ec; color: var(--ok); border: 1px solid #cfe3d4; }
.form-status--error { background: #fbeceb; color: #9c3b32; border: 1px solid #f2d3d0; }

/* ---------------------------------- Footer -------------------------------- */
.site-footer { background: var(--ink); color: #c7ccd1; }
.site-footer .footer-heading { color: #fff; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.9rem; font-family: var(--font-mono); }
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid #232b34;
}
.footer-brand .brand--footer { color: #fff; margin-bottom: 0.85rem; }
.brand__mark--sm { height: 24px; width: auto; }
.footer-claim { color: #9aa1a8; font-size: 0.88rem; max-width: 26ch; margin: 0; }
.footer-nav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-nav-grid a { display: block; padding-block: 0.3rem; font-size: 0.88rem; color: #a7adb3; }
.footer-nav-grid a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; }
.footer-contact a { color: #d7dade; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 0.5em; }
.footer-contact a:hover { color: #fff; }
.footer-contact a svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--copper-2); }
.footer-contact__cta { margin-top: 0.5rem; color: #fff !important; border-color: #3a4048; }
.footer-contact__cta:hover { border-color: #fff; }
.footer-bottom { border-top: 1px solid #202730; padding-block: 1.1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.78rem; color: #6f767d; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-contact { grid-column: span 2; } }
@media (max-width: 620px) { .footer-top { grid-template-columns: 1fr; } .footer-contact { grid-column: auto; } .footer-nav-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------- Utility -------------------------------- */
.mt-0 { margin-top: 0 !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
/* Reveal-Einblendung als autoplay @keyframes statt transition+JS-Klasse:
   dieselbe Robustheitslogik wie beim Hero-H1 (siehe [data-reveal-mask] oben) –
   Sichtbarkeit von Content darf nie von JS/IntersectionObserver-Timing abhängen.
   Die Verzögerung kommt weiterhin gestaffelt per inline animation-delay. */
[data-reveal] { animation: reveal-in 0.6s var(--ease) both; }
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { [data-reveal] { animation: none; opacity: 1; transform: none; } }

[data-parallax] { transition: transform 0.2s ease-out; }
@media (prefers-reduced-motion: reduce) { [data-parallax] { transition: none; } }

.icon-check { width: 1em; height: 1em; }

.error-page { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }
.error-page .eyebrow { color: var(--copper); }
