/* Aprenti Web-Quiz: gleiche Sprache wie die Startseite (Archivo, Inter, Vollfarbe) */
@font-face { font-family: Archivo; src: url('/fonts/Archivo_800ExtraBold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Inter; src: url('/fonts/Inter_500Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url('/fonts/Inter_700Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #FFFFFF; --soft: #F3F4F6; --card: #FFFFFF; --ink: #17181C; --ink2: #555A66; --muted: #6E7480; --line: #E9EBEF; --line2: #DDE0E6;
  --orange: #C94E00; --orange-d: #8E3600; --orange-s: #FFE6D6;
  --green: #14803C; --green-d: #0C5627; --green-s: #E3F7E8;
  --red: #C9252B; --red-d: #8E161B; --red-s: #FDE9EA;
  --blue: #0B6BBF; --blue-d: #084A85; --blue-s: #E8F4FE;
  --gold: #F2B705; --gold-s: #FFF6CF;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.5 Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--blue); }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }

/* Kopf */
.top { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.logo img { width: 32px; height: 32px; border-radius: 9px; }
.top a.hub { font-weight: 700; font-size: 14.5px; color: var(--ink2); text-decoration: none; }

/* Start */
.hero { position: relative; padding: 18px 0 8px; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.hero .kicker { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.hero h1 { font-size: clamp(30px, 7.4vw, 44px); }
.hero .sub { color: var(--ink2); font-size: 17px; margin-top: 10px; }
.hero .fig { width: clamp(108px, 30vw, 170px); margin-right: -8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 12px; border: 2px solid var(--line2); font-weight: 700; font-size: 14px; color: var(--ink2); }
.duel { margin: 16px 0 0; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--blue); color: #fff; }
.duel b { font-weight: 700; font-size: 30px; font-variant-numeric: tabular-nums; }
.duel p { font-weight: 700; font-size: 15.5px; line-height: 1.35; }

/* 3D-Knopf wie in der App */
.btn { appearance: none; border: 0; cursor: pointer; width: 100%; height: 54px; border-radius: 16px; font: 700 16.5px Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--orange); box-shadow: 0 4px 0 var(--orange-d); transition: transform .06s, box-shadow .06s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--orange-d); }
.btn:disabled { background: var(--line2); box-shadow: 0 4px 0 var(--line); color: #5F6570; cursor: default; transform: none; }
.btn.green { background: var(--green); box-shadow: 0 4px 0 var(--green-d); }
.btn.green:active { box-shadow: 0 0 0 var(--green-d); }
.btn.red { background: var(--red); box-shadow: 0 4px 0 var(--red-d); }
.btn.red:active { box-shadow: 0 0 0 var(--red-d); }
.btn.blue { background: var(--blue); box-shadow: 0 4px 0 var(--blue-d); }
.btn.blue:active { box-shadow: 0 0 0 var(--blue-d); }
.btn.ghost { background: transparent; color: var(--ink2); box-shadow: none; border: 2px solid var(--line2); }
.start { margin: 20px 0 8px; }

/* Quiz */
#quiz[hidden], #result[hidden], #intro[hidden] { display: none; }
.qbar { display: flex; align-items: center; gap: 12px; height: 56px; }
.qbar button.x { appearance: none; background: none; border: 0; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; padding: 4px; }
.bar { flex: 1; height: 16px; border-radius: 8px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 4%; border-radius: 8px; background: var(--green); position: relative; transition: width .35s cubic-bezier(.2,.9,.3,1.2); }
.bar i::after { content: ''; position: absolute; left: 8px; right: 8px; top: 3px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); }
.topic { font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-top: 6px; }
.ask { display: flex; align-items: flex-end; gap: 6px; margin: 14px 0 18px; }
.ask img { width: 96px; flex: none; margin-left: -6px; }
.bubble { position: relative; flex: 1; border: 2px solid var(--line2); border-radius: 18px; padding: 13px 15px; background: var(--bg); font-weight: 700; font-size: 18px; line-height: 1.35; margin-bottom: 34px; }
.bubble::before { content: ''; position: absolute; left: -9px; bottom: 18px; width: 14px; height: 14px; background: var(--bg); border-left: 2px solid var(--line2); border-bottom: 2px solid var(--line2); transform: rotate(45deg); }
.opts { display: grid; gap: 10px; }
.opts.tf { grid-template-columns: 1fr 1fr; }
.opt { appearance: none; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line2); border-bottom-width: 4px; background: var(--card); color: var(--ink); font: 700 16.5px/1.3 Inter, sans-serif; transition: transform .06s; }
.opt:active { transform: translateY(2px); border-bottom-width: 2px; margin-bottom: 2px; }
.opt .k { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--line2); display: grid; place-items: center; font-size: 13px; color: var(--muted); }
.opts.tf .opt { flex-direction: column; justify-content: center; text-align: center; min-height: 96px; font-weight: 700; }
.opts.tf .opt .ico { font-size: 28px; line-height: 1; }
.opt.sel { border-color: var(--blue); background: var(--blue-s); color: var(--blue); }
.opt.sel .k { border-color: var(--blue); color: var(--blue); }
.opt.ok { border-color: var(--green); background: var(--green-s); color: var(--green); }
.opt.bad { border-color: var(--red); background: var(--red-s); color: var(--red); }
.opt[disabled] { cursor: default; }
.foot { position: sticky; bottom: 0; padding: 14px 0 calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 22%); margin-top: 18px; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; border-radius: 24px 24px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .32s cubic-bezier(.2,.9,.3,1.1); }
.sheet.on { transform: none; }
.sheet .in { max-width: 640px; margin: 0 auto; display: grid; gap: 6px; }
.sheet.ok { background: var(--green-s); } .sheet.bad { background: var(--red-s); }
.sheet h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.sheet h3 i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 18px; }
.sheet.ok h3 { color: var(--green); } .sheet.ok h3 i { background: var(--green); }
.sheet.bad h3 { color: var(--red); } .sheet.bad h3 i { background: var(--red); }
.sheet .lbl { font-weight: 700; font-size: 12.5px; letter-spacing: .08em; color: var(--red); margin-top: 2px; }
.sheet .sol { font-weight: 700; font-size: 17px; color: var(--red); }
.sheet .why { font-weight: 500; font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.sheet .btn { margin-top: 10px; }

/* Ergebnis */
.res { text-align: center; padding: 10px 0 8px; }
.res .fig { width: 170px; margin: 6px auto 0; animation: pop .5s cubic-bezier(.2,1.4,.4,1) both; }
.res .score { font-weight: 700; font-size: clamp(64px, 20vw, 92px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.res .of { color: var(--ink2); font-weight: 700; font-size: 16px; }
.res h2 { font-size: 28px; margin-top: 14px; }
.res .say { color: var(--ink2); margin: 8px auto 0; max-width: 30em; }
.gauge { position: relative; height: 18px; border-radius: 9px; background: var(--line); margin: 22px 0 8px; overflow: visible; }
.gauge i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 9px; width: 0; transition: width 1s cubic-bezier(.2,.9,.3,1); }
.gauge b { position: absolute; left: 50%; top: -6px; bottom: -6px; width: 3px; border-radius: 2px; background: var(--ink); }
.gauge span { position: absolute; left: 50%; top: 26px; transform: translateX(-50%); font-weight: 700; font-size: 12.5px; color: var(--ink2); white-space: nowrap; }
.versus { margin-top: 30px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.versus div { border-radius: 16px; padding: 12px; background: var(--soft); }
.versus div b { display: block; font-weight: 700; font-size: 30px; font-variant-numeric: tabular-nums; }
.versus em { font-style: normal; font-weight: 700; color: var(--muted); }
.actions { display: grid; gap: 14px; margin: 26px 0 10px; }
.nm { height: 50px; border-radius: 14px; border: 2px solid var(--line2); background: var(--bg); color: var(--ink); padding: 0 14px; font: 700 16px Inter, sans-serif; text-align: center; }
.cta { margin: 26px 0 8px; padding: 18px; border-radius: 20px; background: var(--soft); text-align: left; display: grid; gap: 10px; }
.cta h3 { font-size: 21px; }
.cta p { color: var(--ink2); font-size: 15.5px; }
.cta > * { min-width: 0; }
.cta form { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.cta input { flex: 1 1 170px; min-width: 0; height: 50px; border-radius: 14px; border: 2px solid var(--line2); background: var(--bg); color: var(--ink); padding: 0 14px; font: 700 16px Inter, sans-serif; }
.cta form .btn { flex: 1 0 auto; width: auto; padding: 0 18px; height: 50px; font-size: 14px; }
.cta .done { font-weight: 700; color: var(--green); }

/* Inhalt für Leser und Suchmaschine */
section.more { margin: 44px 0 0; display: grid; gap: 14px; }
section.more h2 { font-size: 26px; }
section.more p { color: var(--ink2); }
.lf { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lf li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 14px; border: 2px solid var(--line); font-weight: 700; }
.lf li span { color: var(--muted); font-weight: 700; font-size: 14px; white-space: nowrap; }
details.ex { border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; }
details.ex summary { cursor: pointer; font-weight: 700; list-style: none; }
details.ex summary::-webkit-details-marker { display: none; }
details.ex summary::after { content: ' Lösung zeigen'; color: var(--blue); font-weight: 700; font-size: 14px; }
details.ex[open] summary::after { content: ''; }
details.ex ul { margin: 10px 0 6px; padding-left: 18px; color: var(--ink2); }
details.ex .a { font-weight: 700; color: var(--green); margin-top: 6px; }
details.ex .w { color: var(--ink2); font-size: 15.5px; margin-top: 4px; }
.faq h3 { font-size: 18px; margin-top: 6px; }
.others { display: flex; flex-wrap: wrap; gap: 8px; }
.others a { text-decoration: none; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--line2); color: var(--ink); font-weight: 700; font-size: 14.5px; }
footer { margin: 50px 0 30px; display: flex; flex-wrap: wrap; gap: 18px; font-weight: 700; font-size: 14px; }
footer a { color: var(--ink2); text-decoration: none; }

/* Übersicht */
.hubgrid { display: grid; gap: 10px; margin-top: 12px; }
.hubgrid a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line2); border-bottom-width: 4px; text-decoration: none; color: var(--ink); font-weight: 700; }
.hubgrid a span { color: var(--muted); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.hub h2 { font-size: 20px; margin-top: 28px; color: var(--ink2); }

@keyframes pop { from { transform: scale(.4) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes shake { 0%,100% { transform: none; } 20% { transform: translateX(-9px); } 40% { transform: translateX(9px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); } }
.rise { animation: rise .35s cubic-bezier(.2,.9,.3,1.15) both; }
.shake { animation: shake .32s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ── Look der Startseite ── */
body { overflow-x: clip; background: var(--bg); }
.wrap { max-width: 1040px; padding: 0 max(20px, env(safe-area-inset-left)); }
h1, h2, h3, .score, .versus div b, .duel b { font-family: Archivo, system-ui, sans-serif; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
:root { --hc: #F05A00; --ht: #fff; --hs: #17181C; }
body > .wrap:first-child { max-width: none; background: var(--hc); } body.run > .wrap:first-child { background: none; } .top { max-width: 1000px; margin: 0 auto; height: 72px; } .logo { font: 800 24px Archivo, sans-serif; } .logo img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 0 0 2px #fff; } body:not(.run) .top a { color: var(--hs); } .top a.hub { font-size: 16px; color: inherit; text-decoration: underline; text-underline-offset: 4px; }
#intro, main > .hero { position: relative; margin: 0 calc(50% - 50vw); padding: 20px calc(50vw - 50%) 96px; background: var(--hc); color: var(--hs); overflow: hidden; }
#intro .hero { position: static; display: block; padding: 0; } main > .hero { display: block; }
.hero > div { max-width: 600px; } #intro .chips, #intro .start, #intro .duel { max-width: 520px; }
.hero .kicker { color: inherit; opacity: .85; font: 700 15px Inter, sans-serif; letter-spacing: 0; text-transform: none; } .hero h1 { font-size: clamp(38px, 5.6vw, 66px); line-height: 1.02; color: var(--ht); hyphens: manual; overflow-wrap: break-word; } .hero .sub { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.45; color: inherit; margin-top: 18px; max-width: 27em; }
.hero .fig { position: absolute; right: max(24px, calc(50vw - 520px)); bottom: 8px; height: 400px; width: auto; max-width: none; margin: 0; animation: figin .7s .1s cubic-bezier(.25,1.35,.4,1) both; } @keyframes figin { from { translate: 0 110%; } }
.chips { margin: 24px 0 0; } .chip { border: 0; border-radius: 99px; padding: 8px 15px; background: color-mix(in srgb, var(--hs) 12%, transparent); color: inherit; font-size: 15px; font-weight: 700; }
#intro .btn { background: #17181C; color: #fff; box-shadow: 0 5px 0 #000; height: 64px; font-size: 19px; } #intro .btn:active { box-shadow: none; transform: translateY(5px); }
.btn { letter-spacing: 0; text-transform: none; font: 700 18px Inter, sans-serif; height: 58px; border-radius: 18px; } .duel { background: #fff; color: var(--ink); border-radius: 22px; } .duel b { color: var(--orange); font-size: 46px; }
#more, main.hub > .hero ~ .list, main > .hero + section { position: relative; }
#more, .list { margin: -44px calc(50% - 50vw) 0; padding: 12px calc(50vw - 50%) 0; background: #fff; border-radius: 44px 44px 0 0; position: relative; }
#result:not([hidden]) ~ #more { margin-top: 0; border-radius: 0; }
#quiz, #result { max-width: 620px; margin: 0 auto; } #quiz { padding-top: 4px; }
.topic { text-transform: none; letter-spacing: 0; font: 700 14px Inter, sans-serif; color: var(--blue); } .bubble { font-size: 19px; border-color: var(--line2); } .ask img { width: 112px; } .opt { border-radius: 18px; min-height: 62px; font-weight: 700; font-size: 17px; } .opt .k { border-radius: 10px; } .opt.ok { animation: yes .4s; } @keyframes yes { 40% { transform: scale(1.03); } }
@media (hover: hover) { .opt:not([disabled]):not(.sel):hover { background: #F6F8FB; border-color: #C9D3DE; } .btn:not(:disabled):hover { filter: brightness(1.1); } }
.bar i { background: linear-gradient(#FF8A3D 0 38%, #F05A00 38%); } .bar i::after { display: none; } .qbar button.x { min-width: 44px; min-height: 44px; font-size: 32px; color: var(--ink2); }
.sheet.on { box-shadow: 0 -12px 40px rgba(0,0,0,.12); } .sheet h3 { font-size: 27px; } .sheet .lbl { letter-spacing: 0; font-size: 14px; } .sheet .why { font-weight: 500; font-size: 16.5px; } .sheet .in { max-width: 580px; }
.res .fig { width: auto; height: 220px; } .arc { position: relative; max-width: 380px; margin: 6px auto 0; } .arc svg { display: block; width: 100%; } .arc .score { position: absolute; left: 0; right: 0; bottom: -4px; font-size: clamp(84px, 22vw, 116px); } .res .of { margin-top: 10px; font-weight: 700; } .res h2 { font-size: clamp(34px, 6vw, 46px); } .res .say { font-size: 18px; }
.cta { background: #FFE9DC; border-radius: 28px; padding: 26px; } .cta h3 { font-size: 27px; } .cta p { color: var(--ink); font-size: 17px; } .cta a.btn { background: #17181C; box-shadow: 0 5px 0 #000; }
section.more { margin-top: 64px; gap: 18px; } section.more h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.028em; } section.more > p { max-width: 42em; font-size: 18px; }
.lf { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 10px; } .lf li { border: 0; background: var(--soft); border-radius: 18px; padding: 15px 18px; align-items: baseline; } .lf li span { color: var(--ink2); font-size: 14px; font-weight: 500; }
details.ex { border: 0; background: var(--soft); border-radius: 20px; padding: 18px 20px; } details.ex summary { font-size: 18px; } details.ex[open] { background: var(--green-s); } details.ex .a { font-size: 17px; }
.others a { border: 0; background: var(--soft); border-radius: 99px; padding: 11px 18px; font-size: 16px; font-weight: 700; } .others a:hover { background: var(--ink); color: #fff; } .faq h3 { font-size: 21px; margin-top: 14px; letter-spacing: -.015em; }
footer { margin: 80px calc(50% - 50vw) 0; padding: 36px calc(50vw - 50%) 44px; background: #17181C; font-size: 16px; gap: 10px 24px; } footer a { color: #fff; font-weight: 500; }
/* Übersicht */
.find { margin: 26px 0 0; max-width: 480px; } .find input { width: 100%; border: 0; border-radius: 18px; padding: 20px 22px; font: 700 18px Inter, sans-serif; color: var(--ink); background: #fff; } .find input::placeholder { color: #6E7480; }
.hub h2 { font-size: clamp(26px, 3.4vw, 36px); color: var(--ink); margin: 0 0 4px; } .grp { padding-top: 44px; } .hubgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 12px; } .hubgrid a { border: 0; background: var(--soft); border-radius: 20px; padding: 18px 20px; min-height: 76px; font-weight: 700; font-size: 17px; line-height: 1.3; transition: background .12s, color .12s, transform .12s; } .hubgrid a span { font-weight: 500; color: var(--ink2); } @media (hover: hover) { .hubgrid a:hover { background: var(--hc); color: var(--ht); transform: translateY(-2px); } .hubgrid a:hover span { color: inherit; } } .none { padding: 40px 0 0; font-size: 18px; }
:focus-visible { outline: 4px solid #17181C; outline-offset: 3px; }
@media (max-width: 860px) { .hero .fig { right: 50%; translate: 50% 0; height: 270px; animation: figin2 .7s .1s cubic-bezier(.25,1.35,.4,1) both; } @keyframes figin2 { from { translate: 50% 110%; } } #intro, main > .hero { padding-top: 10px; padding-bottom: 330px; } main.klein > .hero .fig, .hub .hero .fig { display: none; } .hub > .hero, main.klein > .hero { padding-bottom: 92px; } }
@media (max-width: 860px) and (max-height: 760px) { .hero .fig { height: 220px; } #intro { padding-bottom: 270px; } }
main > .hero + section.more { margin: -44px calc(50% - 50vw) 0; padding: 56px calc(50vw - 50%) 0; background: #fff; border-radius: 44px 44px 0 0; position: relative; } #more > section.more:first-child { margin-top: 44px; } section.more > .btn { max-width: 420px; }
@media (max-width: 860px) { .hub .hero .fig { display: none; } }
.hubgrid a { flex-wrap: wrap; font-size: 16px; padding: 16px 18px; gap: 4px 10px; align-content: center; }

/* Volle Breite per 100vw zählt die Scrollleiste mit: nie seitlich scrollen lassen */
html, body { overflow-x: clip; }
