/* Oeffentliche Seiten: Landing Page (views/index.ejs) und Noquu Tools (views/tools.ejs).
   Beide teilen sich diese Datei, damit sie nicht auseinanderlaufen. Was nur eine Seite
   braucht, steht in einem eigenen Abschnitt weiter unten.

   Dunkles Grau, ohne Akzentfarbe: Farbe hat auf dieser Seite nur die App selbst - im Handy.
   Schrift ist Figtree, dieselbe wie in der App: Seite und Produkt sind ein System,
   und die Datei liegt ohnehin schon unter /fonts (keine fremden Server). */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/fonts/figtree-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: 'Figtree'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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; }

/* Dunkles Grau statt hartem Schwarz-Weiss: angenehmer fuer die Augen, der Aufbau bleibt.
   Eine bewusste Fassung ohne Hell-Umschaltung. Kontraste auf dem Grund: Text 13,9:1,
   grau 6,5:1, blass 4,8:1. */
:root {
  color-scheme: dark;
  --bg: #1e1f22;
  --ink: #ececea;
  --grey: #a2a39f;
  --faint: #8a8b86;
  --line: #313236;
  --tint: #26272b;
  --font: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.num { font-variant-numeric: tabular-nums; }
section[id] { scroll-margin-top: 80px; }

/* Nur unter /preview: auffaellig genug, dass niemand die Entwurfsfassung fuer die echte Seite haelt. */
.preview-bar { font-size: 13px; font-weight: 600; background: #b45309; color: #fff; text-align: center; padding: 7px 16px; }

/* Leiste */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
/* Logo: die bestehende Bildmarke (img/logo-mark.png) und daneben der Schriftzug. Das volle
   Logo (logo-full.png) hat einen dunkelblauen Schriftzug, der auf dem dunklen Grund unterginge. */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.035em; text-decoration: none; }
.brand img { width: 26px; height: auto; display: block; }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--grey); padding: 12px 12px; transition: color .15s; }
.top nav a:hover { color: var(--ink); }
.top nav a.go { color: var(--bg); background: var(--ink); padding: 12px 18px; border-radius: 999px; font-weight: 600; margin-left: 8px; }
.top nav a.go:hover { opacity: .85; }
.top.line { box-shadow: 0 1px 0 var(--line); }

/* Menue fuers Handy (site-nav.js): Dort passen die Links nicht in die Leiste. */
.menue-knopf { display: none; width: 44px; height: 44px; margin-left: 6px; border-radius: 12px; border: 1px solid var(--line); background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.menue-knopf span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .22s ease; }
.menue-knopf[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menue-knopf[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menue { position: fixed; left: 0; right: 0; top: calc(68px + env(safe-area-inset-top, 0px)); z-index: 19; background: var(--bg); border-bottom: 1px solid var(--line); padding: 4px var(--gutter) 20px; display: flex; flex-direction: column; box-shadow: 0 30px 50px -30px rgba(0,0,0,.8); }
.menue[hidden] { display: none; }
.menue a { padding: 16px 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; border-bottom: 1px solid var(--line); }
.menue a:last-child { border-bottom: 0; }

/* Hinweis, dass noch keine Zahlung moeglich ist (Beta). */
.beta-hinweis { max-width: 62em; margin: -24px 0 48px; padding: 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 12px; background: var(--tint); color: var(--grey); font-size: 16px; }
.beta-hinweis b { color: var(--ink); }

.go-big { display: inline-flex; align-items: center; min-height: 54px; padding: 0 28px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 17px; text-decoration: none; transition: opacity .15s, transform .1s; }
.go-big:hover { opacity: .85; }
.go-big:active { transform: translateY(1px); }
.under { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; padding-block: 14px; display: inline-block; }
.under:hover { text-decoration-thickness: 3px; }

/* ---------- Kapitel mit stehendem Handy ---------- */
/* clip statt hidden: kappt den unverkleinerten 414px-Rahmen, ohne einen Scroll-Container
   zu bauen - sonst bliebe das Handy nicht mehr stehen (sticky). */
main { overflow-x: clip; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); }
.story-text { min-width: 0; }
.kap { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding-block: 64px; }
.kap.eins { min-height: calc(100vh - 110px); padding-top: 32px; }
.kap h1 { font-size: clamp(50px, 7.4vw, 116px); line-height: .93; letter-spacing: -0.05em; }
.kap .lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--grey); max-width: 30em; margin-top: 28px; }
.kap .acts { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; margin-top: 36px; }
.kap .small { font-size: 14.5px; color: var(--grey); margin-top: 18px; }
.kap .screen-name { font-size: 15px; font-weight: 600; color: var(--grey); margin-bottom: 18px; }
.kap h2 { font-size: clamp(38px, 4.8vw, 68px); line-height: 1; letter-spacing: -0.045em; max-width: 12em; }
.kap p.t { font-size: 19px; color: var(--grey); max-width: 29em; margin-top: 22px; }
.kap ul.facts { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 10px; max-width: 30em; }
.kap ul.facts li { padding-left: 26px; position: relative; font-size: 16.5px; }
.kap ul.facts li::before { content: ''; position: absolute; left: 0; top: .78em; width: 14px; height: 2px; background: var(--ink); }

.phone-col { position: sticky; top: 84px; align-self: start; height: calc(100vh - 100px); display: flex; align-items: center; gap: 28px; padding-block: 8px; }
.phone-nav { list-style: none; padding: 0; display: grid; gap: 2px; }
.phone-nav button { background: none; border: 0; cursor: pointer; text-align: left; padding: 10px 0 10px 18px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--faint); position: relative; transition: color .2s; }
.phone-nav button::before { content: ''; position: absolute; left: 0; top: 50%; width: 8px; height: 2px; background: currentColor; transform: translateY(-50%) scaleX(.5); transform-origin: left; transition: transform .25s; }
.phone-nav button:hover { color: var(--ink); }
.phone-nav button[aria-current="true"] { color: var(--ink); }
.phone-nav button[aria-current="true"]::before { transform: translateY(-50%) scaleX(1.5); }

/* Geraeterahmen: echte 414 x 868, verkleinert ueber --mass,
   die Buehne haelt den Platz frei, den transform nicht zurueckgibt. */
.handy-buehne { --mass: .74; flex: none; width: calc(414px * var(--mass)); height: calc(868px * var(--mass)); }
.handy-rahmen { position: relative; width: 414px; height: 868px; transform: scale(var(--mass)); transform-origin: top left; border-radius: 56px; padding: 12px;
  background: linear-gradient(160deg, #3a3d44 0%, #15161a 38%, #0c0d10 100%);
  box-shadow: 0 2px 0 rgba(255,255,255,.14) inset, 0 0 0 1px rgba(0,0,0,.35), 0 40px 90px -30px rgba(0,0,0,.45), 0 10px 30px -10px rgba(0,0,0,.25); }
.handy-schirm { position: relative; width: 390px; height: 844px; border-radius: 45px; overflow: hidden; background: #000; }
.handy-schirm iframe { width: 390px; height: 844px; border: 0; display: block; }
.handy-insel { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 118px; height: 33px; border-radius: 20px; background: #000; z-index: 2; pointer-events: none; }
.handy-insel::after { content: ''; position: absolute; right: 11px; top: 50%; transform: translateY(-50%); width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3a4a 0%, #0a0f14 70%); }
.handy-taste { position: absolute; width: 3px; border-radius: 3px; background: linear-gradient(90deg, #2a2d33, #4a4e57); }
.handy-taste.stumm { left: -3px; top: 132px; height: 30px; }
.handy-taste.lauter { left: -3px; top: 186px; height: 58px; }
.handy-taste.leiser { left: -3px; top: 258px; height: 58px; }
.handy-taste.ein { right: -3px; top: 210px; height: 92px; }
@media (max-height: 860px) { .handy-buehne { --mass: .66; } }
@media (max-height: 760px) { .handy-buehne { --mass: .58; } }
@media (max-height: 660px) { .handy-buehne { --mass: .5; } }

/* ---------- Unterschrift ----------
   Rechts der Stundenzettel als PDF, davor das quer gehaltene Handy mit der Unterschrifts-
   flaeche der App (signature-pad.css / zeichneBlatt in signature-pad.js): weisses Blatt,
   Linie bei 74 % Hoehe von 8 bis 92 % Breite, Knoepfe oben rechts. */
.sign { padding-block: clamp(80px, 11vw, 150px); border-top: 1px solid var(--line); }
.sign .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.sign h2, .big-h { font-size: clamp(38px, 4.8vw, 68px); line-height: 1; letter-spacing: -0.045em; }
.sign p.t { font-size: 19px; color: var(--grey); margin-top: 22px; max-width: 28em; }
.sign-steps { list-style: none; padding: 0; margin-top: 32px; display: grid; gap: 14px; counter-reset: sch; }
.sign-steps li { counter-increment: sch; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; font-size: 16.5px; }
.sign-steps li::before { content: counter(sch); width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--faint); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--grey); transition: background-color .25s, border-color .25s; }
.sign-steps li.ok::before { content: ''; border-color: var(--ink); background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e1f22' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }

.sign-stage { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; }
.doc { position: relative; z-index: 2; margin-top: -30px; width: min(100%, 470px); background: #fbfbf9; color: #1c1c1e; border-radius: 14px; padding: 26px 26px 22px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.75), 0 8px 20px -10px rgba(0,0,0,.5); font-size: 13px; line-height: 1.45; }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.doc-firm { display: flex; gap: 10px; align-items: center; }
.doc-firm i { width: 34px; height: 34px; border-radius: 9px; background: #1c1c1e; color: #fbfbf9; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 12.5px; letter-spacing: -0.02em; flex-shrink: 0; }
.doc-firm b { display: block; font-size: 14px; }
.doc-firm span, .doc-nr span { color: #6b6b70; font-size: 11.5px; }
.doc-nr { text-align: right; }
.doc-nr b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.doc-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0 6px; padding: 12px 14px; background: #f0f0ed; border-radius: 10px; }
.doc-meta span { display: block; color: #6b6b70; font-size: 11px; }
.doc-meta b { font-size: 12.5px; font-weight: 600; }
.doc-scroll { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; min-width: 340px; }
.doc th { text-align: left; color: #6b6b70; font-size: 11px; font-weight: 600; padding: 10px 6px 8px 0; border-bottom: 1px solid #e3e3df; }
.doc td { padding: 9px 6px 9px 0; border-bottom: 1px solid #ededea; }
.doc td.h, .doc th.h { text-align: right; padding-right: 0; white-space: nowrap; }
.doc td.h { font-weight: 600; }
.doc tr.sum td { border-bottom: 0; font-weight: 800; font-size: 14px; padding-top: 12px; }
.doc-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.doc-sig .feld { height: 58px; border-bottom: 1.5px solid #1c1c1e; position: relative; display: flex; align-items: flex-end; justify-content: center; }
.doc-sig .feld svg { width: 100%; height: 52px; fill: none; stroke: #1c1c1e; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.doc-sig .feld img { max-width: 100%; max-height: 54px; display: block; }
.doc-sig .feld .offen { position: absolute; inset: 6px 0 8px; border: 1.5px dashed #cfcfca; border-radius: 8px; display: grid; place-items: center; color: #8a8a85; font-size: 11.5px; }
.doc-sig .lab { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; color: #6b6b70; margin-top: 5px; }
.doc-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #ededea; font-size: 10.5px; color: #8a8a85; }
.doc-foot b { color: #1c1c1e; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .doc-sig .feld img.neu { animation: tinte .5s cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes tinte { from { opacity: 0; transform: translateY(6px) scale(.96); } }

/* Quer gehaltenes Handy: derselbe Rahmen wie oben, gedreht. */
.quer-buehne { --q: .6; position: relative; z-index: 1; order: -1; align-self: flex-start; margin-top: 0; width: calc(868px * var(--q)); height: calc(414px * var(--q)); }
.quer-rahmen { position: relative; width: 868px; height: 414px; transform: scale(var(--q)); transform-origin: top left; border-radius: 56px; padding: 12px;
  background: linear-gradient(110deg, #3a3d44 0%, #15161a 38%, #0c0d10 100%);
  box-shadow: 0 2px 0 rgba(255,255,255,.14) inset, 0 0 0 1px rgba(0,0,0,.35), 0 50px 90px -30px rgba(0,0,0,.8), 0 10px 30px -10px rgba(0,0,0,.4); }
.quer-schirm { position: relative; width: 844px; height: 390px; border-radius: 45px; overflow: hidden; background: #fff; }
.quer-insel { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 33px; height: 118px; border-radius: 20px; background: #000; z-index: 3; pointer-events: none; }
.quer-taste { position: absolute; height: 3px; border-radius: 3px; background: linear-gradient(180deg, #2a2d33, #4a4e57); }
.quer-taste.a { top: -3px; left: 132px; width: 30px; } .quer-taste.b { top: -3px; left: 186px; width: 58px; } .quer-taste.c { top: -3px; left: 258px; width: 58px; } .quer-taste.d { bottom: -3px; left: 210px; width: 92px; }
.quer-schirm canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.sigfs-leiste { position: absolute; top: 20px; right: 26px; display: flex; gap: 10px; z-index: 2; }
.sigfs-btn { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 17px; font-weight: 600; padding: 12px 20px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; }
.sigfs-btn:active { transform: translateY(1px); }
.sigfs-btn-grau { background: #fff; border-color: #d4d4d8; color: #52525b; }
.sigfs-btn-primaer { background: #2f6fd0; color: #fff; }
.sigfs-btn-primaer[disabled] { opacity: .45; cursor: default; }
.sign-note { align-self: flex-end; width: min(100%, 470px); margin-top: 16px; font-size: 14px; color: var(--grey); min-height: 1.5em; }

/* ---------- Weitere Funktionen: Liste statt Kacheln ---------- */
.more { padding-block: clamp(80px, 11vw, 150px); border-top: 1px solid var(--line); }
.more .intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.more .intro p { color: var(--grey); font-size: 19px; max-width: 28em; }
.flist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.flist div { padding-block: 24px 26px; border-top: 1px solid var(--line); }
.flist dd { margin-top: 6px; max-width: 30em; }
.flist dt { font-weight: 700; font-size: 19px; letter-spacing: -0.015em; }
.flist dd { color: var(--grey); font-size: 16px; }
.flist .m { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--grey); margin-left: 6px; letter-spacing: 0; }

/* ---------- Rechnung ---------- */
.calc { padding-block: clamp(80px, 11vw, 150px); background: var(--tint); }
.calc .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.calc .vs { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; font-weight: 800; letter-spacing: -0.05em; line-height: .9; }
.calc .vs .a { font-size: clamp(88px, 13vw, 200px); }
.calc .vs .b { font-size: clamp(36px, 4.5vw, 64px); color: var(--grey); }
.calc .cap { font-size: 16px; opacity: .72; margin-top: 18px; max-width: 30em; }
.calc ol { list-style: none; padding: 0; }
.calc ol li { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid #3a3b40; font-size: 17px; }
.calc ol li span:first-child { opacity: .72; }
.calc ol li span:last-child { white-space: nowrap; }
.calc ol li.s { border-bottom: 0; font-weight: 800; font-size: 20px; }
.calc ol li.s span:first-child { opacity: 1; }
.calc .fz { margin-top: 22px; font-size: 17px; }
.calc .fn { margin-top: 12px; font-size: 14px; opacity: .72; }

/* ---------- Preise: zusammenstellen statt vergleichen ----------
   Links drei Fragen (Betriebsgroesse, Rechner, Fotos), rechts die Monatsrechnung, die
   mitlaeuft. Die volle Vergleichstabelle steht aufklappbar darunter, fuer wer es genau wissen
   will. Keine Kacheln: Auswahl als grosse Textzeilen, Rechnung als Beleg mit Summenstrich. */
.price { padding-block: clamp(80px, 11vw, 150px); border-top: 1px solid var(--line); }
.price .intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 64px; }
.price .intro p { color: var(--grey); font-size: 19px; max-width: 28em; }

.konfig { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.frage { border: 0; padding: 0; margin: 0 0 48px; min-width: 0; }
.frage:last-child { margin-bottom: 0; }
.frage legend { padding: 0; display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 16px; }
.frage legend .nr { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }

/* Betriebsgroesse: drei grosse Zeilen, die gewaehlte ist hell, die anderen treten zurueck. */
.groesse { display: grid; border-top: 1px solid var(--line); }
.groesse label { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.groesse input { position: absolute; opacity: 0; pointer-events: none; }
.groesse .knopf { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--faint); position: relative; transition: border-color .2s; }
.groesse .knopf::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .22s cubic-bezier(.16, 1, .3, 1); }
.groesse .was { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.03em; color: var(--faint); transition: color .2s; line-height: 1.15; }
.groesse .was small { display: block; font-size: 14.5px; font-weight: 500; letter-spacing: 0; color: var(--faint); margin-top: 2px; }
.groesse .preis { font-size: 17px; font-weight: 700; color: var(--faint); white-space: nowrap; transition: color .2s; }
.groesse label:hover .was, .groesse label:hover .preis { color: var(--grey); }
.groesse input:checked + .knopf { border-color: var(--ink); }
.groesse input:checked + .knopf::after { transform: scale(1); }
.groesse input:checked ~ .was, .groesse input:checked ~ .preis { color: var(--ink); }
.groesse input:checked ~ .was small { color: var(--grey); }
.groesse input:focus-visible + .knopf { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Module: Zeile mit Schalter, Foto mit Stufenwahl */
.modul { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.modul:last-child { border-bottom: 1px solid var(--line); }
.modul b { font-size: 19px; letter-spacing: -0.015em; }
.modul b .aufpreis { color: var(--grey); font-weight: 600; }
.frage legend .optional { font-weight: 500; color: var(--grey); font-size: 15px; }
.tool-hinweis { margin-top: 14px; font-size: 15px; color: var(--grey); }
.tool-hinweis .under { padding-block: 6px; color: var(--ink); }
.frage[hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.modul .sub { grid-column: 1; color: var(--grey); font-size: 15px; }
.schalter { grid-row: 1 / span 2; grid-column: 2; position: relative; width: 50px; height: 30px; border-radius: 999px; border: 1.5px solid var(--faint); background: transparent; cursor: pointer; transition: background-color .2s, border-color .2s; }
.schalter::after { content: ''; position: absolute; top: 4px; left: 4px; width: 19px; height: 19px; border-radius: 50%; background: var(--faint); transition: transform .22s cubic-bezier(.16, 1, .3, 1), background-color .2s; }
.schalter[aria-checked="true"] { background: var(--ink); border-color: var(--ink); }
.schalter[aria-checked="true"]::after { transform: translateX(20px); background: var(--bg); }
.stufen { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.stufen button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; font-size: 15px; font-weight: 600; color: var(--grey); cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.stufen button:hover { border-color: var(--faint); color: var(--ink); }
.stufen button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.stufen button span { font-weight: 500; opacity: .75; margin-left: 4px; }
.modul.aus { opacity: .45; }
.modul.aus .schalter, .modul.aus .stufen button { pointer-events: none; }

/* Monatsrechnung */
/* Kaufbereich: die eine Flaeche der Seite, die sich abhebt - hier wird entschieden. */
.beleg { position: sticky; top: 96px; background: #2a2b30; border: 1px solid #3a3b41; border-radius: 22px; padding: 28px 28px 24px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
.beleg-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14.5px; color: var(--grey); padding-bottom: 14px; border-bottom: 1px solid #3a3b41; }
.beleg-kopf .paket { color: var(--ink); font-weight: 700; font-size: 16px; text-align: right; }
.posten { list-style: none; padding: 0; margin: 6px 0 0; }
.posten li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 16px; color: var(--grey); }
.posten li span:last-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.posten li.neu { animation: posten-rein .35s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes posten-rein { from { opacity: 0; transform: translateY(-6px); } }
.beleg-summe { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 8px; padding-top: 14px; border-top: 1.5px solid var(--ink); }
.beleg-summe .lab { font-size: 16px; font-weight: 700; padding-bottom: 10px; }
.beleg .summe { display: flex; align-items: baseline; gap: 8px; font-weight: 800; letter-spacing: -0.055em; line-height: .9; }
.beleg .summe .z { font-size: clamp(60px, 6.4vw, 92px); }
.beleg .summe .e { font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.02em; }
.beleg .summe.anfrage .z { font-size: clamp(44px, 4.6vw, 64px); }
.beleg .zusatz { font-size: 14px; color: var(--grey); margin-top: 6px; text-align: right; }
.kauf { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 64px; margin-top: 24px; border-radius: 16px; background: var(--ink); color: var(--bg); font-size: 18px; font-weight: 800; letter-spacing: -0.01em; text-decoration: none; transition: background-color .2s, transform .12s; }
.kauf:hover { background: #ffffff; }
.kauf:active { transform: translateY(1px); }
.zusagen { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.zusagen li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.zusagen li::before { content: ''; width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; background: #3a3b41 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ececea' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.kauf-unter { text-align: center; font-size: 14.5px; color: var(--grey); margin-top: 10px; }

/* Handy: Leiste am unteren Rand, solange man im Preisabschnitt ist und den Kaufknopf
   nicht sieht - Summe und Weiter-Knopf bleiben so immer im Blick. */
.kaufleiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); background: #2a2b30; border-top: 1px solid #3a3b41;
  transform: translateY(110%); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.kaufleiste.zeigen { transform: none; }
.kaufleiste .wer { font-size: 13px; color: var(--grey); display: block; }
.kaufleiste b { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.kaufleiste b small { font-size: 13px; font-weight: 500; color: var(--grey); letter-spacing: 0; }
.kaufleiste a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 800; text-decoration: none; white-space: nowrap; }
@media (max-width: 960px) { .kaufleiste { display: flex; } }

/* Immer dabei */
.dabei { margin-top: 96px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 24px 64px; }
.dabei h3 { font-size: 24px; letter-spacing: -0.03em; }
.dabei ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; }
.dabei li { padding-left: 26px; position: relative; font-size: 16.5px; }
.dabei li::before { content: ''; position: absolute; left: 0; top: .78em; width: 14px; height: 2px; background: var(--ink); }

/* Vergleich zum Aufklappen */
.vergleich { margin-top: 64px; border-top: 1px solid var(--line); }
.vergleich summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }
.vergleich summary::-webkit-details-marker { display: none; }
.vergleich summary span.plus { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); position: relative; flex-shrink: 0; transition: transform .25s cubic-bezier(.16, 1, .3, 1), border-color .2s; }
.vergleich summary span.plus::before, .vergleich summary span.plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.vergleich summary span.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.vergleich summary:hover span.plus { border-color: var(--faint); }
.vergleich[open] summary span.plus { transform: rotate(45deg); }
.ptab-scroll { overflow-x: auto; padding-bottom: 8px; }
.ptab { width: 100%; border-collapse: collapse; min-width: 600px; }
.ptab th, .ptab td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15.5px; }
.ptab thead th { border-bottom: 1.5px solid var(--ink); font-size: 16.5px; font-weight: 700; }
.ptab thead th small { display: block; font-size: 13px; font-weight: 500; color: var(--grey); }
.ptab tbody th { font-weight: 500; color: var(--grey); width: 24%; }
.ptab .yes::before { content: ''; display: inline-block; width: 12px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg) translateY(-3px); margin-right: 4px; }
.ptab .no { color: var(--faint); }
.note { margin-top: 28px; font-size: 14px; color: var(--grey); }
@media (prefers-reduced-motion: reduce) { .posten li.neu { animation: none; } }

/* ---------- Nur Tools-Seite ---------- */
.tools-hero { padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px); }
.tools-hero h1 { font-size: clamp(50px, 8vw, 120px); line-height: .93; letter-spacing: -0.05em; max-width: 11em; }
.tools-hero .lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--grey); max-width: 34em; margin-top: 28px; }
.tools-hero .acts { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; margin-top: 36px; }
.tools-hero .small { font-size: 14.5px; color: var(--grey); margin-top: 18px; }
button.go-big, button.kauf { border: 0; cursor: pointer; font-family: inherit; }

/* Die drei Werkzeuge: je eine Zeile mit Name, Beschreibung und einem Beispielergebnis. */
.werkzeug-liste { border-top: 1px solid var(--line); }
.werkzeug { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, .8fr); gap: 24px clamp(24px, 4vw, 64px); padding-block: 40px; border-bottom: 1px solid var(--line); align-items: start; }
.werkzeug h3 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.05; letter-spacing: -0.035em; }
.werkzeug .norm { font-size: 14px; font-weight: 600; color: var(--grey); margin-top: 10px; }
.werkzeug p { color: var(--grey); font-size: 17px; max-width: 32em; }
.werkzeug ul { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 8px; }
.werkzeug li { padding-left: 26px; position: relative; font-size: 16px; }
.werkzeug li::before { content: ''; position: absolute; left: 0; top: .78em; width: 14px; height: 2px; background: var(--ink); }
.beispiel { background: var(--tint); border-radius: 16px; padding: 18px 20px; }
.beispiel span { display: block; font-size: 13.5px; color: var(--grey); }
.beispiel b { display: block; font-size: clamp(30px, 3vw, 40px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-top: 4px; }
.beispiel small { display: block; font-size: 13px; color: var(--faint); margin-top: 6px; }

/* Werkzeug mit Handy und Blatt daneben - nur zum Ansehen (aria-hidden, nichts bedienbar). */
.werkzeug.gross { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); padding-block: 56px; }
.werkzeug .text { color: var(--grey); font-size: 17px; margin-top: 18px; max-width: 32em; }
.werkzeug-bild { display: flex; align-items: flex-end; min-width: 0; pointer-events: none; user-select: none; }
.werkzeug-bild .handy-buehne { --mass: .56; position: relative; z-index: 1; flex: none; }
.werkzeug-bild .el-paper { flex: 1 1 auto; max-width: 440px; margin: 0 0 36px -44px; position: relative; z-index: 0; }
.werkzeug-bild iframe { pointer-events: none; }

/* Blaetter: bilden die echte Ausgabe nach (VDE-Formular, Druck der Verteilungsbeschriftung)
   und tragen deshalb eigene Farben statt der Seiten-Token. */
.el-paper {
  background: #ffffff; border-radius: 4px; width: 100%; min-width: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 10px 30px rgba(0,0,0,0.13);
  overflow: hidden; color: #161616;
}

/* VDE-Formular: Arial und Rahmengitter wie im Original, aber auf lesbare Groesse gebracht. */
.el-vde { font-family: Arial, Helvetica, sans-serif; padding: 15px 16px 13px; }
.el-vde-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  border-bottom: 2px solid #111; padding-bottom: 7px; margin-bottom: 7px;
}
.el-vde-head h4 { font-size: 13px; font-weight: 800; margin: 0 0 2px; letter-spacing: 0; color: #111; }
.el-vde-head h5 { font-size: 12px; font-weight: 700; margin: 0; letter-spacing: 0; color: #111; }
.el-vde-head .firm { font-size: 9.5px; color: #555; text-align: right; line-height: 1.45; flex-shrink: 0; }
.el-vde table { width: 100%; border-collapse: collapse; table-layout: fixed; margin-bottom: 5px; }
.el-vde table td { border: 1px solid #111; padding: 4px 6px; vertical-align: top; }
.el-vde .lbl { font-size: 8px; color: #444; display: block; margin-bottom: 2px; }
.el-vde .val { font-size: 10.5px; font-weight: 600; color: #111; }
.el-vde .sec { font-weight: 800; font-size: 9.5px; margin: 8px 0 4px; color: #111; }
.el-vde .cb { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; margin-right: 11px; color: #111; }
.el-vde .cb .box {
  display: inline-block; width: 10px; height: 10px; border: 1px solid #111;
  text-align: center; line-height: 9px; font-size: 9px; font-weight: 800; flex-shrink: 0; color: #111;
}
.el-vde .cb.on .box::after { content: "\2713"; }

/* Die Messwerttabelle ist das Herz des Formulars - sie darf scrollen, statt zu schrumpfen. */
.el-vde-scroll, .el-sz-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.el-vde-meas { margin-bottom: 0 !important; min-width: 620px; }
.el-vde-meas th, .el-vde-meas td {
  border: 1px solid #111; padding: 2px 2px; font-size: 7px; line-height: 1.25;
  text-align: center; color: #111; overflow: hidden; word-break: normal; overflow-wrap: anywhere;
}
.el-vde-meas th { font-weight: 700; background: #eee; }
.el-vde-meas td.ziel { text-align: left; }
.el-vde-foot { font-size: 8px; color: #666; text-align: right; margin-top: 6px; }

/* Verteilungsbeschriftung: Blattkopf in der Firmenfarbe, wie im Druck-Layout der App. */
.el-sz { --sz-farbe: #c0392b; }
.el-sz-top {
  background: #fff; padding: 15px 17px 12px; display: flex; justify-content: space-between;
  align-items: flex-end; gap: 12px; border-bottom: 3px solid var(--sz-farbe);
}
.el-sz-top .brand { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; color: #1a1a1a; }
.el-sz-top .doctype {
  font-size: 10.5px; font-weight: 700; color: var(--sz-farbe);
  text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px;
}
.el-sz-top .datum { font-size: 11px; color: #6b6b6b; flex-shrink: 0; }
.el-sz-body { padding: 15px 17px 8px; }
.el-sz-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 13px; }
.el-sz-meta .box { border: 1px solid #e3e3e3; border-radius: 4px; padding: 8px 10px; min-width: 0; }
.el-sz-meta .l { font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em; color: #6b6b6b; margin-bottom: 3px; }
.el-sz-meta .v { font-size: 12.5px; font-weight: 600; color: #1a1a1a; }
.el-sz table { width: 100%; border-collapse: collapse; font-size: 11.5px; table-layout: fixed; min-width: 430px; }
.el-sz th {
  background: #f4f4f4; color: #1a1a1a; text-align: left; padding: 7px 8px; font-weight: 700;
  font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 2px solid var(--sz-farbe);
}
.el-sz td { padding: 6px 8px; border-bottom: 1px solid #ececec; color: #1a1a1a; vertical-align: middle; overflow-wrap: anywhere; }
.el-sz tr:nth-child(even) td { background: #fafafa; }
.el-sz tr.fi td { font-weight: 700; }
.el-sz td.ein { padding-left: 22px; }
.el-sz-bar { height: 7px; background: linear-gradient(90deg, var(--sz-farbe), #e57373); }
.el-sz-brand { padding: 8px 17px; text-align: center; font-size: 10px; color: #9a9a9a; }

/* Warum einmalig: helleres Band wie die Rechnung auf der Landing Page. */
.warum { padding-block: clamp(80px, 11vw, 150px); background: var(--tint); }
.warum .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.warum .t { color: var(--grey); font-size: 19px; margin-top: 22px; max-width: 30em; }
.warum .t a { color: var(--ink); }
.warum dl { display: grid; gap: 32px; align-content: start; }
.warum dt { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.warum dt span { display: block; font-size: 14px; font-weight: 600; color: var(--grey); letter-spacing: 0; margin-bottom: 4px; }
.warum dd { color: var(--grey); margin-top: 6px; max-width: 32em; }

@media (max-width: 960px) {
  .werkzeug, .werkzeug.gross { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .werkzeug-bild { flex-direction: column; align-items: center; margin-top: 16px; }
  .werkzeug-bild .el-paper { margin: -64px 0 0; width: 100%; }
  .warum .wrap { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Fragen ---------- */
.faq { padding-block: clamp(80px, 11vw, 150px); border-top: 1px solid var(--line); }
.faq dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 64px; margin-top: 56px; }
.faq dt { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.faq dd { color: var(--grey); margin-top: 8px; max-width: 32em; }

/* ---------- Schluss ---------- */
.end { padding-block: clamp(90px, 13vw, 180px); border-top: 1px solid var(--line); }
.end h2 { font-size: clamp(56px, 10vw, 160px); line-height: .9; letter-spacing: -0.055em; }
.end .acts { display: flex; gap: 14px 28px; align-items: center; flex-wrap: wrap; margin-top: 40px; }
footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 24px; font-size: 14.5px; color: var(--grey); }
footer nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
footer nav a { text-decoration: none; padding: 10px 8px; }
footer nav a:hover { color: var(--ink); }

/* ---------- Cursor: Punkt mit nachlaufendem Ring (nur Maus, nicht Touch) ---------- */
/* Ganz oben, ueber allem: Cookie-Hinweis (1000) und Anfrageformular (999) liegen sonst davor,
   und der Zeiger verschwindet genau dort, wo man klicken soll. pointer-events: none laesst
   die Klicks trotzdem durch. */
.cur-dot, .cur-ring { position: fixed; top: 0; left: 0; z-index: 2147483647; pointer-events: none; border-radius: 50%; opacity: 0; will-change: transform; }
.cur-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--ink); transition: opacity .2s, background-color .2s; }
.cur-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid rgba(236, 236, 234, .5);
  transition: opacity .2s, width .25s cubic-bezier(.16, 1, .3, 1), height .25s cubic-bezier(.16, 1, .3, 1), margin .25s cubic-bezier(.16, 1, .3, 1), background-color .25s, border-color .25s; }
html.cur-sichtbar .cur-dot, html.cur-sichtbar .cur-ring { opacity: 1; }
html.cur-link .cur-ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; background-color: rgba(236, 236, 234, .08); border-color: rgba(236, 236, 234, .9); }
html.cur-link .cur-dot { opacity: 0; }
html.cur-stift .cur-ring { width: 18px; height: 18px; margin: -9px 0 0 -9px; border-color: rgba(47, 111, 208, .85); }
html.cur-stift .cur-dot { background: #1c1c1e; }
html.cur-druck .cur-ring { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
@media (hover: hover) and (pointer: fine) {
  html.cur-aktiv, html.cur-aktiv * { cursor: none !important; }
}
/* Die Vorschau ist ohnehin nicht bedienbar - so bleibt der Cursor auch ueber dem Handy sichtbar. */
.handy-schirm iframe { pointer-events: none; }

/* ---------- Bewegung: nur zwei Momente ---------- */
@media (prefers-reduced-motion: no-preference) {
  .kap.eins > * { animation: auf .6s cubic-bezier(.16, 1, .3, 1) both; }
  .kap.eins > :nth-child(2) { animation-delay: .07s; }
  .kap.eins > :nth-child(3) { animation-delay: .14s; }
  .kap.eins > :nth-child(4) { animation-delay: .21s; }
  .phone-col { animation: auf .8s cubic-bezier(.16, 1, .3, 1) .2s both; }
}
@keyframes auf { from { opacity: 0; transform: translateY(18px); } }

@media (max-width: 760px) {
  .top nav a:not(.go) { display: none; }
  .menue-knopf { display: inline-flex; }
}

/* ---------- Schmal: Handy nach oben, Kapitel als normaler Text ---------- */
@media (max-width: 960px) {
  .story { grid-template-columns: minmax(0, 1fr); }
  .phone-col { position: static; height: auto; flex-direction: column; order: 2; gap: 20px; animation: none; }
  .phone-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
  .phone-nav button { padding-left: 0; }
  .phone-nav button::before { display: none; }
  .phone-nav button[aria-current="true"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
  .story-text { display: contents; }
  .kap { min-height: 0; padding-block: 48px; }
  .kap.eins { order: 1; min-height: 0; padding-top: 40px; }
  .kap:not(.eins) { order: 3; border-top: 1px solid var(--line); }
  .handy-buehne { --mass: .8; }
  .sign-stage { align-items: stretch; }
  .doc { width: 100%; }
  .doc { margin-top: 16px; }
  .sign .wrap, .more .intro, .calc .wrap, .price .intro { grid-template-columns: minmax(0, 1fr); }
  .flist { grid-template-columns: minmax(0, 1fr); }
  .faq dl, .konfig, .dabei { grid-template-columns: minmax(0, 1fr); }
  .beleg { position: static; }
}
@media (max-width: 520px) {
  .handy-buehne { --mass: .7; }

  .dabei ul { grid-template-columns: minmax(0, 1fr); }
  .doc-sigs, .doc-meta { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) { .handy-buehne { --mass: .64; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Anfrageformular (js/interesse-form.js) ----------
   Genutzt fuer "Mehr als 10" auf der Landing Page und fuer die Anfragen auf der Tools-Seite. */
.if-overlay { position: fixed; inset: 0; z-index: 999; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.if-karte { width: 100%; max-width: 440px; background: #2a2b30; border: 1px solid #3a3b41; border-radius: 20px; padding: 26px 24px; color: var(--ink); }
.if-titel { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.if-text { font-size: 15px; color: var(--grey); margin: 0 0 18px; line-height: 1.5; }
.if-form { display: flex; flex-direction: column; gap: 12px; }
.if-feld { display: flex; flex-direction: column; gap: 5px; }
.if-feld label { font-size: 13px; color: var(--grey); }
.if-feld input, .if-feld textarea { width: 100%; background: var(--bg); border: 1px solid #3a3b41; color: var(--ink); border-radius: 10px; padding: 11px 12px;
  /* 16px verhindert das automatische Hineinzoomen auf iOS. */
  font-size: 16px; font-family: inherit; resize: vertical; }
.if-feld input:focus, .if-feld textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.if-fehler { color: #f87171; font-size: 14px; min-height: 18px; }
.if-knoepfe { display: flex; gap: 10px; margin-top: 2px; }
.if-btn { flex: 1; font: inherit; font-weight: 700; font-size: 15px; padding: 12px 16px; border-radius: 12px; border: 1px solid #3a3b41; background: transparent; color: var(--ink); cursor: pointer; }
.if-btn-primaer { background: var(--ink); color: var(--bg); border-color: transparent; flex: 2; }
.if-btn:disabled { opacity: .6; cursor: not-allowed; }
.if-captcha { display: flex; align-items: center; gap: 10px; }
.if-captcha img { border-radius: 8px; border: 1px solid #3a3b41; background: #f3f1ec; flex-shrink: 0; }
.if-captcha-neu { flex: 0 0 auto; padding: 8px 12px; font-size: 16px; line-height: 1; }
.if-lockfeld { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
