/* Berufs-Finder – Stele 1080 × 1920 (Hochformat), wird auf jede Bildschirmgröße skaliert */
@font-face { font-family: "Clash Grotesk"; src: url(assets/fonts/ClashGrotesk-Regular.woff2) format("woff2"); font-weight: 400; }
@font-face { font-family: "Clash Grotesk"; src: url(assets/fonts/ClashGrotesk-Medium.woff2) format("woff2"); font-weight: 500; }
@font-face { font-family: "Clash Grotesk"; src: url(assets/fonts/ClashGrotesk-Semibold.woff2) format("woff2"); font-weight: 600; }

:root {
  --accent: #085aff; --accent-2: #8ab1ff; --navy: #001730; --navy-1: #0d3a72; --navy-2: #031a36;
  --white: #fafcff; --fg-2: rgba(250,252,255,.78); --fg-3: rgba(250,252,255,.5);
  --card: rgba(250,252,255,.07); --card-2: rgba(250,252,255,.12); --line: rgba(250,252,255,.16);
  --font: "Clash Grotesk", "Helvetica Neue", Arial, sans-serif; --cut: 28px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
body { font-family: var(--font); color: var(--white); -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

#stage { position: absolute; left: 50%; top: 50%; width: 1080px; height: 1920px; overflow: hidden;
  transform-origin: 50% 50%; background: linear-gradient(165deg, var(--navy-1), var(--navy-2) 62%); }
.bg i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; animation: drift 22s ease-in-out infinite alternate; }
.bg i:nth-child(1) { width: 700px; height: 700px; background: var(--accent); left: -260px; top: 180px; }
.bg i:nth-child(2) { width: 560px; height: 560px; background: #3d82ff; right: -240px; top: 960px; animation-delay: -8s; opacity: .3; }
.bg i:nth-child(3) { width: 480px; height: 480px; background: #0a2c5c; left: 260px; bottom: -200px; animation-delay: -14s; opacity: .8; }
@keyframes drift { to { transform: translate(120px, -90px) scale(1.15); } }

.cut { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }

/* Kopfzeile */
.bar { position: absolute; top: 0; left: 0; right: 0; height: 132px; padding: 0 64px; display: flex; align-items: center;
  justify-content: space-between; z-index: 5; }
.logo { display: flex; align-items: center; gap: 18px; }
.logo .mark { width: 54px; height: 54px; background: var(--white); clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px); position: relative; }
.logo .mark::after { content: ""; position: absolute; inset: 15px; background: var(--accent); clip-path: inherit; }
.logo b { display: block; font: 600 30px/1 var(--font); }
.logo small { display: block; font: 500 19px/1 var(--font); color: var(--fg-3); letter-spacing: .12em; text-transform: uppercase; margin-top: 7px; }
.icon-btn { width: 78px; height: 78px; border-radius: 50%; background: var(--card); display: grid; place-items: center; }
.icon-btn svg { width: 36px; height: 36px; }
.icon-btn.on { background: var(--accent); }

/* Screens */
.screen { position: absolute; inset: 132px 0 0; padding: 0 64px 64px; display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transform: translateY(30px); transition: opacity .45s, transform .45s; }
.screen.on { opacity: 1; pointer-events: auto; transform: none; }

h1 { font: 500 112px/0.98 var(--font); letter-spacing: -.03em; margin: 0; }
h1 em, h2 em { font-style: normal; color: var(--accent-2); }
h2 { font: 500 66px/1.06 var(--font); letter-spacing: -.02em; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 16px; font: 600 24px/1 var(--font); letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-2); }
.eyebrow::before { content: ""; width: 44px; height: 4px; background: currentColor; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 16px; height: 108px; padding: 0 52px;
  font: 500 36px/1 var(--font); border-radius: 0; transition: transform .12s, background .2s;
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%, 0 20px); }
.btn:active { transform: scale(.97); }
.btn svg { width: 38px; height: 38px; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 20px 50px -20px var(--accent); }
.btn.ghost { background: var(--card); color: var(--fg-2); }
.btn.huge { height: 150px; font-size: 52px; padding: 0 90px; }
.btn[disabled] { opacity: .35; }

/* Nano */
.nano svg { width: 100%; height: 100%; display: block; overflow: visible; }
.nano.big { width: 400px; height: 413px; }
.nano.small { width: 150px; height: 155px; flex: none; }
.nano .fig { animation: bob 3.2s ease-in-out infinite; transform-origin: 60px 120px; }
.nano .eye { animation: blink 5s infinite; transform-box: fill-box; transform-origin: center; }
.nano .tip { animation: glow 2.4s ease-in-out infinite; }
.nano .m-open { opacity: 0; }
.nano.talk .m-open { animation: mouth .26s steps(1) infinite; }
.nano.talk .m-closed { animation: mouth .26s steps(1) infinite reverse; }
.nano.think .pupils { animation: look 1.6s ease-in-out infinite; }
.nano.wave .arm-r { animation: wave 1s ease-in-out 3; transform-origin: 105px 57px; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-1.5deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes glow { 50% { fill: #8ab1ff; } }
@keyframes mouth { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes look { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
@keyframes wave { 50% { transform: rotate(-25deg); } }

.bubble { position: relative; background: var(--white); color: var(--navy); font: 500 34px/1.3 var(--font);
  padding: 30px 36px; border-radius: 34px; min-height: 104px; }
.nano-row { display: flex; align-items: center; gap: 30px; }
.nano-row .bubble { flex: 1; border-bottom-left-radius: 6px; }
.nano-row .bubble::before { content: ""; position: absolute; left: -18px; bottom: 26px; border: 14px solid transparent;
  border-right: 22px solid var(--white); border-left: 0; }
.bubble:empty { visibility: hidden; }

/* Start */
#s-start { align-items: center; text-align: center; }
.start-nano { margin-top: 200px; }
.nano.big .fig { animation-duration: 3.6s; }
.start-bubble { position: absolute; top: 110px; right: 64px; max-width: 360px; text-align: left; border-bottom-left-radius: 6px; font-size: 32px; }
#s-start h1 { margin-top: 90px; }
.facts { display: flex; gap: 14px; margin-top: 52px; }
.facts span { font: 500 28px/1 var(--font); padding: 18px 28px; border: 2px solid var(--line); border-radius: 99px; color: var(--fg-2); }
#go { margin-top: 110px; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 26px rgba(8,90,255,0), 0 20px 50px -20px var(--accent); transform: scale(1.03); } }
.tick-label { position: absolute; left: 0; right: 0; bottom: 190px; font: 600 24px/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); }
.ticker { position: absolute; left: 0; right: 0; bottom: 70px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.ticker > div { display: flex; gap: 20px; width: max-content; animation: tick 45s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 14px; font: 500 28px/1 var(--font); padding: 20px 28px;
  background: var(--card); color: var(--fg-2); white-space: nowrap; }
.ticker svg { width: 32px; height: 32px; color: var(--accent-2); }
@keyframes tick { to { transform: translateX(-50%); } }

/* Fragen */
.progress { display: flex; gap: 10px; margin-top: 8px; }
.progress i { flex: 1; height: 10px; background: var(--card-2); transition: background .3s; }
.progress i.done { background: var(--accent-2); }
.progress i.now { background: var(--white); }
#s-quiz .nano-row { margin-top: 50px; }
.qnum { margin-top: 56px; font: 600 24px/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); }
#qtext { margin-top: 20px; min-height: 140px; }
#answers { margin-top: 44px; flex: 1; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.opt { position: relative; background: var(--card); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  text-align: left; padding: 44px; min-height: 420px; font: 500 40px/1.15 var(--font); transition: background .2s, transform .15s;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); animation: pop .4s backwards; }
.opt .ic { width: 96px; height: 96px; display: grid; place-items: center; background: var(--card-2); color: var(--accent-2); }
.opt .ic svg { width: 54px; height: 54px; }
.opt:active { transform: scale(.97); }
.opt.sel { background: var(--accent); }
.opt.sel .ic { background: rgba(255,255,255,.18); color: #fff; }
.opt.sel::after { content: ""; position: absolute; top: 30px; right: 30px; width: 52px; height: 52px; border-radius: 50%; background: #fff
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23085aff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/32px no-repeat; }
.grid.pair .opt { min-height: 780px; justify-content: center; align-items: center; text-align: center; gap: 50px; font-size: 46px; }
.grid.pair .opt .ic { width: 210px; height: 210px; }
.grid.pair .opt .ic svg { width: 120px; height: 120px; }
.extra { display: block; width: 100%; margin-top: 28px; height: 110px; background: var(--card); font: 500 36px/1 var(--font); color: var(--fg-2);
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%, 0 20px); }
.extra.sel { background: var(--accent); color: #fff; }
.grid.multi { gap: 22px; }
.grid.multi .opt { min-height: 176px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 26px; padding: 26px 30px; font-size: 34px; }
.grid.multi .opt .ic { width: 84px; height: 84px; flex: none; }
.grid.multi .opt .ic svg { width: 46px; height: 46px; }
.grid.multi .opt.sel::after { top: 50%; margin-top: -22px; right: 22px; width: 44px; height: 44px; background-size: 26px; }
.multi-hint { margin-top: 24px; font: 500 28px/1 var(--font); color: var(--fg-3); }
@keyframes pop { from { opacity: 0; transform: translateY(24px); } }
.grid .opt:nth-child(2) { animation-delay: .06s; } .grid .opt:nth-child(3) { animation-delay: .12s; } .grid .opt:nth-child(4) { animation-delay: .18s; }
.grid .opt:nth-child(5) { animation-delay: .24s; } .grid .opt:nth-child(6) { animation-delay: .3s; } .grid .opt:nth-child(7) { animation-delay: .36s; } .grid .opt:nth-child(8) { animation-delay: .42s; }

/* Regler */
.slider { padding: 120px 30px 0; }
.track { position: relative; height: 150px; touch-action: none; }
.track .rail { position: absolute; left: 0; right: 0; top: 63px; height: 24px; background: var(--card-2); border-radius: 12px; }
.track .fill { position: absolute; left: 0; top: 63px; height: 24px; background: var(--accent); border-radius: 12px; }
.track .stop { position: absolute; top: 55px; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; background: var(--navy-1); border: 4px solid var(--card-2); }
.track .knob { position: absolute; top: 15px; width: 120px; height: 120px; margin-left: -60px; border-radius: 50%; background: #fff;
  box-shadow: 0 16px 40px -10px rgba(0,0,0,.6), 0 0 0 14px rgba(8,90,255,.35); transition: left .25s; display: grid; place-items: center; color: var(--accent); }
.track.drag .knob { transition: none; }
.track .knob svg { width: 56px; height: 56px; }
.ends { display: flex; justify-content: space-between; margin-top: 40px; font: 500 34px/1.2 var(--font); color: var(--fg-2); }
.ends span { max-width: 380px; } .ends span:last-child { text-align: right; }
.slider .val { text-align: center; margin-top: 90px; font: 500 52px/1.1 var(--font); }

.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }
.quiz-nav .btn.ghost { padding: 0 40px; }

/* Rechnen */
#s-calc { align-items: center; justify-content: center; text-align: center; gap: 60px; padding-bottom: 260px; }
.dots { display: flex; gap: 22px; }
.dots i { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-2); animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-20px); opacity: .4; } }

/* Ergebnis */
.r-head { margin-top: 10px; }
.match { margin-top: 30px; background: var(--white); color: var(--navy); padding: 50px 54px 46px; --cut: 40px; animation: rise .7s cubic-bezier(.2,.9,.3,1.2) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(60px) scale(.96); } }
.match .top { display: flex; align-items: center; gap: 40px; }
.match .ic { width: 168px; height: 168px; flex: none; display: grid; place-items: center; background: var(--accent); color: #fff;
  clip-path: polygon(30px 0, 100% 0, 100% 100%, 0 100%, 0 30px); }
.match .ic svg { width: 96px; height: 96px; }
.match .name { flex: 1; font: 500 58px/1.05 var(--font); letter-spacing: -.02em; }
.ring { width: 160px; height: 160px; flex: none; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 44px/1 var(--font); color: var(--accent); }
.ring b small { display: block; font: 500 17px/1 var(--font); color: rgba(0,23,48,.5); letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; text-align: center; }
.match .kurz { margin-top: 32px; font: 400 34px/1.35 var(--font); color: rgba(0,23,48,.78); }
.match .why { margin-top: 26px; padding-top: 24px; border-top: 2px solid rgba(0,23,48,.1); }
.match .why div { position: relative; padding-left: 50px; font: 500 30px/1.3 var(--font); margin-top: 12px; }
.match .why div::before { content: ""; position: absolute; left: 0; top: 4px; width: 32px; height: 32px; background: var(--accent);
  clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%, 0 9px); }
.match .why div::after { content: ""; position: absolute; left: 9px; top: 13px; width: 13px; height: 7px; border: solid #fff; border-width: 0 0 4px 4px; transform: rotate(-45deg); }

.nano-panel { margin-top: 40px; }
.nano-panel .bubble { font-size: 31px; min-height: 150px; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.chip { height: 92px; padding: 0 26px; background: var(--card); font: 500 28px/1.15 var(--font); color: var(--white); text-align: left;
  display: flex; align-items: center; gap: 16px; border: 2px solid var(--line); border-radius: 46px; }
.chip svg { width: 32px; height: 32px; flex: none; color: var(--accent-2); }
.chip.on { background: var(--accent); border-color: var(--accent); }
.chip.on svg { color: #fff; }

.alts-head { margin-top: 44px; font: 600 24px/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); }
.alts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.alt { display: flex; align-items: center; gap: 24px; padding: 26px 28px; background: var(--card); text-align: left;
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%, 0 20px); }
.alt .ic { width: 80px; height: 80px; flex: none; display: grid; place-items: center; background: var(--card-2); color: var(--accent-2); }
.alt .ic svg { width: 44px; height: 44px; }
.alt.best { background: var(--accent); box-shadow: 0 18px 40px -18px var(--accent); }
.alt.best .ic { background: rgba(255,255,255,.18); color: #fff; }
.alt.best small { color: #fff; }
.alt b { display: block; font: 500 29px/1.15 var(--font); }
.alt small { display: block; font: 500 24px/1 var(--font); color: var(--accent-2); margin-top: 8px; }

.r-foot { margin-top: auto; display: flex; gap: 24px; align-items: stretch; }
.qr-card { flex: 1; display: flex; gap: 30px; align-items: center; padding: 24px; background: var(--white); color: var(--navy); --cut: 22px; }
#qr { width: 190px; height: 190px; flex: none; }
#qr svg { width: 100%; height: 100%; display: block; }
.qr-card b { display: block; font: 600 34px/1.1 var(--font); }
.qr-card span { display: block; font: 400 27px/1.3 var(--font); color: rgba(0,23,48,.72); margin-top: 10px; }
.restart { height: auto; width: 230px; flex-direction: column; gap: 14px; font-size: 28px; text-align: center; padding: 0 20px; }
.restart svg { width: 54px; height: 54px; }

/* Overlays */
.overlay { position: absolute; inset: 0; background: rgba(0,10,25,.72); backdrop-filter: blur(10px); z-index: 20; display: grid; place-items: center; }
.overlay[hidden] { display: none; }
.dialog { width: 760px; background: var(--white); color: var(--navy); padding: 60px; text-align: center; --cut: 40px; animation: rise .4s backwards; }
.dialog .nano { margin: 0 auto; }
.dialog h3 { font: 500 58px/1.1 var(--font); margin: 30px 0 0; }
.dialog p { font: 400 30px/1.4 var(--font); color: rgba(0,23,48,.7); margin: 18px 0 0; }
.dialog .count { font: 600 130px/1 var(--font); color: var(--accent); margin: 34px 0; }
.dialog.wide { width: 900px; text-align: left; }
#stats-list { margin-top: 30px; }
.srow { display: grid; grid-template-columns: 1fr 260px 70px; gap: 20px; align-items: center; padding: 14px 0; border-top: 2px solid rgba(0,23,48,.08); font: 500 26px/1.2 var(--font); }
.srow i { display: block; height: 18px; background: var(--accent); }
.srow b { text-align: right; }
.dialog-btns { display: flex; justify-content: space-between; margin-top: 36px; }
.dialog-btns .btn.ghost { background: rgba(0,23,48,.07); color: var(--navy); }
