/* FachWissen: 34a Trainer — shared styles for every page. No external requests. */
:root {
  --bg: #ffffff;
  --surface: #f5f7fb;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --brand: #0a7ea4;
  --brand-soft: #e6f4f8;
  --gold: #f8b13c;
  --navy: #0f1f45;
  --navy-deep: #0a1431;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --bad: #b91c1c;
  --bad-soft: #fee2e2;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px rgba(15, 23, 42, .08);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #121b2e;
    --text: #f1f5f9;
    --muted: #a9b5c7;
    --border: #25314a;
    --brand: #38bdf8;
    --brand-soft: #0f2c3d;
    --ok: #4ade80;
    --ok-soft: #12362a;
    --bad: #f87171;
    --bad-soft: #43202a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(740px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold); color: #1b1300; padding: 10px 16px; border-radius: 10px; font-weight: 700; z-index: 20; }
.skip:focus { top: 12px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--navy-deep) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: -.01em; margin-right: auto; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-weight: 500; opacity: .7; }
.nav a:not(.brand):not(.lang) { color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:not(.brand):not(.lang):hover { color: #fff; }
.lang { color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 5px 12px; }
.lang:hover { background: rgba(255, 255, 255, .12); }
.nav-links { display: flex; gap: 22px; }
@media (max-width: 760px) { .nav-links { display: none; } .brand span { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 14px; font-weight: 800; font-size: 16px; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-gold { background: var(--gold); color: #1b1300; box-shadow: 0 8px 24px rgba(248, 177, 60, .28); }
.btn-gold:hover { box-shadow: 0 12px 30px rgba(248, 177, 60, .4); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-solid { background: var(--text); color: var(--bg); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 480px at 82% 20%, rgba(248, 177, 60, .2), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(10, 126, 164, .35), transparent 60%), linear-gradient(180deg, var(--navy), var(--navy-deep)); }
.hero .wrap { display: grid; gap: 48px; align-items: center; padding-block: 64px 80px; }
@media (min-width: 940px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; padding-block: 88px 104px; } }
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 900; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { margin-top: 20px; font-size: clamp(18px, 2.2vw, 21px); color: rgba(255, 255, 255, .82); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: rgba(255, 255, 255, .78); font-size: 15px; font-weight: 600; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

/* ---------- phone with working sample question ---------- */
.phone-stage { display: grid; justify-items: center; gap: 14px; }
.phone {
  --p-bg: #ffffff; --p-surface: #f8fafc; --p-text: #0f172a; --p-muted: #475569; --p-border: #e2e8f0; --p-tint: #0a7ea4; --p-tint-soft: #e6f4f8;
  width: min(330px, 100%); border-radius: 46px; padding: 11px; background: #05080f;
  box-shadow: 0 0 0 2px #2a3550, 0 40px 80px rgba(0, 0, 0, .5), 0 0 120px rgba(248, 177, 60, .12);
}
@media (prefers-color-scheme: dark) {
  .phone { --p-bg: #0f172a; --p-surface: #1e293b; --p-text: #f8fafc; --p-muted: #cbd5e1; --p-border: #334155; --p-tint: #0ea5e9; --p-tint-soft: #123849; }
}
.screen { background: var(--p-bg); color: var(--p-text); border-radius: 36px; padding: 18px 16px 20px; min-height: 548px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.screen::before { content: ""; width: 92px; height: 24px; background: #05080f; border-radius: 99px; align-self: center; margin-bottom: 4px; }
.q-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; }
.q-pill { background: var(--p-tint-soft); color: var(--p-tint); padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; }
.q-bar { height: 6px; background: var(--p-border); border-radius: 99px; overflow: hidden; }
.q-bar i { display: block; height: 100%; width: 33%; background: var(--p-tint); border-radius: 99px; transition: width .35s ease; }
.q-hint { font-size: 12.5px; color: var(--p-muted); }
.q-text { font-size: 18px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; margin: 2px 0 4px; }
.q-options { display: grid; gap: 8px; }
.q-opt { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1.5px solid var(--p-border); border-radius: 14px; background: var(--p-bg); font-size: 15px; line-height: 1.3; min-height: 54px; transition: border-color .15s, background .15s, transform .1s; }
.q-opt:hover:not([disabled]) { border-color: var(--p-tint); background: var(--p-tint-soft); }
.q-opt:active:not([disabled]) { transform: scale(.985); }
.q-opt:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.q-opt[disabled] { cursor: default; }
.q-key { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--p-border); background: var(--p-surface); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.q-opt.is-correct { border-color: var(--ok); background: var(--ok-soft); }
.q-opt.is-correct .q-key { background: var(--ok); border-color: var(--ok); color: #fff; }
.q-opt.is-wrong { border-color: var(--bad); background: var(--bad-soft); }
.q-opt.is-wrong .q-key { background: var(--bad); border-color: var(--bad); color: #fff; }
.q-feedback { border-radius: 14px; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; background: var(--p-surface); }
.q-feedback strong { display: block; font-size: 14px; margin-bottom: 2px; }
.q-feedback.is-correct { background: var(--ok-soft); }
.q-feedback.is-wrong { background: var(--bad-soft); }
.q-feedback[hidden], .q-next[hidden] { display: none; }
.q-next { all: unset; box-sizing: border-box; cursor: pointer; margin-top: auto; text-align: center; padding: 14px; border-radius: 14px; background: var(--p-tint); color: #fff; font-weight: 800; font-size: 15px; }
@media (prefers-color-scheme: dark) { .q-next { color: #04202e; } }
.q-next:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.q-foot { margin-top: auto; font-size: 11.5px; color: var(--p-muted); text-align: center; }
.q-next:not([hidden]) + .q-foot { margin-top: 0; }
.phone-caption { color: rgba(255, 255, 255, .62); font-size: 13.5px; text-align: center; max-width: 28em; }

/* ---------- sections ---------- */
section { padding-block: 88px; }
.section-head { max-width: 40em; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 900; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 19px; }
.alt { background: var(--surface); }

.stats { margin-top: -44px; position: relative; z-index: 2; padding: 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(2, 1fr); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
@media (min-width: 760px) { .stats .wrap { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 26px 22px; text-align: center; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 0 -1px -1px 0; }
.stat b { display: block; font-size: clamp(34px, 5vw, 46px); line-height: 1; font-weight: 900; letter-spacing: -.03em; color: var(--brand); }
.stat span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--muted); font-weight: 600; }

.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.feature { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.alt .feature { background: var(--bg); }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 16px; }

.steps { display: grid; gap: 18px; counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: step; position: relative; padding: 26px 26px 26px 26px; border-radius: var(--radius); background: var(--surface); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #1b1300; font-weight: 900; margin-bottom: 16px; }
.steps h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 16px; }

.two-col { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 15px; }
.alt .chips li { background: var(--bg); }
.chips.langs li { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.note-box { margin-top: 22px; background: var(--brand-soft); border-radius: 16px; padding: 16px 18px; font-size: 15px; color: var(--text); }

.checks { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.checks svg { width: 24px; height: 24px; color: var(--ok); margin-top: 2px; }
.checks b { display: block; }
.checks span { color: var(--muted); font-size: 16px; }

.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: 16px; background: var(--bg); padding: 0 22px; }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 800; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--brand); font-weight: 500; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); }

.final { text-align: center; color: #fff; background: radial-gradient(700px 360px at 50% 0%, rgba(248, 177, 60, .2), transparent 65%), linear-gradient(180deg, var(--navy), var(--navy-deep)); }
.final h2 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 900; }
.final p { margin: 14px auto 0; max-width: 32em; color: rgba(255, 255, 255, .78); font-size: 19px; }
.final .cta-row { justify-content: center; }

footer.site { background: var(--navy-deep); color: rgba(255, 255, 255, .7); padding-block: 40px 48px; font-size: 14.5px; }
footer.site .wrap { display: grid; gap: 20px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer.site a { color: #fff; text-decoration: none; font-weight: 600; }
footer.site a:hover { text-decoration: underline; }
footer.site .legal { max-width: 62em; line-height: 1.55; }

/* ---------- document pages (support, privacy, 404) ---------- */
.doc-hero { background: linear-gradient(180deg, var(--navy), var(--navy-deep)); color: #fff; padding-block: 48px 52px; }
.doc-hero .doc-title { color: #fff; font-size: clamp(32px, 5vw, 46px); font-weight: 900; line-height: 1.12; letter-spacing: -.02em; }
.doc-hero p + p { margin-top: 10px; color: rgba(255, 255, 255, .78); }
.doc { padding-block: 48px 72px; }
.doc section { padding-block: 0; }
.doc section + section { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.doc h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 900; margin-bottom: 18px; }
.doc h2 { font-size: 21px; font-weight: 800; margin: 30px 0 8px; }
.doc p { color: var(--muted); }
.doc p + p { margin-top: 12px; }
.doc p strong { color: var(--text); }
.doc .lang-switch { display: flex; gap: 10px; margin-bottom: 36px; }
.doc .lang-switch a { border: 1px solid var(--border); border-radius: 999px; padding: 6px 16px; font-size: 14px; font-weight: 700; text-decoration: none; }
.doc .lang-switch a:hover { background: var(--surface); }
.mail-card { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; background: var(--brand-soft); border-radius: 16px; padding: 18px 20px; }
.mail-card b { display: block; }
.mail-card span { color: var(--muted); font-size: 15px; }
.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 64px 20px; }
.lost h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 900; margin-bottom: 12px; }
.lost p { color: var(--muted); margin-bottom: 26px; }
.lost img { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 24px; }

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

/* ---------- small helpers (no inline styles: the CSP forbids them) ---------- */
.sprite { position: absolute; }
.eyebrow.gold { color: var(--gold); }
.h2-lg { font-size: clamp(30px, 4.4vw, 44px); font-weight: 900; }
.lead { margin-top: 14px; color: var(--muted); font-size: 19px; }
.doc-hero a.plain, .doc-hero p a { color: var(--gold); }
.btn-soon { cursor: default; }
.btn-soon:hover { transform: none; box-shadow: 0 8px 24px rgba(248, 177, 60, .28); }

/* Analytics consent banner (see analytics.js) */
#analytics-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin-inline: auto; display: grid; gap: 14px; padding: 18px 20px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 15px; }
#analytics-banner p { margin: 6px 0 4px; color: var(--muted); }
#analytics-banner a { color: var(--brand); font-weight: 700; }
#analytics-banner .analytics-actions { display: flex; gap: 12px; }
#analytics-banner button { flex: 1; min-height: 46px; border-radius: 12px; border: 1px solid var(--brand); background: var(--brand-soft); color: var(--brand); font: inherit; font-weight: 800; cursor: pointer; }
#analytics-banner button:hover { background: var(--brand); color: var(--bg); }
footer.site .analytics-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: #fff; cursor: pointer; }
footer.site .analytics-link:hover { text-decoration: underline; }
