/* Websign · Komponenten und Seiten. Nutzt ausschließlich Werte aus tokens.css. */

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--body-size);
  line-height: var(--body-line);
  letter-spacing: var(--body-track);
  font-weight: var(--weight-regular);
  color: var(--text-primary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, fieldset, legend { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; letter-spacing: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
strong, b { font-weight: var(--weight-bold); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; left: 16px; top: 8px; z-index: 200; padding: 10px 18px;
  background: var(--action); color: var(--on-action); border-radius: var(--r-button);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Klar markierte Platzhalter für Angaben, die noch fehlen */
.ph { background: none; color: var(--badge-new); font-weight: inherit; }

/* ---------- Typo-Rollen ---------- */
.t-statement { font-size: var(--statement-size); line-height: var(--statement-line); letter-spacing: var(--statement-track); font-weight: var(--weight-bold); }
.t-hero { font-size: var(--hero-size); line-height: var(--hero-line); letter-spacing: var(--hero-track); font-weight: var(--weight-bold); }
.t-headline-xl { font-size: var(--headline-xl-size); line-height: var(--headline-xl-line); letter-spacing: var(--headline-xl-track); font-weight: var(--weight-bold); }
.t-headline-l { font-size: var(--headline-l-size); line-height: var(--headline-l-line); letter-spacing: var(--headline-l-track); font-weight: var(--weight-bold); }
.t-section { font-size: var(--section-size); line-height: var(--section-line); letter-spacing: var(--section-track); font-weight: var(--weight-bold); }
.t-headline-s { font-size: var(--headline-s-size); line-height: var(--headline-s-line); letter-spacing: var(--headline-s-track); font-weight: var(--weight-bold); }
.t-eyebrow-l { font-size: var(--eyebrow-l-size); line-height: var(--eyebrow-l-line); letter-spacing: var(--eyebrow-l-track); font-weight: var(--weight-bold); }
.t-card { font-size: var(--card-size); line-height: var(--card-line); letter-spacing: var(--card-track); font-weight: var(--weight-bold); }
.t-intro { font-size: var(--intro-size); line-height: var(--intro-line); letter-spacing: var(--intro-track); font-weight: var(--weight-bold); color: var(--text-secondary); }
.t-intro strong { color: var(--text-primary); }
.t-subhead { font-size: var(--subhead-size); line-height: var(--subhead-line); letter-spacing: var(--subhead-track); font-weight: var(--weight-regular); }
.t-body-s { font-size: var(--body-s-size); line-height: var(--body-s-line); letter-spacing: var(--body-s-track); }
.t-caption { font-size: var(--caption-size); line-height: var(--caption-line); letter-spacing: var(--caption-track); }
.t-eyebrow { font-size: var(--intro-size); line-height: var(--intro-line); letter-spacing: var(--intro-track); font-weight: var(--weight-bold); color: var(--text-secondary); }
.muted { color: var(--text-secondary); }

/* Abstände in em, damit sie mit der Schrift skalieren */
.t-eyebrow + [class*="t-"] { margin-top: 0.4em; }
[class*="t-headline"] + p, .t-section + p, .t-statement + p, .t-hero + p, .t-card + p { margin-top: 0.8em; }
p + p { margin-top: 0.8em; }

/* ---------- Layout ---------- */
.band { width: var(--band); margin-inline: auto; }
.section { position: relative; padding-block: var(--section-pad); background: var(--surface); color: var(--text-primary); }
.section--alt { background: var(--surface-alt); }
.section--raised { background: var(--surface-raised); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--grid-gap); margin-bottom: var(--header-gap); }
.section-header__links { display: flex; gap: 24px; flex-shrink: 0; padding-bottom: 6px; }
.measure { max-width: 720px; }

/* ---------- Buttons und Links ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--hit); padding: 0 22px; border-radius: var(--r-button);
  background: var(--action); color: var(--on-action); border: 1px solid transparent;
  font-size: var(--body-size); line-height: 1; white-space: nowrap; text-decoration: none;
  transition: background-color var(--dur-micro) var(--ease-standard), border-color var(--dur-micro) var(--ease-standard), color var(--dur-micro) var(--ease-standard);
}
.btn:hover { background: var(--action-hover); text-decoration: none; }
.btn:active { background: var(--brand-navy); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.42; cursor: default; }
.btn--secondary { background: transparent; color: var(--link); border-color: var(--link); }
.btn--secondary:hover { background: var(--link); color: var(--surface); }
.btn--small { min-height: 36px; padding: 0 16px; font-size: var(--body-s-size); }
.btn--small::after, .btn--nav::after { content: ""; position: absolute; inset: -8px -4px; }
.btn--nav { min-height: 28px; padding: 0 12px; font-size: var(--caption-size); }
.btn--block { width: 100%; }
.btn.is-loading { color: transparent; }
.btn.is-loading::before {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--on-action); border-right-color: transparent; animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link { color: var(--link); display: inline-flex; align-items: center; min-height: var(--hit); }
.link--chevron::after { content: "\00a0›"; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 17px 24px; margin-top: 17px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-height);
  background: var(--glass); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  color: var(--text-primary);
  transition: background-color var(--dur-ui) var(--ease-standard), color var(--dur-ui) var(--ease-standard);
}
.nav__inner { height: 100%; width: min(1024px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__logo { display: inline-flex; align-items: center; height: var(--nav-height); padding-inline: 8px; margin-left: -8px; color: var(--text-primary); }
.nav__logo svg { width: 40px; height: auto; fill: currentColor; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  display: inline-flex; align-items: center; height: var(--nav-height); padding-inline: 14px;
  font-size: var(--caption-size); letter-spacing: var(--caption-track); color: var(--text-primary); opacity: 0.8;
  transition: opacity var(--dur-micro) var(--ease-standard);
}
.nav__links a:hover, .nav__links a[aria-current="true"] { opacity: 1; text-decoration: none; }
.nav__links a[aria-current="true"] { font-weight: var(--weight-medium); }
.nav__end { display: flex; align-items: center; gap: 8px; }
.nav__menu-btn { display: none; width: var(--hit); height: var(--hit); align-items: center; justify-content: center; color: var(--text-primary); }
.nav__menu-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; }

.menu {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--surface); color: var(--text-primary);
}
.menu::backdrop { background: var(--surface); }
.menu__head { height: var(--nav-height); display: flex; justify-content: flex-end; align-items: center; padding-inline: 16px; }
.menu__list { padding: 24px 6.25% 48px; display: grid; gap: 4px; }
.menu__list a { display: flex; align-items: center; min-height: 52px; color: var(--text-primary); }
.menu[open] .menu__list li { animation: menu-in var(--dur-ui) var(--ease-standard) both; animation-delay: calc(var(--i, 0) * 40ms + 80ms); }
@keyframes menu-in { from { opacity: 0; transform: translateX(16px); } }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--surface-alt); color: var(--text-primary);
  transition: background-color var(--dur-micro) var(--ease-standard);
}
.icon-btn::after { content: ""; position: absolute; inset: -4px; }
.icon-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: var(--line); }

/* ---------- 3D-Bühne ---------- */
.stage { position: absolute; inset: 0; }
.stage__mark { fill: currentColor; color: #d2d2d7; transition: opacity var(--dur-ui) var(--ease-standard); }
.stage canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; transition: opacity var(--dur-ui) var(--ease-standard); pointer-events: none; }
.stage.is-live canvas { opacity: 1; }
.stage.is-live .stage__mark { opacity: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  min-height: max(100vh, 600px); min-height: max(100svh, 600px);
  padding: calc(var(--nav-height) + 24px) 0 56px; background: var(--surface); color: var(--text-primary);
}
.hero .stage__mark { position: absolute; left: 50%; top: 33%; width: min(52%, 780px, 60vh); height: auto; transform: translate(-50%, -50%); }
/* Lichtschein unter dem Logo: gibt dem Glas-Button etwas zu brechen */
.hero::after { content: ""; position: absolute; left: 50%; bottom: -8%; width: min(1100px, 92%); height: 62%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(71, 102, 160, 0.34), rgba(40, 65, 114, 0.12) 55%, transparent); }
.hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; }
.hero__text { max-width: 860px; }
.hero__text .t-subhead { color: var(--text-secondary); max-width: 560px; margin-inline: auto; }
.hero__cta { margin-top: 32px; }
.hero__meta { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 24px; color: var(--text-secondary); font-size: var(--body-s-size); line-height: var(--body-s-line); letter-spacing: var(--body-s-track); }
.hero__meta .link { font-size: var(--body-size); }
.price-pill {
  display: flex; align-items: center; gap: 16px; flex-shrink: 0; min-height: 56px; padding: 0 10px 0 22px; border-radius: var(--r-card);
  background: var(--control-pill); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  color: #f5f5f7; font-size: var(--body-s-size); line-height: var(--body-s-line); letter-spacing: var(--body-s-track);
}

/* ---------- Type-Lockup ---------- */
.lockup .t-intro { margin-top: 1.6em; max-width: 760px; }

/* ---------- Scroll-Szene: Leistungen ---------- */
.scene { position: relative; background: var(--surface); color: var(--text-primary); }
.scene__sticky { position: relative; padding-block: var(--section-pad); }
.scene .stage { position: relative; inset: auto; height: 46vh; min-height: 280px; }
.scene__figure { position: absolute; left: 50%; top: 50%; width: min(70%, 620px); aspect-ratio: 608.5 / 268.5; transform: translate(-50%, -50%); }
.scene__figure .stage__mark { width: 100%; height: 100%; color: #f5f5f7; }
.scene__grid {
  position: absolute; inset: -22% 0; opacity: var(--grid, 0); pointer-events: none;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc(100% / 12) 100%;
  border-right: 1px solid var(--line);
}
.scene__grid::before, .scene__grid::after { content: ""; position: absolute; left: -6%; right: -6%; height: 1px; background: var(--line); }
.scene__grid::before { top: 15.28%; }
.scene__grid::after { top: 84.72%; }
.scene__text { position: relative; width: var(--band); margin: 48px auto 0; display: grid; gap: 56px; }
.beat .t-body { color: var(--text-secondary); }
.beat p:last-child { margin-top: 0.8em; color: var(--text-secondary); max-width: 460px; }
.scene__tabs { display: none; }

.js .scene { height: 360vh; }
.js .scene__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; padding: 0; overflow: hidden; }
.js .scene .stage { position: absolute; inset: 0; height: auto; }
.js .scene__figure { left: auto; right: var(--gutter); width: calc(var(--band) * 0.5); transform: translateY(-50%); }
.js .scene__text { position: absolute; left: var(--gutter); top: 50%; width: calc(var(--band) * 0.4); margin: 0; transform: translateY(-50%); gap: 0; }
.js .beat {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--dur-text) var(--ease-content), transform var(--dur-text) var(--ease-content), visibility 0s linear var(--dur-text);
}
.js .beat.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.js .scene__tabs {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 2;
  display: flex; align-items: center; gap: 2px; height: 56px; padding: 6px; border-radius: var(--r-card);
  background: var(--control-pill); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
}
.scene__tab {
  height: var(--hit); padding: 0 18px; border-radius: var(--r-tab); color: #f5f5f7; opacity: 0.72; white-space: nowrap;
  font-size: var(--body-s-size); font-weight: var(--weight-medium);
  transition: background-color var(--dur-short) var(--ease-standard), opacity var(--dur-short) var(--ease-standard);
}
.scene__tab:hover { opacity: 1; }
.scene__tab[aria-selected="true"] { background: rgba(245, 245, 247, 0.16); opacity: 1; }

/* ---------- Feature-Karten und Modal ---------- */
.fcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); }
.fcard {
  position: relative; display: flex; flex-direction: column; min-height: 320px; padding: 32px 32px 24px; border-radius: var(--r-card);
  background: var(--surface-raised); transition: transform 300ms var(--ease-hover);
}
.fcard:hover { transform: scale(var(--hover-scale)); }
.fcard__label { color: var(--text-secondary); font-size: var(--body-s-size); line-height: var(--body-s-line); font-weight: var(--weight-bold); }
.fcard h3 { margin-top: 8px; }
.fcard p:not(.fcard__label) { margin-top: 0.8em; color: var(--text-secondary); }
.fcard__plus {
  position: static; margin-top: auto; align-self: flex-end; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--text-primary); color: var(--surface-raised);
}
.fcard__plus::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.fcard__plus svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.fcard:has(.fcard__plus:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.fcard__plus:focus-visible { outline: none; }

.modal {
  width: min(816px, 100% - 48px); max-height: min(86vh, 900px); padding: 76px; border: 0; border-radius: var(--r-card);
  background: var(--surface-raised); color: var(--text-primary); overflow: auto; overscroll-behavior: contain;
}
.modal::backdrop { background: var(--curtain); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.modal[open] { animation: modal-in var(--dur-ui) var(--ease-standard); }
.modal[open]::backdrop { animation: fade-in var(--dur-ui) var(--ease-standard); }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes fade-in { from { opacity: 0; } }
.modal__close { position: absolute; top: 20px; right: 20px; }
.modal__eyebrow { color: var(--text-secondary); font-weight: var(--weight-bold); }
.modal h2 { margin-top: 0.2em; }
.modal__body { margin-top: 40px; display: grid; gap: 20px; }
.modal__body p { color: var(--text-secondary); margin: 0; }
.modal__body p strong { color: var(--text-primary); }
.modal__note { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-secondary); }

/* ---------- 3D-Viewer ---------- */
.viewer, .viewer.stage {
  position: relative; inset: auto; margin-top: 56px; height: min(72vh, 680px); min-height: 440px; border-radius: var(--r-card); overflow: hidden;
  background: #000; color: #f5f5f7; touch-action: pan-y; -webkit-user-select: none; user-select: none;
}
.viewer.is-live { cursor: grab; }
.viewer.is-dragging { cursor: grabbing; }
.viewer .stage__mark { position: absolute; left: 50%; top: 45%; width: min(58%, 720px); height: auto; transform: translate(-50%, -50%); }
.viewer__hint {
  position: absolute; left: 50%; top: 24px; transform: translateX(-50%); padding: 8px 16px; border-radius: var(--r-button);
  background: var(--control-pill); font-size: var(--body-s-size); line-height: var(--body-s-line); white-space: nowrap; pointer-events: none; z-index: 2;
  opacity: 0; transition: opacity var(--dur-ui) var(--ease-standard);
}
.viewer.is-live .viewer__hint { opacity: 1; }
.viewer.has-interacted .viewer__hint { opacity: 0; }
.viewer__material { z-index: 2; position: absolute; left: 0; right: 0; bottom: 100px; text-align: center; font-size: var(--body-s-size); color: #86868b; pointer-events: none; }
.viewer__material strong { color: #f5f5f7; }
.viewer__controls {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2; cursor: default;
  display: flex; align-items: center; gap: 2px; height: 56px; padding: 6px 10px; border-radius: var(--r-card);
  background: var(--control-pill); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
}
.viewer__swatches { display: flex; }
.swatch { position: relative; width: var(--hit); height: var(--hit); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.swatch span { width: 28px; height: 28px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(245, 245, 247, 0.28); }
.swatch input:checked + span { box-shadow: 0 0 0 2px #2a2a2d, 0 0 0 4px #f5f5f7; }
.swatch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 5px; }
.viewer__divider { width: 1px; height: 24px; margin-inline: 8px; background: rgba(245, 245, 247, 0.2); }
.viewer__btn { position: relative; width: var(--hit); height: var(--hit); display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #f5f5f7; opacity: 0.8; }
.viewer__btn:hover { opacity: 1; background: rgba(245, 245, 247, 0.12); }
.viewer__btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.no-webgl .viewer__controls, .no-webgl .viewer__hint, .no-webgl .viewer__material, .no-js .viewer__controls, .no-js .viewer__material { display: none; }
.limit { margin-top: 20px; color: var(--text-secondary); font-size: var(--body-s-size); line-height: var(--body-s-line); letter-spacing: var(--body-s-track); }

/* ---------- Scroll-Galerie ---------- */
.gallery-wrap { position: relative; }
.gallery {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery > li { flex: 0 0 auto; scroll-snap-align: start; }
.gallery__arrow {
  position: absolute; top: 50%; z-index: 2; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%;
  display: none; align-items: center; justify-content: center; background: rgba(210, 210, 215, 0.64); color: #1d1d1f;
  opacity: 0; transition: opacity 100ms linear;
}
.gallery__arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gallery__arrow--prev { left: 24px; }
.gallery__arrow--next { right: 24px; }
.gallery__arrow[disabled] { visibility: hidden; }
@media (hover: hover) and (pointer: fine) {
  .js .gallery__arrow { display: flex; }
  .gallery-wrap:hover .gallery__arrow, .gallery__arrow:focus-visible { opacity: 1; }
}

/* Projektkarten */
.project { width: min(560px, 78vw); }
.project__media {
  aspect-ratio: 16 / 10; border-radius: var(--r-card); background: var(--surface-raised); overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
  transition: transform 300ms var(--ease-hover);
}
.project__media img { width: 100%; height: 100%; object-fit: cover; }
.project:hover .project__media { transform: scale(var(--hover-scale)); }
.project h3 { margin-top: 20px; }
.project p { margin-top: 4px; color: var(--text-secondary); }

/* Ablauf-Karten */
.step-card { width: min(372px, 78vw); min-height: 300px; padding: 32px; border-radius: var(--r-card); background: var(--surface); }
.step-card__num { color: var(--text-tertiary); }
.step-card h3 { margin-top: 56px; }
.step-card p { margin-top: 0.6em; color: var(--text-secondary); }

/* ---------- Stat-Block ---------- */
.stat-panel { margin-top: 72px; padding: 56px 48px; border-radius: var(--r-card); background: var(--surface-raised); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px var(--grid-gap); }
.stat__eyebrow { color: var(--text-secondary); font-size: var(--body-s-size); line-height: var(--body-s-line); font-weight: var(--weight-bold); }
.stat__value { margin-top: 6px; font-size: var(--stat-size); line-height: var(--stat-line); font-weight: var(--weight-bold); color: var(--text-primary); white-space: nowrap; }
.stat__label { margin-top: 10px; color: var(--text-secondary); font-size: var(--body-s-size); line-height: var(--body-s-line); letter-spacing: var(--body-s-track); max-width: 240px; }

/* Fußnoten-Verweis mit 44-px-Klickfläche */
.fn { position: relative; font-size: 0.6em; line-height: 0; vertical-align: super; letter-spacing: 0; }
.fn a { position: relative; padding: 0 1px; color: inherit; }
.fn a::after { content: ""; position: absolute; left: 50%; top: 50%; width: var(--hit); height: var(--hit); transform: translate(-50%, -50%); }

/* ---------- Zielgruppen ---------- */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); }
.audience__card { padding: 32px; border-radius: var(--r-tile); background: var(--surface-alt); }
.audience__card .t-body-s { color: var(--text-secondary); font-weight: var(--weight-bold); }
.audience__card h3 { margin-top: 8px; }
.audience__card p:last-child { margin-top: 0.8em; color: var(--text-secondary); }

/* ---------- Konfigurator ---------- */
.config { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px var(--grid-gap); align-items: start; }
.config__steps { display: grid; gap: 56px; }
.config__step { transition: opacity var(--dur-ui) var(--ease-standard); }
.config__step[disabled] { opacity: 0.38; }
.config__legend { font-size: 24px; line-height: 28px; letter-spacing: 0.009em; font-weight: var(--weight-bold); margin-bottom: 16px; }
.config__legend span { color: var(--text-secondary); }
.config__note { margin-top: 12px; color: var(--text-secondary); font-size: var(--body-s-size); line-height: var(--body-s-line); }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.options--single { grid-template-columns: 1fr; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.option__box {
  display: flex; justify-content: space-between; gap: 12px; min-height: 100px; height: 100%; padding: 15px; border-radius: var(--r-form);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--text-tertiary);
  transition: box-shadow var(--dur-micro) var(--ease-standard);
}
.option__name { display: block; font-weight: var(--weight-bold); }
.option__desc { display: block; margin-top: 4px; color: var(--text-secondary); font-size: var(--body-s-size); line-height: var(--body-s-line); letter-spacing: var(--body-s-track); }
.option__price { flex-shrink: 0; text-align: right; font-size: var(--body-s-size); line-height: var(--body-line); letter-spacing: var(--body-s-track); white-space: nowrap; }
.option input:checked + .option__box { box-shadow: inset 0 0 0 2px var(--action); }
.option input:focus-visible + .option__box { outline: 2px solid var(--focus); outline-offset: 2px; }
.option input:disabled + .option__box { cursor: default; }
.option--short .option__box { min-height: 72px; }

.field { display: grid; gap: 6px; }
.field + .field { margin-top: 16px; }
.field label { font-size: var(--body-s-size); line-height: var(--body-s-line); font-weight: var(--weight-bold); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: var(--r-form); border: 1px solid var(--text-tertiary);
  background: var(--surface); color: var(--text-primary);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--action); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: var(--body-s-size); line-height: var(--body-s-line); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: var(--body-s-size); line-height: var(--body-s-line); color: var(--text-secondary); }
.check input { flex-shrink: 0; width: 20px; height: 20px; margin: 0; accent-color: var(--action); }

.summary { position: sticky; top: calc(var(--nav-height) + 24px); padding: 32px; border-radius: var(--r-card); background: var(--surface); }
.summary__list { margin-top: 20px; display: grid; gap: 0; }
.summary__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: var(--body-s-size); line-height: var(--body-s-line); }
.summary__row dt { color: var(--text-secondary); flex-shrink: 0; }
.summary__row dd { text-align: right; font-weight: var(--weight-bold); }
.summary__row dd.is-empty { font-weight: var(--weight-regular); color: var(--text-tertiary); }
.summary__price { margin-top: 24px; }
.summary__price-label { color: var(--text-secondary); font-size: var(--body-s-size); line-height: var(--body-s-line); }
.summary__price-value { margin-top: 2px; }
.summary__note { margin-top: 8px; color: var(--text-secondary); font-size: var(--caption-size); line-height: var(--caption-line); letter-spacing: var(--caption-track); }
.summary .btn { margin-top: 24px; }
.summary__status { margin-top: 12px; font-size: var(--body-s-size); line-height: var(--body-s-line); }
.summary__status.is-error { color: var(--error); }
.summary__status.is-success { color: var(--success); }

/* FAQ */
.faq { margin-top: 96px; max-width: 816px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 68px; padding-block: 16px; cursor: pointer; list-style: none; font-weight: var(--weight-bold); font-size: var(--intro-size); line-height: var(--intro-line); letter-spacing: var(--intro-track); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex-shrink: 0; width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; transition: transform var(--dur-short) var(--ease-standard); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--text-secondary); }

/* ---------- Index und Footer ---------- */
.index__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px var(--grid-gap); margin-top: var(--header-gap); }
.index__head { color: var(--text-secondary); font-size: var(--body-size); margin-bottom: 12px; }
.index__main a, .index__sub a { color: var(--text-primary); display: inline-flex; align-items: center; min-height: var(--hit); }
.index__main a { font-size: var(--card-size); line-height: var(--card-line); letter-spacing: var(--card-track); font-weight: var(--weight-bold); }
.index__sub { margin-top: 12px; }
.index__sub a { font-weight: var(--weight-bold); }

.footer { background: var(--surface-alt); color: var(--text-secondary); font-size: var(--caption-size); line-height: var(--caption-line); letter-spacing: var(--caption-track); padding-block: 24px 28px; }
.footer a { color: var(--text-primary); }
.footnotes { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.footnotes li { display: flex; gap: 6px; padding-block: 4px; scroll-margin-top: calc(var(--nav-height) + 24px); }
.footnotes li:target { color: var(--text-primary); }
.footnotes a { display: inline-flex; align-items: center; min-width: 24px; min-height: 24px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.breadcrumb svg { width: 28px; height: auto; fill: var(--text-primary); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-top: 16px; }
.footer__legal ul { display: flex; flex-wrap: wrap; gap: 4px 0; }
.footer__legal li + li { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line); }
.footer__legal a { display: inline-flex; align-items: center; min-height: 24px; }

/* ---------- Rechtsseiten ---------- */
.legal { padding-top: calc(var(--nav-height) + 80px); }
.legal h2 { margin-top: 1.6em; }
.legal p, .legal ul { margin-top: 0.8em; max-width: 720px; }
.legal ul { list-style: disc; padding-left: 1.2em; }

/* ---------- Reveal (ein Standard für alles) ---------- */
.js [data-reveal] [data-reveal-item] {
  opacity: 0; transform: translateY(var(--reveal-distance));
  transition: opacity var(--reveal-fade) var(--ease-content), transform var(--reveal-move) var(--ease-content);
  transition-delay: calc(var(--i, 0) * var(--reveal-stagger));
}
.js [data-reveal].is-revealed [data-reveal-item] { opacity: 1; transform: none; }

/* ---------- M · 735–1068 px ---------- */
@media (max-width: 1068px) {
  .fcards, .audience { grid-template-columns: 1fr; }
  .fcard { min-height: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .config { grid-template-columns: 1fr; }
  .summary { position: static; }
  .js .scene__figure { width: calc(var(--band) * 0.46); }
  .js .scene__text { width: calc(var(--band) * 0.46); }
}

/* ---------- S · bis 734 px ---------- */
@media (max-width: 734px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: inline-flex; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 4px; }
  .btn { font-size: var(--body-s-size); min-height: var(--hit); }
  .btn--nav { font-size: var(--caption-size); min-height: 30px; }

  .hero { padding-bottom: 32px; }
  .hero .stage__mark { top: 27%; width: 80%; }
  .hero__cta { margin-top: 24px; }
  .lg--xl { min-height: 60px; padding: 0 30px; font-size: 19px; }
  .price-pill { width: 100%; justify-content: space-between; }

  .js .scene { height: 320vh; }
  .js .scene__figure { right: auto; left: 50%; top: 30%; width: 78%; transform: translate(-50%, -50%); }
  .js .scene__text { top: auto; bottom: 112px; transform: none; width: var(--band); }
  .js .scene__tabs { bottom: 20px; }
  .scene__tab { padding: 0 14px; }

  .modal { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border-radius: 0; padding: 72px 24px 40px; }
  .viewer { height: 68vh; min-height: 400px; border-radius: var(--r-tile); }
  .viewer .stage__mark { width: 80%; top: 42%; }
  .viewer__btn--rotate { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .viewer__btn--rotate:focus-visible { position: relative; width: var(--hit); height: var(--hit); clip-path: none; }
  .stat-panel { padding: 32px 24px; margin-top: 48px; }
  .stats { grid-template-columns: 1fr; gap: 32px; }
  .options { grid-template-columns: 1fr; }
  .summary { padding: 24px; }
  .faq { margin-top: 64px; }
  .faq details p { padding-right: 0; }
  .index__cols { grid-template-columns: 1fr; }
  .footer__legal li + li { margin-left: 8px; padding-left: 8px; }
}

/* ---------- Präferenzen ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
  .js [data-reveal] [data-reveal-item] { opacity: 1; transform: none; }
  .fcard:hover, .project:hover .project__media { transform: none; }
}
@media (forced-colors: active) {
  .btn, .fcard, .option__box, .summary, .step-card, .audience__card, .stat-panel, .viewer, .price-pill, .scene__tabs, .viewer__controls { border: 1px solid ButtonText; }
  .option input:checked + .option__box { outline: 3px solid Highlight; }
  .stage__mark { fill: CanvasText; }
}
@media print {
  .nav, .stage canvas, .scene__tabs, .viewer__controls, .gallery__arrow { display: none !important; }
  .js .scene { height: auto; }
  .js .scene__sticky { position: static; height: auto; }
  .js .beat { opacity: 1; visibility: visible; transform: none; }
  .js [data-reveal] [data-reveal-item] { opacity: 1; transform: none; }
}
