/* QuizLane – gemeinsame Gestaltung der Webseiten */
:root {
  --bg: #f7f7fb;
  --card: #ffffff;
  --ink: #1b1f2e;
  --mute: #5f6577;
  --line: #e3e5ee;
  --brand: #5145e5;
  --brand-2: #0ea5a4;
  --soft: #eef0ff;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #11131b; --card: #1a1d29; --ink: #eceef6; --mute: #a3a9bd; --line: #2b3042; --soft: #22264a; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* Sprache: die jeweils andere wird ausgeblendet (Standard Englisch) */
html:not([data-lang="de"]) .de { display: none !important; }
html[data-lang="de"] .en { display: none !important; }

header.top { border-bottom: 1px solid var(--line); background: var(--card); }
.nav { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 19px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav .sp { flex: 1; }
.langs a { font-size: 14px; color: var(--mute); padding: 2px 6px; border-radius: 6px; }
html:not([data-lang="de"]) .langs a.l-en, html[data-lang="de"] .langs a.l-de { background: var(--soft); color: var(--brand); }

.hero { padding: 64px 0 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; padding-top: 40px; } }
.hero h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.12; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 19px; color: var(--mute); margin: 0 0 26px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 650; background: var(--brand); color: #fff; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.phone {
  background: linear-gradient(160deg, var(--brand), var(--brand-2));
  border-radius: 28px; padding: 26px; color: #fff; box-shadow: 0 20px 50px #5145e533;
}
.phone .card { background: #ffffffee; color: #1b1f2e; border-radius: 16px; padding: 16px; margin-top: 12px; }
.phone .opt { border: 1.5px solid #e3e5ee; border-radius: 10px; padding: 8px 12px; margin-top: 8px; font-size: 15px; }
.phone .opt.ok { border-color: #12b76a; background: #ecfdf3; }
.phone small { opacity: .85; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 20px 0 56px; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--mute); }
.feature .ic { font-size: 26px; }

.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 44px 0; }
.band h2 { margin-top: 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } }
ul.check { padding-left: 0; list-style: none; }
ul.check li { padding-left: 28px; position: relative; margin: 8px 0; }
ul.check li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-2); font-weight: 800; }

footer.bottom { padding: 28px 0 40px; color: var(--mute); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }

/* Rechtsseiten und Dokumentation */
main.doc { padding: 36px 0 56px; }
main.doc h1 { font-size: 34px; margin: 0 0 8px; letter-spacing: -0.01em; }
main.doc h2 { margin-top: 32px; font-size: 21px; }
main.doc h3 { margin-top: 22px; font-size: 17px; }
.kicker { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; margin: 0; }
.lead { color: var(--mute); font-size: 18px; }
.upd { color: var(--mute); font-size: 14px; margin-top: 36px; }
table.ref { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--card); border-radius: 12px; overflow: hidden; }
table.ref th, table.ref td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.ref th { background: var(--soft); font-weight: 650; }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13.5px; }
code { background: var(--soft); padding: 1px 5px; border-radius: 5px; }
pre { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; overflow-x: auto; line-height: 1.45; }
pre code { background: none; padding: 0; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; }

/* Landingpage */
.landing { min-height: 100vh; display: flex; flex-direction: column; }
.landing main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 30px 16px; }
.lcard { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 30px; max-width: 520px; width: 100%; text-align: center; box-shadow: 0 16px 40px #1b1f2e14; }
.lcard img.logo { width: 64px; height: 64px; }
.lcard h1 { font-size: 24px; margin: 12px 0 6px; }
.lcard .quiz { font-size: 20px; font-weight: 700; margin: 14px 0 4px; }
.lcard .meta { color: var(--mute); font-size: 14px; }
.lcard .code { display: inline-block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 26px; letter-spacing: .18em; background: var(--soft); color: var(--brand); padding: 6px 14px; border-radius: 12px; margin: 14px 0; }
.lcard .stores { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.hidden { display: none !important; }
