/* =========================================================================
   automatek GmbH — Website Stylesheet
   Mobile-first. Lokale Schriften (DSGVO), keine externen CDNs.
   Design: "Trust & Authority" · Petrol/Stahlblau + Graphit + Signal-Amber
   ========================================================================= */

/* ---------- Lokale Schriften (self-hosted, DSGVO-konform) ---------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/inter-700.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/space-grotesk-500.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/space-grotesk-600.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/space-grotesk-700.woff2") format("woff2");
}

/* ---------- Design-Tokens ------------------------------------------------ */
:root {
  /* Farbwelt */
  --ink: #0d1a24;          /* Überschriften / Text auf hell */
  --graphite: #46586a;     /* Fließtext gedämpft */
  --graphite-soft: #5c6e7c;
  --brand: #17627e;        /* Petrol/Stahlblau (aus Logo abgeleitet) */
  --brand-600: #0f4d66;
  --brand-700: #0b3c52;
  --brand-300: #4f97b0;
  --brand-100: #dcecf1;
  --brand-50: #eef6f9;
  --signal: #e6941f;       /* Signal-Amber (Automations-Statuslampe), sehr sparsam */
  --signal-soft: #fbead0;

  --bg: #ffffff;
  --surface: #f4f8fa;      /* kühles Off-White */
  --surface-2: #eaf1f4;
  --ink-panel: #0c1922;    /* dunkle Sektion */
  --line: #e0e8ec;
  --line-strong: #cdd9df;

  /* Typografie */
  --font-display: "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Radius / Schatten */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(13, 26, 36, 0.05), 0 2px 8px rgba(13, 26, 36, 0.04);
  --shadow-md: 0 4px 14px rgba(13, 26, 36, 0.06), 0 12px 30px rgba(13, 26, 36, 0.07);
  --shadow-lg: 0 10px 30px rgba(11, 60, 82, 0.10), 0 30px 60px rgba(11, 60, 82, 0.10);
  --shadow-brand: 0 10px 24px rgba(15, 77, 102, 0.28);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.15rem, 5vw, 2rem);
  --section-y: clamp(3.75rem, 9vw, 7rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.24s;
}

/* ---------- Reset / Basis ------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px; /* Höhe Sticky-Header */
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--graphite);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

ul { list-style: none; padding: 0; }

button { font: inherit; cursor: pointer; }

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

/* ---------- Typografie --------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h1 { font-size: clamp(2.15rem, 6.4vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.45rem); }

p { text-wrap: pretty; }

.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  line-height: 1.6;
  color: var(--graphite);
}

/* ---------- Layout-Helfer ------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.section--surface { background: var(--surface); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}
.section-head.is-center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-soft);
  flex: none;
}
.eyebrow.on-dark { color: var(--brand-300); }

.section-head p { margin-top: 0.9rem; }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: var(--brand-600); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15, 77, 102, 0.34); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-600); transform: translateY(-2px); background: #fff; }
.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--brand-700);
}
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--block { width: 100%; }

/* ---------- Header / Navigation ------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(13, 26, 36, 0.05);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { line-height: 1; }
.brand__name b { color: var(--brand); font-weight: 700; }
.brand__sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite-soft);
  margin-top: 3px;
}

.nav__links { display: none; }
.nav__cta { display: none; }

.nav-menu-list a {
  font-weight: 500;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.nav-menu-list a:hover { color: var(--brand); }

/* Burger */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobiles Menü-Panel */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(88vw, 360px);
  height: 100dvh;
  padding: 5.5rem 1.5rem 2rem;
  background: #fff;
  box-shadow: -20px 0 60px rgba(13, 26, 36, 0.16);
  transform: translateX(100%);
  transition: transform 0.34s var(--ease);
  z-index: 95;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-menu a {
  display: block;
  padding: 0.9rem 0.5rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:hover { color: var(--brand); }
.mobile-menu .btn { margin-top: 1.5rem; }
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 22, 30, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
  z-index: 90;
}
.menu-backdrop.is-open { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 7vw, 4.5rem);
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
  background:
    radial-gradient(1100px 520px at 82% -8%, var(--brand-50), transparent 60%),
    linear-gradient(180deg, #fbfdfe, #fff);
  overflow: hidden;
}
/* Blueprint-Signatur: feines technisches Raster */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(760px 520px at 78% 12%, #000 0%, transparent 72%);
  mask-image: radial-gradient(760px 520px at 78% 12%, #000 0%, transparent 72%);
  opacity: 0.6;
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 3rem); align-items: center; }

.hero__title { margin-top: 1.1rem; }
.hero__title .accent { color: var(--brand); }
.hero__lead { margin-top: 1.4rem; max-width: 38rem; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}
.hero__trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 4vw, 2.4rem);
  margin-top: 2.75rem;
  padding-top: 1.9rem;
  border-top: 1px solid var(--line);
  max-width: 40rem;
}
.hero__trust .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hero__trust .lbl { font-size: 0.82rem; color: var(--graphite-soft); line-height: 1.35; }

/* Hero-Visual: technische Panel-Karte */
.hero__visual { position: relative; }
.panel {
  position: relative;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--ink-panel), #12303e);
  box-shadow: var(--shadow-lg);
  padding: 1.6rem;
  overflow: hidden;
  aspect-ratio: 5 / 4.4;
}
.panel::after {
  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: 30px 30px;
  pointer-events: none;
}
.panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.panel__dot {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.panel__dot::before {
  content: "";
  width: 9px; height: 9px; border-radius: 50%;
  background: #3ddc7f;
  box-shadow: 0 0 0 4px rgba(61, 220, 127, 0.18);
  animation: pulse 2.6s var(--ease) infinite;
}
.panel__code {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.06em;
}
.panel__gauges {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.4rem;
}
.gauge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-sm);
  padding: 0.85rem 0.95rem;
}
.gauge .g-lbl {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.gauge .g-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
  margin-top: 0.2rem;
}
.gauge .g-bar {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  margin-top: 0.7rem;
  overflow: hidden;
}
.gauge .g-bar > i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-300), #66c7e0);
}
.panel__flow {
  position: relative;
  z-index: 1;
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-sm);
}
.panel__flow .node {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(79, 151, 176, 0.28);
  border: 1px solid rgba(102, 199, 224, 0.4);
  display: grid; place-items: center;
}
.panel__flow .node svg { width: 15px; height: 15px; color: #9fd8e8; }
.panel__flow .link { flex: 1; height: 2px; background: linear-gradient(90deg, rgba(102,199,224,0.55), rgba(102,199,224,0.15)); border-radius: 2px; }
.panel__badge {
  position: absolute;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ink);
}
.panel__badge .s-led { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(61, 220, 127, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(61, 220, 127, 0.05); }
}

/* ---------- Trust-Leiste (Logos/Signale) --------------------------------- */
.trustbar { border-top: 1px solid var(--line); }
.trustbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 2rem;
  align-items: center;
  justify-content: center;
  padding-block: 1.5rem;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--graphite);
}
.trust-chip svg { width: 20px; height: 20px; color: var(--brand); flex: none; }

/* ---------- Karten-Grids ------------------------------------------------- */
.grid { display: grid; gap: 1.15rem; }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--brand-50);
  color: var(--brand-600);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.96rem; }
.card__meta {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-600);
  font-weight: 500;
}

/* ---------- Leistungen: mobile Accordion / Desktop Grid ------------------ */
.services__list { display: grid; gap: 0.85rem; align-items: start; }
.accordion {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.15rem 1.15rem;
  background: none;
  border: 0;
  text-align: left;
}
.accordion__trigger .a-icon {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  background: var(--brand-50); color: var(--brand-600);
  display: grid; place-items: center;
}
.accordion__trigger .a-icon svg { width: 22px; height: 22px; }
.accordion__trigger .a-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  flex: 1;
}
.accordion__chev {
  width: 22px; height: 22px; flex: none; color: var(--graphite-soft);
  transition: transform var(--dur) var(--ease);
}
.accordion__trigger[aria-expanded="true"] .accordion__chev { transform: rotate(180deg); }
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}
.accordion__panel > div { overflow: hidden; }
.accordion__trigger[aria-expanded="true"] + .accordion__panel { grid-template-rows: 1fr; }
.accordion__inner { padding: 0 1.15rem 1.3rem calc(1.15rem + 42px + 0.9rem); }
.accordion__inner p { font-size: 0.96rem; }
.accordion__inner ul { margin-top: 0.7rem; display: grid; gap: 0.4rem; }
.accordion__inner li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  color: var(--graphite);
}
.accordion__inner li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--brand-300);
}

/* ---------- Über uns ----------------------------------------------------- */
.about__grid { display: grid; gap: clamp(2rem, 5vw, 3rem); align-items: center; }
.about__media { position: relative; }
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-top: 1.75rem;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.stat .s-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 5vw, 2.1rem);
  color: var(--brand-600);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat .s-lbl { margin-top: 0.45rem; font-size: 0.86rem; color: var(--graphite); }

.checklist { margin-top: 1.5rem; display: grid; gap: 0.75rem; }
.checklist li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--ink);
}
.checklist svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 1px; }

/* ---------- Bild-Platzhalter -------------------------------------------- */
.ph {
  position: relative;
  border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 260px;
  color: var(--graphite-soft);
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.5;
}
.ph__inner {
  position: relative;
  text-align: center;
  padding: 1.5rem;
}
.ph__inner svg { width: 40px; height: 40px; margin: 0 auto 0.6rem; color: var(--brand-300); }
.ph__inner .t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--graphite);
}
.ph__inner .s { font-size: 0.78rem; margin-top: 0.2rem; }
.ph--tall { min-height: 400px; }
.ph--wide { aspect-ratio: 16 / 9; min-height: 0; }

/* ---------- Warum wir (dunkle Sektion) ----------------------------------- */
.section--dark {
  background:
    radial-gradient(800px 400px at 15% 0%, rgba(79,151,176,0.14), transparent 60%),
    var(--ink-panel);
  color: rgba(255, 255, 255, 0.78);
}
.section--dark h2 { color: #fff; }
.section--dark .section-head p { color: rgba(255, 255, 255, 0.72); }
.feature {
  padding: 1.6rem 1.4rem;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 100%;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.feature:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.07); }
.feature__icon {
  width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(79, 151, 176, 0.18);
  color: #9fd8e8;
  margin-bottom: 1rem;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { color: #fff; margin-bottom: 0.5rem; font-size: 1.15rem; }
.feature p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.68); }

/* ---------- Ablauf / Prozess --------------------------------------------- */
.steps { display: grid; gap: 1.15rem; counter-reset: step; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.step__num {
  counter-increment: step;
  width: 46px; height: 46px; flex: none;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.step p { font-size: 0.95rem; }

/* ---------- Standort ----------------------------------------------------- */
.location__grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: stretch; }
.location__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.location__card h3 { margin-bottom: 1rem; }
.info-list { display: grid; gap: 1rem; }
.info-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.info-list .i-ic {
  width: 42px; height: 42px; flex: none;
  border-radius: 11px;
  background: var(--brand-50); color: var(--brand-600);
  display: grid; place-items: center;
}
.info-list .i-ic svg { width: 21px; height: 21px; }
.info-list .i-lbl { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--graphite-soft); }
.info-list .i-val { font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.info-list a.i-val:hover { color: var(--brand); }
.map-ph {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 62% 42%, rgba(23,98,126,0.10), transparent 40%),
    linear-gradient(135deg, #e7eff2, #eef4f6);
}
.map-ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-strong) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.7;
}
.map-ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 48%, rgba(23,98,126,0.16) 48% 52%, transparent 52%),
    linear-gradient(0deg, transparent 62%, rgba(23,98,126,0.16) 62% 65%, transparent 65%);
}
.map-pin {
  position: absolute;
  left: 62%; top: 42%;
  transform: translate(-50%, -100%);
  z-index: 2;
  color: var(--brand-600);
  filter: drop-shadow(0 8px 10px rgba(11,60,82,0.25));
}
.map-pin svg { width: 44px; height: 44px; }
.map-ph .map-cta {
  position: absolute;
  left: 1rem; bottom: 1rem; right: 1rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.map-cta .m-addr { font-size: 0.86rem; font-weight: 500; color: var(--ink); }

/* ---------- Kontakt ------------------------------------------------------ */
.contact__grid { display: grid; gap: clamp(2rem, 5vw, 3rem); align-items: start; }
.contact__aside .lead { margin-top: 1rem; }
.contact__aside .checklist { margin-top: 1.75rem; }

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.field .req { color: var(--signal); }
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px var(--brand-50);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: #d3453f; }
.field-error {
  display: none;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: #c23a34;
}
.field.has-error .field-error { display: block; }
.field.has-error input,
.field.has-error textarea { border-color: #d3453f; }

.field-row { display: grid; gap: 0; }

.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.consent input {
  width: 22px; height: 22px; flex: none; margin-top: 2px;
  accent-color: var(--brand);
  cursor: pointer;
}
.consent label { font-size: 0.88rem; color: var(--graphite); line-height: 1.5; margin: 0; font-weight: 400; }
.consent a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 2px; }
.form__note { margin-top: 1rem; font-size: 0.8rem; color: var(--graphite-soft); text-align: center; }

.form__success {
  display: none;
  text-align: center;
  padding: 1rem 0;
}
.form__success.is-visible { display: block; }
.form__success .ok-ic {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 1rem;
  background: #e7f7ee; color: #1f9d57;
}
.form__success .ok-ic svg { width: 30px; height: 30px; }
.form__success h3 { margin-bottom: 0.5rem; }

/* ---------- Footer ------------------------------------------------------- */
.site-footer {
  background: var(--ink-panel);
  color: rgba(255, 255, 255, 0.66);
  padding-top: clamp(2.75rem, 6vw, 4rem);
}
.footer__grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer__brand .brand { color: #fff; margin-bottom: 1rem; }
.footer__brand .brand__name b { color: var(--brand-300); }
.footer__brand .brand__sub { color: rgba(255,255,255,0.5); }
.footer__brand p { font-size: 0.92rem; max-width: 30rem; }
.footer h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-links { display: grid; gap: 0.6rem; }
.footer-links a { font-size: 0.94rem; color: rgba(255,255,255,0.66); transition: color var(--dur) var(--ease); }
.footer-links a:hover { color: #fff; }
.footer address { font-style: normal; font-size: 0.94rem; line-height: 1.7; }
.footer address a:hover { color: #fff; }

.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}
.footer__bar .copy { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.powered {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.powered a { color: #22b8e0; font-weight: 600; transition: opacity var(--dur) var(--ease); }
.powered a:hover { opacity: 0.82; }

/* ---------- Rechtsseiten (Platzhalter) ----------------------------------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4rem) var(--section-y); }
.legal__body { max-width: 52rem; }
.legal__body h1 { margin-bottom: 1.5rem; }
.legal__body h2 { font-size: 1.35rem; margin: 2.25rem 0 0.75rem; }
.legal__body p, .legal__body li { margin-bottom: 0.75rem; }
.legal__body ul { list-style: disc; padding-left: 1.25rem; }
.legal__note {
  display: flex;
  gap: 0.8rem;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0 2rem;
  background: var(--signal-soft);
  border: 1px solid #f0d29a;
  border-radius: var(--r-md);
  font-size: 0.92rem;
  color: #7a5410;
}
.legal__note svg { width: 22px; height: 22px; flex: none; color: var(--signal); }
.legal .data-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.25rem 1.4rem;
  margin: 1rem 0;
  line-height: 1.8;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  font-weight: 600;
  color: var(--brand-600);
}
.back-link:hover { gap: 0.6rem; }
.back-link svg { width: 18px; height: 18px; }

/* ---------- Scroll-Reveal ------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 10px 10px;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 0; }

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

/* =========================================================================
   Responsive – Tablet ab 640px
   ========================================================================= */
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .hero__actions .btn { min-width: 190px; }
  .footer__bar { flex-direction: row; justify-content: space-between; }
  .footer__bar { text-align: left; }
}

/* =========================================================================
   Responsive – ab 900px (Desktop-Navigation & mehrspaltige Layouts)
   ========================================================================= */
@media (min-width: 900px) {
  .burger { display: none; }
  .nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  .nav__cta { display: inline-flex; }
  .mobile-menu, .menu-backdrop { display: none; }

  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr 1fr; }
  .about__grid.is-reverse .about__media { order: 2; }
  .location__grid { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 0.9fr 1.1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; gap: 1.15rem; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .services__list { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================================
   Reduced Motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
