/* MASS-VOLL! – Die Schweiz 2050
   Dunkles Thema auf Basis der CI: Violett #472682, Petrol #0B8E9D, Lavendel #B7B0C8, Schrift FrutigerLT */

@font-face { font-family: 'FrutigerLT'; src: url('../assets/fonts/frutiger-200.woff2') format('woff2'); font-weight: 200; font-display: swap; }
@font-face { font-family: 'FrutigerLT'; src: url('../assets/fonts/frutiger-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'FrutigerLT'; src: url('../assets/fonts/frutiger-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'FrutigerLT'; src: url('../assets/fonts/frutiger-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --bg: #0c0518;
  --bg-2: #150a2b;
  --violet: #472682;
  --violet-m: #5b3a99;
  --violet-s: #7c66a8;
  --lav: #b7b0c8;
  --mist: #f3f0f8;
  --teal: #0b8e9d;
  --teal-l: #2bb3c2;
  --red: #da291c;
  --text: #f3f0f8;
  --muted: #a69dbd;
  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'FrutigerLT', 'Frutiger', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: clamp(17px, .9vw + 12px, 21px); line-height: 1.5; color: var(--text); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
b, strong { font-weight: 700; color: #fff; }
:focus-visible { outline: 3px solid var(--teal-l); outline-offset: 3px; }

/* ---------- Kopfzeile ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--prog, 0)); background: linear-gradient(90deg, var(--violet-s), var(--teal-l)); }
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); pointer-events: none; }
.top > * { pointer-events: auto; }
.top-logo { opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .4s var(--ease); }
.top-logo img { height: 30px; width: auto; }
body.scrolled .top-logo { opacity: 1; transform: none; }
.lang { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(12, 5, 24, .6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(183, 176, 200, .18); }
.lang button { font: 700 13px/1 var(--font); letter-spacing: .06em; color: var(--muted); background: none; border: 0; padding: 8px 11px; border-radius: 999px; cursor: pointer; transition: color .2s, background .2s; }
.lang button:hover { color: #fff; }
.lang button[aria-current="true"] { background: var(--violet); color: #fff; }

/* ---------- Szenen-Gerüst ---------- */
.scene { position: relative; height: var(--len, 300vh); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; padding: 80px var(--gutter) 40px; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; max-width: 1440px; margin: 0 auto; }
.split--rev { grid-template-columns: 1fr 1.15fr; }
.center { display: grid; place-items: center; text-align: center; }
.visual { position: relative; display: grid; place-items: center; min-height: 0; height: 100%; max-height: 78vh; }
.visual > svg, .visual > canvas { width: 100%; height: 100%; max-height: 78vh; object-fit: contain; }
.copy { display: flex; flex-direction: column; gap: .9em; max-width: 36em; }
.copy.stack { display: grid; }
.copy.stack > * { grid-area: 1 / 1; align-self: center; }

.rev { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); }
.rev.on { opacity: 1; transform: none; filter: none; }
.rev.gone { opacity: 0; transform: translateY(-28px); filter: blur(6px); }

.kicker { color: var(--muted); font-size: 1.05em; }
.mega { font-weight: 800; font-size: clamp(44px, 6.4vw, 104px); line-height: 1; letter-spacing: -.02em; background: linear-gradient(100deg, #fff 30%, var(--lav) 60%, var(--teal-l)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(22px, 1.9vw + 10px, 40px); line-height: 1.25; font-weight: 400; letter-spacing: -.005em; }
.lead b, .lead strong { font-weight: 800; }
.note { font-size: .85em; color: var(--muted); padding-left: 1em; border-left: 2px solid var(--violet-s); }
.note b { color: var(--lav); }
.bullets { list-style: none; margin: .2em 0 .4em; padding: 0; display: grid; gap: .35em; font-size: clamp(22px, 1.6vw + 10px, 34px); }
.bullets li { display: flex; gap: .6em; align-items: baseline; }
.bullets li::before { content: ''; flex: none; width: .5em; height: .5em; border-radius: 50%; background: var(--teal-l); transform: translateY(-.1em); }
.bullets li:last-child::before { background: var(--violet-s); }
.bullets b { font-weight: 800; }

/* ---------- 0 · Titel ---------- */
.hero-stage { display: grid; place-items: center; text-align: center; background: radial-gradient(ellipse 80% 60% at 50% 45%, #2a1458 0%, var(--bg) 70%); }
.hero-inner { display: grid; justify-items: center; gap: clamp(20px, 3vh, 40px); max-width: 15em; font-size: clamp(40px, 6.2vw, 110px); transform: scale(calc(1 - var(--p, 0) * .25)); opacity: calc(1 - var(--p, 0) * 1.6); filter: blur(calc(var(--p, 0) * 12px)); }
.flag { width: clamp(56px, 6vw, 92px); height: auto; border-radius: 4px; box-shadow: 0 18px 60px rgba(218, 41, 28, .35); animation: rise 1s var(--ease) both; }
.hero-inner h1 { font-weight: 800; font-size: 1em; line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; animation: rise 1s .15s var(--ease) both; }
.hero-by { display: flex; align-items: center; gap: .6em; font-size: clamp(16px, 1.2vw + 8px, 24px); color: var(--muted); animation: rise 1s .3s var(--ease) both; }
.hero-by img { height: 2.2em; width: auto; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; color: var(--muted); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: calc(1 - var(--p, 0) * 5); }
.scroll-hint i { width: 22px; height: 36px; border: 2px solid var(--muted); border-radius: 12px; position: relative; }
.scroll-hint i::after { content: ''; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--muted); animation: wheel 1.6s infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- 1 · Karte ---------- */
.ch-map { overflow: visible; }
.ch-map .canton { fill: var(--violet); stroke: var(--bg); stroke-width: 1.4; stroke-linejoin: round; transform-box: fill-box; transform-origin: 50% 50%; will-change: transform; }
.ch-map .canton:nth-child(3n) { fill: var(--violet-m); }
.ch-map .canton:nth-child(5n+1) { fill: #3d2075; }
.ch-map .lakes { fill: var(--bg); opacity: var(--lakes, 0); transition: opacity .6s; }
.ch-map .shadow { fill: none; stroke: var(--teal-l); stroke-width: 2; opacity: .25; stroke-dasharray: 6 8; }

/* ---------- 2 · Kuchendiagramm ---------- */
.pie { width: min(100%, 72vh); height: auto; overflow: visible; }
.pie circle { fill: none; stroke-width: 56; }
.pie-track { stroke: rgba(183, 176, 200, .07); }
.pie-seg { stroke-dasharray: 0 100; transition: stroke-width .5s var(--ease); }
.pie-seg.s1 { stroke: var(--mist); }
.pie-seg.s2 { stroke: var(--violet-s); }
.pie-seg.s3 { stroke: var(--violet); }
.pie-seg.sh { stroke-width: 62; filter: drop-shadow(0 0 6px rgba(43, 179, 194, .6)); }
.pie-num { font: 800 34px var(--font); fill: #fff; letter-spacing: -.02em; }
.hl { font-style: normal; font-weight: 800; color: #fff; background: linear-gradient(transparent 62%, rgba(11, 142, 157, .55) 0); }
.legend { list-style: none; padding: 0; margin: .4em 0; display: grid; gap: .55em; font-size: .95em; }
.legend li { display: grid; grid-template-columns: 1.1em 1fr auto; gap: .7em; align-items: center; }
.legend i, .callout i { width: 1.1em; height: 1.1em; border-radius: 4px; }
.legend b { font-weight: 800; font-variant-numeric: tabular-nums; }
.k1 { background: var(--mist); } .k2 { background: var(--violet-s); } .k3 { background: var(--violet); }
.kh { background: repeating-linear-gradient(45deg, #7fe3ee 0 2px, var(--teal) 2px 5px); flex: none; margin-top: .2em; }
.callout { display: flex; gap: .7em; padding: .9em 1.1em; border-radius: 14px; background: rgba(11, 142, 157, .14); border: 1px solid rgba(43, 179, 194, .4); font-size: .95em; }

/* ---------- 3 · Ältere Generation ---------- */
.dust { aspect-ratio: 900 / 760; height: auto !important; }
.big { font-size: 1.9em; line-height: 1; color: #fff; background: linear-gradient(100deg, #fff, var(--teal-l)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 4 · 11 Millionen ---------- */
.eleven { display: grid; justify-items: center; gap: clamp(14px, 2.4vh, 28px); width: 100%; max-width: 1100px; }
.eleven-num { font-weight: 800; font-size: clamp(72px, 12vw, 200px); line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.eleven-num small { font-size: .28em; letter-spacing: 0; font-weight: 700; color: var(--lav); }
.dots { display: grid; grid-template-columns: repeat(22, 1fr); gap: clamp(4px, .6vw, 9px); width: min(100%, 760px); }
.dots i { aspect-ratio: 1; border-radius: 50%; background: var(--violet-s); opacity: 0; transform: scale(.2); transition: opacity .35s, transform .35s var(--ease), background .35s; }
.dots i.on { opacity: 1; transform: none; }
.dots i.new { background: var(--teal-l); }
.dots-key { font-size: .8em; color: var(--muted); }
.narrow { max-width: 30em; }

/* ---------- 5 · Geburten ---------- */
.baby { width: min(100%, 70vh); height: auto; opacity: calc(var(--p, 0) * 6); transform: scale(calc(.86 + min(var(--p, 0) * 3, 1) * .14)); }
.baby-body { animation: breathe 4s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes breathe { 50% { transform: scale(1.015); } }
.bars { display: grid; gap: .9em; margin-top: .6em; position: relative; --max: 3.2; }
.bar { display: grid; grid-template-columns: 9.5em 1fr 2.6em; gap: .8em; align-items: center; font-size: .9em; }
.bar span { color: var(--muted); }
.track { display: block; height: 18px; border-radius: 9px; background: rgba(183, 176, 200, .08); }
.bar i { display: block; height: 100%; border-radius: 9px; background: var(--violet-s); width: calc(var(--v) / var(--max) * 100% * var(--grow, 0)); transition: width 1.2s var(--ease); }
.bar--hi i { background: var(--teal-l); }
.bar b { font-weight: 800; font-variant-numeric: tabular-nums; }
.bars.on { --grow: 1; }
.repl { position: absolute; top: -10px; bottom: -30px; left: var(--x, 50%); border-left: 2px dashed var(--lav); opacity: 0; transition: opacity .6s 1s; }
.bars.on .repl { opacity: 1; }
.repl span { position: absolute; bottom: -4px; right: 6px; white-space: nowrap; font-size: .72em; color: var(--lav); }

/* ---------- 6 · Pass ---------- */
.hands { overflow: visible; }
.pass-label { font: 700 13px var(--font); fill: #f3d28a; letter-spacing: .18em; text-transform: uppercase; }

/* ---------- 7 · Identität ---------- */
.words { font-weight: 800; font-size: clamp(40px, 6.6vw, 120px); line-height: 1.05; letter-spacing: -.03em; max-width: 13em; text-wrap: balance; }
.words .w { color: rgba(243, 240, 248, .12); transition: color .4s; }
.words .w.on { color: #fff; }
.words .w.on.acc { color: var(--teal-l); }

/* ---------- 8 · Islam ---------- */
.layers { display: grid; }
.layers > * { grid-area: 1 / 1; }
.minaret { height: 100%; width: auto; max-height: 74vh; overflow: visible; }
.bern { display: grid; justify-items: center; gap: 12px; position: relative; width: min(100%, 64vh); }
.bern-map { width: 100%; height: auto; overflow: visible; }
.bern-map path { fill: rgba(71, 38, 130, .35); stroke: var(--lav); stroke-width: 3; stroke-linejoin: round; }
.bern-moon { position: absolute; width: 22%; right: 2%; top: 4%; filter: drop-shadow(0 0 18px rgba(243, 240, 248, .5)); }
.bern-label { position: absolute; left: 0; bottom: 2%; font-weight: 700; color: var(--lav); letter-spacing: .14em; text-transform: uppercase; font-size: .8em; }
.future { display: grid; gap: clamp(28px, 6vh, 72px); max-width: 1100px; }
.q-big { font-weight: 800; font-size: clamp(30px, 4.4vw, 72px); line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
.q-acc { color: var(--teal-l); }

/* ---------- 9 · Forderungen ---------- */
.final { position: relative; padding: 18vh var(--gutter) 14vh; background: radial-gradient(ellipse 90% 70% at 50% 0%, #2a1458, var(--bg) 70%); }
.final-inner { max-width: 980px; margin: 0 auto; }
.final h2 { font-weight: 800; font-size: clamp(34px, 4.6vw, 76px); line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
.dem { margin-top: 1.6em; font-size: clamp(22px, 1.6vw + 12px, 34px); font-weight: 700; color: var(--lav); }
.brand { color: #fff; background: var(--violet); padding: .04em .32em; border-radius: 6px; }
.demands { list-style: none; counter-reset: d; padding: 0; margin: 1em 0 2em; display: grid; gap: 12px; }
.demands li { counter-increment: d; display: grid; grid-template-columns: auto 1fr; gap: 1em; align-items: center; padding: 1em 1.2em; border-radius: 16px; background: linear-gradient(90deg, rgba(71, 38, 130, .45), rgba(71, 38, 130, .12)); border: 1px solid rgba(183, 176, 200, .14); font-size: clamp(19px, 1vw + 12px, 26px); font-weight: 700; }
.demands li::before { content: counter(d, decimal-leading-zero); font-weight: 800; color: var(--teal-l); font-variant-numeric: tabular-nums; }
.cta-text { font-size: clamp(20px, 1.2vw + 12px, 30px); max-width: 30em; margin-bottom: 1.2em; }
.btn { display: inline-flex; align-items: center; gap: .6em; padding: .9em 1.7em; border-radius: 999px; background: #fff; color: var(--violet); font-weight: 800; font-size: clamp(18px, .6vw + 14px, 22px); text-decoration: none; transition: transform .2s var(--ease), background .2s, color .2s; box-shadow: 0 14px 50px rgba(124, 102, 168, .45); }
.btn svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); background: var(--teal); color: #fff; }
.io { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.io.on { opacity: 1; transform: none; }
.demands .io:nth-child(2) { transition-delay: .08s; } .demands .io:nth-child(3) { transition-delay: .16s; }
.demands .io:nth-child(4) { transition-delay: .24s; } .demands .io:nth-child(5) { transition-delay: .32s; }

.foot { padding: 40px var(--gutter) 56px; border-top: 1px solid rgba(183, 176, 200, .14); color: var(--muted); font-size: 13px; display: grid; gap: 12px; justify-items: start; max-width: 1440px; margin: 0 auto; }
.foot img { height: 28px; width: auto; }
.foot p { max-width: 70em; }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .split, .split--rev { grid-template-columns: 1fr; grid-template-rows: minmax(0, 42%) auto; align-content: center; gap: 18px; padding-top: 70px; }
  .split--rev .visual { grid-row: 1; }
  .split--rev .copy { grid-row: 2; }
  .split .visual { height: 40svh; max-height: 40svh; }
  .visual > svg, .visual > canvas { max-height: 40svh; }
  .pie, .baby, .minaret { width: auto; height: 38svh; max-height: 38svh; }
  .dust { width: auto !important; height: 40svh !important; }
  .bern { width: min(100%, 34svh); }
  .bern-label { position: static; }
  .copy { gap: .6em; }
  .lead { font-size: clamp(19px, 5vw, 26px); }
  .bullets { font-size: clamp(19px, 5vw, 26px); }
  .note { font-size: .78em; }
  .bar { grid-template-columns: 7.5em 1fr 2.4em; font-size: .8em; }
  .dots { grid-template-columns: repeat(11, 1fr); width: min(100%, 300px); }
  .legend { font-size: .82em; }
  .callout { font-size: .82em; }
  .top-logo img { height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .rev, .io, .dots i, .bar i, .words .w { transition: none; filter: none; }
  .baby-body, .flag, .hero-inner h1, .hero-by, .scroll-hint i::after { animation: none; }
}
