/* absofort.ch — KI-Zertifizierungen von Alpasana */
/* Design System v1.0 */

:root {
  --bg-dark:     #080c14;
  --bg-card:     #0f1623;
  --bg-card2:    #161e2e;
  --border:      #1e2d45;
  --blue:        #3b82f6;
  --blue-bright: #60a5fa;
  --blue-dark:   #1d4ed8;
  --cyan:        #06b6d4;
  --green:       #22c55e;
  --amber:       #f59e0b;
  --purple:      #a855f7;
  --red:         #ef4444;
  --text-white:  #f0f4ff;
  --text-muted:  #8899bb;
  --text-faint:  #445577;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(0,0,0,.5);
  --glow-blue:   0 0 40px rgba(59,130,246,.18);
}

/* ── Helles Theme (umschaltbar, Standard) — nur Variablen + wenige Chrome-Overrides ── */
:root[data-theme="light"] {
  --bg-dark:     #f4f6fb;
  --bg-card:     #ffffff;
  --bg-card2:    #eef2f8;
  --border:      #e2e8f0;
  --blue-bright: #2563eb;
  --text-white:  #0f172a;
  --text-muted:  #475569;
  --text-faint:  #94a3b8;
  --shadow:      0 6px 24px rgba(15,23,42,.10);
  --glow-blue:   0 0 40px rgba(59,130,246,.08);
}
:root[data-theme="light"] .navbar { background: rgba(255,255,255,.82); }

/* Theme-Umschalter */
.theme-toggle {
  background: transparent; border: 1px solid var(--border); border-radius: 8px;
  width: 34px; height: 34px; cursor: pointer; color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1;
  transition: color .15s, border-color .15s;
}
.theme-toggle:hover { color: var(--text-white); border-color: var(--blue); }
.theme-toggle .theme-ico-dark { display: none; }
.theme-toggle .theme-ico-light { display: inline; }
:root[data-theme="light"] .theme-toggle .theme-ico-light { display: none; }
:root[data-theme="light"] .theme-toggle .theme-ico-dark { display: inline; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: var(--text-white);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Typography ── */
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
p  { color: var(--text-muted); line-height: 1.75; }
a  { color: var(--blue-bright); text-decoration: none; transition: color .2s; }
a:hover { color: var(--text-white); }

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #06b6d4 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ── */
.container  { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── Navigation ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,12,20,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  color: #fff;
  letter-spacing: -1px;
  flex-shrink: 0;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -.03em;
}
.nav-logo-sub {
  font-size: 9.5px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text-white); background: var(--bg-card2); }
.nav-links a.active { color: var(--blue-bright); }
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* Sprach-Dropdown (natives <details>, spart Platz im Menü) */
.lang-dd { position: relative; display: inline-block; }
.lang-dd > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid var(--border); border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--text-muted); white-space: nowrap; user-select: none; }
.lang-dd > summary::-webkit-details-marker { display: none; }
.lang-dd > summary::marker { content: ""; }
.lang-dd > summary:hover { color: var(--text-white); border-color: var(--blue-bright); }
.lang-dd[open] > summary { background: var(--bg-card2); color: var(--text-white); }
.lang-dd-caret { font-size: 10px; transition: transform .15s ease; }
.lang-dd[open] .lang-dd-caret { transform: rotate(180deg); }
.lang-dd-menu { position: absolute; right: 0; top: calc(100% + 5px); display: flex; flex-direction: column; min-width: 72px; padding: 4px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.20); z-index: 60; }
.lang-dd-menu a { padding: 7px 12px; border-radius: 6px; text-decoration: none; font-size: 12px; font-weight: 700; color: var(--text-muted); }
.lang-dd-menu a:hover { background: var(--bg-card2); color: var(--text-white); }
.lang-dd-menu a.is-active { background: var(--blue-bright); color: #fff; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 20px rgba(59,130,246,.3);
}
.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
  box-shadow: 0 0 30px rgba(59,130,246,.5);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue-bright); background: rgba(59,130,246,.05); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text-white); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 17px; border-radius: var(--radius); }
.btn-full { width: 100%; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #16a34a; color: #fff; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--blue); box-shadow: var(--glow-blue); transform: translateY(-2px); }
.card-body { padding: 28px; }
.card-header { padding: 20px 28px; border-bottom: 1px solid var(--border); }

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 100px;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(59,130,246,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-bright);
  margin-bottom: 28px;
  letter-spacing: .02em;
}
.hero-badge::before { content: '⚡'; }
.hero h1 { margin-bottom: 24px; max-width: 820px; margin-left: auto; margin-right: auto; }
.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.hero-stat-value { font-size: 2rem; font-weight: 800; color: var(--text-white); }
.hero-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ── Course Grid ── */
.kurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.kurs-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .25s;
  display: flex;
  flex-direction: column;
}
.kurs-card:hover { border-color: var(--blue); box-shadow: var(--glow-blue); transform: translateY(-3px); }
.kurs-card-top {
  padding: 28px 28px 20px;
  flex: 1;
}
.kurs-card-bottom {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.niveau-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.kurs-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  background: rgba(59,130,246,.12);
}
.kurs-titel {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
  line-height: 1.3;
}
.kurs-beschreibung {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kurs-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.kurs-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-muted);
}
.kurs-preis {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-white);
}
.kurs-preis-sub { font-size: 12px; color: var(--text-muted); font-weight: 400; }

/* ── Progress Bar ── */
.progress {
  background: var(--bg-card2);
  border-radius: 100px;
  height: 6px;
  overflow: hidden;
  margin: 8px 0;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 100px;
  transition: width .4s ease;
}

/* ── Module List ── */
.modul-list { display: flex; flex-direction: column; gap: 12px; }
.modul-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  color: inherit;
}
.modul-item:hover { border-color: var(--blue); }
.modul-item.locked { opacity: .5; cursor: not-allowed; }
.modul-item.completed { border-color: rgba(34,197,94,.3); }
.modul-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
.modul-item.completed .modul-num { background: rgba(34,197,94,.1); border-color: var(--green); color: var(--green); }
.modul-info { flex: 1; min-width: 0; }
.modul-titel { font-size: 15px; font-weight: 600; color: var(--text-white); }
.modul-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.modul-status { font-size: 12px; font-weight: 600; color: var(--text-muted); flex-shrink: 0; }
.modul-item.completed .modul-status { color: var(--green); }

/* ── Lesson Content ── */
.lektion-container { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.lektion-sidebar {
  position: sticky;
  top: 80px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.lektion-sidebar-header { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.lektion-sidebar-title { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.lektion-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  transition: all .2s;
}
.lektion-nav-item:last-child { border-bottom: none; }
.lektion-nav-item:hover { background: var(--bg-card2); color: var(--text-white); }
.lektion-nav-item.active { background: rgba(59,130,246,.08); color: var(--blue-bright); border-left: 2px solid var(--blue); }
.lektion-nav-item.done { color: var(--green); }
.lektion-check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.lektion-nav-item.done .lektion-check { border-color: var(--green); background: rgba(34,197,94,.1); color: var(--green); }
.lektion-nav-item.active .lektion-check { border-color: var(--blue); }

.lektion-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.lektion-content-header { padding: 24px 32px; border-bottom: 1px solid var(--border); }
.lektion-body { padding: 32px; }
.lektion-body h2 { color: var(--text-white); margin-bottom: 20px; font-size: 1.6rem; }
.lektion-body h3 { color: var(--text-white); margin: 32px 0 14px; font-size: 1.15rem; }
.lektion-body p { margin-bottom: 20px; color: #a0b0cc; line-height: 1.8; }
.lektion-body ul,
.lektion-body ol { padding-left: 24px; margin-bottom: 20px; color: #a0b0cc; }
.lektion-body li { margin-bottom: 8px; line-height: 1.7; }
.lektion-body strong { color: var(--text-white); font-weight: 600; }
.lektion-body code {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: .9em;
  color: var(--cyan);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.lektion-body blockquote {
  border-left: 3px solid var(--blue);
  padding: 12px 20px;
  margin: 24px 0;
  background: rgba(59,130,246,.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Didaktik-Boxen (Lernbox) — einheitliche Lernbausteine in jeder Lektion ── */
.lernbox {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 28px 0;
}
.lernbox > :last-child { margin-bottom: 0; }
.lernbox-titel {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; color: var(--text-white);
  font-size: 1rem; margin-bottom: 10px; letter-spacing: .2px;
}
.lernbox-titel .lernbox-ico { font-size: 1.15rem; line-height: 1; }
.lektion-body .lernbox p { margin-bottom: 12px; color: #b6c4e0; }
.lernbox--prompt        { border-left-color: var(--blue);          background: rgba(59,130,246,.06); }
.lernbox--uebung        { border-left-color: var(--green);         background: rgba(34,197,94,.06); }
.lernbox--verantwortung { border-left-color: var(--amber);         background: rgba(245,158,11,.06); }
.lernbox--tipp          { border-left-color: var(--cyan);          background: rgba(34,211,238,.06); }
.lernbox--merke         { border-left-color: var(--violet, #a78bfa); background: rgba(167,139,250,.06); }

/* Prompt-Box: kopierbarer Prompt-Text + Copy-Button */
.lernbox-prompt {
  background: var(--bg-dark, #0a0f1a);
  border: 1px dashed rgba(96,165,250,.4);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 4px 0 8px;
  color: #cdd9f0;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: .9rem; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word;
}
.lernbox-copy {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue); color: #fff; border: 0;
  border-radius: 6px; padding: 6px 13px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .2s;
}
.lernbox-copy:hover  { background: var(--blue-dark); }
.lernbox-copy.copied { background: var(--green); }

.lektion-footer {
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Quiz ── */
.quiz-frage {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}
.quiz-frage-text { font-size: 1.05rem; font-weight: 600; color: var(--text-white); margin-bottom: 20px; line-height: 1.5; }
.quiz-antworten { display: flex; flex-direction: column; gap: 10px; }
.quiz-antwort {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card2);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .2s;
  text-align: left;
  width: 100%;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.5;
}
.quiz-antwort:hover { border-color: var(--blue); color: var(--text-white); }
.quiz-antwort.selected { border-color: var(--blue); background: rgba(59,130,246,.08); color: var(--text-white); }
.quiz-antwort.correct { border-color: var(--green); background: rgba(34,197,94,.08); color: var(--green); }
.quiz-antwort.wrong { border-color: var(--red); background: rgba(239,68,68,.08); color: var(--red); }
.quiz-letter {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.quiz-erklaerung {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(6,182,212,.06);
  border: 1px solid rgba(6,182,212,.2);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--cyan);
  line-height: 1.6;
  display: none;
}
.quiz-erklaerung.visible { display: block; }

/* ── Score / Result ── */
.result-box {
  text-align: center;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.score-ring {
  width: 140px; height: 140px;
  margin: 0 auto 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.score-ring svg { position: absolute; top: 0; left: 0; transform: rotate(-90deg); }
.score-ring circle { fill: none; stroke-width: 10; }
.score-ring .bg { stroke: var(--border); }
.score-ring .fg { stroke: var(--blue); stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.score-number { font-size: 2rem; font-weight: 800; color: var(--text-white); }
.score-label { font-size: 14px; color: var(--text-muted); }

/* ── Certificate ── */
.cert-wrapper {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  color: #1a1a2e;
}
.cert-header {
  background: linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%);
  padding: 40px 48px 36px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.cert-logo-name { font-size: 28px; font-weight: 900; letter-spacing: -.03em; }
.cert-logo-sub { font-size: 11px; opacity: .7; text-transform: uppercase; letter-spacing: .1em; margin-top: 2px; }
.cert-body { padding: 48px; }
.cert-subtitle { font-size: 13px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.cert-name { font-size: 2.8rem; font-weight: 800; color: #0f172a; line-height: 1.1; margin-bottom: 24px; }
.cert-course { font-size: 1.3rem; font-weight: 700; color: #1d4ed8; margin-bottom: 8px; }
.cert-divider { height: 1px; background: #e5e7eb; margin: 28px 0; }
.cert-meta-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 28px; }
.cert-meta-label { font-size: 11px; color: #9ca3af; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.cert-meta-value { font-size: 15px; font-weight: 600; color: #1f2937; }
.cert-footer {
  background: #f9fafb;
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e5e7eb;
  font-size: 12px;
  color: #9ca3af;
}
.cert-verify-link { color: #1d4ed8; font-weight: 600; }
.cert-passed { display: inline-flex; align-items: center; gap: 6px; background: #d1fae5; color: #065f46; padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 700; margin-bottom: 20px; }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; letter-spacing: .01em; }
.form-control {
  width: 100%;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-white);
  font-size: 15px;
  transition: border-color .2s;
  outline: none;
}
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.form-control::placeholder { color: var(--text-faint); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Alerts ── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); color: var(--green); }
.alert-error   { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.3);  color: var(--red); }
.alert-info    { background: rgba(59,130,246,.1);  border: 1px solid rgba(59,130,246,.3);  color: var(--blue-bright); }

/* ── Feature grid ── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .25s;
}
.feature-card:hover { border-color: var(--blue); }
.feature-icon { font-size: 28px; margin-bottom: 16px; }
.feature-title { font-size: 16px; font-weight: 700; color: var(--text-white); margin-bottom: 8px; }
.feature-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Dashboard ── */
.dash-grid { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.dash-sidebar {
  position: sticky;
  top: 80px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.dash-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: all .2s;
}
.dash-nav-item:last-child { border-bottom: none; }
.dash-nav-item:hover { color: var(--text-white); background: var(--bg-card2); }
.dash-nav-item.active { color: var(--blue-bright); background: rgba(59,130,246,.06); border-left: 2px solid var(--blue); }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); margin-top: 12px; max-width: 280px; }
.footer-col-title { font-size: 13px; font-weight: 700; color: var(--text-white); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .06em; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--text-white); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 13px; color: var(--text-faint); }
.footer-alpasana { font-size: 13px; color: var(--text-muted); }
.footer-alpasana span { color: var(--blue-bright); font-weight: 600; }

/* ── Utilities ── */
.text-center  { text-align: center; }
.text-muted   { color: var(--text-muted); }
.text-blue    { color: var(--blue-bright); }
.text-green   { color: var(--green); }
.text-white   { color: var(--text-white); }
.text-sm      { font-size: 14px; }
.text-xs      { font-size: 12px; }
.font-bold    { font-weight: 700; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.gap-4 { gap: 16px; }
.flex  { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }
.hidden { display: none; }

/* ── Rocket Loader ── */
.rocket-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(ellipse at center, rgba(15,22,35,.96), rgba(8,12,20,.98));
  backdrop-filter: blur(10px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  overflow: hidden;
}
.rocket-loader.active { display: flex; }
.rocket-scene { position: relative; width: 160px; height: 200px; }
.rocket-stars, .rocket-stars::before, .rocket-stars::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 2px; height: 18px;
  background: linear-gradient(transparent, rgba(96,165,250,.7), transparent);
  border-radius: 2px;
  animation: star-fall 0.7s linear infinite;
}
.rocket-stars { top: -20px; transform: translateX(-32px); }
.rocket-stars::before { transform: translateX(18px); height: 26px; animation-delay: .2s; }
.rocket-stars::after  { transform: translateX(40px); height: 14px; animation-delay: .45s; }
@keyframes star-fall {
  0% { top: -20px; opacity: 0; }
  20% { opacity: 1; }
  100% { top: 220px; opacity: 0; }
}
.rocket {
  position: absolute;
  left: 50%; bottom: 30px;
  transform: translateX(-50%);
  font-size: 64px;
  filter: drop-shadow(0 0 18px rgba(59,130,246,.55));
  animation: rocket-fly 1.5s ease-in-out infinite;
}
@keyframes rocket-fly {
  0%   { transform: translateX(-50%) translateY(8px) rotate(-3deg); }
  50%  { transform: translateX(-50%) translateY(-16px) rotate(3deg); }
  100% { transform: translateX(-50%) translateY(8px) rotate(-3deg); }
}
.rocket-flame {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  width: 16px; height: 34px;
  background: linear-gradient(180deg, #fbbf24, #f97316 55%, transparent);
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  filter: blur(2px);
  animation: flame-flicker 0.18s ease-in-out infinite alternate;
}
@keyframes flame-flicker {
  from { height: 28px; opacity: .8; }
  to   { height: 40px; opacity: 1; }
}
.rocket-textwrap { text-align: center; }
.rocket-text { color: var(--text-white); font-weight: 700; font-size: 18px; }
.rocket-sub { color: var(--text-muted); font-size: 14px; margin-top: 6px; }

/* ── Admin Panel ── */
.admin-body { background: var(--bg-dark); }
.admin-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.admin-nav { padding: 16px 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
}
.admin-nav-item:hover { background: var(--bg-card2); color: var(--text-white); }
.admin-nav-item.active { background: rgba(59,130,246,.12); color: var(--blue-bright); }
.admin-nav-icon { font-size: 16px; width: 20px; text-align: center; }
.admin-sidebar-footer { padding: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.admin-main { display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
  height: 72px;
  border-bottom: 1px solid var(--border);
  background: rgba(8,12,20,.85);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}
.admin-topbar-title { font-size: 18px; font-weight: 700; color: var(--text-white); }
.admin-topbar-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.admin-user { display: flex; align-items: center; gap: 12px; }
.admin-user-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 15px;
}
.admin-user-name { font-size: 14px; font-weight: 600; color: var(--text-white); }
.admin-user-role { font-size: 12px; color: var(--text-muted); }
.admin-content { padding: 32px; flex: 1; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }
.admin-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.admin-stat-icon { font-size: 22px; margin-bottom: 12px; }
.admin-stat-value { font-size: 1.8rem; font-weight: 800; color: var(--text-white); line-height: 1; }
.admin-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.admin-table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.admin-table-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-table-head h3 { font-size: 15px; margin: 0; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { padding: 13px 22px; text-align: left; color: var(--text-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 14px 22px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(59,130,246,.03); }
.admin-table .td-strong { color: var(--text-white); font-weight: 600; }
.admin-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.admin-badge-green { background: rgba(34,197,94,.12); color: var(--green); }
.admin-badge-red   { background: rgba(239,68,68,.12); color: var(--red); }
.admin-badge-amber { background: rgba(245,158,11,.12); color: var(--amber); }
.admin-empty { padding: 48px; text-align: center; color: var(--text-muted); }

@media (max-width: 800px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-sidebar-footer { flex-direction: row; border-top: none; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .kurs-grid { grid-template-columns: 1fr; }
  .lektion-container { grid-template-columns: 1fr; }
  .lektion-sidebar { position: static; }
  .dash-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cert-meta-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 28px 0 60px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cert-header { flex-direction: column; gap: 16px; }
  .cert-meta-grid { grid-template-columns: 1fr; }
  .container, .container-sm { padding: 0 18px; }
  .section { padding: 56px 0; }
  .section-sm { padding: 36px 0; }
  .hero-actions .btn { width: 100%; }
}

/* ── Zwei-Spalten-Layout (Kurs-/Lehrgangseite) ── */
.split-2col { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.col-sticky { position: sticky; top: 80px; }
@media (max-width: 900px) {
  .split-2col { grid-template-columns: 1fr; gap: 28px; }
  .col-sticky { position: static; }
}

/* ── Mobile-Navigation (Hamburger) ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 10px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--text-white); border-radius: 2px; transition: transform .25s, opacity .2s; }
.navbar.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-menu { display: contents; }

/* Untertitel im Logo bei wenig Platz ausblenden (kompaktere Nav) */
@media (max-width: 1400px) { .nav-logo-sub { display: none; } }

@media (max-width: 1280px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 56px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 16px 24px 22px;
  }
  .navbar.nav-open .nav-menu { display: flex; }
  .nav-menu .nav-links { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
  .nav-menu .nav-links a { padding: 12px 14px; font-size: 16px; }
  .nav-menu .nav-actions { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; border-top: 1px solid var(--border); padding-top: 14px; }
  .nav-menu .nav-actions .btn { width: 100%; }
  .nav-menu .nav-actions .text-sm { text-align: center; }
  /* Sprach-Dropdown + Theme-Toggle nicht strecken, sondern zentriert zeigen. */
  .nav-menu .nav-actions .lang-dd,
  .nav-menu .nav-actions .theme-toggle { align-self: center; }
  /* Im aufgeklappten Mobile-Menü das Dropdown nach links öffnen (Platz). */
  .nav-menu .nav-actions .lang-dd-menu { right: auto; left: 0; }
}

/* Modul-Video (16:9, responsiv) */
.video-wrap { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; background: #000; margin-bottom: 22px; border: 1px solid var(--border); }
.video-wrap iframe, .video-wrap video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.modul-video-label { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }

/* Didaktisches Lernbanner (motivierend, pro Modul/Kurs/Aufgabe, einheitlicher Stil) */
.lernbanner { position: relative; border-radius: 16px; overflow: hidden; color: #fff; padding: 24px 26px; margin-bottom: 24px; }
.lernbanner.cat-aibs, .lernbanner.cat-ki { background: linear-gradient(125deg, #0f1b2d 0%, #1c5fc6 72%, #0fa1e6 130%); }
.lernbanner.cat-kids { background: linear-gradient(125deg, #7a3d00 0%, #d97706 70%, #f59e0b 130%); }
.lernbanner-dots { position: absolute; right: -34px; top: -34px; width: 230px; height: 230px; opacity: .12; background: url(/assets/img/logo-white.svg) center/contain no-repeat; pointer-events: none; }
.lernbanner-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; position: relative; z-index: 2; }
.lernbanner-badge { display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 13px; }
.lernbanner-title { font-size: 1.45rem; font-weight: 800; line-height: 1.2; margin: 12px 0 6px; max-width: 600px; color: #fff; }
.lernbanner-desc { font-size: 13.5px; line-height: 1.55; opacity: .9; max-width: 600px; }
.lernbanner-icon { flex-shrink: 0; width: 70px; height: 70px; border-radius: 16px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; font-size: 36px; }
.lernbanner-goals-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .8; margin: 18px 0 10px; position: relative; z-index: 2; }
.lernbanner-goals { display: flex; flex-wrap: wrap; gap: 9px; position: relative; z-index: 2; }
.lernbanner-chip { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 10px; font-size: 12.5px; font-weight: 500; padding: 8px 13px; }
.lernbanner-chip .ck { width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.92); color: #1c5fc6; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lernbanner.cat-kids .lernbanner-chip .ck { color: #d97706; }
@media (max-width: 640px) {
  .lernbanner-row { flex-direction: column; }
  .lernbanner-icon { width: 54px; height: 54px; font-size: 28px; }
}

/* ───────────── Interaktive Lernformate (lernformate.js) ───────────── */
.lb { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; margin: 22px 0; }
.lb-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-bright); margin-bottom: 8px; }
.lb-title { font-size: 1.1rem; font-weight: 700; color: var(--text-white); margin-bottom: 6px; }
.lb-prompt { font-size: 14.5px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.6; }
.lb-check { margin-top: 14px; }
.lb-hint { font-size: 12.5px; color: var(--text-faint); margin-top: 10px; }
.lb-feedback { margin-top: 14px; padding: 11px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.lb-feedback.ok  { background: rgba(34,197,94,.12); color: var(--green); border: 1px solid rgba(34,197,94,.3); }
.lb-feedback.bad { background: rgba(239,68,68,.10); color: var(--red); border: 1px solid rgba(239,68,68,.3); }

/* Szenario */
.lb-sz-text { font-size: 15px; color: var(--text-white); line-height: 1.65; margin-bottom: 14px; }
.lb-opt { display: block; width: 100%; text-align: left; background: var(--bg-card2); border: 1px solid var(--border); color: var(--text-white); padding: 12px 15px; border-radius: 10px; margin-bottom: 9px; cursor: pointer; font-size: 14.5px; transition: border-color .15s, background .15s; }
.lb-opt:hover:not(:disabled) { border-color: var(--blue); background: rgba(59,130,246,.08); }
.lb-opt:disabled { opacity: .55; cursor: default; }
.lb-sz-feedback { font-size: 14px; color: var(--text-muted); background: rgba(59,130,246,.08); border-left: 3px solid var(--blue); padding: 10px 13px; border-radius: 8px; margin: 10px 0 12px; }
.lb-sz-ende { font-size: 14.5px; padding: 13px 15px; border-radius: 10px; margin-bottom: 14px; line-height: 1.6; }
.lb-sz-ende.ok  { background: rgba(34,197,94,.12); color: var(--green); }
.lb-sz-ende.mid { background: rgba(245,158,11,.12); color: var(--amber); }
.lb-sz-ende.bad { background: rgba(239,68,68,.10); color: var(--red); }

/* Prompt-Baukasten */
.lb-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.lb-chip { background: var(--bg-card2); border: 1px solid var(--border); color: var(--text-white); padding: 9px 14px; border-radius: 100px; cursor: pointer; font-size: 13.5px; transition: all .15s; }
.lb-chip:hover { border-color: var(--blue); }
.lb-chip.sel { background: rgba(59,130,246,.16); border-color: var(--blue); color: var(--blue-bright); }
.lb-chip.correct { background: rgba(34,197,94,.16); border-color: var(--green); color: var(--green); }
.lb-chip.wrong { background: rgba(239,68,68,.14); border-color: var(--red); color: var(--red); text-decoration: line-through; }
.lb-chip.miss { border-style: dashed; border-color: var(--green); color: var(--green); }

/* Zuordnung */
.lb-zu-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; margin-bottom: 8px; border: 1px solid transparent; }
.lb-zu-left { font-weight: 600; color: var(--text-white); font-size: 14.5px; }
.lb-zu-row.correct { border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.07); }
.lb-zu-row.wrong { border-color: rgba(239,68,68,.4); background: rgba(239,68,68,.06); }

/* Sortieren */
.lb-sort-row { display: flex; align-items: center; gap: 12px; background: var(--bg-card2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.lb-sort-num { color: var(--text-faint); font-weight: 700; width: 26px; }
.lb-sort-txt { flex: 1; color: var(--text-white); font-size: 14.5px; }
.lb-sort-ctrl { display: flex; gap: 5px; }
.lb-arrow { width: 30px; height: 30px; border-radius: 7px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-white); cursor: pointer; }
.lb-arrow:disabled { opacity: .35; cursor: default; }
.lb-sort-row.correct { border-color: rgba(34,197,94,.45); }
.lb-sort-row.wrong { border-color: rgba(239,68,68,.4); }

/* Lückentext */
.lb-cloze { font-size: 15px; line-height: 2.1; color: var(--text-white); }
.lb-gap { display: inline-block; width: 130px; padding: 5px 9px; margin: 0 3px; font-size: 14px; }
.lb-gap.correct { border-color: var(--green); color: var(--green); }
.lb-gap.wrong { border-color: var(--red); color: var(--red); }

/* Finde den Fehler */
.lb-code { background: #0f1b2d; border-radius: 10px; padding: 8px 0; font-family: monospace; overflow-x: auto; }
.lb-code-line { display: flex; gap: 12px; padding: 3px 14px; cursor: pointer; white-space: pre; }
.lb-code-line:hover { background: rgba(255,255,255,.05); }
.lb-code-no { color: #64748b; user-select: none; min-width: 20px; text-align: right; }
.lb-code-txt { color: #e2e8f0; }
.lb-code-line.marked { background: rgba(59,130,246,.2); }
.lb-code-line.istfehler { background: rgba(34,197,94,.2); }

/* Karteikarten */
.lb-card { perspective: 1000px; height: 150px; cursor: pointer; margin-bottom: 12px; }
.lb-card-inner { position: relative; width: 100%; height: 100%; transition: transform .5s; transform-style: preserve-3d; }
.lb-card.flipped .lb-card-inner { transform: rotateY(180deg); }
.lb-card-front, .lb-card-back { position: absolute; inset: 0; backface-visibility: hidden; display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px; border-radius: 12px; border: 1px solid var(--border); font-size: 15px; }
.lb-card-front { background: var(--bg-card2); color: var(--text-white); font-weight: 600; }
.lb-card-back { background: linear-gradient(135deg, rgba(59,130,246,.16), rgba(8,178,212,.12)); color: var(--text-white); transform: rotateY(180deg); }
.lb-card-nav { display: flex; align-items: center; justify-content: center; gap: 16px; }
.lb-card-count { font-size: 13px; color: var(--text-muted); min-width: 56px; text-align: center; }

@media (max-width: 600px) {
  .lb-zu-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ── KI-Lernformate (Prompt-Challenge, Rollenspiel, Dokument) ── */
.lb-ta { width: 100%; margin-bottom: 10px; font-family: inherit; }
.lb-ki-out { margin-top: 14px; }
.lb-ki-txt { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-top: 10px; }
.lb-loading { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 14px; padding: 8px 0; }
.lb-spin { width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--blue-bright); border-radius: 50%; display: inline-block; animation: lb-spin .7s linear infinite; }
@keyframes lb-spin { to { transform: rotate(360deg); } }
.lb-score { display: flex; align-items: center; gap: 12px; margin: 6px 0 12px; }
.lb-score-bar { flex: 1; height: 10px; background: var(--bg-card2); border-radius: 100px; overflow: hidden; }
.lb-score-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 100px; }
.lb-score-num { font-weight: 800; color: var(--text-white); font-size: 15px; min-width: 64px; text-align: right; }
.lb-list-t { font-weight: 700; color: var(--text-white); font-size: 13.5px; margin: 12px 0 4px; }
.lb-list { margin: 0 0 6px; padding-left: 20px; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.lb-chat { display: flex; flex-direction: column; gap: 9px; max-height: 360px; overflow-y: auto; padding: 6px; margin-bottom: 12px; }
.lb-bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.lb-bubble.ki { background: var(--bg-card2); border: 1px solid var(--border); color: var(--text-white); align-self: flex-start; border-bottom-left-radius: 4px; }
.lb-bubble.user { background: rgba(59,130,246,.18); border: 1px solid rgba(59,130,246,.35); color: var(--text-white); align-self: flex-end; border-bottom-right-radius: 4px; }
.lb-chat-input { display: flex; gap: 8px; }
.lb-chat-input input { flex: 1; }
.lb-file { padding: 9px; }

/* ── KI-Geschenk (Wissens-Schatz für Kinder) ── */
.lb-geschenk { background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(168,85,247,.12)); border: 2px solid rgba(245,158,11,.4); border-radius: 16px; padding: 22px 24px; }
.lb-geschenk-badge { display: inline-block; background: var(--amber); color: #1a1205; font-weight: 800; font-size: 12px; letter-spacing: .04em; padding: 5px 13px; border-radius: 100px; margin-bottom: 12px; }
.lb-geschenk-titel { color: var(--text-white); font-size: 1.4rem; margin: 0 0 10px; }
.lb-geschenk p { color: var(--text-white); line-height: 1.65; }
.lb-geschenk-box { background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; margin-top: 12px; color: var(--text-white); font-size: 14.5px; line-height: 1.6; }
.lb-geschenk-schluss { font-weight: 600; color: var(--amber); margin-top: 14px; }

/* Druck: nur den Wissens-Schatz drucken (Keepsake) */
@media print {
  body * { visibility: hidden !important; }
  .lb-geschenk, .lb-geschenk * { visibility: visible !important; }
  .lb-geschenk { position: absolute; top: 0; left: 0; right: 0; border-color: #d97706; background: #fff; color: #1a1205; }
  .lb-geschenk-titel, .lb-geschenk p, .lb-geschenk-box { color: #1a1205 !important; }
  .lb-geschenk-box { background: #faf5e6 !important; }
}

/* ── Sofort-Suche (Kurs-Live-Filter) ───────────────────────────────── */
.kurs-suche-wrap { max-width: 560px; margin: 0 auto 24px; }
.kurs-suche {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card, #0f1623); border: 1px solid var(--border, #1e2d45);
  border-radius: 100px; padding: 4px 8px 4px 16px; transition: border-color .2s, box-shadow .2s;
}
.kurs-suche:focus-within { border-color: var(--blue, #3b82f6); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.kurs-suche-icon { font-size: 16px; opacity: .8; flex-shrink: 0; }
.kurs-suche-input {
  flex: 1; background: none; border: 0; outline: none; color: var(--text-white, #f0f4ff);
  font-size: 15px; font-family: inherit; padding: 11px 0;
}
.kurs-suche-input::placeholder { color: var(--text-faint, #5b6b85); }
.kurs-suche-input::-webkit-search-cancel-button { display: none; }
.kurs-suche-clear {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--bg-card2, #161e2e); color: var(--text-muted, #8899bb); font-size: 18px; line-height: 1;
}
.kurs-suche-clear:hover { color: var(--text-white, #f0f4ff); }
.kurs-suche-info { text-align: center; font-size: 13px; color: var(--text-muted, #8899bb); margin-top: 10px; min-height: 18px; }
.kurs-suche-empty {
  text-align: center; color: var(--text-muted, #8899bb); font-size: 15px;
  padding: 40px 0; line-height: 1.6;
}
.kurs-suche-reset {
  background: none; border: 0; color: var(--blue-bright, #60a5fa); font: inherit; cursor: pointer; text-decoration: underline; padding: 0;
}

/* ── Assessment-Vorschau (anonymer Beispiel-Bericht, login.php u.a.) ── */
.apv { display: flex; flex-direction: column; gap: 16px; }
.apv-eyebrow { font-size: 1.2rem; font-weight: 800; color: var(--text-white); line-height: 1.25; }
.apv-time { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.apv-doc { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 12px 34px rgba(0,0,0,.20); padding: 16px 16px 18px; }
.apv-doc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid #eef2f7; padding-bottom: 10px; margin-bottom: 12px; }
.apv-doc-title { font-size: 13px; font-weight: 800; color: #0f172a; letter-spacing: -.01em; }
.apv-badge { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #92400e; background: #fef3c7; border: 1px solid #fde68a; border-radius: 999px; padding: 3px 9px; }
.apv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; align-items: start; }
.apv-block-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #64748b; margin-bottom: 8px; }
.apv-svg svg { width: 100%; height: auto; display: block; }
.apv-svg-compass { max-width: 340px; margin: 0 auto; }
.apv-compass { margin-top: 14px; padding-top: 14px; border-top: 1px solid #eef2f7; }
.apv-role { margin-bottom: 12px; }
.apv-role-top { display: flex; align-items: baseline; gap: 8px; }
.apv-rank { font-size: 12px; font-weight: 800; color: #94a3b8; }
.apv-role-name { flex: 1; font-size: 13px; font-weight: 700; color: #0f172a; }
.apv-fit { font-size: 15px; font-weight: 800; }
.apv-bar { height: 8px; background: #eef2f7; border-radius: 5px; overflow: hidden; margin: 5px 0 3px; }
.apv-bar span { display: block; height: 100%; border-radius: 5px; }
.apv-mastery { font-size: 11.5px; color: #64748b; }
.apv-bullets { list-style: none; display: grid; gap: 9px; padding: 0; margin: 2px 0 0; }
.apv-bullets li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--text-muted); }
.apv-check { flex-shrink: 0; color: var(--green); font-weight: 800; }

/* Login als zwei Spalten: Vorschau + Formular */
.login-wrap { display: flex; gap: 40px; max-width: 1000px; margin: 0 auto; padding: 0 24px; align-items: flex-start; }
.login-preview-col { order: 1; flex: 1 1 460px; min-width: 0; position: sticky; top: 84px; }
.login-form-col { order: 2; flex: 0 0 420px; max-width: 420px; width: 100%; }
@media (max-width: 920px) {
  .login-wrap { flex-direction: column; gap: 28px; max-width: 460px; }
  .login-preview-col { order: 2; position: static; width: 100%; flex-basis: auto; }
  .login-form-col { order: 1; flex-basis: auto; max-width: none; }
}

/* ── Herkunft/Kompetenz-Storytelling (Startseite, Über-uns, Footer) ── */
.origin-band { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.origin-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.origin-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-card2); font-size: 13px; font-weight: 600; color: var(--text-white); }
.origin-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-bright); flex-shrink: 0; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 4px; }
.pillar { background: var(--bg-card2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.pillar-t { font-weight: 700; color: var(--text-white); font-size: 14px; margin-bottom: 4px; }
.pillar-d { color: var(--text-muted); font-size: 13px; line-height: 1.55; }
.footer-origin { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12.5px; line-height: 1.6; color: var(--text-muted); }

/* Dezente Herkunfts-/Kompetenz-Zeile (Assessment, Lehrgang, Kurs) */
.trust-line { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 1.4; color: var(--text-muted); border: 1px solid var(--border); background: var(--bg-card2); border-radius: 999px; padding: 6px 13px; }
.trust-line::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-bright); flex-shrink: 0; }
