/* BaseSkillz – Landingpage
   Farben, Radien und Schriften wie in der App (BaseSkillz/DesignSystem/Palette.swift, Card.swift, Typography.swift).
   Dunkel ist Standard, Hell ist die Variante. Keine externen Schriften, nichts von fremden Servern. */

/* ---------- Farben: dunkel (Standard) ---------- */
:root {
  color-scheme: dark;
  --bg: #0B0E13;
  --surface: #141922;
  --surface-2: #1D2430;
  --ink: #F3F5F9;
  --ink-2: #9BA4B4;
  --ink-3: #5A6372;
  --hairline: #232A36;
  --accent: #2FE3B0;
  --accent-top: #5CF0C8;
  --accent-bottom: #26D6A5;
  --accent-ink: #2FE3B0;
  --accent-soft: #103129;
  --on-accent: #062019;
  --success: #4ADE80;
  --success-soft: #12301F;
  --hint-bg: #37211C;
  --hint-ink: #FF7A45;
  --on-subject: #10131A;
  --header-bg: rgba(11, 14, 19, .8);
  --band-bg: rgba(20, 25, 34, .6);
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  --glow-accent: rgba(47, 227, 176, .3);

  /* Fach- und Modulfarben (Skill.swift) */
  --c-violet: #A78BFA;
  --c-orange: #FF7A45;
  --c-blue: #60A5FA;
  --c-mint: #2FE3B0;
  --c-yellow: #FACC15;
  --c-pink: #F472B6;

  /* Profilfarben (ProfileAvatar.swift) */
  --p-mint: #2FE3B0;
  --p-violet: #A78BFA;
  --p-blue: #60A5FA;
  --p-pink: #F472B6;

  --radius-card: 22px;
  --radius-control: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: 20px;
  --header-h: 68px;
  /* Pinselstrich unter dem hervorgehobenen Wort (BrushStroke in Brand.swift) */
  --brush-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0 14Q55 1 100 3.6L98.5 11Q50 12.4 3 20Z'/%3E%3C/svg%3E");
}

/* ---------- Farben: hell ---------- */
[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --surface-2: #EDF0F5;
  --ink: #10131A;
  --ink-2: #5D6676;
  --ink-3: #A1A8B4;
  --hairline: #E2E6ED;
  --accent: #0EA47E;
  /* Knöpfe etwas dunkler als das Mint der App, damit weiße Schrift gut lesbar bleibt */
  --accent-top: #0C9874;
  --accent-bottom: #077556;
  --accent-ink: #087A5C;
  --accent-soft: #E2F6EF;
  --on-accent: #FFFFFF;
  --success: #12A150;
  --success-soft: #E3F6EA;
  --hint-bg: #FDEEE7;
  --hint-ink: #C2410C;
  --on-subject: #FFFFFF;
  --header-bg: rgba(244, 246, 250, .86);
  --band-bg: rgba(255, 255, 255, .7);
  --shadow: 0 18px 50px rgba(16, 19, 26, .1);
  --glow-accent: rgba(14, 164, 126, .14);

  --c-violet: #7C3AED;
  --c-orange: #EA580C;
  --c-blue: #2563EB;
  --c-mint: #0EA47E;
  --c-yellow: #CA8A04;
  --c-pink: #DB2777;

  --p-mint: #0EA47E;
  --p-violet: #7C3AED;
  --p-blue: #2563EB;
  --p-pink: #DB2777;
}

/* Modulfarben: --m-d dunkel, --m-l hell, Verlauf für Pfeil-Knöpfe, Schrift auf der Farbe */
.m { --m: var(--m-d); }
[data-theme="light"] .m { --m: var(--m-l); }
.m-dasDass { --m-d: #FACC15; --m-l: #CA8A04; --g1: #FDE68A; --g2: #EAB308; --on-m: #10131A; }
.m-comma { --m-d: #A78BFA; --m-l: #7C3AED; --g1: #B79CFF; --g2: #6D28D9; --on-m: #fff; }
.m-capitalization { --m-d: #FF7A45; --m-l: #EA580C; --g1: #FFA06B; --g2: #F04E23; --on-m: #fff; }
.m-dictation { --m-d: #2FE3B0; --m-l: #0EA47E; --g1: #6CF5CF; --g2: #10B98A; --on-m: #10131A; }
.m-confusables { --m-d: #FB7185; --m-l: #E11D48; --g1: #FDA4AF; --g2: #E11D48; --on-m: #fff; }
.m-grammarCases { --m-d: #E879F9; --m-l: #C026D3; --g1: #F5A8FF; --g2: #C026D3; --on-m: #fff; }
.m-arithmetic { --m-d: #60A5FA; --m-l: #2563EB; --g1: #7AB6FF; --g2: #2563EB; --on-m: #fff; }
.m-percentFractions { --m-d: #22D3EE; --m-l: #0891B2; --g1: #8EEBFF; --g2: #0EA5C6; --on-m: #10131A; }
.m-timeUnits { --m-d: #FBBF24; --m-l: #D97706; --g1: #FDD67A; --g2: #F59E0B; --on-m: #10131A; }
.m-ruleOfThree { --m-d: #818CF8; --m-l: #4F46E5; --g1: #A5B4FC; --g2: #4F46E5; --on-m: #fff; }
.m-geometry { --m-d: #A3E635; --m-l: #65A30D; --g1: #D9F99D; --g2: #84CC16; --on-m: #10131A; }
.m-orderOfOperations { --m-d: #F87171; --m-l: #DC2626; --g1: #FCA5A5; --g2: #DC2626; --on-m: #fff; }
.m-equations { --m-d: #34D399; --m-l: #059669; --g1: #6EE7B7; --g2: #059669; --on-m: #10131A; }
.m-divisibility { --m-d: #F07ACF; --m-l: #BE2E9E; --g1: #F9A8E0; --g2: #BE2E9E; --on-m: #fff; }
.m-vocabulary { --m-d: #F472B6; --m-l: #DB2777; --g1: #FBA8D4; --g2: #DB2777; --on-m: #fff; }
.m-irregularVerbs { --m-d: #38BDF8; --m-l: #0284C7; --g1: #9EDCFF; --g2: #0EA5E9; --on-m: #fff; }
.m-pronouns { --m-d: #2DD4BF; --m-l: #0D9488; --g1: #99F6E4; --g2: #14B8A6; --on-m: #10131A; }
.m-listening { --m-d: #C084FC; --m-l: #9333EA; --g1: #D8B4FE; --g2: #9333EA; --on-m: #fff; }

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
[data-theme="dark"] .only-light,
[data-theme="light"] .only-dark { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  flex: none;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 700px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; } }

/* ---------- Schrift ---------- */
h1, h2 {
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 1.3rem + 5.4vw, 5.5rem); }
h2 { font-size: clamp(2.1rem, 1.3rem + 3.1vw, 3.5rem); letter-spacing: -.03em; line-height: 1.04; }
h3 { font-size: 1.18rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
p { text-wrap: pretty; }
.overline {
  margin-bottom: 14px;
  color: var(--accent-ink);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.lead {
  max-width: 62ch;
  color: var(--ink-2);
  font-size: clamp(1.06rem, .98rem + .4vw, 1.26rem);
  line-height: 1.55;
}

/* Pinselstrich wie in der App: hinter dem Wort, leicht unter der Grundlinie */
.brush {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  isolation: isolate;
}
.brush::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.04em;
  right: -.08em;
  bottom: -.09em;
  height: .2em;
  background: var(--brush, var(--accent));
  -webkit-mask: var(--brush-mask) center / 100% 100% no-repeat;
  mask: var(--brush-mask) center / 100% 100% no-repeat;
  transform-origin: left center;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1) .35s;
}
[data-theme="dark"] .brush::after { filter: drop-shadow(0 0 10px var(--glow-accent)); }
.js .reveal:not(.is-visible) .brush::after { transform: scaleX(0); }

/* ---------- Knöpfe ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 52px;
  padding: 0 1.45em;
  border: 0;
  border-radius: var(--radius-control);
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.button .icon { width: 1.2em; height: 1.2em; stroke-width: 2.4; }
.button-primary {
  color: var(--on-accent);
  background: linear-gradient(180deg, var(--accent-top), var(--accent-bottom));
  box-shadow: 0 6px 18px var(--glow-accent), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.button-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px var(--glow-accent), inset 0 1px 0 rgba(255, 255, 255, .3); }
.button-primary:active { transform: translateY(0) scale(.98); }
.button-secondary {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline);
}
.button-secondary:hover { transform: translateY(-2px); border-color: var(--ink-3); }
.button-large { min-height: 58px; padding: 0 1.65em; font-size: 1.1rem; }
.button-small { min-height: 40px; padding: 0 1.05em; border-radius: 14px; font-size: .95rem; }
.button-block { width: 100%; }

/* App-Store-Knopf wie auf rubymessenger.app. Solange APP_STORE_URL in main.js leer ist: grau,
   „Bald verfügbar im App Store“, nicht klickbar. Mit Link setzt main.js .is-live: Mint wie die Laden-Knöpfe,
   „Laden im App Store“. */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 224px;
  min-height: 58px;
  padding: 8px 26px 8px 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-control);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  color: #7A8392;
  text-decoration: none;
  cursor: default;
  user-select: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
[data-theme="light"] .store-badge {
  border-color: #DDE1E7;
  background: linear-gradient(180deg, #F5F6F8, #EBEDF1);
  color: #7C848D;
}
.store-badge .icon { width: 26px; height: 26px; }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.store-badge-text small { font-size: .72rem; font-weight: 700; letter-spacing: .01em; }
.store-badge-text strong { font-size: 1.3rem; font-weight: 900; letter-spacing: -.02em; }
.store-badge.is-live,
[data-theme="light"] .store-badge.is-live {
  border-color: transparent;
  background: linear-gradient(180deg, var(--accent-top), var(--accent-bottom));
  color: var(--on-accent);
  box-shadow: 0 6px 18px var(--glow-accent), inset 0 1px 0 rgba(255, 255, 255, .3);
  cursor: pointer;
}
.store-badge.is-live:hover { transform: translateY(-2px); box-shadow: 0 12px 30px var(--glow-accent), inset 0 1px 0 rgba(255, 255, 255, .3); }
.store-badge.is-live:active { transform: translateY(0) scale(.98); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}
.icon-button:hover { border-color: var(--ink-3); }
.icon-button .icon { width: 20px; height: 20px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: var(--header-bg);
  border-bottom-color: var(--hairline);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}
.brand { display: block; flex: none; }
.brand img { width: auto; height: 46px; }
.site-nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.site-nav a {
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--ink-2);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.site-nav a:hover { color: var(--ink); background: var(--surface); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.brand + .header-actions { margin-left: auto; }
.menu-toggle { display: none; }

@media (max-width: 980px) {
  .header-actions { margin-left: auto; }
  .menu-toggle { display: grid; }
  .site-nav {
    position: absolute;
    top: calc(var(--header-h) - 4px);
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    padding: 10px;
    border: 1px solid var(--hairline);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 16px; font-size: 1.05rem; }
}
@media (max-width: 420px) {
  .brand img { height: 38px; }
  .header-actions { gap: 8px; }
}

/* ---------- Start ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + clamp(28px, 6vw, 84px)) 0 clamp(56px, 7vw, 96px);
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/splash-wide.webp") center 30% / cover no-repeat;
}
.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 14, 19, .5) 0%, rgba(11, 14, 19, .1) 28%, rgba(11, 14, 19, .25) 72%, var(--bg) 100%);
}
@media (max-width: 760px) {
  .hero-backdrop { background-image: url("../img/splash-tall.webp"); background-position: center top; }
  /* Auf dem Handy liegt der Text über den Spritzern: dort stärker abdunkeln */
  .hero-backdrop::after {
    background: linear-gradient(180deg, rgba(11, 14, 19, .5) 0%, rgba(11, 14, 19, .74) 22%, rgba(11, 14, 19, .7) 52%, rgba(11, 14, 19, .35) 74%, var(--bg) 100%);
  }
}
.hero-splat {
  display: none;
  position: absolute;
  aspect-ratio: 1200 / 1100;
  background: center / contain no-repeat;
  pointer-events: none;
}
[data-theme="light"] .hero-backdrop { background: none; }
[data-theme="light"] .hero-backdrop::after { display: none; }
[data-theme="light"] .hero-splat { display: block; }
.hero-splat-a {
  top: -6%;
  right: -12%;
  width: min(72vw, 820px);
  background-image: url("../img/splatter-math.webp");
  opacity: .5;
}
.hero-splat-b {
  bottom: -14%;
  left: -18%;
  width: min(64vw, 660px);
  background-image: url("../img/splatter-german.webp");
  opacity: .35;
  rotate: 180deg;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}
.hero-copy h1 { margin-bottom: .32em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 24px;
  color: var(--ink-2);
  font-size: .95rem;
  font-weight: 650;
}
.trust-row li { display: inline-flex; align-items: center; gap: 6px; }
.trust-row .icon { width: 18px; height: 18px; color: var(--accent-ink); stroke-width: 3; }

.hero-stage {
  position: relative;
  justify-self: center;
  width: fit-content;
  margin: 10px 0;
}

/* iPhone mit der Startseite der App. Innen rechnet alles in em: 1em = 16 Punkte der App bei 390 Punkten Breite. */
.phone {
  --phone-w: clamp(236px, 24vw, 318px);
  position: relative;
  z-index: 1;
  width: var(--phone-w);
  aspect-ratio: 390 / 844;
  padding: calc(var(--phone-w) * .034);
  border-radius: 15% / 7%;
  background: linear-gradient(150deg, #3a4250 0%, #0d1016 16%, #07090c 62%, #272d38 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .12),
    inset 0 0 0 5px #000,
    0 50px 100px -20px rgba(0, 0, 0, .6),
    0 0 120px var(--glow-accent);
  rotate: -4deg;
}
.phone-screen {
  position: relative;
  container-type: inline-size;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12.5% / 5.8%;
  background: var(--bg);
}
.app {
  position: absolute;
  inset: 0;
  padding: 0 1.25em;
  color: var(--ink);
  font-size: calc(100cqw * 16 / 390);
  line-height: 1.2;
}
.app-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.4em;
  margin: 0 -.4em;
  padding: .3em .2em 0 1em;
  font-size: .94em;
  font-weight: 700;
}
.app-island {
  position: absolute;
  top: .72em;
  left: 50%;
  width: 7.4em;
  height: 2.15em;
  border-radius: 2em;
  background: #000;
  translate: -50% 0;
}
.app-status-icons { display: flex; align-items: center; gap: .35em; }
.app-status-icons svg { width: auto; height: .78em; fill: currentColor; }
.app-header { display: flex; align-items: center; justify-content: space-between; margin-top: .35em; }
.app-logo { width: auto; height: 2.7em; }
.app-header-actions { display: flex; align-items: center; gap: .55em; }
.app-header .avatar { --size: 2.3em; }
.app-gear {
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-2);
}
.app-gear .icon { width: 1.3em; height: 1.3em; }
.app-overline {
  margin: 1.15em 0 .25em;
  color: var(--ink-2);
  font-size: .78em;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.app-title {
  margin-bottom: .6em;
  font-size: 1.9em;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.08;
}
.app-card { border: 1px solid var(--hairline); border-radius: 1.3em; background: var(--surface); }
.app-level { display: flex; align-items: center; gap: .8em; padding: .75em .9em; }
.app-level img { width: 3.1em; height: 3.1em; }
.app-level-text { flex: 1; min-width: 0; }
.app-level-text p { display: flex; align-items: baseline; gap: .45em; margin-bottom: .45em; font-size: .95em; }
.app-level-text b { font-weight: 800; font-style: italic; }
.app-level-text p span { color: var(--accent-ink); font-size: .88em; font-weight: 700; }
.app-level-text small { display: block; margin-top: .45em; color: var(--ink-2); font-size: .68em; }
.app .bar { height: .4em; }
.app-subjects {
  display: flex;
  gap: .2em;
  margin: .85em 0;
  padding: .22em;
  border: 1px solid var(--hairline);
  border-radius: 1.1em;
  background: var(--surface);
}
.app-subjects span {
  flex: 1;
  padding: .5em 0;
  border-radius: .9em;
  color: var(--ink-2);
  font-size: .82em;
  font-weight: 750;
  text-align: center;
}
.app-subjects .is-active { background: var(--c-violet); color: var(--on-subject); }
.app-modules { display: grid; grid-template-columns: 1fr 1fr; gap: .75em; }
.app-module {
  position: relative;
  overflow: hidden;
  border-radius: 1.375em;
  background: var(--surface);
  box-shadow: 0 .4em 1em color-mix(in srgb, var(--m) 20%, transparent);
}
.app-module::after,
.module::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, color-mix(in srgb, var(--m) 60%, transparent), color-mix(in srgb, var(--m) 10%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.app-module-art { height: 6.6em; background: linear-gradient(180deg, color-mix(in srgb, var(--m) 32%, transparent), transparent); }
.app-module-art img { width: 100%; height: 100%; object-fit: cover; }
.app-module-title {
  overflow: hidden;
  padding: .15em .85em .3em;
  font-size: .98em;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.app-module-row { display: flex; align-items: center; gap: .55em; padding: 0 .85em .85em; }
.app-module-row > div { flex: 1; min-width: 0; }
.app-module-row small { display: block; margin-bottom: .55em; color: var(--ink-2); font-size: .68em; white-space: nowrap; }
.app-module .bar i { background: var(--m); box-shadow: none; }
.arrow-dot {
  display: grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--g1), var(--g2));
  color: var(--on-m);
  box-shadow: 0 0 .7em color-mix(in srgb, var(--m) 45%, transparent);
}
.arrow-dot .icon { width: 1em; height: 1em; stroke-width: 3; }
.app-tabbar {
  position: absolute;
  left: 1.4em;
  right: 1.4em;
  bottom: 1.9em;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 3.9em;
  padding: 0 .4em;
  border: 1px solid var(--hairline);
  border-radius: 2em;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 .6em 1.6em rgba(0, 0, 0, .3);
}
.app-tabbar span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2em;
  padding: .5em 1.1em;
  border-radius: 1.6em;
  color: var(--ink-2);
  font-size: .62em;
  font-weight: 700;
}
.app-tabbar .icon { width: 1.9em; height: 1.9em; }
.app-tabbar .is-active { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-ink); }
.app-home-indicator {
  position: absolute;
  bottom: .55em;
  left: 50%;
  width: 8.5em;
  height: .32em;
  border-radius: 1em;
  background: var(--ink);
  opacity: .85;
  translate: -50% 0;
}

/* Sticker und Abzeichen, die um das iPhone schweben */
.float {
  position: absolute;
  z-index: 2;
  animation: float 7s ease-in-out infinite;
}
.float-bubble {
  --r: -8deg;
  top: 7%;
  left: -36%;
  padding: .42em .8em;
  border-radius: 20px 20px 20px 6px;
  background: #fff;
  color: #10131A;
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  font-weight: 900;
  font-style: italic;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
  animation-delay: -1s;
}
.float-sticker {
  --r: 12deg;
  top: -6%;
  right: -26%;
  width: 46%;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .4));
}
.float-aura {
  --r: -5deg;
  top: 47%;
  right: -32%;
  padding: .45em .85em;
  border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 16px;
  background: var(--surface);
  color: var(--accent-ink);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 900;
  font-style: italic;
  white-space: nowrap;
  box-shadow: 0 0 34px var(--glow-accent), 0 14px 30px rgba(0, 0, 0, .3);
  animation-delay: -4s;
}
.float-badge {
  --r: -10deg;
  bottom: 3%;
  left: -26%;
  width: 42%;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .4));
  animation-delay: -2.5s;
}
[data-theme="light"] .float-bubble { box-shadow: 0 14px 30px rgba(16, 19, 26, .16); border: 1px solid var(--hairline); }
[data-theme="light"] .float-sticker,
[data-theme="light"] .float-badge { filter: drop-shadow(0 12px 18px rgba(16, 19, 26, .18)); }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50% { transform: translateY(-12px) rotate(var(--r)); }
}

/* Zahlen wie die Stat-Sticker in der App */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(48px, 7vw, 88px);
}
.stat-tile {
  --t: var(--c-yellow);
  position: relative;
  padding: 16px 18px 18px;
  border: 1px solid color-mix(in srgb, var(--t) 45%, transparent);
  border-radius: 20px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--t) 18%, var(--surface)), var(--surface) 72%);
  box-shadow: 0 0 34px color-mix(in srgb, var(--t) 16%, transparent);
  rotate: var(--tilt, 0deg);
}
.stat-tile img { width: 46px; height: 46px; }
.stat-tile b {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.stat-tile span { color: var(--ink-2); font-size: .93rem; font-weight: 650; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: left; }
  .hero-stage { margin-top: 18px; }
}
@media (max-width: 700px) {
  .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .cta-row .button,
  .cta-row .store-badge { width: 100%; justify-content: center; }
  .float-bubble { left: -14%; }
  .float-sticker { right: -16%; width: 40%; }
  .float-aura { display: none; }
  .float-badge { left: -16%; width: 36%; }
}

/* ---------- Laufbänder ---------- */
.bands {
  position: relative;
  height: clamp(140px, 15vw, 200px);
  overflow: hidden;
  margin-block: clamp(8px, 2vw, 24px);
}
.band {
  position: absolute;
  top: 50%;
  left: -5%;
  right: -5%;
  padding: 13px 0;
  overflow: hidden;
}
.band-mint {
  z-index: 2;
  background: #2FE3B0;
  color: #062019;
  transform: translateY(-50%) rotate(-3deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}
.band-ink {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-50%) rotate(2.5deg);
}
.band-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.band-ink .band-track { animation-direction: reverse; animation-duration: 64s; }
.band-track > * { flex: none; margin-right: clamp(16px, 2vw, 28px); }
.band span {
  font-size: clamp(1.25rem, 2.3vw, 1.9rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.band .icon { width: 1.5em; height: 1.5em; }
.band i { font-style: normal; font-size: 1.2rem; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Abschnitte ---------- */
.section { position: relative; padding-block: clamp(72px, 9vw, 128px); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head .lead { margin-top: 18px; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .lead { margin-inline: auto; }
.footnote { margin-top: 26px; color: var(--ink-2); font-size: .95rem; }
.footnote-center { text-align: center; }
.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; }
.check-list .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--accent-ink); stroke-width: 2.8; }

/* ---------- Live-Demo ---------- */
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}
.demo-copy .lead { margin-top: 18px; }
.demo-copy .check-list { margin-top: 26px; font-weight: 650; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .exercise { min-height: 0; } }

.exercise {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 610px;
  /* clip statt hidden: sonst schiebt das Fokussieren eines Knopfs den Inhalt seitlich weg */
  overflow: hidden;
  overflow: clip;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--hairline);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.exercise::before {
  content: "";
  position: absolute;
  top: -45%;
  left: -20%;
  right: -20%;
  height: 70%;
  background: radial-gradient(closest-side, var(--glow-accent), transparent);
  opacity: .55;
  pointer-events: none;
}
.exercise-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.subject-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--m, var(--accent)) 16%, transparent);
  font-size: .88rem;
  font-weight: 800;
}
.subject-chip i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--m, var(--accent));
  box-shadow: 0 0 10px var(--m, var(--accent));
}
.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: .86rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.sound-toggle .icon { width: 18px; height: 18px; }
.sound-toggle .icon-on,
.sound-toggle[aria-pressed="true"] .icon-off { display: none; }
.sound-toggle[aria-pressed="true"] .icon-on { display: inline-block; }
.sound-toggle[aria-pressed="true"] { border-color: transparent; background: var(--accent); color: var(--on-accent); }
.exercise-progress {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 22px;
  color: var(--ink-2);
  font-size: .86rem;
  font-weight: 700;
  white-space: nowrap;
}
.exercise-progress .bar { flex: 1; }
.bar { display: block; height: 6px; overflow: hidden; border-radius: 99px; background: var(--hairline); }
.bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: 0 0 12px var(--glow-accent);
  transition: width .5s cubic-bezier(.2, .8, .2, 1);
}
.exercise-stage { position: relative; display: flex; flex: 1; flex-direction: column; }
.exercise-stage:focus { outline: none; }
.exercise-stage.is-entering > * { animation: task-in .45s cubic-bezier(.2, .8, .2, 1); }
.noscript-note { color: var(--ink-2); }
.task { display: flex; flex: 1; flex-direction: column; }
.exercise-hint { margin-bottom: 12px; color: var(--ink-2); font-size: .95rem; }
.exercise-actions { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 18px; }

/* Kommas: Wörter mit antippbaren Lücken */
.sentence {
  padding: 16px 18px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--bg);
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.65rem);
  font-weight: 500;
  line-height: 2;
}
.token { display: inline-block; white-space: nowrap; }
.gap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: .95em;
  height: 1.5em;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  vertical-align: middle;
  cursor: pointer;
}
.gap::before {
  content: "";
  width: .2em;
  height: .2em;
  border-radius: 50%;
  background: var(--ink-3);
  transition: transform .15s ease, background-color .15s ease;
}
.gap:hover:not(:disabled)::before { background: var(--accent); transform: scale(1.6); }
.gap .comma {
  position: absolute;
  left: .04em;
  bottom: .2em;
  display: none;
  color: var(--accent-ink);
  font-size: 1.15em;
  font-weight: 800;
  line-height: 1;
}
.gap.has-comma::before,
.gap.is-missing::before { display: none; }
.gap.has-comma .comma { display: block; animation: comma-pop .25s cubic-bezier(.3, 1.6, .5, 1); }
.gap.is-right .comma,
.gap.is-solution .comma { color: var(--success); }
.gap.is-missing,
.gap.is-extra { background: var(--hint-bg); outline: 2px dashed var(--hint-ink); outline-offset: -3px; }
.gap.is-missing .comma { display: block; color: var(--hint-ink); opacity: .6; animation: none; }
.gap.is-extra .comma { color: var(--hint-ink); }
.gap:disabled { cursor: default; }

/* Mathe: Term, Antwortfeld, Ziffernblock wie NumberPad.swift */
.term {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .3em;
  margin: 8px 0;
  font-family: var(--font-rounded);
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.answer-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4em;
  height: 1.35em;
  padding: 0 .3em;
  border: 2px solid var(--hairline);
  border-radius: 16px;
  background: var(--bg);
  color: var(--accent-ink);
}
.answer-box.is-active { border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow-accent); }
.answer-box.is-right { border-color: var(--success); background: var(--success-soft); color: var(--success); }
.answer-box.is-wrong { border: 2px dashed var(--hint-ink); background: var(--hint-bg); color: var(--hint-ink); }
.caret { width: 3px; height: .85em; margin-left: 2px; border-radius: 2px; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
.answer-box:not(.is-active) .caret { display: none; }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 360px; margin-inline: auto; }
.key {
  display: grid;
  place-items: center;
  height: 54px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-rounded);
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .1s ease, background-color .15s ease;
}
.key:hover { background: var(--hairline); }
.key:active { transform: scale(.95); }
.key .icon { width: 26px; height: 26px; }

/* Englisch: Satz mit Lücke und Antworten zum Antippen */
.sentence-plain { line-height: 1.6; }
.slot {
  display: inline-block;
  min-width: 3.4em;
  padding: 0 .2em;
  border-bottom: 3px solid var(--ink-3);
  color: var(--accent-ink);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.slot.is-right,
.slot.is-solution { border-color: var(--success); color: var(--success); }
.slot.is-solution { border-bottom-style: dashed; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.option {
  min-height: 58px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .12s ease, border-color .15s ease, background-color .15s ease, opacity .2s ease;
}
.option:hover:not(:disabled) { border-color: var(--accent); }
.option:active:not(:disabled) { transform: scale(.97); }
.option:disabled { cursor: default; }
.option.is-right { border-color: var(--success); background: var(--success-soft); color: var(--success); }
.option.is-wrong { border: 2px dashed var(--hint-ink); background: var(--hint-bg); color: var(--hint-ink); }
.option.is-dim { opacity: .4; }

/* Rückmeldung: richtig deutlich, „noch nicht ganz“ dezent in Orange, nie rot */
.feedback {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  animation: feedback-in .35s cubic-bezier(.2, .8, .2, 1);
}
.feedback-right { background: var(--success-soft); }
.feedback-hint { background: var(--hint-bg); }
.feedback-head { display: flex; align-items: center; gap: 12px; }
.feedback-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; }
.feedback-icon .icon { width: 22px; height: 22px; }
.feedback-right .feedback-icon { background: var(--success); color: #062019; animation: bounce .5s cubic-bezier(.3, 1.7, .5, 1); }
.feedback-right .feedback-icon .icon { stroke-width: 3.2; }
.feedback-hint .feedback-icon { background: color-mix(in srgb, var(--hint-ink) 18%, transparent); color: var(--hint-ink); }
.feedback-title { font-size: 1.25rem; font-weight: 900; letter-spacing: -.01em; line-height: 1.2; }
[data-theme="dark"] .feedback-right .feedback-title { color: var(--success); }
.feedback-hint .feedback-title { color: var(--hint-ink); }
.feedback-text { font-weight: 650; }
.aura-pill {
  margin-left: auto;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-ink);
  font-weight: 900;
  font-style: italic;
  white-space: nowrap;
  box-shadow: 0 0 16px var(--glow-accent);
  animation: aura-pop .5s cubic-bezier(.3, 1.6, .5, 1) .1s both;
}
.rule-card {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: .95rem;
  line-height: 1.5;
}
.rule-title { color: var(--ink); }
.rule-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .8rem;
  font-weight: 900;
  vertical-align: 1px;
}
.rule-example { font-style: italic; }
.steps-line { color: var(--ink); font-family: var(--font-rounded); font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.rule-card em {
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

/* Auswertung wie der Rundenabschluss der App */
.summary { display: flex; flex: 1; flex-direction: column; align-items: center; text-align: center; }
.ring { position: relative; display: grid; place-items: center; width: 128px; height: 128px; margin-top: 4px; }
.ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.ring-svg circle { fill: none; stroke-width: 9; }
.ring-track { stroke: var(--hairline); }
.ring-progress {
  stroke: var(--success);
  stroke-linecap: round;
  transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1) .15s;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--success) 45%, transparent));
}
.ring-check { width: 56px; height: 56px; color: var(--success); stroke-width: 3; animation: bounce .6s cubic-bezier(.3, 1.7, .5, 1) .45s both; }
.ring-count { font-family: var(--font-rounded); font-size: 2rem; font-weight: 900; }
.summary-title { margin-top: 14px; font-size: 1.45rem; font-weight: 900; letter-spacing: -.015em; }
.summary-sub { margin-top: 2px; color: var(--ink-2); }
.aura-card {
  width: 100%;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}
.aura-gain {
  color: var(--accent-ink);
  font-size: 2.3rem;
  font-weight: 900;
  font-style: italic;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  text-shadow: 0 0 26px var(--glow-accent);
}
.aura-level { display: flex; align-items: center; gap: 12px; margin-top: 10px; text-align: left; }
.aura-level img { width: 48px; height: 48px; flex: none; }
.aura-level > div { flex: 1; min-width: 0; }
.aura-level p { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.aura-level b { font-weight: 800; font-style: italic; }
.aura-level p span { color: var(--accent-ink); font-size: .9rem; font-weight: 700; }
.aura-level small { display: block; margin-top: 6px; color: var(--ink-2); font-size: .82rem; }
.aura-level .bar i { transition: none; }
.aura-note { margin-top: 12px; color: var(--ink-2); font-size: .84rem; }
.summary-actions { display: grid; gap: 10px; width: 100%; margin-top: auto; padding-top: 18px; }

.confetti { position: absolute; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; }
.confetti i {
  position: absolute;
  top: -14px;
  width: 8px;
  height: 13px;
  border-radius: 2px;
  animation: confetti 1.8s cubic-bezier(.2, .6, .4, 1) forwards;
}

@keyframes task-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes comma-pop { from { opacity: 0; transform: scale(.3); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes feedback-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes bounce { from { transform: scale(.3); } }
@keyframes aura-pop { from { opacity: 0; transform: translateY(6px) scale(.5); } }
@keyframes confetti {
  to { transform: translate(var(--dx), 640px) rotate(var(--rot)); opacity: .9; }
}

/* ---------- So läuft's ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature,
.parent-card {
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: 24px;
  background: var(--surface);
}
.feature h3,
.parent-card h3 { margin: 18px 0 8px; }
.feature p,
.parent-card p { color: var(--ink-2); font-size: .97rem; line-height: 1.55; }
.icon-tile {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--k) 16%, transparent);
  color: var(--k);
  box-shadow: 0 0 26px color-mix(in srgb, var(--k) 22%, transparent);
}
.icon-tile .icon { width: 26px; height: 26px; }
[data-theme="light"] .icon-tile { box-shadow: none; }
@media (max-width: 1040px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Fächer und Module ---------- */
.subjects-section { overflow: hidden; overflow: clip; }
.subjects-splatter {
  position: absolute;
  top: 10px;
  right: -90px;
  width: min(56vw, 660px);
  aspect-ratio: 1200 / 1100;
  background: url("../img/splatter-german.webp") center / contain no-repeat;
  opacity: .5;
  pointer-events: none;
  transition: opacity .4s ease;
}
[data-subject="math"] .subjects-splatter { background-image: url("../img/splatter-math.webp"); }
[data-subject="english"] .subjects-splatter { background-image: url("../img/splatter-english.webp"); }
[data-theme="light"] .subjects-splatter { opacity: .32; }
.subjects-section .wrap { position: relative; }

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 28px;
  padding: 5px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--surface);
}
.segmented [role="tab"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink-2);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.segmented [role="tab"]:hover { color: var(--ink); }
.segmented [role="tab"] .icon { width: 18px; height: 18px; }
.segmented [aria-selected="true"],
.segmented [aria-selected="true"]:hover { background: var(--seg, var(--accent)); color: var(--on-subject); }
[data-subject="german"] .segmented { --seg: var(--c-violet); }
[data-subject="math"] .segmented { --seg: var(--c-blue); }
[data-subject="english"] .segmented { --seg: var(--c-pink); }
.segmented-small [role="tab"] { padding: 8px 14px; font-size: .92rem; }
.segmented-small [aria-selected="true"],
.segmented-small [aria-selected="true"]:hover { background: var(--accent); color: var(--on-accent); }

.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.module {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--m) 18%, transparent);
  transition: transform .25s ease, box-shadow .25s ease;
}
.module:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 16px 36px color-mix(in srgb, var(--m) 30%, transparent); }
.module-art { aspect-ratio: 3 / 2; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--m) 30%, transparent), transparent); }
.module-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.module:hover .module-art img { transform: scale(1.06) rotate(-1deg); }
.module-body { padding: 2px 18px 20px; }
.module-body h3 { font-size: 1.12rem; }
.module-tagline { margin: 2px 0 6px; color: var(--m); font-size: .92rem; font-weight: 800; }
.module-body p:last-child { color: var(--ink-2); font-size: .9rem; line-height: 1.45; }
.free-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.free-badge-inline { position: static; display: inline-block; margin-right: 4px; vertical-align: 1px; box-shadow: none; }

/* Handy: Fach-Schalter über die ganze Breite, Modulkarten zu zweit wie in der App */
@media (max-width: 560px) {
  .segmented:not(.segmented-small) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .segmented:not(.segmented-small) [role="tab"] { justify-content: center; padding: 10px 6px; }
  .segmented:not(.segmented-small) .icon { display: none; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .module-body { padding: 0 12px 14px; }
  .module-body h3 { font-size: .98rem; }
  .module-tagline { font-size: .8rem; }
  .module-body p:last-child { font-size: .78rem; }
  .free-badge { top: 8px; right: 8px; padding: 3px 8px; font-size: .62rem; }
}

/* ---------- Aura und Level ---------- */
.aura-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}
.aura-copy .lead { margin-top: 18px; }
.aura-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.aura-points li { padding: 14px 16px; border: 1px solid var(--hairline); border-radius: 18px; background: var(--surface); }
.aura-points b {
  display: block;
  color: var(--accent-ink);
  font-size: 1.9rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.aura-points span { color: var(--ink-2); font-size: .92rem; }
.level-card {
  padding: clamp(20px, 3vw, 30px);
  border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 0 70px var(--glow-accent);
}
[data-theme="light"] .level-card { box-shadow: var(--shadow); }
.level-head { display: flex; align-items: center; gap: 18px; }
.level-badge { width: clamp(96px, 11vw, 124px); height: auto; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .35)); }
.level-badge.is-bump { animation: bump .45s cubic-bezier(.3, 1.6, .5, 1); }
.level-number { font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 900; font-style: italic; letter-spacing: -.02em; line-height: 1.05; }
.level-title { margin-top: 2px; color: var(--accent-ink); font-size: 1.3rem; font-weight: 800; }
.level-slider { display: block; margin-top: 22px; }
.level-slider span { color: var(--ink-2); font-size: .92rem; font-weight: 700; }
.level-slider input[type="range"] {
  width: 100%;
  height: 30px;
  margin: 8px 0 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.level-slider input[type="range"]:focus-visible { outline: none; }
.level-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 6%), var(--hairline) var(--fill, 6%));
}
.level-slider input[type="range"]::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  margin-top: -10px;
  border: 5px solid var(--accent);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px var(--glow-accent), 0 4px 10px rgba(0, 0, 0, .3);
  -webkit-appearance: none;
  appearance: none;
}
.level-slider input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--ink); outline-offset: 2px; }
.level-slider input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: var(--hairline); }
.level-slider input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--accent); }
.level-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 5px solid var(--accent);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px var(--glow-accent);
}
.level-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.level-facts div { padding: 11px 13px; border-radius: 14px; background: var(--bg); }
.level-facts dt { color: var(--ink-2); font-size: .8rem; font-weight: 650; }
.level-facts dd { margin-top: 2px; font-size: 1.15rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.level-next { display: flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--ink-2); font-size: .92rem; }
.level-next .icon { width: 16px; height: 16px; }

.title-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(48px, 6vw, 80px);
}
.title-strip li {
  padding: 12px 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--surface);
  text-align: center;
  transition: transform .2s ease, border-color .2s ease;
}
.title-strip li:hover { transform: translateY(-4px) rotate(-1deg); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.title-strip img { width: 76px; height: 76px; margin: 0 auto 6px; }
.title-strip b { display: block; font-size: .9rem; font-weight: 800; line-height: 1.2; }
.title-strip span { color: var(--ink-2); font-size: .78rem; }
@media (max-width: 900px) {
  .aura-grid { grid-template-columns: 1fr; }
  .title-strip {
    grid-template-columns: none;
    grid-auto-columns: 124px;
    grid-auto-flow: column;
    overflow-x: auto;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 16px;
    scroll-padding-inline: var(--gutter);
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .title-strip::-webkit-scrollbar { display: none; }
  .title-strip li { scroll-snap-align: start; }
}

/* ---------- Sticker und Sound ---------- */
.celebrate-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px; }
.panel { padding: clamp(18px, 2.6vw, 26px); border: 1px solid var(--hairline); border-radius: 26px; background: var(--surface); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head span { color: var(--ink-2); font-size: .9rem; font-weight: 650; }
.sticker-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sticker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 2px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
}
.sticker img {
  width: 100%;
  max-width: 96px;
  rotate: var(--tilt, 0deg);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .3));
  transition: rotate .3s ease, scale .3s ease;
}
[data-theme="light"] .sticker img { filter: drop-shadow(0 6px 10px rgba(16, 19, 26, .16)); }
.sticker:hover img,
.sticker[aria-pressed="true"] img { rotate: 0deg; scale: 1.08; }
.sticker[aria-pressed="true"] { background: var(--surface-2); }
.sticker.is-wiggle img { animation: wiggle .5s ease; }
/* Bühne rechts: der gewählte Sticker groß, mit Namen und wofür es ihn gibt (main.js tauscht Bild und Text) */
.sticker-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 36%, var(--accent-soft), transparent 62%),
    var(--surface);
}
.sticker-stage-art { width: min(300px, 80%); }
.sticker-stage-art img {
  width: 100%;
  rotate: var(--tilt, 0deg);
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .42));
}
[data-theme="light"] .sticker-stage-art img { filter: drop-shadow(0 16px 24px rgba(16, 19, 26, .18)); }
.sticker-stage.is-pop .sticker-stage-art img { animation: sticker-pop .55s cubic-bezier(.34, 1.56, .64, 1); }
.sticker-stage h3 { margin-top: 12px; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; }
.sticker-stage-hint { max-width: 30ch; margin: 8px auto 0; color: var(--ink-2); font-size: 1.05rem; }
.sticker-stage-tip { margin-top: 18px; color: var(--ink-3); font-size: .85rem; font-weight: 650; }
@media (max-width: 900px) {
  .celebrate-grid { grid-template-columns: 1fr; }
  .sticker-stage { order: -1; }
  .sticker-stage-art { width: min(220px, 62%); }
}
@media (max-width: 420px) {
  .sticker-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@keyframes sticker-pop {
  from { scale: .5; opacity: 0; rotate: calc(var(--tilt, 0deg) - 18deg); }
}
@keyframes wiggle {
  25% { rotate: -9deg; scale: 1.12; }
  50% { rotate: 7deg; }
  75% { rotate: -4deg; }
}
@keyframes bump { 40% { scale: 1.12; rotate: -4deg; } }

/* ---------- Profile, iCloud, iPad ---------- */
.crew-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}
.crew-copy .lead { margin: 18px 0 14px; }
.crew-copy p:not(.lead):not(.overline) { color: var(--ink-2); }
.who-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--hairline);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 227, 176, .2), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(47, 227, 176, .1), transparent 50%),
    var(--surface);
  box-shadow: var(--shadow);
}
[data-theme="light"] .who-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(14, 164, 126, .12), transparent 55%),
    var(--surface);
}
.who-overline { color: var(--ink-2); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.who-title { margin: 4px 0 6px; font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 900; letter-spacing: -.03em; }
.who-sub { margin-bottom: 26px; color: var(--ink-2); }
.who-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 22px 12px; }
.who { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.who b { margin-top: 8px; font-weight: 800; }
.who small { color: var(--ink-2); font-size: .82rem; }

/* Avatar wie ProfileAvatar.swift: Kreis in der Flächenfarbe mit leichtem Farbschein, darauf das Motiv
   (fertig eingefärbt von tools/landingpage-assets.sh), Ring obendrüber und Leuchten */
.avatar {
  --size: 84px;
  position: relative;
  display: grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%), var(--surface);
  box-shadow: 0 0 calc(var(--size) * .18) color-mix(in srgb, var(--c) 45%, transparent);
}
.avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 max(1.5px, calc(var(--size) / 26)) var(--c);
  pointer-events: none;
}
[data-theme="light"] .avatar {
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%), var(--surface);
  box-shadow: 0 0 calc(var(--size) * .18) color-mix(in srgb, var(--c) 20%, transparent);
}
.avatar-large { --size: 88px; }
.avatar-art {
  grid-area: 1 / 1;
  width: 96%;
  height: 96%;
  object-fit: contain;
}
.avatar-new,
[data-theme="light"] .avatar-new {
  border: 2px dashed var(--ink-3);
  background: transparent;
  color: var(--ink-2);
  box-shadow: none;
}
.avatar-new::after { content: none; }
.avatar-new .icon { width: 34px; height: 34px; }

.ipad-showcase { margin-top: clamp(64px, 8vw, 110px); text-align: center; }
.showcase-title { margin-bottom: 18px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 900; letter-spacing: -.02em; }
.ipad-showcase .segmented { justify-content: center; }
.ipad {
  max-width: 1000px;
  margin: 4px auto 0;
  padding: clamp(9px, 1.4vw, 18px);
  border-radius: clamp(22px, 3vw, 42px);
  background: linear-gradient(150deg, #3a4250 0%, #0d1016 16%, #07090c 62%, #272d38 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1), 0 40px 90px rgba(0, 0, 0, .45);
}
[data-theme="light"] .ipad { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1), 0 30px 70px rgba(16, 19, 26, .2); }
.ipad img { width: 100%; border-radius: clamp(13px, 1.9vw, 26px); background: #0B0E13; }
.ipad img.is-switching { animation: fade-in .35s ease; }
@keyframes fade-in { from { opacity: .3; } }
@media (max-width: 900px) { .crew-grid { grid-template-columns: 1fr; } }

/* ---------- Für Eltern ---------- */
.parents-section { background: linear-gradient(180deg, transparent, var(--band-bg) 10%, var(--band-bg) 90%, transparent); }
.parent-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.parent-card .icon-tile { width: 46px; height: 46px; border-radius: 14px; }
.parent-card .icon-tile .icon { width: 23px; height: 23px; }
.parent-card h3 { margin-top: 16px; font-size: 1.08rem; }
.parent-card p { font-size: .94rem; }
@media (max-width: 1040px) { .parent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .parent-grid { grid-template-columns: 1fr; } }

/* ---------- Preis ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 430px)); justify-content: center; gap: 20px; }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  background: var(--surface);
}
.price-card h3 { font-size: 1.3rem; }
.price-card-featured { border: 1.5px solid color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 80px var(--glow-accent); }
[data-theme="light"] .price-card-featured { box-shadow: var(--shadow); }
.price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 20px; }
.price b { font-size: clamp(2.6rem, 4vw, 3.3rem); font-weight: 900; font-style: italic; letter-spacing: -.03em; line-height: 1.1; }
.price span { color: var(--ink-2); font-weight: 700; }
.price-card .check-list { margin-bottom: 26px; }
.price-card .button { margin-top: auto; }
.price-note { margin-top: 12px; color: var(--ink-2); font-size: .85rem; text-align: center; }
.price-ribbon {
  position: absolute;
  top: -15px;
  right: 22px;
  padding: 6px 13px;
  border-radius: 10px;
  background: #FACC15;
  color: #10131A;
  font-size: .9rem;
  font-weight: 900;
  rotate: 3deg;
  box-shadow: 0 8px 22px rgba(250, 204, 21, .3);
}
@media (max-width: 760px) { .price-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Fragen ---------- */
.faq-wrap { max-width: calc(860px + 2 * var(--gutter)); }
.faq-list { display: grid; gap: 10px; }
.faq { border: 1px solid var(--hairline); border-radius: 20px; background: var(--surface); }
.faq summary {
  position: relative;
  padding: 18px 56px 18px 20px;
  font-size: 1.06rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 11px;
  height: 11px;
  border-right: 2.5px solid var(--accent-ink);
  border-bottom: 2.5px solid var(--accent-ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s ease;
}
.faq[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq summary:focus-visible { border-radius: 20px; outline-offset: -3px; }
.faq-answer { padding: 0 20px 20px; color: var(--ink-2); line-height: 1.6; }

/* ---------- Schluss und Fußzeile ---------- */
.finale {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding-block: clamp(72px, 9vw, 130px);
  text-align: center;
}
.finale::before {
  content: "";
  position: absolute;
  inset: 10% 0 0;
  z-index: -1;
  background: radial-gradient(closest-side, var(--glow-accent), transparent);
  opacity: .8;
}
.finale-logo { width: min(440px, 82vw); margin: 0 auto 24px; }
.finale h2 { max-width: 16ch; margin-inline: auto; }
.finale .lead { margin: 18px auto 30px; }
.finale-meta { margin-top: 16px; color: var(--ink-2); font-size: .9rem; }

/* ---------- Footer ----------
   Aufbau wie teafan.media: Marke links, drei Spalten, Leiste unten. Immer dunkel, auch im hellen Modus,
   mit einer Neon-Linie oben in den Farben der Fächer. */
.site-footer {
  --f-bg: #06080C;
  --f-ink: #F3F5F9;
  --f-ink-2: rgba(243, 245, 249, .74);
  --f-ink-3: rgba(243, 245, 249, .5);
  --f-line: rgba(255, 255, 255, .09);
  --f-accent: #2FE3B0;
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 88px) 0 calc(26px + env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse 55% 90% at 0% 0%, rgba(47, 227, 176, .1), transparent 70%),
    radial-gradient(ellipse 45% 80% at 100% 100%, rgba(167, 139, 250, .08), transparent 70%),
    var(--f-bg);
  color: var(--f-ink-2);
  color-scheme: dark;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--f-accent) 18%, #A78BFA 50%, #F472B6 82%, transparent);
  box-shadow: 0 0 18px rgba(47, 227, 176, .45);
  opacity: .8;
}
.site-footer :focus-visible { outline-color: var(--f-accent); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: 40px clamp(24px, 4vw, 56px);
}
.footer-logo { display: inline-block; }
.footer-logo img { width: auto; height: 46px; }
.footer-claim { margin: 14px 0 10px; color: var(--f-accent); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.footer-brand p:not(.footer-claim) { max-width: 38ch; font-size: .95rem; line-height: 1.6; }
.footer-perks { margin-top: 14px; color: var(--f-ink-3); }
/* „Entwickelt von TeaFan Media“, wie der Kasten auf checkmeinewebsite.de */
.footer-agency {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 10px 18px 10px 12px;
  border: 1px solid var(--f-line);
  border-radius: 14px;
  color: var(--f-ink);
  text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.footer-agency:hover { border-color: var(--f-accent); background-color: rgba(47, 227, 176, .05); }
.footer-agency img { width: 38px; height: 32px; object-fit: contain; }
.footer-agency span { display: grid; line-height: 1.25; }
.footer-agency small { color: var(--f-ink-3); font-size: .8rem; }
.footer-agency b { font-size: 1rem; font-weight: 800; letter-spacing: -.005em; }
.footer-col h2 {
  margin-bottom: 16px;
  color: var(--f-ink-3);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--f-ink-2); font-weight: 600; text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--f-accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(44px, 6vw, 68px);
  padding-top: 22px;
  border-top: 1px solid var(--f-line);
  color: var(--f-ink-3);
  font-size: .8rem;
}
.footer-trademark { flex-basis: 100%; font-size: .75rem; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact { grid-column: 1 / -1; }
}

/* ---------- Hinweis unten ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 100;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 750;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  translate: -50% 16px;
  transition: opacity .3s ease, translate .3s ease, visibility .3s;
  pointer-events: none;
}
.toast.is-visible { opacity: 1; visibility: visible; translate: -50% 0; }

/* ---------- Einblenden ---------- */
/* Startbereich: reines CSS, damit er auch ohne JavaScript sofort erscheint */
.rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
.rise .brush::after { animation: brush-draw .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d, 0s) + .45s); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes brush-draw { from { transform: scaleX(0); } }

/* Alles darunter beim Scrollen (main.js) */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Rechtliches (Impressum, Datenschutz) ---------- */
.legal { max-width: calc(780px + 2 * var(--gutter)); padding-block: clamp(48px, 7vw, 96px); }
.legal h1 { margin-bottom: 18px; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); }
.legal h2 { margin: 2.2em 0 .6em; font-size: 1.35rem; letter-spacing: -.015em; }
.legal h3 { margin: 1.6em 0 .4em; font-size: 1.05rem; }
.legal p,
.legal li { color: var(--ink-2); line-height: 1.65; }
.legal p + p { margin-top: .8em; }
.legal ul { margin: .6em 0; padding-left: 1.2em; list-style: disc; }
.legal li + li { margin-top: .35em; }
.legal a { color: var(--accent-ink); }
.legal-note {
  margin: 18px 0 8px;
  padding: 14px 16px;
  border: 1px dashed var(--hint-ink);
  border-radius: 16px;
  background: var(--hint-bg);
  color: var(--ink) !important;
}
.placeholder { padding: 0 .3em; border-radius: 5px; background: var(--hint-bg); color: var(--hint-ink); font-weight: 750; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 750; text-decoration: none; }
.back-link:hover { color: var(--ink); }
.back-link .icon { width: 18px; height: 18px; rotate: 180deg; }

/* ---------- Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .band-track, .float { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal:not(.is-visible) .brush::after { transform: none; }
}
