/* Electo · Landingpage
   CI: Inter Tight, Schwarz und Weiss tragen, Magenta nur für den Befund, keine runden Ecken, keine Schatten.
   Bewegung zeigt eine Rechnung. Mobile zuerst, Breakpoints 768 und 1100. */

:root {
  --ink: #111111;
  --ink-2: #3d3d3a;
  --steel: #66665f;
  --grey: #8a8a86;
  --line: #dcdcd8;
  --soft: #f3f3f1;
  --paper: #ffffff;
  --accent: #d6006f;
  --accent-soft: #fce6f1;
  --grid: #1111110e;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --spring: cubic-bezier(.3, 1.6, .5, 1);
  --shell: 16px;
  --max: 1180px;
  --nav-h: 64px;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --shell: 24px; --nav-h: 72px; } }
/* Grosse Bildschirme: breiterer Inhalt, rem-Grössen wachsen mit */
@media (min-width: 1600px) { :root { --max: 1400px; --shell: 32px; } }
@media (min-width: 1800px) { html { font-size: 112.5%; } body { font-size: 18px; } }
@media (min-width: 2200px) { :root { --max: 1640px; --shell: 40px; --nav-h: 84px; } }
@media (min-width: 2300px) { html { font-size: 125%; } body { font-size: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.has-scale { scrollbar-width: none; }
html.has-scale::-webkit-scrollbar { width: 0; height: 0; }
body {
  margin: 0; color: var(--ink);
  /* Häuschenpapier: 24-px-Raster auf Weiss, mittig ausgerichtet (CI: strenges Raster) */
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px; background-position: center top;
  font: 400 17px/1.45 "Inter Tight", Arial, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ol, ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 300; left: 12px; top: 12px; background: var(--ink); color: var(--paper); padding: 12px 16px; transform: translateY(-200%); }
.skip:focus-visible { transform: none; }
main:focus { outline: none; }

.shell { width: 100%; max-width: calc(var(--max) + 2 * var(--shell)); margin-inline: auto; padding-inline: var(--shell); }

/* ---------- Typo ---------- */
.display { font-weight: 800; letter-spacing: -.045em; line-height: .92; font-size: clamp(3.1rem, 12.4vw, 8.4rem); }
.display-s { font-size: clamp(2.6rem, 8vw, 5.6rem); }
.display em, .h2 em { font-style: normal; color: var(--accent); }
.h2 { font-weight: 800; letter-spacing: -.04em; line-height: .96; font-size: clamp(2.1rem, 6.4vw, 4.6rem); }
.lead { font-size: clamp(1.15rem, 1rem + .7vw, 1.55rem); line-height: 1.32; color: var(--ink-2); letter-spacing: -.005em; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--steel); line-height: 1.3; }
.tag { display: inline-block; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 3px 7px 2px; line-height: 1.2; vertical-align: middle; }

/* ---------- Buttons: schwarzer Rahmen, beim Darüberfahren invertiert ---------- */
.btn {
  --b-fg: var(--ink); --b-bg: var(--paper);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 6px 0 22px; border: 2px solid var(--ink);
  background: var(--b-bg); color: var(--b-fg); font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .16s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary { --b-fg: var(--paper); --b-bg: var(--ink); }
.btn-invert { --b-fg: var(--ink); --b-bg: var(--paper); border-color: var(--paper); }
.btn-sm { height: 48px; font-size: 15px; padding-left: 18px; gap: 12px; }
.btn-arrow {
  position: relative; flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--b-fg); color: var(--b-bg); transition: transform .45s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.btn-sm .btn-arrow { width: 34px; height: 34px; }
.btn-arrow::before {
  content: ""; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 11L11 3M5 3h6v6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 11L11 3M5 3h6v6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .45s var(--ease);
}
.btn-arrow.is-down::before { transform: rotate(135deg); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--b-fg); color: var(--b-bg); }
  .btn:hover .btn-arrow { background: var(--b-bg); color: var(--b-fg); transform: translate(2px, -2px); }
  .btn:hover .btn-arrow::before { transform: rotate(45deg); }
  .btn:hover .btn-arrow.is-down { transform: translateY(2px); }
  .btn:hover .btn-arrow.is-down::before { transform: rotate(180deg); }
}
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.link-btn { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 12px 4px; }
a, button, label, summary { touch-action: manipulation; }

/* ---------- Abschnitte ---------- */
.sec { padding-block: clamp(56px, 8vw, 112px); position: relative; }
.sec-head { display: flex; gap: 14px; align-items: baseline; border-top: 2px solid var(--ink); padding-top: 12px; margin-bottom: clamp(20px, 3vw, 36px); font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.sec-head span:first-child { color: var(--steel); }
.split { display: grid; gap: 20px; }
@media (min-width: 1100px) {
  .split { grid-template-columns: 7fr 4fr; gap: 64px; align-items: end; }
}
.dark { background: var(--ink); color: var(--paper); --line: #33332f; }
.dark .lead { color: #c9c9c4; }
.dark .label, .dark .sec-head span:first-child { color: #9a9a95; }
.dark .sec-head { border-color: var(--paper); }

/* ---------- Reveal: weich herein, blur weg, versetzt ---------- */
.js [data-reveal] {
  opacity: 0; filter: blur(6px); transform: translateY(1.5rem);
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out), filter .8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-in { opacity: 1; filter: none; transform: none; }
html:not(.js) .h2 .wd > span { transform: none; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-inline: max(var(--shell), calc((100vw - var(--max)) / 2));
  background: transparent; border-bottom: 1px solid transparent;
  transition: transform .6s var(--ease-out), background-color .4s var(--ease), border-color .4s var(--ease);
}
.nav.is-scrolled { background: var(--paper); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-105%); }
html.menu-open .nav { background: transparent; border-color: transparent; transform: none; color: #ffffff; }
.nav-logo { position: relative; z-index: 2; display: flex; align-items: center; height: 44px; }
.logo { height: 26px; width: auto; overflow: visible; }
.logo .wm { font: 700 100px "Inter Tight", Arial, sans-serif; letter-spacing: -4px; fill: currentColor; }
.logo .seat { fill: currentColor; }
.seat-acc { fill: var(--accent) !important; }
.logo .seat { transform-box: fill-box; transform-origin: center; }
.logo .seat-acc { animation: seat-land .55s var(--spring); }
.nav-readout { position: absolute; left: 50%; display: none; align-items: center; gap: 12px; transform: translate(-50%, -6px); opacity: 0; transition: opacity .5s var(--ease), transform .5s var(--ease); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.nav.is-scrolled .nav-readout { opacity: 1; transform: translate(-50%, 0); }
html.menu-open .nav-readout { opacity: 0; }
@media (min-width: 900px) { .nav-readout { display: flex; } }
.nav-progress { position: relative; width: 72px; height: 2px; background: var(--line); overflow: hidden; }
.nav-progress i { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
.nav-actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 4px; }
.nav-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; font-size: 15px; font-weight: 600; border: 2px solid transparent; transition: border-color .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease); }
.nav-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
html.menu-open .nav-btn[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.nav-cta { display: none; }
@media (min-width: 768px) { .nav-cta { display: inline-flex; } }
.nav-menu { position: relative; width: 44px; height: 44px; background: var(--ink); color: var(--paper); margin-left: 4px; transition: background-color .3s var(--ease), color .3s var(--ease); }
.nav-menu i { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; top: 50%; transition: transform .5s var(--ease); }
.nav-menu i:nth-of-type(1) { transform: translateY(-4px); }
.nav-menu i:nth-of-type(2) { transform: translateY(3px); }
html.menu-open .nav-menu { background: #ffffff; color: #111111; }
html.menu-open .nav-menu i:nth-of-type(1) { transform: rotate(45deg); }
html.menu-open .nav-menu i:nth-of-type(2) { transform: rotate(-45deg); }

/* ---------- Menü: Kreis aus dem Menü-Knopf ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90; background: #111111; color: #ffffff;
  clip-path: circle(0 at var(--mx, 100%) var(--my, 0)); transition: clip-path .5s cubic-bezier(.7, 0, .2, 1);
  overflow-y: auto; overscroll-behavior: contain;
}
html.menu-open .menu { clip-path: circle(150% at var(--mx, 100%) var(--my, 0)); transition: clip-path .8s var(--ease-out); }
.menu-in { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-top: calc(var(--nav-h) + 24px); padding-bottom: 28px; }
.menu-list li { border-top: 1px solid #33332f; opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease-out), transform .7s var(--ease-out); }
html.menu-open .menu-list li { opacity: 1; transform: none; transition-delay: calc(.18s + var(--i) * 55ms); }
.menu-list a { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; padding: 12px 0 10px; }
.menu-list span { font-weight: 800; letter-spacing: -.04em; line-height: 1; font-size: clamp(2.2rem, 9vw, 5rem); color: #a9a9a4; transition: color .3s var(--ease), transform .45s var(--ease); }
.menu-list small { font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #8a8a86; }
@media (hover: hover) {
  .menu-list a:hover span, .menu-list a:focus-visible span { color: #ffffff; transform: translateX(10px); }
}
.menu-foot { display: grid; gap: 8px; font-size: 15px; color: #c9c9c4; opacity: 0; transition: opacity .5s var(--ease) .5s; }
html.menu-open .menu-foot { opacity: 1; }
.menu-foot b { color: #ffffff; }
@media (min-width: 768px) { .menu-foot { grid-template-columns: 1fr auto; } }

/* ---------- Skala am rechten Rand ---------- */
.scale {
  position: fixed; right: 6px; top: calc(var(--nav-h) + 12px); bottom: 16px; width: 22px; z-index: 80; cursor: grab; touch-action: none; display: none;
  background:
    repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 8px) right top / 6px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--grey) 0 1px, transparent 1px 64px) right top / 12px 100% no-repeat;
  transition: opacity .3s var(--ease);
}
@media (min-width: 1100px) and (hover: hover) and (pointer: fine) { .scale { display: block; } }
.scale.is-drag { cursor: grabbing; }
.scale-thumb { position: absolute; right: 2px; top: 0; width: 10px; height: 10px; background: var(--ink); box-shadow: 0 0 0 3px var(--paper); will-change: transform; }
.scale-label { position: absolute; right: 26px; top: -4px; white-space: nowrap; font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; background: var(--paper); border: 1px solid var(--line); padding: 4px 7px; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); will-change: transform; }
.scale:hover .scale-label, .scale.is-moving .scale-label { opacity: 1; }
html.menu-open .scale { opacity: 0; pointer-events: none; }


/* ---------- Hero: Headline zuerst, ein Hauptbutton, das Parlament als Grafik ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 20px) 0 clamp(32px, 6vw, 72px); position: relative; }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; width: 100%; }
.hero-copy { display: grid; gap: clamp(18px, 2.4vw, 28px); justify-items: start; }
.hero-kicker b { color: var(--ink); }
.hero-title { font-size: clamp(3.4rem, 16vw, 7.6rem); }
.hero-title .hl { display: block; transform-origin: 0 60%; }
.js .hero-title .hl { animation: hero-focus 1.1s var(--ease-out) both; animation-delay: calc(.35s + var(--d, 0s)); }
.js .hero-title .hl + .hl { --d: .12s; }
@keyframes hero-focus { from { opacity: 0; filter: blur(14px); transform: translateY(.24em) scaleX(.9); } }
.hero-lead { max-width: 28rem; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-ctas .btn { min-width: 16rem; justify-content: space-between; }
.hero-arc { margin: 0; position: relative; display: grid; gap: 12px; padding: 18px 16px 16px; }
.hero-arc-label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--steel); }
.hemi-hero { width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.hero-arc-cap { font-size: 15px; color: var(--ink-2); text-align: center; }
.hero-arc-cap b { color: var(--ink); }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .hero-title { font-size: clamp(4.6rem, 8vw, 7.4rem); }
  .hero-title .hl { white-space: nowrap; }
}
.k-sm { display: none; }
@media (max-width: 999px) {
  .hero { align-items: flex-start; min-height: 0; }
  .hero-arc { max-width: 30rem; width: 100%; justify-self: center; }
  /* Reihenfolge auf schmalen Bildschirmen: Countdown, Claim, Lead, Kantonsrat, Buttons */
  .hero-grid { gap: 20px; }
  .hero-copy { display: contents; }
  .hero-kicker { order: 1; } .hero-title { order: 2; } .hero-lead { order: 3; } .hero-arc { order: 4; } .hero-ctas { order: 5; }
}
@media (max-width: 599px) {
  .k-lg { display: none; } .k-sm { display: inline; }
  .hero-kicker { white-space: nowrap; }
  .hero { padding-top: calc(var(--nav-h) + 16px); padding-bottom: 48px; }
  .hero-grid { gap: 24px; }
  .hero-title { font-size: clamp(2.9rem, 14vw, 4.2rem); margin-top: -4px; }
  .hero-lead { margin-bottom: 8px; }
  .hero-arc { padding: 18px 14px 14px; gap: 12px; margin-bottom: 8px; }
  .hero-arc .hemi-hero { width: 78%; margin-inline: auto; }
  .hero-arc-cap { font-size: 14px; }
  /* Zwei gleich grosse Buttons untereinander, volle Breite */
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
  .hero-ctas .btn { justify-content: space-between; }
  .hero-ctas, .hero-arc { --i: 0 !important; }
}

/* Sitze: Parlament aufbauen, dann springt der Akzent und landet federnd */
.hemi .seat { fill: var(--ink); transform-box: fill-box; transform-origin: center; transition: fill .25s var(--ease), transform .55s var(--spring); }
.hemi .seat.is-acc { fill: var(--accent); }
.hemi .seat.is-hop { fill: var(--accent); transform: scale(1.25); }
.hemi .seat.is-land { animation: seat-land .55s var(--spring); }
.hemi .seat.is-ring { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.js .hemi.is-build .seat { animation: seat-in .35s var(--ease) both; animation-delay: var(--d); }
@keyframes seat-in { from { opacity: 0; transform: scale(.2); } }
@keyframes seat-land { 0% { transform: scale(.3); } 100% { transform: scale(1); } }
.dark .hemi .seat { fill: #3c3c38; }
.dark .hemi .seat.is-acc { fill: var(--accent); }

/* ---------- Rechnung: gepinnte Scroll-Geschichte ---------- */
.build { position: relative; height: 440svh; --rh: 28px; }
/* Zeilenhöhe aus der Bildschirmhöhe: Grafik und Text passen auf jedem Laptop in einen Bildschirm */
@media (min-width: 768px) { .build { --rh: clamp(20px, calc((100svh - 470px) / 10), 40px); } }
@media (min-width: 1100px) { .build { --rh: clamp(22px, calc((100svh - 330px) / 10), 40px); } }
.build-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.build-in { position: relative; height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding-top: calc(var(--nav-h) + 8px); padding-bottom: 20px; }
.build-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.build-sub { font-weight: 700; margin-top: 4px; font-size: clamp(1.1rem, 1.6vw, 1.35rem); letter-spacing: -.015em; line-height: 1.2; }
.build-count { text-align: right; }
.build-count { color: var(--grey); }
.build-count b { display: inline-block; font-weight: 800; letter-spacing: -.045em; line-height: .9; font-size: clamp(2.2rem, 5vw, 4.4rem); }
.build-count small { font-size: clamp(1rem, 2vw, 1.6rem); font-weight: 800; }
.build-count .label { display: block; }
.build-stage { position: relative; align-self: center; width: 100%; max-width: 820px; margin-inline: auto; height: calc(var(--rh) * 10 + 150px); }
.b-total { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; display: grid; gap: 8px; transition: top .9s var(--ease), transform .9s var(--ease); }
.b-total-n { font-weight: 800; letter-spacing: -.05em; line-height: .9; font-size: clamp(3.4rem, 15vw, 9rem); transition: font-size .9s var(--ease); }
.build.is-2 .b-total { top: 0; transform: none; text-align: left; }
.build.is-2 .b-total-n { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.b-rows { position: absolute; left: 0; right: 0; top: 78px; height: calc(var(--rh) * 10); }
.b-row { position: absolute; left: 0; right: 0; top: 0; height: var(--rh); display: grid; grid-template-columns: minmax(84px, 9.5rem) 1fr 3.6rem 3.4rem; gap: 10px; align-items: center; font-size: clamp(13px, 1.6vw, 15px);
  transform: translateY(calc(var(--a) * var(--rh))); opacity: 0;
  transition: transform .9s var(--ease), opacity .4s var(--ease); transition-delay: calc(var(--a) * 30ms); }
.build.is-2 .b-row { opacity: 1; }
.build.is-3 .b-row { transform: translateY(calc(var(--s) * var(--rh))); transition-delay: calc(var(--s) * 40ms); }
.b-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.b-track { position: relative; height: calc(var(--rh) * .52); background: var(--soft); }
.b-bar { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); transition: transform .8s var(--ease), background-color .4s var(--ease); transition-delay: calc(var(--a) * 50ms + .1s); }
.build.is-2 .b-bar { transform: scaleX(var(--v)); }
.b-val, .b-cum { text-align: right; white-space: nowrap; }
.b-cum { font-weight: 700; opacity: 0; transform: translateX(-6px); transition: opacity .4s var(--ease), transform .4s var(--ease); transition-delay: calc(var(--s) * 90ms); }
.build.is-4 .b-cum { opacity: 1; transform: none; }
.build.is-5 .b-row:not(.is-top) { opacity: .35; }
.build.is-5 .b-row.is-top .b-bar { background: var(--accent); }
.build.is-5 .b-row.is-top .b-cum:last-child { color: var(--accent); }
.b-finding { position: absolute; left: 0; right: 0; bottom: 34px; display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; font-size: clamp(1.05rem, 2.2vw, 1.5rem); line-height: 1.25; letter-spacing: -.01em; opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.b-finding b { font-weight: 800; }
.build.is-5 .b-finding { opacity: 1; transform: none; }
.b-source { position: absolute; left: 0; right: 0; bottom: 0; font-size: 12px; color: var(--steel); border-top: 1px solid var(--line); padding-top: 8px; opacity: 0; transition: opacity .6s var(--ease); }
.b-source b { color: var(--ink); }
.build.is-6 .b-source { opacity: 1; }
.build-caps { position: relative; min-height: 150px; }
.b-cap { position: absolute; inset: auto 0 0 0; display: grid; gap: 8px; max-width: 34rem; opacity: 0; transform: translateY(14px); filter: blur(4px); transition: opacity .5s var(--ease), transform .6s var(--ease), filter .5s var(--ease); pointer-events: none; }
.b-cap.is-on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.b-cap h3 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.b-cap p { color: var(--ink-2); }
.b-cap .btn { justify-self: start; margin-top: 6px; }
.b-step { font-size: 13px; font-weight: 700; color: var(--grey); letter-spacing: .04em; }
.b-step b { color: var(--ink); }
.build-skip { position: absolute; right: var(--shell); bottom: 12px; color: var(--ink); padding: 14px 0; }
@media (max-width: 767px) {
  /* Zeilenhöhe aus der Bildschirmhöhe: Rechnung und Text passen immer in einen Bildschirm */
  .build { --rh: clamp(17px, calc((100svh - 384px) / 10), 28px); }
  .build-in { padding-top: 16px; padding-bottom: 12px; }
  .b-cap .btn { display: none; }
  .build-count b { font-size: 2rem; }
  .build-stage { height: calc(var(--rh) * 10 + 170px); }
  .b-rows { top: 58px; }
  .b-finding { bottom: 38px; }
  .b-total { gap: 4px; }
  .b-row { grid-template-columns: 6.4rem 1fr 2.9rem 2.6rem; gap: 6px; }
  .build-skip { display: none; }
  .build-caps { min-height: 118px; }
  .b-cap p { font-size: 15px; line-height: 1.35; }
}
/* Niedrige Handys (iPhone SE, Browserleisten): Zeilen noch enger */
@media (max-width: 767px) and (max-height: 640px) {
  .b-total-n { font-size: 3rem; }
  .build.is-2 .b-total-n { font-size: 1.4rem; }
  .b-cap p { font-size: 14px; }
  .b-cap h3 { font-size: 1.4rem; }
}
@media (min-width: 1100px) {
  .build-in { grid-template-columns: 4fr 8fr; grid-template-rows: auto 1fr; column-gap: 64px; }
  .build-top { grid-column: 1 / -1; }
  .build-stage { grid-column: 2; grid-row: 2; }
  .build-caps { grid-column: 1; grid-row: 2; align-self: center; min-height: 260px; }
  .b-cap { inset: auto 0 auto 0; top: 50%; transform: translateY(calc(-50% + 14px)); }
  .b-cap.is-on { transform: translateY(-50%); }
}

/* ---------- Report: Kapitel wählen ---------- */
.mods { display: grid; gap: 12px; margin-top: clamp(24px, 4vw, 44px); }
@media (min-width: 640px) { .mods { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .mods { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.mod { border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .35s var(--ease), box-shadow .35s var(--ease); }
.mod.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
@media (hover: hover) { .mod:hover { border-color: var(--ink); } }
.mod-stage { position: relative; aspect-ratio: 16 / 9; margin: 6px 6px 0; background-color: var(--soft);
  background-image: linear-gradient(#1111110d 1px, transparent 1px), linear-gradient(90deg, #1111110d 1px, transparent 1px); background-size: 20px 20px; background-position: -1px -1px;
  display: grid; place-items: center; overflow: hidden; }
.mod-stage::before, .mod-stage::after { display: none; content: ""; position: absolute; width: 14px; height: 14px; border: 0 solid var(--ink); opacity: 0; scale: .6; transition: opacity .3s var(--ease), scale .45s var(--ease); }
.mod-stage::before { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.mod-stage::after { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }
.mod.is-on .mod-stage::before, .mod.is-on .mod-stage::after { opacity: 1; scale: 1; }
.mod-no { position: absolute; top: 10px; left: 30px; font-size: 12px; font-weight: 700; letter-spacing: .07em; color: var(--steel); }
.hemi-mod { width: 62%; height: auto; overflow: visible; }
.sk { width: 82%; height: auto; overflow: visible; }
.sk-l { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: butt; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease); }
.sk-l.thin { stroke-width: 1.2; stroke: var(--grey); }
.sk-l.acc { stroke: var(--accent); }
.sk-t { font-size: 12px; font-weight: 700; fill: var(--ink); opacity: 0; transition: opacity .5s var(--ease) .6s; }
.sk rect { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(.4); transition: opacity .4s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
[data-reveal].is-in .sk-l, .is-built .sk-l { stroke-dashoffset: 0; }
[data-reveal].is-in .sk-t, [data-reveal].is-in .sk rect, .is-built .sk-t, .is-built .sk rect { opacity: 1; transform: none; }
.mod-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.mod-body h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.015em; }
.mod-body p { color: var(--ink-2); font-size: 15px; }
.mod-add { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 6px; border: 2px solid var(--ink); font-weight: 600; font-size: 15px; transition: background-color .25s var(--ease), color .25s var(--ease), transform .16s var(--ease); }
.mod-add:active { transform: scale(.97); }
.mod-add i { position: relative; width: 28px; height: 28px; background: var(--soft); transition: background-color .25s var(--ease); }
.mod-add i::before, .mod-add i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); transition: transform .35s var(--ease), background-color .25s; }
.mod-add i::after { transform: rotate(90deg); }
.mod.is-on .mod-add { background: var(--ink); color: var(--paper); }
.mod.is-on .mod-add i { background: var(--paper); }
.mod.is-on .mod-add i::before { width: 6px; transform: translate(-2px, 2px) rotate(45deg); }
.mod.is-on .mod-add i::after { width: 11px; transform: translate(3px, 0) rotate(-50deg); }
@media (hover: hover) { .mod:not(.is-on) .mod-add:hover { background: var(--ink); color: var(--paper); } }
/* Mobil: Kapitel als kompakte Zeilen statt bildschirmhoher Karten */
@media (max-width: 639px) {
  .mods { gap: 8px; }
  .mod { flex-direction: row; align-items: stretch; }
  .mod-stage { flex: none; width: 92px; aspect-ratio: auto; margin: 6px 0 6px 6px; background-size: 12px 12px; }
  .mod-stage::before, .mod-stage::after { display: none; width: 10px; height: 10px; }
  .mod-stage::before { top: 5px; left: 5px; } .mod-stage::after { bottom: 5px; right: 5px; }
  .mod-no { display: none; }
  .hemi-mod { width: 78%; }
  .sk { width: 92%; }
  .mod-body { padding: 10px 12px 12px; gap: 4px; }
  .mod-body h3 { font-size: 1.1rem; }
  .mod-body p { font-size: 14px; line-height: 1.35; }
  .mod-add { margin-top: 8px; }
}
.mod-bar { position: sticky; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 20; margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; background: var(--paper); border: 2px solid var(--ink); transform: translateY(calc(100% + 40px)); opacity: 0; transition: transform .6s var(--ease), opacity .4s var(--ease); }
.mod-bar.has-pick { transform: none; opacity: 1; }
.mod-bar-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mod-bar-l p { display: grid; min-width: 0; }
.mod-count { font-weight: 800; font-size: 2rem; letter-spacing: -.045em; line-height: 1; }
.mod-names { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.mod-bar-r { display: flex; align-items: center; gap: 14px; flex: none; }
@media (max-width: 639px) { .mod-bar .link-btn { display: none; } .mod-bar .btn span { display: none; } .mod-bar .btn { padding-left: 6px; } }

/* ---------- Vier Fragen: Antwort und Nutzen ---------- */
@media (min-width: 1100px) { .mods-4 { grid-template-columns: repeat(4, 1fr); } }
.mod-gain { font-weight: 700; color: var(--ink) !important; padding-left: 22px; position: relative; }
.mod-gain::before { content: ""; position: absolute; left: 0; top: .7em; width: 14px; height: 2px; background: var(--ink); }

/* ---------- Angebote: ein Schalter, eine Zeitachse, die mit jeder Stufe wächst ---------- */
.offer .split { margin-bottom: clamp(24px, 4vw, 44px); }
.tiers { display: grid; gap: 0; }
.tier-tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); }
.tier-tabs button { position: relative; z-index: 1; display: grid; gap: 2px; justify-items: start; text-align: left; padding: 12px 14px; min-height: 64px; transition: color .35s var(--ease); }
.tier-tabs button + button { border-left: 1px solid var(--line); }
.tier-tabs b { font-size: clamp(1.05rem, 1.8vw, 1.45rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.tt-no { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--steel); transition: color .35s var(--ease); }
.tt-for { font-size: 13px; color: var(--ink-2); display: none; transition: color .35s var(--ease); }
.tier-tabs [aria-selected="true"] { color: var(--paper); }
.tier-tabs [aria-selected="true"] .tt-no, .tier-tabs [aria-selected="true"] .tt-for { color: var(--paper); opacity: .75; }
.tt-ind { position: absolute; top: 0; bottom: 0; left: 0; width: var(--w, 0); transform: translateX(var(--x, 0)); background: var(--ink); transition: transform .55s var(--ease), width .55s var(--ease); }
@media (hover: hover) { .tier-tabs button:not([aria-selected="true"]):hover b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; } }
@media (min-width: 768px) { .tt-for { display: block; } .tier-tabs button { padding: 16px 20px; } }
.tier-panel { border: 2px solid var(--ink); border-top: 0; padding: clamp(20px, 3vw, 36px); display: grid; gap: clamp(24px, 3vw, 40px); }

/* Zeitachse: Grundlinie, Begleitung als Linie, Report als Block, Termine als Punkte, Gespräche als Ringe */
.tk-wrap { display: grid; gap: 10px; }
.tk-scale { position: relative; height: 16px; margin: 0 8px; display: none; }
.tk-scale span { position: absolute; left: calc(var(--x) * 100%); transform: translateX(-50%); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--steel); white-space: nowrap; }
.tk-scale span:first-child { transform: none; } .tk-scale span:last-child { transform: translateX(-100%); }
.tk-track { position: relative; height: 260px; margin: 6px 0 6px 10px; }
.tk { position: absolute; font-style: normal; left: 0; top: calc(var(--x) * 100%); transform: translate(-50%, -50%) scale(0); transition: transform .45s var(--spring), opacity .3s var(--ease); transition-delay: calc(var(--x) * .5s); }
.tk span { position: absolute; left: 26px; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--ink); }
.tk-base { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); transform: translateX(-50%); }
.tk-line { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ink); transform: translateX(-50%) scaleY(0); transform-origin: top; transition: transform 1s var(--ease); }
.tk-doc { width: 18px; height: 24px; background: var(--ink); }
.tk-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.tk-meet { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--paper); }
.tk-end { width: 22px; height: 3px; background: var(--ink); }
.tk-meet span { color: var(--ink-2); }
/* Sichtbar ab der gewählten Stufe */
.tier-panel[data-level="1"] .tk[data-l="1"], .tier-panel[data-level="2"] .tk:is([data-l="1"], [data-l="2"]), .tier-panel[data-level="3"] .tk[data-l] { transform: translate(-50%, -50%) scale(1); }
.tier-panel:is([data-level="2"], [data-level="3"]) .tk-line { transform: translateX(-50%) scaleY(1); }
.tiers:not(.is-built) .tk { transform: translate(-50%, -50%) scale(0) !important; }
.tiers:not(.is-built) .tk-line { transform: translateX(-50%) scaleY(0) !important; }
@media (min-width: 768px) {
  .tk-scale { display: block; }
  .tk-track { height: 96px; margin: 0 8px; }
  .tk { left: calc(var(--x) * 100%); top: 50%; }
  .tk span { left: 50%; transform: translateX(-50%); top: auto; bottom: calc(100% + 10px); font-size: 13px; }
  .tk span.tk-down { bottom: auto; top: calc(100% + 10px); }
  .tk-doc span { left: 0; transform: none; } .tk-end span { left: auto; right: 0; transform: none; }
  .tk-base { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 1px; transform: translateY(-50%); }
  .tk-line { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 3px; transform: translateY(-50%) scaleX(0); transform-origin: left; }
  .tier-panel:is([data-level="2"], [data-level="3"]) .tk-line { transform: translateY(-50%) scaleX(1); }
  .tiers:not(.is-built) .tk-line { transform: translateY(-50%) scaleX(0) !important; }
  .tk-end { width: 3px; height: 24px; }
}
.tier-info { display: grid; gap: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.tier-items { display: grid; margin-top: 8px; }
.tier-items li { padding: 8px 0 8px 24px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; transition: opacity .35s var(--ease), color .35s var(--ease); }
.tier-items li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 9px; height: 5px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
/* Neu in dieser Stufe: kräftig. Schon enthalten: leiser. Noch nicht enthalten: ausgeblendet. */
.tier-panel[data-level="1"] .tier-items [data-l="2"], .tier-panel[data-level="1"] .tier-items [data-l="3"], .tier-panel[data-level="2"] .tier-items [data-l="3"] { display: none; }
.tier-panel[data-level="1"] .tier-items [data-l="1"], .tier-panel[data-level="2"] .tier-items [data-l="2"], .tier-panel[data-level="3"] .tier-items [data-l="3"] { font-weight: 700; animation: d-rise .45s var(--ease) both; }
.tier-panel[data-level="2"] .tier-items [data-l="1"], .tier-panel[data-level="3"] .tier-items :is([data-l="1"], [data-l="2"]) { color: var(--steel); }
.tier-buy { display: grid; gap: 10px; align-content: start; justify-items: start; }
.tier-name { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.tier-price { font-size: 15px; color: var(--ink-2); }
.tier-price b { color: var(--ink); }
@media (min-width: 900px) { .tier-info { grid-template-columns: 7fr 5fr; gap: 48px; } .tier-buy { padding-top: 22px; } }

/* ---------- Fragen ---------- */
.faq .split { align-items: start; }
.faq .h2 { max-width: 12ch; }
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: grid; grid-template-columns: 2.2rem 1fr 24px; gap: 10px; align-items: center; padding: 20px 0; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary b { font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 700; letter-spacing: -.015em; transition: color .3s var(--ease); }
.faq-list summary i { position: relative; width: 20px; height: 20px; }
.faq-list summary i::before, .faq-list summary i::after { content: ""; position: absolute; left: 3px; right: 3px; top: 9px; height: 2px; background: var(--ink); transition: transform .45s var(--ease); }
.faq-list summary i::after { transform: rotate(90deg); }
.faq-list details[open] summary i::before { transform: rotate(45deg); }
.faq-list details[open] summary i::after { transform: rotate(135deg); }
.faq-list details p { padding: 0 32px 22px 3.2rem; color: var(--ink-2); max-width: 40rem; }
.faq-list details[open] p { animation: faq-in .5s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Abschluss ---------- */
.cta-sec { padding-top: 0; }
.cta-block { position: relative; overflow: hidden; display: grid; padding: clamp(32px, 6vw, 72px); min-height: 520px; align-content: space-between; gap: 40px; }
.cta-text { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: start; max-width: 30rem; }
.hemi-cta { width: min(110%, 760px); height: auto; justify-self: end; align-self: end; margin: 0 calc(-1 * clamp(32px, 6vw, 72px)) calc(-1 * clamp(32px, 6vw, 72px)) 0; overflow: visible; }
@media (min-width: 900px) { .cta-block { grid-template-columns: 1fr 1fr; align-items: end; } .hemi-cta { position: absolute; right: 0; bottom: 0; width: 58%; margin: 0; } }

/* ---------- Footer: wer, wohin, Kontakt; darunter eine Zeile ---------- */
.foot { border-top: 2px solid var(--ink); padding: 40px 0 max(16px, env(safe-area-inset-bottom)); }
.foot-in { display: grid; gap: 28px; padding-bottom: 28px; }
.foot-brand { display: grid; gap: 10px; max-width: 24rem; }
.foot-logo { justify-self: start; display: flex; align-items: center; min-height: 44px; }
.foot-logo .logo { height: 28px; }
.foot-brand p { color: var(--ink-2); font-size: 15px; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; align-content: start; column-gap: 20px; }
.foot-links a { justify-self: start; padding: 11px 0; font-weight: 600; font-size: 15px; background: linear-gradient(currentColor 0 0) left bottom 8px / 0 2px no-repeat; transition: background-size .35s var(--ease); }
@media (hover: hover) { .foot-links a:hover { background-size: 100% 2px; } }
.foot-contact { display: grid; gap: 6px; align-content: start; }
.foot-bot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; border-top: 1px solid var(--line); padding-top: 4px; font-size: 13px; color: var(--steel); }
.foot-bot span { padding: 12px 0; }
.foot-top { padding: 12px 0; min-height: 44px; font-size: 13px; color: var(--steel); }
@media (hover: hover) { .foot-top:hover { color: var(--ink); } }
@media (min-width: 900px) {
  .foot-in { grid-template-columns: 5fr 4fr 3fr; gap: 40px; }
}


/* ---------- Anfrage ---------- */
.brief-head { padding-top: calc(var(--nav-h) + 56px); padding-bottom: 40px; }
.brief { padding-bottom: 120px; }
.brief-grid { display: grid; gap: 40px; }
@media (min-width: 1100px) { .brief-grid { grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; } }
.brief-form { display: grid; gap: 48px; }
.step { border: 0; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 22px; transition: border-color .4s var(--ease); min-width: 0; }
.step:focus-within { border-left-color: var(--ink); }
.step legend { float: left; width: 100%; display: flex; gap: 10px; align-items: baseline; font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 4px; padding: 0; }
.step legend span { font-size: 13px; font-weight: 700; color: var(--steel); letter-spacing: .04em; }
.row2 { display: grid; gap: 22px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; gap: 16px; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label, .flabel { font-size: 14px; font-weight: 600; transition: transform .35s var(--ease); }
.field:focus-within > label, .field:focus-within > .flabel { transform: translateX(4px); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 0; background: var(--paper); font-size: 16px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); -webkit-appearance: none; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 38px; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.field [aria-invalid="true"] { border-color: var(--accent); }
.field-err { color: var(--accent); font-size: 14px; font-weight: 600; }
.hint-s { font-size: 13px; color: var(--steel); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); font-size: 15px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .16s var(--ease); }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip::before { content: ""; width: 0; height: 8px; background: var(--paper); border-radius: 50%; transition: width .3s var(--ease); margin-right: -8px; }
.chip:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip:has(input:checked)::before { width: 8px; margin-right: 0; animation: chip-dot .35s var(--spring); }
.chip:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.chip:active { transform: scale(.97); }
.chip.is-fixed { cursor: default; border-color: var(--ink); font-weight: 600; }
.chip.is-fixed::before { display: none; }
@keyframes chip-dot { from { transform: scale(0); } }
@media (hover: hover) { .chip:not(.is-fixed):hover { border-color: var(--ink); } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); }
.cand { display: grid; gap: 22px; overflow: hidden; }
.cand.is-in { animation: cand-in .6s var(--ease); }
@keyframes cand-in { from { opacity: 0; transform: translateY(-8px); } }
.brief-errors { border: 2px solid var(--accent); padding: 14px 16px; display: grid; gap: 6px; }
.brief-errors[hidden] { display: none; }
.brief-errors p { font-weight: 700; }
.brief-errors a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.brief-send { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* Entwurf: zeichnet sich mit */
.draft { position: sticky; z-index: 30; }
.draft-toggle { display: none; }
.draft-last:empty { display: none; }
.draft-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
.draft-sub { font-weight: 600; font-size: 14px; }
.draft-pct { font-weight: 800; font-size: 2.6rem; letter-spacing: -.045em; line-height: .9; color: var(--grey); transition: color .4s var(--ease); }
.draft-pct small { font-size: 1.1rem; }
.draft-pct.is-full { color: var(--ink); }
.draft-page:focus-visible { outline-offset: 4px; }
.draft-page { position: relative; border: 2px solid var(--ink); background: var(--paper); max-height: calc(100svh - var(--nav-h) - 130px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
/* Das Dokument: jede Angabe aus der Maske hat einen festen Platz */
.doc { padding: 22px 24px 26px; display: grid; gap: 16px; font-size: 14px; line-height: 1.4; }
.doc-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.doc-top .logo { height: 18px; }
.doc-muster, .doc-kind, .doc-h { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--steel); }
.doc-title { font-weight: 800; letter-spacing: -.045em; line-height: .95; font-size: clamp(1.7rem, 2.6vw, 2.3rem); overflow-wrap: anywhere; min-height: .95em; margin-top: -8px; }
.doc-title .doc-ph { height: 26px; }
.doc-wahl { color: var(--steel); font-size: 13px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-top: -6px; }
.doc-sec { display: grid; gap: 4px; }
.doc-dl { margin: 0; display: grid; }
.doc-dl div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); align-items: center; min-height: 32px; }
.doc-dl dt { color: var(--steel); font-size: 13px; }
.doc-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.doc-ph { display: inline-block; height: 10px; background: var(--soft); vertical-align: middle; }
.doc-empty { color: var(--steel); }
.doc-quote { white-space: pre-wrap; overflow-wrap: anywhere; border-left: 2px solid var(--ink); padding: 2px 0 2px 10px; }
.doc-ol li { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.doc-ol li span { color: var(--steel); font-size: 12px; font-weight: 700; padding-top: 2px; }
.doc-ol li.doc-empty { font-weight: 400; }
.doc-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-top: 2px solid var(--ink); padding-top: 12px; }
.doc-offer { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.doc-seal { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--steel); margin-top: 10px; line-height: 1.3; }
.doc-seal i { flex: none; width: 32px; height: 32px; border: 2px solid var(--ink); position: relative; }
.doc-seal i::after { content: ""; position: absolute; left: 9px; top: 3px; width: 8px; height: 15px; border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.doc-seal b { color: var(--ink); font-size: 13px; }
.doc-consent { font-size: 12px; color: var(--steel); margin-top: 10px; }
.doc-hemi { width: 108px; flex: none; }
.doc .is-new { animation: doc-flash 1.4s var(--ease-out); }
@keyframes doc-flash { 0% { background-color: #e2e2dd; outline: 4px solid #e2e2dd; } 100% { background-color: transparent; outline: 4px solid transparent; } }
.draft-open { margin-top: 12px; font-size: 14px; font-weight: 600; }
@keyframes d-rise { from { opacity: 0; transform: translateY(8px); } }
.draft-stamp { position: absolute; right: 8%; top: 40%; border: 3px solid var(--ink); padding: 6px 14px; font-weight: 800; font-size: 1.8rem; letter-spacing: -.03em; transform: rotate(-8deg) scale(1.6); opacity: 0; pointer-events: none; background: var(--paper); }
.draft.is-sent .draft-stamp { animation: stamp .55s var(--ease-out) .2s both; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-20deg) scale(1.8); } 60% { opacity: 1; transform: rotate(-6deg) scale(.95); } 100% { opacity: 1; transform: rotate(-8deg) scale(1); } }
@media (min-width: 1100px) { .draft { top: calc(var(--nav-h) + 16px); } }
@media (max-width: 1099px) {
  /* Mobil: Entwurf als Leiste unten, aufklappbar */
  .draft { position: fixed; left: 0; right: 0; bottom: 0; background: var(--paper); border-top: 2px solid var(--ink); padding: 0 var(--shell) max(10px, env(safe-area-inset-bottom)); max-height: 85svh; display: flex; flex-direction: column; transform: translateY(0); transition: transform .5s var(--ease); }
  .draft-toggle { display: flex; align-items: center; gap: 12px; height: 56px; width: 100%; flex: none; }
  .draft-toggle b { margin-left: auto; font-weight: 800; font-size: 1.3rem; }
  .draft-last { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .draft-last.is-new { animation: d-rise .4s var(--ease); }
  .draft-toggle i { width: 12px; height: 12px; border: solid var(--ink); border-width: 2px 2px 0 0; transform: rotate(-45deg) translateY(3px); transition: transform .4s var(--ease); }
  .draft-toggle[aria-expanded="true"] i { transform: rotate(135deg) translateY(3px); }
  .draft-body { display: none; overflow-y: auto; padding-bottom: 8px; }
  .draft.is-open .draft-body { display: block; animation: d-rise .4s var(--ease); }
  .draft-head { display: none; }
  .draft-page { max-height: none; overflow: visible; }
  .brief { padding-bottom: 160px; }
}

/* ---------- Quellen-Modus: woher jede Zahl kommt ---------- */
html.quellen [data-src] { outline: 1.5px dashed var(--ink); outline-offset: 4px; }
/* Das Etikett steht im Textfluss unter dem Element: Es schiebt den Inhalt weiter, statt ihn zu überdecken */
html.quellen [data-src]::after {
  content: "Quelle · " attr(data-src); display: block; position: static; width: fit-content; max-width: 100%; margin-top: 10px;
  background: var(--ink); color: var(--paper); font: 600 12px/1.35 "Inter Tight", Arial, sans-serif; letter-spacing: .02em; text-transform: none; padding: 5px 8px; white-space: normal;
}
html.quellen .dark [data-src] { outline-color: var(--paper); }
html.quellen .dark [data-src]::after { background: var(--paper); color: var(--ink); }
html.quellen .hero-arc-cap { position: static; transform: none; margin-top: 8px; }
html.quellen { --grid: #1111111f; }

/* ---------- Seitenwechsel: Kreis ---------- */
.pt { position: fixed; inset: 0; z-index: 140; background: var(--ink); color: var(--paper); pointer-events: none; clip-path: circle(0 at var(--px, 50%) var(--py, 50%)); display: grid; place-items: center; }
.pt.is-in { pointer-events: auto; clip-path: circle(150% at var(--px, 50%) var(--py, 50%)); transition: clip-path .6s var(--ease-out); }
.pt.is-out { clip-path: circle(0 at var(--px, 50%) var(--py, 50%)); transition: clip-path .45s cubic-bezier(.7, 0, .2, 1); }
.pt-in { display: grid; justify-items: center; gap: 10px; opacity: 0; transition: opacity .3s var(--ease); }
.pt.is-in .pt-in { opacity: 1; transition-delay: .25s; }
.pt .logo { height: 30px; }
.pt-label { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #9a9a95; }

/* ---------- Formsprache: Konstruktionszeichnung ---------- */
/* Textlink mit Pfeil, überall gleich */
.go { position: relative; justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; }
.go .btn-arrow { --b-fg: var(--ink); --b-bg: var(--paper); width: 32px; height: 32px; }
.go-lg { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.dark .go .btn-arrow { --b-fg: var(--paper); --b-bg: var(--ink); }
@media (hover: hover) { .go:hover .btn-arrow { transform: translate(2px, -2px); } .go:hover .btn-arrow::before { transform: rotate(45deg); } }

/* Hover-Ecken wie Schnittmarken: an Textlinks, Nav und Karten */
.go::before, .go::after, .nav-btn::before, .nav-btn::after, .foot-links a::before, .foot-links a::after { content: ""; position: absolute; width: 7px; height: 7px; border: 0 solid var(--ink); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease-out), transform .45s var(--ease-out); }
.go::before, .nav-btn::before, .foot-links a::before { left: -7px; top: 2px; border-width: 1.5px 0 0 1.5px; transform: translate(-5px, -5px); }
.go::after, .nav-btn::after, .foot-links a::after { right: -7px; bottom: 2px; border-width: 0 1.5px 1.5px 0; transform: translate(5px, 5px); }
.nav-btn, .foot-links a { position: relative; }
@media (hover: hover) { .go:hover::before, .go:hover::after, .nav-btn:hover::before, .nav-btn:hover::after, .foot-links a:hover::before, .foot-links a:hover::after { opacity: 1; transform: none; } }
.go:focus-visible::before, .go:focus-visible::after { opacity: 1; transform: none; }

/* Schnittmarken an Karten und Grafiken (von JS gesetzt) */
[data-frame] { position: relative; }
.crop { position: absolute; width: 12px; height: 12px; border: 0 solid var(--ink); pointer-events: none; opacity: .55; transition: transform .45s var(--ease-out), opacity .3s var(--ease); }
.crop.tl { top: -7px; left: -7px; border-width: 1.5px 0 0 1.5px; } .crop.tr { top: -7px; right: -7px; border-width: 1.5px 1.5px 0 0; }
.crop.bl { bottom: -7px; left: -7px; border-width: 0 0 1.5px 1.5px; } .crop.br { bottom: -7px; right: -7px; border-width: 0 1.5px 1.5px 0; }
@media (hover: hover) { [data-frame]:hover .crop { opacity: 1; } [data-frame]:hover .crop.tl { transform: translate(4px, 4px); } [data-frame]:hover .crop.tr { transform: translate(-4px, 4px); } [data-frame]:hover .crop.bl { transform: translate(4px, -4px); } [data-frame]:hover .crop.br { transform: translate(-4px, -4px); } }
.dark .crop, .dark.crop-host .crop { border-color: var(--paper); }

/* Aufbau: Hilfslinien ziehen über den Rand, Mass erscheint, dann ist der Inhalt da */
.cx { position: absolute; z-index: 2; background: var(--ink); pointer-events: none; opacity: 0; }
.cx-h { height: 1px; left: -20px; right: -20px; transform-origin: left; transform: scaleX(0); }
.cx-v { width: 1px; top: -20px; bottom: -20px; transform-origin: top; transform: scaleY(0); }
.cx-t { top: 0; } .cx-b { bottom: 0; transform-origin: right; } .cx-l { left: 0; } .cx-r { right: 0; transform-origin: bottom; }
.cx-label { position: absolute; z-index: 2; left: 0; bottom: calc(100% + 8px); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); white-space: nowrap; opacity: 0; pointer-events: none; font-variant-numeric: tabular-nums; }
.dark .cx { background: var(--paper); }
.is-built .cx-h { animation: cx-h 1.6s var(--ease-out) var(--d, 0s) both; }
.is-built .cx-v { animation: cx-v 1.6s var(--ease-out) calc(var(--d, 0s) + 90ms) both; }
.is-built .cx-label { animation: cx-label 1.9s ease calc(var(--d, 0s) + .1s) both; }
@keyframes cx-h { 0% { opacity: .9; transform: scaleX(0); } 40% { opacity: .9; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes cx-v { 0% { opacity: .9; transform: scaleY(0); } 40% { opacity: .9; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes cx-label { 0% { opacity: 0; translate: 0 4px; } 22%, 70% { opacity: 1; translate: 0; } 100% { opacity: 0; } }
.js [data-assemble] > .asm { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease-out); transition-delay: calc(var(--d, 0s) + .35s); }
.js [data-assemble].is-built > .asm { clip-path: inset(-20px); }

/* Abschnittskopf: Linie zeichnet sich, Nummer gross und blass im Hintergrund */
.sec-head { position: relative; border-top: 0 !important; }
.sec-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease-out); }
.sec-head.is-in::before, html:not(.js) .sec-head::before { transform: none; }
.dark .sec-head::before { background: var(--paper); }
.sec-ghost { position: absolute; right: var(--shell); top: 10px; z-index: -1; font-weight: 800; letter-spacing: -.06em; line-height: .8; font-size: clamp(6rem, 17vw, 15rem); color: var(--ink); opacity: .045; pointer-events: none; user-select: none; }
.sec > .shell { position: relative; isolation: isolate; }
@media (max-width: 767px) { .sec-ghost { display: none; } }

/* Überschriften: Wort für Wort aus einer Maske */
.js .h2.words { opacity: 1 !important; filter: none !important; transform: none !important; }
.h2 .wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.h2 .wd > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease-out); transition-delay: calc(var(--w) * 55ms + var(--d0, 0ms)); }
.h2.is-in .wd > span, html:not(.js) .h2 .wd > span { transform: none; }

/* Beim Verlassen nach oben: leicht weich ausblenden (wo der Browser Scroll-Animationen kann) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sec .h2.is-in, .sec .lead.is-in, .sec .split > p.is-in { animation: leave linear both; animation-timeline: view(); animation-range: exit 30% exit 100%; }
  }
}
@keyframes leave { to { opacity: 0; filter: blur(5px); translate: 0 -1.25rem; } }

/* Fadenkreuz mit Koordinaten über Grafiken (nur Maus) */
.mf-x, .mf-y, .mf-c { position: absolute; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .2s var(--ease); }
.mf-x { left: 0; right: 0; height: 1px; top: var(--my, 50%); background: var(--ink); }
.mf-y { top: 0; bottom: 0; width: 1px; left: var(--mx, 50%); background: var(--ink); }
.mf-c { left: calc(var(--mx, 50%) + 10px); top: calc(var(--my, 50%) + 10px); background: var(--paper); border: 1px solid var(--line); padding: 3px 6px; font-size: 12px; font-weight: 600; line-height: 1; white-space: pre; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { [data-measure]:hover > .mf-x, [data-measure]:hover > .mf-y, [data-measure]:hover > .mf-c { opacity: .9; } [data-measure]:hover { cursor: crosshair; } }

/* Hero: Buchstaben reagieren auf die Maus */
.kc { display: inline-block; font-variation-settings: "wght" calc(800 - var(--k, 0) * 420); transform: translate(calc(var(--dx, 0) * 1px), calc(var(--dy, 0) * 1px)); transition: transform .35s var(--ease-out), font-variation-settings .35s var(--ease-out); }
.kw { display: inline-block; white-space: nowrap; }

/* Schlanke Zeile unter den Angeboten */
.aside-row { margin-top: 18px; display: grid; gap: 6px 24px; align-items: center; padding: 14px 0; }
.aside-row p { color: var(--ink-2); }
.aside-row b { color: var(--ink); }
.aside-links { display: flex; flex-wrap: wrap; gap: 0 26px; }
@media (min-width: 1000px) { .aside-row { grid-template-columns: 1fr auto; } }

/* ---------- Quellen-Modus = dunkler Modus ---------- */
/* Magenta #D6006F erreicht auf #111 nur 3,7:1. Im dunklen Modus ein hellerer Ton (5,7:1), damit kleine Schrift AA erfüllt. */
html.quellen { --ink: #f3f3f1; --ink-2: #cfcfca; --steel: #a8a8a2; --grey: #8f8f8a; --line: #3a3a36; --soft: #222220; --paper: #111111; --accent: #ff4d9e; --grid: #ffffff14; color-scheme: dark; }
html.quellen .dark { --ink: #111111; --ink-2: #3d3d3a; --steel: #5f5f59; --paper: #f3f3f1; --line: #cfcfca; background: #f3f3f1; color: #111111; --accent: #d6006f; }
html.quellen .dark .lead { color: #3d3d3a; }
html.quellen .dark .label { color: #5f5f59; }
html.quellen .nav.is-scrolled { background: #111111; }
html.quellen .tag { background: #d6006f; color: #ffffff; }
html.quellen ::selection { background: #f3f3f1; color: #111111; }
/* Die Lupe, die den Wechsel trägt */
.qlens { position: fixed; z-index: 260; left: 0; top: 0; width: 200px; height: 200px; pointer-events: none; opacity: 0; transform: translate(-50%, -50%); }
.qlens svg { width: 100%; height: 100%; overflow: visible; }
.qlens circle, .qlens path { fill: none; stroke: #8a8a86; vector-effect: non-scaling-stroke; }
.qlens circle { stroke-width: 3px; }
.qlens path { stroke-width: 7px; stroke-linecap: square; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* Magnetischer Pfeil */
.btn-arrow { translate: var(--mgx, 0) var(--mgy, 0); transition: transform .45s var(--ease), translate .3s var(--ease-out), background-color .3s var(--ease), color .3s var(--ease); }

/* ---------- Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; filter: none; transform: none; }
}
@media print { .nav, .scale, .pt, .menu { display: none; } }
