:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --text: #1e2430;
  --muted: #69707e;
  --accent: #4f46e5;
  --accent-2: #ff6b4a;
  --border: #e4e8f1;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(30, 40, 80, .08);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1, h2, h3 { line-height: 1.15; }
section { padding: 3.5rem 1.5rem; }
section > h2 { text-align: center; font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0 0 .5rem; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 2rem; }

/* Buttons */
.btn {
  display: inline-block; border: 0; border-radius: 10px; padding: .6rem 1.1rem;
  font: inherit; font-weight: 600; background: var(--accent); color: #fff; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 16px rgba(79, 70, 229, .34);
}
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.lg { padding: .8rem 1.5rem; font-size: 1.05rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.5rem; background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 800; font-size: 1.2rem; }
.brand span { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.lang-switch { display: flex; gap: .35rem; }
.lang-btn {
  border: 1px solid var(--border); background: var(--surface); border-radius: 8px;
  padding: .2rem .35rem; cursor: pointer; line-height: 0; opacity: .5; transition: .15s;
}
.lang-btn:hover { opacity: .85; }
.lang-btn.on { opacity: 1; border-color: var(--accent); }
.flag { width: 24px; height: 16px; border-radius: 2px; display: block; }

/* Hero */
.hero {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center;
  padding: 3.5rem 1.5rem;
  background: radial-gradient(900px 380px at 85% 10%, rgba(79,70,229,.13), transparent 70%);
}
.hero-text h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); margin: 0 0 1rem;
  background: linear-gradient(120deg, #1e2430, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text p { color: var(--muted); font-size: 1.15rem; max-width: 46ch; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-visual { display: flex; justify-content: center; }

/* Phone-Mockup (Screen bewusst DUNKEL = echte App) */
.phone {
  width: 250px; background: #0c0d11; border: 10px solid #0c0d11; border-radius: 34px;
  box-shadow: 0 24px 60px rgba(30,40,80,.22); overflow: hidden;
}
.screen { background: #14161c; color: #e7e9ee; border-radius: 24px; overflow: hidden; height: 460px; display: flex; flex-direction: column; }
.app-bar { background: #1d2029; padding: .7rem .9rem; font-weight: 700; border-bottom: 1px solid #2e323f; font-size: .95rem; }
.app-bar span { color: #6c8cff; }
.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem; padding: .6rem; }
.ms { background: #1d2029; border: 1px solid #2e323f; border-radius: 10px; text-align: center; padding: .45rem; }
.ms b { display: block; font-size: 1.25rem; }
.ms span { font-size: .65rem; color: #9aa0ad; }
.chart-mock { display: flex; align-items: flex-end; gap: 6px; height: 70px; padding: 0 .8rem .4rem; }
.chart-mock i { flex: 1; background: linear-gradient(#6c8cff, #9b6cff); border-radius: 3px 3px 0 0; }
.list-mock { padding: .4rem .6rem; display: grid; gap: .4rem; }
.list-mock.big { padding: .6rem; gap: .5rem; }
.lm { display: flex; align-items: center; gap: .55rem; background: #1d2029; border: 1px solid #2e323f; border-radius: 10px; padding: .45rem .6rem; font-size: .8rem; }
.lm .av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .75rem; background: linear-gradient(135deg, #6c8cff, #9b6cff); color: #fff; flex: none; }
.lm-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.lm-main small { color: #9aa0ad; font-size: .7rem; }
.lm .st { margin-left: auto; color: #ffcf5c; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.ev { background: #6c8cff; }
.dot.nt { background: #3ecf8e; }
.hero-strip { height: 56px; background: linear-gradient(135deg, #2a2f44, #3a2f4a); }
.minfo { padding: .6rem; display: grid; gap: .45rem; }
.minfo > div { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid #2e323f; padding-bottom: .35rem; font-size: .82rem; }
.minfo span { color: #9aa0ad; }
.minfo b { font-weight: 600; }

/* Features */
.features { background: var(--surface-2); }
.feature-grid { max-width: 1000px; margin: 1rem auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.fcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.ficon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: color-mix(in srgb, var(--c) 15%, white); color: var(--c); margin-bottom: .8rem; }
.ficon .ico { width: 24px; height: 24px; }
.ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fcard h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.fcard p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Mockups-Sektion */
.phones { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }

/* Login */
.login-section { display: flex; justify-content: center; }
.login.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; width: min(440px, 100%); text-align: center; box-shadow: var(--shadow); }
.login h2 { margin: 0 0 1rem; font-size: 1.35rem; }
.steps { text-align: left; color: var(--muted); padding-left: 1.2rem; margin: 0 0 1.3rem; }
.steps li { margin: .35rem 0; }
.steps strong { color: var(--text); }
.qr-wrap { position: relative; width: 220px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px; line-height: 0; }
#qr { width: 220px; height: 220px; }
.qr-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.9); border-radius: 12px; }
.status { color: var(--muted); margin: 1rem 0 .25rem; min-height: 1.4em; }
.app-note { color: var(--muted); font-size: .82rem; margin: 0; }

/* Trust */
.trust { background: var(--surface-2); }
.trust-grid { max-width: 900px; margin: 1rem auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tcard { text-align: center; padding: 1rem; }
.tcard h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.tcard p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Footer */
.foot { display: flex; gap: 1.2rem; justify-content: center; align-items: center; padding: 2rem 1.5rem; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--border); background: var(--surface); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* Scroll-Reveal (nur mit JS aktiv; ohne JS bleibt alles sichtbar) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Nav-Anker + Login-Button */
.nav-anchors { display: flex; gap: 1.4rem; }
.nav-anchors a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-anchors a:hover { color: var(--text); }
.nav-login { padding: .5rem 1rem; }

/* Hero-Glow */
.hero-visual { position: relative; }
.glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; top: 50%; left: 50%;
  transform: translate(-50%, -50%); z-index: 0;
  background: radial-gradient(circle, rgba(79,70,229,.36), transparent 65%); filter: blur(18px); }
.hero-visual .phone { position: relative; z-index: 1; }

/* Trust-Strip */
.strip { padding: 1.2rem 1.5rem; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.strip-inner { max-width: 1000px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1rem 2.2rem; justify-content: center; }
.strip-item { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-weight: 600; font-size: .92rem; }
.strip-item .ico { width: 20px; height: 20px; color: var(--accent); }

/* Feature-Hover-Lift */
.fcard { transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
.fcard:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(30,40,80,.13);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }

/* So geht's – Steps */
.steps-grid { max-width: 1000px; margin: 1rem auto 0; display: flex; align-items: stretch; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; flex: 1; min-width: 220px; max-width: 300px; text-align: center; box-shadow: var(--shadow); }
.step-n { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; margin: 0 auto .8rem; }
.step h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }
.step-arrow { display: flex; align-items: center; color: var(--muted); font-size: 1.6rem; }
@media (max-width: 760px) { .step-arrow { display: none; } }

/* FAQ */
.faq-section { background: var(--surface-2); }
.faq { max-width: 760px; margin: 1rem auto 0; display: grid; gap: .6rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 1rem 1.1rem; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q::after { content: '+'; color: var(--accent); font-size: 1.3rem; line-height: 1; flex: none; }
.faq-item.open .faq-q::after { content: '\2013'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 460px; }
.faq-a p { margin: 0; padding: 0 1.1rem 1rem; color: var(--muted); }

/* Final CTA */
.cta-band { background: linear-gradient(135deg, var(--accent), #7c3aed); text-align: center; }
.cta-inner { max-width: 680px; margin: 0 auto; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); margin: .3rem 0 1.4rem; }
.cta-band .btn { background: #fff; color: var(--accent); box-shadow: 0 10px 26px rgba(0,0,0,.18); }

/* Responsive */
@media (max-width: 860px) {
  .nav-anchors { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: repeat(2, 1fr); }
}
