@font-face { font-family: "Instrument Sans"; font-style: normal; font-display: swap; font-weight: 400 700; src: url("../fonts/instrument-sans-latin-ext.woff2?v=20261022") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Instrument Sans"; font-style: normal; font-display: swap; font-weight: 400 700; src: url("../fonts/instrument-sans-latin.woff2?v=20261022") format("woff2"); 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; }
/* Layout: eine zentrierte Spalte (max. 1280 px), Sektionen im Wechsel Schwarz und Anthrazit, Bento-Raster für Leistungen */
:root {
  --bg: #000000;
  --bg-alt: #0a0a0b;
  --surface: #161618;
  --surface-deep: #0e0e10;
  --field: #1f1f22;
  --fg: #f5f5f7;
  --fg-2: #a1a1a6;
  --fg-3: #86868b;
  --fg-mute: #6e6e73;
  --fg-dim: #48484a;
  --line: rgba(255, 255, 255, 0.14);
  --hair: rgba(255, 255, 255, 0.08);
  --accent: #00b2ff;
  --accent-hover: #5cd0ff;
  --ok: #30d158;
  --warn: #ffcc1a;
  --crit: #ff453a;
  --font: "Instrument Sans", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5.5vw, 80px);
  --section: clamp(80px, 11vw, 160px);
  --radius-lg: clamp(20px, 2.2vw, 28px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; font-weight: 600; }
.wrap { width: 100%; max-width: calc(1280px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.alt { background: var(--bg-alt); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px; border-radius: 999px; border: 0;
  background: var(--accent); color: #000; font: inherit; font-size: 17px; font-weight: 500;
  cursor: pointer; transition: background .2s ease, transform .2s var(--ease);
}
.btn:hover { background: var(--accent-hover); color: #000; }
.btn:active { transform: scale(0.98); }
.btn-sm { min-height: 32px; padding: 0 16px; font-size: 13px; }
.more { font-size: 17px; }
.more::after { content: " ›"; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
}
.nav-bar { height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; color: var(--fg); padding-block: 8px; }
.logo .lockup { height: 20px; width: auto; display: block; }
.logo-foot .lockup { height: 16px; }
.foot-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.logo:hover { color: var(--fg); }
.nav-links { display: flex; gap: clamp(20px, 2.6vw, 36px); }
.nav-links a { font-size: 13px; color: #d2d2d7; }
.nav-links a:hover { color: var(--fg); }
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: transparent; color: var(--fg); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn svg line { transition: transform .3s var(--ease); transform-origin: center; }
.menu-btn[aria-expanded="true"] .l1 { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .l2 { transform: translateY(-3px) rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--hair); padding-block: 12px 28px; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mobile-nav a { display: block; padding: 12px 0; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); }

/* Hero */
.hero { padding-block: clamp(56px, 8vw, 112px) clamp(72px, 8vw, 120px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.tagline { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(15px, 1.4vw, 19px); font-weight: 500; color: var(--fg-3); }
.mp { width: 0.42em; height: 0.42em; background: var(--accent); flex-shrink: 0; }
.hero h1 { margin-top: 16px; font-size: clamp(44px, 6.8vw, 96px); line-height: 1.02; letter-spacing: -0.035em; }
.hero .lead { margin-top: 28px; max-width: 820px; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.42; color: var(--fg-2); text-wrap: balance; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 32px; }
.hero-figure { margin: clamp(48px, 5.5vw, 80px) 0 0; width: 100%; display: flex; flex-direction: column; gap: 20px; }
.capture { position: relative; --cm-off: clamp(8px, 1.1vw, 14px); --cm-len: clamp(18px, 2.4vw, 34px); --cm-w: clamp(2px, 0.22vw, 3px); }
.cm { position: absolute; width: var(--cm-len); height: var(--cm-len); border: 0 solid var(--fg); pointer-events: none; }
.cm-tl { left: calc(-1 * var(--cm-off)); top: calc(-1 * var(--cm-off)); border-left-width: var(--cm-w); border-top-width: var(--cm-w); }
.cm-tr { right: calc(-1 * var(--cm-off)); top: calc(-1 * var(--cm-off)); border-right-width: var(--cm-w); border-top-width: var(--cm-w); }
.cm-bl { left: calc(-1 * var(--cm-off)); bottom: calc(-1 * var(--cm-off)); border-left-width: var(--cm-w); border-bottom-width: var(--cm-w); }
.cm-br { right: calc(-1 * var(--cm-off)); bottom: calc(-1 * var(--cm-off)); border-right-width: var(--cm-w); border-bottom-width: var(--cm-w); }
.hero-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 2 / 1; max-width: 100%; background: #050505; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; font-size: 14px; color: var(--fg-3); text-align: left; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.crit { background: var(--crit); }

/* Statement */
.statement p { max-width: 1120px; margin-inline: auto; font-size: clamp(30px, 3.9vw, 56px); line-height: 1.14; font-weight: 600; letter-spacing: -0.03em; color: var(--fg-mute); text-wrap: pretty; }
.statement strong { font-weight: 600; color: var(--fg); }

/* Section heads */
.eyebrow { font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; color: var(--accent); }
.h2 { font-size: clamp(36px, 5vw, 72px); line-height: 1.05; letter-spacing: -0.03em; }
.h2-sm { font-size: clamp(36px, 3.9vw, 56px); line-height: 1.07; letter-spacing: -0.03em; }
.h2 + .intro, .h2-sm + .intro { margin-top: 24px; }
.eyebrow + .h2 { margin-top: 16px; }
.intro { max-width: 720px; font-size: clamp(19px, 1.5vw, 21px); line-height: 1.5; color: var(--fg-2); }
.mute { color: var(--fg-mute); }

/* Fehlfarbvergleich */
.ffv-wrap { position: relative; margin-top: clamp(40px, 5vw, 72px); }
.ffv-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; background: #050505; }
.ffv-media img { width: 100%; height: 100%; object-fit: cover; }
.scale-card {
  position: absolute; left: 32px; bottom: 32px; width: 340px; padding: 18px 22px; border-radius: 18px;
  background: rgba(22, 22, 24, 0.72); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 12px;
}
.scale-title { font-size: 13px; font-weight: 600; }
.scale-bar { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--ok) 0%, var(--warn) 50%, var(--crit) 100%); }
.scale-labels { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--fg-2); }
.features { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3.4vw, 48px); }
.features h3, .industry h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.features p { margin-top: 12px; color: var(--fg-2); }

/* Leistungen */
.bento { margin-top: clamp(40px, 4.5vw, 64px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tile { border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.tile-body { padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 14px; }
.tile h3 { font-size: clamp(26px, 2.3vw, 32px); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.tile p { max-width: 480px; color: var(--fg-2); }
.tile-img { margin-top: auto; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile-foot { margin-top: auto; padding: 0 clamp(28px, 3.4vw, 48px) clamp(28px, 3.4vw, 48px); }
.formats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.32em; font-size: clamp(48px, 5vw, 72px); line-height: 1.05; white-space: nowrap; font-weight: 600; letter-spacing: -0.04em; color: var(--fg-dim); }
.formats span:first-child { color: var(--fg); }
.formats-note { margin-top: 6px; font-size: 14px; color: var(--fg-3); }
.findings { list-style: none; margin: 0; padding: 0; border-radius: 16px; background: var(--surface-deep); font-size: 14px; }
.findings li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 18px; }
.findings li + li { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.findings .st { color: var(--fg-3); text-align: right; }

/* Datenkette */
.chain { margin: clamp(48px, 5.5vw, 80px) 0 0; padding: 0; list-style: none; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.chain::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--line); }
.chain li { position: relative; display: flex; flex-direction: column; gap: 8px; }
.node { width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--fg-3); margin-bottom: 16px; }
.node.end { background: var(--accent); border-color: var(--accent); border-radius: 0; box-shadow: 0 0 0 6px rgba(0, 178, 255, 0.16); }
.chain strong { font-size: 21px; font-weight: 600; }
.chain span:last-child { color: var(--fg-2); }

/* Branchen */
.industries { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; row-gap: 56px; }
.industry { border-top: 1px solid var(--line); padding-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.industry h3 { font-size: 24px; letter-spacing: -0.015em; }
.industry p { color: var(--fg-2); }

/* Unternehmen */
.company { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5.5vw, 80px); align-items: start; }
.anchor-line { position: sticky; top: 112px; font-size: clamp(34px, 4.4vw, 64px); line-height: 1.08; font-weight: 600; letter-spacing: -0.035em; }
.company-body { display: flex; flex-direction: column; gap: clamp(36px, 3.4vw, 48px); padding-top: 12px; }
.company-body > p { font-size: clamp(19px, 1.5vw, 21px); line-height: 1.5; color: var(--fg-2); }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 32px); }
.person { display: flex; flex-direction: column; min-width: 0; }
.portrait { aspect-ratio: 4 / 5; max-width: 100%; border-radius: clamp(16px, 1.6vw, 22px); overflow: hidden; background: var(--surface); margin-bottom: 18px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.02); transition: transform 1.2s var(--ease), filter .6s ease; }
.person:hover .portrait img { transform: scale(1.03); filter: saturate(1) contrast(1.02); }
.person strong { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.person span { margin-top: 2px; font-size: 15px; color: var(--fg-3); }
.contact-people { display: flex; align-items: center; gap: 16px; }
.avatars { display: flex; flex-shrink: 0; }
.avatars img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); }
.avatars img + img { margin-left: -12px; }
.cp-text { display: flex; flex-direction: column; font-size: 15px; line-height: 1.4; min-width: 0; }
.cp-text strong { font-weight: 600; }
.cp-text span { color: var(--fg-3); font-size: 14px; }

/* Kontakt */
.contact-card { border-radius: clamp(24px, 2.6vw, 36px); background: var(--surface); padding: clamp(32px, 5.5vw, 80px) clamp(20px, 5.5vw, 80px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 5.5vw, 80px); }
.contact-intro { display: flex; flex-direction: column; gap: 24px; }
.contact-intro h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.05; letter-spacing: -0.035em; }
.contact-intro > p { font-size: 19px; color: var(--fg-2); }
.direct { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.direct .lbl { font-size: 13px; color: var(--fg-3); }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mail-row a { color: var(--fg); user-select: all; }
.copy-btn { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg-2); font: inherit; font-size: 13px; cursor: pointer; transition: color .2s, border-color .2s; }
.copy-btn:hover { color: var(--fg); border-color: var(--fg-3); }
form { display: flex; flex-direction: column; gap: 20px; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label, legend { font-size: 13px; color: var(--fg-2); }
input, textarea {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--field); color: var(--fg); font: inherit; font-size: 17px; transition: border-color .2s;
}
textarea { min-height: 140px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--fg-mute); }
input:focus, textarea:focus { border-color: var(--accent); outline: none; }
input[aria-invalid="true"] { border-color: var(--crit); }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); background: transparent; color: var(--fg); font: inherit; font-size: 15px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--fg-3); }
.chip[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: #000; font-weight: 500; }
.form-note { font-size: 13px; color: var(--fg-3); }
.form-note a { color: var(--fg-2); text-decoration: underline; }
.status { font-size: 15px; padding: 14px 16px; border-radius: 12px; background: var(--surface-deep); }
.status.ok { color: var(--fg); border: 1px solid rgba(48, 209, 88, 0.4); }
.status.err { color: var(--fg); border: 1px solid rgba(255, 69, 58, 0.5); }

/* Footer */
.site-footer { border-top: 1px solid var(--hair); padding-block: 28px 40px; font-size: 12px; color: var(--fg-3); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; }
.foot nav { display: flex; gap: 28px; }
.foot a { color: var(--fg-2); }
.foot a:hover { color: var(--fg); }
.draft { flex-basis: 100%; color: var(--fg-mute); }
.draft::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-right: 8px; transform: translateY(-1px); }

/* Bewegung: nur aktiv, wenn das Skript .motion setzt. Ohne Skript bleibt alles sichtbar. */
.ffv-media { position: relative; }
.ffv-media .ffv-base { position: absolute; inset: 0; filter: grayscale(1) brightness(0.75); }
.ffv-media .ffv-color { position: relative; }
.scanline { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--accent); box-shadow: 0 0 24px 4px rgba(0, 178, 255, 0.55); opacity: 0; pointer-events: none; }
.motion .hero > * { animation: rise 1s var(--ease) both; }
.motion .hero > :nth-child(2) { animation-delay: .08s; }
.motion .hero > :nth-child(3) { animation-delay: .16s; }
.motion .hero > :nth-child(4) { animation-delay: .24s; }
.motion .hero > :nth-child(5) { animation-delay: .34s; animation-duration: 1.4s; }
.motion .hero-media img { animation: settle 2.4s var(--ease) both, drift 26s ease-in-out 2.4s infinite alternate; }
.motion .cm { animation: capture 1.6s var(--ease) .5s both; }
.motion .cm-tl { --cx: -1; --cy: -1; } .motion .cm-tr { --cx: 1; --cy: -1; } .motion .cm-bl { --cx: -1; --cy: 1; } .motion .cm-br { --cx: 1; --cy: 1; }
@keyframes capture { from { opacity: 0; transform: translate(calc(var(--cx) * 28px), calc(var(--cy) * 28px)); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.12); filter: brightness(0.4); } to { transform: scale(1); filter: none; } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.07) translateX(-1.5%); } }

.motion .reveal.in { transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.motion .reveal.pre:not(.in) { opacity: 0; transform: translateY(40px); }

/* Fehlfarbvergleich: der Scan legt die Abweichungsfarben von links nach rechts frei */
.motion .ffv-wrap.in .ffv-color { clip-path: inset(0 0 0 0); transition: clip-path 2.6s cubic-bezier(0.65, 0, 0.35, 1) .5s; }
.motion .ffv-wrap.in .scanline { transition: left 2.6s cubic-bezier(0.65, 0, 0.35, 1) .5s, opacity .4s ease; }
.motion .ffv-wrap.pre:not(.in) .ffv-color { clip-path: inset(0 100% 0 0); }
.motion .ffv-wrap.pre.in .scanline { left: 100%; opacity: 1; animation: fadeout .6s ease 3.1s forwards; }
.motion .ffv-wrap.in .scale-card { transition: opacity .8s var(--ease) 2.6s, transform .8s var(--ease) 2.6s; }
.motion .ffv-wrap.pre:not(.in) .scale-card { opacity: 0; transform: translateY(12px); }
@keyframes fadeout { to { opacity: 0; } }

/* Datenkette: Linie zeichnet sich, Knoten schalten nacheinander */
.motion .chain::before { transform-origin: left; }
.motion .chain.in::before { transition: transform 1.6s var(--ease) .2s; }
.motion .chain.pre:not(.in)::before { transform: scaleX(0); }
.motion .chain.in li { transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(.25s + var(--i) * .22s); }
.motion .chain.pre:not(.in) li { opacity: 0; transform: translateY(16px); }
.motion .chain.in .node.end { transition: box-shadow .6s ease 1.4s, background .6s ease 1.4s; }
.motion .chain.pre:not(.in) .node.end { box-shadow: 0 0 0 0 rgba(0, 178, 255, 0); background: var(--bg); }
.motion .chain.in .node.end { animation: pulse 2.4s ease-in-out 2.2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(0, 178, 255, 0.16); } 50% { box-shadow: 0 0 0 12px rgba(0, 178, 255, 0.05); } }

/* Porträts: nacheinander einblenden */
.motion .company-body.in .person { transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(.25s + var(--i) * .15s); }
.motion .company-body.pre:not(.in) .person { opacity: 0; transform: translateY(24px); }

/* Befundliste: Zeilen laufen nacheinander ein */
.motion .tile.in .findings li { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(.4s + var(--i) * .14s); }
.motion .tile.pre:not(.in) .findings li { opacity: 0; transform: translateX(-12px); }

/* Formate: Hervorhebung wandert IFC, DGN, RVT */
.motion .tile.in .formats span { animation: cycle 6s ease-in-out infinite; animation-delay: calc(var(--i) * 2s); }
.motion .tile.in .formats span:first-child { color: var(--fg-dim); }
@keyframes cycle { 0%, 28% { color: var(--fg); } 36%, 100% { color: var(--fg-dim); } }

/* Aussage: Sätze hellen beim Scrollen auf */
.motion .statement .reveal.in { transition: none; }
.statement .seg { transition: color .5s ease; }
.motion .statement .seg { color: var(--fg-mute); }
.motion .statement .seg.lit { color: var(--fg); }
.motion .statement .seg strong { color: inherit; }

/* Schalter für Animationen, erscheint nur bei aktivierter Systemeinstellung Bewegung reduzieren */
.motion-toggle {
  position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(22, 22, 24, 0.82);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  color: var(--fg); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
[hidden] { display: none !important; }
.motion-toggle:hover { border-color: var(--fg-3); }
.mt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.motion-toggle[aria-pressed="true"] .mt-dot { background: var(--fg-3); }


/* 3D-Szene: Punktwolke der Halle, gesteuert über Scrollfortschritt */
.exp { position: relative; height: 320vh; background: var(--bg); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #000; }
.stage-poster { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .55; transition: opacity 1.2s ease; }
.stage.gl .stage-poster { opacity: 0; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block;  opacity: 0; transition: opacity .9s ease; }
.stage.gl #scene { opacity: 1; }
/* Desktop: kein Standbild vor der Szene, die Punktwolke blendet direkt ein. Ohne WebGL bleibt das Standbild */
.stage-poster.p-tall { display: none; }
@media (max-aspect-ratio: 4/5) { .stage-poster.p-wide { display: none; } .stage-poster.p-tall { display: block; } }
@media (min-width: 1024px) and (pointer: fine) { .stage:not(.nogl) .stage-poster { display: none; } }
.stage-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 42%, rgba(0,0,0,0) 70%), linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 35%); }
.scm { position: absolute; width: clamp(18px, 2.4vw, 32px); height: clamp(18px, 2.4vw, 32px); border: 0 solid rgba(245,245,247,.9); pointer-events: none; z-index: 3; }
.scm-tl { left: clamp(12px, 2vw, 28px); top: calc(52px + clamp(12px, 2vw, 28px)); border-left-width: 2px; border-top-width: 2px; }
.scm-tr { right: clamp(12px, 2vw, 28px); top: calc(52px + clamp(12px, 2vw, 28px)); border-right-width: 2px; border-top-width: 2px; }
.scm-bl { left: clamp(12px, 2vw, 28px); bottom: clamp(12px, 2vw, 28px); border-left-width: 2px; border-bottom-width: 2px; }
.scm-br { right: clamp(12px, 2vw, 28px); bottom: clamp(12px, 2vw, 28px); border-right-width: 2px; border-bottom-width: 2px; }

.stage-inner { position: relative; z-index: 2; height: 100%; }
.panel { position: absolute; left: var(--gutter); right: var(--gutter); max-width: 640px; opacity: 0; transform: translateY(24px); pointer-events: none; will-change: opacity, transform; }
.panel.is-on { opacity: 1; transform: none; pointer-events: auto; }
.panel-hero { top: 50%; transform: translateY(-46%); max-width: 820px; }
.panel-hero.is-on { transform: translateY(-50%); }
.panel-hero h1 { margin-top: 16px; font-size: clamp(42px, 6.2vw, 92px); line-height: 1.02; letter-spacing: -0.035em; }
.panel-hero .lead { margin-top: 24px; max-width: 600px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--fg-2); }
.panel-hero .hero-cta { margin-top: 32px; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 16px 32px; }
.panel-step { bottom: clamp(88px, 14vh, 150px); }
.step-no { font-size: 15px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.panel-step h2 { margin-top: 8px; font-size: clamp(44px, 6vw, 88px); line-height: 1; letter-spacing: -0.04em; }
.panel-step > p:not(.step-no) { margin-top: 18px; max-width: 520px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: var(--fg-2); }
.panel-step .legend { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--fg-3); }
.panel-step .btn { margin-top: 26px; }

.callout { position: absolute; left: 0; top: 0; z-index: 2; display: flex; align-items: flex-start; gap: 12px; opacity: 0; transition: opacity .5s ease; pointer-events: none; will-change: transform; }
.callout.is-on { opacity: 1; }
.co-pin { width: 14px; height: 14px; margin-top: -7px; margin-left: -7px; border: 2px solid var(--crit); box-shadow: 0 0 0 6px rgba(255,69,58,.18); flex-shrink: 0; }
.co-card { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 14px; background: rgba(22,22,24,.78); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); font-size: 13px; color: var(--fg-2); white-space: nowrap; }
.co-card b { color: var(--fg); font-weight: 600; font-size: 14px; }

.rail { position: absolute; z-index: 3; right: clamp(28px, 4vw, 64px); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; font-size: 13px; color: var(--fg-mute); opacity: 0; transition: opacity .6s ease; }
.rail.is-on { opacity: 1; }
.rail li { cursor: pointer; display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-direction: row-reverse; transition: color .4s ease; }
.rn { width: 8px; height: 8px; border: 1px solid var(--fg-3); transition: background .4s ease, border-color .4s ease, transform .4s var(--ease); }
.rail li.done { color: var(--fg-2); }
.rail li.done .rn { background: var(--fg-3); }
.rail li.now { color: var(--fg); }
.rail li.now .rn { background: var(--accent); border-color: var(--accent); transform: scale(1.35); }
.scroll-hint { position: absolute; z-index: 3; left: 50%; bottom: clamp(20px, 4vh, 40px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; color: var(--fg-3); transition: opacity .5s ease; }
.scroll-hint span { width: 1px; height: 36px; background: linear-gradient(var(--fg-3), transparent); animation: hint 2s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.scroll-hint.off { opacity: 0; }

@media (max-width: 860px) {
  .stage-shade { background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 55%, rgba(0,0,0,.15) 100%); }
  .panel-hero { top: auto; bottom: 96px; transform: translateY(24px); }
  .panel-hero.is-on { transform: none; }
  .panel-step { bottom: 72px; }
  .panel-hero .hero-cta { flex-direction: column; align-items: flex-start; }
  .rail { top: auto; bottom: 22px; right: auto; left: var(--gutter); transform: none; flex-direction: row; gap: 14px; font-size: 0; }
  .rail li { gap: 0; }
  .scroll-hint { display: none; }
  .co-card { white-space: normal; max-width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint span { animation: none; transform: none; }
}

.facts { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--fg); }
.facts li { display: flex; align-items: baseline; gap: 10px; }
.facts li::before { content: ""; width: 6px; height: 6px; background: var(--accent); flex-shrink: 0; transform: translateY(-2px); }
.viz-tag { position: absolute; z-index: 3; right: clamp(28px, 4vw, 64px); top: calc(52px + clamp(26px, 3.4vw, 48px)); margin: 0; font-size: 12px; color: var(--fg-3); }
.skip-seq { position: absolute; z-index: 4; right: clamp(28px, 4vw, 64px); bottom: clamp(24px, 4vh, 40px); display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--fg-2); font-size: 13px; }
.skip-seq:hover { color: var(--fg); border-color: var(--fg-3); }
@media (max-width: 860px) {
  .viz-tag { right: auto; left: var(--gutter); top: calc(52px + 20px); }
  .skip-seq { bottom: 16px; right: var(--gutter); }
}

.rail.is-on { pointer-events: auto; }
.rail li:hover { color: var(--fg); }
.rail li:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }


/* Fassung 4: vollständige Leistungsdarstellung */
.exp { height: 420vh; }
.mark-list { list-style: none; margin: 0; padding: 0; }
.h2 + .intro { max-width: 760px; }

/* Anspruch und Kennzahlen */
#anspruch .h2 { max-width: 1100px; }
.kpis { list-style: none; margin: clamp(56px, 6vw, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.kpis li { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.kpis b { font-size: clamp(40px, 4vw, 60px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.kpis span { font-size: 15px; line-height: 1.45; color: var(--fg-2); max-width: 220px; }

/* Leistungen */
.svc-grid { margin-top: clamp(48px, 5vw, 80px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: svc; }
.svc { counter-increment: svc; position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: clamp(28px, 2.6vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid transparent; transition: border-color .4s ease; }
.svc:hover { border-color: var(--line); }
.svc::before { content: counter(svc, decimal-leading-zero); font-size: 14px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.svc h3 { font-size: clamp(23px, 1.9vw, 27px); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.svc-lead { color: var(--fg-2); }
.svc ul, .aud ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 15px; line-height: 1.45; color: var(--fg); }
.svc li, .aud li, .dc-list li { position: relative; padding-left: 18px; }
.svc li::before, .aud li::before, .dc-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; background: var(--accent); }
.svc-out { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--hair); font-size: 14px; color: var(--fg-2); display: flex; flex-direction: column; gap: 4px; }
.svc-out span { font-size: 12px; font-weight: 600; color: var(--fg-3); }
.svc ul + .svc-out { margin-top: auto; }
.svc > ul { margin-bottom: 14px; }

/* Spezialkompetenzen */
.spec { margin-top: clamp(48px, 5vw, 80px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: clamp(40px, 5.5vw, 96px); align-items: start; }
.spec-list { list-style: none; margin: 0; padding: 0; counter-reset: spec; }
.spec-list li { counter-increment: spec; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; padding: 28px 0; border-top: 1px solid var(--line); }
.spec-list li:last-child { border-bottom: 1px solid var(--line); }
.spec-list li::before { content: counter(spec, decimal-leading-zero); grid-row: span 2; font-size: 14px; font-weight: 600; color: var(--accent); padding-top: 5px; font-variant-numeric: tabular-nums; }
.spec-list h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.spec-list p { margin-top: 8px; color: var(--fg-2); }
.versus { position: sticky; top: 96px; padding: clamp(28px, 3vw, 44px); border-radius: var(--radius-lg); background: var(--surface); display: flex; flex-direction: column; gap: 28px; }
.vs-claim { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.vs-table { display: flex; flex-direction: column; font-size: 14px; line-height: 1.45; }
.vs-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--hair); }
.vs-row > :first-child { color: var(--fg-3); }
.vs-row > :nth-child(2) { color: var(--fg-2); }
.vs-row > :nth-child(3) { color: var(--fg); }
.vs-head { border-top: 0; padding-top: 0; font-size: 12px; font-weight: 600; }
.vs-head > :nth-child(3) { color: var(--accent); }
.vs-note { padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; color: var(--fg-2); }

/* Prüfkompetenz im Detail */
.detail-grid { margin-top: clamp(48px, 5vw, 80px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.detail-card { border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.detail-card .ffv-wrap { margin-top: 0; }
.detail-card .ffv-media { border-radius: 0; aspect-ratio: 16 / 10; }
.detail-card .scale-card { left: 20px; bottom: 20px; width: min(300px, calc(100% - 40px)); padding: 14px 18px; border-radius: 14px; gap: 10px; }
.dc-body { padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 16px; }
.dc-body h3 { font-size: clamp(24px, 2.1vw, 30px); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.dc-body > p { color: var(--fg-2); }
.dc-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; font-size: 15px; line-height: 1.45; }
.ratio-box { position: relative; aspect-ratio: 16 / 10; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(12px, 2vw, 32px); padding: clamp(24px, 3vw, 48px); background-color: var(--surface-deep);
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 32px 32px; }
.ratio-num { display: flex; flex-direction: column; gap: 12px; }
.ratio-num b { font-size: clamp(72px, 9vw, 150px); line-height: 0.9; font-weight: 600; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.ratio-num:first-child b { color: var(--fg-dim); }
.ratio-num:last-child b { color: var(--fg); display: inline-flex; align-items: flex-start; gap: 0.08em; }
.ratio-num:last-child b::after { content: ""; width: 0.14em; height: 0.14em; margin-top: 0.1em; background: var(--accent); }
.ratio-num span { font-size: 14px; line-height: 1.4; color: var(--fg-2); max-width: 200px; }
.ratio-arrow { width: clamp(40px, 5vw, 80px); height: 1px; background: var(--fg-3); position: relative; margin-bottom: 44px; }
.ratio-arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 1px solid var(--fg-3); border-right: 1px solid var(--fg-3); transform: rotate(45deg); }
.cat-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; font-size: 14px; line-height: 1.45; color: var(--fg-2); }
.cat-list li { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--hair); }
.cat-list b { font-size: 15px; font-weight: 600; color: var(--fg); }
.status-flow { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.status-flow li { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); }
.status-flow li + li::before { content: ""; width: 16px; height: 1px; background: var(--fg-dim); }
.status-flow li { white-space: nowrap; }
.status-flow li:last-child { color: var(--fg); }

/* Vorgehen */
.phases { list-style: none; margin: clamp(48px, 5vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(32px, 3.4vw, 56px); row-gap: 56px; }
.phases li { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 28px; border-top: 1px solid var(--line); }
.phases li::before { content: ""; position: absolute; left: 0; top: -1px; width: 40px; height: 1px; background: var(--accent); }
.ph-no { font-size: 14px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.phases h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; }
.phases p { color: var(--fg-2); }
.phases .ph-out { margin-top: auto; padding-top: 10px; font-size: 14px; color: var(--fg); display: flex; flex-direction: column; gap: 2px; }
.phases .ph-out::before { content: "Ergebnis"; font-size: 12px; font-weight: 600; color: var(--fg-3); }
.note-line { margin-top: clamp(40px, 4vw, 64px); display: flex; gap: 12px; align-items: baseline; max-width: 820px; font-size: 15px; color: var(--fg-3); }
.note-line::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; background: var(--accent); transform: translateY(-2px); }

/* Einsatzfelder */
.aud-grid { margin-top: clamp(48px, 5vw, 80px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.aud { padding: clamp(28px, 2.6vw, 40px); border-radius: var(--radius-lg); background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.aud h3 { font-size: clamp(23px, 1.9vw, 27px); font-weight: 600; letter-spacing: -0.02em; }
.sit { margin-top: clamp(40px, 4vw, 64px); display: flex; flex-direction: column; }
.sit-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.sit-row > :first-child { font-weight: 600; }
.sit-row > :last-child { color: var(--fg-2); }
.sit-head { border-top: 0; padding-top: 0; font-size: 13px; }
.sit-head > span { color: var(--fg-3) !important; font-weight: 600; }

/* Werkzeuge */
.tools { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; row-gap: 48px; }
.tool { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.tool h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.tool p { color: var(--fg-2); }
.formats-line { margin-top: clamp(48px, 5vw, 80px); display: flex; flex-wrap: wrap; gap: 0 0.36em; font-size: clamp(48px, 7vw, 112px); line-height: 1; font-weight: 600; letter-spacing: -0.045em; color: var(--fg-dim); }
.formats-line span { transition: color .6s ease; }
.formats-line span:hover { color: var(--fg); }
.motion .formats-line.in span { animation: cycle 10s ease-in-out infinite; animation-delay: calc(var(--i) * 2s); }

/* Praxisbeispiel */
.case { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.case-facts { margin: 0; padding: clamp(28px, 3.4vw, 52px); display: flex; flex-direction: column; }
.case-facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--hair); }
.case-facts > div:first-child { border-top: 0; padding-top: 0; }
.case-facts dt { font-size: 14px; font-weight: 600; color: var(--fg-3); }
.case-facts dd { margin: 0; color: var(--fg-2); }
.case-side { padding: clamp(28px, 3.4vw, 52px); background: var(--surface-deep); display: flex; flex-direction: column; gap: 32px; }
.case-kpi { display: flex; flex-direction: column; gap: 8px; }
.case-kpi b { font-size: clamp(56px, 5.6vw, 88px); line-height: 1; font-weight: 600; letter-spacing: -0.045em; }
.case-kpi span { color: var(--fg-2); }
.case-transfer { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; font-size: 15px; line-height: 1.45; color: var(--fg-2); }
.case-transfer li { display: flex; flex-direction: column; gap: 2px; padding-top: 16px; border-top: 1px solid var(--hair); }
.case-transfer b { color: var(--fg); font-weight: 600; }

/* Nutzen */
.benefits { margin-top: clamp(48px, 5vw, 80px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(32px, 3.4vw, 56px); row-gap: 56px; }
.benefits > div { display: flex; flex-direction: column; gap: 10px; }
.benefits h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 12px; }
.benefits h3::before { content: ""; width: 8px; height: 8px; flex-shrink: 0; background: var(--accent); transform: translateY(-2px); }
.benefits p { color: var(--fg-2); padding-left: 20px; }

/* Einstieg */
.entries { margin-top: clamp(48px, 5vw, 80px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.entry { padding: clamp(28px, 2.6vw, 40px); border-radius: var(--radius-lg); background: var(--surface); display: flex; flex-direction: column; gap: 20px; }
.entry h3 { font-size: clamp(22px, 1.8vw, 26px); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.entry dl { margin: 0; display: flex; flex-direction: column; }
.entry dt { font-size: 12px; font-weight: 600; color: var(--fg-3); padding-top: 14px; border-top: 1px solid var(--hair); }
.entry dt:first-child { padding-top: 0; border-top: 0; }
.entry dd { margin: 4px 0 14px; font-size: 15px; line-height: 1.45; color: var(--fg-2); }
.entry dd:last-child { margin-bottom: 0; color: var(--fg); }

/* Unternehmen */
.milestones { margin: 0; display: flex; flex-direction: column; }
.milestones > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.milestones dt { font-weight: 600; font-variant-numeric: tabular-nums; }
.milestones dd { margin: 0; color: var(--fg-2); }
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.values li { display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.45; color: var(--fg-2); }
.values b { font-size: 17px; font-weight: 600; color: var(--fg); }
.company-sub { font-size: 13px; font-weight: 600; color: var(--fg-3); margin-bottom: -20px; }

/* Header und Kontakt */
.nav-tel { font-size: 13px; color: var(--fg-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav-tel:hover { color: var(--fg); }
.nav-end { display: flex; align-items: center; gap: 20px; }
.direct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.direct-grid > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.direct-grid .lbl { font-size: 13px; color: var(--fg-3); }
.direct-grid a.tel { color: var(--fg); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.direct-grid address { font-style: normal; color: var(--fg-2); font-size: 15px; line-height: 1.5; }
.foot-addr { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--fg-3); }
.foot-addr a { color: var(--fg-2); }

/* Bewegung */
.motion .svc-grid .reveal.in, .motion .aud-grid .reveal.in, .motion .entries .reveal.in { transition-duration: 1.1s; }

@media (max-width: 1180px) {
  .nav-tel { display: none; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 1060px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .svc-grid, .aud-grid, .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phases, .benefits, .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec { grid-template-columns: minmax(0, 1fr); }
  .versus { position: static; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .case { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .nav-end .nav-cta { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .detail-card .scale-card { position: static; width: auto; margin: 0; padding: 20px clamp(28px, 3vw, 44px) 0; background: none; border-radius: 0; }
  .detail-card .ffv-media { aspect-ratio: 4 / 3; }
}
@media (max-width: 700px) {
  .svc-grid, .aud-grid, .entries, .phases, .benefits, .tools { grid-template-columns: minmax(0, 1fr); }
  .phases, .benefits { row-gap: 40px; }
  .tools { row-gap: 32px; }
  .dc-list, .cat-list, .values, .direct-grid { grid-template-columns: minmax(0, 1fr); }
  .vs-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 16px; }
  .vs-row > :first-child { grid-column: 1 / -1; font-weight: 600; }
  .vs-head > :first-child { display: none; }
  .sit-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sit-head { display: none; }
  .case-facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ratio-box { aspect-ratio: auto; grid-template-columns: minmax(0, 1fr); padding: 32px 28px; gap: 20px; }
  .ratio-arrow { margin: 0; transform: rotate(90deg); transform-origin: left center; width: 32px; margin-left: 4px; }
  .ratio-num b { font-size: 88px; }
  .milestones > div { grid-template-columns: 64px minmax(0, 1fr); }
  .spec-list li { grid-template-columns: 36px minmax(0, 1fr); }
}

/* Leistungsbereich 07: breite Karte */
.svc-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 4vw, 72px); align-items: start; background: linear-gradient(135deg, rgba(0,178,255,.10), rgba(0,178,255,0) 55%), var(--surface); border-color: rgba(0,178,255,.28); }
.svc-wide::before { grid-column: 1 / -1; margin-bottom: 14px; }
.svc-head { display: flex; flex-direction: column; gap: 14px; }
.svc-wide h3 { font-size: clamp(28px, 2.6vw, 38px); }
.svc-wide .svc-lead { font-size: clamp(17px, 1.3vw, 19px); color: var(--fg); }
.svc-wide .svc-out { margin-top: 12px; }
.svc-wide > ul { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; font-size: 16px; }

/* Praxisbeispiele */
.case-title { margin-top: clamp(48px, 5vw, 72px); font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.02em; }
.case-title + .intro { margin-top: 12px; }
.case-title + .intro + .case { margin-top: 32px; }
.case-real { grid-template-columns: minmax(0, 1fr); padding: clamp(28px, 3.4vw, 52px); gap: 40px; }
.real-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; position: relative; }
.real-flow li { display: flex; flex-direction: column; gap: 6px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--fg-2); position: relative; }
.real-flow li::before { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; background: var(--fg-3); }
.real-flow li:last-child::before { background: var(--accent); box-shadow: 0 0 0 5px rgba(0,178,255,.16); }
.real-flow span { font-size: 13px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.real-flow b { font-size: 18px; font-weight: 600; color: var(--fg); letter-spacing: -0.01em; }
.real-claim { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; max-width: 900px; }
@media (max-width: 1060px) {
  .svc-wide { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .real-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
}
@media (max-width: 700px) {
  .entries { grid-template-columns: minmax(0, 1fr); }
  .svc-wide > ul { grid-template-columns: minmax(0, 1fr); font-size: 15px; }
  .real-flow { grid-template-columns: minmax(0, 1fr); gap: 0; border-left: 1px solid var(--line); padding-left: 22px; }
  .real-flow li { border-top: 0; padding: 0 0 22px; }
  .real-flow li::before { left: -26px; top: 6px; }
}

/* Fassung 5 */
.panel-hero { max-width: 900px; }
.panel-hero h1 { font-size: clamp(40px, 5.2vw, 80px); }
.panel-hero .lead { max-width: 640px; }
.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis span { max-width: 260px; }
#anspruch .intro { margin-top: 28px; max-width: 780px; }

.systems, .branches { margin-top: clamp(40px, 4vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 32px; row-gap: 8px; }
.sys-t { font-size: 14px; font-weight: 600; color: var(--fg-3); }
.sys-l { color: var(--fg); font-size: 17px; line-height: 1.5; }
.sys-n { grid-column: 2; font-size: 15px; color: var(--fg-2); }
.branches ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.branches li { min-height: 36px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; color: var(--fg); }

.finding-box { aspect-ratio: 16 / 10; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(20px, 3vw, 44px); background-color: var(--surface-deep); }
.fb-cap { font-size: 13px; font-weight: 600; color: var(--fg-3); }
.finding-box .findings { background: rgba(22,22,24,.92); border: 1px solid var(--hair); }
.motion .finding-box.in .findings li, .motion .detail-card.in .findings li { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(.3s + var(--i) * .12s); }
.motion .detail-card.pre:not(.in) .findings li { opacity: 0; transform: translateX(-12px); }

.cta-band { padding-block: 0 var(--section); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta-inner > * { min-width: 0; }
.cta-t { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; flex: 1 1 520px; }
.cta-act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.cta-inner { padding: clamp(28px, 3.4vw, 52px); border-radius: var(--radius-lg); background: var(--surface); max-width: calc(1280px + 2 * var(--gutter)); }
.cta-band .wrap.cta-inner { width: calc(100% - 2 * var(--gutter)); max-width: 1280px; }

.next-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; counter-reset: ns; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; color: var(--fg-2); }
.next-steps li::before { content: counter(ns, decimal-leading-zero); grid-row: span 2; font-size: 13px; font-weight: 600; color: var(--accent); padding-top: 2px; }
.next-steps b { color: var(--fg); font-weight: 600; }
.ns-t { font-size: 13px; font-weight: 600; color: var(--fg-3); margin-bottom: -12px; }

.legal { flex-basis: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 32px; padding: 24px 0 8px; border-top: 1px solid var(--hair); line-height: 1.6; }
.legal b { display: block; color: var(--fg-2); font-weight: 600; margin-bottom: 2px; }
.legal a { color: var(--fg-2); }

/* Handy und Tablet: statischer Einstieg */
.exp.exp-static { height: auto; }
.exp-static .stage { position: relative; height: 92vh; height: 92svh; min-height: 560px; }
.exp-static .stage-poster { opacity: .5; }
.exp-static .panel-step, .exp-static .rail, .exp-static .scroll-hint, .exp-static .skip-seq, .exp-static .callout, .exp-static #scene { display: none; }
.exp-static .panel-hero { opacity: 1; pointer-events: auto; }

@media (max-width: 1060px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .legal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .exp-static .panel-hero { top: auto; bottom: 48px; transform: none; }
  .exp-static .panel-hero h1 { font-size: clamp(36px, 9vw, 52px); }
  .exp-static .viz-tag { display: none; }
}
@media (max-width: 700px) {
  .systems, .branches { grid-template-columns: minmax(0, 1fr); }
  .sys-n { grid-column: 1; }
  .finding-box { aspect-ratio: auto; }
  .findings li { grid-template-columns: 12px minmax(0, 1fr); }
  .findings .st { grid-column: 2; text-align: left; }
  .kpis { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kpis li { padding: 20px 0; gap: 8px; }
  .kpis b { font-size: 32px; }
  .legal { grid-template-columns: minmax(0, 1fr); }
}
.kpis b { font-size: clamp(34px, 3.3vw, 50px); white-space: nowrap; }

@media (min-width: 861px) {
  .stage-shade { background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.62) 36%, rgba(0,0,0,.18) 62%, rgba(0,0,0,0) 78%), linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 35%); }
}
.mobile-nav { background: var(--bg); min-height: calc(100vh - 52px); min-height: calc(100svh - 52px); }
.site-header:has(.mobile-nav:not([hidden])) { background: var(--bg); }


/* Fachmodelle und Planung in der 3D-Sequenz */
@media (min-width: 861px) {
  .stage-shade { background: linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.76) 30%, rgba(0,0,0,.32) 52%, rgba(0,0,0,0) 72%), linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 35%); }
}
@media (min-width: 861px) {
  .rail { padding: 14px 16px; margin-right: -16px; border-radius: 10px; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}

.callout.solved .co-pin { border-color: var(--ok); box-shadow: 0 0 0 6px rgba(48, 209, 88, .18); }
.co-pin { transition: border-color .4s ease, box-shadow .4s ease; }


/* Helle Darstellung: wird über data-theme="light" am Wurzelelement aktiviert. Die 3D-Bühne bleibt bewusst dunkel. */
html { transition: background-color .35s ease; }
body { transition: background-color .35s ease, color .35s ease; }
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #f5f5f7;
  --surface-deep: #ebebef;
  --field: #ffffff;
  --fg: #1d1d1f;
  --fg-2: #515154;
  --fg-3: #6e6e73;
  --fg-mute: #86868b;
  --fg-dim: #c7c7cc;
  --line: rgba(0, 0, 0, 0.12);
  --hair: rgba(0, 0, 0, 0.07);
  --accent: #0077c2;
  --accent-hover: #005f9c;
  --ok: #1f9d45;
  --warn: #d49b00;
  --crit: #e0352b;
  color-scheme: light;
}
:root .alt { --surface: #ffffff; --surface-deep: #f5f5f7; }

/* Dunkle Inseln im hellen Modus: 3D-Bühne und Einblendungen auf Bildern */
:root .stage {
  --bg: #000000; --surface: #161618; --fg: #f5f5f7; --fg-2: #a1a1a6; --fg-3: #86868b; --fg-mute: #6e6e73; --fg-dim: #48484a;
  --line: rgba(255, 255, 255, 0.14); --hair: rgba(255, 255, 255, 0.08); --accent: #00b2ff; --accent-hover: #5cd0ff;
  --ok: #30d158; --warn: #ffcc1a; --crit: #ff453a;
  color: var(--fg);
}
@media (min-width: 861px) {
  :root .scale-card { --fg: #f5f5f7; --fg-2: #a1a1a6; --ok: #30d158; --warn: #ffcc1a; --crit: #ff453a; color: var(--fg); }
}

:root .site-header { background: rgba(255, 255, 255, 0.8); }
:root .site-header:has(.mobile-nav:not([hidden])) { background: var(--bg); }
:root .nav-links a { color: var(--fg-2); }
:root .nav-links a:hover { color: var(--fg); }
:root .chip { border-color: var(--line); }
:root .chip[aria-pressed="true"] { color: #fff; }
:root input, :root textarea { border-color: var(--line); }
:root .findings li + li { border-top-color: var(--hair); }
:root .finding-box .findings { background: #ffffff; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06); }
:root .svc-wide { background: linear-gradient(135deg, rgba(0,119,194,.08), rgba(0,119,194,0) 55%), var(--surface); border-color: rgba(0,119,194,.25); }
:root .motion-toggle { background: rgba(255, 255, 255, 0.9); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12); }
:root .portrait img { filter: none; }
:root .status.ok { border-color: rgba(31, 157, 69, 0.45); }

/* Rechte Seite der Navigation */
.nav-right { display: flex; align-items: center; gap: 12px; }
@media (max-width: 860px) { .nav-right { gap: 4px; } }


/* Buttonsystem Variante A: Messrahmen */
:root { --btn-bg: #f5f5f7; --btn-fg: #000; --btn-bg-h: #ffffff; }
:root { --btn-bg: #1d1d1f; --btn-fg: #ffffff; --btn-bg-h: #000000; }
:root .stage { --btn-bg: #f5f5f7; --btn-fg: #000; --btn-bg-h: #ffffff; }

.btn { position: relative; gap: 14px; min-height: 48px; padding: 0 20px 0 22px; border-radius: 2px; background: var(--btn-bg); color: var(--btn-fg); font-size: 16px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; transition: background-color .25s ease; }
.btn:hover { background: var(--btn-bg-h); color: var(--btn-fg); }
.btn:active { transform: none; }
.btn .ar { width: 18px; height: 10px; flex-shrink: 0; transition: transform .35s var(--ease); }
.btn:hover .ar, .btn:focus-visible .ar { transform: translateX(4px); }
.btn::before, .btn::after, .btn .fr::before, .btn .fr::after { content: ""; position: absolute; width: 9px; height: 9px; border: 0 solid var(--accent); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .35s var(--ease); }
.btn::before { left: -6px; top: -6px; border-left-width: 2px; border-top-width: 2px; transform: translate(4px, 4px); }
.btn::after { right: -6px; bottom: -6px; border-right-width: 2px; border-bottom-width: 2px; transform: translate(-4px, -4px); }
.btn .fr::before { right: -6px; top: -6px; border-right-width: 2px; border-top-width: 2px; transform: translate(-4px, 4px); }
.btn .fr::after { left: -6px; bottom: -6px; border-left-width: 2px; border-bottom-width: 2px; transform: translate(4px, -4px); }
.btn:hover::before, .btn:hover::after, .btn:hover .fr::before, .btn:hover .fr::after,
.btn:focus-visible::before, .btn:focus-visible::after, .btn:focus-visible .fr::before, .btn:focus-visible .fr::after { opacity: 1; transform: none; }
.btn:focus-visible { outline: none; }
#lead-form .btn { align-self: flex-start; margin-top: 8px; }

/* Weiterführende Textlinks mit Pfeil */
.b-link { display: inline-flex; align-items: center; gap: 10px; padding-block: 6px; font-size: 16px; font-weight: 500; color: var(--fg); background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .35s var(--ease), color .2s ease; }
.b-link:hover { color: var(--fg); background-size: 100% 1px; }
.b-link .ar { width: 16px; height: 9px; flex-shrink: 0; transition: transform .35s var(--ease); }
.b-link:hover .ar { transform: translateX(3px); }
.panel-step .b-link { margin-top: 22px; }

/* Kopfzeile: Telefon und Kontakt als Text */
.nav-kontakt { font-size: 13px; font-weight: 600; color: var(--fg); padding: 5px 0; border-bottom: 1px solid var(--fg-3); transition: border-color .2s ease; }
.nav-kontakt:hover { color: var(--fg); border-bottom-color: var(--fg); }
.nav-tel { color: var(--fg-2); }

/* Persönlicher Abschluss nach den Referenzen */
.cta-inner.person-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 36px; align-items: center; }
.avs { display: flex; }
.avs img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); }
.avs img + img { margin-left: -16px; }
.person-cta .cta-t { flex: none; font-size: clamp(22px, 2.1vw, 30px); }
.person-cta .cta-act { gap: 12px 28px; }
.tel-l { font-size: 19px; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
.tel-l:hover { color: var(--fg); }
@media (max-width: 860px) {
  .cta-inner.person-cta { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 700px) {
  #lead-form .btn { align-self: stretch; justify-content: space-between; }
}


/* Rechtliche Seiten: Impressum und Datenschutz */
.legal-open main { display: none; }
.legal-view { padding-block: clamp(32px, 4vw, 56px) var(--section); }
.legal-wrap { max-width: calc(960px + 2 * var(--gutter)); }
.legal-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-bottom: 20px; border-bottom: 1px solid var(--hair); }
.legal-nav .back { font-size: 15px; color: var(--fg-2); }
.legal-nav .back:hover { color: var(--fg); }
.ar-l { width: 16px; height: 9px; flex-shrink: 0; transition: transform .35s var(--ease); }
.legal-nav .back:hover .ar-l { transform: translateX(-3px); }
.legal-tabs { display: inline-flex; gap: 24px; font-size: 14px; }
.legal-tabs a { color: var(--fg-3); padding: 6px 0; border-bottom: 1px solid transparent; }
.legal-tabs a:hover { color: var(--fg); }
.legal-tabs a[aria-current="page"] { color: var(--fg); font-weight: 600; border-bottom-color: var(--fg); }
.legal-head { padding-block: clamp(48px, 6vw, 88px) clamp(32px, 4vw, 56px); }
.legal-h1 { margin-top: 14px; font-size: clamp(32px, 5.4vw, 72px); overflow-wrap: break-word; hyphens: auto; line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; }
.legal-h1:focus { outline: none; }
.legal-lead { margin-top: 24px; max-width: 720px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--fg-2); }
.legal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; padding-block: 28px; border-top: 1px solid var(--line); }
.legal-block h2, .legal-text h2 { font-size: 15px; font-weight: 600; color: var(--fg-3); }
.legal-block address, .legal-block p { margin-top: 10px; font-style: normal; font-size: 16px; line-height: 1.6; color: var(--fg); }
.legal-block a, .legal-text a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--fg-3); text-underline-offset: 3px; }
.legal-block a:hover, .legal-text a:hover { text-decoration-color: var(--fg); }
.legal-wide { padding-block: 28px; border-top: 1px solid var(--line); }
.legal-dl { margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.legal-dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.legal-dl dt { color: var(--fg-2); }
.legal-dl dd { margin: 0; color: var(--fg); font-variant-numeric: tabular-nums; }
.legal-text { border-top: 1px solid var(--line); }
.legal-text section { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 40px; row-gap: 0; padding-block: 32px; border-bottom: 1px solid var(--hair); scroll-margin-top: 72px; }
.legal-text section > h2 { grid-row: span 20; color: var(--fg); font-size: 17px; letter-spacing: -0.01em; line-height: 1.35; }
.legal-text section > h2 span { display: block; margin-bottom: 6px; font-size: 13px; color: var(--accent); font-variant-numeric: tabular-nums; }
.legal-text p, .legal-text ul, .legal-text address { grid-column: 2; margin: 0; font-style: normal; font-size: 16px; line-height: 1.65; color: var(--fg-2); max-width: 640px; }
.legal-text address { color: var(--fg); }
.legal-text section > :not(h2) + :not(h2) { margin-top: 14px; }
.legal-text ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.legal-text li { position: relative; padding-left: 18px; }
.legal-text li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; background: var(--accent); }
.legal-note { padding: 18px 20px; border-radius: 12px; background: var(--surface); color: var(--fg) !important; }
.legal-note b { font-weight: 600; }
.legal-stand { font-size: 14px !important; color: var(--fg-3) !important; }
.legal-toc { list-style: none; margin: 0 0 clamp(24px, 3vw, 40px); padding: 20px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 32px; counter-reset: toc; }
.legal-toc li { counter-increment: toc; display: flex; gap: 12px; font-size: 15px; }
.legal-toc li::before { content: counter(toc, decimal-leading-zero); color: var(--accent); font-size: 13px; font-weight: 600; padding-top: 2px; min-width: 20px; }
.legal-toc a { color: var(--fg-2); padding: 4px 0; }
.legal-toc a:hover { color: var(--fg); }
@media (max-width: 860px) {
  .legal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-dl { grid-template-columns: minmax(0, 1fr); }
  .legal-text section { grid-template-columns: minmax(0, 1fr); }
  .legal-text section > h2 { grid-row: auto; margin-bottom: 12px; }
  .legal-text p, .legal-text ul, .legal-text address { grid-column: 1; }
}
@media (max-width: 560px) {
  .legal-grid, .legal-toc { grid-template-columns: minmax(0, 1fr); }
  .legal-dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Responsiv */
@media (max-width: 1024px) {
  .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chain { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .chain::before { display: none; }
  .contact-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .hero { align-items: flex-start; text-align: left; }
  .hero .lead { text-wrap: pretty; }
  .br-d { display: none; }
  .hero-cta { justify-content: flex-start; flex-direction: column; align-items: flex-start; }
  .hero-media { aspect-ratio: 3 / 2; }
  .hero-media img { object-position: 38% center; }
  .hero-figure figcaption .cap { display: none; }
  .features, .bento, .company { grid-template-columns: minmax(0, 1fr); }
  .anchor-line { position: static; }
  .ffv-media { aspect-ratio: 4 / 3; }
  .scale-card { position: static; width: auto; margin-top: 16px; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ffv-wrap { display: flex; flex-direction: column; }
  .chain { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-left: 28px; border-left: 1px solid var(--line); }
  .chain li { gap: 4px; }
  .node { position: absolute; left: -34px; top: 9px; margin: 0; }
  .chain strong { font-size: 19px; }
}
@media (max-width: 560px) {
  .industries { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .industry { padding: 20px 0 24px; }
  .industry h3 { font-size: 21px; }
  .row-2 { grid-template-columns: minmax(0, 1fr); }
  .findings li { padding: 13px 14px; gap: 10px; }
  .person strong { font-size: 17px; }
  .person span { font-size: 14px; }
}
@media (max-width: 1060px) { .nav-links { display: none; } .menu-btn { display: inline-flex; } }
@media (max-width: 860px) { .nav-end { display: none; } }

/* Produktion: Spamschutzfeld und Fehlerseite */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
button[aria-busy="true"] { opacity: .6; cursor: progress; }
.nf { min-height: calc(100vh - 53px); display: flex; align-items: center; }
.nf-cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.nf-head { display: flex; align-items: center; justify-content: space-between; }

/* Mehrseitige Fassung: Navigation mit Leistungsmenü, Seitenkopf, Unterseitenbausteine, Fußbereich */

/* Navigation */
.nav-links { align-self: stretch; align-items: stretch; }
.nav-item { display: flex; align-items: center; }
.nav-links a[aria-current="page"], .nav-links .nav-item.is-current > a { color: var(--fg); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--fg); }
.nav-top { display: inline-flex; align-items: center; gap: 6px; }
.nav-top .chev { width: 9px; height: 6px; transition: transform .3s var(--ease); }
.has-menu:hover .chev, .has-menu:focus-within .chev, .has-menu.open .chev { transform: rotate(180deg); }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--hair);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s ease, transform .35s var(--ease), visibility 0s linear .25s;
}
.has-menu:hover .mega, .has-menu:focus-within .mega, .has-menu.open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .35s var(--ease), visibility 0s; }
.has-menu.closed .mega { opacity: 0; visibility: hidden; }
.mega-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 4vw, 72px); padding-block: 40px 48px; }
.mega-intro { display: flex; flex-direction: column; gap: 14px; }
.mega-intro .mega-t { font-size: 28px; line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); }
.mega-intro p { font-size: 15px; color: var(--fg-2); }
.mega-intro .b-link { font-size: 14px; margin-top: 4px; }
.mega-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 32px; }
.nav-links .mega-list a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 8px; padding: 12px 0; border-top: 1px solid var(--hair); font-size: 15px; color: var(--fg); }
.mega-list a .n { grid-row: span 2; font-size: 12px; font-weight: 600; color: var(--accent); padding-top: 3px; font-variant-numeric: tabular-nums; }
.mega-list a .d { font-size: 13px; color: var(--fg-3); line-height: 1.4; }
.nav-links .mega-list a:hover { color: var(--accent); }
.nav-links .mega-list a[aria-current="page"] { box-shadow: none; color: var(--accent); }

.mobile-nav details { border-bottom: 1px solid var(--hair); }
.mobile-nav summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 12px 0; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary .chev { width: 14px; height: 9px; transition: transform .3s var(--ease); }
.mobile-nav details[open] summary .chev { transform: rotate(180deg); }
.mobile-nav .sub { padding: 0 0 14px; }
.mobile-nav .sub a { font-size: 17px; font-weight: 500; letter-spacing: 0; padding: 9px 0; color: var(--fg-2); }
.mobile-nav .sub a[aria-current="page"] { color: var(--accent); }

/* Seitenkopf */
.page-hero { padding-block: clamp(28px, 3.5vw, 48px) clamp(48px, 6vw, 88px); }
.crumbs { margin-bottom: clamp(40px, 5vw, 72px); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: var(--fg-3); }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; border-top: 1px solid var(--fg-dim); border-right: 1px solid var(--fg-dim); transform: rotate(45deg); }
.crumbs a { color: var(--fg-2); }
.crumbs a:hover { color: var(--fg); }
.page-hero h1 { margin-top: 16px; font-size: clamp(40px, 6vw, 88px); line-height: 1.03; letter-spacing: -0.035em; max-width: 15ch; }
.page-hero h1 .mute { color: var(--fg-3); }
.page-hero .lead { margin-top: clamp(20px, 2.4vw, 32px); max-width: 760px; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; color: var(--fg-2); }
.page-hero .lead + .lead { margin-top: 14px; font-size: clamp(17px, 1.3vw, 19px); }
.hero-act { margin-top: clamp(28px, 3vw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.page-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: #000; aspect-ratio: 1920 / 824; }
.page-media img { width: 100%; height: 100%; object-fit: cover; }
.page-media-wrap { padding-bottom: clamp(56px, 7vw, 112px); }

/* Leistungsumfang */
.scope { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.scope-head { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 92px; }
.scope-head .h2-sm { font-size: clamp(32px, 3.4vw, 48px); }
.out-card { padding: 22px 24px; border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.out-card span { font-size: 12px; font-weight: 600; color: var(--fg-3); }
.out-card b { font-size: 17px; font-weight: 600; line-height: 1.4; }
.scope-list { list-style: none; margin: 0; padding: 0; counter-reset: sc; }
.scope-list li { counter-increment: sc; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.4; }
.scope-list li:last-child { border-bottom: 1px solid var(--line); }
.scope-list li::before { content: counter(sc, decimal-leading-zero); font-size: 13px; font-weight: 600; color: var(--accent); padding-top: 5px; font-variant-numeric: tabular-nums; }

/* Abschnittskopf mit Link */
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; }
.sec-head .h2, .sec-head .h2-sm { max-width: 18ch; }
.sec-head + * { margin-top: clamp(40px, 5vw, 72px); }
.h2-sm.solo { max-width: 22ch; }

/* Ablauf mit hervorgehobener Phase */
.phase-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.phase-strip li { min-width: 0; }
.phase-strip a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px 16px 22px 0; color: var(--fg-3); border-top: 2px solid transparent; margin-top: -1px; transition: color .2s ease, border-color .2s ease; }
.phase-strip a:hover { color: var(--fg); }
.phase-strip .n { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.phase-strip b { font-size: 17px; font-weight: 600; line-height: 1.25; }
.phase-strip .o { font-size: 13px; line-height: 1.4; }
.phase-strip .is-on a { color: var(--fg); border-top-color: var(--accent); }
.phase-strip .is-on .n { color: var(--accent); }

/* Kacheln mit Verweis */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 260px; padding: clamp(26px, 2.4vw, 36px); border-radius: var(--radius-lg); background: var(--surface); color: var(--fg); border: 1px solid transparent; transition: border-color .25s ease, transform .35s var(--ease); }
.tile:hover { color: var(--fg); border-color: var(--line); }
.tile .n { font-size: 14px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.tile h3 { font-size: clamp(22px, 1.8vw, 26px); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.tile p { font-size: 15px; color: var(--fg-2); line-height: 1.5; }
.tile .go { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.tile .go .ar { width: 16px; height: 9px; transition: transform .35s var(--ease); }
.tile:hover .go .ar { transform: translateX(4px); }
.tile-wide { grid-column: span 2; }
.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile .kpi { font-size: clamp(36px, 3.6vw, 52px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin-top: 8px; }
.tile .kpi-l { font-size: 14px; color: var(--fg-3); }

/* Verweisliste weitere Leistungen */
.rel-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); }
.rel-list a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); color: var(--fg); font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; }
.rel-list a:hover { color: var(--accent); }
.rel-list .n { font-size: 12px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.rel-list .ar { width: 16px; height: 9px; transition: transform .35s var(--ease); }
.rel-list a:hover .ar { transform: translateX(4px); }

/* Leistungskarten mit Verweis */
.svc-more { margin-top: 6px; font-size: 15px; align-self: flex-start; }
.svc-wide .svc-more { margin-top: 18px; }

/* Zitat aus der Messung */
.quote { max-width: 980px; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.25; letter-spacing: -0.02em; font-weight: 500; }
.quote-src { margin-top: 20px; font-size: 15px; color: var(--fg-3); }

/* Kontaktband */
.cta-strip { padding-block: 0 var(--section); }
.cta-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 32px clamp(32px, 5vw, 96px); padding-top: clamp(48px, 5vw, 72px); border-top: 1px solid var(--line); }
.cta-in .h2-sm { margin-top: 12px; }
.cta-in .intro { margin-top: 16px; }
.cta-act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; justify-self: end; }
.cta-act .tel-l { font-size: 17px; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
.cta-act .tel-l:hover { color: var(--accent); }

/* Abschnitt Referenz im Kurzformat */
.ref-teaser { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 72px); align-items: center; padding: clamp(28px, 3.4vw, 52px); border-radius: var(--radius-lg); background: var(--surface); }
.ref-teaser h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; margin-top: 10px; }
.ref-teaser p { margin-top: 14px; color: var(--fg-2); }
.ref-teaser .b-link { margin-top: 20px; }
.ref-teaser .kpi { font-size: clamp(44px, 5vw, 72px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.ref-teaser .kpi-l { margin-top: 10px; font-size: 15px; color: var(--fg-3); }
.lbl-sm { font-size: 13px; font-weight: 600; color: var(--fg-3); }

/* Standort */
.place { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.place > div { padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.place address { font-style: normal; font-size: 19px; line-height: 1.45; }
.place a { color: var(--fg); font-size: 19px; }
.place a:hover { color: var(--accent); }

/* Phasen auf der Seite Vorgehen mit Verweis */
.phases .ph-link { margin-top: 10px; font-size: 14px; }

/* Rechtliche Seiten im eigenen Dokument */
.legal-page .legal-view { padding-top: clamp(24px, 3vw, 40px); }

/* Fußbereich */
.site-footer.mfoot { padding-block: clamp(56px, 6vw, 88px) 36px; font-size: 14px; background: var(--bg-alt); border-top: 0; }
.mf-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 40px clamp(32px, 4vw, 72px); }
.mf-brand { display: flex; flex-direction: column; gap: 18px; }
.mf-brand .logo { padding: 0; }
.mf-brand .logo .lockup { height: 20px; }
.mf-brand p { color: var(--fg-2); max-width: 34ch; }
.mf-brand address { font-style: normal; color: var(--fg-2); line-height: 1.6; }
.mf-brand address a { color: var(--fg); }
.mf-h { font-size: 13px; font-weight: 600; color: var(--fg-3); margin-bottom: 14px; }
.mf-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mf-col a { color: var(--fg); }
.mf-col a:hover { color: var(--accent); }
.mf-bottom { margin-top: clamp(48px, 5vw, 72px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; font-size: 12px; color: var(--fg-3); }
.mf-bottom nav { display: flex; gap: 24px; }
.mf-bottom a { color: var(--fg-2); }
.mf-bottom a:hover { color: var(--fg); }

/* Kontaktseite */
.contact-page .contact-card { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

@media (max-width: 1180px) {
  .mega-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1060px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-wide { grid-column: span 2; }
  .phase-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mf-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mf-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .scope, .ref-teaser, .cta-in { grid-template-columns: minmax(0, 1fr); }
  .scope-head { position: static; }
  .cta-act { justify-self: start; }
  .rel-list { grid-template-columns: minmax(0, 1fr); }
  .place { grid-template-columns: minmax(0, 1fr); }
  .page-media { aspect-ratio: 4 / 3; }
  .contact-page .contact-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .tiles, .tiles-2 { grid-template-columns: minmax(0, 1fr); }
  .tile-wide { grid-column: auto; }
  .tile { min-height: 0; }
  .phase-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mf-top { grid-template-columns: minmax(0, 1fr); }
  .crumbs { margin-bottom: 32px; }
}

/* Ergänzungen der mehrseitigen Fassung */
.sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 32px; margin-left: 2px; padding: 0; border: 0; background: transparent; color: var(--fg-3); cursor: pointer; }
.sub-toggle .chev { width: 9px; height: 6px; transition: transform .3s var(--ease); }
.has-menu:hover .sub-toggle .chev, .has-menu:focus-within .sub-toggle .chev, .has-menu.open .sub-toggle .chev { transform: rotate(180deg); }
.has-menu.closed .sub-toggle .chev { transform: none; }
.nav-links .nav-item > a, .nav-links > a { display: inline-flex; align-items: center; }
.mega-list a .t { font-weight: 500; }
.mega-intro .b-link { align-self: flex-start; }
.mobile-nav details summary { font-size: 28px; }
.mobile-nav .sub a { display: block; }
.mobile-nav .m-tel { font-size: 19px; font-weight: 500; color: var(--fg-2); }

.page-hero .eyebrow { margin-top: 0; }
.page-hero .eyebrow + h1 { margin-top: 16px; }
.sec-first { padding-top: clamp(56px, 6vw, 96px); }
.sec-tight { padding-block: clamp(64px, 7vw, 112px); }
.sec-head .eyebrow + .h2, .sec-head .eyebrow + .h2-sm { margin-top: 16px; }
.h2-sm.solo { margin-top: 16px; }
.h2-sm.solo + * { margin-top: clamp(40px, 5vw, 64px); }
.eyebrow + .h2-sm { margin-top: 16px; }

/* Kacheln */
.tile { min-height: 260px; overflow: visible; }
.tile h3 { font-size: clamp(22px, 1.8vw, 26px); }
.tile p { max-width: none; }
.tile-dark { background: #0b0b0d; color: #f5f5f7; }
.tile-dark:hover { color: #f5f5f7; border-color: transparent; background: #000; }
.tile-dark p { color: #a1a1a6; }
.tile-dark .n { color: #5cd0ff; }
.alt .tile { background: var(--bg); }
.alt .tile-dark { background: #0b0b0d; }

/* Referenzen */
.ref-stack { display: grid; gap: 20px; }
.alt .ref-teaser { background: var(--bg); }
.ref-claim { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.12; font-weight: 600; letter-spacing: -0.025em; }
.ref-teaser .kpi-l { max-width: 32ch; }

/* Vergleich auf der Startseite und den Leistungsseiten */
.spec-home { grid-template-columns: minmax(0, 1fr); }
.spec-home .versus { position: static; }
.alt .versus { background: var(--bg); }

/* Übersicht Leistungen */
.svc h3 a { color: inherit; }
.svc h3 a:hover { color: var(--accent); }
.alt .svc { background: var(--bg); }
.svc-more { margin-top: 14px; }

/* Ablauf auf der Startseite */
.alt .phase-strip a:hover { color: var(--fg); }

/* Unternehmen */
.company > div:first-child .h2-sm { max-width: 14ch; }

/* Kontaktseite */
.contact-page .contact-card { margin-top: 0; }
.contact-page .contact-intro { gap: 24px; }

@media (max-width: 860px) {
  .sub-toggle { display: none; }
}

/* Bisheriges Logo */
.logo .lockup-alt { height: 30px; }
.mf-brand .logo .lockup-alt { height: 32px; }
@media (max-width: 700px) { .logo .lockup-alt { height: 26px; } }

/* Standort mit zwei Büros */
.place { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1060px) { .place { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Referenzkarten */
.ref-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ref-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ref-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--surface); color: var(--fg); overflow: hidden; border: 1px solid transparent; transition: border-color .25s ease; }
.alt .ref-card { background: var(--bg); }
.ref-card:hover { color: var(--fg); border-color: var(--line); }
.rc-img { margin: 0; aspect-ratio: 16 / 7; background: #000; overflow: hidden; }
.rc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ref-card:hover .rc-img img { transform: scale(1.03); }
.rc-body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.4vw, 34px); }
.rc-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 13px; color: var(--fg-3); }
.rc-kat { font-weight: 600; color: var(--accent); }
.ref-card h3 { font-size: clamp(21px, 1.7vw, 25px); line-height: 1.18; font-weight: 600; letter-spacing: -0.02em; }
.rc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.45; color: var(--fg-2); }
.rc-list li { position: relative; padding-left: 16px; }
.rc-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--accent); }
.rc-ph { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; font-size: 11px; color: var(--fg-mute); }
.rc-ph li { padding-top: 7px; border-top: 3px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-ph li.on { border-top-color: var(--accent); color: var(--fg-2); font-weight: 600; }
.ref-card .go { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.ref-card .go .ar { width: 16px; height: 9px; transition: transform .35s var(--ease); }
.ref-card:hover .go .ar { transform: translateX(4px); }

/* Eckdaten im Kopf einer Referenz */
.page-hero .hero-act:has(.ref-facts) { margin-top: clamp(28px, 3vw, 44px); }
.ref-facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 12px clamp(28px, 4vw, 64px); }
.ref-facts dt { font-size: 13px; font-weight: 600; color: var(--fg-3); }
.ref-facts dd { margin: 4px 0 0; font-size: 17px; }

@media (max-width: 1060px) { .ref-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .ref-grid, .ref-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .ref-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Wann Sie uns einbeziehen */
.when { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.when-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.when-list a { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: baseline; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--fg); font-size: clamp(19px, 1.7vw, 24px); letter-spacing: -0.01em; }
.when-list .n { font-size: 13px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.when-list .w { color: var(--fg-2); }
.when-list .w b { color: var(--fg); font-weight: 600; }
.when-list .l { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg-3); white-space: nowrap; }
.when-list .l .ar { width: 16px; height: 9px; transition: transform .35s var(--ease); }
.when-list a:hover .l { color: var(--accent); }
.when-list a:hover .l .ar { transform: translateX(4px); }
.bcheck { padding: clamp(24px, 2.6vw, 36px); border-radius: var(--radius-lg); background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.bcheck h3 { font-size: clamp(24px, 2vw, 30px); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.bcheck p:not(.lbl-sm) { color: var(--fg-2); }
.bcheck .b-link { margin-top: 6px; }
@media (max-width: 960px) { .when { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .when-list a { grid-template-columns: 36px minmax(0, 1fr); }
  .when-list .l { grid-column: 2; white-space: normal; }
}

/* Prüflauf Oktober 2026: Kontrast, Schrift, Barrierefreiheit und mobile Darstellung */
@font-face { font-family: "Instrument Sans Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"), local("Liberation Sans"); size-adjust: 102.9%; ascent-override: 94.3%; descent-override: 24.3%; line-gap-override: 0%; }
:root { --font: "Instrument Sans", "Instrument Sans Fallback", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; --accent: #006db2; --accent-hover: #00568c; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.opt { color: var(--fg-3); }
.rc-ph { color: var(--fg-3); }
.rail .rail-b { display: inline-flex; align-items: center; gap: inherit; flex-direction: inherit; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.rail .rail-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.exp .panel-hero h1 .mute { color: #8e8e93; }
.tagline { align-items: flex-start; }
.tagline .mp { margin-top: .5em; }
.exp-static .stage-poster { opacity: .4; }
.when-list .l { display: block; }
.when-list .l .ar { display: inline-block; margin-left: 10px; vertical-align: middle; }
@media (max-width: 520px) {
  .rc-ph { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; }
  .rc-ph li { white-space: normal; overflow: visible; text-overflow: clip; }
}
@media (max-width: 560px) { .place { grid-template-columns: minmax(0, 1fr); } }
.fb-cap { color: var(--fg-2); }
.rail .rail-b { width: 100%; justify-content: flex-start; }
.when-list .nw { white-space: nowrap; }
/* Statischer Einstieg auf Handy und Tablet schon vor dem Skript, damit sich das Layout beim Laden nicht verschiebt */
@media (max-width: 1023.98px), (pointer: coarse), (pointer: none) {
  .exp { height: auto; }
  .exp .stage { position: relative; height: 92vh; height: 92svh; min-height: 560px; }
  .exp .stage-poster { opacity: .4; }
  .exp .panel-step, .exp .rail, .exp .scroll-hint, .exp .skip-seq, .exp .callout, .exp #scene { display: none; }
  .exp .panel-hero { opacity: 1; pointer-events: auto; }
}
@media (max-width: 860px) {
  .exp .panel-hero { top: auto; bottom: 48px; transform: none; }
  .exp .panel-hero h1 { font-size: clamp(36px, 9vw, 52px); }
  .exp .viz-tag { display: none; }
}
.contact-page .direct-grid > div:nth-child(2) { grid-column: 1 / -1; }

/* Handy und Tablet: Hallenfoto im Einstieg, abgedunkelt und weich ins Schwarz ausgeblendet */
.mh3 { display: none; }
@media (max-width: 1023.98px), (pointer: coarse), (pointer: none) {
  .exp .stage-poster, .exp .stage-shade { display: none; }
  .mh3 { display: block; position: absolute; left: 0; right: 0; top: 0; height: 58%; overflow: hidden; z-index: 1; -webkit-mask-image: linear-gradient(#000 0%, #000 24%, rgba(0,0,0,.45) 42%, rgba(0,0,0,.12) 56%, transparent 68%); mask-image: linear-gradient(#000 0%, #000 24%, rgba(0,0,0,.45) 42%, rgba(0,0,0,.12) 56%, transparent 68%); }
  .mh3-img { position: absolute; inset: 0; background: #000 url('../img/halle-m.webp?v=20261022') 50% 42% / cover no-repeat; transform-origin: 55% 50%; animation: mh3-zoom 18s cubic-bezier(.2, .6, .2, 1) both; }
  .mh3-scan { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #00b2ff; box-shadow: 0 0 22px 5px rgba(0, 178, 255, .32); opacity: 0; animation: mh3-scan 3s cubic-bezier(.45, 0, .25, 1) .9s forwards; }
  .exp .tagline { color: #d1d1d6; }
}
@keyframes mh3-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes mh3-scan { 0% { opacity: 0; transform: translateX(0); } 10% { opacity: .85; } 85% { opacity: .85; } 100% { opacity: 0; transform: translateX(100vw); } }
@media (prefers-reduced-motion: reduce) { .mh3-img, .mh3-scan { animation: none; } }

/* Kontaktseite ohne Formular: direkter Kontakt */
.contact-direct .cd { display: flex; flex-direction: column; gap: 22px; }
.contact-direct .cd .ns-t { margin-bottom: 0; }
.cd-item { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; border-top: 1px solid var(--line); }
.cd-item .lbl { font-size: 13px; color: var(--fg-3); }
.cd-big { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; color: var(--fg); font-variant-numeric: tabular-nums; }
.cd-big:hover { color: var(--accent); }
.cd-item address { font-style: normal; color: var(--fg-2); font-size: 17px; line-height: 1.5; }
.cd-thema { font-size: 15px; color: var(--fg-2); }
.cd-act { margin-top: 10px; }
.cd-hint { font-size: 15px; color: var(--fg-2); }
@media (max-width: 560px) { .cd-act .btn { width: 100%; justify-content: space-between; } }
@media (max-width: 1060px) { .contact-direct .cd { order: -1; } .contact-direct .contact-intro { padding-top: 12px; } }
