/* ==========================================================================
   ProScola — Redesign layer (2026)
   Sits on top of styles.css. Reuses the brand tokens (--pr-ink #22215F,
   --pr-accent Warm Machine #C2410C, Lexend, 8pt spacing) and the proven
   atoms (btn-klapp / btn-proscola / btn-demo, equation-board, lightbox,
   faq, header, footer). Adds an elevated, Swiss-trust-forward section system.
   ========================================================================== */

/* ---- shared section system ---------------------------------------------- */
.rd-band { padding: clamp(60px, 8vw, 120px) 0; }
.rd-band-tint { background: var(--pr-paper-tint-lavender); }
.rd-band-ink {
  background:
    radial-gradient(110% 130% at 80% 0%, #2C2B72 0%, var(--pr-ink) 60%);
  color: var(--pr-paper);
}
.rd-eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pr-accent);
}
.rd-band-ink .rd-eyebrow { color: #F2B68C; }
.rd-h {
  font-family: var(--pr-font);
  font-weight: 600;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: var(--pr-ink);
  margin: 0 0 clamp(16px, 2.2vw, 24px);
  text-wrap: balance;
}
.rd-band-ink .rd-h { color: var(--pr-paper); }
.rd-sub {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
  color: var(--pr-ink);
  opacity: 0.78;
  max-width: 54ch;
  margin: 0;
}
.rd-band-ink .rd-sub { color: #C8C7E8; opacity: 1; }
.rd-center { text-align: center; }
.rd-center .rd-h,
.rd-center .rd-sub { margin-inline: auto; }
.rd-head { max-width: 780px; }
.rd-center.rd-head { margin-inline: auto; }

/* ==========================================================================
   HERO — dual-login, elevated. Centered slogan + Swiss credential.
   ========================================================================== */
.rd-hero {
  position: relative;
  padding: clamp(52px, 7vw, 96px) 0 clamp(48px, 6vw, 84px);
  background:
    radial-gradient(80% 70% at 50% -10%, var(--pr-paper-tint-lavender) 0%, transparent 62%),
    var(--pr-paper);
  overflow: hidden;
  text-align: center;
}
.rd-hero .container { position: relative; z-index: 1; }
.rd-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 7px 16px 7px 8px;
  border: 1px solid var(--pr-hairline);
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  box-shadow: var(--pr-shadow-sm);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--pr-ink);
}
.rd-hero-kicker img { width: 22px; height: auto; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,0.14); }
.rd-hero-title {
  font-family: var(--pr-font);
  font-weight: 600;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--pr-ink);
  margin: 0 auto 22px;
  max-width: 16ch;
  text-wrap: balance;
}
.rd-hero-title .accent { color: var(--pr-accent); }
.rd-hero-avail {
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 500;
  color: var(--pr-ink);
  opacity: 0.82;
  margin: 0 0 36px;
}
.rd-hero-logins {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin: 0 0 22px;
}
.rd-hero-or {
  font-size: 14px;
  font-weight: 500;
  color: var(--pr-muted);
}
.rd-hero-demo-row { display: flex; justify-content: center; margin: 0 0 40px; }
.rd-hero-trust {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  max-width: 640px;
}
.rd-hero-trust li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--pr-ink);
}
.rd-hero-trust li::before {
  content: "";
  width: 18px; height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2410C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat,
    var(--pr-accent-ring);
}
.rd-hero-cred {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 38px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--pr-hairline);
}
.rd-hero-cred .flags { display: inline-flex; align-items: center; gap: 6px; }
.rd-hero-cred .flags img { height: 26px; width: auto; border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,0.16); }
.rd-hero-cred span { font-size: 14px; font-weight: 500; color: var(--pr-muted); }

/* hero entrance uses the shared .reveal mechanism (main.js adds .is-visible);
   stagger via --i. End-state is visible by default for reduced-motion / no-JS. */

/* ==========================================================================
   INTRO — quiet lead-in
   ========================================================================== */
.rd-intro { text-align: center; padding: clamp(56px, 7vw, 104px) 0 clamp(20px, 3vw, 40px); }
.rd-intro-lead {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pr-accent);
  margin: 0 0 22px;
}
.rd-intro-title {
  font-family: var(--pr-font);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--pr-ink);
  margin: 0 auto 18px;
  max-width: 22ch;
  text-wrap: balance;
}
.rd-intro-welcome {
  font-size: clamp(17px, 1.8vw, 21px);
  color: var(--pr-ink);
  opacity: 0.72;
  margin: 0;
}

/* ==========================================================================
   PILLARS — two deep-dive cards (Lernpfade / HUB 360)
   ========================================================================== */
.rd-pillars-head { margin: 0 auto clamp(40px, 5vw, 60px); }
.rd-pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(22px, 3vw, 32px);
}
@media (max-width: 900px) { .rd-pillar-grid { grid-template-columns: 1fr; } }
.rd-pillar {
  display: flex;
  flex-direction: column;
  background: var(--pr-paper);
  border: 1px solid var(--pr-hairline);
  border-radius: var(--pr-radius-lg);
  padding: clamp(26px, 3vw, 40px);
  box-shadow: var(--pr-shadow-sm);
  transition: transform var(--pr-transition), box-shadow var(--pr-transition), border-color var(--pr-transition);
}
.rd-pillar:hover { transform: translateY(-4px); box-shadow: var(--pr-shadow-md); border-color: var(--pr-lavender); }
.rd-pillar-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}
.rd-pillar-index {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--pr-accent);
  background: var(--pr-accent-ring);
  width: 40px; height: 40px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
}
.rd-pillar-phase {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pr-muted);
}
.rd-pillar-name {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--pr-ink);
  margin: 0 0 12px;
}
.rd-pillar-desc {
  font-size: 16px;
  line-height: 1.55;
  color: var(--pr-ink);
  opacity: 0.78;
  margin: 0 0 20px;
}
.rd-pillar-points {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.rd-pillar-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--pr-ink);
}
.rd-pillar-points li::before {
  content: "";
  width: 20px; height: 20px; margin-top: 1px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2410C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat,
    var(--pr-accent-ring);
}
.rd-pillar-figure {
  margin: auto 0 0;
  border-radius: var(--pr-radius);
  overflow: hidden;
  border: 1px solid var(--pr-hairline);
  background: var(--pr-paper-tint);
  position: relative;
}
.rd-pillar-figure img { width: 100%; height: auto; display: block; }
.rd-pillar-figure .rd-figcap {
  position: absolute;
  left: 12px; bottom: 12px;
  padding: 7px 12px;
  border-radius: 7px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 600; color: var(--pr-ink);
  box-shadow: var(--pr-shadow-sm);
}
.rd-pillar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--pr-accent);
}
.rd-pillar-cta::after { content: "→"; transition: transform var(--pr-transition); }
.rd-pillar-cta:hover::after { transform: translateX(4px); }
.rd-compliance {
  margin: clamp(32px, 4vw, 48px) 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pr-muted);
}
.rd-compliance b { color: var(--pr-accent); font-weight: 700; }

/* ==========================================================================
   TIME-MATH — image + equation board (reuses .equation-board from styles.css)
   ========================================================================== */
.rd-math-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 880px) { .rd-math-grid { grid-template-columns: 1fr; } }
.rd-math-figure {
  border-radius: var(--pr-radius-lg);
  overflow: hidden;
  box-shadow: var(--pr-shadow-lg);
}
.rd-math-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-math-cred {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.5;
  color: var(--pr-ink);
  opacity: 0.78;
  margin: 0 0 28px;
}

/* ---- flip-card maths block: big number ⟷ worked equation -------------- */
.rd-mathscard {
  position: relative;
  width: 100%;
  perspective: 1600px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rd-mathscard:focus-visible { outline: 3px solid var(--pr-accent); outline-offset: 4px; border-radius: var(--pr-radius-lg); }
.rd-mathscard-inner {
  position: relative; width: 100%;
  display: grid;
  transition: transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
}
.rd-mathscard.is-flipped .rd-mathscard-inner,
.rd-mathscard.is-autoflip .rd-mathscard-inner { transform: rotateY(180deg); }
.rd-mathscard-face {
  grid-area: 1 / 1;            /* both faces share one cell → card grows to the taller face */
  min-height: 380px;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border-radius: var(--pr-radius-lg);
  display: flex; flex-direction: column;
  padding: clamp(28px, 3.4vw, 42px);
  overflow: hidden;
}
/* FRONT — the "crazy number" */
.rd-mathscard-front {
  background: var(--pr-paper);
  border: 1px solid var(--pr-hairline);
  box-shadow: var(--pr-shadow-md);
  justify-content: center;
  background-image:
    linear-gradient(rgba(34,33,95,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,33,95,0.045) 1px, transparent 1px);
  background-size: 24px 24px;
}
.rd-mathscard-kick {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--pr-accent); margin-bottom: 14px;
}
.rd-mathscard-big {
  font-family: var(--pr-font); font-weight: 600;
  font-size: clamp(74px, 10vw, 116px); line-height: 0.9; letter-spacing: -0.04em;
  color: var(--pr-accent);
  display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 9px;
}
.rd-mathscard-big .u { font-size: 0.34em; font-weight: 600; letter-spacing: -0.01em; }
.rd-mathscard-biglabel {
  font-size: clamp(17px, 1.8vw, 21px); font-weight: 500; line-height: 1.3;
  color: var(--pr-ink); margin-top: 14px; max-width: 22ch;
}
.rd-mathscard-flip {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 22px;
  font-size: 14px; font-weight: 600; color: var(--pr-muted);
}
.rd-mathscard-flip .ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--pr-accent-ring); color: var(--pr-accent); font-size: 15px;
  transition: transform var(--pr-transition);
}
.rd-mathscard:hover .rd-mathscard-front .rd-mathscard-flip .ic { transform: rotate(180deg); }
/* BACK — the worked equation, on maths-exercise-book grid */
.rd-mathscard-back {
  transform: rotateY(180deg);
  background: var(--pr-ink);
  color: var(--pr-paper);
  border: 1px solid var(--pr-ink);
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.rd-mathscard-backtitle {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: #F2B68C; margin-bottom: 16px;
}
.rd-eq { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rd-eq li {
  display: grid; grid-template-columns: 5.8em 1fr; gap: 16px; align-items: baseline;
  padding: 5px 0; font-size: clamp(13.5px, 1.4vw, 15px); line-height: 1.3; color: #C8C7E8;
}
.rd-eq li b {
  font-family: var(--pr-font); font-weight: 600; font-size: 1.1em; white-space: nowrap;
  letter-spacing: -0.01em; color: var(--pr-paper); text-align: right; font-variant-numeric: tabular-nums;
}
.rd-eq-sum { border-top: 1px dashed rgba(255,255,255,0.22); margin-top: 3px; padding-top: 9px !important; }
.rd-eq-sum b { color: #fff; }
.rd-eq-total {
  border-top: 2px solid rgba(255,255,255,0.5); margin-top: 3px; padding-top: 11px !important;
}
.rd-eq-total b, .rd-eq-total span { color: #F2B68C !important; }
.rd-eq-total b { font-size: 1.75em !important; line-height: 0.95; }
.rd-eq-total span { font-weight: 500; }
.rd-eq-foot {
  margin: 12px 0 0; font-size: 11px; line-height: 1.45; color: #9A9AB8;
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 10px;
}
.rd-mathscard-back .rd-mathscard-flip { color: #B9B8D6; margin-top: 14px; padding-top: 0; }
.rd-mathscard-back .rd-mathscard-flip .ic { background: rgba(242,182,140,0.16); color: #F2B68C; }
@media (max-width: 460px) { .rd-mathscard-face { min-height: 360px; } }
@media (prefers-reduced-motion: reduce) {
  .rd-mathscard-inner { transition: none; }
}

/* ---- click-to-enlarge image (reuses the lightbox in main.js) ---------- */
.rd-zoom {
  position: relative; display: block; margin: 0;
  border-radius: var(--pr-radius-lg); overflow: hidden;
  border: 1px solid var(--pr-hairline); box-shadow: var(--pr-shadow-lg);
  background: var(--pr-paper); cursor: zoom-in;
}
.rd-zoom img { width: 100%; height: auto; display: block; transition: transform 600ms cubic-bezier(0.16,1,0.3,1); }
.rd-zoom:hover img { transform: scale(1.03); }
.rd-zoom-badge {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px;
  background: rgba(34,33,95,0.86); color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background var(--pr-transition);
}
.rd-zoom:hover .rd-zoom-badge { background: var(--pr-accent); }
.rd-zoom-badge svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.4; }

/* ==========================================================================
   FOR SCHOOLS — Schulleitung band with Mutschellen proof + stats
   ========================================================================== */
.rd-school-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 880px) { .rd-school-grid { grid-template-columns: 1fr; } }
.rd-school-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.rd-proof {
  background: var(--pr-paper);
  border: 1px solid var(--pr-hairline);
  border-radius: var(--pr-radius-lg);
  padding: clamp(28px, 3.5vw, 44px);
  box-shadow: var(--pr-shadow-md);
}
.rd-proof-quote {
  margin: 0 0 26px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--pr-hairline);
}
.rd-proof-quote blockquote {
  margin: 0 0 16px;
  font-family: var(--pr-font);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.36;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--pr-ink);
  text-wrap: balance;
}
.rd-proof-quote blockquote p { margin: 0; }
.rd-proof-quote figcaption {
  display: flex; align-items: center; gap: 11px;
  font-size: 13px; color: var(--pr-muted);
}
.rd-proof-quote figcaption .pin {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  background: var(--pr-accent-ring);
  display: flex; align-items: center; justify-content: center; color: var(--pr-accent);
}
.rd-proof-quote figcaption strong { display: block; color: var(--pr-ink); font-weight: 600; font-size: 14px; }
.rd-stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 460px) { .rd-stats { grid-template-columns: 1fr; gap: 14px; } }
.rd-stats strong {
  display: block;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--pr-accent);
  line-height: 1;
  margin-bottom: 6px;
}
.rd-stats span { font-size: 13px; line-height: 1.4; color: var(--pr-ink); opacity: 0.74; }

/* school proof — saved-hours figure + worked example */
.rd-proof-lead { font-size: 15px; line-height: 1.5; color: var(--pr-ink); opacity: 0.74; margin: 0 0 24px; }
.rd-proof-figure {
  display: flex; flex-direction: column; gap: 6px;
  padding: 0 0 24px; margin: 0 0 24px;
  border-bottom: 1px solid var(--pr-hairline);
}
.rd-proof-num { font-size: clamp(40px, 5vw, 60px); font-weight: 600; letter-spacing: -0.03em; color: var(--pr-accent); line-height: 0.95; }
.rd-proof-num-label { font-size: 14px; color: var(--pr-ink); opacity: 0.74; max-width: 34ch; }
.rd-proof-example figcaption { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pr-muted); margin-bottom: 10px; }
.rd-proof-example p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--pr-ink); }

/* ==========================================================================
   GLIMPSE — product preview tiles (reuses lightbox JS from main.js)
   ========================================================================== */
.rd-glimpse-hint { text-align: center; font-size: 15px; color: var(--pr-muted); margin: 0 0 clamp(32px, 4vw, 44px); }
.rd-glimpse-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.4vw, 26px);
}
@media (max-width: 760px) { .rd-glimpse-grid { grid-template-columns: 1fr; } }
.rd-tile {
  display: block;
  background: var(--pr-paper);
  border: 1px solid var(--pr-hairline);
  border-radius: var(--pr-radius-lg);
  overflow: hidden;
  box-shadow: var(--pr-shadow-sm);
  cursor: pointer;
  transition: transform var(--pr-transition), box-shadow var(--pr-transition), border-color var(--pr-transition);
  text-decoration: none;
}
.rd-tile:hover { transform: translateY(-4px); box-shadow: var(--pr-shadow-lg); border-color: var(--pr-lavender); }
.rd-tile-body { padding: clamp(22px, 2.6vw, 30px) clamp(22px, 2.6vw, 30px) 16px; }
.rd-tile h3 { font-size: clamp(19px, 2vw, 23px); font-weight: 600; letter-spacing: -0.01em; color: var(--pr-ink); margin: 0 0 8px; }
.rd-tile p { font-size: 15px; line-height: 1.5; color: var(--pr-ink); opacity: 0.74; margin: 0; }
.rd-tile-figure { position: relative; margin: 0; border-top: 1px solid var(--pr-hairline); background: var(--pr-paper-tint); overflow: hidden; }
.rd-tile-figure img { width: 100%; height: auto; display: block; transition: transform 600ms cubic-bezier(0.16,1,0.3,1); }
.rd-tile:hover .rd-tile-figure img { transform: scale(1.03); }
.rd-tile-count {
  position: absolute; right: 12px; top: 12px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(34,33,95,0.86); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
}

/* ==========================================================================
   CLOSING CTA (ink)
   ========================================================================== */
.rd-closing { text-align: center; }
.rd-closing .rd-h { margin-inline: auto; }
.rd-closing-lead {
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.5;
  color: #C8C7E8;
  max-width: 48ch;
  margin: 0 auto 36px;
}
.rd-closing-ctas { display: flex; flex-wrap: wrap; gap: 18px 24px; justify-content: center; align-items: center; }

/* ==========================================================================
   Section divider flourish — thin Swiss cross accent (used sparingly)
   ========================================================================== */
.rd-flag-rule {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0 auto;
  color: var(--pr-muted); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.rd-flag-rule::before, .rd-flag-rule::after { content: ""; height: 1px; width: clamp(40px, 12vw, 120px); background: var(--pr-hairline); }
.rd-flag-rule img { height: 20px; width: auto; }

/* ==========================================================================
   PHOTO HERO — full-bleed classroom image with scroll pull-back.
   Lives on the homepage (DE + EN). JS in main.js drives the pull-back.
   ========================================================================== */
.ph-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 96px 0 clamp(44px, 7vh, 92px);
  background: var(--pr-ink);
}
.ph-hero-media { position: absolute; inset: 0; z-index: 0; will-change: transform; transform-origin: 60% 40%; }
.ph-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(16,15,48,0.92) 0%, rgba(16,15,48,0.64) 28%, rgba(16,15,48,0.26) 56%, rgba(16,15,48,0.12) 100%),
    linear-gradient(90deg, rgba(16,15,48,0.5) 0%, rgba(16,15,48,0.14) 44%, transparent 64%);
}
.ph-hero-inner { position: relative; z-index: 2; width: 100%; will-change: transform, opacity; }
.ph-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px; padding: 7px 16px 7px 8px;
  border: 1px solid rgba(255,255,255,0.28); border-radius: 999px;
  background: rgba(255,255,255,0.10);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 13.5px; font-weight: 600; color: #fff; letter-spacing: 0.01em;
}
.ph-kicker img { width: 22px; height: auto; border-radius: 2px; }
.ph-title {
  font-family: var(--pr-font); font-weight: 600;
  font-size: clamp(33px, 4.8vw, 60px); line-height: 1.02; letter-spacing: -0.03em;
  color: #fff; margin: 0 0 20px; max-width: 16ch; text-wrap: balance;
  text-shadow: 0 2px 26px rgba(14,13,44,0.5), 0 1px 3px rgba(14,13,44,0.35);
}
.ph-title .accent { color: #F2884A; }
.ph-lead {
  font-size: clamp(17px, 1.8vw, 22px); line-height: 1.5; color: #DDDCEC;
  max-width: 44ch; margin: 0 0 34px;
  text-shadow: 0 1px 14px rgba(14,13,44,0.55);
}
.ph-ctas { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; width: max-content; max-width: 100%; }
.ph-logins { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.ph-demo-row { display: flex; align-self: center; }
.ph-cred { display: flex; align-items: center; gap: 11px; margin: 40px 0 0; font-size: 13.5px; font-weight: 500; color: #B9B8D6; }
.ph-cred img { height: 22px; width: auto; border-radius: 2px; }
.ph-scrollcue {
  position: absolute; right: 30px; bottom: 26px;
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.7); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  will-change: opacity;
}
.ph-scrollcue .mouse { width: 22px; height: 34px; border: 2px solid rgba(255,255,255,0.55); border-radius: 12px; position: relative; }
.ph-scrollcue .mouse::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 2px;
  background: #fff; transform: translateX(-50%); animation: ph-wheel 1.6s ease-in-out infinite;
}
@keyframes ph-wheel { 0%,100% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; transform: translate(-50%, 8px); } }
.ph-hero .reveal { transition-duration: 1100ms; }
@media (prefers-reduced-motion: reduce) {
  .ph-hero-media { transform: none !important; }
  .ph-scrollcue .mouse::after { animation: none; }
}
@media (max-width: 640px) { .ph-scrollcue { display: none; } }

/* ==========================================================================
   INNER PAGE HERO — elevated header band for demo / kontakt / legal
   ========================================================================== */
.rd-pagehero {
  position: relative;
  padding: clamp(108px, 14vh, 168px) 0 clamp(48px, 7vw, 88px);
  background:
    radial-gradient(90% 120% at 82% -10%, var(--pr-paper-tint-lavender) 0%, transparent 60%),
    var(--pr-paper);
  border-bottom: 1px solid var(--pr-hairline);
  text-align: center;
}
.rd-pagehero .rd-eyebrow { margin-bottom: 16px; }
.rd-pagehero h1 {
  font-family: var(--pr-font); font-weight: 600;
  font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.025em;
  color: var(--pr-ink); margin: 0 auto 18px; max-width: 18ch; text-wrap: balance;
}
.rd-pagehero .rd-pagehero-sub {
  font-size: clamp(17px, 1.8vw, 21px); line-height: 1.55;
  color: var(--pr-ink); opacity: 0.78; max-width: 52ch; margin: 0 auto;
}
.rd-pagehero-ink {
  background: radial-gradient(100% 130% at 50% -10%, #2C2B72 0%, var(--pr-ink) 62%);
  border-bottom: 0;
}
.rd-pagehero-ink .rd-eyebrow { color: #F2B68C; }
.rd-pagehero-ink h1 { color: var(--pr-paper); }
.rd-pagehero-ink .rd-pagehero-sub { color: #C8C7E8; opacity: 1; }

/* prose blocks for legal pages */
.rd-prose { max-width: 760px; margin: 0 auto; }
.rd-prose h2 {
  font-family: var(--pr-font); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.015em; color: var(--pr-ink); margin: clamp(34px, 4vw, 48px) 0 14px;
}
.rd-prose h2:first-child { margin-top: 0; }
.rd-prose p, .rd-prose li { font-size: 17px; line-height: 1.65; color: var(--pr-ink); opacity: 0.84; }
.rd-prose p { margin: 0 0 16px; }
.rd-prose a { color: var(--pr-accent); font-weight: 500; }
.rd-prose ul { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.rd-prose-card {
  background: var(--pr-paper); border: 1px solid var(--pr-hairline);
  border-radius: var(--pr-radius-lg); padding: clamp(28px, 4vw, 48px); box-shadow: var(--pr-shadow-sm);
}

/* ==========================================================================
   CONTACT / DEMO — form + trust aside
   ========================================================================== */
.rd-contact { padding: clamp(48px, 6vw, 84px) 0 clamp(64px, 8vw, 110px); }
.rd-contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 880px) { .rd-contact-grid { grid-template-columns: 1fr; } }
.rd-form-card {
  background: var(--pr-paper);
  border: 1px solid var(--pr-hairline);
  border-radius: var(--pr-radius-lg);
  padding: clamp(26px, 3.4vw, 44px);
  box-shadow: var(--pr-shadow-md);
}
.rd-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
@media (max-width: 880px) { .rd-aside { position: static; } }
.rd-aside-card {
  background: var(--pr-paper-tint-lavender);
  border: 1px solid var(--pr-hairline);
  border-radius: var(--pr-radius-lg);
  padding: clamp(24px, 3vw, 32px);
}
.rd-aside-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--pr-ink); margin: 0 0 16px; }
.rd-aside-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rd-aside-list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; font-size: 15px; line-height: 1.45; color: var(--pr-ink); }
.rd-aside-list li::before {
  content: ""; width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2410C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat,
    var(--pr-accent-ring);
}
.rd-aside-trust {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px; border: 1px solid var(--pr-hairline); border-radius: var(--pr-radius-lg);
  background: var(--pr-ink); color: var(--pr-paper);
}
.rd-aside-trust img { height: 26px; width: auto; border-radius: 2px; }
.rd-aside-trust span { font-size: 13.5px; font-weight: 500; line-height: 1.4; color: #C8C7E8; }

/* ==========================================================================
   Refined reveal — a soft "dissolve into focus", not a slide-in.
   Overrides the shared .reveal (this sheet loads after styles.css).
   Pure opacity + blur-to-sharp + a barely-there scale settle. No Y-slide.
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: scale(0.992);
  filter: blur(7px);
  transition-property: opacity, filter, transform;
  transition-duration: 1000ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 75ms);
  will-change: opacity, filter, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ==========================================================================
   WIDE-PICTURE TIME BAND — full-bleed photo, big figure overlaid,
   equation panel revealed on hover / tap. Used for Lernpfade (95 Std).
   JS toggle (.is-open) in main.js covers touch + keyboard.
   ========================================================================== */
.wm-band {
  position: relative;
  width: 100%;
  min-height: clamp(440px, 58vh, 600px);
  border-radius: var(--pr-radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--pr-shadow-lg);
  cursor: pointer;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.wm-band:focus-visible { outline: 3px solid var(--pr-accent); outline-offset: 4px; }
.wm-band > img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  transition: transform 900ms cubic-bezier(0.22,1,0.36,1);
}
.wm-band:hover > img { transform: scale(1.04); }
.wm-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(16,15,48,0.86) 0%, rgba(16,15,48,0.5) 30%, rgba(16,15,48,0.1) 60%, transparent 78%),
    linear-gradient(90deg, rgba(16,15,48,0.62) 0%, rgba(16,15,48,0.18) 42%, transparent 66%);
}
.wm-inner {
  position: relative; z-index: 2; width: 100%;
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(20px, 4vw, 48px);
  align-items: end;
}
.wm-figure { color: #fff; }
.wm-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: #F2B68C; margin: 0 0 14px;
}
.wm-big {
  font-family: var(--pr-font); font-weight: 600;
  font-size: clamp(80px, 12vw, 164px); line-height: 0.82; letter-spacing: -0.05em;
  color: #fff; text-shadow: 0 4px 40px rgba(12,11,40,0.5);
  display: flex; align-items: baseline; gap: 10px;
}
.wm-big .u { font-size: 0.34em; font-weight: 600; letter-spacing: -0.01em; color: #F2B68C; }
.wm-biglabel {
  font-size: clamp(17px, 1.9vw, 23px); font-weight: 500; line-height: 1.3;
  color: #EDECFA; margin: 16px 0 0; max-width: 26ch;
  text-shadow: 0 2px 18px rgba(12,11,40,0.5);
}
.wm-hint {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 22px 0 0; font-size: 13.5px; font-weight: 600; color: #C8C7E8;
  transition: opacity 360ms ease;
}
.wm-hint .ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4); color: #fff; font-size: 14px;
  animation: wm-pulse 2.2s ease-in-out infinite;
}
@keyframes wm-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(242,182,140,0.0); } 50% { box-shadow: 0 0 0 7px rgba(242,182,140,0.10); } }
.wm-band:hover .wm-hint, .wm-band.is-open .wm-hint { opacity: 0; }
.wm-panel {
  align-self: end;
  width: min(420px, 78vw);
  background: rgba(22,21,60,0.62);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--pr-radius);
  padding: clamp(22px, 2.6vw, 30px);
  opacity: 0; transform: translateY(16px) scale(0.98);
  transition: opacity 520ms cubic-bezier(0.22,1,0.36,1), transform 520ms cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}
.wm-band:hover .wm-panel, .wm-band.is-open .wm-panel { opacity: 1; transform: none; }
.wm-panel-title {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: #F2B68C; margin: 0 0 14px;
}
.wm-eq { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wm-eq li {
  display: grid; grid-template-columns: 5.8em 1fr; gap: 15px; align-items: baseline;
  padding: 5px 0; font-size: 14px; line-height: 1.3; color: #C8C7E8;
}
.wm-eq li b {
  font-family: var(--pr-font); font-weight: 600; font-size: 1.1em; white-space: nowrap;
  letter-spacing: -0.01em; color: #fff; text-align: right; font-variant-numeric: tabular-nums;
}
.wm-eq-sum { border-top: 1px dashed rgba(255,255,255,0.24); margin-top: 3px; padding-top: 9px; }
.wm-eq-total { border-top: 2px solid rgba(255,255,255,0.5); margin-top: 3px; padding-top: 11px; }
.wm-eq-total b, .wm-eq-total span { color: #F2B68C; }
.wm-eq-total b { font-size: 1.7em; line-height: 0.95; }
.wm-eq-foot { margin: 12px 0 0; font-size: 11px; line-height: 1.45; color: #A9A8C6; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 10px; }
@media (max-width: 820px) {
  .wm-band { cursor: default; }
  .wm-inner { grid-template-columns: 1fr; align-items: start; gap: 22px; }
  .wm-panel { width: 100%; opacity: 1; transform: none; pointer-events: auto; }
  .wm-hint { display: none; }
  .wm-band > img { object-position: 60% 35%; }
}
@media (prefers-reduced-motion: reduce) {
  .wm-band > img, .wm-panel, .wm-hint { transition: none; }
  .wm-hint .ic { animation: none; }
  .wm-panel { opacity: 1; transform: none; }
  .wm-hint { display: none; }
}
