/* Erlo – Startseite. Keine externen Schriften oder Skripte (Datenschutz): nur Systemschriften. */
:root {
  --bg: #07090f;
  --bg-2: #0b0e17;
  --panel: #0f1320;
  --panel-2: #141a2b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #e9edf5;
  --muted: #9aa4b8;
  --faint: #6b7487;
  --accent: #7c6cff;
  --accent-2: #2fd3e6;
  --ok: #3ddc97;
  --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  --radius: 18px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--text); text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(7, 9, 15, 0.72); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; }
.logo-mark { width: 26px; height: 26px; border-radius: 9px; background: var(--grad); box-shadow: 0 0 24px rgba(124, 108, 255, 0.55); position: relative; }
.logo-mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--bg); }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 16px/1 inherit; color: #0a0b12; background: var(--grad); text-decoration: none;
  box-shadow: 0 8px 30px rgba(47, 211, 230, 0.18); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 36px rgba(124, 108, 255, 0.35); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.btn-ghost:hover { border-color: var(--accent-2); box-shadow: none; }

/* Hero */
.hero { position: relative; padding: 88px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 680px; z-index: -1;
  background:
    radial-gradient(520px 320px at 72% 30%, rgba(124, 108, 255, 0.22), transparent 70%),
    radial-gradient(420px 260px at 20% 10%, rgba(47, 211, 230, 0.14), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero { padding-top: 56px; } .hero .wrap { grid-template-columns: 1fr; gap: 48px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: 14px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.035em; margin: 22px 0 18px; font-weight: 750; }
h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--muted); max-width: 34em; margin: 0 0 30px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.note { margin-top: 18px; color: var(--faint); font-size: 14px; }

/* Handy mit Chat */
.phone {
  width: min(330px, 100%); margin: 0 auto; aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #1c2236, #0c0f19); border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 80px rgba(124, 108, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.screen { height: 100%; border-radius: 34px; overflow: hidden; background: #0a0d16; display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 18px 16px 12px; border-bottom: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; color: #0a0b12; font-size: 15px; }
.chat-head b { display: block; font-size: 15px; }
.chat-head span { font-size: 12px; color: var(--ok); }
.chat { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.4; }
.msg { max-width: 82%; padding: 8px 11px; border-radius: 14px; opacity: 0; transform: translateY(6px); animation: pop 0.45s ease forwards; }
.msg.me { align-self: flex-end; background: #234d44; border-bottom-right-radius: 4px; }
.msg.erlo { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg .ok { color: var(--ok); }
.msg:nth-child(1) { animation-delay: 0.2s; } .msg:nth-child(2) { animation-delay: 0.9s; } .msg:nth-child(3) { animation-delay: 1.7s; }
.msg:nth-child(4) { animation-delay: 2.5s; } .msg:nth-child(5) { animation-delay: 3.2s; } .msg:nth-child(6) { animation-delay: 3.9s; }
@keyframes pop { to { opacity: 1; transform: none; } }
.chat-input { margin: 10px; padding: 10px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--faint); font-size: 13px; }

/* Abschnitte */
section { padding: 84px 0; }
section + section { border-top: 1px solid var(--line); }
.kicker { color: var(--accent-2); font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
h2 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.03em; line-height: 1.1; margin: 10px 0 14px; }
.sub { color: var(--muted); max-width: 40em; margin: 0 0 44px; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.card { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.step-no { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; margin-bottom: 18px; color: var(--accent-2); border: 1px solid rgba(47, 211, 230, 0.35); background: rgba(47, 211, 230, 0.06); }

.example { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(124, 108, 255, 0.12); border: 1px solid rgba(124, 108, 255, 0.3); }
.icon svg { width: 22px; height: 22px; stroke: #b7aeff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quote { margin-top: 10px; padding: 8px 12px; border-left: 2px solid var(--accent-2); color: var(--text); font-size: 15px; background: rgba(255, 255, 255, 0.02); border-radius: 0 10px 10px 0; }
.soon { margin-top: 22px; color: var(--faint); font-size: 15px; }

.trust { display: grid; grid-template-columns: 26px 1fr; gap: 14px; }
.trust svg { width: 24px; height: 24px; stroke: var(--ok); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 0 20px; }
details + details { margin-top: 12px; }
summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-2); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 18px; color: var(--muted); }

/* Warteliste */
.join { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .join { grid-template-columns: 1fr; } }
form { display: grid; gap: 14px; }
label { font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
input[type="text"], input[type="tel"], input[type="email"] {
  font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 14px; width: 100%;
}
input:focus { border-color: var(--accent-2); outline: none; box-shadow: 0 0 0 3px rgba(47, 211, 230, 0.15); }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--accent-2); width: 18px; height: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 24px; font-size: 15px; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: #ff8a8a; }

/* Fußzeile */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; margin-left: 20px; }
footer a:first-child { margin-left: 0; }

/* Rechtstexte */
.legal { padding: 64px 0 80px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal h3 { font-size: 18px; margin-top: 24px; }
.legal p, .legal li { color: var(--muted); }
.todo { background: rgba(255, 196, 0, 0.14); color: #ffd666; border: 1px dashed rgba(255, 196, 0, 0.55); border-radius: 6px; padding: 1px 6px; font-weight: 600; }
.faq-list { margin-top: 32px; }
