/* =========================================================
   GmbH Sofortverkauf – Basis (alle Varianten)
   Schrift: Satoshi (Fontshare, lokal gehostet)
   ========================================================= */
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --font: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ink: #151515;
  --muted: #5c5f66;
  --bg: #ffffff;
  --fog: #eeeff0;
  --paper: #f9f9f9;
  --line: rgba(21, 21, 21, .14);
  --accent: #116bf3;
  --accent-ink: #0b58cc;
  --ok: #1d8a5a;
  --no: #c8373c;
  --r-btn: 0px;
  --r-card: 32px;
  --r-field: 0px;
  --shadow-soft: 0 2px 30px rgba(161, 161, 161, .12);
  --shadow-panel: 0 5px 25px rgba(0, 0, 0, .25);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1320px;
  --gutter: 24px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: clip;
  font-family: var(--font); font-weight: 400; font-size: 17px; line-height: 1.55; letter-spacing: -.01em;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.08; letter-spacing: -.03em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.accent { color: var(--accent); }
.logo-d { display: none; }
.muted { color: var(--muted); }

/* Pfeil-Icon (↗) für Buttons und Links */
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }

/* ---------- Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Bild-Reveal: Maske öffnet sich von unten */
.img-reveal { overflow: hidden; }
.img-reveal img { transform: scale(1.06); transition: transform 1.4s var(--ease); }
.img-reveal.is-in img { transform: none; }

/* ---------- Sticky-CTA (mobil) */
.sticky-cta { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: none; gap: 8px; transform: translateY(160%); transition: transform .45s var(--ease); }
.sticky-cta.is-on { transform: none; }

/* =========================================================
   GmbH-Check (Dialog)
   ========================================================= */
.check { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.check[hidden] { display: none; }
.check__backdrop { position: absolute; inset: 0; background: rgba(21, 21, 21, .45); animation: fadeIn .3s var(--ease); }
.check__panel { position: relative; width: 100%; max-width: 560px; max-height: calc(100dvh - 32px); overflow: auto; background: #fff; border-radius: var(--r-panel, 24px); box-shadow: var(--shadow-panel); animation: panelIn .45s var(--ease); }
.check.is-closing .check__panel { animation: panelOut .25s var(--ease) forwards; }
.check.is-closing .check__backdrop { animation: fadeOut .25s forwards; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(20px); } }
@keyframes panelOut { to { opacity: 0; transform: translateY(12px); } }

.check__top { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 16px 20px 0; }
.check__title { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; font-size: 14px; letter-spacing: 0; color: var(--muted); }
.check__title img { width: 20px; height: 20px; }
.check__back, .check__close { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.check__back:hover, .check__close:hover { background: var(--fog); }
.check__back svg, .check__close svg { width: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.check__back[hidden] { visibility: hidden; display: grid; }
.check__progress { height: 2px; background: var(--fog); margin: 14px 28px 0; overflow: hidden; }
.check__progress span { display: block; height: 100%; background: var(--accent); transition: width .6s var(--ease); }
.check__body { padding: 28px 28px 32px; }

.screen { animation: screenIn .4s var(--ease); }
.screen.is-out { animation: screenOut .18s var(--ease) forwards; }
@keyframes screenIn { from { opacity: 0; transform: translateX(16px); } }
@keyframes screenOut { to { opacity: 0; transform: translateX(-10px); } }
.screen__count { font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: 0; }
.screen__q { font-size: clamp(22px, 3vw, 26px); font-weight: 500; letter-spacing: -.025em; line-height: 1.2; margin-top: 8px; }
.screen__sub { color: var(--muted); margin-top: 8px; font-size: 15.5px; }
.screen__opts { display: grid; gap: 8px; margin-top: 22px; }

.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 15px 16px; font-weight: 400; font-size: 16px; letter-spacing: -.01em;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-field);
  transition: border-color .2s, background .2s;
}
.opt:hover { border-color: var(--ink); }
.opt.is-picked { border-color: var(--accent); background: rgba(17, 107, 243, .06); }
.opt__key { flex: none; width: 24px; height: 24px; display: grid; place-items: center; font-size: 12px; font-weight: 500; color: var(--muted); border: 1px solid var(--line); border-radius: calc(var(--r-field) / 2); }
.opt.is-picked .opt__key { background: var(--accent); border-color: var(--accent); color: #fff; }

.why { margin-top: 18px; font-size: 14.5px; border-top: 1px solid var(--line); }
.why summary { cursor: pointer; list-style: none; padding: 14px 0 0; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.why summary::-webkit-details-marker { display: none; }
.why summary::after { content: "+"; margin-left: auto; font-weight: 400; font-size: 18px; line-height: 1; }
.why[open] summary::after { content: "–"; }
.why p { padding-top: 8px; color: var(--muted); }

.field { display: grid; gap: 6px; margin-top: 14px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-field); transition: border-color .2s; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151515' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.field input:focus, .field select:focus { outline: 0; border-color: var(--accent); }
.field.is-bad input { border-color: var(--no); }
.field__err { font-size: 13px; color: var(--no); display: none; }
.field.is-bad .field__err { display: block; }
.tel-wrap { display: flex; gap: 8px; }
.tel-wrap span { flex: none; display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-field); font-size: 15px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: 13px; color: var(--muted); margin-top: 14px; }
.consent a { text-decoration: underline; }

.screen .btn { width: 100%; margin-top: 20px; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 1.5px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.analyze { text-align: center; padding: 8px 0; }
.analyze__ring { width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%; border: 2px solid var(--fog); border-top-color: var(--accent); animation: spin .9s linear infinite; }
.analyze ul { margin: 22px auto 0; display: grid; gap: 10px; max-width: 280px; text-align: left; }
.analyze li { display: flex; align-items: center; gap: 10px; color: var(--muted); opacity: .4; transition: opacity .4s, color .4s; }
.analyze li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; border: 1px solid var(--line); transition: background .3s, border-color .3s; }
.analyze li.is-done { opacity: 1; color: var(--ink); }
.analyze li.is-done::before { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/11px no-repeat; }

.done { text-align: center; }
.done__ico { width: 56px; height: 56px; margin: 4px auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); animation: popIn .5s var(--ease); }
.done__ico svg { width: 26px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .25s forwards; }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done .screen__sub { max-width: 40ch; margin-inline: auto; }
.done__next { display: grid; margin-top: 24px; text-align: left; border-top: 1px solid var(--line); }
.done__next div { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.done__next b { flex: none; font-weight: 500; color: var(--accent); font-size: 13px; width: 20px; }
.notice { margin-top: 18px; padding: 14px 16px; background: var(--paper); border-left: 2px solid var(--accent); font-size: 14.5px; text-align: left; }
.btn--wa { color: #fff; background: #0e7a3e; }

/* ---------- Rechtliche Seiten */
.legal { padding: 56px 0 100px; }
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: 22px; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal a { color: var(--accent-ink); text-decoration: underline; }
.legal .card { padding: 28px; background: var(--fog); border-radius: 24px; }

@media (max-width: 720px) {
  :root { --gutter: 16px; --nav-h: 64px; }
  body { font-size: 16px; }
  .sticky-cta { display: flex; }
  .check { padding: 0; place-items: end stretch; }
  .check__panel { max-width: none; max-height: 94dvh; border-radius: 20px 20px 0 0; }
  .check__body { padding: 22px 20px calc(26px + env(safe-area-inset-bottom)); }
  .check__progress { margin: 12px 20px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
