/* NicheRadar Web – Landingpage.
   Farben, Logo, Radien und Schrift stammen aus der NicheRadar-App (~/Documents/NicheRadar/static/style.css).
   Mobile first, keine externen Schriften. Animationen nur über transform/opacity (flüssig auf günstigen Handys). */

:root {
  /* Aus der App: helle Palette */
  --bg: #f6f6fa;
  --surface: #ffffff;
  --surface-2: #f0eff7;
  --ink: #17162b;
  --muted: #646380;
  --hairline: #e4e3ee;
  --accent: #5b4bd6;
  --accent-soft: #ecebfc;
  --accent-ink: #3f31b0;
  --good: #1f8a4c;
  --warn: #b26a00;
  --bad: #c2384b;
  --shadow: 0 1px 2px rgba(23, 22, 43, .05), 0 4px 16px rgba(23, 22, 43, .04);
  --shadow-lift: 0 2px 4px rgba(23, 22, 43, .06), 0 14px 34px rgba(23, 22, 43, .10);

  /* Aus der App: dunkle Palette, hier für Hero, Länder und Anmeldung */
  --night: #111019;
  --night-surface: #1a1925;
  --night-surface-2: #232232;
  --night-ink: #ecebf5;
  --night-muted: #9c9bb5;
  --night-hairline: #2d2c3e;
  --night-accent: #9b8cff;

  --wa: #25d366;
  --wa-hover: #1ebe5a;
  --radius-card: 14px;
  --radius-btn: 10px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* Dunkelmodus wie in der App */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111019; --surface: #1a1925; --surface-2: #232232; --ink: #ecebf5; --muted: #9c9bb5;
    --hairline: #2d2c3e; --accent: #9b8cff; --accent-soft: #29264a; --accent-ink: #c3baff;
    --good: #4cc27c; --warn: #e0a040; --bad: #f07384; --shadow: none;
    --shadow-lift: 0 14px 34px rgba(0, 0, 0, .45);
    --night: #0b0a12; --night-surface: #161520; --night-surface-2: #1f1e2c;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Garde-fou : la page ne défile jamais de gauche à droite sur mobile (clip ne casse pas position: sticky) */
html, body { overflow-x: clip; }
/* WebKit (Safari, iPhone) compte le texte d'une option trop longue dans la largeur de la page : on le coupe dans la case */
select { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.num { font-variant-numeric: tabular-nums; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 760px; }

/* ---------- Logo (identisch zur App) ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--night-ink); text-decoration: none; }
.logo svg { width: 28px; height: 28px; flex: none; }
.logo-mark rect { fill: var(--accent); }
.site-header .logo-mark rect, .site-footer .logo-mark rect { fill: #5b4bd6; }

/* ---------- Buttons (Form wie in der App: 10px Radius, 600) ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 600; font-size: 1rem; white-space: nowrap;
  padding: .8em 1.3em; border-radius: var(--radius-btn); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 1.25em; height: 1.25em; }
.btn-sm { padding: .5em 1em; font-size: .9rem; }
.btn-lg { padding: .95em 1.5em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: #5b4bd6; color: #fff; box-shadow: 0 8px 22px rgba(91, 75, 214, .35); }
.btn-primary:hover { background: #6a5be0; box-shadow: 0 12px 28px rgba(91, 75, 214, .45); }
/* Lichtreflex, der beim Überfahren über den Hauptknopf läuft */
.btn-primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
}
.btn-primary:hover::after { transform: translateX(120%) skewX(-20deg); transition: transform .7s var(--ease-out); }
.btn-whatsapp { background: var(--wa); color: #05331a; }
.btn-whatsapp:hover { background: var(--wa-hover); box-shadow: 0 10px 24px rgba(37, 211, 102, .3); }
.btn-outline { border-color: var(--hairline); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.btn[disabled] { opacity: .55; cursor: wait; transform: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Launch bar + Header ---------- */
.launch-bar {
  background: linear-gradient(90deg, #3f31b0, #5b4bd6, #3f31b0); background-size: 200% 100%;
  color: #fff; text-align: center; font-size: .88rem; padding: .5em 16px; line-height: 1.4;
  animation: bar-flow 8s linear infinite;
}
@keyframes bar-flow { to { background-position: -200% 0; } }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; margin-right: .5em; vertical-align: middle; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--night) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--night-hairline);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.nav-links { display: none; gap: 4px; }
.nav-links a { padding: 7px 12px; border-radius: 8px; color: var(--night-muted); text-decoration: none; font-weight: 500; font-size: .95rem; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--night-ink); background: var(--night-surface-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--night-ink); padding: 48px 0 72px;
  background:
    radial-gradient(900px 520px at 85% 0%, rgba(91, 75, 214, .38), transparent 62%),
    radial-gradient(600px 420px at -5% 105%, rgba(155, 140, 255, .16), transparent 60%),
    var(--night);
}
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #c3baff; background: rgba(155, 140, 255, .14); border: 1px solid rgba(155, 140, 255, .25);
  padding: .35em .85em; border-radius: 999px; margin-bottom: 1.2em;
}
.hero h1 { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 800; }
.hl { position: relative; color: var(--night-accent); white-space: nowrap; }
/* Unterstreichung, die sich nach dem Laden zeichnet */
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .12em; border-radius: 99px;
  background: linear-gradient(90deg, #5b4bd6, #9b8cff); transform-origin: left; transform: scaleX(0);
  animation: draw-line .9s .9s var(--ease-out) forwards;
}
@keyframes draw-line { to { transform: scaleX(1); } }
.lead { font-size: 1.1rem; color: var(--night-muted); max-width: 34em; }
.lead strong { color: var(--night-ink); }
.cta-row { display: flex; flex-direction: column; gap: 12px; margin: 28px 0 20px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .92rem; color: var(--night-muted); }
.trust li::before { content: "✓"; color: #4cc27c; font-weight: 800; margin-right: .4em; }

/* Einstieg: Hero-Elemente erscheinen nacheinander */
.hero-copy > * { animation: rise .8s var(--ease-out) both; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(2) { animation-delay: .15s; }
.hero-copy > :nth-child(3) { animation-delay: .28s; }
.hero-copy > :nth-child(4) { animation-delay: .40s; }
.hero-copy > :nth-child(5) { animation-delay: .52s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Radar hinter dem Beispielbericht: Signatur von NicheRadar */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.radar {
  position: absolute; width: min(560px, 125vw); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle, transparent 0 19.5%, rgba(155, 140, 255, .16) 19.5% 20%, transparent 20% 39.5%,
      rgba(155, 140, 255, .13) 39.5% 40%, transparent 40% 59.5%, rgba(155, 140, 255, .10) 59.5% 60%, transparent 60% 69.6%,
      rgba(155, 140, 255, .08) 69.6% 70%, transparent 70%);
  animation: fade-in 1.2s .2s both;
}
.radar::before, .radar::after { content: ""; position: absolute; background: rgba(155, 140, 255, .08); }
.radar::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.radar::after { top: 50%; left: 0; right: 0; height: 1px; }
.sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(155, 140, 255, 0) 0deg, rgba(155, 140, 255, 0) 290deg, rgba(155, 140, 255, .38) 360deg);
  -webkit-mask: radial-gradient(circle, #000 0 70%, transparent 70.5%); mask: radial-gradient(circle, #000 0 70%, transparent 70.5%);
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.blip {
  position: absolute; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: var(--night-accent);
  box-shadow: 0 0 0 0 rgba(155, 140, 255, .6); opacity: 0; animation: blip 6s linear infinite;
}
/* Verzögerung passend zum Winkel: der Punkt leuchtet, wenn der Strahl ihn überstreicht */
.blip.b1 { left: 76%; top: 26%; animation-delay: 0.6s; }
.blip.b2 { left: 84%; top: 62%; animation-delay: 2.1s; }
.blip.b3 { left: 30%; top: 80%; animation-delay: 3.6s; }
.blip.b4 { left: 18%; top: 38%; animation-delay: 4.8s; }
.blip.b5 { left: 58%; top: 12%; animation-delay: 5.7s; background: #4cc27c; }
@keyframes blip {
  0% { opacity: 0; transform: scale(.4); box-shadow: 0 0 0 0 rgba(155, 140, 255, .6); }
  3% { opacity: 1; transform: scale(1.15); }
  25% { opacity: .9; transform: scale(1); box-shadow: 0 0 0 14px rgba(155, 140, 255, 0); }
  60%, 100% { opacity: 0; transform: scale(.8); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Beispielbericht im Stil der App-Ergebniskarte */
.report-card {
  position: relative; margin: 0; width: 100%; max-width: 440px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--hairline);
  border-radius: 18px; padding: 22px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
  animation: card-in 1s .35s var(--ease-out) both, float 7s 1.4s ease-in-out infinite;
}
@keyframes card-in { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.report-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.badge-example { white-space: nowrap; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--accent-soft); color: var(--accent-ink); padding: .3em .7em; border-radius: 999px; }
.report-region { font-size: .8rem; color: var(--muted); text-align: right; }
.report-idea { font-weight: 700; font-size: 1.05rem; margin-bottom: 16px; }
.report-score { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
/* Ring exakt wie .ring in der App */
.ring {
  --value: 0; flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--value) * 1%), var(--surface-2) 0);
}
.ring > div { width: 74px; height: 74px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; }
.ring strong { font-size: 1.75rem; display: block; line-height: 1; }
.ring small { font-size: .62rem; color: var(--muted); }
.signals { list-style: none; padding: 0; margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
.signals li { opacity: 1; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .5em; }
.dot.up { background: var(--good); }
.dot.mid { background: var(--warn); }
.verdict {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--accent-soft); border-radius: 10px; padding: 11px 14px; margin-bottom: 16px;
}
.verdict span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.verdict strong { color: var(--accent-ink); }
.countries-rank p { font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.bar-row { display: grid; grid-template-columns: 132px 1fr 40px; gap: 10px; align-items: center; font-size: .82rem; margin-bottom: 6px; }
.bar-row b { font-size: .78rem; color: var(--muted); text-align: right; font-weight: 600; }
.idea-box { margin: 14px 0 0; flex-direction: column; align-items: flex-start; gap: 2px; }
.idea-box strong { font-size: .95rem; }
.hero-alt { margin: 18px 0 0; font-size: .92rem; color: var(--night-muted); }
.hero-alt a { color: var(--night-accent); font-weight: 600; text-decoration: none; }
.hero-alt a:hover { text-decoration: underline; }
.bar { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); background: var(--accent); border-radius: 4px; transition: width 1.2s var(--ease-out); }
.bar-row:nth-child(3) .bar i { transition-delay: .1s; }
.bar-row:nth-child(4) .bar i { transition-delay: .2s; }
.bar-row:nth-child(5) .bar i { transition-delay: .3s; }
.report-card figcaption { font-size: .74rem; color: var(--muted); margin-top: 12px; border-top: 1px dashed var(--hairline); padding-top: 10px; }

/* ---------- Abschnitte ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--surface-2); }
.section-dark { background: var(--night); color: var(--night-ink); }
.section-title { font-size: clamp(1.6rem, 5vw, 2.3rem); font-weight: 800; text-align: center; }
.section-lead { text-align: center; color: var(--muted); max-width: 36em; margin: 0 auto 36px; font-size: 1.05rem; }
.section-dark .section-lead { color: var(--night-muted); }

.cards-3, .cards-4 { display: grid; gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 22px; box-shadow: var(--shadow);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--accent) 35%, var(--hairline)); }
.card h3 { font-size: 1.08rem; }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft);
  font-size: 1.4rem; margin-bottom: 14px; transition: transform .3s var(--ease-out);
}
.card:hover .card-icon { transform: rotate(-6deg) scale(1.08); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; position: relative; }
.steps li {
  position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-card); padding: 22px; box-shadow: var(--shadow);
}
.steps p { color: var(--muted); margin: 0; }
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: #5b4bd6; color: #fff; font-weight: 700; margin-bottom: 14px; box-shadow: 0 6px 16px rgba(91, 75, 214, .35);
}

.features { display: grid; gap: 12px; }
.feature {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 12px;
  border: 1px solid var(--hairline); background: var(--surface); transition: border-color .25s, transform .25s var(--ease-out);
}
.feature:hover { border-color: var(--accent); transform: translateX(4px); }
.feature > span { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); font-size: 1.2rem; }
.feature h3 { font-size: 1rem; margin-bottom: .2em; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
.honest-note { margin: 28px auto 0; max-width: 46em; background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 16px 18px; border-radius: 0 10px 10px 0; font-size: .95rem; color: var(--ink); }

/* Zwei Nutzungsarten */
.usages { display: grid; gap: 16px; max-width: 980px; margin: 0 auto; }
.usage-card {
  position: relative; background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 26px 24px;
  box-shadow: var(--shadow); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.usage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.usage-card h3 { font-size: 1.2rem; }
.usage-card > p { color: var(--muted); }
.featured-usage { border: 2px solid var(--accent); box-shadow: 0 18px 44px rgba(91, 75, 214, .18); }
.usage-tag {
  position: absolute; top: -13px; left: 22px; background: #5b4bd6; color: #fff; font-size: .72rem; font-weight: 700;
  padding: .3em .8em; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em;
}
.usage-list { list-style: none; padding: 0; margin: 0; }
.usage-list li { padding: 7px 0 7px 1.6em; position: relative; border-top: 1px solid var(--hairline); font-size: .95rem; }
.usage-list li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.js [data-stagger].is-visible > .usage-card:hover { transform: translateY(-4px); transition-delay: 0s; }

/* Beispiel-Nischen */
.example-groups { display: grid; gap: 22px; }
.example-groups h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); margin-bottom: .7em; }
.chips.chips-light li { background: var(--surface); border: 1px solid var(--hairline); color: var(--ink); font-size: .92rem; }
.chips.chips-light li::before { content: "🔍 "; font-size: .85em; }
.chips.chips-light li:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }

.country-groups { display: grid; gap: 24px; }
.country-groups h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--night-accent); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  background: var(--night-surface-2); border: 1px solid var(--night-hairline); padding: .45em .9em; border-radius: 999px; font-size: .95rem;
  transition: border-color .2s, transform .2s var(--ease-out), background-color .2s;
}
.chips li:hover { border-color: var(--night-accent); background: rgba(155, 140, 255, .12); transform: translateY(-2px); }
.muted-light { color: var(--night-muted); text-align: center; margin: 32px 0 0; font-size: .92rem; }

/* ---------- Preise ---------- */
.pricing { display: grid; gap: 16px; }
.price-card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 16px; padding: 26px 22px; box-shadow: var(--shadow); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.price-card h3 { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price { font-size: 2.1rem; font-weight: 800; margin: 0; line-height: 1.1; letter-spacing: -.02em; }
.price small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.price-sub { color: var(--muted); font-size: .88rem; margin-bottom: 16px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.price-card li { padding: 6px 0 6px 1.6em; position: relative; font-size: .95rem; border-top: 1px solid var(--hairline); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.price-card.featured { border: 2px solid var(--accent); box-shadow: 0 18px 44px rgba(91, 75, 214, .22); animation: glow 3.5s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 18px 54px rgba(91, 75, 214, .38); } }
.ribbon {
  position: absolute; top: -13px; left: 22px; background: #5b4bd6; color: #fff; font-size: .72rem; font-weight: 700;
  padding: .3em .8em; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em;
}
.pricing-extra { display: grid; gap: 16px; margin-top: 16px; }
.extra-card { display: flex; flex-direction: column; gap: 14px; justify-content: space-between; background: var(--surface); border: 1px dashed var(--hairline); border-radius: 16px; padding: 22px; }
.extra-card h3 { font-size: 1.05rem; }
.extra-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.save { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); font-size: .75rem; padding: .2em .6em; border-radius: 999px; margin-left: .3em; vertical-align: middle; }
.pay-methods { text-align: center; color: var(--muted); margin: 28px auto 0; max-width: 40em; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--hairline); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 600; font-size: 1.05rem; position: relative; transition: color .2s; }
.faq summary:hover { color: var(--accent-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--accent); transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 12px; margin: 0; }
.faq details[open] p { animation: rise .45s var(--ease-out) both; }

/* ---------- Anmeldung ---------- */
.section-signup {
  color: var(--night-ink);
  background: radial-gradient(800px 420px at 100% 100%, rgba(91, 75, 214, .32), transparent 60%), var(--night);
}
.signup-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.signup-copy h2 { overflow-wrap: break-word; hyphens: auto; }
.signup-copy h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); font-weight: 800; }
.signup-copy p { color: var(--night-muted); font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li::before { content: "✓"; color: #4cc27c; font-weight: 800; margin-right: .5em; }
.signup-form { background: var(--surface); color: var(--ink); border: 1px solid var(--hairline); border-radius: 18px; padding: 24px; box-shadow: 0 30px 70px rgba(0, 0, 0, .4); }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea, .phone-input {
  width: 100%; font: inherit; font-size: 16px; /* 16px verhindert Auto-Zoom auf iOS */
  border: 1.5px solid var(--hairline); border-radius: 10px; padding: .75em .9em; background: var(--surface); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 80px; }
/* Eigene Pfeile, sonst zeichnet WebKit die Auswahl ohne Rahmen und Abstand */
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 2.4em; cursor: pointer;
  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='%23646380' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9em center; background-size: 12px 8px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.phone-input { display: flex; align-items: center; padding: 0; overflow: hidden; }
.phone-row { display: flex; gap: 8px; }
.phone-row select { flex: 1 1 55%; min-width: 0; }
.phone-row .phone-input { flex: 1 1 45%; min-width: 0; }
.phone-input span[hidden] { display: none; }
.phone-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.phone-input span { padding: 0 .4em 0 .9em; color: var(--muted); font-weight: 600; white-space: nowrap; }
.phone-input input { border: 0; padding-left: .3em; box-shadow: none !important; }
.field .invalid, .phone-input.invalid { border-color: var(--bad); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: 6px 0 18px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.form-message { margin: 14px 0 0; font-size: .95rem; min-height: 1.4em; }
.form-message.error { color: var(--bad); }
.form-message.success { color: var(--good); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.success-box { text-align: center; padding: 12px 4px; animation: pop .6s var(--ease-out) both; }
.success-box .big { font-size: 2.6rem; animation: bounce 1s .2s both; }
.success-box h3 { font-size: 1.3rem; }
.success-box p { color: var(--muted); }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes bounce { 0% { transform: scale(0); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ---------- Rechtsseiten ---------- */
.legal h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); }
.legal h2 { font-size: 1.15rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--night-muted); padding: 40px 0 90px; font-size: .92rem; border-top: 1px solid var(--night-hairline); }
.footer-grid { display: grid; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.site-footer a { text-decoration: none; color: var(--night-muted); transition: color .2s; }
.site-footer a:hover { color: var(--night-ink); }
.site-footer .logo { margin-bottom: 8px; }
.copyright { margin-top: 24px; font-size: .82rem; opacity: .6; }

/* Mobiler Sticky-Knopf: erscheint erst nach dem Hero */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 30;
  text-align: center; background: #5b4bd6; color: #fff; text-decoration: none; font-weight: 700; padding: .95em;
  border-radius: 12px; box-shadow: 0 12px 30px rgba(91, 75, 214, .5);
  transition: transform .35s var(--ease-out), opacity .35s;
}
.sticky-cta.hidden { transform: translateY(150%); opacity: 0; pointer-events: none; }

/* ---------- Scroll-Animationen (nur mit JavaScript; ohne JS ist alles sofort sichtbar) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-stagger] > * {
  opacity: 0; transform: translateY(22px) scale(.98);
  transition: opacity .7s var(--ease-out) calc(var(--i, 0) * 80ms), transform .7s var(--ease-out) calc(var(--i, 0) * 80ms),
    box-shadow .3s var(--ease-out), border-color .3s;
}
.js [data-stagger].is-visible > * { opacity: 1; transform: none; }
.js [data-stagger].is-visible > .card:hover, .js [data-stagger].is-visible > .price-card:hover { transform: translateY(-5px); transition-delay: 0s; }
.js [data-stagger].is-visible > .feature:hover { transform: translateX(4px); transition-delay: 0s; }
/* Nach dem Einblenden keine Verzögerung mehr, damit Hover-Effekte sofort reagieren */
.js [data-stagger].revealed > * { transition-delay: 0s; }
/* Bericht: Balken starten leer, bis die Karte sichtbar ist */
.js .report-card:not(.is-visible) .bar i { width: 0; }

/* Verbindungslinie zwischen den drei Schritten (Desktop) */
.steps::before { content: none; }

/* ---------- Größere Bildschirme ---------- */
@media (min-width: 640px) {
  .cta-row { flex-direction: row; flex-wrap: wrap; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .extra-card { flex-direction: row; align-items: center; }
  .extra-card .btn { flex: none; }
  .country-groups { grid-template-columns: repeat(2, 1fr); }
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
  .usages { grid-template-columns: 1fr 1fr; }
  .example-groups { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .hero { padding: 84px 0 104px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .hero-visual { min-height: 520px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .steps-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .country-groups { grid-template-columns: repeat(4, 1fr); }
  .example-groups { grid-template-columns: repeat(3, 1fr); }
  .steps::before {
    content: ""; position: absolute; z-index: 0; top: 42px; left: 8%; right: 8%; height: 2px;
    background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 30%, transparent));
    transform-origin: left; transform: scaleX(1);
  }
  .js .steps::before { transform: scaleX(0); transition: transform 1.4s .3s var(--ease-out); }
  .js .steps.is-visible::before { transform: scaleX(1); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .pricing { grid-template-columns: repeat(4, 1fr); }
  .pricing-extra { grid-template-columns: 1fr 1fr; }
  .signup-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .section { padding: 92px 0; }
  .sticky-cta { display: none; }
  .site-footer { padding-bottom: 40px; }
}

/* Wer "Bewegung reduzieren" eingestellt hat, bekommt eine ruhige Seite */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-stagger] > * { opacity: 1; transform: none; }
  .js .report-card:not(.is-visible) .bar i { width: var(--w); }
  .hl::after, .js .steps::before { transform: none; }
  .blip { opacity: .7; }
}

/* ---------- Echte App-Vorschau (Screenshots im Browser-Rahmen) ---------- */
.badge-real { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.report-card figcaption a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.showcase { max-width: 1040px; margin: 0 auto; }
.showcase-tabs {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: 0 auto 18px; width: fit-content; max-width: 100%;
  background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 12px;
}
.showcase-tabs::-webkit-scrollbar { display: none; }
.showcase-tabs button {
  position: relative; flex: none; font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted); background: transparent;
  border: 0; border-radius: 9px; padding: .55em 1em; cursor: pointer; transition: color .2s, background-color .2s;
}
.showcase-tabs button:hover { color: var(--ink); }
.showcase-tabs button[aria-selected="true"] { color: var(--accent-ink); background: var(--surface); box-shadow: var(--shadow); }
/* Fortschrittsbalken der automatischen Wiedergabe */
.showcase-tabs button[aria-selected="true"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--accent); transform-origin: left; transform: scaleX(0);
}
.showcase.autoplay .showcase-tabs button[aria-selected="true"]::after { animation: tab-progress var(--autoplay, 7s) linear forwards; }
@keyframes tab-progress { to { transform: scaleX(1); } }

.browser {
  border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; background: var(--bg);
  box-shadow: 0 30px 80px rgba(23, 22, 43, .16), 0 4px 14px rgba(23, 22, 43, .06);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--hairline); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e4e3ee; }
.browser-bar i:nth-child(1) { background: #ff5f57; } .browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-url {
  flex: 1; margin-left: 10px; min-width: 0; text-align: center; font-size: .8rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 7px; padding: 3px 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-view { position: relative; }
.shot { margin: 0; }
.shot[hidden] { display: none; }
.shot.is-active { animation: shot-in .55s var(--ease-out) both; }
@keyframes shot-in { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.shot-zoom { display: block; cursor: zoom-in; }
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption {
  padding: 14px 18px; font-size: .95rem; color: var(--muted); border-top: 1px solid var(--hairline); background: var(--surface);
}
.shot figcaption strong { color: var(--ink); }
.shot-hint { text-align: center; font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
@media (min-width: 900px) { .shot-hint { display: none; } }
@media (prefers-color-scheme: dark) {
  .browser { box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
  .browser-bar i:nth-child(n) { opacity: .85; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase.autoplay .showcase-tabs button[aria-selected="true"]::after { animation: none; }
}

/* ---------- Calculateur de revenus (Formeln wie in der App) ---------- */
.calc {
  max-width: 1080px; margin: 0 auto; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 18px; padding: 20px; box-shadow: var(--shadow-lift);
}
.calc-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.calc-preset {
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--muted); background: var(--surface-2);
  border: 1.5px solid transparent; border-radius: 999px; padding: .5em 1em; cursor: pointer; transition: all .2s var(--ease-out);
}
.calc-preset:hover { color: var(--ink); border-color: var(--hairline); }
.calc-preset[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent); }
.calc-grid { display: grid; gap: 24px; }
.calc-inputs label { display: block; font-weight: 600; font-size: .9rem; }
.calc-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.calc-custom[hidden] { display: none; }
.calc-custom input, .calc-price input, .calc-price select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--hairline); border-radius: 10px; padding: .6em .8em; margin-top: 6px;
}
.calc-custom input:focus, .calc-price input:focus, .calc-price select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.calc-price { margin-bottom: 16px; }
.calc-price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.calc-price-row input { width: 100%; min-width: 0; }
.calc-grid > * { min-width: 0; }   /* un champ ne doit jamais élargir la page sur mobile */
.calc-price select { max-width: 11em; }
.calc-slider { margin-bottom: 16px; }
.calc-slider label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.calc-slider output { color: var(--accent-ink); font-weight: 700; }
.calc-slider small { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
/* Schieberegler im Stil der App, mit gefülltem Anteil */
.calc input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; cursor: pointer; margin: 8px 0 2px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 0%), var(--surface-2) var(--fill, 0%));
}
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--surface);
  border: 2px solid var(--accent); box-shadow: 0 2px 6px rgba(23, 22, 43, .2); transition: transform .15s var(--ease-out);
}
.calc input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }
.calc input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.calc-source { font-size: .85rem; color: var(--muted); margin: 0 0 10px; }
.calc-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.calc-kpi { border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 14px; background: var(--bg); min-width: 0; }
.calc-kpi span { display: block; font-size: .8rem; color: var(--muted); }
.calc-kpi strong { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calc-kpi small { font-size: .78rem; color: var(--muted); }
.calc-kpi-main { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, var(--hairline)); }
.calc-kpi-main strong { color: var(--accent-ink); }
.calc-kpi .up { color: var(--good); } .calc-kpi .down { color: var(--bad); }
.calc-chart svg { width: 100%; height: auto; display: block; }
.calc-chart .grid { stroke: var(--hairline); stroke-width: 1; }
.calc-chart .tick { fill: var(--muted); font-size: 11px; font-family: inherit; }
.calc-chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.calc-chart .area { fill: var(--accent-soft); opacity: .9; }
.calc-chart .dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; }
.calc-table { width: 100%; border-collapse: collapse; font-size: .85rem; margin-top: 10px; }
.calc-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem; padding: 6px 4px; border-bottom: 1px solid var(--hairline); }
.calc-table td { padding: 7px 4px; border-bottom: 1px solid var(--hairline); }
.calc-table .r { text-align: right; }
.calc-table tr.is-main td { font-weight: 700; }
.calc-note { font-size: .8rem; color: var(--muted); margin: 16px 0 0; }
@media (max-width: 520px) {
  .calc { padding: 16px; }
  .calc-kpi strong { font-size: 1.1rem; }
  .calc-table th:nth-child(2), .calc-table td:nth-child(2) { display: none; }   /* 6-Monats-Spalte auf kleinen Handys ausblenden */
}
@media (min-width: 900px) {
  .calc { padding: 28px; }
  .calc-grid { grid-template-columns: .9fr 1.1fr; gap: 36px; }
}

/* ---------- Barrierefreiheit und 404 ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: #5b4bd6; color: #fff; font-weight: 700;
  padding: .6em 1em; border-radius: 10px; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }
.not-found { text-align: center; padding: 40px 0 80px; }
.not-found-code { font-size: 5rem; font-weight: 800; line-height: 1; color: var(--accent); margin-bottom: .2em; letter-spacing: -.04em; }
.not-found p { color: var(--muted); }

/* ---------- Connexion / inscription ---------- */
.auth-page { background: var(--bg); }
.auth-card { width: 100%; max-width: 440px; margin: 0 auto; padding: 0 16px; }
.auth-card h1 { font-size: clamp(1.7rem, 5vw, 2.1rem); font-weight: 800; text-align: center; }
.auth-lead { text-align: center; color: var(--muted); margin-bottom: 22px; }
.auth-form { box-shadow: var(--shadow-lift); }
.field-hint { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.auth-switch, .auth-help { text-align: center; color: var(--muted); margin-top: 18px; font-size: .95rem; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-login { color: var(--night-muted); text-decoration: none; font-weight: 600; font-size: .92rem; }
.nav-login:hover { color: var(--night-ink); }
.nav-login { white-space: nowrap; }
/* Mobile : logo + « Se connecter » sur une ligne ; « Essai gratuit » masqué (le grand bouton du hero est juste dessous) */
@media (max-width: 480px) {
  .nav-actions .btn { display: none; }
}
/* Pays et numéro l'un sous l'autre sur petit écran, pour que le numéro reste lisible en entier */
@media (max-width: 420px) {
  .phone-row { flex-wrap: wrap; }
  .phone-row select, .phone-row .phone-input { flex: 1 1 100%; }
}
.auth-inline-switch { text-align: center; color: var(--muted); margin: 12px 0 0; font-size: .92rem; }

/* Safari (iPhone, iPad) zoome sur tout champ dont le texte fait moins de 16 px : 16 px sur écran tactile ou petit écran.
   (On ne bloque pas le zoom de la page : les visiteurs gardent le zoom à deux doigts.) */
@media (pointer: coarse), (max-width: 900px) {
  input, select, textarea { font-size: 16px !important; }
}
