/* pd-ic – Philipp Daniel · innovative computing
   Ein Stylesheet für alle Seiten. Keine Frameworks, keine Build-Tools.
   Farben aus dem CI: Petrol #00667D (Balken), #389AAF (Punkte). */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Farben & Maße ---------- */
:root {
  color-scheme: dark light;
  accent-color: var(--accent);
  --bg: #061216;
  --surface: #0b1b20;
  --fg: #ecf4f6;
  --muted: #9db3b9;
  --subtle: #6d868d;
  --line: #16303a;
  --line-strong: #24444f;
  --dot: #12282f;
  --accent: #4fb8cf;
  --accent-ink: #061216;
  --brand-bar: #2b93ab;   /* Logo-Balken, für dunklen Grund aufgehellt */
  --brand-dot: #5cc3d9;   /* Logo-Punkte, für dunklen Grund aufgehellt */
  --brand-text: #5cc3d9;  /* Petrol als Textfarbe (≥ 4,5:1) */
  --glow: rgba(56, 154, 175, 0.16);
  /* Pixel-Effekt (assets/site.js liest diese Werte) */
  --pixel-a: 0.6;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 66rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 12px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f9fa;
    --surface: #ffffff;
    --fg: #0a1d23;
    --muted: #4b6169;
    --subtle: #5a6f76;
    --line: #dbe6e9;
    --line-strong: #c3d3d8;
    --dot: #cfdde1;
    --accent: #00667d;
    --accent-ink: #ffffff;
    --brand-bar: #00667d;
    --brand-dot: #389aaf;
    --brand-text: #267688;
    --glow: rgba(56, 154, 175, 0.14);
    --pixel-a: 0.5;
  }
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-size-adjust: from-font;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Punktraster im Hintergrund (Logo-Punkte), zu den Rändern ausgeblendet – reines CSS */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--dot) 1.3px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 25%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 25%, transparent 100%);
}

/* Canvas für den Pixel-Effekt, wird von site.js eingefügt */
#pixels { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.site-header, main, .site-footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: -999px; top: 0.5rem; z-index: 10;
  background: var(--fg); color: var(--bg); padding: 0.5rem 1rem; border-radius: 6px;
}
.skip:focus { left: 0.5rem; }

/* ---------- Logo-Signet (Inline-SVG) ---------- */
.mark { display: block; height: auto; }
.mark .b { fill: var(--brand-bar); }
.mark .d { fill: var(--brand-dot); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }

.logo { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.logo .mark { width: 15px; }
.wordmark { display: grid; line-height: 1.1; }
.wordmark b { font-weight: 500; font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg); }
.wordmark small { font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brand-text); margin-top: 0.2rem; }

.nav { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; font-size: 0.9rem; }
.nav-list {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem;
  /* Browser-Standardstile für [popover] zurücksetzen – in der breiten Ansicht ist die Liste normal inline */
  position: static; inset: auto; margin: 0; padding: 0; border: 0;
  inline-size: auto; block-size: auto; overflow: visible; color: inherit; background: none;
}
.nav a { color: var(--muted); text-decoration: none; transition: color .15s; }
.nav a:hover { color: var(--fg); }
/* Aktuelle Seite nicht nur über Farbe kennzeichnen */
.nav a[aria-current="page"] { color: var(--fg); text-decoration: underline 2px var(--brand-dot); text-underline-offset: 6px; }
.nav .lang {
  display: inline-grid; place-items: center; min-block-size: 1.75rem; min-inline-size: 2.25rem;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.05em;
  border: 1px solid var(--line-strong); border-radius: 6px; padding: 0.2rem 0.45rem;
}
.menu-button { display: none; }

/* Schmale Ansicht: Navigation als natives Popover (ohne JS, ohne ARIA-Menü-Muster).
   Browser ohne Popover-Support zeigen die Links einfach umbrechend in der Zeile. */
@supports selector(:popover-open) {
  @media (max-width: 52em) {
    .menu-button {
      display: inline-flex; align-items: center; gap: 0.5rem;
      min-block-size: 2.25rem; padding: 0.35rem 0.8rem;
      font: inherit; font-size: 0.9rem; color: var(--fg);
      background: none; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer;
    }
    .menu-button:hover { border-color: var(--accent); }
    .menu-icon { display: grid; grid-template-columns: repeat(3, 3px); gap: 2px; }
    .menu-icon i { block-size: 12px; border-radius: 2px; background: var(--brand-bar); }
    .menu-icon i:nth-child(2) { block-size: 3px; align-self: end; border-radius: 50%; background: var(--brand-dot); }
    .nav-list:not(:popover-open) { display: none; }
    .nav-list:popover-open {
      display: grid; gap: 0; position: fixed; inset: 4.5rem var(--gutter) auto auto; margin: 0;
      min-inline-size: 15rem; max-block-size: calc(100dvh - 6rem); overflow: auto;
      padding: 0.5rem; color: var(--fg); background: var(--surface);
      border: 1px solid var(--line-strong); border-radius: var(--radius);
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    }
    .nav-list:popover-open a { display: block; padding: 0.7rem 0.9rem; border-radius: 8px; font-size: 1rem; }
    .nav-list:popover-open a:hover { background: color-mix(in srgb, var(--brand-dot) 12%, transparent); }
    @media (prefers-reduced-motion: no-preference) {
      .nav-list:popover-open { transition: opacity .15s, translate .15s, display .15s, overlay .15s; transition-behavior: allow-discrete; }
      @starting-style { .nav-list:popover-open { opacity: 0; translate: 0 -0.5rem; } }
    }
  }
}
@media (max-width: 52em) { .site-header .wrap { min-height: 3.75rem; } }


/* ---------- Buttons, Chips, Kicker ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.15rem; border-radius: 999px;
  font-size: 0.95rem; font-weight: 500; text-decoration: none;
  border: 1px solid var(--line-strong);
  transition: transform .15s, background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  font-family: var(--mono); font-size: 0.75rem; line-height: 1;
  color: var(--muted); padding: 0.4rem 0.6rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
}

/* Kicker mit Mini-Signet: ein Balken, dahinter so viele Punkte wie die Abschnittsnummer (data-n) */
.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.78rem; color: var(--subtle);
  letter-spacing: 0.06em; text-transform: uppercase;
  --k-bar:
    radial-gradient(circle at 3px 3px, var(--brand-bar) 2.9px, transparent 3.2px) 0 0 / 6px 6px no-repeat border-box,
    radial-gradient(circle at 3px 3px, var(--brand-bar) 2.9px, transparent 3.2px) 8px 0 / 6px 6px no-repeat border-box,
    linear-gradient(var(--brand-bar), var(--brand-bar)) 3px 0 / 8px 6px no-repeat border-box;
  --k-dots: radial-gradient(circle at 3px 3px, var(--brand-dot) 2.9px, transparent 3.2px) 0 0 / 8px 6px repeat-x content-box;
}
.kicker::before {
  content: ""; flex: none; box-sizing: content-box; height: 6px;
  width: 14px; background: var(--k-bar);
}
.kicker[data-n]::before { padding-left: 18px; width: calc(var(--n) * 8px - 2px); background: var(--k-bar), var(--k-dots); }
.kicker[data-n="1"] { --n: 1; }
.kicker[data-n="2"] { --n: 2; }
.kicker[data-n="3"] { --n: 3; }
.kicker[data-n="4"] { --n: 4; }
.kicker[data-n="5"] { --n: 5; }
.kicker[data-n="6"] { --n: 6; }

.status {
  display: inline-flex; align-items: baseline; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.8rem; color: var(--muted);
}
.status .dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-dot);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-dot) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 8px transparent; }
}
@media (prefers-reduced-motion: reduce) { .status .dot { animation: none; } }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center;
  padding-block: clamp(4rem, 11vw, 8rem) clamp(3rem, 8vw, 5.5rem);
}
.hero h1 { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.9rem); margin-top: 1.25rem; letter-spacing: -0.045em; }
.hero h1 .accent { color: var(--brand-text); }
.hero .lead { margin-top: 1.75rem; max-width: 40rem; font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem); color: var(--muted); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.hero .status { margin-top: 2.25rem; }

/* Großes Signet im Hero: Punkte „atmen“ leicht */
.hero-mark { width: clamp(90px, 11vw, 150px); margin-right: clamp(0rem, 3vw, 3rem); }
.hero-mark .d { animation: blink 4s ease-in-out infinite; }
.hero-mark .d:nth-of-type(2) { animation-delay: .4s; }
.hero-mark .d:nth-of-type(3) { animation-delay: .8s; }
.hero-mark .d:nth-of-type(4) { animation-delay: 1.2s; }
.hero-mark .d:nth-of-type(5) { animation-delay: 1.6s; }
.hero-mark .d:nth-of-type(6) { animation-delay: 2s; }
.hero-mark .d:nth-of-type(7) { animation-delay: 2.4s; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .hero-mark .d { animation: none; } }
@media (max-width: 51.25em) { .hero { grid-template-columns: 1fr; } .hero-mark { display: none; } }

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(4rem, 10vw, 7rem); }
.section-head { display: grid; gap: 0.9rem; justify-items: start; margin-bottom: clamp(2rem, 5vw, 3.25rem); max-width: 46rem; }
.section-head h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
.section-head p { color: var(--muted); }

/* Karten mit Spotlight (Position kommt aus site.js, ohne JS einfach ohne Licht) */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 47.5em) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  position: relative; isolation: isolate;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  overflow: hidden;
  transition: border-color .2s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), var(--glow), transparent 45%);
}
.card:hover { border-color: var(--line-strong); }
.card .num { font-family: var(--mono); font-size: 0.75rem; color: var(--brand-text); }
.card h3 { font-size: 1.3rem; margin-top: 0.9rem; letter-spacing: -0.02em; }
.card p { margin-top: 0.7rem; color: var(--muted); font-size: 0.98rem; }
.card .chips { margin-top: 1.25rem; }
.card-feature { border-color: color-mix(in srgb, var(--brand-dot) 45%, var(--line)); }

/* Projekte */
.case .meta { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: 0.75rem; color: var(--subtle); }
.case .result {
  margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px dashed var(--line-strong);
  font-size: 0.92rem; color: var(--fg);
}
.case .result::before { content: "→ "; color: var(--accent); font-family: var(--mono); }

/* Arbeitsweise: aus losen Punkten (Idee) werden Schritt für Schritt Balken (Ergebnis) */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flow li { position: relative; padding-top: 1.4rem; container-type: inline-size; }
.flow li::before, .flow li::after { content: ""; position: absolute; left: 0; top: 0; height: 6px; }
.flow li::before {
  right: 0; box-sizing: border-box; padding-left: var(--solid, 0);
  background: radial-gradient(circle at 3px 3px, var(--brand-dot) 2.9px, transparent 3.2px) 0 0 / 12px 6px repeat-x content-box;
}
.flow li::after { width: var(--bar, 0); border-radius: 3px; background: var(--brand-bar); }
.flow li:nth-child(2) { --bar: 34%; --solid: calc(34% + 8px); }
.flow li:nth-child(3) { --bar: 31%; --solid: calc(62% + 16px); }
.flow li:nth-child(3)::after { box-shadow: calc(31cqi + 8px) 0 0 var(--brand-bar); }
.flow li:nth-child(4) { --bar: 100%; --solid: 100%; }
.flow small { display: block; font-family: var(--mono); font-size: 0.75rem; color: var(--brand-text); }
/* Nummern fest statt per CSS-Zähler: container-type kapselt Zähler, Safari zeigte dadurch überall „00“ */
.flow li:nth-child(1) small::before { content: "01 · "; }
.flow li:nth-child(2) small::before { content: "02 · "; }
.flow li:nth-child(3) small::before { content: "03 · "; }
.flow li:nth-child(4) small::before { content: "04 · "; }
.flow b { display: block; margin-top: 0.4rem; font-weight: 600; font-size: 1.1rem; line-height: 1.3; letter-spacing: -0.01em; }
.flow span { display: block; margin-top: 0.5rem; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 53.75em) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 32.5em) { .flow { grid-template-columns: 1fr; } }

.ai-note {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center;
  padding: 1.25rem 1.5rem; border-radius: var(--radius);
  border: 1px dashed var(--line-strong); color: var(--muted); font-size: 0.97rem;
}
.ai-note .mark { width: 12px; }
.ai-note strong { color: var(--fg); font-weight: 500; }

/* Über mich: Foto + Text + Grundsätze */
.about { display: grid; grid-template-columns: minmax(0, 20rem) 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about .section-head { margin-bottom: 1.5rem; }
.about .text { color: var(--muted); max-width: 42rem; }
.about .text p + p { margin-top: 1rem; }
.about .text strong { color: var(--fg); font-weight: 500; }
.photo { margin: 0; }
.photo img {
  display: block; inline-size: 100%; block-size: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface);
}
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; margin-top: 2rem; }
.rules li { border-left: 2px solid var(--brand-bar); padding-left: 1rem; }
.rules b { display: block; font-weight: 600; font-size: 1rem; line-height: 1.3; letter-spacing: -0.01em; }
.rules span { display: block; margin-top: 0.3rem; color: var(--muted); font-size: 0.93rem; }
@media (max-width: 51.25em) {
  .about { grid-template-columns: 1fr; }
  .about .photo { max-inline-size: 22rem; }
}
@media (max-width: 32.5em) { .rules { grid-template-columns: 1fr; } }

/* Kontakt */
.contact h2 { margin-top: 1rem; font-size: clamp(2.25rem, 1.3rem + 4vw, 4.25rem); letter-spacing: -0.045em; }
.contact h2 .accent { color: var(--brand-text); }
.contact .lead { margin-top: 1.25rem; color: var(--muted); max-width: 38rem; }
.contact-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.contact-links > a, .contact-links > div:not(.has-copy), .contact-links .has-copy > a {
  display: block; padding: 1.1rem 1.25rem; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  transition: border-color .15s;
}
.contact-links a:hover { border-color: var(--accent); }
.contact-links .has-copy { position: relative; }
.contact-links .has-copy > a { height: 100%; }
.contact-save { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 1.25rem; color: var(--subtle); font-size: 0.9rem; }
.contact-save > p { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
/* QR-Code nur auf großen Bildschirmen mit Maus – auf dem Handy selbst ist Scannen sinnlos */
.qr { display: flex; align-items: center; gap: 1rem; margin: 0; }
.qr img { inline-size: 130px; block-size: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.qr figcaption { max-inline-size: 13rem; }
@media (max-width: 47.5em), (pointer: coarse) { .qr { display: none; } }
.copy {
  position: absolute; top: 0.75rem; right: 0.75rem;
  font: inherit; font-family: var(--mono); font-size: 0.7rem; line-height: 1; color: var(--muted);
  padding: 0.4rem 0.65rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); cursor: pointer; transition: border-color .15s, color .15s;
}
.copy:hover { border-color: var(--accent); color: var(--fg); }
.copy[hidden] { display: none; }
.contact-links small { display: block; font-family: var(--mono); font-size: 0.72rem; color: var(--subtle); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-links span { display: block; margin-top: 0.35rem; font-size: 1rem; overflow-wrap: anywhere; }
@media (max-width: 47.5em) { .contact-links { grid-template-columns: 1fr; } }

/* ---------- Unterseiten (Impressum, Datenschutz, 404) ---------- */
.page-head { padding-block: clamp(3.5rem, 10vw, 6.5rem) 0; }
.page-head h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); margin-top: 1rem; letter-spacing: -0.04em; }
.page-head .role { margin-top: 0.75rem; font-size: 1.15rem; color: var(--muted); }
.page-head .status { margin-top: 1.5rem; }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- Rechtstexte ---------- */
.legal { padding-block: clamp(3.5rem, 9vw, 6rem); max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.legal h2 { font-size: 1.2rem; margin-top: 2.5rem; letter-spacing: -0.015em; }
.legal p, .legal ul, .legal address { margin-top: 0.75rem; color: var(--muted); font-size: 0.97rem; font-style: normal; }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal li + li { margin-top: 0.3rem; }
.legal strong { color: var(--fg); font-weight: 500; }
.legal .stand { margin-top: 3rem; font-family: var(--mono); font-size: 0.8rem; color: var(--subtle); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem 2.5rem; font-size: 0.85rem; color: var(--subtle); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--fg); }
.site-footer .note { font-family: var(--mono); font-size: 0.75rem; }

/* ---------- Bewegung: Seitenübergänge & Einblenden beim Scrollen ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .card, .flow li, .rules li, .contact-links > * {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
}
@keyframes reveal { from { opacity: 0; translate: 0 1.25rem; } }

/* ---------- Druck ---------- */
@media print {
  body::before, #pixels, .site-header, .site-footer, .actions, .skip, .hero-mark { display: none !important; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .card { background: none; }
  a { text-decoration: none; }
}
