/* Compile Academy Website Design-System: Soft-Obsidian (#0F1214 / #151A1E / #1C2228 / #283138) + Vibrant Emerald-Jade (#26D07C). */
html:root,
html:root[data-learning-design='solid'][data-scheme][data-theme] {
  --bg: #0f1214;
  --bg-2: #151a1e;
  --ink: #f1f5f9;
  --mist: #cbd5e1;
  --haze: #94a3b8;
  --violet: #26d07c;
  --violet-ink: #4ade97;
  --cyan: #26d07c;
  --lime: #26d07c;
  --glass: #151a1e;
  --glass-strong: #151a1e;
  --rim: #283138;
  --rim-low: #283138;
  --drop: #0b0e10;
  --code-bg: #151a1e;
  --radius: 22px;
  color-scheme: dark;
}
html,
body {
  background: #0f1214 !important;
  color: #f1f5f9;
}
*,
*::before,
*::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.glass {
  background: #151a1e !important;
  border: 2px solid #283138 !important;
  box-shadow: none !important;
  filter: none !important;
}
.glass::before,
.glass::after {
  display: none !important;
}
.wall,
.wallpaper,
.hero-stage,
.cursor-glow,
.lg-scene,
.prisma-scene {
  display: none !important;
}
.nav.glass {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 12px max(20px, calc((100% - 1160px) / 2)) !important;
  background: rgba(15, 18, 20, 0.94) !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-bottom: 2px solid #283138 !important;
  z-index: 50;
}
.nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav .brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}
/* Knöpfe: website/assets/druck.css (Druckpunkt, 10.11.2026) */
a:focus-visible,
button:focus-visible {
  outline: 3px solid #26d07c;
  outline-offset: 4px;
}
.grad {
  background: none !important;
  -webkit-text-fill-color: #26d07c !important;
  color: #26d07c !important;
}
.eyebrow.glass {
  background: #102a1f !important;
  color: #26d07c;
  border-color: #159a57 !important;
  box-shadow: none;
}
.hero {
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero-grid.hero-single {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: 52px;
}
.hero-copy {
  max-width: 700px;
}
.hero h1 {
  font-family: Lexend, system-ui, sans-serif;
  font-size: clamp(38px, 5.3vw, 68px);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -2.8px;
}
.hero .lead {
  max-width: 620px;
  font-size: 17px;
  line-height: 1.8;
  color: #cbd5e1;
}
.stats {
  gap: 10px;
}
.stats li.glass {
  border-radius: 14px;
  background: #151a1e !important;
}
.stats strong {
  color: #f1f5f9;
}
.learning-preview {
  background: #151a1e;
  border: 2px solid #283138;
  border-bottom: 7px solid #283138;
  border-radius: 28px;
  padding: 24px;
  position: relative;
  max-width: 410px;
  width: 100%;
  justify-self: center;
  box-sizing: border-box;
}
.learning-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  color: #f1f5f9;
}
.learning-preview-label {
  font-size: 11px;
  color: #26d07c;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 16px;
}
.learning-preview-head img {
  width: 56px;
  height: 56px;
}
.learning-preview-bar {
  height: 9px;
  border-radius: 9px;
  background: #283138;
  overflow: hidden;
  margin-top: 14px;
}
.learning-preview-bar i {
  display: block;
  width: 38%;
  height: 100%;
  background: #26d07c;
  border-radius: 9px;
}
.learning-preview-route {
  position: relative;
  height: 158px;
  margin: 24px 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 27px;
}
.learning-preview-route::before {
  content: '';
  position: absolute;
  left: 15%;
  right: 15%;
  top: 74px;
  height: 10px;
  background: #283138;
  transform: rotate(12deg);
  border-radius: 9px;
}
.learning-preview-node {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f5b82e;
  color: #062415;
  border-bottom: 7px solid #b88214;
  font-size: 24px;
  font-weight: 800;
  z-index: 1;
}
.learning-preview-node:first-child {
  background: #26d07c;
  color: #062415;
  border-color: #159a57;
  transform: translateY(-28px);
}
.learning-preview-node:last-child {
  background: #1c2228;
  border-color: #283138;
  color: #cbd5e1;
  transform: translateY(28px);
}
.learning-preview-code {
  background: #0f1214;
  border: 1px solid #283138;
  border-radius: 16px;
  padding: 18px;
}
.learning-preview-code p {
  font-size: 13px;
  color: #cbd5e1;
  margin: 0 0 12px;
}
.learning-preview-code pre {
  margin: 0;
  color: #f1f5f9;
  font-size: 16px;
  white-space: pre-wrap;
}
.mini-answers {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.mini-answers button {
  flex: 1;
  min-height: 42px;
  border: 1px solid #283138;
  border-bottom: 4px solid #0f1214;
  border-radius: 11px;
  background: #1c2228;
  color: #f1f5f9;
  font:
    700 16px Lexend,
    system-ui;
  cursor: pointer;
}
.mini-answers button:hover {
  border-color: #26d07c;
}
.mini-answers button[data-result='correct'] {
  background: #26d07c;
  color: #062415;
  border-color: #159a57;
}
.mini-answers button[data-result='wrong'] {
  border-color: #ff9d92;
}
.mini-feedback {
  min-height: 40px;
  font-size: 12px !important;
  line-height: 1.5;
  margin: 12px 0 0 !important;
  color: #cbd5e1;
}
.step,
.feature,
.course,
.companion,
.install,
.final,
.dev-teaser {
  border-radius: 22px;
}
.companion img {
  filter: none !important;
}
.section h2,
h2 {
  letter-spacing: -1px;
}
footer {
  border-color: #283138;
  background: #151a1e;
  border-top: 2px solid #283138;
}
.pwa-panel,
.nav-menu {
  background: #151a1e !important;
}
a {
  color: #26d07c;
}
.nav a,
.brand,
.btn {
  color: inherit;
}
.hero-actions-note a,
.hero-note {
  color: #cbd5e1;
}
.marquee {
  background: #151a1e;
  border-block: 2px solid #283138;
}
/* Hinweis-Pille unter der Navigation (Tester-Sperre / Verbindungsstand) im Soft-Obsidian Design */
.nx-dev-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  width: fit-content;
  max-width: min(760px, calc(100% - 28px));
  margin: 14px auto 0;
  padding: 9px 16px;
  border-radius: 999px;
  border: 2px solid #283138;
  border-bottom-width: 4px;
  background: #151a1e;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.4;
  position: relative;
  z-index: 40;
}
.nx-dev-notice i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff8a3d;
}
.nx-dev-notice b {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 138, 61, 0.16);
  border: 1px solid rgba(255, 138, 61, 0.4);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff8a3d;
}
.nx-notice {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  max-width: min(560px, calc(100vw - 24px));
  padding: 10px 16px;
  border-radius: 16px;
  border: 2px solid #283138;
  border-bottom-width: 4px;
  background: #151a1e;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

/* ---------- Lern-App 3D-Tactile-Buttons & animierter Smaragd-Glanz (überall auf der Website) ---------- */
@keyframes ca-btn-sheen {
  0%,
  72%,
  100% {
    transform: translateX(-140%) skewX(-24deg);
    opacity: 0;
  }
  78% {
    opacity: 0.42;
  }
  94% {
    transform: translateX(240%) skewX(-24deg);
    opacity: 0;
  }
}

html body .btn {
  --nx-accent: #26d07c;
  --nx-accent-edge: #159a57;
  --nx-on-accent: #062415;
  --nx-edge: 5px;
  overflow: hidden;
  border-radius: 16px;
  font-weight: 800;
  letter-spacing: 0.07em;
  transition:
    padding 170ms cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

html body .btn::before {
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.28),
    0 var(--e) 0 0 var(--edge-color),
    0 12px 26px -8px rgba(38, 208, 124, 0.42);
  transition:
    transform 170ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 170ms cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 140ms ease-out,
    border-color 140ms ease-out !important;
}

html body .btn:not(.secondary):not(.ghost):not(:disabled):not([aria-disabled='true'])::after {
  content: '' !important;
  display: block !important;
  position: absolute;
  top: 0;
  bottom: var(--e);
  left: 0;
  width: 38%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  transform: translateX(-140%) skewX(-24deg);
  animation: ca-btn-sheen 4.4s ease-in-out infinite;
}

html body .btn > * {
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  html body .btn:not(:disabled):not([aria-disabled='true']):hover {
    transform: translateY(-2px) !important;
  }
  html body .btn:not(.secondary):not(.ghost):not(:disabled):hover::before {
    filter: brightness(1.07);
    box-shadow:
      inset 0 2px 0 rgba(255, 255, 255, 0.36),
      0 calc(var(--e) + 1px) 0 0 var(--edge-color),
      0 16px 32px -6px rgba(38, 208, 124, 0.56);
  }
}

html body .btn:active {
  transform: translateY(0) !important;
  transition-duration: 55ms !important;
}

html body .btn:active::before {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 0 var(--edge-color) !important;
  transition-duration: 55ms !important;
}

html body .btn.secondary,
html body .btn.ghost {
  --face: #151a1e;
  --edge-color: #283138;
  --line: #283138;
  color: #26d07c !important;
}

html body .btn.secondary::before,
html body .btn.ghost::before {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 var(--e) 0 0 var(--edge-color);
}

@media (hover: hover) and (pointer: fine) {
  html body .btn.secondary:hover::before,
  html body .btn.ghost:hover::before {
    background: #1c2228 !important;
    border-color: #26d07c;
    box-shadow:
      inset 0 1px 0 rgba(38, 208, 124, 0.18),
      0 calc(var(--e) + 1px) 0 0 #159a57,
      0 10px 24px -10px rgba(38, 208, 124, 0.3);
  }
}

/* Lern-App Navigationsleiste: klare Text-Links, 3D-Sprach-Keycap, 3D-Smaragd-Startbutton ganz rechts */
.nav .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 860px) {
  .nav:not(.open) .nav-links {
    display: none;
  }
  .nav.open .nav-links {
    display: flex;
    background: #151a1e;
    border: 2px solid #283138;
    border-bottom-width: 5px;
    border-radius: 22px;
  }
}

.nav .nav-links a:not(.btn):not(.lang-switch) {
  padding: 9px 13px;
  border-radius: 12px;
  background: transparent;
  border: 0;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    color 140ms ease,
    background-color 140ms ease,
    transform 150ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav .nav-links a:not(.btn):not(.lang-switch):hover,
.nav .nav-links a:not(.btn):not(.lang-switch)[aria-current='page'] {
  color: #26d07c;
  background: rgba(38, 208, 124, 0.11);
}

/* 3D-Tactile Sprachumschalter im exakten Lern-App-Knopfdesign */
.nav .nav-links a.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 41px;
  margin-left: 6px;
  padding: 0 15px;
  border-radius: 13px;
  background: #151a1e;
  border: 2px solid #283138;
  border-bottom: 4px solid #283138;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 160ms cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 140ms ease,
    color 140ms ease,
    background-color 140ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav .nav-links a.lang-switch:hover {
    transform: translateY(-2px);
    background: #1c2228;
    border-color: #26d07c;
    border-bottom-color: #159a57;
    color: #26d07c;
  }
}

.nav .nav-links a.lang-switch:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}

.nav .nav-cta {
  --nx-edge: 4px;
  --nx-btn-h: 39px;
  margin-left: 6px;
  min-height: 43px !important;
  padding-inline: 18px !important;
  border-radius: 13px !important;
  font-size: 13px !important;
  letter-spacing: 0.08em !important;
  color: #062415 !important;
}

/* Interaktive 3D-Lern-App-Karten (Kurs-Chips, Kurse, Themen-Karten) */
.marquee .lang-chip.glass,
.course.glass,
.pg-card {
  transition:
    transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 150ms ease,
    box-shadow 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .marquee .lang-chip.glass:hover {
    transform: translateY(-3px);
    border-color: #26d07c !important;
    box-shadow: 0 8px 20px -8px rgba(38, 208, 124, 0.32) !important;
  }
  .course.glass:hover {
    transform: translateY(-5px);
    border-color: #26d07c !important;
    box-shadow: 0 14px 28px -12px rgba(38, 208, 124, 0.28) !important;
  }
  .pg-card:hover {
    border-color: #26d07c !important;
  }
}

.marquee .lang-chip.glass:active,
.course.glass:active {
  transform: translateY(2px);
}

@media (prefers-reduced-motion: reduce) {
  html body .btn::after {
    animation: none !important;
    display: none !important;
  }
}
:root[data-motion='reduce'] .btn::after,
:root[data-perf='lite'] .btn::after {
  animation: none !important;
  display: none !important;
}
.marquee-track {
  animation: none !important;
  flex-wrap: wrap;
  justify-content: center;
  transform: none !important;
}
.reveal {
  filter: none !important;
}
@media (max-width: 900px) {
  .hero-grid.hero-single {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-copy {
    max-width: 700px;
  }
  .learning-preview {
    max-width: 440px;
  }
  .hero {
    padding-top: 36px;
  }
  .hero h1 {
    letter-spacing: -1.7px;
  }
  .hero .lead {
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .learning-preview {
    padding: 20px;
    border-radius: 22px;
  }
  .hero-grid.hero-single {
    gap: 28px;
  }
  .hero h1 {
    font-size: 37px;
  }
  .cta-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .cta-row .btn {
    justify-content: center;
  }
  .stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .stats li {
    min-width: 0;
  }
  .learning-preview-route {
    height: 130px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
  .learning-preview-node {
    animation: none !important;
  }
}

.nav .brand,
.nav .brand span,
.nav .brand strong {
  font-family: Lexend, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  text-transform: none;
}

html:root[data-learning-design='solid'][data-scheme][data-theme] *,
html:root[data-learning-design='solid'][data-scheme][data-theme] *::before,
html:root[data-learning-design='solid'][data-scheme][data-theme] *::after,
html:root[data-learning-design='solid'].is-scrolling .nav.glass {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Soft, tactile learning pieces. Only transform/opacity move. (Knöpfe: druck.css) */
.mini-answers button {
  border-radius: 26px;
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}
.mini-answers button:active {
  transform: translateY(3px) scale(0.98);
}
.step,
.feature,
.course,
.learning-preview-code {
  border-radius: 28px;
}
.learning-preview-head img {
  animation: learning-koda-wave 4s ease-in-out infinite;
}
.learning-preview-route .learning-preview-node:nth-child(2) {
  animation: learning-ready 2.8s ease-in-out infinite;
}
.mini-answers button[data-result='correct'] {
  animation: learning-answer-pop 360ms ease-out;
}
.mini-answers button[data-result='wrong'] {
  animation: learning-answer-nudge 250ms ease-in-out;
}
@keyframes learning-koda-wave {
  0%,
  65%,
  100% {
    transform: rotate(0deg);
  }
  75% {
    transform: rotate(-7deg);
  }
  85% {
    transform: rotate(7deg);
  }
}
@keyframes learning-ready {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
@keyframes learning-answer-pop {
  0%,
  100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.08);
  }
}
@keyframes learning-answer-nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(-4px);
  }
  70% {
    transform: translateX(4px);
  }
}
:root[data-page-visible='false'] .learning-preview *,
.hero[data-in-view='false'] .learning-preview * {
  animation-play-state: paused !important;
}
:root[data-motion='reduce'] .learning-preview *,
:root[data-perf='lite'] .learning-preview * {
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .learning-preview *,
  .mini-answers button {
    animation: none !important;
    transition: none !important;
  }
}

/* Startseite (Eigentümer 06.11.2026): Koda groß, zwei Knöpfe, gleicher Look wie die App */
.hero-koda .hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
}
.hero-koda h1 {
  font-family: var(--display);
  font-size: clamp(30px, 3.9vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.hero-mascot {
  display: flex;
  justify-content: center;
}
.hero-mascot img {
  width: min(440px, 100%);
  height: auto;
}
/* Lebendiger Koda (koda-live.js, Eigentümer 07.11.2026): Bühne für Sprünge und Pirouette, Sprechblase über dem Kopf */
.koda-stage {
  position: relative;
  width: min(440px, 100%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.koda-stage:focus-visible {
  outline: 3px solid var(--cyan, #26d07c);
  outline-offset: 6px;
  border-radius: 28px;
}
.koda-stage .koda-live-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.koda-say {
  position: absolute;
  top: 0;
  left: 56%;
  max-width: 230px;
  margin: 0;
  padding: 10px 14px;
  border: 2px solid #000000;
  border-radius: 18px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  text-align: left;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transform-origin: 18px 100%;
  transition:
    opacity 0.2s ease,
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.koda-say.is-on {
  opacity: 1;
  transform: none;
}
.koda-say::after {
  content: '';
  position: absolute;
  left: 18px;
  bottom: -9px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  transform: rotate(45deg);
}
@media (prefers-reduced-motion: reduce) {
  .koda-say {
    transition: none;
  }
}
.hero-koda .cta-two {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-koda .cta-two .btn {
  min-width: 240px;
  justify-content: center;
}
.probe-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.probe-grid .section-head {
  text-align: left;
  align-items: flex-start;
  margin: 0;
}
.probe-grid .eyebrow {
  margin-inline: 0;
}
.probe-grid .cta-row {
  justify-content: flex-start;
}
@media (max-width: 860px) {
  .hero-koda .hero-grid,
  .probe-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-koda {
    text-align: center;
  }
  .hero-mascot img,
  .koda-stage {
    width: min(260px, 66vw);
  }
  .koda-say {
    left: 50%;
    top: -8%;
    max-width: min(210px, 54vw);
    font-size: 13px;
  }
  .hero-koda .lead {
    margin-inline: auto;
  }
  .hero-koda .cta-two {
    flex-direction: column;
  }
  .hero-koda .cta-two .btn {
    width: 100%;
  }
  .hero-koda .stats {
    justify-content: center;
  }
}
