@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url(/fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url(/fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap; src: url(/fonts/poppins-800.woff2) format("woff2"); }

:root {
  --bg: #0b1016;
  --bg2: #101821;
  --card: #141e29;
  --card2: #1a2633;
  --line: #233343;
  --text: #f2f5f8;
  --text2: #a3b3c2;
  --muted: #6c8193;
  --brand: #ff7a1a;
  --brand2: #ff9a4d;
  --ok: #4cc38a;
  --bad: #ef5b5b;
  --ac: var(--brand);
  --r: 18px;
  --gut: 16px;
  --max: 640px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 60% at 50% -10%, rgba(255, 122, 26, .16), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px, 28px 28px;
  background-attachment: fixed, scroll, scroll;
  color: var(--text);
  font: 400 16px/1.55 "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: var(--brand2); }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #111; padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- Kopf ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) var(--gut) 10px;
  background: rgba(11, 16, 22, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .08); }
.brand b { color: var(--brand); font-weight: 800; }
.social { display: flex; gap: 4px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--text2); transition: color .2s, background .2s; }
.social a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.social svg { width: 21px; height: 21px; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 14px; border: 0;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), background .2s, box-shadow .2s, opacity .2s;
  touch-action: manipulation;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(180deg, var(--brand2), var(--brand)); color: #1a0d02; box-shadow: 0 8px 24px -8px rgba(255, 122, 26, .6); }
.btn-primary:hover { box-shadow: 0 10px 30px -8px rgba(255, 122, 26, .8); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-block { width: 100%; }

/* ---------- Startseite ---------- */
.hero { text-align: center; padding: 28px 0 8px; }
.hero-logo { width: 132px; height: 132px; margin: 0 auto 18px; border-radius: 50%; box-shadow: 0 0 0 6px rgba(255, 255, 255, .04), 0 20px 50px -20px rgba(255, 122, 26, .55); }
.hero h1 { font-size: clamp(30px, 8.6vw, 44px); }
.hero h1 em { font-style: normal; color: var(--brand); }
.lead { color: var(--text2); margin-top: 10px; font-size: 16px; }
.hero .lead { max-width: 30em; margin: 12px auto 0; }
.stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.stats span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); color: var(--text2); font-size: 14px; }
.stats b { color: var(--text); font-weight: 600; }
.stats .stat-done b { color: var(--ok); }
.hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.hero-cta .btn { padding: 0 10px; gap: 8px; white-space: nowrap; }
.hero h1 em { white-space: nowrap; }

.list { padding: 30px 0 10px; }
.list-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.list h2 { font-size: 22px; }
.search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--brand); }
.search svg { width: 20px; height: 20px; flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; outline: none; }
.search input::placeholder { color: var(--muted); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.card {
  position: relative; display: flex; gap: 14px; align-items: center;
  padding: 10px 14px 10px 10px; border-radius: var(--r);
  background: linear-gradient(180deg, var(--card2), var(--card));
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text); text-decoration: none;
  transition: transform .15s var(--ease), box-shadow .2s;
}
.card::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ac); opacity: .9; }
.card:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 60%, var(--line)); }
.card:active { transform: scale(.985); }
.card-img { flex: none; width: 64px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--bg2) center/cover; }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card-title { font-weight: 600; font-size: 16.5px; line-height: 1.3; }
.card-sub { color: var(--text2); font-size: 13.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.card-score:empty { display: none; }
.card-score { color: var(--text); font-weight: 600; }
.card-score.full { color: var(--ok); }
.card-new { color: var(--brand); font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 24px 0; }

/* ---------- Quiz ---------- */
.quiz { padding: 14px 0 24px; }
.back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px -6px; padding: 6px; color: var(--text2); text-decoration: none; font-size: 14px; }
.back svg { width: 18px; height: 18px; }
.kicker { color: var(--ac); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.intro h1 { font-size: clamp(28px, 8vw, 38px); margin-top: 4px; }
.intro .meta { color: var(--muted); font-size: 14px; margin-top: 10px; }
.intro-grid { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; margin-bottom: 22px; }
.intro-img { width: 112px; height: 199px; object-fit: cover; border-radius: 16px; box-shadow: 0 16px 40px -18px color-mix(in srgb, var(--ac) 70%, transparent), 0 0 0 1px var(--line); }
.intro .btn-primary { margin-top: 6px; }
.best { text-align: center; color: var(--text2); font-size: 14px; margin-top: 12px; }
.best b { color: var(--ok); }
.note { color: var(--text2); background: var(--card); padding: 12px 14px; border-radius: 12px; margin-top: 14px; }

.vlinks { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.vlinks-label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 10px; text-align: center; }
.vlinks > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.vlink { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 8px; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.vlink svg { width: 20px; height: 20px; flex: none; }
.vlink:hover { background: rgba(255, 255, 255, .09); }

/* Spielansicht */
.play-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.quit { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -8px; border: 0; border-radius: 12px; background: none; color: var(--text2); cursor: pointer; }
.quit svg { width: 20px; height: 20px; }
.bar { flex: 1; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, color-mix(in srgb, var(--ac) 70%, #fff), var(--ac)); transition: width .45s var(--ease); }
.count { color: var(--text2); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }

.qcard { animation: in .35s var(--ease) both; }
.qsrc { display: inline-block; margin-bottom: 10px; color: var(--ac); font-size: 13px; font-weight: 600; text-decoration: none; }
.qtext { font-size: clamp(21px, 5.6vw, 26px); font-weight: 600; line-height: 1.32; letter-spacing: -.005em; }
.answers { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.ans {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  min-height: 60px; padding: 12px 14px; border: 0; border-radius: 16px;
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 16px; line-height: 1.35; cursor: pointer;
  transition: box-shadow .2s, background .2s, transform .12s var(--ease), opacity .3s;
  touch-action: manipulation;
}
.ans:not(:disabled):hover { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ac) 70%, var(--line)); }
.ans:not(:disabled):active { transform: scale(.98); }
.ans .k { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .07); color: var(--text2); font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.ans:disabled { cursor: default; }
.ans.dim { opacity: .45; }
.ans.ok { background: color-mix(in srgb, var(--ok) 14%, var(--card)); box-shadow: inset 0 0 0 2px var(--ok); }
.ans.ok .k { background: var(--ok); color: #06150d; }
.ans.bad { background: color-mix(in srgb, var(--bad) 14%, var(--card)); box-shadow: inset 0 0 0 2px var(--bad); animation: shake .4s; }
.ans.bad .k { background: var(--bad); color: #1d0505; }

.feedback { margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); animation: in .3s var(--ease) both; }
.feedback { scroll-margin-bottom: 100px; }
.feedback h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.feedback.is-ok h3 { color: var(--ok); }
.feedback.is-bad h3 { color: var(--bad); }
.feedback p { color: var(--text2); margin-top: 6px; }
.feedback .scene { margin-top: 10px; font-size: 13px; color: var(--muted); }
.feedback .scene b { color: var(--text2); font-weight: 600; }

.next-wrap { position: sticky; bottom: 0; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); margin-top: 8px; background: linear-gradient(180deg, transparent, var(--bg) 35%); }
.next-wrap .btn { width: 100%; }

/* Ergebnis */
.result { text-align: center; padding-top: 8px; animation: in .4s var(--ease) both; }
.ring { position: relative; width: 168px; height: 168px; margin: 8px auto 18px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring .track { stroke: rgba(255, 255, 255, .08); }
.ring .val { stroke: var(--ac); stroke-linecap: round; transition: stroke-dashoffset 1.1s var(--ease); }
.ring .num { position: absolute; inset: 0; display: grid; place-content: center; }
.ring .num b { font-size: 44px; font-weight: 800; line-height: 1; }
.ring .num span { color: var(--text2); font-size: 14px; margin-top: 4px; }
.result h2 { font-size: 26px; }
.result .lead { margin: 8px auto 0; max-width: 26em; }
.result-actions { display: grid; gap: 10px; margin-top: 22px; }
.btn-next { justify-content: space-between; text-align: left; padding: 10px 18px; line-height: 1.25; }
.btn-next small { display: block; font-size: 12px; font-weight: 600; opacity: .75; text-transform: uppercase; letter-spacing: .06em; }
.result-actions .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.review { text-align: left; margin-top: 30px; }
.review h3, .recap h3 { font-size: 18px; margin-bottom: 10px; }
.review ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.review li { padding: 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.review .rq { font-weight: 600; }
.review .ra { color: var(--ok); margin-top: 6px; font-size: 15px; }
.review .re { color: var(--text2); margin-top: 4px; font-size: 14px; }
.recap { text-align: left; margin-top: 26px; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--ac) 9%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 35%, var(--line)); }
.recap ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.recap li { position: relative; padding-left: 22px; }
.recap li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 3px; background: var(--ac); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 10px 16px; border-radius: 12px; background: var(--card2); box-shadow: 0 10px 30px rgba(0, 0, 0, .4), inset 0 0 0 1px var(--line); font-size: 14px; z-index: 20; animation: in .25s var(--ease) both; }

/* ---------- Textseiten ---------- */
.text { padding: 28px 0 10px; }
.text h1 { font-size: 30px; margin-bottom: 18px; }
.text h2 { font-size: 18px; margin: 24px 0 8px; }
.text p { color: var(--text2); margin-bottom: 10px; }
.text.center { text-align: center; padding-top: 60px; }
.text.center .btn { margin-top: 14px; }

/* ---------- Fuß ---------- */
.foot { width: 100%; max-width: var(--max); margin: 40px auto 0; padding: 28px var(--gut) calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 14px; }
.foot-claim { color: var(--text2); max-width: 26em; margin: 0 auto 12px; }
.social-lg { justify-content: center; gap: 10px; margin-bottom: 16px; }
.social-lg a { width: 48px; height: 48px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); border-radius: 14px; }
.social-lg svg { width: 22px; height: 22px; }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a { color: var(--text2); text-decoration: none; padding: 6px 0; }
.foot-links a:hover { color: var(--text); }
.foot-copy { margin-top: 10px; font-size: 13px; }

@keyframes in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

@media (min-width: 560px) {
  .list-head { flex-direction: row; align-items: center; justify-content: space-between; }
  .search { width: 260px; }
  .intro-grid { grid-template-columns: 150px 1fr; gap: 22px; }
  .intro-img { width: 150px; height: 267px; }
  .hero-logo { width: 150px; height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
