/* ==========================================================================
   Wümme Media — Design System
   Ein Akzent (Teal), warme Neutrale, Manrope (selbst gehostet).
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Variable.ttf') format('truetype-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farb-Tokens (Light) */
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --surface-alt: #F3F2F0;
  --text: #18181B;
  --text-muted: #52525B;
  --text-faint: #8A8A92;
  --border: #E4E3E0;
  --border-strong: #D4D3CF;

  --accent: #0D9488;
  --accent-dark: #0B7A70;
  --accent-light: #E3F6F3;
  --accent-text-on: #FFFFFF;

  --shadow-color: 24 20% 20%;
  --shadow-sm: 0 1px 2px hsl(var(--shadow-color) / 0.06);
  --shadow-md: 0 8px 24px -8px hsl(var(--shadow-color) / 0.14);
  --shadow-lg: 0 24px 48px -16px hsl(var(--shadow-color) / 0.18);

  --radius-card: 14px;
  --radius-input: 10px;
  --radius-pill: 999px;

  --container: 1280px;
  --nav-h: 72px;

  /* Motion-Tokens. Die eingebauten CSS-Easings sind zu schwach, daher feste Kurven. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --dur-press: 140ms;   /* Button-Feedback */
  --dur-hover: 180ms;   /* Hover-Zustände */
  --dur-ui: 200ms;      /* Dropdowns, kleine UI-Elemente */
  --dur-reveal: 560ms;  /* Scroll-Reveals / Marketing-Entrance */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131311;
    --surface: #1B1B18;
    --surface-alt: #232320;
    --text: #F4F3F0;
    --text-muted: #B4B2AA;
    --text-faint: #7C7A72;
    --border: #322F2A;
    --border-strong: #45423B;

    --accent: #2DD4C4;
    --accent-dark: #14B8A6;
    --accent-light: #17332F;
    --accent-text-on: #0A1310;

    --shadow-color: 0 0% 0%;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
}

h1 { font-size: clamp(2.25rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.65;
}

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; }

/* ---------------------------- Buttons ---------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out), background-color var(--dur-hover) ease, border-color var(--dur-hover) ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-text-on);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

/* Hover-Motion nur für echte Zeiger. Touch löst sonst falsche :hover-Zustände beim Tippen aus. */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
}

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------------------------- Nav ---------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--text);
  flex-shrink: 0;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-text-on);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-links a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--text-muted);
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--surface-alt); color: var(--text); }

.nav-dropdown { position: relative; }
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  /* Vom Trigger her aufziehen, nicht aus der Mitte: das Panel hängt am Menüpunkt. */
  transform-origin: top center;
  transform: translateX(-50%) translateY(-4px) scale(0.97);
  width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out), visibility var(--dur-ui) var(--ease-out);
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0) scale(1);
}
.nav-dropdown-panel a {
  padding: 9px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  color: var(--text);
}
.nav-dropdown-panel a:hover { background: var(--accent-light); color: var(--accent-dark); }

.nav-cta { flex-shrink: 0; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    background: transparent;
    color: var(--text);
    cursor: pointer;
  }
}

.mobile-nav {
  position: fixed; inset: var(--nav-h) 0 0 0;
  z-index: 49;
  background: var(--bg);
  padding: 20px 24px 40px;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.mobile-nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
.mobile-nav a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}
.mobile-nav .btn { margin-top: 20px; width: 100%; justify-content: center; }

/* ---------------------------- Hero ---------------------------- */

.hero {
  padding: 56px 0 88px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
    linear-gradient(155deg, var(--surface-alt), var(--surface));
  border: 1px solid var(--border);
  overflow: hidden;
}
.hero-visual-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
}

/* Bildfläche: füllt das Panel, fährt beim Erscheinen minimal zurück (Ken-Burns-Andeutung). */
.hero-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 900ms var(--ease-out);
}
/* Scroll-Panel (About): Klassenwechsel durch den IntersectionObserver. */
.hero-visual.is-visible .hero-visual-img { transform: scale(1); }

/* Hero-Panel: läuft über Keyframes mit, weil dort kein Klassenwechsel stattfindet. */
@keyframes img-settle {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}
.hero-enter-panel .hero-visual-img,
.hero-enter-panel .service-figure-img {
  animation: img-settle 900ms var(--ease-out) 240ms forwards;
}

/* --- Motiv auf den Leistungsseiten: breite Bühne unter der Überschrift --- */
.service-figure {
  margin: 36px 0 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  aspect-ratio: 16 / 9;
}
.service-figure-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual-img { transform: none; transition: none; }
  .service-figure-img { transform: none; }
  .hero-enter-panel .hero-visual-img,
  .hero-enter-panel .service-figure-img { animation: none; }
}
.hero-visual-cards { position: absolute; inset: 0; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-chip {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}
.hero-chip .icon { color: var(--accent); }
.hero-chip:nth-child(2) { align-self: flex-end; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { aspect-ratio: 16 / 10; }
}

/* ---------------------------- Sections ---------------------------- */

.section { padding: 80px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { margin-bottom: 14px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------------------------- Service cards (Startseite) ---------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--text);
  transition: transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out), border-color var(--dur-hover) ease;
}
.service-card:active { transform: scale(0.985); }

/* Karte mit Motiv: Bild sitzt bündig oben, Text bekommt eigenen Innenabstand. */
.service-card--visual { padding: 0; overflow: hidden; gap: 0; }
.service-card--visual > h3 { margin-top: 20px; }
.service-card--visual > h3,
.service-card--visual > p,
.service-card--visual > .service-card-link { padding: 0 24px; }
.service-card--visual > p { margin-top: 8px; }
.service-card--visual > .service-card-link { padding-bottom: 24px; margin-top: 16px; }

.service-card-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
/* <picture> ist von Haus aus inline und ohne Hoehe. Ohne dieses display:block
   laeuft height:100% am <img> ins Leere und die Bildflaeche kollabiert. */
.service-card-thumb picture,
.service-figure picture {
  display: block;
  width: 100%;
  height: 100%;
}
.service-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-hover) var(--ease-out);
}
.service-card-thumb--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-light);
}
.service-card--visual:hover .service-card-thumb img { transform: scale(1.03); }

@media (prefers-reduced-motion: reduce) {
  .service-card-thumb img,
  .service-card--visual:hover .service-card-thumb img { transform: none; transition: none; }
}

.service-card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  transition: transform var(--dur-hover) var(--ease-out), background-color var(--dur-hover) ease;
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  }
  /* Icon reagiert eigenständig mit: bestätigt, welche Karte gemeint ist. */
  .service-card:hover .service-card-icon {
    transform: scale(1.08) rotate(-3deg);
    background: color-mix(in srgb, var(--accent) 18%, var(--accent-light));
  }
}
.service-card h3 { font-size: 1.08rem; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
.service-card-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 700;
  color: var(--accent-dark);
}
.service-card-link .icon { transition: transform var(--dur-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .service-card:hover .service-card-link .icon { transform: translateX(4px); }
}

@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------------------------- Service detail page ---------------------------- */

.service-hero {
  padding: 48px 0 64px;
  border-bottom: 1px solid var(--border);
}
.service-hero-top {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
}
.service-hero-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-light);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
/* Brotkrumen: zeigen dem Besucher den Weg und erscheinen zusätzlich
   im Google-Suchergebnis (siehe BreadcrumbList in inc/seo.php). */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-faint);
  margin-bottom: 22px;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--text); }

.service-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  padding: 64px 0;
  align-items: start;
}
.service-copy p { color: var(--text-muted); font-size: 1.02rem; }
.service-copy p:first-child { color: var(--text); font-size: 1.1rem; }

.checklist { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 10px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  font-weight: 600; font-size: 0.98rem;
}
.checklist .icon { color: var(--accent); flex-shrink: 0; margin-top: 3px; }

.service-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.service-sidebar h4 { font-size: 1.05rem; margin-bottom: 10px; }
.service-sidebar p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 20px; }
.service-sidebar .btn { width: 100%; justify-content: center; }

.other-services {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.other-services h5 {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-faint); margin: 0 0 12px;
}
.other-services a {
  display: block;
  padding: 7px 0;
  font-size: 0.88rem; font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
}
.other-services a:hover { color: var(--accent-dark); }

@media (max-width: 900px) {
  .service-body { grid-template-columns: 1fr; gap: 32px; }
  .service-sidebar { position: static; }
}

/* ---------------------------- About / Warum ---------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.stat-num { font-size: 2.1rem; font-weight: 800; color: var(--accent-dark); letter-spacing: -0.02em; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; margin-top: 4px; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------------------------- Process steps ---------------------------- */

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  counter-reset: step;
}
.step {
  padding: 24px 22px 24px 0;
  border-top: 2px solid var(--border-strong);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 14px;
}
.step h4 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--text-muted); }

@media (max-width: 900px) { .steps-row { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; } }
@media (max-width: 560px) { .steps-row { grid-template-columns: 1fr; } }

/* ---------------------------- Contact ---------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-info-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.contact-info-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.contact-info-list .icon { color: var(--accent); width: 1.15em; height: 1.15em; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.field input, .field textarea, .field select {
  font-family: inherit;
  font-size: 0.96rem;
  padding: 12px 14px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-hint { font-size: 0.8rem; color: var(--text-faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.form-note { font-size: 0.82rem; color: var(--text-faint); margin-top: 14px; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------------------------- CTA band ---------------------------- */

.cta-band {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: var(--accent-text-on);
  border-radius: 24px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: color-mix(in srgb, #fff 82%, transparent); margin-top: 8px; }
.cta-band .btn-primary { background: #fff; color: var(--accent-dark); }
.cta-band .btn-primary:hover { background: #fff; box-shadow: none; transform: translateY(-1px); }

/* ---------------------------- Footer ---------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  background: var(--surface-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; max-width: 32ch; margin-top: 12px; }
.footer-col h5 {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-faint); margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; color: var(--text-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent-dark); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: var(--text-faint);
}
.footer-bottom a { text-decoration: none; color: var(--text-faint); }
.footer-bottom a:hover { color: var(--accent-dark); }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------------------------- Legal pages ---------------------------- */

.legal-content { max-width: 74ch; }
.legal-content h2 { font-size: 1.3rem; margin: 40px 0 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-muted); font-size: 0.97rem; }
.legal-content ul { padding-left: 20px; }

/* ==========================================================================
   Motion
   Nur transform/opacity (GPU, kein Layout/Paint). Kurven und Dauern aus den
   Tokens oben. Hover-Motion ist auf echte Zeiger begrenzt.
   ========================================================================== */

/* --- Scroll-Reveal: Inhalt taucht beim Hereinscrollen auf ---
   Bewusst an .js gekoppelt: Das Einblenden braucht JavaScript (IntersectionObserver).
   Ohne die Klasse bleibt der Inhalt schlicht sichtbar, statt dauerhaft auf
   opacity:0 zu haengen. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* --- Hero-Entrance: einmalig beim Laden, in Lesereihenfolge gestaffelt --- */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-enter > * {
  opacity: 0;
  animation: hero-in var(--dur-reveal) var(--ease-out) forwards;
}
.hero-enter > *:nth-child(1) { animation-delay: 60ms; }
.hero-enter > *:nth-child(2) { animation-delay: 120ms; }
.hero-enter > *:nth-child(3) { animation-delay: 180ms; }
.hero-visual.hero-enter-panel,
.service-figure.hero-enter-panel {
  opacity: 0;
  animation: hero-in var(--dur-reveal) var(--ease-out) 240ms forwards;
}

/* --- Chips: leichtes Schweben, damit die Fläche nicht tot wirkt --- */
@keyframes chip-float {
  from { transform: translateY(-5px); }
  to   { transform: translateY(5px); }
}
.hero-chip {
  animation: chip-float 5.5s var(--ease-in-out) infinite alternate;
  will-change: transform;
}
.hero-chip:nth-child(2) { animation-duration: 7s; animation-delay: -2.5s; }

/* --- Statistiken: kurzer Pop beim Erscheinen, statt Hochzählen --- */
/* (Hochzählen wäre bei Werten wie "1" albern.) */
.js .stat-num {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}
.stat-row.is-visible .stat-num { opacity: 1; transform: scale(1); }
.stat-row.is-visible > div:nth-child(2) .stat-num { transition-delay: 80ms; }
.stat-row.is-visible > div:nth-child(3) .stat-num { transition-delay: 160ms; }

/* --- Prozess-Schritte: Linie zeichnet sich, Inhalt folgt (Reihenfolge = Ablauf) --- */
.step { position: relative; border-top-color: transparent; }
.step::after {
  content: '';
  position: absolute;
  top: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--border-strong);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-reveal) var(--ease-out);
}
.step.is-visible::after { transform: scaleX(1); }
.steps-row .step:nth-child(2).is-visible::after { transition-delay: 80ms; }
.steps-row .step:nth-child(3).is-visible::after { transition-delay: 160ms; }
.steps-row .step:nth-child(4).is-visible::after { transition-delay: 240ms; }

/* --- Reduced Motion: Bewegung raus, Ein-/Ausblenden bleibt --- */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-reveal].is-visible,
  .js .stat-num,
  .js .stat-row.is-visible .stat-num {
    transform: none;
  }
  .hero-enter > *,
  .hero-visual.hero-enter-panel,
  .service-figure.hero-enter-panel {
    opacity: 1;
    animation: none;
  }
  .hero-chip { animation: none; }
  .step::after { transform: scaleX(1); transition: none; }
  .service-card:hover,
  .service-card:active,
  .service-card:hover .service-card-icon,
  .btn-primary:hover,
  .btn:active { transform: none; }
}

/* ---------------------------- Utilities ---------------------------- */

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.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;
}
