/* ============================================================
   3MZ e.U. – Design System "Engineered Clarity"
   Farben, Schrift & Logo aus der bestehenden 3MZ-Homepage:
   Navy #1f3855 · Akzent #38bdf8 · Fläche #f9fafb · Text #111827
   Schrift: Roboto (lokal ausgeliefert)
   ============================================================ */

/* ==== Fonts (lokal, wie im Original) ==== */
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==== Design-Tokens ==== */
:root {
  /* Markenfarben (Original-Homepage) */
  --navy: #1f3855;          /* Primärfarbe, Logo-Hintergrund */
  --navy-deep: #16283e;     /* Verlaufspartner */
  --navy-ink: #122236;      /* Footer, dunkelste Fläche */
  --accent: #38bdf8;        /* Signalfarbe */
  --accent-strong: #0369a1; /* Links/Akzenttext auf hell (kontraststark) */
  --accent-tint: #e8f6fd;   /* getönte Akzentfläche */

  /* Flächen & Text */
  --paper: #f9fafb;         /* Original-BG */
  --surface: #ffffff;
  --ink: #111827;           /* Original-Textfarbe */
  --muted: #55647a;
  --line: #e4eaf1;
  --line-navy: rgba(255, 255, 255, 0.09);

  /* Schatten */
  --shadow-sm: 0 1px 2px rgba(19, 38, 60, 0.05), 0 2px 8px rgba(19, 38, 60, 0.05);
  --shadow-md: 0 2px 6px rgba(19, 38, 60, 0.06), 0 14px 34px rgba(19, 38, 60, 0.1);
  --shadow-lg: 0 4px 14px rgba(19, 38, 60, 0.08), 0 28px 64px rgba(19, 38, 60, 0.16);

  /* Geometrie */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --font: 'Roboto', Arial, sans-serif;
  --header-h: 76px;
}

/* ==== Basis ==== */
* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-strong); }
a:hover { color: #075d8d; }

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin-bottom: 0; color: var(--muted); }

::selection { background: rgba(56, 189, 248, 0.28); }

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

/* ==== Utilities ==== */
.shell {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px 18px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 200;
}
.skip-link:focus { top: 12px; }

/* Kicker über den Überschriften */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-strong);
  line-height: 1.5;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--accent);
  flex: none;
}
.eyebrow-bright { color: #9adcf7; }

.section { padding: 96px 0; }
.section-compact { padding: 64px 0; }
.section-muted { background: var(--paper); }

.section-heading { max-width: 720px; margin-bottom: 52px; }
.section-heading h2 { margin: 16px 0 18px; }
.section-heading p { font-size: 1.08rem; }

/* ==== Buttons ==== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.button span[aria-hidden] { transition: transform 0.2s ease; }
.button:hover span[aria-hidden] { transform: translate(2px, -2px); }

.button-primary {
  background: var(--accent);
  color: #0b2537;
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.32);
}
.button-primary:hover {
  background: #6fd3fb;
  color: #0b2537;
  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.42);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.button-outline:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.button-dark {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.button-dark:hover { background: #2a4a70; color: #fff; }

.button-light { background: #fff; color: var(--navy); }
.button-light:hover { background: var(--accent); color: #0b2537; }

.button-quiet {
  border-color: var(--line);
  color: var(--navy);
  background: #fff;
}
.button-quiet:hover { border-color: #b9c8d6; background: var(--paper); }

.inline-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-strong);
  text-decoration: none;
  border-bottom: 2px solid rgba(56, 189, 248, 0.45);
  padding-bottom: 4px;
}
.inline-action:hover { border-bottom-color: var(--accent); }
.inline-action span[aria-hidden] { transition: transform 0.2s ease; }
.inline-action:hover span[aria-hidden] { transform: translateX(3px); }

/* Technologie-Chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   HEADER – Navy wie das Original, Logo geht nahtlos auf
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);           /* exakt Logo-Hintergrund */
  border-bottom: 1px solid var(--line-navy);
  box-shadow: 0 4px 24px rgba(10, 22, 37, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  min-height: var(--header-h);
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  color: #fff;
  flex: none;
}
.brand img {
  display: block;
  height: 46px;
  width: auto;
  border-radius: 6px;
}
.brand img:not([hidden]) + .brand-fallback { display: none; }
.brand-fallback {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}
.brand-fallback .brand-dot { color: var(--accent); }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.1rem);
  margin-left: auto;
}
.main-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  padding: 6px 2px;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: right 0.25s ease;
}
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { right: 0; }
.main-nav a[aria-current] { color: #fff; font-weight: 700; }
.main-nav a[aria-current]::after { right: 0; }

.header-cta {
  background: var(--accent);
  color: #0b2537;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.3);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.header-cta:hover {
  background: #6fd3fb;
  color: #0b2537;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(56, 189, 248, 0.4);
}

/* ============================================================
   HERO – Navy-Verlauf mit Blueprint-Raster & Schaltplan-Grafik
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(56, 189, 248, 0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(56, 189, 248, 0.08), transparent 55%),
    linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
}
/* Blueprint-Raster */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 90% at 60% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding: 88px 0 150px;
}
.hero-copy { max-width: 640px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(154, 220, 247, 0.35);
  background: rgba(56, 189, 248, 0.1);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #bfe9fb;
}
.signal {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.hero h1 {
  color: #fff;
  margin: 26px 0 22px;
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  letter-spacing: -0.025em;
}
.hero h1 em, .page-hero h1 em, .cta-band h2 em {
  font-style: normal;
  color: var(--accent);
}
.hero-lead {
  max-width: 560px;
  font-size: 1.18rem;
  line-height: 1.7;
  color: #c9d8e6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}
/* Schaltplan-Grafik */
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art svg { width: 100%; max-width: 520px; height: auto; display: block; }
.flow {
  stroke-dasharray: 6 10;
  animation: flow 7s linear infinite;
}
.flow-slow { animation-duration: 11s; }
@keyframes flow { to { stroke-dashoffset: -160; } }

/* ============================================================
   KENNZAHL-BAND – überlappt den Hero
   ============================================================ */
.stats-band { position: relative; z-index: 5; margin-top: -84px; }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stat {
  padding: 30px 30px 26px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat:last-child { border-right: 0; }
.stat strong {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.stat strong b { color: var(--accent); font-weight: 700; } /* Akzentzeichen */
.stat span {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================================
   INTRO
   ============================================================ */
.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: end;
}
.intro-grid h2 { margin: 18px 0 0; }
.intro-copy { align-self: end; }
.intro-copy p { font-size: 1.12rem; }
.intro-copy p + p { margin-top: 16px; }

/* ============================================================
   LEISTUNGS-KARTEN
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 26px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(56, 189, 248, 0));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: var(--shadow-md);
}
.service-card:hover::before { opacity: 1; }

.card-top { display: flex; align-items: center; justify-content: space-between; }
.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-tint);
  color: var(--accent-strong);
  transition: background 0.25s ease, color 0.25s ease;
}
.service-card:hover .card-icon { background: var(--accent); color: #0b2537; }
.card-icon svg { width: 26px; height: 26px; }
.card-index {
  font-size: 0.7rem;
  font-weight: 700;
  color: #9aa9ba;
  letter-spacing: 0.14em;
}
.service-card h3 {
  font-size: 1.28rem;
  margin: 22px 0 10px;
  color: var(--navy);
}
.service-card p { font-size: 0.93rem; line-height: 1.6; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.87rem;
}
.text-link span[aria-hidden] { transition: transform 0.2s ease; }
.service-card:hover .text-link span[aria-hidden] { transform: translateX(3px); }

.section-tail { margin-top: 40px; text-align: center; }

/* ============================================================
   ZUSAMMENARBEIT / SCHRITTE
   ============================================================ */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.approach-grid h2 { margin: 18px 0 22px; }
.approach-grid > div > p { margin-bottom: 30px; max-width: 480px; }

.step-list { display: flex; flex-direction: column; gap: 14px; }
.step-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--navy), #2c527b);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 6px 14px rgba(31, 56, 85, 0.25);
}
.step-item h3 { margin: 4px 0 6px; }
.step-item p { font-size: 0.93rem; }

/* ============================================================
   REFERENZEN & PROJEKTBEISPIELE
   ============================================================ */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.ref-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.ref-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(56, 189, 248, 0));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.ref-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: var(--shadow-md);
}
.ref-card:hover::before { opacity: 1; }
.ref-card .card-index {
  font-size: 0.7rem;
  font-weight: 700;
  color: #9aa9ba;
  letter-spacing: 0.14em;
}
.ref-card h3 {
  font-size: 1.15rem;
  margin: 12px 0 8px;
  color: var(--navy);
}
.ref-card p { font-size: 0.92rem; line-height: 1.6; }
.ref-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-tint);
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.ref-card:hover .tag { background: rgba(56, 189, 248, 0.22); }
.ref-note {
  margin-top: 34px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1080px) {
  .ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ref-grid { grid-template-columns: 1fr; }
}
/* ============================================================
   CTA-BAND
   ============================================================ */
.cta-wrap { padding: 40px 0 110px; }
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(56, 189, 248, 0.18), transparent 60%),
    linear-gradient(140deg, var(--navy), var(--navy-deep));
  color: #fff;
  padding: 64px 56px;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(70% 120% at 85% 50%, #000, transparent 75%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.cta-band h2 { color: #fff; max-width: 620px; margin: 14px 0 0; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.cta-band .button { flex: none; }

/* ============================================================
   FOOTER – Navy wie das Logo
   ============================================================ */
.site-footer { background: var(--navy); color: #fff; }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding: 72px 0 56px;
}
.footer-logo {
  display: inline-block;
  margin-bottom: 18px;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}
.footer-logo img { height: 52px; width: auto; display: block; }
.footer-logo img:not([hidden]) + .footer-logo-text { display: none; }
.footer-logo-text {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: #fff;
  line-height: 1;
  display: inline-block;
  margin-bottom: 16px;
}
.footer-logo-text span { color: var(--accent); }
.footer-brand p { color: #aebfce; font-size: 0.95rem; max-width: 300px; }
.footer-claim {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  padding: 9px 16px;
  border: 1px solid var(--line-navy);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9adcf7;
}

.footer-top h2 {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #8fb8d4;
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-top .footer-col a {
  display: block;
  text-decoration: none;
  margin-bottom: 11px;
  color: #dbe6ef;
  font-size: 0.92rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-top .footer-col a:hover { color: var(--accent); }
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
}
.footer-contact a:hover { color: var(--accent); }
.footer-contact a svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.footer-contact address {
  font-style: normal;
  color: #aebfce;
  font-size: 0.92rem;
  line-height: 1.7;
  margin-top: 16px;
}
.footer-contact address svg {
  display: block;
  width: 17px;
  height: 17px;
  color: var(--accent);
  margin-bottom: 6px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line-navy);
  color: #8fa6ba;
  font-size: 0.82rem;
}
.footer-bottom nav { display: flex; gap: 26px; }
.footer-bottom a { color: #c4d3e0; text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* ============================================================
   UNTERSEITEN-HERO
   ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(56, 189, 248, 0.15), transparent 60%),
    linear-gradient(150deg, var(--navy), var(--navy-deep));
  color: #fff;
  padding: 72px 0 84px;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(75% 100% at 70% 20%, #000, transparent 90%);
  pointer-events: none;
}
.page-hero .shell { position: relative; }
.page-hero-small { padding: 58px 0 68px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  font-size: 0.82rem;
  color: #8fa6ba;
}
.breadcrumb a { color: #b9cfe0; text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .crumb-sep { color: rgba(143, 166, 186, 0.55); }
.breadcrumb span[aria-current] { color: #fff; font-weight: 500; }

.page-hero h1 {
  color: #fff;
  margin: 0 0 18px;
  max-width: 900px;
  letter-spacing: -0.025em;
}
.page-hero .title-dot { color: var(--accent); }
.page-hero p {
  max-width: 680px;
  font-size: 1.13rem;
  color: #c9d8e6;
  margin-bottom: 0;
}

/* ============================================================
   LEISTUNGS-DETAILSEITEN
   ============================================================ */
.detail-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.detail-grid h2 { margin: 18px 0 20px; }
.detail-grid p { margin-bottom: 18px; }
.detail-lead {
  font-size: 1.22rem;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.6;
}

.detail-aside {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  box-shadow: var(--shadow-sm);
}
.detail-aside h3 { margin: 14px 0 10px; font-size: 1.3rem; }
.detail-aside p { font-size: 0.95rem; }
.detail-aside .aside-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--accent);
}
.detail-aside .aside-icon svg { width: 26px; height: 26px; }
.detail-aside .button { margin-top: 22px; width: 100%; }

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.split-section .section-heading { margin: 0; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding: 15px 0 15px 40px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1rem;
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 19px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-tint);
}
.check-list li::after {
  content: '';
  position: absolute;
  left: 7.5px;
  top: 25px;
  width: 6px;
  height: 10px;
  border: solid var(--accent-strong);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.tech-strip .chip-row { margin-top: 8px; }

/* ============================================================
   PROJEKTE / FEATURE-PANELS
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.feature-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-panel:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature-panel::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14), transparent 70%);
}
.feature-panel > span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.feature-panel h2 {
  font-size: 1.5rem;
  margin: 46px 0 14px;
}
.feature-panel p { font-size: 0.95rem; }

/* ============================================================
   KONTAKT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.contact-grid h2 { margin: 18px 0 22px; }
.contact-grid .button { margin-top: 28px; }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 36px;
  box-shadow: var(--shadow-md);
}
.contact-card > span {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.contact-card h3 { margin: 12px 0 26px; font-size: 1.5rem; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-row:hover { border-color: rgba(56, 189, 248, 0.55); background: var(--accent-tint); color: var(--navy); }
.contact-row svg { width: 21px; height: 21px; color: var(--accent-strong); flex: none; }
.contact-card address {
  font-style: normal;
  color: var(--muted);
  margin-top: 22px;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================
   RECHTLICHES
   ============================================================ */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin-top: 34px; }
.legal h3 { font-size: 1.2rem; margin-top: 28px; }
.legal h4 { font-size: 1.02rem; margin-top: 22px; color: var(--navy); }
.legal p { line-height: 1.8; margin-bottom: 14px; }
.legal ul { padding-left: 1.4rem; margin: 12px 0 16px; color: var(--ink); }
.legal ul li { margin-bottom: 6px; line-height: 1.7; }
.legal a { color: var(--accent-strong); }
.legal-note { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.82rem !important; color: var(--muted); }

/* Cookie-Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  justify-content: center;
  padding: 0 20px 20px;
  pointer-events: none;
}
.cookie-inner {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  width: min(920px, 100%);
  background: var(--navy);
  color: #fff;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px 26px;
}
.cookie-inner p {
  flex: 1 1 380px;
  margin: 0;
  color: #c9d8e6;
  font-size: 0.9rem;
  line-height: 1.6;
}
.cookie-inner a { color: var(--accent); font-weight: 500; }
.cookie-inner a:hover { color: #9adcf7; }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-actions .button { min-height: 42px; padding: 8px 18px; font-size: 0.85rem; }
.cookie-banner[hidden] { display: none; }

@media (max-width: 640px) {
  .cookie-banner { padding: 0 12px 12px; }
  .cookie-inner { padding: 18px 18px; }
  .cookie-inner p { flex-basis: 100%; }
  .cookie-actions { width: 100%; }
  .cookie-actions .button { flex: 1; }
}

/* ============================================================
   ANFRAGE-ASSISTENT
   ============================================================ */
.assistant-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}
.assistant-intro h2 { margin: 18px 0 20px; }
.assistant-intro p { margin-bottom: 14px; }

.assistant-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 40px;
}
.progress {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}
.progress-track {
  height: 6px;
  background: var(--line);
  border-radius: var(--radius-pill);
  margin: 14px 0 34px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--accent), #6fd3fb);
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

.form-step h2 { color: var(--navy); font-size: 1.45rem; margin-bottom: 6px; }
.form-step p { font-size: 0.9rem; }
.form-step label {
  display: block;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
  margin: 20px 0 8px;
}
.form-step label span[aria-hidden] { color: #d43d51; }
.form-step input, .form-step select, .form-step textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c4d0dc;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-step input:focus, .form-step select:focus, .form-step textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}
.form-step textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
.form-actions #next, .form-actions #submit { margin-left: auto; }

.review {
  margin-top: 26px;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow-wrap: anywhere;
}
.review dl { margin: 0; }
.review div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.review div:last-child { border-bottom: 0; }
.review dt { font-weight: 700; color: var(--navy); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.review dd { margin: 3px 0 0; white-space: pre-wrap; font-size: 0.95rem; color: var(--ink); }

.form-note { margin: 22px 0 0; font-size: 0.8rem; color: var(--muted); }
.form-message { font-size: 0.88rem; margin: 16px 0 0; color: var(--navy); font-weight: 500; }

/* ============================================================
   404
   ============================================================ */
.error-code {
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 10px 0 6px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .card-grid, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr 0.55fr; gap: 28px; }
  .hero-art svg { max-width: 420px; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; padding: 14px 0; gap: 12px; min-height: 0; }
  .brand img { height: 40px; }
  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    padding: 4px 0 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 92%, transparent);
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .header-cta { margin-left: auto; }

  .hero-grid { grid-template-columns: 1fr; padding: 48px 0 128px; }
  .hero-art { display: none; }
  .stats-band { margin-top: -68px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }

  .intro-grid, .approach-grid, .detail-grid, .split-section, .contact-grid, .assistant-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .intro-grid .intro-copy { align-self: start; }
  .detail-aside { position: static; }
  .cta-band { padding: 48px 32px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .shell { width: calc(100% - 40px); }
  .section { padding: 64px 0; }
  .section-compact { padding: 48px 0; }
  .section-heading { margin-bottom: 36px; }
  .card-grid, .feature-grid { grid-template-columns: 1fr; }
  .hero-grid { padding: 40px 0 104px; }
  .stats-band { margin-top: -52px; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .page-hero { padding: 48px 0 60px; }
  .cta-wrap { padding: 24px 0 72px; }
  .cta-band { padding: 40px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; padding: 52px 0 44px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .assistant-card { padding: 26px 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .step-item { grid-template-columns: 48px 1fr; gap: 16px; padding: 20px; }
  .step-num { width: 48px; height: 48px; }
}

@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;
  }
  .signal { box-shadow: none; }
}

@media print {
  .site-header, .header-cta, .cta-wrap, .site-footer, .skip-link { display: none; }
}
