/* ==========================================================================
   PlanPrisma — "Refraction"
   One white beam in → one ray per service → one beam out.
   Colour only ever encodes a service. Lines, not effects.
   ========================================================================== */

/* Self-hosted fonts (SIL OFL 1.1, see fonts/OFL-*.txt). No requests to Google.
   Variable fonts: Instrument Sans (wght 400–700, wdth 75–100 %), Newsreader (opsz 6–72, wght 400). */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("fonts/instrument-sans-latin-ext.woff2") 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-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("fonts/instrument-sans-latin.woff2") 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;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-latin-ext.woff2") 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: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-latin.woff2") 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;
}

:root {
  --ink: #0B0C10;
  --text: #ECEAE4;
  --text-2: #C2C1BC;
  --muted: #9A9CA3;
  --line: rgba(236, 234, 228, .12);
  --line-2: rgba(236, 234, 228, .26);
  --beam: #FFFFFF;

  /* service spectrum: matched lightness, restrained chroma ("printed light") */
  /* mineral hues; the entry offer's gold is the one that carries */
  --s1: oklch(68% .10 40);
  /* Schnellcheck     · terracotta */
  --s2: oklch(82% .14 84);
  /* Pre-Check        · gold       */
  --s3: oklch(74% .07 155);
  /* Bauantrag        · sage       */
  --s4: oklch(70% .06 245);
  /* Berichte         · slate      */
  --s5: oklch(66% .07 305);
  /* Projektsteuerung · heather    */
  --s6: oklch(60.482% 0.17941 24.205);
  /* Nutzungsbeschreibung · red   */
  --blend: screen;

  /* paper band */
  --paper: #EDEAE2;
  --paper-text: #131417;
  --paper-text-2: #3F424A;
  --paper-muted: #686B73;
  --paper-line: rgba(19, 20, 23, .16);
  --sheet: #FBFAF7;

  --font-display: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-lead: "Newsreader", Georgia, "Times New Roman", serif;

  --wrap-max: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --col-gap: clamp(20px, 2.4vw, 32px);
  --grid: repeat(12, minmax(0, 1fr));
  --section: clamp(80px, 8vw, 120px);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.25, .8, .25, 1);
}

:root[data-theme="light"] {
  --ink: #F3F1EB;
  --text: #111216;
  --text-2: #363940;
  --muted: #5E6169;
  --line: rgba(17, 18, 22, .12);
  --line-2: rgba(17, 18, 22, .26);
  --beam: #111216;
  --s1: oklch(54% .11 40);
  --s2: oklch(66% .14 78);
  --s3: oklch(54% .08 155);
  --s4: oklch(50% .07 245);
  --s5: oklch(48% .08 305);
  --s6: oklch(58.386% 0.18301 24.818);
  --blend: multiply;
  /* in daylight the paper band inverts into a dark band */
  --paper: #15171B;
  --paper-text: #ECEAE4;
  --paper-text-2: #C2C1BC;
  --paper-muted: #9A9CA3;
  --paper-line: rgba(236, 234, 228, .16);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --ink: #F3F1EB;
    --text: #111216;
    --text-2: #363940;
    --muted: #5E6169;
    --line: rgba(17, 18, 22, .12);
    --line-2: rgba(17, 18, 22, .26);
    --beam: #111216;
    --s1: oklch(54% .11 40);
    --s2: oklch(66% .14 78);
    --s3: oklch(54% .08 155);
    --s4: oklch(50% .07 245);
    --s5: oklch(48% .08 305);
    --s6: oklch(60.482% 0.17941 24.205);
    --blend: multiply;
    --paper: #15171B;
    --paper-text: #ECEAE4;
    --paper-text-2: #C2C1BC;
    --paper-muted: #9A9CA3;
    --paper-line: rgba(236, 234, 228, .16);
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 68px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 16.5px/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .6s var(--ease-soft), color .6s var(--ease-soft);
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* tracking loosens as size drops: −3.4 % at display → −2 % at 54 px → −1.5 % at 36 px → 0 at text sizes */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
}

/* one headline weight (regular), a slightly narrowed width for display, tracking eased as size drops */
h1,
h2,
.cta-title,
.precheck-copy h2,
.doc-qs p {
  font-stretch: 88%;
}

.problem-lead,
.services-head p:last-child,
.precheck-sub,
.who-head .who-focus {
  font-family: var(--font-lead);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -.005em;
}

h1 {
  font-size: clamp(62px, 10vw, 148px);
  line-height: .94;
  letter-spacing: -.022em;
}

h2 {
  font-size: clamp(36px, 3.8vw, 56px);
  line-height: 1.04;
  letter-spacing: -.016em;
}

h3 {
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -.01em;
}

p {
  text-wrap: pretty;
}

.chip {
  display: inline-block;
  padding: 6px 9px 5px;
  font: 500 12px/1 var(--font-text);
  letter-spacing: .005em;
  background: var(--text);
  color: var(--ink);
}

.chip-dark {
  background: var(--paper-text);
  color: var(--paper);
}

.chip-gold {
  background: var(--s2);
  color: #16181D;
}

.kicker {
  font: 500 14px/1 var(--font-text);
  color: var(--text-2);
  margin-bottom: 22px;
}

.precheck .kicker {
  color: var(--paper-text-2);
  margin-bottom: 0;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 300;
  padding: 10px 14px;
  background: var(--text);
  color: var(--ink);
  font: 500 14px var(--font-text);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* --------------------------------------------------------------------------
   Buttons & links — plain rectangles, two sizes
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 26px;
  background: var(--text);
  color: var(--ink);
  font: 500 15.5px/1 var(--font-text);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s var(--ease-soft);
}

.btn:hover {
  background: color-mix(in srgb, var(--text) 84%, var(--ink));
}

.btn-sm {
  padding: 11px 16px;
  font-size: 14px;
}

.btn-ghost {
  background: none;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.btn-ghost:hover {
  background: none;
  box-shadow: inset 0 0 0 1px var(--text);
}

.link {
  font: 500 15.5px/1 var(--font-text);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.link span {
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color .25s;
}

.link:hover span {
  text-decoration-color: var(--text);
}

/* --------------------------------------------------------------------------
   Nav — opaque; links right-aligned against the CTA
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--ink);
  transition: background-color .35s var(--ease-soft), color .35s var(--ease-soft);
}

.nav.on-paper {
  background: var(--paper);
  color: var(--paper-text);
}

.nav.on-paper .logo-mark,
.nav.on-paper .nav-links a {
  color: var(--paper-text);
}

.nav.on-paper .nav-login {
  border-color: var(--paper-line);
}

.nav.on-paper .nav-login a {
  color: var(--paper-text);
}

.nav.on-paper .menu-toggle {
  color: var(--paper-text);
}

.nav.on-paper .btn {
  background: var(--paper-text);
  color: var(--paper);
}

.nav-in {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 500 20px/1 var(--font-display);
  font-stretch: 88%;
  letter-spacing: -.005em;
  white-space: nowrap;
}

/* Logo: assets/logo.svg used as a mask, filled with the current text colour,
   so it follows day/night mode and the inverted nav over the paper band. */
.logo-mark {
  display: inline-block;
  flex: none;
  width: 34px;
  height: 34px;
  color: var(--text);
  background-color: currentColor;
  -webkit-mask: url("assets/logo.svg") center / contain no-repeat;
  mask: url("assets/logo.svg") center / contain no-repeat;
}

.nav-menu {
  margin-left: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font: 450 14.5px/1 var(--font-text);
  color: var(--text-2);
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-login {
  padding-left: 28px;
  border-left: 1px solid var(--line-2);
}

.nav-login a {
  color: var(--text-2);
}

.nav .btn-sm {
  transition: opacity .3s, transform .3s var(--ease), background-color .25s;
}

.nav:not(.cta-away) .btn-sm {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
}

.nav-actions {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 0 0 8px;
  background: none;
  border: 0;
  color: var(--text);
  font: 500 15px var(--font-text);
  cursor: pointer;
}

.menu-icon {
  width: 18px;
  height: 9px;
  position: relative;
}

.menu-icon i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease);
}

.menu-icon i:first-child {
  top: 0;
}

.menu-icon i:last-child {
  bottom: 0;
}

.menu-open .menu-icon i:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-open .menu-icon i:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero — the beam leaves the full stop of the headline (drawn in script.js)
   -------------------------------------------------------------------------- */
.hero {
  padding: calc(68px + clamp(48px, 7vh, 80px)) 0 clamp(64px, 6vw, 96px);
  overflow: hidden;
}

.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: var(--grid);
  column-gap: var(--col-gap);
  align-items: start;
}

.hero h1 {
  grid-row: 1;
  grid-column: 1 / -1;
}

.hero h1 {
  position: relative;
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 1;
  grid-row: 2;
  grid-column: 1 / 6;
  margin-top: clamp(40px, 4vw, 56px);
}

.lede {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 26em;
}

.cta-row {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.optic {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
  pointer-events: none;
}

.optic .beam,
.optic .inner {
  fill: none;
  stroke: var(--beam);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.optic .prism {
  fill: color-mix(in srgb, var(--text) 4%, transparent);
  stroke: var(--text);
  stroke-width: 1.75;
  stroke-linejoin: round;
  opacity: 0;
}

.optic .construct {
  fill: none;
  stroke: var(--text);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  opacity: 0;
}

.optic .ray {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  mix-blend-mode: var(--blend);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.optic text {
  font: 400 16px var(--font-text);
  fill: var(--text-2);
  opacity: 0;
  transition: fill .2s;
  white-space: pre;
  font-variant-numeric: tabular-nums;
}

.optic .ray-link {
  pointer-events: auto;
}

.optic .ray-link:hover text {
  fill: var(--c);
}

.optic .tick {
  stroke: var(--muted);
  stroke-width: 1;
  opacity: 0;
}

.optic.is-lit .prism {
  opacity: 1;
  transition: opacity .6s var(--ease);
}

.ray-legend {
  display: none;
}

.optic.is-lit .beam {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .9s var(--ease-soft) .2s;
}

.optic.is-lit .inner {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .35s linear 1.1s;
}

.optic.is-lit .construct {
  opacity: .45;
  transition: opacity 1s var(--ease) 1.6s;
}

.optic.is-lit .ray {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.3s var(--ease) 1.45s;
}

.optic.is-lit text,
.optic.is-lit .tick {
  opacity: 1;
  transition: opacity 1s var(--ease) 2s;
}

/* --------------------------------------------------------------------------
   Problem — one statement, two tones
   -------------------------------------------------------------------------- */
.problem {
  padding: var(--section) 0;
}

.problem {
  padding-top: calc(var(--section) * .6);
}

.problem-lead {
  max-width: 23em;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.22;
}

.problem-lead span {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Services — a table
   -------------------------------------------------------------------------- */
.services {
  padding: 0 0 var(--section);
}

.services-head {
  display: grid;
  grid-template-columns: var(--grid);
  column-gap: var(--col-gap);
  align-items: start;
  margin-bottom: clamp(40px, 4.4vw, 64px);
}

.services-head h2 {
  grid-column: 1 / 5;
}

.services-head p:last-child {
  grid-column: 4 / 10;
  color: var(--text-2);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.3;
  padding-top: .3em;
  max-width: 24em;
}

.index {
  border-bottom: 1px solid var(--line);
}

.index-head,
.row {
  display: grid;
  grid-template-columns: var(--grid);
  column-gap: var(--col-gap);
}

.index-head {
  padding-bottom: 12px;
  font-size: 12.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
}

.index-head span:nth-child(1) {
  grid-column: 1 / 4;
}

.index-head span:nth-child(2) {
  grid-column: 4 / 10;
}

.index-head span:nth-child(3) {
  grid-column: 10 / 13;
}

.row {
  padding: 30px 0 34px;
}

.row+.row {
  border-top: 1px solid var(--line);
}

.row-title {
  grid-column: 1 / 4;
}

.row-n {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 13px/1 var(--font-text);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}

.row-n {
  color: var(--c) !important;
}

.row-n::before {
  /* the service's ray, ending at its number */
  content: none;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .9s var(--ease) .2s;
}

.row.in .row-n::before {
  transform: none;
}

.row-n em {
  font-style: normal;
  color: var(--muted);
  margin-left: 4px;
}

.row h3 {
  font-size: clamp(26px, 2.2vw, 32px);
  font-weight: 400;
  font-stretch: 88%;
  letter-spacing: -.012em;
  line-height: 1.05;
}

.row .chip {
  margin-top: 14px;
}

.row-text {
  grid-column: 4 / 9;
  padding-top: 27px;
}

.row-lede {
  font: 400 16px/1.5 var(--font-text);
  color: var(--text);
  margin-bottom: 2px;
}

.row-text>p:last-child {
  color: var(--text-2);
  font-size: 15.5px;
  max-width: 32em;
}

.row-text a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
  white-space: nowrap;
}

.row-text a::after {
  content: " ↓";
}

.row-text a:hover {
  text-decoration-color: var(--text);
}

.row-result {
  grid-column: 10 / 13;
  padding-top: 29px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-2);
}

.row-result li+li {
  margin-top: 3px;
}

.rl {
  display: none;
}

.row-soon h3,
.row-soon .row-lede {
  color: var(--muted);
}

.row-soon .row-text>p:last-child {
  display: none;
}

.row-soon {
  padding-bottom: 26px;
}

.index .row:first-child {
  border-top: 1px solid var(--line-2);
}

/* --------------------------------------------------------------------------
   Pre-Check — full-bleed paper band with the report
   -------------------------------------------------------------------------- */
.precheck {
  background: var(--paper);
  color: var(--paper-text);
  padding: var(--section) 0;
}

.services {
  position: relative;
  z-index: 0;
}

.precheck .wrap {
  position: relative;
  z-index: 1;
}

.precheck .link {
  color: var(--paper-text);
}

.precheck .link span {
  text-decoration-color: var(--paper-line);
}

.precheck-grid {
  display: grid;
  grid-template-columns: var(--grid);
  column-gap: var(--col-gap);
  align-items: start;
}

.precheck-copy {
  grid-column: 1 / 6;
}

.precheck-copy .kicker {
  margin-bottom: 0;
}

.precheck-copy h2 {
  margin: 22px 0 20px;
  white-space: nowrap;
}

.precheck-sub {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.3;
  max-width: 17em;
}

.precheck-note {
  margin: 24px 0 36px;
  color: var(--paper-text-2);
  max-width: 26em;
}

.precheck-copy>p:not(.precheck-sub):not(.chip) {
  color: var(--paper-text-2);
  max-width: 30em;
}

.facts {
  margin: 32px 0 36px;
  border-top: 1px solid var(--paper-line);
}

.facts>div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--paper-line);
  font-size: 15px;
}

.facts dt {
  color: var(--paper-muted);
}

.precheck .btn {
  background: var(--paper-text);
  color: var(--paper);
}

.precheck .btn:hover {
  background: color-mix(in srgb, var(--paper-text) 84%, var(--paper));
}

/* the report: an A4 sheet with a second one behind it */
.doc {
  grid-column: 7 / 13;
  position: relative;
  margin: 0;
}

.doc-page {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--sheet);
  color: #16181D;
  padding: clamp(28px, 3.2vw, 48px);
  box-shadow: 0 0 0 1px rgba(19, 20, 23, .14), 0 2px 4px rgba(0, 0, 0, .06);
}

.doc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--s2);
  font-size: 12.5px;
}

.doc-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 14px var(--font-display);
}

.doc-brand .logo-mark {
  width: 22px;
  height: 22px;
  color: #16181D;
}

.doc-kind {
  color: #686B73;
}

.doc-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 14px 0 16px;
  border-bottom: 1px solid rgba(22, 24, 29, .14);
}

.doc-meta dt,
.sign-fields p {
  font-size: 11.5px;
  color: #686B73;
}

.doc-meta dd {
  font-size: 14px;
}

.doc-qs li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: baseline;
  gap: 0 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(22, 24, 29, .14);
}

.st {
  font: 600 12.5px/1 var(--font-text);
  font-style: normal;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #16181D;
  white-space: nowrap;
}

.st::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.25px #16181D;
}

.st-ok::before {
  background: #16181D;
}

.st-crit::before {
  border-radius: 0;
  transform: rotate(45deg) scale(.9);
  background: #16181D;
}

.doc-qs span {
  font: 500 13px/1.8 var(--font-text);
  color: #686B73;
  font-variant-numeric: tabular-nums;
}

.doc-qs p {
  font: 450 clamp(17px, 1.5vw, 21px)/1.3 var(--font-display);
  letter-spacing: -.01em;
}

.doc-qs small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: #4F535B;
}

.doc-sign {
  margin-top: auto;
  padding-top: 28px;
}

.doc-check {
  font-size: 12.5px;
  color: #3F424A;
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 26px;
}

.doc-check::before {
  content: "";
  flex: none;
  width: 8px;
  height: 4.5px;
  border-left: 1.5px solid #16181D;
  border-bottom: 1.5px solid #16181D;
  transform: rotate(-45deg) translateY(-2px);
}

.sign-fields {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 16px;
}

.sign-fields span {
  display: block;
  height: 24px;
  border-bottom: 1px solid #16181D;
}

.sign-fields p {
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Method — one optical axis, monochrome, the two checks annotated
   -------------------------------------------------------------------------- */
.method {
  padding: var(--section) 0;
}

.method-title {
  margin-bottom: clamp(32px, 3.5vw, 48px);
}

.trace {
  width: 100%;
  height: auto;
  overflow: visible;
}

.trace .w {
  fill: none;
  stroke: var(--beam);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.trace .w-in {
  stroke: var(--beam);
  stroke-width: 1.5;
  opacity: .5;
}

.trace .node {
  fill: var(--ink);
  stroke: var(--beam);
  stroke-width: 1.5;
  opacity: 0;
}

.trace .rays path,
.trace-v .ray {
  fill: none;
  stroke: var(--c, var(--text));
  stroke-width: 1.75;
  mix-blend-mode: var(--blend);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.trace-v .ray {
  stroke-dasharray: none;
}

.trace .glass,
.trace-v .glass {
  fill: color-mix(in srgb, var(--text) 3%, transparent);
  stroke: var(--text);
  stroke-width: 1.25;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.trace .plane,
.trace-v .plane {
  stroke: var(--text);
  stroke-opacity: .5;
  stroke-width: 1;
}

.trace .ticks path,
.trace-v .ticks {
  stroke: var(--text);
  stroke-width: 1.25;
}

.trace .checks circle {
  fill: var(--ink);
  stroke: var(--text);
  stroke-width: 1.25;
}

.trace .final {
  fill: var(--beam);
}

.trace .notes path {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1;
}

.trace .notes text {
  font: 450 13.5px var(--font-text);
  fill: var(--text-2);
}

.trace.in .d1 {
  opacity: 1;
  transition: opacity .4s;
}

.trace.in .d2 {
  opacity: 1;
  transition: opacity .4s var(--ease) 2.9s;
}

.trace.in .w1 {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .8s var(--ease-soft) .1s;
}

.trace.in .rays path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.3s var(--ease);
}

.trace.in .r1 path {
  transition-delay: .7s;
}

.trace.in .r2 path {
  transition-delay: 1.4s;
}

.trace.in .w2 {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .8s var(--ease-soft) 2.3s;
}

.trace-v {
  display: none;
}

.trace-v .w {
  fill: none;
  stroke: var(--beam);
  stroke-width: 1.5;
}

.trace-v .dot {
  fill: var(--beam);
}

.steps {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--col-gap);
}

.steps li {
  border-top: 1px solid var(--line-2);
  padding-top: 18px;
}

.step-n {
  font: 500 13px var(--font-text);
  color: var(--muted);
}

.steps h3 {
  font-size: 28px;
  font-weight: 400;
  font-stretch: 88%;
  letter-spacing: -.01em;
  margin: 10px 0 10px;
}

.steps p {
  color: var(--text-2);
  font-size: 15.5px;
}

/* --------------------------------------------------------------------------
   Für wen
   -------------------------------------------------------------------------- */
.who {
  padding: 0 0 var(--section);
}

.who-grid {
  display: grid;
  grid-template-columns: var(--grid);
  column-gap: var(--col-gap);
  align-items: start;
}

.who-head {
  grid-column: 1 / 9;
}

.who-focus {
  margin-top: 24px;
  color: var(--text-2);
  font-size: 18px;
  max-width: 26em;
}

.roles-label {
  grid-column: 1 / -1;
}

.who-side {
  grid-column: 1 / -1;
  padding-top: clamp(48px, 5vw, 72px);
  display: grid;
  grid-template-columns: var(--grid);
  column-gap: var(--col-gap);
}

.who-side .roles {
  grid-column: 1 / -1;
}

.who-side .who-note {
  grid-column: 10 / 13;
  margin-top: 30px;
  font-size: 15px;
  color: var(--muted);
}

.pull {
  grid-column: 1 / -1;
  margin-top: clamp(72px, 8vw, 112px);
  padding-top: 28px;
  border-top: 1px solid var(--line-2);
  padding-right: 30%;
  font: 400 clamp(28px, 3vw, 44px)/1.15 var(--font-display);
  letter-spacing: -.018em;
  color: var(--muted);
}

.pull span {
  color: var(--text);
}

.who-head .who-focus {
  max-width: 30em;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.4;
}

.who-focus+.who-focus {
  margin-top: 14px;
}

.roles-x {
  display: grid;
  grid-template-columns: calc((100% - 11 * var(--col-gap)) / 4 + 2 * var(--col-gap)) 1fr;
  gap: var(--col-gap);
  padding-bottom: 10px;
  font-size: 12.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
}

.roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--col-gap);
  border: 0 !important;
}

.roles>div {
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}

.roles dt {
  font: 400 clamp(28px, 2.6vw, 38px)/1.05 var(--font-display);
  font-stretch: 88%;
  letter-spacing: -.012em;
  margin-bottom: 14px;
}

.roles dd {
  font-size: 16px !important;
}

.roles dd {
  color: var(--text-2);
  max-width: 22em;
}

.who-note {
  margin-top: 22px;
  color: var(--text-2);
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   Final CTA — one white beam ends in the button
   -------------------------------------------------------------------------- */
.cta {
  padding: var(--section) 0;
}

.cta-title {
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: .98;
  letter-spacing: -.025em;
}

.cta .cta-row {
  margin-top: clamp(40px, 4.4vw, 56px);
  gap: 16px 24px;
}

.cta-end {
  gap: 0 !important;
}

.cta-beam {
  width: calc(((100% - 11 * var(--col-gap)) / 12) * 2 + var(--col-gap));
  height: 1.5px;
  background: var(--beam);
  position: relative;
  transform-origin: left;
  transform: scaleX(0);
}

.cta-beam::before {
  content: "";
  position: absolute;
  left: 0;
  top: -4.25px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--beam);
}

.cta-end.in .cta-beam {
  transform: none;
  transition: transform 1.1s var(--ease-soft) .2s;
}

.cta-end .btn {
  margin-right: 24px;
}

.cta-small {
  flex-basis: 100%;
  margin-top: 56px;
  max-width: 34em;
  font-size: 15px;
  color: var(--muted);
}

.close-optic {
  width: 280px;
  height: 96px;
  overflow: visible;
  margin-right: -24px;
}

.close-optic .glass {
  fill: color-mix(in srgb, var(--text) 3%, transparent);
  stroke: var(--text);
  stroke-width: 1.25;
  stroke-linejoin: round;
}

.close-optic .w {
  fill: none;
  stroke: var(--beam);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.close-optic.in .rays path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.2s var(--ease);
}

.close-optic.in .w {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .6s var(--ease-soft) 1s;
}

.cta-end .cta-sub {
  margin: 0;
}

.cta-sub {
  font-size: 15px;
  color: var(--muted);
}

.cta-sub a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
}

.cta-sub a:hover {
  text-decoration-color: var(--text);
}

/* --------------------------------------------------------------------------
   Footer — an open title block
   -------------------------------------------------------------------------- */
.footer {
  padding: 0 0 40px;
  font-size: 14.5px;
}

.tb {
  display: grid;
  grid-template-columns: var(--grid);
  column-gap: var(--col-gap);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line);
}

.tb-f {
  position: relative;
  padding: 20px 0 24px;
}

.tb-brand {
  grid-column: 1 / 4;
}

.tb-f:nth-child(2) {
  grid-column: 4 / 7;
}

.tb-f:nth-child(3) {
  grid-column: 7 / 10;
}

.tb-f:nth-child(4) {
  grid-column: 10 / 13;
}

.tb-l {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.tb-f p {
  color: var(--text-2);
}

.tb-f p a {
  display: block;
}

.tb a {
  color: var(--text-2);
  text-decoration: none;
  transition: color .2s;
}

.tb a:hover {
  color: var(--text);
}

.foot-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s;
}

.theme-toggle::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.25px solid currentColor;
  background: linear-gradient(90deg, transparent 50%, currentColor 50%);
}

.theme-toggle:hover {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .index-head {
    display: none;
  }

  .row-text {
    grid-column: 4 / 13;
  }

  .row-result {
    grid-column: 4 / 13;
    padding-top: 14px;
  }

  .rl {
    display: block;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 4px;
  }

  .precheck-copy {
    grid-column: 1 / 7;
  }

  .doc {
    grid-column: 7 / 13;
  }

}

@media (max-width: 900px) {
  :root {
    --grid: minmax(0, 1fr);
    --section: 88px;
  }

  .nav-menu {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 4px var(--gutter) 24px;
    display: none;
  }

  .menu-open .nav-menu {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 20px;
    color: var(--text);
  }

  .nav-login {
    padding: 0;
    border: 0;
  }

  .nav-login a {
    color: var(--text-2);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-actions .btn-sm {
    display: none;
  }

  .services-head,
  .precheck-grid,
  .who-grid,
  .tb {
    row-gap: 28px;
  }

  .services-head>*,
  .precheck-grid>*,
  .who-grid>*,
  .row>*,
  .tb>* {
    grid-column: 1 !important;
  }

  .row-text,
  .row-result {
    padding-top: 14px;
  }

  .trace {
    display: none;
  }

  .ray-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 32px;
  }

  .ray-legend a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-2);
    text-decoration: none;
  }

  .ray-legend a::before {
    content: "";
    width: 14px;
    height: 2px;
    background: var(--c);
  }

  .close-optic {
    display: none;
  }

  .row+.row .rl {
    display: none;
  }

  .cta-beam {
    display: none;
  }

  .cta-end .btn {
    margin: 0 0 16px;
  }

  .cta-end .cta-sub {
    flex-basis: 100%;
  }

  .who-side .roles,
  .who-side .who-note {
    grid-column: 1;
  }

  .who-side .who-note {
    margin-top: 20px;
  }

  .services-head p:last-child {
    grid-column: 1;
    margin-top: 12px;
  }

  .services-head h2 {
    grid-column: 1;
  }

  .hero-in {
    display: block;
  }

  .hero-copy {
    margin-top: 72px;
  }

  .precheck-copy>.btn {
    order: 3;
    justify-self: start;
    margin-top: 8px;
  }

  .doc {
    margin-top: 0;
  }

  .doc-page {
    aspect-ratio: auto;
  }

  .precheck-copy>.link {
    order: 3;
    justify-self: start;
    margin-top: 8px;
  }

  .steps-wrap {
    position: relative;
    padding-left: 64px;
  }

  .trace-v {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 100%;
    overflow: visible;
  }

  .steps {
    grid-template-columns: 1fr;
    row-gap: 40px;
    margin-top: 0;
  }

  .steps li {
    border-top: 0;
    padding-top: 0;
  }

  .precheck-copy h2 {
    white-space: normal;
  }

  .doc {
    margin: 8px 0 0;
  }

  .doc::before {
    display: none;
  }

  .doc-page {
    aspect-ratio: auto;
  }

  .precheck-copy {
    display: contents;
  }

  .precheck-grid {
    row-gap: 0 !important;
  }

  .pull {
    padding-right: 0;
  }

  .precheck-copy>* {
    grid-column: 1;
  }

  .precheck-grid>.btn {
    order: 3;
  }

  .doc {
    order: 2;
    margin: 8px 0 12px;
  }

  .precheck-copy>.btn {
    order: 3;
    justify-self: start;
  }

  .precheck {
    padding-bottom: 64px;
  }

  .doc-meta {
    grid-template-columns: 1fr 1fr;
  }

  .who-side {
    padding-top: 0;
  }

  .sign-fields {
    grid-template-columns: 1fr 1fr;
  }

  .sign-main {
    grid-column: 1 / -1;
  }

  .who-side {
    margin-top: 12px;
  }

  .tb {
    row-gap: 0;
  }

  .tb-f {
    padding: 16px 0 18px;
  }

  .tb-f+.tb-f {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero {
    padding-top: calc(68px + 40px);
  }

  .hero-copy {
    margin-top: 64px;
  }

  .hero {
    padding-bottom: 56px;
  }

  h1 {
    font-size: clamp(56px, 16.4vw, 80px);
  }

  .services-head h2 {
    font-size: 44px;
  }

  .cta-title {
    font-size: clamp(28px, 7.6vw, 34px);
    line-height: 1.05;
    letter-spacing: -.024em;
  }

  .roles {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .doc-qs li {
    grid-template-columns: 20px 1fr;
  }

  .doc-qs .st {
    grid-column: 2;
    margin-top: 8px;
  }

  .nav:not(.cta-away) .btn-sm {
    opacity: 1;
  }

  .facts>div {
    grid-template-columns: 84px 1fr;
    gap: 12px;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .optic .beam,
  .optic .inner,
  .optic .ray,
  .trace .w,
  .trace .rays path {
    stroke-dashoffset: 0;
  }

  .optic .prism,
  .optic text,
  .optic .tick,
  .trace .dot {
    opacity: 1;
  }

  .optic .construct {
    opacity: .75;
  }

  .row-n::before {
    transform: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Legal pages (Datenschutz, Impressum) — same frame, a reading column
   -------------------------------------------------------------------------- */
.legal {
  padding: calc(68px + clamp(48px, 7vh, 80px)) 0 var(--section);
}

.legal-head {
  padding-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--line-2);
}

.legal-head h1 {
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: .98;
}

.legal-grid {
  display: grid;
  grid-template-columns: var(--grid);
  column-gap: var(--col-gap);
  align-items: start;
  padding-top: clamp(40px, 4.4vw, 64px);
}

.toc {
  grid-column: 1 / 4;
  position: sticky;
  top: 100px;
  font-size: 14.5px;
}

.toc-l {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
  border-top: 1px solid var(--line);
}

.toc li {
  counter-increment: toc;
  border-bottom: 1px solid var(--line);
}

.toc a {
  display: grid;
  grid-template-columns: 26px 1fr;
  padding: 10px 0;
  color: var(--text-2);
  text-decoration: none;
  line-height: 1.35;
  transition: color .2s;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  padding-top: 1px;
}

.toc a:hover {
  color: var(--text);
}

.prose {
  grid-column: 4 / 11;
  max-width: 44em;
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.65;
}

.prose h2 {
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.1;
  color: var(--text);
  margin: clamp(56px, 6vw, 88px) 0 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
  scroll-margin-top: 90px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.005em;
  line-height: 1.3;
  color: var(--text);
  margin: 36px 0 10px;
}

.prose h4 {
  font: 600 15.5px/1.4 var(--font-text);
  color: var(--text);
  margin: 24px 0 6px;
}

.prose p {
  margin: 0 0 14px;
}

.prose ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
  list-style: none;
}

.prose li {
  position: relative;
  margin-bottom: 8px;
}

.prose li::before {
  content: "";
  position: absolute;
  left: -1.2em;
  top: .78em;
  width: 8px;
  height: 1px;
  background: var(--muted);
}

.prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.prose a:hover {
  text-decoration-color: var(--text);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose .address {
  color: var(--text);
  padding-left: 16px;
  border-left: 1px solid var(--line-2);
}

.prose .caps {
  font-size: 14px;
  letter-spacing: .01em;
  line-height: 1.6;
}

.prose .source {
  margin-top: 48px;
  font-size: 13px;
  color: var(--muted);
}

.tb a[aria-current="page"] {
  color: var(--text);
}

@media (max-width: 900px) {
  .legal-grid>* {
    grid-column: 1 / -1;
  }

  .toc {
    position: static;
    margin-bottom: 48px;
  }
}

/* Spam protection (tools/obfuscate.js): decoy fragments are never shown, copied or read aloud */
.obf-x {
  display: none !important;
}

/* Nutzungsbeschreibung: questionnaire downloads in the result column */
.dl-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
  transition: text-decoration-color .2s;
}

.dl-list a::before {
  content: "↓";
  color: var(--c, var(--muted));
  text-decoration: none;
  display: inline-block;
}

.dl-list a:hover {
  text-decoration-color: var(--text);
}

.who-focus a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
}

.who-focus a:hover {
  text-decoration-color: var(--text);
}