/* =========================================================================
   MITAC GmbH — styles.css
   Monochrom, editorial-technisch. Siehe CLAUDE.md.
   Struktur:
     1. Reset
     2. Tokens (:root)
     3. Base (body, Typo-Grundlagen, Links)
     4. Utilities (.container, .prose, .eyebrow, .mono, .section)
     5. Fokus / Selection / Reduced-Motion
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Reset — modern & schlank
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

/* -------------------------------------------------------------------------
   2. Tokens
   ------------------------------------------------------------------------- */
:root {
  /* --- Farben (aus CLAUDE.md) --- */
  --ink: #0B0B0C;
  --surface: #141416;
  --paper: #F4F4F5;
  --muted: #8A8A8F;
  --line: rgba(255, 255, 255, 0.10);
  --invert-bg: #F4F4F5;
  --invert-fg: #0B0B0C;

  /* --- Schriftfamilien --- */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, "Cascadia Code",
    Consolas, "Liberation Mono", monospace;

  /* --- Typo-Skala (fluid, clamp) ---
     Basis ~18px, Verhältnis ~1.25 (mobil) → ~1.333 (desktop) */
  --step--2: clamp(0.69rem, 0.67rem + 0.11vw, 0.75rem);
  --step--1: clamp(0.83rem, 0.79rem + 0.22vw, 0.94rem);
  --step-0: clamp(1.00rem, 0.95rem + 0.27vw, 1.13rem);
  --step-1: clamp(1.20rem, 1.11rem + 0.44vw, 1.50rem);
  --step-2: clamp(1.44rem, 1.30rem + 0.70vw, 2.00rem);
  --step-3: clamp(1.73rem, 1.51rem + 1.08vw, 2.67rem);
  --step-4: clamp(2.07rem, 1.75rem + 1.62vw, 3.55rem);
  --step-5: clamp(2.49rem, 2.01rem + 2.38vw, 4.74rem);
  --step-6: clamp(2.99rem, 2.30rem + 3.44vw, 6.31rem);

  /* --- Abstände (Spacing-Skala) --- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* --- Section-Rhythmus --- */
  --section-pad: clamp(3.5rem, 2.5rem + 5vw, 7rem);

  /* --- Radius (Logo-Bezug) --- */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  /* --- Layout-Maße --- */
  --container-max: 1180px;
  --prose-max: 72ch; /* ~65–72 Zeichen ruhige Zeilenlänge */
  --gutter: clamp(1.25rem, 0.9rem + 1.7vw, 2rem);

  color-scheme: dark;
}

/* -------------------------------------------------------------------------
   3. Base
   ------------------------------------------------------------------------- */
body {
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--step-6); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

strong,
b {
  font-weight: 600;
}

/* -------------------------------------------------------------------------
   4. Utilities
   ------------------------------------------------------------------------- */

/* Zentrierter Content-Container mit seitlichem Padding */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Enge Zeilenlänge für Fließtext */
.prose {
  max-width: var(--prose-max);
}

.prose > * + * {
  margin-block-start: var(--space-s);
}

/* Mono-Label / Eyebrow */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* Basis-Section-Abstand.
   Bewusst per Klasse (flache Spezifität, kein ID-Selektor), damit sich
   spätere, feiner gestaffelte Abstände sauber überschreiben lassen und
   sich nicht via Margin-Collapse gegenseitig aufheben. */
.section {
  padding-block: var(--section-pad);
}

/* Hairline-Trennlinie zwischen aufeinanderfolgenden Sektionen */
.section + .section {
  border-top: 1px solid var(--line);
}

/* Invertierter Block (weiß auf schwarz → schwarz auf weiß), sparsam */
.invert {
  background-color: var(--invert-bg);
  color: var(--invert-fg);
}

/* Nur für Screenreader */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Skip-Link */
.skip-link {
  position: absolute;
  left: var(--space-s);
  top: -4rem;
  z-index: 100;
  padding: var(--space-2xs) var(--space-s);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-s);
}

/* -------------------------------------------------------------------------
   5. Fokus / Selection / Reduced-Motion
   ------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Fallback für Browser ohne :focus-visible */
:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background-color: var(--paper);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
}

/* Scroll-Anker unter dem stickenden Header freihalten */
:target {
  scroll-margin-top: calc(var(--header-h) + var(--space-m));
}

/* =========================================================================
   6. Buttons
   ========================================================================= */
.btn {
  --btn-py: 0.7em;
  --btn-px: 1.25em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 2.75rem; /* komfortables Touch-Ziel (~44px) */
  padding: var(--btn-py) var(--btn-px);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, transform 0.2s ease;
}

.btn--sm {
  --btn-py: 0.55em;
  --btn-px: 1em;
}

.btn--lg {
  --btn-py: 0.95em;
  --btn-px: 1.6em;
  font-size: var(--step-0);
}

.btn--invert {
  background-color: var(--invert-bg);
  color: var(--invert-fg);
  border-color: var(--invert-bg);
}

.btn--invert:hover {
  background-color: transparent;
  color: var(--paper);
  border-color: var(--paper);
}

.btn--ghost {
  background-color: transparent;
  color: var(--paper);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--paper);
  transform: translateY(-1px);
}

.btn span {
  transition: transform 0.2s ease;
}

.btn--invert:hover span,
.btn--ghost:hover span {
  transform: translateX(2px);
}

/* =========================================================================
   7. Header
   ========================================================================= */
:root {
  --header-h: 64px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* Dünne Hairline erst beim Scrollen */
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background-color: color-mix(in srgb, var(--ink) 92%, transparent);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  min-height: var(--header-h);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  padding-block: 0.5rem; /* vergrößert das Touch-Ziel (transparent) */
}

.site-logo img {
  height: 28px;
  width: auto;
  /* Echte Invertierung: Schwarz → Paper, Weiß → Ink.
     Kein brightness(0) davor — das würde die weißen Aussparungen
     des Motivs mit einfärben und die Spirale zu einem Klotz verschmelzen. */
  filter: invert(0.96);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-l);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-l);
}

.site-nav__item a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem; /* Touch-Ziel */
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav__item a:hover {
  color: var(--paper);
}

/* Mobile: nur der Kontakt-CTA bleibt, kein Hamburger */
@media (max-width: 640px) {
  .site-nav__list {
    display: none;
  }
  .site-nav {
    gap: 0;
  }
}

/* =========================================================================
   8. Hero
   ========================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 7vw, 6.5rem) var(--section-pad);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
}

.hero__content {
  max-width: 40rem;
}

.eyebrow.hero__reveal {
  margin-bottom: var(--space-m);
}

.hero__headline {
  font-size: var(--step-6);
  margin-bottom: var(--space-l);
}

.hero__headline-a,
.hero__headline-b {
  display: block;
}

/* Erster Satz zurückgenommen, zweiter Satz voller Kontrast */
.hero__headline-a {
  color: var(--muted);
  font-weight: 500;
}

.hero__headline-b {
  color: var(--paper);
}

.hero__subline {
  color: var(--muted);
  font-size: var(--step-1);
  margin-bottom: var(--space-xl);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-bottom: var(--space-2xl);
}

/* --- Spec-Sheet --- */
.spec {
  max-width: 30rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-xs) var(--space-m);
  background-color: color-mix(in srgb, var(--surface) 55%, transparent);
}

.spec__row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: var(--space-s);
  align-items: baseline;
  padding-block: var(--space-2xs);
}

.spec__row + .spec__row {
  border-top: 1px solid var(--line);
}

.spec__key,
.spec__val {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.02em;
}

.spec__key {
  color: var(--muted);
  text-transform: uppercase;
}

.spec__key::after {
  content: " /";
  color: var(--line);
}

.spec__val {
  color: var(--paper);
}

/* --- Signature / Logo-Motiv --- */
.hero__motif {
  justify-self: end;
  align-self: center;
  width: min(100%, 30rem);
  aspect-ratio: 1;
  opacity: 0.9;
  pointer-events: none;
}

.motif {
  width: 100%;
  height: 100%;
}

.motif__frame {
  fill: none;
  stroke: var(--line);
  stroke-width: 4;
}

.motif__spiral {
  fill: none;
  stroke: var(--paper);
  stroke-width: 6;
  opacity: 0.85;
}

.motif__core {
  fill: var(--paper);
}

/* Motiv rechts angeschnitten / hinter Content auf kleineren Screens */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__motif {
    position: absolute;
    inset: auto -12% auto auto;
    top: 50%;
    transform: translateY(-50%);
    width: min(70%, 26rem);
    opacity: 0.12;
    z-index: 0;
  }
  .hero__content {
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 560px) {
  .spec__row {
    grid-template-columns: 7rem 1fr;
  }
}

/* =========================================================================
   8b. Kompetenz-Ticker (Marquee)
   ========================================================================= */
.ticker {
  --ticker-gap: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  --ticker-duration: 42s;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background-color: var(--surface);
  padding-block: var(--space-s);
}

.ticker__track {
  display: flex;
  width: max-content;
  /* Endlose horizontale Bewegung; zwei Kopien → Verschiebung um -50% */
  animation: tickerScroll var(--ticker-duration) linear infinite;
  will-change: transform;
}

/* Bei Hover pausieren */
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track {
  animation-play-state: paused;
}

.ticker__group {
  display: flex;
  align-items: center;
  flex: none;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

/* Rhombus-Trenner NACH jedem Begriff → auch an der Schleifen-Naht durchgängig */
.ticker__item::after {
  content: "◆";
  margin-inline: var(--ticker-gap);
  color: var(--muted);
  opacity: 0.55;
  font-size: 0.72em;
}

@keyframes tickerScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Reduced Motion: keine Bewegung → statisch, bei Bedarf horizontal scrollbar */
@media (prefers-reduced-motion: reduce) {
  .ticker {
    overflow-x: auto;
  }
  .ticker__track {
    animation: none;
    width: auto;
  }
  /* Zweite (rein dekorative) Kopie ausblenden, damit nichts doppelt erscheint */
  .ticker__group[aria-hidden="true"] {
    display: none;
  }
}

/* =========================================================================
   8c. Sektions-Kopf (Eyebrow + Headline)
   ========================================================================= */
.section-head {
  max-width: var(--prose-max);
  margin-bottom: clamp(2.5rem, 1.8rem + 3vw, 4rem);
}

.section-head .eyebrow {
  margin-bottom: var(--space-s);
}

.section-head__title {
  font-size: var(--step-4);
}

/* =========================================================================
   8d. Karten-Grid (Leistungen)
   ========================================================================= */
.cards {
  display: grid;
  gap: clamp(1rem, 0.6rem + 1.6vw, 1.5rem);
  /* Desktop: 2×2 */
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, background-color 0.25s ease,
    transform 0.25s ease;
}

.card__label {
  font-size: var(--step--1);
  color: var(--muted);
  letter-spacing: 0.12em;
}

.card__title {
  font-size: var(--step-2);
}

.card__desc {
  color: var(--muted);
  max-width: 46ch;
}

/* Dezenter Hover: Rahmen hellt auf, leichte Invert-Andeutung */
.card:hover {
  border-color: color-mix(in srgb, var(--paper) 55%, transparent);
  background-color: color-mix(in srgb, var(--paper) 5%, var(--surface));
  transform: translateY(-3px);
}

.card:hover .card__label {
  color: var(--paper);
}

/* Tablet behält zwei Spalten (2×2). Erst auf dem Phone → eine Spalte. */
@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   8e. Ablauf-Schritte (Vorgehen)
   ========================================================================= */
.steps {
  list-style: none;
  max-width: 60rem;
}

.step {
  display: grid;
  grid-template-columns: minmax(3.5rem, 6rem) 1fr;
  gap: clamp(1rem, 0.4rem + 2.4vw, 2.5rem);
  align-items: baseline;
  padding-block: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
}

/* Dünne --line-Trenner zwischen den Schritten */
.step + .step {
  border-top: 1px solid var(--line);
}

.step__num {
  font-size: var(--step-4);
  line-height: 1;
  color: var(--muted);
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}

.step__title {
  font-size: var(--step-2);
  margin-bottom: var(--space-2xs);
}

.step__desc {
  color: var(--muted);
  max-width: 52ch;
}

/* Phone: Nummern kompakter, engerer Abstand */
@media (max-width: 520px) {
  .step {
    grid-template-columns: minmax(2.5rem, auto) 1fr;
    gap: var(--space-m);
  }
  .step__num {
    font-size: var(--step-2);
  }
}

/* =========================================================================
   8f. Positionierung (These + Value-Props)
   ========================================================================= */
.thesis {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-3);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin-top: var(--space-m);
  margin-bottom: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
}

.values {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--line);
}

.value__title {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  font-size: var(--step-0);
  font-weight: 600;
  margin-bottom: var(--space-2xs);
}

/* Simpler geometrischer Marker im Logo-Stil: kleines gerundetes Quadrat */
.value__marker {
  flex: none;
  width: 0.6em;
  height: 0.6em;
  border-radius: 3px;
  background-color: var(--paper);
  transform: translateY(-0.02em);
}

.value__desc {
  color: var(--muted);
  font-size: var(--step--1);
  max-width: 32ch;
}

/* Tablet: 2 Spalten */
@media (max-width: 860px) {
  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: gestapelt */
@media (max-width: 520px) {
  .values {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   8g. Kontakt — invertierter Block als visueller Höhepunkt
   ========================================================================= */
.contact-card {
  --on-invert-muted: color-mix(in srgb, var(--invert-fg) 58%, var(--invert-bg));
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.3rem + 3.4vw, 4rem);
  max-width: 60rem;
}

.contact-card .eyebrow {
  color: var(--on-invert-muted);
  margin-bottom: var(--space-m);
}

.contact-card__title {
  font-size: var(--step-5);
  max-width: 18ch;
  margin-bottom: var(--space-m);
}

.contact-card__subline {
  color: var(--on-invert-muted);
  font-size: var(--step-1);
  max-width: 52ch;
  margin-bottom: var(--space-xl);
}

.contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-bottom: var(--space-2xl);
}

/* Buttons im invertierten Kontext: erneut umdrehen → dunkler Primär-CTA */
.contact-card .btn--invert {
  background-color: var(--invert-fg);
  color: var(--invert-bg);
  border-color: var(--invert-fg);
}

.contact-card .btn--invert:hover {
  background-color: transparent;
  color: var(--invert-fg);
  border-color: var(--invert-fg);
}

.contact-card .btn--ghost {
  color: var(--invert-fg);
  border-color: color-mix(in srgb, var(--invert-fg) 28%, transparent);
}

.contact-card .btn--ghost:hover {
  border-color: var(--invert-fg);
  background-color: color-mix(in srgb, var(--invert-fg) 6%, transparent);
}

/* Kontaktdaten als Mono-Klartext, verlinkt */
.contact-meta {
  display: grid;
  gap: var(--space-2xs);
  padding-top: var(--space-l);
  border-top: 1px solid color-mix(in srgb, var(--invert-fg) 14%, transparent);
}

.contact-meta__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 0.75em;
  font-family: var(--font-mono);
  font-size: var(--step--1);
}

.contact-meta__row dt {
  color: var(--on-invert-muted);
  min-width: 5rem;
}

.contact-meta__row dt::after {
  content: ":";
}

.contact-meta__row dd {
  color: var(--invert-fg);
}

.contact-meta__row a {
  display: inline-block;
  padding-block: 0.25rem; /* vergrößert das Touch-Ziel */
  color: var(--invert-fg);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--invert-fg) 35%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.contact-meta__row a:hover {
  text-decoration-color: var(--invert-fg);
}

/* =========================================================================
   11. Footer
   ========================================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 1.8rem + 3vw, 4rem) var(--space-xl);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-l);
}

.site-footer__logo {
  height: 24px;
  width: auto;
  margin-bottom: var(--space-s);
  filter: invert(0.96); /* echte Invertierung, Motiv-Aussparungen bleiben erhalten */
  opacity: 0.85;
}

.site-footer__desc {
  color: var(--muted);
  font-size: var(--step--1);
  max-width: 42ch;
}

.site-footer__reg {
  margin-top: var(--space-xs);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--muted);
  letter-spacing: 0.02em;
}

.site-footer__nav {
  display: flex;
  gap: var(--space-l);
}

.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem; /* Touch-Ziel */
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-footer__nav a:hover {
  color: var(--paper);
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-s);
  margin-top: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line);
}

.site-footer__copy,
.site-footer__top {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--muted);
  letter-spacing: 0.02em;
}

.site-footer__top {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 2.75rem; /* Touch-Ziel */
  transition: color 0.2s ease;
}

.site-footer__top:hover {
  color: var(--paper);
}

/* =========================================================================
   10. Rechtstexte (Impressum / Datenschutz)
   ========================================================================= */
.legal {
  padding-block: clamp(3rem, 2.2rem + 4vw, 6rem);
}

.legal__inner {
  max-width: var(--prose-max);
}

.legal__title {
  font-size: var(--step-5);
  margin-bottom: var(--space-s);
}

.legal__updated {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--muted);
  margin-bottom: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
}

.legal h2 {
  font-size: var(--step-2);
  margin-top: clamp(2.25rem, 1.6rem + 2.5vw, 3.25rem);
  margin-bottom: var(--space-s);
}

.legal h3 {
  font-size: var(--step-0);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: var(--space-l);
  margin-bottom: var(--space-2xs);
}

.legal p,
.legal li {
  color: color-mix(in srgb, var(--paper) 82%, var(--muted));
}

.legal p + p,
.legal ul + p,
.legal ol + p {
  margin-top: var(--space-s);
}

.legal address {
  font-style: normal;
  line-height: 1.6;
  margin-block: var(--space-xs);
  color: var(--paper);
}

.legal a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.legal a:hover {
  text-decoration-color: var(--paper);
}

.legal ul {
  margin-top: var(--space-s);
  padding-left: 1.25em;
}

.legal li + li {
  margin-top: var(--space-2xs);
}

/* Definitionsliste für Schlüssel/Wert-Angaben (Impressum) */
.legal dl {
  margin-top: var(--space-s);
}

.legal .deflist {
  display: grid;
  grid-template-columns: minmax(9rem, auto) 1fr;
  gap: var(--space-2xs) var(--space-l);
}

.legal .deflist dt {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--muted);
}

.legal .deflist dd {
  color: var(--paper);
}

@media (max-width: 520px) {
  .legal .deflist {
    grid-template-columns: 1fr;
    gap: 0.15rem var(--space-l);
  }
  .legal .deflist dd {
    margin-bottom: var(--space-xs);
  }
}

.legal .deflist dd a {
  display: inline-block;
  padding-block: 0.2rem; /* Touch-Ziel */
}

.legal .back-home {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem; /* Touch-Ziel */
  margin-top: clamp(2.5rem, 1.8rem + 3vw, 4rem);
  font-family: var(--font-mono);
  font-size: var(--step--1);
}

/* =========================================================================
   9. Motion — Hero-Ladesequenz & Motiv-Draw-in
   Nur mit aktivem JS (html.js). Ohne JS: sofort sichtbar.
   ========================================================================= */
.js .hero__reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: heroIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Motiv: Strokes zeichnen sich ein, danach sehr leises Pulsieren */
.js .motif__frame,
.js .motif__spiral {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: motifDraw 2.2s ease forwards;
}

.js .motif__frame {
  animation-delay: 0.2s;
}

.js .motif__spiral {
  animation-delay: 0.45s;
}

.js .motif__core {
  opacity: 0;
  animation: motifCore 0.6s ease forwards;
  animation-delay: 2.2s;
}

.js .motif {
  animation: motifPulse 7s ease-in-out 3s infinite;
}

@keyframes motifDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes motifCore {
  to {
    opacity: 1;
  }
}

@keyframes motifPulse {
  0%,
  100% {
    opacity: 0.9;
  }
  50% {
    opacity: 0.72;
  }
}

/* --- Scroll-Reveals (IntersectionObserver setzt .is-visible) --- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Leichte Staffelung der Karten / Schritte / Value-Props innerhalb einer Liste */
.js .cards .card:nth-child(1),
.js .steps .step:nth-child(1),
.js .values .value:nth-child(1) { --reveal-delay: 0.05s; }
.js .cards .card:nth-child(2),
.js .steps .step:nth-child(2),
.js .values .value:nth-child(2) { --reveal-delay: 0.13s; }
.js .cards .card:nth-child(3),
.js .steps .step:nth-child(3),
.js .values .value:nth-child(3) { --reveal-delay: 0.21s; }
.js .cards .card:nth-child(4),
.js .steps .step:nth-child(4),
.js .values .value:nth-child(4) { --reveal-delay: 0.29s; }

/* Reduced Motion: alles sofort im Endzustand, keine Bewegung */
@media (prefers-reduced-motion: reduce) {
  .js .hero__reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .js .motif__frame,
  .js .motif__spiral {
    stroke-dashoffset: 0;
    animation: none;
  }
  .js .motif__core {
    opacity: 1;
    animation: none;
  }
  .js .motif {
    animation: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
