/* ============================================================
   Farbe-Serie – gemeinsames Grundgerüst der vier Mini-Seiten
   (Pizzeria, Physiotherapie, Dachdecker, Friseur).

   Off-White-Töne und weicher Schatten sind eine Kopie aus
   webdesign-master/design-system/tokens.css (Off-White-Skala,
   Regel FAR-8, Stand 13.11.2026). Geändert wird dort, nicht hier.

   Aufbau jeder Seite: eine Szene von 200vh mit einer sticky Bühne
   (100vh). Der Scroll treibt einen Fortschritt p = 0..1; jede Lage
   ist eine reine Funktion von p (gemeinsam/buehne.js). Alle Maße
   hängen an --e = 1 % der Höhe eines 16:9-Rahmens, damit die
   Komposition auf jedem Desktop-Format identisch bleibt.
   ============================================================ */

:root {
  --ow-neutral-1: #F3F3F3;
  --ow-creme:  #FBF6EE;
  --ow-salbei: #F3F6F1;
  --ow-stein:  #EEF0F2;
  --ow-rose:   #FBF5F4;
  --shadow-tint: 220 40% 12%;
  --shadow-weich:
    0 1px 2px hsl(var(--shadow-tint) / 0.04),
    0 12px 24px -12px hsl(var(--shadow-tint) / 0.10),
    0 32px 64px -24px hsl(var(--shadow-tint) / 0.14);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-base: 250ms;
  --radius-full: 999px;

  /* 1 e = 1 % der Rahmenhöhe (16:9-Rahmen, zentriert) */
  --e: min(1vh, calc(100vw * 0.5625 / 100));
  --rahmen-b: calc(var(--e) * 177.78);
  --rahmen-h: calc(var(--e) * 100);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--grund); color: var(--tinte); }
body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: none; user-select: none; -webkit-user-drag: none; }
a { color: inherit; }

/* ---------- Szene und Bühne ---------- */
.szene { position: relative; height: 200vh; }
.buehne {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.rahmen {
  position: absolute; left: 50%; top: 50%;
  width: var(--rahmen-b); height: var(--rahmen-h);
  transform: translate(-50%, -50%);
}
.lage { position: absolute; will-change: transform; }

/* feines Korn über allem (statisch, 5 %) */
.buehne::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 50;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='k'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.2 0'/></filter><rect width='100%' height='100%' filter='url(%23k)'/></svg>");
}

/* ---------- Kopfzeile ---------- */
.kopf {
  position: absolute; left: 0; right: 0; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--e) * 4) calc(var(--e) * 6);
  transition: color var(--dur-base) var(--ease-standard);
}
.marke {
  font-size: calc(var(--e) * 2.4); letter-spacing: -0.01em; text-decoration: none;
}

/* ---------- Pillen ---------- */
.pillen { display: flex; gap: calc(var(--e) * 1.4); }
.pille {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; height: calc(var(--e) * 6);
  padding: 0 calc(var(--e) * 3.2);
  border-radius: var(--radius-full);
  font-size: calc(var(--e) * 1.9); text-decoration: none; white-space: nowrap;
  border: 1.5px solid currentColor;
  transition: transform var(--dur-base) var(--ease-standard), background-color var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard);
}
.pille:hover { transform: translateY(-2px); }
.pille:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.pille--voll { background: var(--akzent); border-color: var(--akzent); color: var(--auf-akzent); }

/* ---------- Hinweis „fiktiv“ ---------- */
.fiktiv {
  position: absolute; right: calc(var(--e) * 6); bottom: calc(var(--e) * 3.4); z-index: 40;
  font-size: calc(var(--e) * 1.3); opacity: 0.55; margin: 0;
}
.aufnahme .fiktiv { display: none; }

.sr-nur {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Ohne Bewegung: Endzustand, keine Scrollstrecke ---------- */
.ruhig .szene { height: auto; }
.ruhig .buehne { position: relative; }
