/* schnittstelle: gemeinsame Basis (Kontaktbogen, eine lila Stimme). Aus entwuerfe/varianten/_bau/base.css übernommen. */
@font-face { font-family: "Archivo"; src: url("/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jbmono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
:root {
  --paper: #0e0e10; --paper-2: #18181b; --film: #212126; --rule: #3a3a42; --ink: #fff; --ink-soft: #adadb8; --edge: #c8c8d0;
  --purple: #9146ff; --btn: #772ce8; --btn-hover: #5c16c5; --accent-text: #bf94ff; --err: #ff8a8a; --pen: #a970ff;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif; --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --pad: clamp(16px, 4vw, 48px); --max: 1240px; --section: clamp(48px, 8vw, 104px);
  --frame-w: clamp(132px, 14vw, 208px);
  --ease: cubic-bezier(.16, 1, .3, 1); --t-fast: 160ms; --t: 260ms; --t-slow: 400ms;
  --perf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='14'%3E%3Crect x='6' y='3' width='14' height='8' rx='2' fill='%230e0e10'/%3E%3C/svg%3E");
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--rule) var(--paper); overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--display); -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--purple); color: #fff; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; transition: color var(--t-fast) var(--ease), text-decoration-color var(--t-fast) var(--ease); }
a:hover { text-decoration-color: var(--purple); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
h1, h2, h3 { font-stretch: 112%; font-weight: 800; letter-spacing: -.02em; line-height: 1.04; margin: 0; text-wrap: balance; }
.display { font-size: clamp(2.1rem, 8.6vw, 5.2rem); }
.headline { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }
.title { font-size: clamp(1.2rem, 2vw, 1.55rem); }
.soft { color: var(--ink-soft); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 44ch; margin: 0; }
.mono { font: 500 12px/1.3 var(--mono); letter-spacing: .02em; color: var(--edge); }
.num { font-family: var(--mono); color: var(--accent-text); font-variant-numeric: tabular-nums; }

/* Kopf und Fuß */
.top { display: flex; align-items: center; gap: 16px; padding-block: 22px; }
.brand { font-stretch: 112%; font-weight: 800; font-size: 24px; letter-spacing: -.03em; text-decoration: none; }
.brand i { font-style: normal; color: var(--purple); }
.top .grow { flex: 1; }
html .lang-sw { display: inline-flex; gap: 0; opacity: 1; border: 1.5px solid var(--ink); border-radius: 2px; padding: 2px; }
/* Kein Farbübergang beim Umschalten: in der Überblendung waren beide Knöpfe kurz grau. Trefferfläche per ::after auf 44px Höhe,
   seitlich nur nach außen erweitert, damit sich DE und EN nicht überlappen. */
html .lang-sw button { all: unset; position: relative; cursor: pointer; padding: 3px 9px; font-size: 13px; font-weight: 700; border-radius: 1px; }
html .lang-sw button::after { content: ""; position: absolute; inset: -9px 0; }
html .lang-sw button[data-l=de]::after { left: -7px; } html .lang-sw button[data-l=en]::after { right: -7px; }
html .lang-sw button[aria-pressed=true] { background: var(--ink); color: var(--paper); }
html .lang-sw button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.login-link { font-size: 15px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--ink); padding: 8px 16px; border-radius: 2px; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.login-link:hover { background: var(--ink); color: var(--paper); }
/* Links 44px hoch (Tippfläche), dafür weniger Innenabstand und kein Zeilenabstand: der Fuß sieht aus wie vorher */
.foot { padding-block: 17px 29px; font-size: 14px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 0 22px; align-items: center; }
.foot a { color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; }
/* Sprunglink für Tastatur: erstes Ziel, nur bei Fokus sichtbar */
.skip { position: absolute; left: var(--pad); top: 10px; z-index: 50; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 15px; text-decoration: none; border-radius: 2px; transform: translateY(-160%); }
.skip:focus { transform: none; }
.skip:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.foot .grow { flex: 1; }
@media (max-width: 860px) { .top { gap: 10px; } .brand { font-size: 20px; } .login-link { padding: 6px 11px; font-size: 14px; } .lang-sw button { padding: 3px 7px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 17px/1 var(--display); padding: 17px 28px; border-radius: 2px; text-decoration: none; border: 0; cursor: pointer; background: var(--btn); color: #fff;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: translateY(1px); }
.btn.ink { background: var(--ink); color: var(--paper); } .btn.ink:hover { background: #d9d9e0; }
.btn.line { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); } .btn.line:hover { background: var(--ink); color: var(--paper); }
.btn.sm { font-size: 15px; padding: 13px 18px; }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn .arr { display: inline-block; transition: transform var(--t) var(--ease); }
.btn:hover .arr, a:hover > .arr { transform: translateX(4px); }
.alt { font-weight: 600; }
.terms { margin: 0; font: 500 12px/1.4 var(--mono); letter-spacing: .02em; color: var(--edge); }

/* Filmstreifen */
.strip { position: relative; background: var(--film); color: var(--edge); padding: 14px 0; overflow: hidden; }
.strip::before, .strip::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; background: var(--perf) repeat-x 0 0 / 26px 14px; z-index: 1; }
.strip::before { top: 0; } .strip::after { bottom: 0; }
.strip.run::before, .strip.run::after { animation: perf 1.6s linear infinite; }
.strip.run.rev::before, .strip.run.rev::after { animation-direction: reverse; }
@keyframes perf { to { background-position: -26px 0; } }
.reel { list-style: none; margin: 0; padding: 4px 0 0; display: flex; gap: 10px; width: max-content; }
.run .reel { animation: reel var(--dur, 70s) linear infinite; }
.run.rev .reel { animation-direction: reverse; }
.run:hover .reel, .run:focus-within .reel, .run:hover::before, .run:hover::after { animation-play-state: paused; }
@keyframes reel { to { transform: translateX(-50%); } }
.frame { position: relative; flex: 0 0 var(--frame-w); margin: 0; }
.frame .pic { position: relative; display: block; aspect-ratio: 9 / 16; background: #121214; overflow: hidden; }
.frame .pic img, .frame .pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease), opacity var(--t) var(--ease); }
a.pic:hover img, a.pic:hover video, .frame:hover .pic.zoom img { transform: scale(1.03); }
.frame .edge { display: flex; justify-content: space-between; gap: 6px; font: 500 12px/1.2 var(--mono); padding: 7px 2px 3px; color: var(--edge); white-space: nowrap; }
.frame .edge b { font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; }
.frame.pick .pic { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 1px; }
.frame.pick .edge span:first-child { color: var(--accent-text); font-weight: 700; }
a.pic { text-decoration: none; }

/* Linien-Listen, Schritte, FAQ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(20px, 4vw, 56px); }
.steps > li { border-top: 2px solid var(--rule); padding-top: 18px; }
.steps h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); display: flex; gap: 14px; align-items: baseline; }
.steps h3 > span:first-child { font: 700 clamp(1.4rem, 2.4vw, 1.9rem)/1 var(--mono); letter-spacing: 0; color: var(--accent-text); }
.steps p { margin: 14px 0 0; max-width: 34ch; color: var(--ink-soft); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 28px; } }
details.faq-item { border-top: 1.5px solid var(--rule); }
details.faq-item:last-of-type { border-bottom: 1.5px solid var(--rule); }
details.faq-item summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-stretch: 106%; font-weight: 700; font-size: 1.08rem; position: relative; transition: color var(--t-fast) var(--ease); }
details.faq-item summary:hover { color: var(--accent-text); }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%) rotate(0deg); font: 400 24px var(--mono); transition: transform var(--t) var(--ease); }
details.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details.faq-item p { margin: 0 0 20px; max-width: 62ch; color: var(--ink-soft); }
details.faq-item[open] p { animation: auf var(--t) var(--ease); }
details.faq-item p a { color: var(--ink); }
@keyframes auf { from { opacity: 0; transform: translateY(-4px); } }
.faq-group { margin: 0 0 12px; font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1.5px solid var(--rule); }
.ledger li:last-child { border-bottom: 1.5px solid var(--rule); }
.ledger b { font: 700 15px/1.3 var(--mono); color: var(--accent-text); white-space: nowrap; }

/* Lila Band */
.leader { position: relative; background: var(--btn); color: #fff; padding: clamp(48px, 7vw, 96px) 0; overflow: hidden; }
.leader::before, .leader::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; background: var(--perf) repeat-x 0 0 / 26px 14px; }
.leader::before { top: 10px; } .leader::after { bottom: 10px; }
.leader h2 { font-size: clamp(2rem, 5vw, 3.8rem); max-width: 16ch; }
.leader p { max-width: 46ch; color: #efe6ff; margin: 18px 0 0; }
.leader .btn { background: #fff; color: #2a0f5c; } .leader .btn:hover { background: #e9ddff; }
.leader .actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.leader .hint, .leader .alt { color: #efe6ff; font-size: 15px; }
.leader :focus-visible { outline-color: #fff; }

/* Formulare */
.fld { margin-top: 16px; }
.fld label, .lbl { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.inp { width: 100%; font: 500 17px var(--display); color: var(--ink); background: var(--paper); border: 0; border-bottom: 2px solid var(--rule); border-radius: 0; padding: 12px 10px; caret-color: var(--accent-text);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.inp:hover { border-bottom-color: var(--edge); }
.inp:focus { border-bottom-color: var(--ink); background: #141417; }
.inp:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.inp::placeholder { color: #9a9aa4; }
textarea.inp { resize: vertical; min-height: 110px; line-height: 1.5; }
.hint { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }
.err { color: var(--err); font-weight: 600; min-height: 1.4em; margin-top: 12px; font-size: 15px; }
.chk { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.chk input { appearance: none; flex: 0 0 22px; height: 22px; margin: 1px 0 0; border: 2px solid var(--edge); border-radius: 2px; display: grid; place-content: center; cursor: pointer; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.chk input::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) scale(0); transition: transform var(--t-fast) var(--ease); margin-top: -2px; }
.chk input:checked { background: var(--btn); border-color: var(--btn); }
.chk input:checked::after { transform: rotate(-45deg) scale(1); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1.5px solid var(--rule); border-radius: 2px; font-size: 15px; font-weight: 600; cursor: pointer; background: transparent; transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.chip:hover { border-color: var(--edge); }
.chip[aria-pressed=true], .chip:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }

/* Handstrich */
.pen { display: block; overflow: visible; }
.pen path { fill: none; stroke: var(--pen); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.mark { position: relative; display: inline-block; white-space: nowrap; z-index: 0; }
.mark svg { position: absolute; left: -4%; top: -10%; width: 108%; height: 126%; overflow: visible; pointer-events: none; z-index: -1; }
.mark path { fill: none; stroke: var(--pen); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.js .draw path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .draw.on path { animation: stift var(--t-slow) var(--ease) forwards; }
.js .draw.on path + path { animation-delay: 300ms; animation-duration: 260ms; }
@keyframes stift { to { stroke-dashoffset: 0; } }

/* Einblenden: Inhalt ist ohne Skript sichtbar, nur mit .js wird er vorbereitet */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-x { opacity: 0; transform: translateX(-14px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js .rv-x.in { opacity: 1; transform: none; }

/* Portal-Grundgerüst (eingeloggter Bereich) */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; border-right: 1.5px solid var(--rule); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; background: var(--paper); }
.side .brand { font-size: 22px; padding: 0 10px 18px; }
.side a.nav { display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: 2px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-soft); transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.side a.nav:hover { color: var(--ink); background: var(--paper-2); }
.side a.nav[aria-current=page] { background: var(--ink); color: var(--paper); }
.side a.nav .cnt { margin-left: auto; font: 700 12px var(--mono); color: var(--accent-text); }
.side a.nav[aria-current=page] .cnt { color: var(--btn); }
.side .grow { flex: 1; }
.side .who { border-top: 1.5px solid var(--rule); padding: 14px 10px 0; font-size: 14px; color: var(--ink-soft); }
.side .who b { display: block; color: var(--ink); font-size: 15px; }
.main { min-width: 0; padding: 28px clamp(16px, 3.4vw, 44px) 64px; }
.ico { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bar { display: none; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 18px 16px 96px; }
  .bar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--paper); border-top: 1.5px solid var(--rule); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bar a { display: grid; justify-items: center; gap: 3px; font-size: 11px; font-weight: 600; text-decoration: none; color: var(--ink-soft); padding: 6px 0; border-radius: 2px; }
  .bar a[aria-current=page] { color: var(--ink); }
  .bar a[aria-current=page] .ico { stroke: var(--accent-text); }
  .mtop { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
  .mtop .brand { font-size: 20px; }
}
@media (min-width: 861px) { .mtop { display: none; } }
.ph { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 24px; margin-bottom: 22px; }
.ph h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.ph .grow { flex: 1; }
.panel { border-top: 2px solid var(--rule); padding-top: 18px; }
.band { background: var(--paper-2); padding: 18px 20px; border-radius: 2px; }
.kpi { font: 700 clamp(1.6rem, 3vw, 2.3rem)/1 var(--mono); color: var(--accent-text); font-variant-numeric: tabular-nums; }

/* Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .run .reel, .strip.run::before, .strip.run::after { animation: none !important; }
  /* stehender Streifen bleibt per Wischen/Scrollen erreichbar statt abgeschnitten */
  .strip.run { overflow-x: auto; overscroll-behavior-x: contain; }
  .js .rv, .js .rv-x { opacity: 1; transform: none; }
  .js .draw path { stroke-dashoffset: 0; }
}
