/* Runtime website. Light, calm, editorial: one typeface, one serif accent, lime as the only colour. */
:root {
  --bg: #F2F2EF;
  --paper: #FFFFFF;
  --well: #E8E8E4;
  --ink: #0E0E0F;
  --ink2: #5D5D59;
  --ink3: #9A9A95;
  --line: rgba(14, 14, 15, .09);
  --lime: #D2F75A;
  --lime2: #C6EE3A;
  --night: #0D0D0E;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "SF Pro Display", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pad: clamp(20px, 4.2vw, 64px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.5; letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
.mono, code, pre, .code { font-family: var(--mono); font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0; font-weight: 500; }
h2 { font-size: clamp(40px, 5.6vw, 92px); line-height: .95; letter-spacing: -.045em; }
h2 em { letter-spacing: -.02em; }
h3 { font-size: 21px; letter-spacing: -.025em; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between; padding: 28px var(--pad);
  transition: transform 1s var(--ease), opacity .4s;
}
.loader-mark { height: 22px; width: auto; align-self: flex-start; }
.loader-num { align-self: flex-end; font-size: clamp(96px, 16vw, 240px); font-weight: 300; letter-spacing: -.06em; line-height: .8; font-variant-numeric: tabular-nums; }
.loader-num small { font-size: .2em; letter-spacing: 0; margin-left: .1em; }
body.is-loaded .loader { transform: translateY(-100%); pointer-events: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 16px; left: 50%; transform: translate(-50%, -140%);
  display: flex; align-items: center; gap: 6px; padding: 6px; width: max-content; white-space: nowrap;
  background: var(--ink); color: #fff; border-radius: 999px;
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, .35);
  transition: transform .9s var(--ease) .3s;
}
body.is-loaded .nav { transform: translate(-50%, 0); }
.nav-brand { display: flex; align-items: center; padding: 0 16px 0 12px; }
.nav-brand img { height: 20px; width: auto; display: block; }
.nav-links { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.nav-links a { font-size: 14.5px; color: rgba(255, 255, 255, .72); padding: 7px 14px; border-radius: 999px; transition: background .25s, color .25s; }
.nav-links a:hover, .nav-links a.is-active { background: rgba(255, 255, 255, .14); color: #fff; }
.nav-cta {
  display: flex; align-items: center; align-self: stretch; gap: 7px; margin-left: 6px;
  background: #fff; color: var(--ink); font-weight: 600; font-size: 14.5px; padding: 0 18px 0 16px; border-radius: 999px;
  transition: transform .3s var(--ease);
}
.nav-cta svg { width: 14px; height: 16px; fill: currentColor; margin-top: -2px; }
.nav-cta:hover { transform: scale(1.04); }

/* menu open: the pill opens up with the panel. Logo slides to the panel's left edge, "Laden" and
   the close button to its right edge, and the pill's own dark fill and shadow hand over to the
   panel underneath. Only transforms and opacity move, set from the measured panel (menu.js). */
.nav::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--ink); z-index: -1; transition: opacity .3s ease .25s; }
.nav { background: transparent; isolation: isolate; }
.nav { transition: transform .9s var(--ease) .3s, box-shadow .3s ease .2s; }
.menu-closing .nav-brand, .menu-closing .nav-cta, .menu-closing .nav-menu { transition: transform .5s cubic-bezier(.65, 0, .35, 1) .08s; }
.menu-open .nav { box-shadow: none; transition: transform .9s var(--ease) .3s, box-shadow .2s ease; }
.menu-open .nav::before { opacity: 0; transition: opacity .2s ease; }
.menu-open .nav-brand { transform: translate3d(var(--menu-dx-l, 0px), 0, 0); transition: transform .72s cubic-bezier(.16, 1, .3, 1); }
.menu-open .nav-cta, .menu-open .nav-menu { transform: translate3d(var(--menu-dx-r, 0px), 0, 0); transition: transform .72s cubic-bezier(.16, 1, .3, 1); }
.menu-open .nav-cta:hover { transform: translate3d(var(--menu-dx-r, 0px), 0, 0) scale(1.04); }

/* ---------- mobile menu ---------- */
.nav-menu { display: none; position: relative; width: 40px; height: 40px; margin-left: 4px; border-radius: 50%; background: rgba(255, 255, 255, .12); transition: background .3s; }
.nav-menu:hover { background: rgba(255, 255, 255, .2); }
.nav-menu span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: #fff; transition: transform .5s var(--ease), top .5s var(--ease); }
.nav-menu span:first-child { top: 16px; }
.nav-menu span:last-child { top: 22px; right: 16px; }
.menu-open .nav-menu span:first-child { top: 19px; transform: rotate(45deg); }
.menu-open .nav-menu span:last-child { top: 19px; right: 12px; transform: rotate(-45deg); }
/* the sheet itself never fades: only the veil behind it does, so the panel can shrink back into
   the pill fully opaque and is hidden only once it has arrived there */
/* the sheet itself never fades: only the veil behind it does, so the panel can shrink back into
   the pill fully opaque and is hidden only once it has arrived there */
.menu { position: fixed; inset: 0; z-index: 49; visibility: hidden; transition: visibility 0s linear .62s; }
/* a plain veil, no backdrop blur: blurring the whole page every frame made the menu stutter on phones */
.menu::before { content: ""; position: absolute; inset: 0; background: rgba(242, 242, 239, .82); opacity: 0; transition: opacity .5s cubic-bezier(.4, 0, .2, 1); will-change: opacity; }
.menu-open .menu { visibility: visible; transition: none; }
.menu-open .menu::before { opacity: 1; }
.menu-open, .menu-open body { overflow: hidden; }
/* the panel grows out of the nav pill: it starts clipped to the pill's exact shape and place,
   and unfolds smoothly; the items bring the bounce */
.menu-panel { position: absolute; top: 10px; left: 10px; right: 10px; padding: 78px 10px 10px; background: var(--ink); color: #fff; border-radius: 30px; clip-path: var(--pill, inset(0 0 100% 0 round 30px)); transform-origin: 50% 0; will-change: clip-path; contain: layout paint; backface-visibility: hidden; transition: clip-path .5s cubic-bezier(.65, 0, .35, 1) .08s; max-height: calc(100svh - 20px); overflow-y: auto; }
.menu-open .menu-panel { clip-path: inset(0 0 0 0 round 30px); transition: clip-path .72s cubic-bezier(.16, 1, .3, 1); }
.menu-list { list-style: none; margin: 0; padding: 0 6px; }
/* items: each one rises out of a blur, one after another, with a hint of overshoot;
   the divider above it draws in from the left, the arrow slides in last */
/* only transform and opacity: the GPU moves them, nothing is repainted per frame */
.menu-list li, .menu-foot { position: relative; opacity: 0; transform: translate3d(0, 24px, 0);
  transition: opacity .45s cubic-bezier(.4, 0, .2, 1), transform .75s cubic-bezier(.22, 1.18, .36, 1); will-change: transform, opacity; }
.menu-open .menu-list li, .menu-open .menu-foot { opacity: 1; transform: translate3d(0, 0, 0); transition-delay: calc(.14s + var(--i) * .045s); }
.menu-list li + li::before { content: ""; position: absolute; top: 0; left: 10px; right: 10px; height: 1px; background: rgba(255, 255, 255, .1); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.menu-open .menu-list li + li::before { transform: none; transition-delay: calc(.2s + var(--i) * .045s); }
.menu-arrow { display: inline-block; font-size: 20px; color: rgba(255, 255, 255, .35); opacity: 0; transform: translateX(-12px); transition: transform .3s var(--ease), color .3s, opacity .3s; }
.menu-open .menu-arrow { opacity: 1; transform: none; transition: transform .6s cubic-bezier(.22, 1.18, .36, 1) calc(.3s + var(--i) * .045s), opacity .4s ease calc(.3s + var(--i) * .045s), color .3s; }
.menu-open .menu-list a:hover .menu-arrow { transform: translateX(4px); color: var(--lime); transition-delay: 0s; }
.menu-open .menu-foot { transition-property: opacity, transform; transition-timing-function: cubic-bezier(.4, 0, .2, 1), cubic-bezier(.3, 1.3, .5, 1); }
.menu-foot { transform: translate3d(0, 24px, 0) scale(.94); }
/* closing: the items leave first, quickly and together, then the panel folds back into the pill */
.menu-closing .menu-list li, .menu-closing .menu-foot { transition: opacity .16s ease-out, transform .22s ease-out; transition-delay: 0s; transform: translate3d(0, -8px, 0); }
.menu-closing .menu-list li + li::before { transition: transform .2s ease-out; transition-delay: 0s; transform: scaleX(0); }
.menu-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 10px; }
.menu-t { font-size: clamp(28px, 8vw, 40px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.menu-list a.is-active .menu-t { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--lime); }
.menu-foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 8px 8px 8px 22px; background: var(--lime); color: var(--ink); border-radius: 22px; }
.menu-cta { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 10px 0; }
.menu-cta b { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.menu-cta span { font-size: 13.5px; color: rgba(14, 14, 15, .65); }
.menu-go { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: 20px; pointer-events: none; }
.menu-foot { position: relative; }
.menu-cta::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
@media (max-width: 900px) {
  .nav-menu { display: block; }
}

/* ---------- 3D layer ---------- */
.phone-layer { position: fixed; inset: 0; width: 100vw; height: 100svh; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .8s; }
body.is-loaded .phone-layer { opacity: 1; }
.phone-layer.is-off { visibility: hidden; }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 2; height: 100svh; min-height: 560px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(96px, 15svh, 168px) var(--pad) 28px;
}
.hero h1 {
  font-size: min(8.4vw, 13.6svh, 148px, calc((100vw - 2 * var(--pad)) / 7.35)); line-height: .9; letter-spacing: -.055em; font-weight: 500;
}
.hero h1 em { letter-spacing: -.025em; padding-right: .04em; }
.hero-sub { max-width: 30em; margin: clamp(16px, 2.6svh, 28px) auto 0; color: var(--ink2); font-size: clamp(16px, 1.35vw, 19px); }
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: clamp(18px, 3svh, 32px); }
.store {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px 0 18px; border-radius: 14px;
  background: var(--ink); color: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45);
}
.store svg { width: 21px; height: 25px; fill: currentColor; margin-top: -3px; }
.store span { display: flex; flex-direction: column; line-height: 1.05; font-size: 20px; font-weight: 600; letter-spacing: -.02em; text-align: left; }
.store small { font-size: 11.5px; font-weight: 500; letter-spacing: 0; opacity: .85; }
a.store:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .5); }
.text-link { font-weight: 500; font-size: 16px; border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }
.text-link:hover { border-color: var(--lime2); }
.hero-meta {
  list-style: none; margin: auto 0 0; padding: 0; width: 100%;
  display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink2);
}

/* hero backdrop: a soft lime light behind vertical fluted glass. Two glows (bright lime, deeper
   olive) drift slowly; the flutes are one repeating gradient, every rib with a highlight and a
   shadow edge. Only transforms move, nothing is blurred per frame. */
.hero-bg { position: absolute; top: 0; left: 0; right: 0; height: 112svh; min-height: 640px; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.hero-bg i { position: absolute; display: block; }
.hb-glow { left: 50%; top: 62%; width: max(110vw, 900px); height: 88svh; margin: -44svh 0 0 calc(max(110vw, 900px) / -2); border-radius: 50%;
  background: radial-gradient(closest-side, #C6EE3A 0%, #CDF24A 30%, rgba(198, 238, 58, .7) 58%, rgba(198, 238, 58, 0) 100%);
  animation: hb-drift 18s ease-in-out infinite alternate; will-change: transform; }
.hb-deep { left: 50%; top: 74%; width: max(46vw, 420px); height: 62svh; margin: -31svh 0 0 calc(max(46vw, 420px) / -2); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(92, 128, 8, .9), rgba(110, 145, 18, .45) 55%, rgba(110, 145, 18, 0) 100%);
  animation: hb-drift2 14s ease-in-out infinite alternate; will-change: transform; }
.hb-flutes { inset: 0; --rib: clamp(14px, 1.45vw, 24px);
  background: repeating-linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, .24) calc(var(--rib) * .25),
    rgba(255, 255, 255, .06) calc(var(--rib) * .55),
    rgba(14, 14, 15, .03) calc(var(--rib) * .85),
    rgba(14, 14, 15, .06) calc(var(--rib) - 1px),
    rgba(255, 255, 255, 0) var(--rib)); }
/* paper at the very top keeps the headline crisp; the light rises from below */
.hero-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(var(--bg) 0%, rgba(242, 242, 239, .8) 20%, rgba(242, 242, 239, 0) 46%); }
.hb-flutes { z-index: 2; }
@keyframes hb-drift { from { transform: translate3d(-4%, 0, 0) scale(1); } to { transform: translate3d(4%, -3%, 0) scale(1.06); } }
@keyframes hb-drift2 { from { transform: translate3d(8%, 2%, 0); } to { transform: translate3d(-10%, -4%, 0); } }
@media (prefers-reduced-motion: reduce) { .hb-glow, .hb-deep { animation: none; } }
/* the backdrop fades as the hero scrolls away (opacity set from the scroll position in main.js) */
.hero-bg { will-change: opacity; }
/* phones: a smaller, softer light that sits right behind the phone, quieter ribs */
@media (max-width: 860px) {
  .hb-glow { top: 78%; width: 180vw; height: 66svh; margin: -33svh 0 0 -90vw;
    background: radial-gradient(closest-side, #C6EE3A 0%, rgba(205, 242, 74, .8) 32%, rgba(198, 238, 58, .3) 64%, rgba(198, 238, 58, 0) 100%); }
  .hb-deep { top: 86%; width: 86vw; height: 36svh; margin: -18svh 0 0 -43vw; opacity: .7; }
  .hb-flutes { opacity: .7; }
  .hero-bg::before { background: linear-gradient(var(--bg) 0%, rgba(242, 242, 239, .88) 36%, rgba(242, 242, 239, 0) 62%); }
}

/* ---------- story ---------- */
.story { position: relative; z-index: 2; height: 460svh; }
.story-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.story-panels { position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%); width: min(34vw, 470px); height: 60svh; }
.panel { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; pointer-events: none; }
.panel.is-active { opacity: 1; pointer-events: auto; }
.panel-num { font-size: 13.5px; font-weight: 500; color: var(--ink2); margin: 0 0 20px; }
.panel h2 { font-size: clamp(40px, 4.6vw, 76px); }
.panel p:last-child { color: var(--ink2); font-size: 17.5px; margin: 24px 0 0; max-width: 25em; }
.story-aside { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); width: min(22vw, 280px); height: 40svh; }
.aside-item { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; gap: 10px; opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .6s var(--ease); }
.aside-item.is-active { opacity: 1; transform: none; }
.aside-item small { width: 100%; font-size: 13px; color: var(--ink2); }
.mem { display: flex; flex-direction: column; gap: 6px; }
.mem span { font-size: 13px; color: var(--ink2); }
.mem b { display: grid; place-items: center; min-width: 76px; height: 66px; border-radius: 16px; background: var(--paper); font-size: 30px; font-weight: 600; box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(0, 0, 0, .3); }
.mem:first-child b { background: var(--lime); }
.aside-item q { font-size: 19px; font-weight: 500; line-height: 1.3; letter-spacing: -.02em; quotes: none; padding: 18px 20px; background: var(--lime); border-radius: 20px; }
.aside-item q .mono { font-size: .85em; }
.tour-line { display: flex; align-items: center; gap: 14px; font-size: 19px; padding: 16px 20px; border-radius: 18px; background: var(--ink); color: #fff; width: 100%; }
.tour-line i { font-style: normal; color: rgba(255, 255, 255, .35); }
.tour-line em { font-style: normal; color: var(--ink); background: var(--lime); padding: 3px 9px; border-radius: 8px; }
.gap { display: flex; align-items: center; gap: 12px; font-size: 22px; letter-spacing: -.02em; padding: 16px 20px; border-radius: 18px; background: var(--paper); width: 100%; }
.gap-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--lime2); box-shadow: 0 0 0 5px rgba(198, 238, 58, .3); }
.story-steps { position: absolute; left: var(--pad); bottom: 28px; display: flex; gap: 6px; }
.story-steps button {
  font-size: 12.5px; font-weight: 600; width: 38px; height: 28px; border-radius: 999px;
  background: var(--paper); color: var(--ink2); transition: background .3s, color .3s;
}
.story-steps button.is-active { background: var(--ink); color: #fff; }

/* ---------- more (bento) ---------- */
.more { position: relative; z-index: 3; background: var(--bg); padding: clamp(80px, 12vw, 160px) var(--pad) clamp(60px, 8vw, 120px); }
.more-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.more-head p, .kurs-head p { color: var(--ink2); font-size: 18px; max-width: 26em; margin: 0; }
.bento {
  display: grid; gap: 16px; padding: 16px; border-radius: 36px; background: var(--well);
  grid-template-columns: repeat(12, 1fr);
}
.tile { background: var(--paper); border-radius: 26px; padding: 28px; position: relative; overflow: hidden; }
.tile h3 + p, .tile header p { color: var(--ink2); margin: 8px 0 0; font-size: 15.5px; }
.tile-demo { grid-column: span 7; grid-row: span 2; display: flex; flex-direction: column; }
.tile-ask { grid-column: span 5; background: var(--lime); }
.tile-error { grid-column: span 5; }
.tile-dark { grid-column: span 4; background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; overflow: visible; }
.tile-sync, .tile-offline { grid-column: span 4; }
.tile-ico { width: 40px; height: 40px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 34px; }
.tile-ico circle { fill: var(--ink); stroke: none; }

.demo { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; margin: 24px 0 18px; flex: 1; }
.code { list-style: none; margin: 0; padding: 14px 0; background: var(--night); color: #E9E9E4; border-radius: 18px; counter-reset: ln; font-size: clamp(12.5px, 1vw, 15px); align-self: start; }
.code li { counter-increment: ln; position: relative; padding: 5px 16px 5px 52px; white-space: pre-wrap; overflow-wrap: anywhere; cursor: pointer; transition: background .25s; }
.code li::before { content: counter(ln); position: absolute; left: 16px; width: 20px; text-align: right; color: #66665F; font-size: .85em; top: 6px; }
.code li.on { background: rgba(210, 247, 90, .16); }
.code li.on::before { color: var(--lime); font-weight: 600; }
.code .k { color: #FF8FB8; } .code .t { color: #8AD7FF; } .code .n { color: #FFD66B; } .code .f { color: #C9B8FF; } .s { color: #9BE38C; }
.demo-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vars { display: flex; gap: 10px; min-height: 92px; flex-wrap: wrap; }
.var { display: flex; flex-direction: column; gap: 5px; }
.var small { font-family: var(--mono); font-size: 12.5px; color: var(--ink2); }
.var b { display: grid; place-items: center; min-width: 66px; height: 60px; padding: 0 12px; border-radius: 14px; background: var(--bg); font-family: var(--mono); font-size: 26px; font-weight: 600; transition: background .3s; }
.var b.changed { background: var(--lime); }
.demo-note { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.4; padding: 14px 16px; border-radius: 16px; background: var(--bg); min-height: 72px; }
.demo-out { margin: 0; font-size: 15px; padding: 12px 16px; border-radius: 14px; background: var(--night); color: var(--lime); min-height: 44px; }
.demo-out:empty::before { content: "Ausgabe"; color: #66665F; }
.demo-bar { display: flex; align-items: center; gap: 10px; }
.round { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; transition: background .2s; }
.round svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.round:hover { background: var(--well); }
.pill-btn { height: 40px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14.5px; min-width: 112px; }
.scrub { flex: 1; height: 4px; border-radius: 2px; background: var(--well); overflow: hidden; }
.scrub i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .35s var(--ease); }
.count { font-size: 12.5px; color: var(--ink3); min-width: 48px; text-align: right; }

.ask-top { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ask-bit { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.ask-bit img { width: 14px; }
.ask-q { font-size: clamp(22px, 1.9vw, 28px); font-weight: 500; letter-spacing: -.03em; line-height: 1.2; margin: 22px 0 20px; }
.ask-q .mono { font-size: .82em; background: rgba(0, 0, 0, .08); padding: .05em .3em; border-radius: 6px; }
.ask-answers { display: flex; gap: 8px; }
.ask-answers button { min-width: 64px; height: 46px; border-radius: 999px; background: var(--ink); color: var(--lime); font-weight: 600; font-size: 17px; transition: transform .25s var(--ease), background .25s, color .25s, opacity .25s; }
.ask-answers button:hover { transform: translateY(-2px); }
.ask-answers button.right { background: #fff; color: var(--ink); }
.ask-answers button.wrong { opacity: .35; }
.ask-feedback { margin: 16px 0 0; font-size: 15px; font-weight: 500; min-height: 44px; }

.err { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.err code { display: block; background: var(--night); color: #E9E9E4; border-radius: 14px; padding: 14px 16px; font-size: 14px; white-space: pre-wrap; }
.err code u { text-decoration: underline wavy #FF6369; text-underline-offset: 4px; }
.err .ln { color: #66665F; margin-right: 16px; }
.err-card { border-radius: 14px; padding: 14px 16px; background: #FFF1F1; }
.err-card b { display: block; font-size: 15.5px; }
.err-card p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink2); }

.stat { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(255, 255, 255, .12); padding-bottom: 12px; }
.stat:last-child { border-bottom: 0; padding-bottom: 0; }
.stat b { font-size: clamp(38px, 3.6vw, 58px); font-weight: 400; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: rgba(255, 255, 255, .6); text-align: right; }

/* ---------- iPad ---------- */
.ipad-sec { position: relative; z-index: 3; background: var(--night); color: #F2F1EC; height: 260svh; }
.ipad-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; padding: 0 0 0 var(--pad); }
.ipad-copy h2 { font-size: clamp(40px, 4.8vw, 80px); }
.ipad-copy p { color: #A5A49E; font-size: 18px; max-width: 24em; margin: 26px 0 0; }
.ipad-copy h2 em { color: var(--lime); }
.ipad-canvas { width: 100%; height: 100svh; display: block; }

/* ---------- curriculum ---------- */
.kurs { position: relative; z-index: 3; background: var(--bg); padding: clamp(90px, 12vw, 170px) var(--pad) clamp(60px, 8vw, 110px); }
.kurs-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.hl { font-size: .74em; background: var(--lime); padding: 0 .18em; border-radius: .16em; letter-spacing: -.04em; }
.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.track {
  display: grid; grid-template-columns: 70px 1fr auto auto; align-items: baseline; gap: 20px;
  padding: 16px 0; border-bottom: 1px solid var(--line); position: relative; isolation: isolate;
}
.track::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--pad)); background: var(--lime); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); z-index: -1; }
.track:hover::before { transform: scaleY(1); }
.track .n { font-family: var(--mono); font-size: 13px; color: var(--ink3); }
.track .t { font-size: clamp(24px, 3vw, 46px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.track .lv { font-size: 13px; color: var(--ink2); }
.track .c { font-family: var(--mono); font-size: 13px; color: var(--ink2); min-width: 92px; text-align: right; }
.track:hover .n, .track:hover .lv, .track:hover .c { color: var(--ink); }

/* ---------- final ---------- */
.final { position: relative; z-index: 3; background: var(--bg); text-align: center; padding: clamp(80px, 10vw, 150px) var(--pad) clamp(90px, 11vw, 160px); display: flex; flex-direction: column; align-items: center; }
.final-icon { width: clamp(120px, 12vw, 168px); height: auto; border-radius: 22.5%; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .45); margin-bottom: 40px; }
.final h2 { font-size: clamp(48px, 8vw, 128px); }
.final p { color: var(--ink2); font-size: 18px; margin: 26px 0 30px; }
.store.is-soon { cursor: default; }
.footer { position: relative; z-index: 3; background: var(--bg); border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 64px) var(--pad) 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px 60px; font-size: 14.5px; color: var(--ink2); }
.f-brand img { height: 22px; width: auto; }
.f-brand p { margin: 16px 0 0; max-width: 22em; }
.f-cols { display: flex; gap: clamp(30px, 5vw, 80px); }
.f-cols div { display: flex; flex-direction: column; gap: 10px; min-width: 120px; }
.f-cols b { color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.f-cols a { transition: color .2s; }
.f-cols a:hover, .f-cols a[aria-current] { color: var(--ink); }
.f-copy { grid-column: 1 / -1; margin: 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink3); font-size: 13px; }
@media (max-width: 700px) {
  .footer { grid-template-columns: 1fr; }
  .f-cols { flex-wrap: wrap; gap: 28px 40px; }
}

/* ---------- motion helpers ---------- */
.split .w, .panel h2 .w { display: inline-block; }
/* room for descenders and italic overhang: Safari clips a blurred word to its own box, and with
   tight line heights the g, the y and slanted serif letters reach outside it. The padding gives
   them space, the negative margin keeps the layout exactly where it was. */
.split .w, .panel h2 .w { padding: .08em .14em .26em .06em; margin: -.08em -.14em -.26em -.06em; }

/* desktop: "Alles, was du zum Verstehen brauchst" fits one screen, heading and every tile */
@media (min-width: 1101px) and (min-height: 640px) and (orientation: landscape) {
  .more { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: clamp(84px, 10svh, 120px); padding-bottom: clamp(20px, 3svh, 44px); }
  .more-head { margin-bottom: clamp(18px, 3svh, 32px); }
  .more-head h2 { font-size: min(5.2vw, 6.6svh); }
  .more-head p { font-size: min(18px, 2.1svh); }
  .bento { gap: 12px; padding: 12px; border-radius: 32px; }
  .tile { padding: clamp(18px, 2.6svh, 26px); border-radius: 22px; }
  .tile-demo header h3, .tile-error h3, .tile-sync h3, .tile-offline h3 { font-size: min(22px, 2.6svh); }
  .demo { margin: clamp(12px, 2svh, 20px) 0 clamp(10px, 1.6svh, 16px); }
  .code { padding: 10px 0; font-size: min(14.5px, 1.65svh); }
  .code li { padding-top: min(5px, .45svh); padding-bottom: min(5px, .45svh); }
  .vars { min-height: 0; }
  .var b { height: min(60px, 6.2svh); font-size: min(26px, 2.9svh); }
  .demo-note { min-height: 0; padding: 12px 14px; font-size: 14.5px; }
  .ask-q { font-size: min(1.9vw, 2.9svh); margin: clamp(10px, 1.6svh, 20px) 0 clamp(10px, 1.6svh, 18px); }
  .ask-answers button { height: min(46px, 4.6svh); }
  .err code, .err-card { padding: 11px 14px; }
  .ask-feedback { min-height: 0; margin-top: 10px; }
  .err { margin-top: 14px; }
  /* bottom row: flat tiles, icon beside the text, the numbers side by side */
  .tile-sync, .tile-offline { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-content: center; }
  .tile-sync .tile-ico, .tile-offline .tile-ico { grid-row: span 2; width: 34px; height: 34px; margin: 2px 0 0; }
  .tile-sync p, .tile-offline p { font-size: 13.5px; line-height: 1.4; margin-top: 4px; }
  .tile-sync, .tile-offline, .tile-dark { padding-top: clamp(16px, 2svh, 22px); padding-bottom: clamp(16px, 2svh, 22px); }
  .tile-dark { flex-direction: row; align-items: stretch; justify-content: space-between; gap: 10px; }
  .tile-dark .stat { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px; border-bottom: 0; padding-bottom: 0; flex: 1; }
  .tile-dark .stat + .stat { border-left: 1px solid rgba(255, 255, 255, .12); padding-left: 12px; }
  .tile-dark .stat b { font-size: min(3vw, 4.4svh); }
  .tile-dark .stat span { text-align: left; font-size: 12.5px; }
}
/* short laptop screens: the answer hint sits next to the answers, the error card keeps its title */
@media (min-width: 1101px) and (min-height: 640px) and (max-height: 820px) and (orientation: landscape) {
  .more { padding-top: 76px; padding-bottom: 12px; }
  .more-head { margin-bottom: 16px; }
  .bento { gap: 10px; padding: 10px; }
  .tile-ask { display: flex; flex-wrap: wrap; align-content: flex-start; column-gap: 16px; }
  .ask-top, .ask-q { width: 100%; }
  .ask-feedback { margin: 0; align-self: center; flex: 1; min-width: 130px; }
  .err-card p { display: none; }
  .tile-sync p, .tile-offline p { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .tile-demo { grid-column: span 12; grid-row: auto; }
  .tile-ask, .tile-error { grid-column: span 6; }
  .tile-dark, .tile-sync, .tile-offline { grid-column: span 4; }
}
/* stacked story whenever the phone and the text would share the width (phones, iPad portrait) */
@media (max-width: 1100px), (orientation: portrait) {
  .story-panels { left: var(--pad); right: var(--pad); width: auto; top: auto; bottom: 64px; transform: none; height: 38svh; z-index: 2; }
  .panel { justify-content: flex-end; }
  .panel h2 { font-size: clamp(34px, 7vw, 64px); }
  .story-panels { max-width: 640px; }
  .panel p:last-child { font-size: 15.5px; margin-top: 14px; }
  .panel-num { margin-bottom: 10px; }
  .story-aside { display: none; }
  .story-pin::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50svh; background: linear-gradient(to top, var(--bg) 60%, rgba(242, 242, 239, 0)); z-index: 1; pointer-events: none; }
  .story-steps { z-index: 2; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .more-head, .kurs-head { grid-template-columns: 1fr; gap: 20px; }
  .ipad-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 110px var(--pad) 0; }
  .ipad-canvas { height: 62svh; }
  .tile-ask, .tile-error, .tile-dark, .tile-sync, .tile-offline { grid-column: span 12; }
  .track { grid-template-columns: 44px 1fr auto; }
  .track .lv { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { top: 12px; }
  .nav-brand { padding: 0 8px; }
  .hero h1 { font-size: min(calc((100vw - 2 * var(--pad)) / 7.35), 9.6svh); line-height: .95; }
  .hero-cta { flex-direction: column; gap: 16px; }
  .hero-meta { display: none; }
  .bento { padding: 10px; gap: 10px; border-radius: 28px; }
  .tile { padding: 22px; border-radius: 22px; }
  .demo { grid-template-columns: 1fr; }
  .demo-bar { flex-wrap: wrap; }
  .track .c { min-width: 0; font-size: 12px; }
}

/* =====================================================================
   Subpages (Warum, Bit, Lehrplan)
   ===================================================================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.page .nav { transform: translate(-50%, 0); }
body.page main { position: relative; z-index: 2; }
.p-hero { padding: clamp(130px, 20svh, 200px) var(--pad) clamp(40px, 6vw, 80px); max-width: 1500px; margin: 0 auto; }
.p-hero h1 { font-size: clamp(46px, 7vw, 120px); line-height: .93; letter-spacing: -.05em; max-width: 14ch; }
.p-hero-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(20px, 4vw, 60px); align-items: center; min-height: min(100svh, 940px); }
.p-hero-split h1 { font-size: clamp(44px, 5.8vw, 104px); }
.p-crumb { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink2); margin: 0 0 26px; }
.crumb-bit { width: 16px; }
.p-lead { color: var(--ink2); font-size: clamp(17px, 1.4vw, 20px); max-width: 32em; margin: 30px 0 0; }
.p-device { width: 100%; height: min(78svh, 760px); display: block; }
.p-device-sm { height: min(70svh, 660px); }
.p-device.no-webgl { display: none; }
.p-device { opacity: 0; transition: opacity .8s var(--ease); }
.p-device.is-on { opacity: 1; }
.p-section { max-width: 1500px; margin: 0 auto; padding: clamp(60px, 9vw, 130px) var(--pad); }
.p-h2 { font-size: clamp(38px, 5vw, 84px); }
.p-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.p-head > p { color: var(--ink2); font-size: 18px; margin: 0; max-width: 28em; }
.p-text { color: var(--ink2); font-size: 18px; max-width: 30em; margin: 26px 0 0; }

/* principles */
.principle { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: center; padding: clamp(36px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); }
.p-section > .p-h2 + .principle { margin-top: clamp(30px, 4vw, 60px); border-top: 1px solid var(--line); }
.principle-n { font-family: var(--mono); font-size: 14px; color: var(--ink3); align-self: start; padding-top: 10px; }
.principle h3 { font-size: clamp(30px, 3vw, 46px); letter-spacing: -.04em; line-height: 1.02; }
.principle p { color: var(--ink2); font-size: 17.5px; margin: 18px 0 0; }
.principle-art { background: var(--paper); border-radius: 28px; padding: 28px; min-height: 230px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.art-code { display: flex; flex-direction: column; background: var(--night); color: #E9E9E4; border-radius: 16px; padding: 12px 0; font-size: 14px; }
.art-code span { padding: 5px 18px; white-space: pre; }
.art-code .on { background: rgba(210, 247, 90, .16); box-shadow: inset 3px 0 0 var(--lime); }
.art-mem { display: flex; gap: 10px; }
.art-mem div { display: flex; flex-direction: column; gap: 5px; }
.art-mem small { font-size: 12.5px; color: var(--ink2); }
.art-mem b { display: grid; place-items: center; min-width: 74px; height: 62px; border-radius: 14px; background: var(--lime); font-size: 28px; transition: transform .3s var(--ease); }
.art-mem div:last-child b { background: var(--bg); }
.art-mem div.flash b { transform: scale(1.04); }
.art-lime { background: var(--lime); }
.art-label { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin: 0; }
.art-q { font-size: 24px; font-weight: 500; letter-spacing: -.03em; line-height: 1.2; margin: 0; }
.art-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.art-chips span { background: var(--ink); color: var(--lime); padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.art-gap { display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--bg); }
.art-gap i { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(var(--ink) calc(var(--p) * 360deg), rgba(0, 0, 0, .12) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); }
.art-gap b { font-size: 15.5px; }
.art-gap small { font-size: 12.5px; color: var(--ink2); }
.art-gap.hot { background: var(--lime); }
.art-gap.hot small { color: rgba(14, 14, 15, .7); }

/* comparison */
.cmp-wrap { background: var(--paper); border-radius: 30px; padding: clamp(10px, 2vw, 24px); overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; min-width: 720px; }
.cmp th, .cmp td { padding: 18px 14px; text-align: center; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.cmp thead th { font-size: 14px; font-weight: 600; color: var(--ink2); vertical-align: bottom; }
.cmp thead th.me { color: var(--ink); font-size: 16px; }
.cmp tbody th { text-align: left; font-weight: 500; letter-spacing: -.015em; width: 38%; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp .me { background: rgba(210, 247, 90, .28); }
.cmp thead .me { border-radius: 16px 16px 0 0; }
.cmp tbody tr:last-child .me { border-radius: 0 0 16px 16px; }
.cmp i, .cmp-legend i { display: inline-block; width: 18px; height: 18px; border-radius: 50%; vertical-align: middle; }
.cmp i.y, .cmp-legend i.y { background: var(--ink); box-shadow: inset 0 0 0 5px var(--ink), inset 0 0 0 9px var(--lime); }
.cmp i.p, .cmp-legend i.p { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--ink); }
.cmp i.n, .cmp-legend i.n { width: 14px; height: 2px; border-radius: 1px; background: var(--ink3); }
.cmp-legend { display: flex; gap: 22px; justify-content: flex-end; font-size: 13px; color: var(--ink2); margin: 14px 8px 4px; }
.cmp-legend span { display: flex; align-items: center; gap: 8px; }
@media (max-width: 700px) {
  .cmp-wrap { padding: 8px; overflow: visible; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; min-width: 0; }
  .cmp thead { display: none; }
  .cmp tbody tr { display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 12px 14px; border-bottom: 1px solid var(--line); }
  .cmp tbody tr:last-child { border-bottom: 0; }
  .cmp tbody th { grid-column: 1 / -1; width: auto; padding: 0 2px 12px; border: 0; font-size: 16.5px; line-height: 1.3; }
  .cmp td { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 2px; border: 0; }
  .cmp td::after { font-size: 11px; line-height: 1.2; color: var(--ink2); text-align: center; }
  .cmp td:nth-of-type(1)::after { content: "Runtime"; color: var(--ink); font-weight: 600; }
  .cmp td:nth-of-type(2)::after { content: "Video"; }
  .cmp td:nth-of-type(3)::after { content: "Lern-Apps"; }
  .cmp td:nth-of-type(4)::after { content: "KI-Chat"; }
  .cmp i.n { margin: 8px 0; }
  .cmp tbody tr:last-child .me, .cmp .me { border-radius: 14px; }
  .cmp-legend { justify-content: center; margin: 10px 0 8px; }
}


/* facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts div { background: var(--paper); border-radius: 26px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.facts b { font-size: clamp(44px, 5vw, 84px); font-weight: 400; letter-spacing: -.05em; line-height: .95; }
.facts span { color: var(--ink2); font-size: 15px; }
.facts-hero { margin-top: clamp(36px, 5vw, 64px); }

/* nots */
.nots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.not { border-top: 2px solid var(--ink); padding-top: 22px; }
.not b { font-size: 24px; letter-spacing: -.03em; }
.not p { color: var(--ink2); margin: 10px 0 0; }

/* FAQ */
.faq { margin-top: clamp(30px, 4vw, 56px); border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -.03em; }
.faq-q::after { content: ""; width: 14px; height: 14px; flex: none; background: linear-gradient(var(--ink), var(--ink)) center/100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center/2px 100% no-repeat; transition: transform .4s var(--ease); }
.faq-item.is-open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.faq-a p { margin: 0 0 26px; color: var(--ink2); font-size: 17px; max-width: 46em; }

/* Bit page */
.sees { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.sees li { background: var(--paper); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 6px; min-height: 130px; justify-content: flex-end; }
.sees li:first-child { background: var(--lime); }
.sees b { font-size: 19px; letter-spacing: -.02em; }
.sees span { font-size: 14px; color: var(--ink2); }
.code.light { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.code.light li { cursor: default; }
.code.light li::before { color: var(--ink3); }
.code.light .k { color: #C2185B; } .code.light .t { color: #0B6BCB; } .code.light .n { color: #9A6700; } .code.light .f { color: #6639BA; } .code.light .s { color: #1A7F37; }
.code li.bad { background: rgba(255, 99, 105, .1); box-shadow: inset 3px 0 0 #FF6369; }
.code.diff li.del { background: rgba(255, 99, 105, .1); box-shadow: inset 3px 0 0 #FF6369; text-decoration: line-through; text-decoration-color: rgba(216, 54, 59, .6); }
.code.diff li.add { background: rgba(26, 127, 55, .1); box-shadow: inset 3px 0 0 #1A7F37; }
.code.diff li.del::before { content: "−"; color: #D8363B; }
.code.diff li.add::before { content: "+"; color: #1A7F37; }
.code.diff.applied li.del { display: none; }
.code.diff.applied li.add { background: transparent; box-shadow: none; }
.code.diff.applied li.add::before { content: counter(ln); color: var(--ink3); }
.levels-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px; border-radius: 34px; background: var(--well); }
.ld-code, .ld-answer { background: var(--paper); border-radius: 24px; padding: 24px; }
.ld-file { font-size: 13px; color: var(--ink2); margin: 0 0 14px; }
.ld-code .code { font-size: clamp(13px, 1.1vw, 16px); }
.ld-answer { display: flex; flex-direction: column; }
.ld-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ld-who { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ld-who img { width: 14px; }
.ld-level { font-size: 13px; font-weight: 600; background: var(--lime); padding: 5px 12px; border-radius: 999px; }
.ld-text { flex: 1; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; letter-spacing: -.015em; margin: 22px 0; min-height: 150px; }
.ld-text .mono { font-size: .85em; background: var(--bg); padding: .05em .35em; border-radius: 6px; }
.ld-sol { display: block; margin: 12px 0; padding: 12px 16px; border-radius: 12px; background: var(--night); color: var(--lime); font-size: .85em; }
.ld-range { display: block; position: relative; }
.ld-range input { width: 100%; appearance: none; -webkit-appearance: none; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--ink) calc(var(--v, 0) * 100%), var(--well) 0); outline: none; cursor: pointer; }
.ld-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); border: 3px solid var(--ink); }
.ld-range input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--lime); border: 3px solid var(--ink); }
.ld-ticks { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--ink3); }
.ld-ticks i { font-style: normal; }
.mode-demo { max-width: 860px; margin: 0 auto; background: var(--well); border-radius: 34px; padding: 16px; }
.mode-switch { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--paper); margin: 4px 4px 16px; }
.mode-switch button, .levels button { padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--ink2); transition: background .25s, color .25s; }
.mode-switch button[aria-selected="true"], .levels button[aria-selected="true"] { background: var(--ink); color: #fff; }
.chat { background: var(--paper); border-radius: 24px; padding: clamp(18px, 3vw, 32px); display: flex; flex-direction: column; gap: 18px; min-height: 380px; }
.chat-user { align-self: flex-end; background: var(--bg); padding: 12px 18px; border-radius: 20px; margin: 0; font-size: 16px; }
.chat-bit p { font-size: 17px; margin: 0 0 14px; }
.chat-bit .mono { font-size: .88em; background: var(--bg); padding: .05em .35em; border-radius: 6px; }
.chat-ask { background: var(--lime); border-radius: 22px; padding: 20px; }
.chat-q { font-size: 22px !important; font-weight: 500; letter-spacing: -.03em; line-height: 1.25; margin: 10px 0 14px !important; }
.chat-ask .mono { background: rgba(0, 0, 0, .08); }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-chips button { background: var(--ink); color: var(--lime); padding: 10px 18px; border-radius: 999px; font-weight: 600; transition: transform .25s var(--ease), opacity .25s; }
.chat-chips button:hover { transform: translateY(-2px); }
.chat-chips button.right { background: #fff; color: var(--ink); }
.chat-chips button.wrong { opacity: .35; }
.chat-fb { font-size: 15px !important; font-weight: 500; margin: 14px 0 0 !important; min-height: 22px; }
.split-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.fix-demo { background: var(--paper); border-radius: 28px; padding: 22px; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .3); }
.fix-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 13px; color: var(--ink2); }
.fix-badge { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--lime); color: var(--ink); }
.fix-badge.ok { background: #1A7F37; color: #fff; }
.fix-demo .code { font-size: clamp(12px, 1vw, 14.5px); }
.fix-note { display: flex; align-items: center; gap: 10px; font-size: 15px; margin: 14px 0; }
.fix-note img { width: 14px; }
.fix-note .mono { background: var(--bg); padding: .05em .35em; border-radius: 6px; }
.fix-actions { display: flex; gap: 10px; }
.ghost-btn { height: 40px; padding: 0 20px; border-radius: 999px; background: var(--bg); font-weight: 600; font-size: 14.5px; }
.mini-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.mini-list li { display: flex; gap: 12px; align-items: center; font-size: 16px; }
.mini-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime2); box-shadow: 0 0 0 4px rgba(198, 238, 58, .3); flex: none; }
.small-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sg { background: var(--paper); border-radius: 22px; padding: 24px; }
.sg b { font-size: 18px; letter-spacing: -.02em; }
.sg p { color: var(--ink2); font-size: 15px; margin: 8px 0 0; }

/* Lehrplan page */
.start { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.start-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 12px; }
.start-steps li { counter-increment: st; background: var(--paper); border-radius: 22px; padding: 22px 24px 22px 70px; position: relative; }
.start-steps li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 24px; top: 24px; font-family: var(--mono); font-size: 13px; color: var(--ink3); }
.start-steps b { font-size: 20px; letter-spacing: -.02em; }
.start-steps p { color: var(--ink2); margin: 6px 0 0; }
.levels { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 26px; background: var(--paper); justify-self: end; }
.chapters { border-top: 1px solid var(--line); }
.chapter { border-bottom: 1px solid var(--line); }
.chapter-head { width: 100%; display: grid; grid-template-columns: 60px 1fr auto 20px; gap: 18px; align-items: center; padding: 20px 0; text-align: left; }
.ch-n { font-size: 13px; color: var(--ink3); }
.ch-t { font-size: clamp(22px, 2.6vw, 40px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.ch-meta { font-size: 13.5px; color: var(--ink2); text-align: right; }
.ch-plus { width: 16px; height: 16px; background: linear-gradient(var(--ink), var(--ink)) center/100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center/2px 100% no-repeat; transition: transform .4s var(--ease); }
.chapter.is-open .ch-plus { transform: rotate(45deg); }
.chapter-head:hover .ch-t { color: var(--ink2); }
.chapter-body { max-height: 0; overflow: hidden; transition: max-height .6s var(--ease); }
.ch-sum { color: var(--ink2); font-size: 17px; max-width: 44em; margin: 0 0 18px 78px; }
.lessons { list-style: none; margin: 0 0 28px 78px; padding: 0; columns: 2; column-gap: 40px; }
.lessons li { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-size: 15.5px; }
.lessons li .mono { font-size: 12.5px; color: var(--ink3); padding-top: 2px; }
.kinds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kind { background: var(--paper); border-radius: 22px; padding: 22px; }
.kind:nth-child(1), .kind:nth-child(8) { background: var(--lime); }
.kind b { font-size: 18px; letter-spacing: -.02em; }
.kind p { color: var(--ink2); font-size: 14.5px; margin: 8px 0 0; }
.kind:nth-child(1) p, .kind:nth-child(8) p { color: rgba(14, 14, 15, .7); }
.modes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.modes li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.modes b { font-size: clamp(20px, 2vw, 30px); font-weight: 500; letter-spacing: -.03em; }
.modes span { color: var(--ink2); }
.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.project { background: var(--paper); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.project h3 { font-size: 19px; letter-spacing: -.02em; line-height: 1.15; }
.project p { color: var(--ink2); font-size: 14.5px; margin: 0; flex: 1; }
.pr-n { font-size: 12px; color: var(--ink3); }
.pr-meta { font-size: 12.5px; color: var(--ink2); padding-top: 8px; border-top: 1px solid var(--line); }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 1100px) {
  .sees { grid-template-columns: repeat(3, 1fr); }
  .kinds, .projects, .small-grid { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .lessons { columns: 1; }
}
@media (max-width: 900px) {
  .p-hero-split, .p-head, .split-row, .start, .levels-demo { grid-template-columns: 1fr; }
  .p-hero-split { min-height: 0; }
  .p-device { height: 64svh; }
  .split-row.reverse > canvas { order: 2; }
  .levels { justify-self: start; }
  .principle { grid-template-columns: 1fr; gap: 18px; }
  .principle-n { padding: 0; }
  .nots { grid-template-columns: 1fr; gap: 26px; }
  .chapter-head { grid-template-columns: 40px 1fr 18px; }
  .ch-meta { display: none; }
  .ch-sum, .lessons { margin-left: 0; }
  .modes li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 560px) {
  .sees, .kinds, .projects, .small-grid { grid-template-columns: 1fr; }
  .sees li { min-height: 0; }
  .facts b { font-size: 44px; }
  .levels-demo, .mode-demo { padding: 10px; border-radius: 26px; }
  .levels { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; border-radius: 999px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .levels::-webkit-scrollbar { display: none; }
  .levels button { flex: none; padding: 9px 15px; font-size: 14px; }
}

.more-link { display: inline-flex; gap: 10px; margin-top: 34px; font-size: 18px; font-weight: 500; border-bottom: 1.5px solid var(--ink); padding-bottom: 3px; }
.more-link:hover { border-color: var(--lime2); }
.more-link span { transition: transform .3s var(--ease); }
.more-link:hover span { transform: translateX(4px); }

/* =====================================================================
   Funktionen, So lernst du, Projekte, Für wen
   ===================================================================== */
.toc { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-flex; padding: 9px 16px; border-radius: 999px; background: var(--paper); font-size: 14.5px; font-weight: 500; transition: background .25s, color .25s; }
.toc a:hover { background: var(--ink); color: #fff; }
.round-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); font-size: 22px; line-height: 1; display: grid; place-items: center; transition: opacity .25s; }
.round-btn:disabled { opacity: .35; cursor: default; }
.code li.add-soft { background: rgba(210, 247, 90, .35); box-shadow: inset 3px 0 0 var(--lime2); }

/* memory demo */
.memdemo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; padding: 16px; border-radius: 34px; background: var(--well); }
.md-left, .md-right { background: var(--paper); border-radius: 24px; padding: clamp(18px, 2.4vw, 28px); }
.md-left { display: flex; flex-direction: column; gap: 16px; }
.md-left .code { font-size: clamp(13px, 1.15vw, 16px); align-self: stretch; }
.md-left .code li { cursor: default; }
.md-note { margin: 0; font-size: 17px; line-height: 1.45; min-height: 74px; }
.md-note .mono { font-size: .88em; background: var(--bg); padding: .05em .35em; border-radius: 6px; }
.md-bar { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.md-count { margin-left: auto; font-size: 13px; color: var(--ink3); }
.md-right { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.md-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); margin: 0 0 10px; }
.md-frame, .md-obj { border-radius: 18px; padding: 14px; background: var(--bg); min-height: 150px; }
.md-fname { font-size: 12.5px; color: var(--ink2); margin: 0 0 12px; }
.md-var { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--paper); margin-top: 8px; opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.md-var.is-on { opacity: 1; transform: none; }
.md-var .mono { font-size: 15px; font-weight: 600; }
.ref { font-family: var(--mono); font-size: 13px; background: var(--ink); color: var(--lime); padding: 4px 9px; border-radius: 999px; }
.md-obj { opacity: .25; transition: opacity .4s, box-shadow .4s; }
.md-obj.is-on { opacity: 1; box-shadow: inset 0 0 0 2px var(--ink); }
.md-id { background: var(--ink); color: var(--lime); padding: 2px 7px; border-radius: 999px; margin-right: 4px; }
.md-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.md-cells i { font-style: normal; display: grid; place-items: center; height: 54px; border-radius: 12px; background: var(--paper); font-size: 24px; font-weight: 600; transition: background .3s, transform .3s var(--ease); }
.md-cells i.flash { background: var(--lime); transform: scale(1.06); }
.md-out { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: var(--night); color: #66665F; font-size: 13px; }
.md-out b { color: var(--lime); font-size: 18px; }

/* feature grid */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feat { background: var(--paper); border-radius: 24px; padding: 26px; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; }
.feat b { font-size: 22px; letter-spacing: -.03em; }
.feat p { color: var(--ink2); font-size: 15.5px; margin: 10px 0 0; }
.feat-lime { background: var(--lime); }
.feat-lime p { color: rgba(14, 14, 15, .72); }
.feat-dark { background: var(--night); color: #fff; }
.feat-dark p { color: #A5A49E; }
.feat-dark a { color: var(--lime); }

/* compiler error demo */
.errdemo { background: var(--well); border-radius: 30px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.errdemo .mode-switch { margin: 0; align-self: flex-start; }
.errdemo .code { font-size: clamp(12px, 1vw, 14.5px); }
.err-raw { margin: 0; background: var(--night); color: #FF8F94; border-radius: 18px; padding: 18px; font-size: clamp(11.5px, .95vw, 13.5px); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.err-rt { background: var(--paper); border-radius: 18px; padding: 20px; }
.err-rt p { margin: 0 0 8px; font-size: 16px; }
.err-where { font-size: 12px !important; color: #D8363B; font-weight: 600; }
.err-title { font-size: 21px !important; font-weight: 600; letter-spacing: -.02em; }
.err-rt .mono { font-size: .88em; background: var(--bg); padding: .05em .35em; border-radius: 6px; }
.err-ask { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 14px; border-radius: 999px; background: var(--lime); font-weight: 600; font-size: 14px; }
.err-ask img { width: 13px; }

/* code history */
.replay { background: var(--paper); border-radius: 30px; padding: clamp(16px, 2.4vw, 28px); }
.rp-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; position: relative; }
.rp-line button { text-align: left; padding: 14px 16px; border-radius: 18px; background: var(--bg); display: flex; flex-direction: column; gap: 4px; transition: background .25s, color .25s; }
.rp-line button .mono { font-size: 12px; color: var(--ink3); }
.rp-line button b { font-size: 15.5px; font-weight: 600; letter-spacing: -.02em; }
.rp-line button.past { background: rgba(210, 247, 90, .35); }
.rp-line button[aria-selected="true"] { background: var(--ink); color: #fff; }
.rp-line button[aria-selected="true"] .mono { color: var(--lime); }
.replay .code { font-size: clamp(13px, 1.1vw, 16px); }
.rp-note { margin: 16px 4px 2px; font-size: 17px; }
.rp-note .mono { background: var(--bg); padding: .05em .35em; border-radius: 6px; }

/* achievements */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.badge { background: var(--paper); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.badge i { font-style: normal; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.badge b { font-size: 18px; letter-spacing: -.02em; }
.badge span { color: var(--ink2); font-size: 14px; }
.badge-lime { background: var(--lime); }
.badge-lime i { background: var(--ink); color: var(--lime); }
.badge-lime span { color: rgba(14, 14, 15, .72); }
.badge-dark { background: var(--night); color: #fff; }
.badge-dark i { background: var(--lime); color: var(--ink); }
.badge-dark span { color: #A5A49E; }

/* devices */
.devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dev { background: var(--paper); border-radius: 30px; padding: clamp(24px, 3vw, 36px); min-height: 360px; display: flex; flex-direction: column; }
.dev-k { font-size: 13px; color: var(--ink3); margin: 0 0 auto; }
.dev h3 { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.04em; line-height: 1.02; margin: 50px 0 18px; }
.dev ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dev li { font-size: 15.5px; color: var(--ink2); padding-top: 8px; border-top: 1px solid var(--line); }
.dev-lime { background: var(--lime); }
.dev-lime li { color: rgba(14, 14, 15, .75); border-color: rgba(14, 14, 15, .12); }
.dev-lime .dev-k { color: rgba(14, 14, 15, .55); }
.dev-dark { background: var(--night); color: #fff; }
.dev-dark li { color: #A5A49E; border-color: rgba(255, 255, 255, .1); }
.kbd { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; margin: 0 2px; border-radius: 6px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 13px; font-family: var(--sans); }

/* next pages */
.next-pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.np { position: relative; display: flex; flex-direction: column; gap: 40px; padding: 26px; border-radius: 26px; background: var(--paper); min-height: 180px; transition: transform .4s var(--ease); }
.np:hover { transform: translateY(-4px); }
.np .mono { font-size: 12.5px; color: var(--ink3); }
.np b { font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; margin-top: auto; padding-right: 50px; }
.np i { position: absolute; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--lime); font-style: normal; font-size: 18px; transition: transform .4s var(--ease); }
.np:hover i { transform: translateX(4px); }
.np-lime { background: var(--lime); }
.np-lime .mono { color: rgba(14, 14, 15, .55); }
.np-dark { background: var(--night); color: #fff; }
.np-dark i { background: var(--lime); color: var(--ink); }

/* forgetting curve */
.curve-card { margin: 0; background: var(--paper); border-radius: 34px; padding: clamp(16px, 2.4vw, 30px); }
.curve-card svg { width: 100%; height: auto; display: block; overflow: visible; }
.curve-card figcaption { font-size: 14px; color: var(--ink2); margin: 12px 6px 2px; }
.cv-line { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.cv-grid { stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 4 6; }
.cv-axis { stroke: var(--ink3); stroke-width: 1.5; }
.cv-dot { fill: var(--lime); stroke: var(--ink); stroke-width: 3; }
.cv-t { font-family: var(--mono); font-size: 13px; fill: var(--ink2); text-anchor: middle; }
.cv-end { text-anchor: end; }
.cv-y { font-family: var(--mono); font-size: 12px; fill: var(--ink3); text-anchor: end; }

/* six ideas */
.ideas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: idea; }
.ideas li { counter-increment: idea; }
.ideas a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 24px 24px 24px 72px; border-radius: 24px; background: var(--paper); position: relative; transition: background .3s, transform .4s var(--ease); }
.ideas a::before { content: counter(idea); position: absolute; left: 22px; top: 22px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); font-weight: 600; font-size: 15px; }
.ideas a:hover { transform: translateY(-3px); }
.ideas b { font-size: 19px; letter-spacing: -.02em; }
.ideas span { color: var(--ink2); font-size: 15px; }

/* scheduling simulator */
.sim { background: var(--night); color: #fff; border-radius: 34px; padding: clamp(20px, 3vw, 36px); }
.sim-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.sim-k { font-size: 12.5px; color: #8A8A84; margin: 0 0 6px; }
.sim-topic { margin: 0; font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; letter-spacing: -.035em; }
.sim-next { text-align: right; }
.sim-days { margin: 0; font-size: clamp(36px, 4.6vw, 68px); font-weight: 400; letter-spacing: -.05em; line-height: 1; color: var(--lime); }
.sim-track { display: flex; align-items: flex-end; gap: 8px; height: 200px; margin: 30px 0 22px; padding-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.sim-step { flex: 0 0 calc((100% - 56px) / 8); min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 6px; }
.sim-step i { display: block; height: calc(var(--h) * 140px); border-radius: 10px 10px 4px 4px; background: rgba(255, 255, 255, .16); transition: height .6s var(--ease); }
.sim-step b { font-size: 15px; font-weight: 600; text-align: center; }
.sim-step span { font-size: 11px; color: #8A8A84; text-align: center; overflow-wrap: anywhere; }
.sim-good i, .sim-start i { background: var(--lime); }
.sim-hint i { background: #B8D96A; }
.sim-guess i { background: #E8E8E4; }
.sim-bad i { background: #FF6369; }
.sim-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.sim-btn { padding: 11px 18px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; font-size: 14.5px; transition: background .25s, transform .25s var(--ease); }
.sim-btn:hover { background: rgba(255, 255, 255, .18); transform: translateY(-1px); }
.sim-btn.sim-good { background: var(--lime); color: var(--ink); }
.sim-btn.sim-bad { background: rgba(255, 99, 105, .2); color: #FF9BA0; }
.sim .ghost-btn { background: transparent; color: #8A8A84; }
.sim-why { margin: 18px 0 0; color: #C9C9C3; font-size: 16px; min-height: 24px; }
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.rules div { background: var(--paper); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.rules b { font-size: 34px; font-weight: 400; letter-spacing: -.04em; }
.rules span { color: var(--ink2); font-size: 14.5px; }

/* variant demo */
.variant { background: var(--lime); border-radius: 34px; padding: clamp(20px, 3vw, 36px); max-width: 980px; }
.var-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.var-tag { font-size: 13px; background: rgba(14, 14, 15, .08); padding: 6px 12px; border-radius: 999px; }
.var-q { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -.03em; margin: 22px 0 14px; }
.variant .code { font-size: clamp(13px, 1.15vw, 16px); }
.variant .code li { cursor: default; }
.var-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.var-opts button, .hn-opts button { background: var(--ink); color: var(--lime); padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; font-family: var(--mono); transition: transform .25s var(--ease), opacity .25s, background .25s; }
.var-opts button { max-width: 100%; overflow-wrap: anywhere; text-align: left; }
.var-opts button:hover, .hn-opts button:hover { transform: translateY(-2px); }
.var-opts button.right, .hn-opts button.right { background: #fff; color: var(--ink); }
.var-opts button.wrong, .hn-opts button.wrong { opacity: .4; }
.var-fb { min-height: 26px; margin: 16px 2px 0; font-size: 16.5px; font-weight: 500; }
.fine { color: var(--ink2); font-size: 14.5px; margin: 16px 4px 0; max-width: 46em; }

/* interleaving */
.mix { background: var(--paper); border-radius: 30px; padding: clamp(20px, 3vw, 32px); }
.mix-k { font-size: 13px; font-weight: 600; color: var(--ink2); margin: 0 0 10px; }
.mix-k + .mix-row { margin-bottom: 24px; }
.mix-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.mix-row i, .mix-legend i { display: block; aspect-ratio: 1; border-radius: 8px; }
.c1 { background: var(--lime); } .c2 { background: var(--ink); } .c3 { background: #C9C9C3; }
.mix-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13.5px; color: var(--ink2); }
.mix-legend span { display: flex; align-items: center; gap: 8px; }
.mix-legend i { width: 14px; border-radius: 4px; }

/* honest chips */
.honest { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; }
.hn-card { background: var(--lime); border-radius: 30px; padding: clamp(22px, 3vw, 34px); }
.hn-q { font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.03em; margin: 12px 0 18px; }
.hn-q .mono { background: rgba(14, 14, 15, .08); padding: .05em .3em; border-radius: 8px; }
.hn-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.hn-chips { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.hn-chips button { padding: 10px 18px; border-radius: 999px; background: rgba(14, 14, 15, .08); font-weight: 600; font-size: 14.5px; transition: background .25s, color .25s; }
.hn-chips button.on { background: var(--ink); color: #fff; }
.hn-fb { margin: 14px 2px 0; font-size: 15.5px; font-weight: 500; min-height: 22px; }
.hn-side { background: var(--night); color: #fff; border-radius: 30px; padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.hn-k { font-size: 12.5px; color: #8A8A84; margin: 0; }
.hn-out { margin: 0; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.03em; line-height: 1.2; }

/* flows */
.flow { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.flow-5 { grid-template-columns: repeat(5, 1fr); }
.flow li { background: var(--paper); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 8px; min-height: 220px; position: relative; }
.flow-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-size: 13px; margin-bottom: auto; }
.flow b { font-size: 21px; letter-spacing: -.03em; margin-top: 30px; }
.flow p { color: var(--ink2); font-size: 15px; margin: 0; }
.flow p i { font-style: normal; font-weight: 600; color: var(--ink); }
.flow li.flow-lime { background: var(--lime); }
.flow-lime p { color: rgba(14, 14, 15, .72); }
.flow-lime .flow-n { background: var(--ink); color: var(--lime); }
.flow li.flow-dark { background: var(--night); color: #fff; }
.flow-dark p { color: #A5A49E; }
.flow-dark p i { color: var(--lime); }
.flow-dark .flow-n { background: rgba(255, 255, 255, .1); }

/* recall */
.recall { background: var(--paper); border-radius: 30px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .3); }
.rc-src { color: var(--ink2); font-size: 14px; margin: 6px 0 18px; }
.rc-text { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.025em; line-height: 1.5; margin: 0 0 20px; }
.rc-in { font-size: .8em; width: 6.5em; padding: 4px 10px; border: 0; border-radius: 10px; background: var(--lime); color: var(--ink); outline: none; box-shadow: inset 0 -2px 0 var(--ink); text-align: center; }
.rc-in.ok { background: #1A7F37; color: #fff; box-shadow: none; }
.rc-in.no { background: rgba(255, 99, 105, .2); }
.rc-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.rc-fb { min-height: 22px; margin: 14px 2px 0; font-size: 15.5px; font-weight: 500; }

/* build pipeline */
.build { background: var(--paper); border-radius: 30px; padding: 22px; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .3); }
.bd-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; color: var(--ink2); }
.build .code { font-size: clamp(13px, 1.1vw, 15.5px); }
.build .code li { cursor: default; }
.bd-stages { list-style: none; padding: 0; margin: 18px 0 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bd-stages li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--bg); font-size: 14px; font-weight: 600; color: var(--ink2); transition: background .3s, color .3s; }
.bd-stages i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink3); flex: none; }
.bd-stages li.run { color: var(--ink); }
.bd-stages li.run i { background: var(--lime2); animation: pulse .6s ease-in-out infinite alternate; }
.bd-stages li.ok { background: rgba(210, 247, 90, .45); color: var(--ink); }
.bd-stages li.ok i { background: #1A7F37; }
.bd-stages li.no { background: rgba(255, 99, 105, .15); color: #B4262B; }
.bd-stages li.no i { background: #D8363B; }
@keyframes pulse { to { transform: scale(1.5); } }
.bd-tests { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.bd-tests li { display: grid; grid-template-columns: 12px auto 1fr; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--bg); font-size: 14px; }
.bd-tests li span:last-child { color: var(--ink2); text-align: right; }
.bd-tests i { width: 12px; height: 12px; border-radius: 50%; background: var(--ink3); opacity: .4; }
.bd-tests li.ok i { background: #1A7F37; opacity: 1; }
.bd-tests li.no { background: rgba(255, 99, 105, .1); }
.bd-tests li.no i { background: #D8363B; opacity: 1; }
.bd-foot { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.bd-verdict { margin: 0; font-size: 15px; font-weight: 600; flex: 1; min-width: 200px; }
.bd-verdict.ok { color: #1A7F37; }
.bd-verdict.no { color: #B4262B; }

/* project list */
.plist { border-top: 1px solid var(--line); }
.pj { border-bottom: 1px solid var(--line); }
.pj-head { width: 100%; display: grid; grid-template-columns: 50px minmax(0, 1fr) auto 18px; gap: 20px; align-items: center; padding: 22px 0; text-align: left; }
.pj-n { font-size: 13px; color: var(--ink3); }
.pj-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pj-main b { font-size: clamp(21px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; }
.pj-main span { color: var(--ink2); font-size: 15px; max-width: 52em; }
.pj-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.pj-meta .mono { font-size: 12.5px; color: var(--ink2); white-space: nowrap; }
.pj-lv { font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--paper); }
.lv-beginner { background: var(--lime); }
.lv-intermediate { background: #E3F5A8; }
.lv-advanced { background: var(--ink); color: #fff; }
.lv-professional { background: var(--ink); color: var(--lime); }
.pj.is-open .ch-plus { transform: rotate(45deg); }
.pj-head:hover .pj-main b { color: var(--ink2); }
.pj-body { max-height: 0; overflow: hidden; transition: max-height .6s var(--ease); }
.pj-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; margin: 0 0 26px 70px; }
.pj-ms { list-style: none; margin: 0; padding: 0; counter-reset: ms; display: grid; gap: 6px; }
.pj-ms li { counter-increment: ms; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 14px; border-radius: 14px; background: var(--paper); }
.pj-ms li::before { content: counter(ms); grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-size: 12px; font-weight: 600; }
.pj-ms b { font-size: 15.5px; }
.pj-ms span { grid-column: 2; color: var(--ink2); font-size: 14px; }
.pj-ms i { grid-column: 3; grid-row: 1; font-style: normal; font-size: 12px; color: var(--ink2); }
.pj-side { background: var(--paper); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; align-self: start; }
.pj-side p { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.pj-side p .mono { font-size: 12px; color: var(--ink3); }
.pj-side p b { font-weight: 500; overflow-wrap: anywhere; }
.pj-side .pj-done { display: block; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink2); font-size: 14.5px; }
.pj-done .mono { font-size: .9em; background: var(--bg); padding: .05em .3em; border-radius: 5px; color: var(--ink); }

/* who */
.who-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.who-tabs button { padding: 12px 22px; border-radius: 999px; background: var(--paper); font-weight: 600; font-size: 16px; transition: background .25s, color .25s, transform .25s var(--ease); }
.who-tabs button:hover { transform: translateY(-2px); }
.who-tabs button[aria-selected="true"] { background: var(--ink); color: var(--lime); }
.who { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; }
.who-main { background: var(--paper); border-radius: 34px; padding: clamp(24px, 3.4vw, 44px); }
.who-main .p-h2 { font-size: clamp(34px, 4vw, 64px); }
.who-side { background: var(--lime); border-radius: 34px; padding: clamp(24px, 3vw, 36px); }
.who-k { font-size: 12.5px; color: rgba(14, 14, 15, .55); margin: 0 0 8px; }
.who-start { display: flex; align-items: baseline; gap: 12px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; letter-spacing: -.035em; margin: 0 0 30px; line-height: 1.1; }
.who-start .mono { font-size: 14px; }
.who-ch { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(14, 14, 15, .12); }
.who-ch li { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; padding: 11px 0; border-bottom: 1px solid rgba(14, 14, 15, .12); font-size: 16px; font-weight: 500; }
.who-ch .mono { font-size: 12.5px; color: rgba(14, 14, 15, .55); padding-top: 2px; }
.who-ch i { font-style: normal; font-size: 12.5px; color: rgba(14, 14, 15, .55); }
.who-ch i::after { content: " Lektionen"; font-family: var(--sans); }

/* time calculator */
.calc { background: var(--night); color: #fff; border-radius: 34px; padding: clamp(22px, 3vw, 36px); }
.calc-in { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.calc-in span { color: #8A8A84; font-size: 14px; }
.calc-in b { font-size: clamp(28px, 3vw, 42px); font-weight: 400; letter-spacing: -.04em; color: var(--lime); }
.calc-range { grid-column: 1 / -1; width: 100%; margin-top: 14px; appearance: none; -webkit-appearance: none; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--lime) calc(var(--v, 0) * 100%), rgba(255, 255, 255, .14) 0); outline: none; cursor: pointer; }
.calc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--lime); }
.calc-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--lime); }
.calc-rows { margin-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12); }
.calc-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.calc-row b { display: block; font-size: 18px; font-weight: 500; }
.calc-row span { font-size: 13.5px; color: #8A8A84; }
.calc-row p { margin: 0; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.03em; white-space: nowrap; }

@media (max-width: 1100px) {
  .feat-grid, .devices, .next-pages, .ideas { grid-template-columns: repeat(2, 1fr); }
  .badges, .rules { grid-template-columns: repeat(2, 1fr); }
  .flow, .flow-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .memdemo, .honest, .who, .pj-grid { grid-template-columns: 1fr; }
  .pj-grid { margin-left: 0; }
  .pj-head { grid-template-columns: 34px minmax(0, 1fr) 18px; gap: 12px; }
  .pj-meta { grid-column: 2; grid-row: 2; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
  .pj-head .ch-plus { grid-column: 3; grid-row: 1; }
  .rp-line { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .feat-grid, .devices, .next-pages, .ideas, .flow, .flow-5 { grid-template-columns: 1fr; }
  .feat, .dev, .flow li { min-height: 0; }
  .dev h3 { margin-top: 26px; }
  .flow b { margin-top: 16px; }
  .memdemo { padding: 10px; border-radius: 26px; }
  .md-right { grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
  .md-cells i { height: 44px; font-size: 20px; }
  .sim { border-radius: 26px; }
  .sim-track { height: 170px; gap: 5px; }
  .sim-step b { font-size: 13px; }
  .sim-next { text-align: left; }
  .rules b { font-size: 28px; }
  .variant, .who-main, .who-side, .calc { border-radius: 26px; }
  .who-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 0 var(--pad); }
  .who-tabs::-webkit-scrollbar { display: none; }
  .who-tabs button { flex: none; padding: 10px 18px; font-size: 15px; }
  .bd-tests li { grid-template-columns: 12px 1fr; }
  .bd-tests li span:last-child { grid-column: 2; text-align: left; font-size: 13px; }
  .np { min-height: 140px; }
}

.explore { position: relative; z-index: 3; background: var(--bg); }
.who-sec { padding-top: 0; }

/* reveals: animated content stays hidden until its animation has taken over, so nothing
   flashes in its final place first. If the scripts never run, it appears after a moment. */
html.js:not(.js-ready) :is(.split, .rv) {
  visibility: hidden;
  animation: rt-failsafe 0s 6s forwards;
}
/* the home hero sits under the loader until its intro starts, so it needs no fallback */
html.js:not(.hero-in) .hero :is(h1, .hero-sub, .hero-cta, .hero-meta) { visibility: hidden; }
@keyframes rt-failsafe { to { visibility: visible; } }

/* ---------- legal pages (Impressum, Datenschutz, AGB) ---------- */
.f-copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.f-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.f-legal a { color: var(--ink2); transition: color .2s; }
.f-legal a:hover, .f-legal a[aria-current] { color: var(--ink); }

.legal-hero { padding: clamp(130px, 18svh, 190px) var(--pad) clamp(28px, 4vw, 56px); max-width: 1180px; margin: 0 auto; }
.legal-hero h1 { font-size: clamp(48px, 7vw, 108px); line-height: .93; letter-spacing: -.05em; margin: 0; }
.legal-hero h1 em { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; }
.legal-hero .p-lead { margin-top: 22px; }
.legal-meta { margin: 22px 0 0; font-size: 13.5px; color: var(--ink3); }
.legal { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); max-width: 1180px; margin: 0 auto; padding: 0 var(--pad) clamp(70px, 10vw, 140px); align-items: start; }
.legal-toc { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.legal-toc b { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); margin-bottom: 10px; }
.legal-toc a { color: var(--ink2); padding: 7px 12px; margin-left: -12px; border-radius: 10px; transition: background .2s, color .2s; }
.legal-toc a:hover { background: var(--well); color: var(--ink); }
.prose { background: var(--paper); border-radius: 30px; padding: clamp(26px, 4vw, 56px); font-size: 16.5px; line-height: 1.65; color: var(--ink); }
.prose section + section { margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--line); }
.prose h2 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -.03em; margin: 0 0 16px; scroll-margin-top: 110px; }
.prose h3 { font-size: 17.5px; letter-spacing: -.01em; margin: 26px 0 8px; }
.prose p, .prose ul { margin: 0 0 14px; color: var(--ink2); }
.prose p:last-child, .prose ul:last-child { margin-bottom: 0; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose address { font-style: normal; color: var(--ink); }
.prose .num { font-family: var(--mono); font-size: 13px; color: var(--ink3); margin-right: 10px; }
.legal-card { background: var(--bg); border-radius: 20px; padding: 20px 22px; margin: 0 0 14px; }
.legal-card p { margin: 0; color: var(--ink); }
.legal-card p + p { margin-top: 4px; color: var(--ink2); }
@media (max-width: 860px) {
  .legal { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
  .prose { border-radius: 24px; font-size: 16px; }
}
/* the lime marker that follows the section you are reading */
.legal-toc a { position: relative; z-index: 1; }
.legal-toc a.is-active { color: var(--ink); font-weight: 600; }
.legal-toc a.is-active:hover { background: transparent; }
.toc-marker { position: absolute; left: -12px; top: 0; height: 0; width: 0; border-radius: 10px; background: var(--lime); opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease), height .45s var(--ease), width .45s var(--ease), opacity .3s; }
.legal-toc a { align-self: flex-start; }

/* ---------- section backdrops ----------
   Every section gets a quiet light of its own instead of a flat colour. One layer per section
   (.amb, first child, behind the content), full bleed even inside centred sections. Each one
   fades out towards its top and bottom edge, so sections flow into each other without a seam.
   All static gradients: nothing animates, nothing is repainted while scrolling. */
.p-hero, .p-section, .more, .kurs, .final, .ipad-sec { position: relative; isolation: isolate; }
.amb { position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw; z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.amb::before { content: ""; position: absolute; inset: 0; }

/* lime light off to one side, well away from the edges */
.amb-glow-r::before, .amb-glow-l::before {
  background:
    radial-gradient(ellipse 46% 52% at var(--gx, 88%) var(--gy, 40%), rgba(198, 238, 58, .42), rgba(198, 238, 58, .14) 48%, rgba(198, 238, 58, 0) 74%),
    radial-gradient(ellipse 22% 28% at calc(var(--gx, 88%) - 5%) calc(var(--gy, 40%) + 8%), rgba(110, 145, 18, .16), rgba(110, 145, 18, 0) 70%); }
.amb-glow-l { --gx: 10%; --gy: 60%; }

/* a soft light in the middle, low behind the content */
.amb-grid::before {
  background:
    radial-gradient(ellipse 50% 46% at 50% 60%, rgba(198, 238, 58, .3), rgba(198, 238, 58, .1) 50%, rgba(198, 238, 58, 0) 74%); }

/* dark sections: lime glows up from below */
.amb-dark { -webkit-mask-image: none; mask-image: none; }
.amb-dark::before {
  background:
    radial-gradient(ellipse 55% 55% at 72% 105%, rgba(198, 238, 58, .34), rgba(198, 238, 58, .1) 50%, rgba(198, 238, 58, 0) 75%),
    radial-gradient(ellipse 30% 30% at 15% 0%, rgba(198, 238, 58, .1), rgba(198, 238, 58, 0) 70%); }

/* the closing call to action: one big light behind the store button */
.amb-final::before {
  background:
    radial-gradient(ellipse 55% 60% at 50% 70%, rgba(198, 238, 58, .7), rgba(198, 238, 58, .25) 45%, rgba(198, 238, 58, 0) 72%),
    radial-gradient(ellipse 22% 28% at 50% 80%, rgba(110, 145, 18, .3), rgba(110, 145, 18, 0) 70%); }

/* subpage heroes share the home hero's signature: the light behind fluted glass */
.amb-flute::before {
  background:
    linear-gradient(var(--bg) 0%, rgba(242, 242, 239, .82) 24%, rgba(242, 242, 239, 0) 58%),
    radial-gradient(ellipse 70% 80% at 72% 88%, #C6EE3A 0%, rgba(198, 238, 58, .75) 32%, rgba(198, 238, 58, .25) 62%, rgba(198, 238, 58, 0) 82%),
    radial-gradient(ellipse 30% 40% at 78% 95%, rgba(92, 128, 8, .55), rgba(92, 128, 8, 0) 70%); }
.amb-flute { -webkit-mask-image: linear-gradient(#000 74%, transparent); mask-image: linear-gradient(#000 74%, transparent); }
.amb-flute .ribs { position: absolute; inset: 0; z-index: 1; --rib: clamp(14px, 1.45vw, 24px);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .24) calc(var(--rib) * .25),
    rgba(255, 255, 255, .06) calc(var(--rib) * .55), rgba(14, 14, 15, .03) calc(var(--rib) * .85),
    rgba(14, 14, 15, .06) calc(var(--rib) - 1px), rgba(255, 255, 255, 0) var(--rib)); }
@media (max-width: 860px) {
  .amb-flute::before { background:
    linear-gradient(var(--bg) 0%, rgba(242, 242, 239, .8) 30%, rgba(242, 242, 239, 0) 62%),
    radial-gradient(ellipse 120% 70% at 60% 100%, #C6EE3A 0%, rgba(198, 238, 58, .6) 35%, rgba(198, 238, 58, 0) 78%); }
}
.amb-final { -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 62%, transparent); mask-image: linear-gradient(transparent, #000 25%, #000 62%, transparent); }
