/* Compile Academy – Unterseiten im Spielwelt-Stil (Eigentümer 09.11.2026: „mehr Webseiten, ausführlicher, Events und mehr“).
   Events, Methode, Hilfe, Neuigkeiten, Über uns. Baut auf spielwelt.css auf (Farben, Knöpfe, Bewegungsregeln). */

.pg {
  padding-top: clamp(96px, 12vw, 140px);
}
.pg-wrap {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

/* ---------- Kopf jeder Unterseite ---------- */
.pg-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding-bottom: clamp(40px, 7vw, 90px);
}
.pg-hero h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.pg-hero .lead {
  margin: 0 0 26px;
  max-width: 36em;
}
.pg-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.pg-art {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 1;
  margin-inline: auto;
}
.pg-art::before {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 46% 54% 50% 50% / 52% 44% 56% 48%;
  background: radial-gradient(circle at 40% 35%, var(--blob, rgba(38, 208, 124, 0.18)), transparent 70%);
}
.pg-art > img {
  position: absolute;
  left: 14%;
  top: 14%;
  width: 72%;
  height: 72%;
}
.pg-chip {
  position: absolute;
  padding: 8px 13px;
  border-radius: 14px;
  font: 800 clamp(12px, 1.3vw, 15px) / 1 var(--body);
  color: #04262e;
  background: var(--c, var(--sw-cyan));
  border-bottom: 4px solid rgba(0, 0, 0, 0.28);
  white-space: nowrap;
  transform: rotate(var(--r, 0deg));
}
.pg-chip.c1 {
  left: 0;
  top: 10%;
  --c: var(--sw-gold);
  --r: -7deg;
}
.pg-chip.c2 {
  right: 0;
  top: 26%;
  --c: var(--sw-pink);
  --r: 6deg;
}
.pg-chip.c3 {
  left: 4%;
  bottom: 14%;
  --c: var(--sw-green);
  --r: 5deg;
}
.pg-chip.c4 {
  right: 6%;
  bottom: 6%;
  --c: var(--sw-violet);
  --r: -5deg;
  color: #000000;
}
@media (max-width: 860px) {
  .pg-hero {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
  .pg-hero .lead {
    margin-inline: auto;
  }
  .pg-cta {
    justify-content: center;
  }
  .pg-art {
    width: min(78vw, 320px);
  }
}

/* ---------- Abschnitte ---------- */
.pg-section {
  padding: clamp(44px, 7vw, 88px) 0;
}
.pg-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(26px, 4vw, 44px);
}
.pg-head h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.pg-head p {
  margin: 0;
  color: var(--mist);
}

/* Karten */
.pg-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.pg-card {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: 24px;
  background: var(--sw-card);
  border: 2px solid var(--sw-line);
  border-bottom-width: 7px;
  transition: transform 0.25s var(--sw-pop);
}
.pg-card:hover {
  transform: translateY(-5px);
}
.pg-card h3 {
  margin: 14px 0 8px;
  font-size: 19px;
  line-height: 1.25;
}
.pg-card p {
  margin: 0;
  color: var(--mist);
}
.pg-card p + p {
  margin-top: 10px;
}
.pg-card .pg-meta {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 800;
  color: var(--c, var(--sw-cyan));
  background: color-mix(in srgb, var(--c, var(--sw-cyan)) 16%, transparent);
}
.pg-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-size: 27px;
  background: var(--c, var(--sw-cyan));
  border-bottom: 5px solid rgba(0, 0, 0, 0.3);
}
.pg-card.gold {
  --c: var(--sw-gold);
}
.pg-card.green {
  --c: var(--sw-green);
}
.pg-card.pink {
  --c: var(--sw-pink);
}
.pg-card.violet {
  --c: var(--sw-violet);
}
.pg-card.orange {
  --c: var(--sw-orange);
}

/* Zweispaltige Erklärung */
.pg-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.pg-split h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.12;
  margin: 0 0 14px;
}
.pg-split p {
  color: var(--mist);
}
@media (max-width: 860px) {
  .pg-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Countdown bis zum Liga-Ende */
.pg-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 520px;
}
.pg-countdown div {
  display: grid;
  justify-items: center;
  padding: 16px 6px 12px;
  border-radius: 20px;
  background: var(--sw-card);
  border: 2px solid var(--sw-line);
  border-bottom-width: 6px;
}
.pg-countdown b {
  font: 700 clamp(28px, 4vw, 44px) / 1 var(--display);
  color: var(--sw-gold);
  font-variant-numeric: tabular-nums;
}
.pg-countdown span {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--sw-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 860px) {
  .pg-countdown {
    margin-inline: auto;
  }
}

/* Wochenkalender */
.pg-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.pg-day {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 150px;
  padding: 14px 10px;
  border-radius: 20px;
  background: var(--sw-card);
  border: 2px solid var(--sw-line);
  border-bottom-width: 6px;
}
.pg-day > b {
  font-size: 15px;
}
.pg-day > span {
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  background: color-mix(in srgb, var(--c, var(--sw-cyan)) 18%, transparent);
  color: var(--c, var(--sw-cyan));
}
.pg-day > span.gold {
  --c: var(--sw-gold);
}
.pg-day > span.green {
  --c: var(--sw-green);
}
.pg-day > span.orange {
  --c: var(--sw-orange);
}
.pg-day.is-today {
  border-color: var(--sw-cyan);
  box-shadow: 0 0 0 4px rgba(47, 214, 242, 0.18);
}
.pg-day.is-today > b::after {
  content: ' ●';
  color: var(--sw-cyan);
}
@media (max-width: 860px) {
  .pg-week {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pg-day {
    min-height: 0;
  }
}

/* Zehn Ligen */
.pg-leagues {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.pg-league {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 8px 14px;
  border-radius: 20px;
  background: var(--sw-card);
  border: 2px solid var(--sw-line);
  border-bottom-width: 6px;
  font-weight: 800;
  text-align: center;
}
.pg-league i {
  width: 52px;
  height: 52px;
  border-radius: 16px 16px 26px 26px;
  background: linear-gradient(160deg, var(--c), var(--d));
  border-bottom: 5px solid var(--d);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 18px;
  color: rgba(0, 0, 0, 0.55);
}
.pg-league small {
  color: var(--sw-muted);
  font-weight: 700;
}
@media (max-width: 760px) {
  .pg-leagues {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Serien-Meilensteine */
.pg-milestones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.pg-milestones span {
  display: grid;
  place-items: center;
  min-width: 70px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--sw-card);
  border: 2px solid var(--sw-line);
  border-bottom-width: 6px;
  font: 700 22px/1 var(--display);
  color: var(--sw-orange);
}
.pg-milestones span small {
  margin-top: 6px;
  font: 800 11px/1 var(--body);
  color: var(--sw-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Schritte / Zeitleiste */
.pg-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: pg-step;
}
.pg-steps li {
  position: relative;
  padding: 20px 20px 20px 80px;
  border-radius: 22px;
  background: var(--sw-card);
  border: 2px solid var(--sw-line);
  border-bottom-width: 6px;
  counter-increment: pg-step;
}
.pg-steps li::before {
  content: counter(pg-step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font: 700 20px/1 var(--display);
  color: #04262e;
  background: var(--sw-cyan);
  border-bottom: 4px solid var(--sw-cyan-d);
}
.pg-steps b {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}
.pg-steps p {
  margin: 0;
  color: var(--mist);
}

/* Neuigkeiten */
.pg-news {
  display: grid;
  gap: 18px;
  max-width: 860px;
  margin-inline: auto;
}
.pg-post {
  padding: 22px 24px;
  border-radius: 24px;
  background: var(--sw-card);
  border: 2px solid var(--sw-line);
  border-bottom-width: 7px;
}
.pg-post header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.pg-post time {
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 800;
  color: #04262e;
  background: var(--sw-cyan);
}
.pg-tag {
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
  color: var(--c, var(--sw-green));
  background: color-mix(in srgb, var(--c, var(--sw-green)) 16%, transparent);
}
.pg-tag.gold {
  --c: var(--sw-gold);
}
.pg-tag.pink {
  --c: var(--sw-pink);
}
.pg-tag.violet {
  --c: var(--sw-violet);
}
.pg-post h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.4vw, 25px);
  line-height: 1.25;
}
.pg-post p,
.pg-post li {
  color: var(--mist);
}
.pg-post ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

/* Hilfe: Suche + Themen */
.pg-search {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin: 0 auto 28px;
}
.pg-search input {
  flex: 1;
  min-width: 0;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 16px;
  /* Website schwarz 15.11.2026: Eingabefeld-Rand hebt sich mindestens 3 : 1 vom Grund ab (neutrales #6e6e6e statt des blassen Kartenrands; Website 16.11.2026: kein Blaugrau) */
  border: 2px solid #6e6e6e;
  border-bottom-width: 5px;
  background: var(--sw-card);
  color: var(--ink);
  font: 600 16px/1 var(--body);
}
.pg-search input:focus {
  outline: 3px solid var(--sw-cyan);
  outline-offset: 2px;
}
.pg-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}
.pg-topics a {
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--sw-card);
  border: 2px solid var(--sw-line);
  border-bottom-width: 5px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.pg-topics a:hover {
  border-color: var(--sw-cyan);
}
.pg-help h2 {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 36px 0 14px;
  scroll-margin-top: 100px;
}
.pg-help details[hidden] {
  display: none;
}
.pg-empty {
  text-align: center;
  color: var(--mist);
}

/* Werte / Zahlen */
.pg-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.pg-values div {
  padding: 22px 18px;
  border-radius: 22px;
  background: var(--sw-card);
  border: 2px solid var(--sw-line);
  border-bottom-width: 6px;
  text-align: center;
}
.pg-values b {
  display: block;
  font: 700 clamp(28px, 3.4vw, 40px) / 1 var(--display);
  color: var(--c, var(--sw-cyan));
  margin-bottom: 8px;
}
.pg-values span {
  font-weight: 700;
  color: var(--mist);
}

/* Schlusskarte */
.pg-final {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(30px, 5vw, 54px) 22px;
  border-radius: 32px;
  /* Website schwarz 15.11.2026: Schlusskarte flach in Kartenfarbe (Schwarz mit neutralem Rand; Website 16.11.2026) statt Blauverlauf */
  background: #000000;
  border: 2px solid var(--sw-line);
  border-bottom-width: 8px;
  text-align: center;
}
.pg-final img {
  width: 110px;
  height: 110px;
}
.pg-final h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 40px);
  margin: 0;
}
.pg-final p {
  margin: 0;
  color: var(--mist);
}

/* Bewegung: nur mit html.sw-anim und nur sichtbar (spielwelt.js) */
.sw-anim .pg-chip {
  animation: pg-bob 4s ease-in-out infinite alternate both;
}
.sw-anim .pg-chip.c2 {
  animation-delay: -1.3s;
}
.sw-anim .pg-chip.c3 {
  animation-delay: -2.4s;
}
.sw-anim .pg-chip.c4 {
  animation-delay: -0.7s;
}
@keyframes pg-bob {
  from {
    transform: translateY(6px) rotate(var(--r, 0deg));
  }
  to {
    transform: translateY(-9px) rotate(calc(var(--r, 0deg) * -0.5));
  }
}
.sw-anim .pg-art > img {
  animation: pg-hover 3.2s ease-in-out infinite alternate both;
}
@keyframes pg-hover {
  from {
    transform: translateY(4px);
  }
  to {
    transform: translateY(-8px) rotate(-1.5deg);
  }
}
.sw-anim .pg-league i {
  animation: pg-shine 3s ease-in-out infinite both;
}
.sw-anim .pg-league:nth-child(2n) i {
  animation-delay: -1.5s;
}
@keyframes pg-shine {
  0%,
  100% {
    transform: none;
  }
  50% {
    transform: translateY(-4px) rotate(-4deg);
  }
}
.sw-anim .pg-milestones span {
  animation: pg-pop 0.5s var(--sw-pop) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes pg-pop {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
}
.sw-anim .pg-countdown b {
  transition: transform 0.25s var(--sw-pop);
}
.sw-anim .pg-countdown b.tick {
  transform: scale(1.12);
}
@media (prefers-reduced-motion: reduce) {
  .sw-anim .pg-chip,
  .sw-anim .pg-art > img,
  .sw-anim .pg-league i,
  .sw-anim .pg-milestones span {
    animation: none !important;
  }
}
:root[data-perf='lite'] :is(.pg-chip, .pg-art > img, .pg-league i, .pg-milestones span) {
  animation: none !important;
}

/* Nur für Vorleseprogramme sichtbar */
.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;
}

/* ---------- Kursseiten (scripts/build-site.mjs): Kapitel als Stationen eines Lernpfads ---------- */
.course-numbers {
  margin: 28px auto 34px;
  max-width: 900px;
}
.course-path {
  counter-reset: cp;
}
.spielwelt .course-path li {
  position: relative;
  counter-increment: cp;
}
.spielwelt .course-path li {
  border: 2px solid var(--sw-line);
  border-bottom-width: 6px;
  background: var(--sw-card);
  box-shadow: none;
}
@media (min-width: 761px) {
  .spielwelt .course-path li:nth-child(odd) {
    margin-right: 7%;
  }
  .spielwelt .course-path li:nth-child(even) {
    margin-left: 7%;
  }
}
.spielwelt .course-path li > b {
  display: inline-grid;
  place-items: center;
  align-self: start;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 14px;
  color: #04262e;
  background: var(--sw-cyan);
  box-shadow: 0 6px 0 var(--sw-cyan-d);
  text-align: center;
  line-height: 1.1;
}
.spielwelt .course-path li:nth-child(3n + 2) > b {
  background: var(--sw-green);
  box-shadow: 0 6px 0 var(--sw-green-d);
}
.spielwelt .course-path li:nth-child(3n) > b {
  background: var(--sw-gold);
  box-shadow: 0 6px 0 var(--sw-gold-d);
  color: #3a2600;
}
.course-final {
  margin-top: 40px;
}

/* ---------- Premium Lern-App-Unterseiten (Support-Center, Lernpfad, Für Schulen) ---------- */
body.ca-subpage {
  --ca-bg: #0f1214;
  --ca-surface: #151a1e;
  --ca-raised: #1c2228;
  --ca-border: #283138;
  --ca-emerald: #26d07c;
  --ca-emerald-edge: #159a57;
  --ca-emerald-ink: #062415;
  --ca-gold: #f5b82e;
  --ca-gold-edge: #b88214;
  --ca-amber: #ff8a3d;
  --ca-amber-edge: #c2510c;
  background: var(--ca-bg) !important;
  color: #f1f5f9;
}

body.ca-subpage .brand-accent {
  color: var(--ca-emerald);
}

.ca-sub-main {
  padding-top: clamp(24px, 4vw, 56px);
}

.ca-sub-hero {
  padding-block: clamp(32px, 5.5vw, 76px) clamp(44px, 6.5vw, 88px);
}

.ca-sub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}

.ca-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(38, 208, 124, 0.12);
  border: 2px solid rgba(38, 208, 124, 0.36);
  border-bottom-width: 4px;
  border-bottom-color: rgba(21, 154, 87, 0.55);
  color: #26d07c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ca-status-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #26d07c;
  animation: ca-sub-pulse 2.2s ease-out infinite;
}

@keyframes ca-sub-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(38, 208, 124, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(38, 208, 124, 0);
  }
}

.ca-sub-hero h1 {
  font-family: var(--display);
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: #f8fafc;
}

.ca-accent {
  color: #26d07c;
}

.ca-sub-hero .lead {
  color: #b2becb;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.62;
  margin: 0 0 26px;
  max-width: 52ch;
}

.ca-sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ca-sub-actions--center {
  justify-content: center;
}

body.ca-subpage .ca-btn-primary {
  background: #26d07c !important;
  color: #062415 !important;
  border: 2px solid #26d07c !important;
  border-bottom: 5px solid #159a57 !important;
  border-radius: 16px !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 26px !important;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.32), 0 12px 26px rgba(38, 208, 124, 0.22) !important;
  transition: transform 0.16s ease, filter 0.16s ease;
}

body.ca-subpage .ca-btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

body.ca-subpage .ca-btn-primary:active {
  transform: translateY(3px);
}

body.ca-subpage .ca-btn-secondary {
  background: #151a1e !important;
  color: #26d07c !important;
  border: 2px solid #283138 !important;
  border-bottom: 5px solid #283138 !important;
  border-radius: 16px !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 24px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

body.ca-subpage .ca-btn-secondary:hover {
  background: #1c2228 !important;
  border-color: rgba(38, 208, 124, 0.45) !important;
  transform: translateY(-2px);
}

body.ca-subpage .ca-btn-secondary:active {
  transform: translateY(3px);
}

.ca-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.ca-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #151a1e;
  border: 1.5px solid #283138;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
}

.ca-trust-row span::before {
  content: '✓';
  color: #26d07c;
  font-weight: 900;
}

/* Bühnen-Karten rechts im Hero */
.ca-stage-card {
  background: #151a1e;
  border: 2px solid #283138;
  border-bottom-width: 6px;
  border-radius: 26px;
  padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 22px 48px rgba(0, 0, 0, 0.42);
  display: grid;
  gap: 18px;
}

.ca-stage-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid #283138;
}

.ca-stage-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #26d07c;
  box-shadow: 0 0 10px rgba(38, 208, 124, 0.65);
}

.ca-stage-top strong {
  font-size: 15px;
  color: #f8fafc;
}

.ca-stage-tag {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(38, 208, 124, 0.14);
  border: 1.5px solid rgba(38, 208, 124, 0.4);
  color: #26d07c;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ca-stage-koda-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ca-stage-koda {
  width: 118px;
  height: 118px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  animation: ca-sub-float 3.4s ease-in-out infinite;
}

.ca-stage-koda img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes ca-sub-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.ca-stage-bubble {
  background: #1c2228;
  border: 2px solid #283138;
  border-bottom-width: 4px;
  border-radius: 18px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}

.ca-stage-bubble strong {
  color: #26d07c;
  font-size: 15px;
}

.ca-stage-bubble span {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.48;
}

.ca-stage-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ca-stage-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #0f1214;
  border: 1.5px solid #283138;
}

.ca-stage-mini-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ca-dot-emerald {
  background: #26d07c;
}

.ca-dot-gold {
  background: #f5b82e;
}

.ca-stage-mini b {
  display: block;
  font-size: 13.5px;
  color: #f8fafc;
}

.ca-stage-mini small {
  display: block;
  font-size: 12px;
  color: #94a3b8;
}

/* Abschnitte & Köpfe */
.ca-sub-section {
  padding-block: clamp(48px, 6.5vw, 88px);
}

.ca-sub-section--alt {
  background: linear-gradient(180deg, rgba(21, 26, 30, 0.52), rgba(15, 18, 20, 0.2));
  border-top: 1px solid #283138;
  border-bottom: 1px solid #283138;
}

.ca-sub-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(28px, 4vw, 46px);
}

.ca-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #26d07c;
}

.ca-sub-head h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  color: #f8fafc;
}

.ca-sub-head p {
  margin: 0;
  color: #b2becb;
  font-size: 16.5px;
  line-height: 1.58;
}

.ca-sub-head a {
  color: #26d07c;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 3D-Themenkarten */
.ca-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ca-topic-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  border-radius: 24px;
  background: #151a1e;
  border: 2px solid #283138;
  border-bottom-width: 6px;
  color: inherit;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, background 0.2s ease;
}

.ca-topic-card:hover {
  transform: translateY(-5px);
  border-color: rgba(38, 208, 124, 0.5);
  background: #1c2228;
}

.ca-topic-card:active {
  transform: translateY(2px);
}

.ca-topic-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border-bottom: 4px solid rgba(0, 0, 0, 0.28);
  margin-bottom: 4px;
}

.ca-icon-emerald {
  background: rgba(38, 208, 124, 0.16);
  border: 2px solid rgba(38, 208, 124, 0.35);
  border-bottom-width: 4px;
  color: #26d07c;
}

.ca-icon-gold {
  background: rgba(245, 184, 46, 0.16);
  border: 2px solid rgba(245, 184, 46, 0.35);
  border-bottom-width: 4px;
  color: #f5b82e;
}

.ca-icon-amber {
  background: rgba(255, 138, 61, 0.16);
  border: 2px solid rgba(255, 138, 61, 0.35);
  border-bottom-width: 4px;
  color: #ff8a3d;
}

.ca-topic-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  color: #f8fafc;
}

.ca-topic-card p {
  margin: 0;
  color: #b2becb;
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
}

.ca-topic-more {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 800;
  color: #26d07c;
  text-decoration: none;
}

/* 3D-FAQ-Akkordeon */
.ca-faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin-inline: auto;
}

.ca-faq-item {
  background: #151a1e;
  border: 2px solid #283138;
  border-bottom-width: 5px;
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ca-faq-item[open] {
  border-color: rgba(38, 208, 124, 0.5);
  background: #182026;
}

.ca-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  font-size: 17px;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ca-faq-item summary::-webkit-details-marker {
  display: none;
}

.ca-faq-item summary::after {
  content: '+';
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #1c2228;
  border: 1.5px solid #283138;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  color: #26d07c;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ca-faq-item[open] summary::after {
  content: '−';
  background: #26d07c;
  border-color: #26d07c;
  color: #062415;
}

.ca-faq-body {
  padding: 0 22px 20px;
  color: #cbd5e1;
  font-size: 15.5px;
  line-height: 1.65;
}

.ca-faq-body p {
  margin: 0;
}

.ca-faq-body a {
  color: #26d07c;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Direktes Kontaktformular auf /support */
.ca-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}

.ca-contact-info h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.12;
  margin: 0 0 14px;
  color: #f8fafc;
}

.ca-contact-info .lead {
  color: #b2becb;
  margin: 0 0 24px;
  line-height: 1.6;
}

.ca-contact-highlights {
  display: grid;
  gap: 14px;
}

.ca-contact-highlight {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 16px;
  border-radius: 18px;
  background: #151a1e;
  border: 2px solid #283138;
  border-bottom-width: 4px;
}

.ca-highlight-badge {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #26d07c;
  color: #062415;
  font-weight: 900;
  font-size: 15px;
  border-bottom: 3px solid #159a57;
}

.ca-badge-gold {
  background: #f5b82e;
  color: #2d1d00;
  border-bottom-color: #b88214;
}

.ca-badge-amber {
  background: #ff8a3d;
  color: #2b1000;
  border-bottom-color: #c2510c;
}

.ca-contact-highlight strong {
  display: block;
  font-size: 15.5px;
  color: #f8fafc;
  margin-bottom: 3px;
}

.ca-contact-highlight p {
  margin: 0;
  font-size: 14px;
  color: #b2becb;
  line-height: 1.5;
}

.ca-contact-highlight a {
  color: #26d07c;
  font-weight: 800;
}

.ca-contact-alt-cta {
  margin-top: 20px;
}

.ca-contact-card {
  background: #151a1e;
  border: 2px solid #283138;
  border-bottom-width: 6px;
  border-radius: 26px;
  padding: clamp(22px, 3vw, 32px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 42px rgba(0, 0, 0, 0.36);
}

.ca-contact-card h3 {
  font-family: var(--display);
  font-size: 23px;
  margin: 0 0 6px;
  color: #f8fafc;
}

.ca-contact-sub {
  margin: 0 0 20px;
  color: #94a3b8;
  font-size: 14.5px;
}

.ca-form {
  display: grid;
  gap: 15px;
}

.ca-form label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 800;
  color: #e2e8f0;
}

.ca-opt {
  font-style: normal;
  font-weight: 600;
  color: #94a3b8;
}

.ca-form input,
.ca-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 15px;
  border-radius: 14px;
  border: 2px solid #283138;
  background: #0f1214;
  color: #f8fafc;
  font: 500 15.5px/1.45 var(--body);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.ca-form input:focus,
.ca-form textarea:focus {
  outline: none;
  border-color: #26d07c;
  box-shadow: 0 0 0 3px rgba(38, 208, 124, 0.2);
}

.ca-form-submit {
  width: 100%;
  justify-content: center;
  cursor: pointer;
}

.ca-form .contact-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #94a3b8;
}

.ca-form .contact-note a {
  color: #26d07c;
}

.ca-form .contact-status {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  min-height: 1.3em;
}

.ca-form .contact-status[data-tone='ok'] {
  color: #26d07c;
}

.ca-form .contact-status[data-tone='error'] {
  color: #fb7185;
}

.ca-form .contact-status[data-tone='busy'] {
  color: #f5b82e;
}

/* Lernpfad-Vorschau & Flammen-Stufen */
.ca-path-preview {
  background: #151a1e;
  border: 2px solid #283138;
  border-bottom-width: 6px;
  border-radius: 26px;
  padding: 20px;
  display: grid;
  gap: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 22px 48px rgba(0, 0, 0, 0.42);
}

.ca-path-banner {
  background: linear-gradient(135deg, #26d07c, #18b86a);
  border-bottom: 5px solid #159a57;
  border-radius: 18px;
  padding: 15px 18px;
  color: #062415;
  display: grid;
  gap: 3px;
}

.ca-path-banner span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.ca-path-banner strong {
  font-size: 19px;
  font-weight: 900;
}

@keyframes ca-sub-curve-flow {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -40;
  }
}

@keyframes ca-sub-ring-fill {
  0%,
  12% {
    stroke-dashoffset: 86;
  }
  44%,
  72% {
    stroke-dashoffset: 0;
  }
  88%,
  100% {
    stroke-dashoffset: 86;
  }
}

@keyframes ca-sub-pop-float {
  0%,
  18%,
  100% {
    opacity: 0;
    transform: translate(-50%, 6px) scale(0.84);
  }
  34%,
  66% {
    opacity: 1;
    transform: translate(-50%, -4px) scale(1);
  }
}

@keyframes ca-sub-chest-lid {
  0%,
  24%,
  76%,
  100% {
    transform: rotate(0deg);
  }
  38%,
  62% {
    transform: rotate(-16deg) translateY(-3px);
  }
}

@keyframes ca-sub-flame-outer {
  0%,
  100% {
    transform: scaleY(1) scaleX(1) skewX(0deg);
  }
  35% {
    transform: scaleY(1.06) scaleX(0.96) skewX(-2deg);
  }
  70% {
    transform: scaleY(0.97) scaleX(1.03) skewX(2deg);
  }
}

@keyframes ca-sub-flame-inner {
  0%,
  100% {
    transform: scaleY(1) scaleX(1);
  }
  50% {
    transform: scaleY(1.08) scaleX(0.95);
  }
}

.ca-path-nodes {
  position: relative;
  height: 340px;
  border-radius: 20px;
  background: radial-gradient(circle at 60% 50%, rgba(38, 208, 124, 0.1), rgba(15, 18, 20, 0.92) 72%);
  overflow: visible;
}

.ca-path-curve {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ca-path-curve-base {
  fill: none;
  stroke: #283138;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 2 18;
}

.ca-path-curve-flow {
  fill: none;
  stroke: #26d07c;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 3 17;
  opacity: 0.72;
  animation: ca-sub-curve-flow 2.4s linear infinite;
}

.ca-pnode {
  width: 66px;
  height: 57px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ca-pnode--done {
  position: absolute;
  transform: translate(-50%, -50%);
  overflow: hidden;
  background: #26d07c;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.32), 0 8px 0 #159a57, 0 12px 18px rgba(0, 0, 0, 0.42);
}

.ca-pnode--done::before {
  content: '';
  position: absolute;
  inset: -14px auto -14px 16%;
  width: 11px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 17px 0 0 rgba(255, 255, 255, 0.14);
  transform: rotate(-28deg);
  pointer-events: none;
}

.ca-pnode--chest {
  position: absolute;
  transform: translate(-50%, -50%);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  width: 78px;
  height: 68px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45));
  animation: ca-sub-float 3.2s ease-in-out infinite;
}

.ca-pnode--chest .ca-chest-lid,
.ca-reward-chest .ca-chest-lid {
  transform-box: fill-box;
  transform-origin: 20% 85%;
  animation: ca-sub-chest-lid 4.4s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.ca-pnode-chest-pop {
  position: absolute;
  left: 50%;
  top: -16px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #151a1e;
  border: 1.5px solid #26d07c;
  color: #5eead4;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  animation: ca-sub-pop-float 4.4s ease-in-out infinite;
}

.ca-pnode-active-wrap {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  z-index: 3;
}

.ca-pnode-bubble {
  position: absolute;
  bottom: calc(100% + 4px);
  padding: 5px 12px;
  border-radius: 10px;
  background: #151a1e;
  border: 2px solid #26d07c;
  border-bottom-width: 4px;
  color: #26d07c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  animation: ca-sub-float 2.2s ease-in-out infinite;
}

.ca-pnode-ring {
  position: relative;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
}

.ca-pnode-ring-svg {
  position: absolute;
  inset: 0;
  width: 92px;
  height: 92px;
  transform: rotate(-90deg);
}

.ca-pnode-ring-arc {
  animation: ca-sub-ring-fill 4.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.ca-pnode--active {
  position: relative;
  margin-top: -3px;
  background: #26d07c;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 8px 0 #159a57, 0 12px 20px rgba(0, 0, 0, 0.42);
}

.ca-pnode--locked {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 54px;
  background: #1c2228;
  border: 2px solid #283138;
  box-shadow: 0 6px 0 #0b0e10;
}

.ca-pnode-koda {
  position: absolute;
  left: 8px;
  top: 150px;
  width: 112px;
  height: 106px;
  pointer-events: none;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.48));
}

.ca-pnode-koda canvas,
.ca-pnode-koda img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ca-tier-flame .ca-flame-svg .fl-outer,
.ca-tier-flame .ca-flame-svg .fl-wisp {
  transform-box: fill-box;
  transform-origin: 50% 92%;
  animation: ca-sub-flame-outer 2.2s ease-in-out infinite;
}

.ca-tier-flame .ca-flame-svg .fl-mid,
.ca-tier-flame .ca-flame-svg .fl-core {
  transform-box: fill-box;
  transform-origin: 50% 92%;
  animation: ca-sub-flame-inner 1.7s ease-in-out infinite;
}

.ca-tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ca-tier-card {
  background: #151a1e;
  border: 2px solid #283138;
  border-bottom-width: 6px;
  border-radius: 22px;
  padding: 22px 18px;
  display: grid;
  gap: 10px;
  justify-items: start;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease;
}

.ca-tier-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 184, 46, 0.45);
}

.ca-tier-flame {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: #0f1214;
  border: 1.5px solid #283138;
  display: grid;
  place-items: center;
}

.ca-tier-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 138, 61, 0.16);
  color: #ff8a3d;
}

.ca-tag-amber {
  background: rgba(255, 87, 34, 0.18);
  color: #ff8a3d;
}

.ca-tag-gold {
  background: rgba(245, 184, 46, 0.16);
  color: #f5b82e;
}

.ca-tag-emerald {
  background: rgba(38, 208, 124, 0.16);
  color: #26d07c;
}

.ca-tier-card h3 {
  margin: 0;
  font-size: 18px;
  color: #f8fafc;
}

.ca-tier-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.52;
  color: #b2becb;
}

/* Belohnungs-Split */
.ca-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.ca-reward-panel {
  background: #151a1e;
  border: 2px solid #283138;
  border-bottom-width: 6px;
  border-radius: 26px;
  padding: 24px;
  display: grid;
  gap: 20px;
}

.ca-reward-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ca-reward-chest {
  flex-shrink: 0;
  animation: ca-sub-float 3.2s ease-in-out infinite;
}

.ca-reward-top strong {
  display: block;
  font-size: 20px;
  color: #f8fafc;
  margin-bottom: 4px;
}

.ca-reward-top p {
  margin: 0;
  font-size: 14.5px;
  color: #b2becb;
}

.ca-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ca-mstat {
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #283138;
  border-bottom-width: 5px;
  background: #0f1214;
  text-align: center;
}

.ca-mstat span {
  display: block;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ca-mstat b {
  display: block;
  padding: 12px 8px;
  font-family: var(--display);
  font-size: 21px;
  color: #f8fafc;
}

.ca-mstat--gold {
  border-color: #f5b82e;
  border-bottom-color: #b88214;
}

.ca-mstat--gold span {
  background: #f5b82e;
  color: #2d1d00;
}

.ca-mstat--emerald {
  border-color: #26d07c;
  border-bottom-color: #159a57;
}

.ca-mstat--emerald span {
  background: #26d07c;
  color: #062415;
}

.ca-mstat--amber {
  border-color: #ff8a3d;
  border-bottom-color: #c2510c;
}

.ca-mstat--amber span {
  background: #ff8a3d;
  color: #2b1000;
}

.ca-split-copy h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.14;
  margin: 0 0 14px;
  color: #f8fafc;
}

.ca-split-copy .lead {
  color: #b2becb;
  margin: 0 0 20px;
  line-height: 1.6;
}

.ca-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ca-check-list li {
  padding-left: 28px;
  position: relative;
  color: #cbd5e1;
  line-height: 1.55;
}

.ca-check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #26d07c;
  font-weight: 900;
}

/* Schul-Checklist */
.ca-school-list {
  display: grid;
  gap: 12px;
}

.ca-school-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #0f1214;
  border: 1.5px solid #283138;
}

.ca-school-check {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: rgba(38, 208, 124, 0.16);
  color: #26d07c;
  font-weight: 900;
  font-size: 14px;
}

.ca-school-row b {
  display: block;
  font-size: 14.5px;
  color: #f8fafc;
}

.ca-school-row small {
  display: block;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.45;
  margin-top: 2px;
}

/* Abschluss-Banner der Unterseiten */
.ca-sub-final-wrap {
  padding-block: clamp(44px, 6vw, 84px);
}

.ca-sub-final {
  background: #151a1e;
  border: 2px solid #283138;
  border-bottom-width: 6px;
  border-radius: 30px;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 40px);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.ca-final-koda {
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  animation: ca-sub-float 3.4s ease-in-out infinite;
}

.ca-final-koda img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ca-sub-final h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.12;
  margin: 0;
  color: #f8fafc;
}

.ca-sub-final h2 span {
  color: #26d07c;
}

.ca-sub-final p {
  margin: 0 0 8px;
  color: #b2becb;
  max-width: 48ch;
}

/* 6-Stationen-Rhythmus je Unit (/lernpfad#unit-rhythmus) */
.ca-rhythm-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ca-rhythm-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px 20px;
  border-radius: 24px;
  background: #151a1e;
  border: 2px solid #283138;
  border-bottom: 6px solid var(--rh-lip, #283138);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.ca-rhythm-card--emerald {
  --rh-accent: #26d07c;
  --rh-lip: #159a57;
  --rh-soft: rgba(38, 208, 124, 0.14);
}

.ca-rhythm-card--gold {
  --rh-accent: #f5b82e;
  --rh-lip: #b88214;
  --rh-soft: rgba(245, 184, 46, 0.15);
}

.ca-rhythm-card--amber {
  --rh-accent: #ff8a3d;
  --rh-lip: #c2510c;
  --rh-soft: rgba(255, 138, 61, 0.15);
}

@media (hover: hover) and (pointer: fine) {
  .ca-rhythm-card:hover {
    transform: translateY(-4px);
    border-color: var(--rh-accent, #26d07c);
    background: #1c2228;
  }
}

.ca-rhythm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ca-rhythm-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--rh-soft, rgba(38, 208, 124, 0.14));
  border: 2px solid var(--rh-accent, #26d07c);
  border-bottom-width: 4px;
  color: var(--rh-accent, #26d07c);
}

.ca-rhythm-pos {
  padding: 5px 10px;
  border-radius: 999px;
  background: #0f1214;
  border: 1.5px solid #283138;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #cbd5e1;
  white-space: nowrap;
}

.ca-rhythm-card h3 {
  margin: 2px 0 0;
  font-size: 19px;
  line-height: 1.25;
  color: #f8fafc;
}

.ca-rhythm-card p {
  margin: 0;
  color: #b2becb;
  font-size: 14.5px;
  line-height: 1.55;
  flex: 1;
}

.ca-rhythm-pill {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--rh-soft, rgba(38, 208, 124, 0.14));
  color: var(--rh-accent, #26d07c);
  font-size: 12px;
  font-weight: 800;
}

/* 4 klare Metriken – Solid-Cap 3D Stat-Cards (/lernpfad#metriken) */
.ca-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ca-metric-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  padding: 3px 3px 6px;
  background: var(--mt-accent, #26d07c);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.28),
    0 6px 0 var(--mt-lip, #159a57);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ca-metric-card--emerald {
  --mt-accent: #26d07c;
  --mt-lip: #159a57;
  --mt-ink: #062415;
  --mt-soft: rgba(38, 208, 124, 0.14);
}

.ca-metric-card--gold {
  --mt-accent: #f5b82e;
  --mt-lip: #b88214;
  --mt-ink: #2b1b00;
  --mt-soft: rgba(245, 184, 46, 0.15);
}

.ca-metric-card--amber {
  --mt-accent: #ff8a3d;
  --mt-lip: #c2510c;
  --mt-ink: #2b1100;
  --mt-soft: rgba(255, 138, 61, 0.15);
}

@media (hover: hover) and (pointer: fine) {
  .ca-metric-card:hover {
    transform: translateY(-4px);
  }
}

.ca-metric-cap {
  padding: 7px 12px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mt-ink, #062415);
}

.ca-metric-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px;
  border-radius: 18px;
  background: #151a1e;
}

.ca-metric-value-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ca-metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--mt-soft, rgba(38, 208, 124, 0.14));
  border: 1.5px solid var(--mt-accent, #26d07c);
  color: var(--mt-accent, #26d07c);
}

.ca-metric-num {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  color: var(--mt-accent, #26d07c);
  font-variant-numeric: tabular-nums;
}

.ca-metric-body h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  color: #f8fafc;
}

.ca-metric-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #b2becb;
}

@media (max-width: 960px) {
  .ca-sub-hero-grid,
  .ca-contact-grid,
  .ca-split-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ca-topic-grid,
  .ca-rhythm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ca-tiers-grid,
  .ca-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ca-topic-grid,
  .ca-tiers-grid,
  .ca-rhythm-grid,
  .ca-metrics-grid,
  .ca-stage-mini-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ca-stage-koda-row,
  .ca-reward-top {
    flex-direction: column;
    text-align: center;
  }
  .ca-sub-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Cinematic Motion Layer für Unterseiten (25.11.2026) ---------- */
@keyframes ca-sub-hero-rise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ca-sub-faq-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ca-sub-node-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.045);
  }
}

.ca-subpage .ca-sub-hero-copy > .ca-status-pill,
.ca-subpage .ca-sub-hero-copy > h1,
.ca-subpage .ca-sub-hero-copy > .lead,
.ca-subpage .ca-sub-hero-copy > .ca-sub-actions {
  animation: ca-sub-hero-rise 0.46s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.ca-subpage .ca-sub-hero-copy > h1 {
  animation-delay: 50ms;
}

.ca-subpage .ca-sub-hero-copy > .lead {
  animation-delay: 110ms;
}

.ca-subpage .ca-sub-hero-copy > .ca-sub-actions {
  animation-delay: 170ms;
}

.ca-pnode--active {
  animation: ca-sub-node-pulse 2.4s ease-in-out infinite;
}

.ca-faq-item[open] .ca-faq-body {
  animation: ca-sub-faq-open 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.ca-tier-card,
.ca-rhythm-card,
.ca-metric-card,
.ca-topic-card {
  position: relative;
  overflow: hidden;
}

.ca-tier-flame,
.ca-rhythm-icon,
.ca-topic-icon {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (hover: hover) and (pointer: fine) {
  .ca-subpage [data-ca-tilt] {
    transform: perspective(1000px) rotateX(var(--ca-rx, 0deg)) rotateY(var(--ca-ry, 0deg)) translateY(var(--ca-ty, 0px)) scale(var(--ca-scale, 1));
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, background-color 0.2s ease;
  }

  .ca-subpage [data-ca-tilt]:hover {
    --ca-ty: -5px;
    --ca-scale: 1.01;
  }

  .ca-tier-card:hover .ca-tier-flame,
  .ca-rhythm-card:hover .ca-rhythm-icon,
  .ca-topic-card:hover .ca-topic-icon {
    transform: scale(1.08) rotate(-3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ca-status-pill i,
  .ca-stage-koda,
  .ca-path-curve-flow,
  .ca-pnode--chest,
  .ca-pnode--chest .ca-chest-lid,
  .ca-pnode-chest-pop,
  .ca-pnode-bubble,
  .ca-pnode-ring-arc,
  .ca-pnode--active,
  .ca-tier-flame .ca-flame-svg .fl-outer,
  .ca-tier-flame .ca-flame-svg .fl-wisp,
  .ca-tier-flame .ca-flame-svg .fl-mid,
  .ca-tier-flame .ca-flame-svg .fl-core,
  .ca-reward-chest,
  .ca-reward-chest .ca-chest-lid,
  .ca-final-koda,
  .ca-faq-item[open] .ca-faq-body,
  .ca-subpage .ca-sub-hero-copy > .ca-status-pill,
  .ca-subpage .ca-sub-hero-copy > h1,
  .ca-subpage .ca-sub-hero-copy > .lead,
  .ca-subpage .ca-sub-hero-copy > .ca-sub-actions {
    animation: none !important;
  }
  .ca-rhythm-card,
  .ca-metric-card,
  .ca-tier-card,
  .ca-topic-card,
  .ca-tier-flame,
  .ca-rhythm-icon,
  .ca-topic-icon,
  .ca-subpage [data-ca-tilt] {
    transition: none !important;
    transform: none !important;
  }
}

:root[data-perf='lite'] :is(.ca-status-pill i, .ca-stage-koda, .ca-path-curve-flow, .ca-pnode--chest, .ca-pnode--chest .ca-chest-lid, .ca-pnode-chest-pop, .ca-pnode-bubble, .ca-pnode-ring-arc, .ca-pnode--active, .ca-tier-flame .ca-flame-svg .fl-outer, .ca-tier-flame .ca-flame-svg .fl-wisp, .ca-tier-flame .ca-flame-svg .fl-mid, .ca-tier-flame .ca-flame-svg .fl-core, .ca-reward-chest, .ca-reward-chest .ca-chest-lid, .ca-final-koda, .ca-faq-item[open] .ca-faq-body, .ca-subpage .ca-sub-hero-copy > .ca-status-pill, .ca-subpage .ca-sub-hero-copy > h1, .ca-subpage .ca-sub-hero-copy > .lead, .ca-subpage .ca-sub-hero-copy > .ca-sub-actions),
:root[data-motion='reduce'] :is(.ca-status-pill i, .ca-stage-koda, .ca-path-curve-flow, .ca-pnode--chest, .ca-pnode--chest .ca-chest-lid, .ca-pnode-chest-pop, .ca-pnode-bubble, .ca-pnode-ring-arc, .ca-pnode--active, .ca-tier-flame .ca-flame-svg .fl-outer, .ca-tier-flame .ca-flame-svg .fl-wisp, .ca-tier-flame .ca-flame-svg .fl-mid, .ca-tier-flame .ca-flame-svg .fl-core, .ca-reward-chest, .ca-reward-chest .ca-chest-lid, .ca-final-koda, .ca-faq-item[open] .ca-faq-body, .ca-subpage .ca-sub-hero-copy > .ca-status-pill, .ca-subpage .ca-sub-hero-copy > h1, .ca-subpage .ca-sub-hero-copy > .lead, .ca-subpage .ca-sub-hero-copy > .ca-sub-actions) {
  animation: none !important;
}

:root[data-motion='reduce'] :is(.ca-rhythm-card, .ca-metric-card, .ca-tier-card, .ca-topic-card, .ca-subpage [data-ca-tilt]),
:root[data-perf='lite'] :is(.ca-rhythm-card, .ca-metric-card, .ca-tier-card, .ca-topic-card, .ca-subpage [data-ca-tilt]) {
  transition: none !important;
  transform: none !important;
}

/* ---------- Website 13.11.2026: Kursseiten als Vorstellung, Hilfe mit Themen-Kacheln ---------- */
/* Kursseiten: „Warum <Kurs> lernen?“ und „So funktioniert der Kurs“ nutzen die Karten der Unterseiten (.pg-card, .pg-icon). */
.course-why,
.course-how,
.course-content {
  margin-top: clamp(40px, 6vw, 72px);
}
.course-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.course-steps .pg-card:nth-child(2) {
  --c: var(--sw-green);
}
.course-steps .pg-card:nth-child(3) {
  --c: var(--sw-gold);
}
.course-step-art {
  display: block;
  width: 72px;
  height: auto;
}
.course-step-no {
  position: absolute;
  top: 16px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 99px;
  font: 700 15px/1 var(--display);
  color: #04262e;
  background: var(--c, var(--sw-cyan));
}

/* Hilfe: die sieben Themen als Kacheln mit Symbol und Fragenzahl. Ohne Skript bleiben es Sprungmarken auf die voll
   ausgeklappte Liste; erst das Skript in hilfe.html zeigt je Thema nur eine Gruppe (Klasse .pg-off blendet die anderen aus). */
.pg-topics.pg-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
  gap: 12px;
  max-width: 920px;
  margin-inline: auto;
}
.pg-tiles a {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding: 16px 10px 12px;
  border-radius: 20px;
  border-bottom-width: 6px;
  text-align: center;
  line-height: 1.2;
}
.pg-tiles a:nth-child(7n + 2) {
  --c: var(--sw-green);
}
.pg-tiles a:nth-child(7n + 3) {
  --c: var(--sw-gold);
}
.pg-tiles a:nth-child(7n + 4) {
  --c: var(--sw-pink);
}
.pg-tiles a:nth-child(7n + 5) {
  --c: var(--sw-violet);
}
.pg-tiles a:nth-child(7n + 6) {
  --c: var(--sw-orange);
}
.pg-tiles .pg-icon {
  width: 48px;
  height: 48px;
  font-size: 24px;
}
.pg-tile-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--mist);
}
.pg-tiles a[aria-current='true'] {
  border-color: var(--sw-cyan);
  background: color-mix(in srgb, var(--sw-cyan) 14%, var(--sw-card));
}
.pg-popular {
  max-width: 760px;
  margin: 0 auto 30px;
}
.pg-popular h2 {
  margin-top: 0;
}
.pg-popular ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pg-popular button {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 2px solid var(--sw-line);
  border-bottom-width: 5px;
  background: var(--sw-card);
  color: var(--ink);
  font: 700 16px/1.3 var(--body);
  text-align: left;
  cursor: pointer;
}
.pg-popular button:hover {
  border-color: var(--sw-cyan);
}
.pg-popular button:focus-visible {
  outline: 3px solid var(--sw-cyan);
  outline-offset: 2px;
}
.pg-help .faq .pg-off {
  display: none;
}

/* ---------- Animationen 12.11.2026: Seitenkopf und Themen-Chips ---------- */
/* Der Kopf jeder Unterseite steigt Zeile für Zeile auf (Kicker, Titel, Einleitung, Knöpfe; 40 ms Abstand, insgesamt unter
   400 ms). Eine einmalige CSS-Animation mit fill „backwards“: der Text ist am Ende normal sichtbar und ohne Skript lesbar.
   Sie startet erst, wenn der umgebende Block eingeblendet wird (.in), nicht schon unter dem noch unsichtbaren Block. */
.pg-hero > .reveal.in > :nth-child(-n + 5) {
  animation: an-rise-sm 0.24s var(--an-ease) backwards;
}
.pg-hero > .reveal.in > :nth-child(2) {
  animation-delay: 0.04s;
}
.pg-hero > .reveal.in > :nth-child(3) {
  animation-delay: 0.08s;
}
.pg-hero > .reveal.in > :nth-child(4) {
  animation-delay: 0.12s;
}
.pg-hero > .reveal.in > :nth-child(5) {
  animation-delay: 0.16s;
}

/* Themen-Chips der Hilfe: wie Knöpfe – kurz einsinken, federnd zurück, mit Maus ein kleiner Hub. */
.pg-topics a {
  transition: transform 0.4s var(--an-pop);
}
@media (hover: hover) and (pointer: fine) {
  .pg-topics a:hover {
    transform: translateY(-2px);
  }
}
.pg-topics a:active {
  transform: scale(0.95);
}

@media (prefers-reduced-motion: reduce) {
  .pg-hero > .reveal > :nth-child(-n + 5) {
    animation: none !important;
  }
  .pg-topics a:hover,
  .pg-topics a:active {
    transform: none;
  }
}
:root[data-motion='reduce'] .pg-hero > .reveal > :nth-child(-n + 5) {
  animation: none !important;
}
:root[data-motion='reduce'] .pg-topics a:is(:hover, :active) {
  transform: none !important;
}
