/* Kreis Systems phone mockup P3 "Stapel" (built on mockup B "Satz"): all styles.
   Tokens first, then base, the shared parts (header, menu, buttons, cards, tabs, dock), then one block per card in page order. */

/* ---------- Fonts: Chivo variable, upright and italic of the same family ---------- */
@font-face {
  font-family: "Chivo";
  src: url("/fonts/chivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Chivo";
  src: url("/fonts/chivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Chivo";
  src: url("/fonts/chivo-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
/* Metric-matched fallback so the swap to Chivo does not shift the layout (Chivo is wide). */
@font-face {
  font-family: "Chivo Fallback";
  src: local("Arial");
  size-adjust: 108%;
  ascent-override: 88%;
  descent-override: 23%;
}

/* ---------- Tokens ---------- */
:root {
  /* Palette "Vollfarb" (brand brief section 3); no #000, no #fff. Tiefnacht is the table the cards lie on. */
  --blau: #2238b8;
  --gelb: #ffe344;
  --koralle: #fb794a;
  --creme: #faf4dd;
  --rosa: #fab0d9;
  --nacht: #09105b;
  --tiefnacht: #07072a;

  /* Motion tokens (Material 3 values; exit about 70 % of entry). */
  --dur-press: 100ms;
  --dur-fast: 150ms;
  --dur-moderate: 300ms;
  --dur-moderate-out: 200ms;
  --dur-slow: 500ms;
  --dur-slow-out: 350ms;
  --ease-move: cubic-bezier(0.2, 0, 0, 1);
  --ease-enter: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ease-exit: cubic-bezier(0.3, 0, 0.8, 0.15);

  /* One column; side margins respect the safe areas of notched phones. */
  --m: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-h: calc(64px + var(--safe-top));
  --card-pad-top: calc(var(--nav-h) + 32px);
  --card-pad-bottom: 112px;
  --overlap: 28px;

  /* Radii: three values only (E8). */
  --r-card: 28px;
  --r-shot: 14px;
  --round: 999px;

  /* Type: body 17 px, scale 1.25. */
  --t-label: 0.78125rem;
  --t-small: 0.875rem;
  --t-body: 1.0625rem;
  --t-l: 1.3125rem;
  --t-title: 2.125rem;

  --font: "Chivo", "Chivo Fallback", system-ui, sans-serif;
  --col: 480px; /* the phone column; wider screens see it centred on the table */
}

/* Surfaces: each card is one Vollfarb colour; text, accent and action follow the brand rules. */
[data-surface="blau"] { --bg: var(--blau); --fg: var(--creme); --accent: var(--gelb); --muted: color-mix(in oklab, var(--creme) 80%, var(--blau)); --line: color-mix(in oklab, var(--creme) 34%, var(--blau)); --action-bg: var(--koralle); --action-fg: var(--nacht); --press: var(--gelb); --logo-ring: var(--creme); --logo-core: var(--koralle); --logo-big: var(--gelb); --logo-small: var(--koralle); }
[data-surface="nacht"] { --bg: var(--nacht); --fg: var(--creme); --accent: var(--gelb); --muted: color-mix(in oklab, var(--creme) 76%, var(--nacht)); --line: color-mix(in oklab, var(--creme) 26%, var(--nacht)); --action-bg: var(--koralle); --action-fg: var(--nacht); --press: var(--gelb); --logo-ring: var(--creme); --logo-core: var(--koralle); --logo-big: var(--gelb); --logo-small: var(--koralle); }
[data-surface="creme"] { --bg: var(--creme); --fg: var(--nacht); --accent: var(--blau); --muted: color-mix(in oklab, var(--nacht) 78%, var(--creme)); --line: color-mix(in oklab, var(--nacht) 22%, var(--creme)); --action-bg: var(--koralle); --action-fg: var(--nacht); --press: var(--nacht); --logo-ring: var(--blau); --logo-core: var(--koralle); --logo-big: var(--nacht); --logo-small: var(--koralle); }
[data-surface="gelb"] { --bg: var(--gelb); --fg: var(--nacht); --accent: var(--blau); --muted: color-mix(in oklab, var(--nacht) 80%, var(--gelb)); --line: color-mix(in oklab, var(--nacht) 26%, var(--gelb)); --action-bg: var(--koralle); --action-fg: var(--nacht); --press: var(--nacht); --logo-ring: var(--nacht); --logo-core: var(--koralle); --logo-big: var(--nacht); --logo-small: var(--koralle); }
[data-surface="rosa"] { --bg: var(--rosa); --fg: var(--nacht); --accent: var(--blau); --muted: color-mix(in oklab, var(--nacht) 82%, var(--rosa)); --line: color-mix(in oklab, var(--nacht) 26%, var(--rosa)); --action-bg: var(--koralle); --action-fg: var(--nacht); --press: var(--nacht); --logo-ring: var(--nacht); --logo-core: var(--koralle); --logo-big: var(--nacht); --logo-small: var(--koralle); }
[data-surface="koralle"] { --bg: var(--koralle); --fg: var(--nacht); --accent: var(--nacht); --muted: color-mix(in oklab, var(--nacht) 86%, var(--koralle)); --line: color-mix(in oklab, var(--nacht) 32%, var(--koralle)); --action-bg: var(--nacht); --action-fg: var(--creme); --press: var(--gelb); --logo-ring: var(--nacht); --logo-core: var(--nacht); --logo-big: var(--nacht); --logo-small: var(--nacht); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--tiefnacht);
  scroll-padding-top: var(--nav-h);
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0 auto;
  max-width: var(--col);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.55;
  font-weight: 350;
  color: var(--nacht);
  background: var(--tiefnacht);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
em { font-style: italic; }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
:focus-visible { outline: 2px solid var(--fg, var(--nacht)); outline-offset: 3px; }
::selection { background: var(--gelb); color: var(--nacht); }

.wrap { padding-inline: var(--m); container-type: inline-size; }
.accent { color: var(--accent); font-style: italic; }

.skip-link {
  position: fixed; z-index: 100; left: var(--m); top: calc(8px + var(--safe-top));
  padding: 12px 18px; border-radius: var(--round);
  background: var(--gelb); color: var(--nacht); font-weight: 600;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.label {
  display: flex; align-items: center; flex-wrap: wrap;
  font-size: var(--t-label); line-height: 1.3; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg);
}
.label .sep { color: var(--muted); margin: 0 0.5em; }
.label__dot { display: inline-block; width: 9px; height: 9px; margin-right: 12px; border-radius: var(--round); background: currentColor; flex: none; }

.section-head { display: grid; gap: 18px; margin-bottom: 40px; }
.section-title {
  font-size: var(--t-title); line-height: 1.06; font-weight: 300; letter-spacing: -0.025em;
  text-wrap: balance;
}
.section-intro { color: var(--muted); max-width: 34ch; text-wrap: pretty; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  text-decoration-color: color-mix(in oklab, currentColor 45%, transparent);
}
.text-link--arrow { text-decoration: none; border-bottom: 1px solid currentColor; min-height: 48px; margin-block: 2px; } /* 48: stays above 44 while a card steps back */
.text-link--arrow .icon { transition: transform var(--dur-fast) var(--ease-move); }
.text-link--arrow:active .icon { transform: translateX(4px); }
.micro { display: block; margin-top: 6px; font-size: var(--t-label); color: var(--muted); }

/* ---------- Buttons: the main action is Koralle (the core of the mark), and only the main action. ---------- */
.button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 12px 22px; border-radius: var(--round);
  font-weight: 600; font-size: var(--t-body); line-height: 1.2; letter-spacing: -0.005em; text-align: center;
  overflow: hidden; isolation: isolate;
  transition: transform var(--dur-press) var(--ease-move);
}
.button--main { background: var(--action-bg); color: var(--action-fg); }
.button__label { text-wrap: balance; }
.button .icon { position: relative; z-index: 1; }
.button__label { position: relative; z-index: 1; }
.button.is-pressed { transform: scale(0.97); }
/* Press feedback: a circle grows from the finger (the Kreis), in the colour the surface allows. */
.press-ring {
  position: absolute; z-index: 0; left: 0; top: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-radius: var(--round); background: var(--press); opacity: 0.22; pointer-events: none;
  transform: scale(0);
}
.button--hero { width: 100%; min-height: 64px; padding-inline: 20px; font-size: max(14px, min(1.0625rem, calc((100cqi - 72px) / 13.4))); }
.button--block { width: 100%; min-height: 60px; }

/* ---------- Header: logo with the live orbit, "Menü"; colours follow the card under it. ---------- */
.nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0; margin-inline: auto; max-width: var(--col);
  color: var(--fg); pointer-events: none;
  transition: color var(--dur-fast) var(--ease-move);
}
.nav__bar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: var(--nav-h); padding: var(--safe-top) var(--m) 0;
}
.nav__bar > * { pointer-events: auto; }
.nav__logo { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding-right: 8px; }
/* Compact header after the first scroll: the mark sits in a round chip of the card colour, the wordmark steps aside,
   "Menü" gets a solid fill, so content passing under the header never collides with them. */
.nav__logo::before {
  content: ""; position: absolute; left: -7px; top: 50%; width: 50px; height: 50px; margin-top: -25px; border-radius: var(--round);
  background: var(--bg); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, currentColor 30%, transparent);
  opacity: 0; transform: scale(0.6);
  transition: opacity var(--dur-fast) var(--ease-exit), transform var(--dur-moderate-out) var(--ease-exit), background-color var(--dur-fast) var(--ease-move);
}
.nav__logo .logo-mark { position: relative; }
.wordmark { transition: opacity var(--dur-moderate) var(--ease-enter), transform var(--dur-moderate) var(--ease-enter); }
.nav.is-compact .nav__logo::before { opacity: 1; transform: none; transition: opacity var(--dur-fast) var(--ease-enter), transform var(--dur-moderate) var(--ease-enter), background-color var(--dur-fast) var(--ease-move); }
.nav.is-compact .nav__bar .wordmark { opacity: 0; transform: translateX(-10px); transition-duration: var(--dur-moderate-out); transition-timing-function: var(--ease-exit); }
.nav.is-compact .nav__toggle, .nav.is-open .nav__toggle { background: var(--bg); }
.logo-mark { width: 36px; height: 36px; flex: none; overflow: visible; }
.logo-mark .logo__ring { stroke: var(--logo-ring); transition: stroke var(--dur-fast) var(--ease-move); }
.logo-mark .logo__core { fill: var(--logo-core); transition: fill var(--dur-fast) var(--ease-move); }
.logo-mark .logo__big { fill: var(--logo-big); transition: fill var(--dur-fast) var(--ease-move); }
.logo-mark .logo__small { fill: var(--logo-small); transition: fill var(--dur-fast) var(--ease-move); }
.wordmark { font-size: 1.0625rem; letter-spacing: -0.01em; white-space: nowrap; }
.wordmark__a { font-weight: 700; }
.wordmark__b { font-weight: 400; }
.nav__toggle {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 18px 0 20px; border-radius: var(--round);
  border: 1.5px solid color-mix(in oklab, currentColor 55%, transparent);
  font-weight: 500; font-size: 0.9375rem;
  transition: transform var(--dur-press) var(--ease-move), background-color var(--dur-fast) var(--ease-move);
}
.nav__toggle:active { transform: scale(0.96); }
.nav__toggle[hidden] { display: none; }
.nav__toggle-dot { width: 8px; height: 8px; border-radius: var(--round); background: var(--koralle); }
.nav[data-surface="koralle"] .nav__toggle-dot { background: var(--nacht); }

/* Menu: a full-screen Gelb panel that grows as a circle out of "Menü" and shrinks back into it. */
.menu {
  position: fixed; z-index: 1; inset: 0; margin-inline: auto; max-width: var(--col);
  background: var(--bg); color: var(--fg); pointer-events: auto;
  overflow-y: auto; overscroll-behavior: contain;
}
.menu[hidden] { display: none; }
/* A strip of the menu colour sticks under the header bar: entries scrolled in a tall menu pass under it instead of
   through the logo and "Schließen". It is part of the menu, so it grows and shrinks with the circle. */
.menu::before {
  content: ""; display: block; position: sticky; top: 0; z-index: 1;
  height: var(--nav-h); margin-bottom: calc(-1 * var(--nav-h)); background: var(--bg);
}
.menu__inner {
  min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--nav-h) + 16px) var(--m) calc(20px + var(--safe-bottom));
}
.menu__links { border-top: 1px solid var(--line); }
.menu__links li { border-bottom: 1px solid var(--line); }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px; min-height: 64px; padding: 10px 0;
  font-size: clamp(2rem, 10.5cqi, 2.75rem); line-height: 1.05; font-weight: 300; letter-spacing: -0.03em;
}
.menu__main { container-type: inline-size; }
.menu__links a[aria-current] .menu__word { font-weight: 700; font-style: italic; }
.menu__links a:active .menu__word { text-decoration: underline; text-decoration-thickness: 0.05em; text-underline-offset: 0.12em; }
.menu__num { font-size: var(--t-label); font-weight: 500; letter-spacing: 0.06em; width: 22px; color: var(--muted); }
.menu__side { display: grid; gap: 20px; }
.menu__products { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.menu__products a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px;
  min-height: 64px; padding: 12px 14px; border-radius: var(--r-shot); border: 1px solid var(--line);
}
.menu__product { font-weight: 600; }
.menu__domain { grid-column: 1; font-size: 0.75rem; color: var(--muted); }
.menu__products .icon { grid-row: 1 / span 2; grid-column: 2; }
.menu__contact { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.menu__contact a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 500; }
.nav.is-open { color: var(--nacht); }

/* ---------- The stack: every section is a card on the table ---------- */
.stack { position: relative; z-index: 1; }
/* The card holds (sticky) and is never transformed, so its box is always the true position; its face steps back. */
.card { position: relative; color: var(--fg); }
.stack > .card ~ .card { margin-top: calc(-1 * var(--overlap)); }
.card-mark { height: 0; }
.card__face {
  position: relative; background: var(--bg);
  border-radius: var(--r-card) var(--r-card) 0 0;
  padding: var(--card-pad-top) 0 var(--card-pad-bottom);
}
.hero .card__face { border-radius: 0; padding: 0; }
/* With motion the cards hold on top of each other (sticky); the top offset of tall cards comes from js/stack.js.
   The space below the content lets the last lines reach the middle of the screen before the next card covers them. */
.motion .card { position: sticky; top: var(--stick, 0px); }
.motion .card__face { padding-bottom: max(var(--card-pad-bottom), 40svh); }
.motion .hero .card__face { padding-bottom: 0; }
/* Haltung: the card must not exceed one screen, or it holds with its top cut off (stack.js sticks tall cards by their end);
   its scroll time comes from data-hold, so the sentence stays mid-screen while the words gain weight. */
.motion .manifest .card__face { padding-bottom: var(--card-pad-bottom); }
.motion .hero__more { padding-bottom: max(var(--card-pad-bottom), 40svh); }
.card__shade { position: absolute; inset: 0; z-index: 5; border-radius: inherit; background: var(--sink, var(--tiefnacht)); opacity: 0; pointer-events: none; }
/* A fully covered card is not painted (opacity 0 keeps it in the accessibility tree, unlike visibility). */
.card.is-covered > .card__face { opacity: 0; }
.hold { height: 0; }
.motion .hold { height: var(--hold); }

/* Tabs: cards inside a card pile up, their tops stay visible. */
.tabs { display: grid; gap: 16px; }
.tab { position: relative; background: var(--bg); color: var(--fg); border-radius: var(--r-card); }
.motion .tab { position: sticky; top: calc(var(--nav-h) + 8px + var(--i) * var(--tab-step)); transform-origin: 50% 0; }
.tab .card__shade { border-radius: var(--r-card); }
.tabs { --sink: var(--bg); } /* a covered tab sinks into the colour of its section, not into grey */

/* ---------- 1 Hero ---------- */
.hero__view {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 3.2svh, 32px);
  padding-top: calc(var(--nav-h) + 8px); padding-bottom: calc(24px + var(--safe-bottom));
  /* The cards of the hand start larger and turned (deck.js); their invisible corners must not widen the page while they deal. */
  overflow-x: clip;
}
.hero__title {
  display: grid; justify-items: center; text-align: center;
  /* 5.65, not 5.5: the longest line "deine Arbeit." stays inside the column, so the claim sits in the middle. */
  font-size: calc(100cqi / 5.65); line-height: 0.98; font-weight: 300; letter-spacing: -0.03em;
}
.hero__line { display: block; white-space: nowrap; }
.hero__we { font-weight: 300; }

.deck-wrap { position: relative; height: clamp(200px, 32svh, 290px); margin-bottom: 34px; }
/* Short portrait screens (iPhone SE with the Safari bars, about 375 x 553): a smaller hand and claim keep the main
   action whole in the first view. Landscape keeps its layout. */
@media (max-height: 600px) and (orientation: portrait) {
  .deck-wrap { height: clamp(140px, 24svh, 290px); margin-bottom: 20px; }
  .hero__title { font-size: min(calc(100cqi / 5.65), 9.4svh); }
}
.deck { position: absolute; inset: 0; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.deck__card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px 20px 20px; border-radius: var(--r-card);
  background: var(--bg); color: var(--fg); container-type: inline-size;
  transform-origin: 50% 100%;
  transform: translateY(calc(var(--pos) * 13px)) scale(calc(1 - var(--pos) * 0.05));
  z-index: calc(4 - var(--pos));
  box-shadow: 0 1px 0 color-mix(in oklab, var(--tiefnacht) 18%, transparent);
}
.deck__card:nth-child(2) { rotate: -1.6deg; }
.deck__card:nth-child(3) { rotate: 1.3deg; }
.deck__card:nth-child(4) { rotate: -0.8deg; }
.motion .deck__card { rotate: none; }
.deck__index { font-size: var(--t-label); font-weight: 500; letter-spacing: 0.08em; }
.deck__of { color: var(--muted); }
.deck__word {
  font-size: calc(100cqi / 6.7); line-height: 1; font-weight: 800; font-style: italic; letter-spacing: -0.03em;
  white-space: nowrap; color: var(--accent);
}
.deck__card[data-surface="gelb"] .deck__word,
.deck__card[data-surface="rosa"] .deck__word { color: var(--nacht); }
.deck__note { font-size: var(--t-small); color: var(--muted); }
/* The Orbit mark in one colour as the suit of the card, bottom right, like the corner symbol of a playing card. */
.deck__suit { position: absolute; right: 16px; bottom: 14px; width: 40px; height: 40px; color: var(--fg); opacity: 0.85; }
.deck__note { padding-right: 52px; }
.motion .deck { opacity: 0; }
.motion .deck.is-dealt, .deck-fallback .deck { opacity: 1; }

.deck__pause {
  position: absolute; z-index: 6; top: 2px; right: 2px; width: 48px; height: 48px;
  display: grid; place-items: center; border-radius: var(--round); color: var(--nacht);
}
.deck__pause::before { content: ""; position: absolute; inset: 9px; border-radius: var(--round); border: 1.5px solid color-mix(in oklab, currentColor 55%, transparent); }
.deck__pause .icon { width: 18px; height: 18px; }
.deck__pause .icon--play, .deck__pause[aria-pressed="true"] .icon--pause { display: none; }
.deck__pause[aria-pressed="true"] .icon--play { display: block; }
.deck__pause[hidden] { display: none; }
.deck-wrap[data-top="nacht"] .deck__pause { color: var(--creme); }

.hero__action { display: grid; justify-items: center; }

.hero__more { padding-top: 56px; padding-bottom: var(--card-pad-bottom); display: grid; gap: 24px; }
.hero__more .label { color: var(--muted); }
/* The origin line ("Aus Nürnberg, für ganz Bayern und Deutschland") is longer than a phone line. Without this the whole
   text wrapped below the dot and left the dot alone on a line of its own; now it wraps beside the dot, and the dot stays
   level with the first line (same place as on a one-line label). */
.hero__more .label { flex-wrap: nowrap; align-items: flex-start; }
.hero__more .label__dot { margin-top: calc((1.3em - 9px) / 2); }
.hero__sub { font-size: var(--t-l); line-height: 1.4; font-weight: 300; letter-spacing: -0.01em; text-wrap: pretty; }
.proof { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding-top: 24px; border-top: 1px solid var(--line); }
.proof__figure { font-size: 4rem; line-height: 0.9; font-weight: 200; letter-spacing: -0.04em; }
.proof__unit { font-size: 0.4em; font-weight: 400; margin-left: 2px; }
.proof__text { font-size: var(--t-small); }

/* ---------- 2 Haltung ---------- */
.manifest .card__face { min-height: 100lvh; }
.manifest__wrap { min-height: calc(100svh - var(--card-pad-top) - var(--card-pad-bottom)); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.manifest__text { font-size: clamp(1.9rem, 8.6cqi, 2.4rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 650; }
.manifest__text .accent { color: var(--accent); }
.motion .manifest__visual .w { position: relative; display: inline-block; }
.manifest__visual .w__ghost { visibility: hidden; }
.manifest__visual .w__ink { position: absolute; left: 0; top: 0; white-space: nowrap; font-weight: 200; color: color-mix(in oklab, var(--fg) 58%, var(--bg)); }
.manifest__visual .accent .w__ink { color: color-mix(in oklab, var(--accent) 66%, var(--bg)); }
.manifest__after { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.manifest__sign { font-style: italic; color: var(--muted); }

/* ---------- 3 Leistungen: door cards ---------- */
.doors { --tab-step: 86px; }
.door { box-shadow: 0 -1px 0 color-mix(in oklab, var(--tiefnacht) 10%, transparent); }
.door__link { display: grid; gap: 14px; padding: 20px 20px 22px; min-height: 360px; align-content: start; }
.door__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; container-type: inline-size; height: 52px; }
.door__word { font-size: min(3.25rem, calc(100cqi / 6.3)); line-height: 1; font-weight: 300; letter-spacing: -0.035em; }
.door__num { font-size: var(--t-label); font-weight: 500; letter-spacing: 0.08em; padding-top: 6px; }
.door__kicker { margin-top: 28px; font-size: var(--t-label); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.door[data-surface="rosa"] .door__kicker, .door[data-surface="creme"] .door__kicker { color: var(--blau); }
.door__text { color: var(--fg); text-wrap: pretty; }
.door__go { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font-weight: 600; min-height: 44px; border-bottom: 1px solid currentColor; justify-self: start; }
.door__link:active .door__word { text-decoration: underline; text-decoration-thickness: 0.05em; text-underline-offset: 0.12em; }
/* Touch feedback: the whole door card gives a little under the finger (scale composes with the recede transform). */
.door { transition: scale var(--dur-press) var(--ease-move); }
.door:has(.door__link:active) { scale: 0.985; }

/* ---------- 4 Projekte ---------- */
.case { padding-top: 32px; border-top: 1px solid var(--line); margin-bottom: 64px; }
.case__head { display: grid; gap: 6px; container-type: inline-size; }
.case__num { font-size: var(--t-label); font-weight: 500; letter-spacing: 0.08em; }
.case__name { font-size: calc(100cqi / 7.05); line-height: 1.05; font-weight: 300; letter-spacing: -0.03em; white-space: nowrap; }
.case__tld { font-style: italic; color: var(--accent); font-weight: 500; }
/* Sample sites say so before their name ("05 · Musterseite"): placeholders, no customer (UWG). */
.case__kind { text-transform: uppercase; }
.case__kind .sep { color: var(--muted); margin: 0 0.5em; }
.fan { position: relative; margin: 28px 0 32px; height: calc((100cqi) * 0.86 * 0.625 + 120px); }
.fan__shot { position: absolute; overflow: hidden; border-radius: var(--r-shot); background: var(--nacht); box-shadow: 0 18px 40px -18px color-mix(in oklab, var(--tiefnacht) 55%, transparent); }
.fan__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fan__shot--desk { left: 0; top: 0; width: 86%; aspect-ratio: 16 / 10; rotate: -1.5deg; }
.fan__shot--phone { right: 0; bottom: 0; width: 32%; aspect-ratio: 780 / 1688; rotate: 2.5deg; border: 4px solid var(--nacht); }
.case__text { margin-bottom: 20px; text-wrap: pretty; }
.facts { display: grid; gap: 10px; margin-bottom: 16px; padding: 16px 0; border-block: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 42% 1fr; gap: 12px; }
.facts dt { font-size: var(--t-label); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 3px; }
.facts dd { font-size: var(--t-small); }
.ghost {
  display: grid; gap: 18px; padding: 24px 22px 18px; border-radius: var(--r-card);
  border: 1.5px dashed color-mix(in oklab, var(--fg) 55%, transparent);
}
.ghost__text { font-size: var(--t-l); line-height: 1.3; font-weight: 300; text-wrap: balance; }
.ghost .text-link { justify-self: start; text-wrap: balance; } /* at 320 px the longer label breaks into two even lines */

/* ---------- 5 Ablauf: step cards ---------- */
.process { --tab-step: 74px; }
.step { padding: 18px 20px 24px; min-height: 248px; display: grid; align-content: start; gap: 12px; }
.step__num { font-size: var(--t-label); font-weight: 500; letter-spacing: 0.08em; }
.step__of { color: var(--muted); }
.step__title { font-size: 1.75rem; line-height: 1.05; font-weight: 300; letter-spacing: -0.025em; height: 1.05em; white-space: nowrap; }
/* The longest title ("Eine Seite zur Abnahme") stays on one line; below 380 px it shrinks with the screen instead of
   widening every step card and with them the whole page. */
@media (max-width: 380px) { .step__title { font-size: min(1.75rem, 6.6vw); } }
.step__text { margin-top: 18px; color: var(--fg); text-wrap: pretty; }
.steps { margin-bottom: 8px; }

/* ---------- 6 Preise ---------- */
.price { padding: 24px 0 28px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.price:last-child { border-bottom: 1px solid var(--line); }
.price__head { display: flex; align-items: baseline; gap: 14px; }
.price__num { font-size: var(--t-label); font-weight: 500; letter-spacing: 0.08em; width: 22px; }
.price__name { font-size: 1.5rem; font-weight: 400; letter-spacing: -0.02em; }
.price__amount { font-size: 4.25rem; line-height: 1; font-weight: 700; letter-spacing: -0.04em; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; }
.price__amount .tnum { display: inline-block; min-width: 4.3ch; }
.price--care .price__amount .tnum { min-width: 4ch; }
.price__cur { font-size: 0.42em; font-weight: 400; letter-spacing: 0; }
.price__from, .price__per { font-size: 0.26em; font-weight: 400; letter-spacing: 0.02em; }
.price__amount--ask { font-size: 3rem; font-weight: 300; color: var(--accent); }
.price__text { text-wrap: pretty; }
.price__incl { font-size: var(--t-small); color: var(--muted); }
.price__key { display: block; font-size: var(--t-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg); margin-bottom: 2px; }
.price .text-link { justify-self: start; }
/* Two groups: website packages (one-time fixed price) and hosting (monthly); hosting sits in a tinted band across the card. */
.price-group__head { display: grid; gap: 2px; padding-bottom: 14px; }
.price-group__title { font-size: 1.25rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.price-group__note { font-size: var(--t-small); color: var(--muted); }
.price-group--care { margin: 48px calc(-1 * var(--m)) 0; padding: 28px var(--m) 8px; background: color-mix(in oklab, var(--gelb) 42%, var(--bg)); }
.price-group--care .price { border-top-color: var(--fg); border-bottom: 0; }
.price-list .price { gap: 12px; padding: 28px 0 32px; }
.price-list .price__amount { font-size: 3.25rem; }
.price-list .price__amount--ask { font-size: 2.25rem; }
.price-group--care .price__amount { font-size: 3rem; }
.price__text { font-size: 1.0625rem; line-height: 1.5; }
.price__incl { font-size: 0.9375rem; line-height: 1.5; }
.price__items { display: grid; gap: 4px; margin: 4px 0 0; padding: 0; list-style: none; color: var(--fg); }
.price__items li { position: relative; padding-left: 16px; }
.price__items li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.price__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 6px; }
.price__ask {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border: 1px solid var(--fg); border-radius: var(--round); font-weight: 600; white-space: nowrap;
}
.price__ask .icon { width: 18px; height: 18px; }
.price__ask:active { background: var(--fg); color: var(--bg); }
.price__more { display: inline-flex; align-items: center; min-height: 48px; }
.fineprint { margin-top: 28px; font-size: var(--t-small); color: var(--muted); }

/* ---------- 7 Über uns ---------- */
.person__name { margin: 8px 0 36px; container-type: inline-size; }
.person__visual { display: block; font-size: calc(100cqi / 3.2); line-height: 0.9; letter-spacing: -0.03em; font-weight: 800; }
.person__line { display: block; white-space: nowrap; }
.person__line--last { color: var(--accent); font-style: italic; }
.person__lead { font-size: var(--t-l); line-height: 1.4; font-weight: 400; margin-bottom: 20px; text-wrap: pretty; }
.person__text { color: var(--muted); margin-bottom: 28px; text-wrap: pretty; }
.person__quote { padding: 22px 0; border-block: 1px solid var(--line); font-size: var(--t-l); line-height: 1.35; font-weight: 300; margin-bottom: 28px; }
.sheet { display: grid; margin-bottom: 24px; }
.sheet div { display: grid; grid-template-columns: 40% 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sheet dt { font-size: var(--t-label); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 3px; color: var(--muted); }
.sheet dd { font-size: var(--t-small); }
.person__note { font-size: var(--t-small); color: var(--muted); margin-bottom: 8px; }

/* ---------- 8 Kontakt: the core grows ---------- */
.close .card__face { min-height: 100lvh; overflow: hidden; }
.close.has-core .card__face { background: var(--nacht); }
.close__core { position: absolute; inset: 0; z-index: 0; background: var(--koralle); display: none; }
.close__wrap { position: relative; z-index: 1; min-height: calc(100svh - var(--card-pad-top) - 40px); display: flex; flex-direction: column; gap: 24px; }
.close .card__face, .motion .close .card__face { padding-bottom: calc(40px + var(--safe-bottom)); }
.close__title { font-size: calc(100cqi / 5.6); line-height: 0.96; font-weight: 300; letter-spacing: -0.035em; margin-top: auto; }
.close__line { display: block; white-space: nowrap; }
.close__line--b { font-weight: 800; }
.close__text { max-width: 30ch; }
.close__cta { margin-top: 8px; }
.close__direct { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; }
.close__way { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 500; border-bottom: 1px solid currentColor; }

/* ---------- Footer: it lies under the stack; the last card lifts off it. ---------- */
/* The bottom padding leaves room for the dock (56 px plus its margins), which stands at the very end of the page when
   the footer scrolls in normally: without it the dock covered the last footer line. Lying under the stack the footer
   needs no room, because the Kontakt card still holds the screen at the end and the dock stays down. */
.footer { position: relative; z-index: 0; background: var(--bg); color: var(--fg); padding: 56px 0 calc(28px + 96px + var(--safe-bottom)); }
.footer.is-under { position: sticky; bottom: 0; padding-bottom: calc(28px + var(--safe-bottom)); }
.footer__claim { font-size: 1.75rem; line-height: 1.12; font-weight: 300; letter-spacing: -0.025em; margin-bottom: 36px; text-wrap: balance; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer__col--wide { grid-column: 1 / -1; }
.footer__head { font-size: var(--t-label); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.footer__head--gap { margin-top: 18px; }
.footer__col a, .footer__col address { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--t-small); }
.footer__col--wide ul { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer__base { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer__mark { display: flex; align-items: center; gap: 10px; }
.footer__mark .logo-mark { width: 40px; height: 40px; }
.footer__mark .wordmark { font-size: 1.25rem; }
.footer__up { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-size: var(--t-small); font-weight: 500; }
.icon--up { rotate: -90deg; }
.footer__legal { margin-top: 12px; font-size: 0.75rem; line-height: 1.5; color: var(--muted); }

/* ---------- Dock: the main action in thumb reach after the hero ---------- */
.dock {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; margin-inline: auto; max-width: var(--col);
  display: flex; gap: 8px; padding: 0 12px calc(12px + var(--safe-bottom));
  pointer-events: none; transform: translateY(calc(100% + 8px)); visibility: hidden;
  transition: transform var(--dur-slow-out) var(--ease-exit), visibility 0s linear var(--dur-slow-out);
}
.dock.is-shown { transform: none; visibility: visible; transition: transform var(--dur-slow) var(--ease-enter), visibility 0s; }
.dock > * { pointer-events: auto; }
.dock__main { flex: 1; min-height: 56px; padding: 8px 16px; font-size: min(0.96875rem, calc((100vw - 24px - 56px - 8px - 32px) / 13.6)); --action-bg: var(--koralle); --action-fg: var(--nacht); --press: var(--gelb); box-shadow: 0 10px 28px -12px color-mix(in oklab, var(--tiefnacht) 70%, transparent); }
.dock__call {
  flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--round);
  background: var(--nacht); color: var(--creme); border: 1.5px solid color-mix(in oklab, var(--creme) 30%, var(--nacht));
  box-shadow: 0 10px 28px -12px color-mix(in oklab, var(--tiefnacht) 70%, transparent);
  transition: transform var(--dur-press) var(--ease-move);
}
.dock__call:active { transform: scale(0.94); }
/* Without JS the header scrolls away with the page (no compact chips to keep it clear of the content). */
html:not(.js) .nav { position: absolute; }

/* ---------- Motion off: the stack becomes a plain sequence of cards, everything in its final state ---------- */
@media (prefers-reduced-motion: reduce) {
  .button, .nav__toggle, .dock, .dock.is-shown, .dock__call { transition-duration: 0s; }
  .dock.is-shown { transition: none; }
}
.reduced .deck { opacity: 1; }

/* Wider screens: the phone column stays a phone column, centred on the table (this mockup is the phone design). */
@media (min-width: 520px) {
  .card.hero { border-radius: 0 0 0 0; }
  body { box-shadow: 0 0 0 1px color-mix(in oklab, var(--creme) 8%, transparent); }
}

/* A card that an in-page link has focused (tabindex -1) shows no ring around the whole card. */
.card[tabindex="-1"]:focus-visible { outline: none; }
