:root {
  --ink: #0f172a;
  --muted: #6b7280;
  --paper: #f3f4f6;
  --white: #ffffff;
  --line: #e5e7eb;
  --line-soft: #f3f4f6;
  --blue: #3b82f6;
  --blue-strong: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --blue-muted: #dbeafe;
  --cyan: #06b6d4;
  --ok: #16a34a;
  --bad: #dc2626;
  --zalo: #0068ff;
  --footer: #0b1220;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);
  --focus: 0 0 0 3px rgba(59, 130, 246, 0.25);
  --font: "IBM Plex Sans", "Be Vietnam Pro", "Inter", "Segoe UI", system-ui, sans-serif;
  --display: "IBM Plex Sans", "Be Vietnam Pro", sans-serif;
}

* { box-sizing: border-box; }
html {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  min-height: 100vh;
}
a { color: var(--blue-strong); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img, video, canvas, iframe, audio {
  max-width: 100%;
  height: auto;
}
svg {
  max-width: 100%;
}
/* Progress-Ringe: feste Box, nicht durch height:auto verzerren */
svg.mycourse-ring-svg,
svg.dash-ring-svg,
.mycourse-ring-svg,
.dash-ring-svg {
  max-width: none;
  height: auto;
}
pre, code {
  max-width: 100%;
  overflow-x: auto;
}
table { max-width: 100%; }
.table-wrap,
.jobs-table-wrap,
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.app-shell,
.app-main,
.school-wrap,
.school-main,
.section,
.dash,
.hero,
.hero-inner,
.kurs-section-inner,
.prog-section-inner,
.footer-grid,
.card,
.dash-hero,
.dash-panel {
  min-width: 0;
  max-width: 100%;
}
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.topbar {
  padding: 12px 20px 0;
  background: transparent;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 16px;
  min-height: 4.5rem;
}
.brand, .brand-side {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}
.brand img, .logo-img { height: 52px; width: auto; }
.brand-side img { height: 44px; width: auto; }
.brand span, .brand-side span { color: var(--ink); }
.brand em, .brand-side em {
  font-style: normal;
  color: var(--blue-strong);
  font-weight: 600;
}
.top-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.top-nav > a:not(.btn) {
  color: #4b5563;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
}
.top-nav > a:not(.btn):hover {
  background: var(--blue-soft);
  color: var(--blue-strong);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}
.mobile-drawer:not([hidden]) { pointer-events: auto; }
.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.22s ease;
}
.mobile-drawer.is-open .mobile-drawer-panel { transform: translateX(0); }
.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.mobile-drawer-panel > a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 600;
}
.mobile-drawer-panel > a:hover { background: var(--blue-soft); color: var(--blue-strong); }
.mobile-drawer-panel > a.btn { text-align: center; margin-top: 8px; }
.mobile-drawer-panel .lnav-home,
.mobile-drawer-panel .lnav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.mobile-drawer-panel .lnav-home:hover,
.mobile-drawer-panel .lnav-link:hover,
.mobile-drawer-panel .lnav-home.is-on,
.mobile-drawer-panel .lnav-link.is-on {
  background: var(--blue-soft);
  color: var(--blue-strong);
}
.mobile-drawer-panel .lnav-group {
  margin: 4px 0;
  border: 0;
}
.mobile-drawer-panel .lnav-group > summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
}
.mobile-drawer-panel .lnav-group > summary::-webkit-details-marker { display: none; }
.mobile-drawer-panel .lnav-body { padding: 0 0 6px 8px; }
body.nav-open { overflow: hidden; }
.lang-switch {
  --lang-pad: 3px;
  --lang-radius: 999px;
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 2px;
  margin: 0;
  padding: var(--lang-pad);
  max-width: 100%;
  background: linear-gradient(180deg, #eef2f7, #e2e8f0);
  border: 1px solid #dbe3ee;
  border-radius: var(--lang-radius);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
  isolation: isolate;
}
.lang-switch-track { display: none; }
.lang-switch-thumb { display: none; }
.lang-switch-opt {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 10px;
  border-radius: calc(var(--lang-radius) - 2px);
  text-decoration: none;
  color: #64748b;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.01em;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.lang-switch-opt:hover { color: #0f172a; background: rgba(255,255,255,0.45); }
.lang-switch-opt.is-on {
  color: #0f172a;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.14),
    0 1px 0 rgba(255,255,255,0.95) inset;
}
.lang-switch-meta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  gap: 1px;
}
.lang-switch-code {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.lang-switch-label {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  max-width: 72px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lang-switch-opt.is-on .lang-switch-label { color: #475569; }
.lang-switch .flag-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  background: #94a3b8;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 -1px 3px rgba(15, 23, 42, 0.2) inset,
    0 2px 5px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(15, 23, 42, 0.1);
}
.lang-switch .flag-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 30% 24%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.12) 40%, transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 45%, rgba(0, 0, 0, 0.1) 100%);
}
.lang-switch .flag-dot svg {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Kompakt im Header: Dropdown mit allen Sprachen */
.lang-switch-menu {
  display: inline-block;
  padding: 2px;
  min-width: 0;
  z-index: 40;
}
.lang-switch-menu > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #0f172a;
}
.lang-switch-menu > summary::-webkit-details-marker { display: none; }
.lang-switch-menu > summary::marker { content: ""; }
.lang-switch-menu[open] > summary {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}
.lang-switch-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
  max-height: min(70vh, 420px);
  overflow: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}
.lang-switch-menu-panel .lang-switch-opt {
  justify-content: flex-start;
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
}
.lang-switch-menu-panel .lang-switch-label {
  display: block;
  max-width: none;
  font-size: 11px;
}
html[dir="rtl"] .lang-switch-menu-panel { right: auto; left: 0; }

.lang-switch-toggle {
  min-width: 0;
}
.lang-switch-toggle .lang-switch-label { display: none; }
.lang-switch-toggle .lang-switch-opt { gap: 6px; padding: 5px 8px; }

/* Sidebar / Foot: volle Breite */
.lang-switch-rail {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
  border-radius: 16px;
}
.lang-switch-rail .lang-switch-thumb {
  border-radius: 12px;
}
.lang-switch-rail .lang-switch-opt {
  min-height: 42px;
  justify-content: flex-start;
  padding: 8px 12px;
  gap: 10px;
  flex: 1 1 auto;
}
.lang-switch-rail .lang-switch-label {
  display: block;
  max-width: none;
  font-size: 11px;
}
.lang-switch-rail .flag-dot {
  width: 26px;
  height: 26px;
}
.lang-switch-rail.lang-switch-n10 .lang-switch-opt,
.lang-switch-rail.lang-switch-n9 .lang-switch-opt,
.lang-switch-rail.lang-switch-n8 .lang-switch-opt,
.lang-switch-rail.lang-switch-n7 .lang-switch-opt,
.lang-switch-rail.lang-switch-n6 .lang-switch-opt,
.lang-switch-rail.lang-switch-n5 .lang-switch-opt {
  flex: 1 1 calc(50% - 2px);
  min-height: 38px;
  padding: 6px 8px;
}

/* Mobile Drawer: große Kacheln */
.lang-switch-sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  border-radius: 18px;
  padding: 4px;
}
.lang-switch-sheet .lang-switch-thumb { border-radius: 14px; }
.lang-switch-sheet .lang-switch-opt {
  min-height: 52px;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 14px;
  font-size: 13px;
}
.lang-switch-sheet .lang-switch-label {
  display: block;
  max-width: none;
  font-size: 12px;
}
.lang-switch-sheet .flag-dot {
  width: 30px;
  height: 30px;
}

.school-lang-side-label,
.mobile-drawer-lang .school-lang-side-label,
.side-foot .school-lang-side-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}
.lang-switch-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 1px 2px rgba(15,23,42,0.04);
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: #0f172a;
}
.lang-switch-trigger:hover {
  border-color: #facc15;
  background: #fffbeb;
}
.lang-switch-trigger .flag-dot {
  width: 28px;
  height: 28px;
}
.lang-switch-trigger-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.lang-switch-trigger-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}
.lang-switch-trigger-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lang-switch-trigger-code {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 4px 8px;
  flex-shrink: 0;
}
.lang-modal {
  z-index: 120;
}
.school-modal.lang-modal {
  z-index: 140;
}
.lang-modal-box {
  width: min(440px, 92vw);
  padding: 22px 22px 18px;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
}
.lang-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.lang-modal-kicker {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}
.lang-modal-head h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #0f172a;
}
.lang-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
}
.lang-modal-close:hover { background: #e2e8f0; }
.school-lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}
.school-lang-grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 14px;
  text-decoration: none;
  color: #0f172a;
  background: #fff;
}
.school-lang-grid a span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.school-lang-grid a strong {
  font-size: 13px;
  font-weight: 700;
}
.school-lang-grid a em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #94a3b8;
}
.school-lang-grid a:hover {
  border-color: #facc15;
  background: #fffbeb;
}
.school-lang-grid a.is-on {
  border: 2px solid #eab308;
  background: #fefce8;
}
body.lang-modal-open { overflow: hidden; }
@media (max-width: 720px) {
  .school-modal.lang-modal.is-open {
    align-items: flex-end;
  }
  .lang-modal .lang-modal-box {
    width: 100%;
    max-width: none;
    border-radius: 22px 22px 0 0;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    max-height: min(88vh, 720px);
    overflow: auto;
  }
  .lang-modal .school-lang-grid {
    grid-template-columns: 1fr 1fr;
  }
  .lang-modal .school-lang-grid a {
    min-height: 52px;
  }
}
@media (max-width: 420px) {
  .school-lang-grid { grid-template-columns: 1fr; }
}
.school-header-sep {
  width: 1px;
  height: 28px;
  background: #e5e7eb;
  flex-shrink: 0;
}
.school-drawer-lang {
  padding: 16px 18px 22px;
  border-top: 1px solid #e8eef5;
  margin-top: auto;
}
@media (prefers-reduced-motion: reduce) {
  .lang-switch-thumb { transition: none; }
}

.btn, button.btn, input.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue-strong);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.22);
}
.btn:hover { background: var(--blue-dark); color: white; }
.btn-ghost {
  background: transparent;
  color: var(--blue-strong);
  border: 1px solid var(--blue-muted);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--blue-soft); color: var(--blue-dark); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-dark { background: var(--ink); box-shadow: none; }
.btn-wa { background: var(--ok); box-shadow: none; }
.btn-zalo { background: var(--zalo); box-shadow: none; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  padding: 48px 8vw 40px;
  align-items: center;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--blue-strong);
  font-weight: 700;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 10px 0 16px; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 42rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 10px; }
.hero-card, .card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.hero-card ol { margin: 0; padding-left: 18px; }
.hero-card li { margin: 10px 0; }
.card h3 { margin-top: 0; }

.section { padding: 28px 8vw 64px; }
.section h2 { font-size: 1.85rem; }
.grid-2, .grid-3, .grid-4, .mod-grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.mod-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.meta { color: var(--muted); font-size: 0.92rem; }
.badge {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--blue-strong);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-clay { background: #ecfeff; color: #0e7490; }
.badge-ok { background: #dcfce7; color: #166534; }
.badge-next { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* —— Curriculum / Lehrpläne —— */
.curr-ico {
  width: 22px;
  height: 22px;
  display: block;
}
.curr-back {
  display: inline-block;
  margin-bottom: 14px;
}
.curr-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  background:
    radial-gradient(1200px 280px at 0% 0%, rgba(59, 130, 246, 0.12), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px 26px;
  margin-bottom: 28px;
  animation: curr-fade-up .45s ease both;
}
.curr-hero-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #1e3a5f;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.curr-hero-mark .curr-ico { width: 26px; height: 26px; }
.curr-hero-copy h1 { margin: 4px 0 10px; font-size: clamp(1.55rem, 2.4vw, 2rem); }
.curr-hero-copy .lead { margin: 0 0 14px; max-width: 62ch; color: #475569; }
.curr-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 550;
}
.curr-progress {
  height: 8px;
  background: var(--blue-muted);
  border-radius: 99px;
  overflow: hidden;
  max-width: 420px;
}
.curr-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue-strong), #06b6d4);
  border-radius: inherit;
  transition: width .5s ease;
}
.curr-progress-sm { max-width: none; margin: 12px 0 8px; height: 6px; }
.curr-hero-cta { margin: 16px 0 0; }

.curr-path-title {
  font-size: 1.05rem;
  margin: 0 0 12px;
  color: #1e3a5f;
}
.curr-lesson-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: none;
}
.curr-lesson {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  color: inherit;
  box-shadow: var(--shadow);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  animation: curr-fade-up .4s ease both;
}
.curr-lesson:nth-child(1) { animation-delay: .02s; }
.curr-lesson:nth-child(2) { animation-delay: .05s; }
.curr-lesson:nth-child(3) { animation-delay: .08s; }
.curr-lesson:nth-child(4) { animation-delay: .11s; }
.curr-lesson:nth-child(5) { animation-delay: .14s; }
.curr-lesson:hover {
  border-color: #93c5fd;
  transform: translateY(-1px);
  color: inherit;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.08);
}
.curr-lesson.is-done { border-color: #bbf7d0; background: linear-gradient(180deg, #fff, #f0fdf4); }
.curr-lesson.is-next { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12); }
.curr-lesson-num {
  width: 36px;
  height: 36px;
  border-radius: 99px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
}
.curr-lesson.is-done .curr-lesson-num {
  background: #dcfce7;
  color: #166534;
}
.curr-lesson.is-next .curr-lesson-num {
  background: #1e3a5f;
  color: #fff;
}
.curr-lesson-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.curr-lesson-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 2px; }
.curr-lesson-title { font-size: 1.05rem; letter-spacing: -0.01em; }
.curr-lesson-kann {
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.curr-lesson-go {
  align-self: center;
  color: #94a3b8;
  font-size: 1.1rem;
  transition: transform .18s ease, color .18s ease;
}
.curr-lesson:hover .curr-lesson-go { color: var(--blue-strong); transform: translateX(3px); }

.curr-mod-grid { gap: 16px; }
.curr-mod-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .18s ease, transform .18s ease;
}
.curr-mod-card-link { color: inherit; }
.curr-mod-card-link:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  color: inherit;
}
.curr-mod-card.is-locked { opacity: 0.72; }
.curr-mod-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.curr-mod-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #eff6ff, #e0f2fe);
  color: #1e3a5f;
  display: grid;
  place-items: center;
}
.curr-mod-ico.is-3d {
  width: 52px;
  height: 52px;
  background: transparent;
  border-radius: 0;
}
.curr-mod-ico.is-3d img,
.curr-mod-ico .curr-ico-3d {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(30, 58, 95, 0.12));
}
.curr-hero-mark.is-3d {
  background: transparent;
  box-shadow: none;
  width: auto;
  height: auto;
  padding: 0;
}
.curr-hero-mark.is-3d img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(30, 58, 95, 0.14));
}
.curr-mod-card h3 { margin: 0; font-size: 1.08rem; }
.curr-mod-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.curr-lesson-page .lesson-head {
  margin-bottom: 18px;
  animation: curr-fade-up .4s ease both;
}
.curr-path-mini {
  height: 4px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 14px;
  max-width: 220px;
}
.curr-path-mini span {
  display: block;
  height: 100%;
  background: var(--blue-strong);
  border-radius: inherit;
}
.lesson-kann {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  border: 1px solid #e2e8f0;
}
.lesson-kann-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #1e3a5f;
  margin-bottom: 4px;
}
.lesson-kann p { margin: 0; max-width: none; }
.lesson-kann .meta { margin-top: 8px; }
.lesson-prose, .lesson-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  line-height: 1.65;
}
.lesson-prose h2, .lesson-prose h3,
.lesson-content h2, .lesson-content h3 { color: #1e3a5f; }
.lesson-panel {
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  animation: curr-fade-up .45s ease both;
}
.lesson-panel h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: #1e3a5f;
}
.lesson-details { margin-top: 10px; }
.lesson-details summary { cursor: pointer; font-weight: 600; color: #1e3a5f; }
.vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.vocab-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vocab-card strong { color: #0f172a; }
.vocab-card span { color: #334155; font-size: 0.94rem; }
.vocab-card em { color: var(--muted); font-size: 0.86rem; font-style: normal; }
.phrase-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phrase-list li {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  max-width: none;
}
.phrase-list strong { color: #0f172a; }
.phrase-list span { color: #64748b; font-size: 0.92rem; }
.lesson-complete { margin-top: 18px; }
.lesson-complete-hint { margin-top: 18px; }
.lesson-nav {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.curr-ai {
  background: linear-gradient(165deg, #0f172a 0%, #1e3a5f 100%);
  border: 1px solid rgba(255,255,255,.06);
}
.curr-ai .kicker { color: #93c5fd; }
.curr-ai-link a { color: #bfdbfe; font-weight: 600; }
.curr-ai-kann {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.curr-studio-empty {
  text-align: center;
  padding: 48px 28px;
}
.curr-studio-empty-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: #eff6ff;
  color: #1e3a5f;
  display: grid;
  place-items: center;
}
@keyframes curr-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 720px) {
  .curr-hero { grid-template-columns: 1fr; padding: 18px; }
  .curr-lesson { grid-template-columns: auto 1fr; }
  .curr-lesson-go { display: none; }
}

.site-footer {
  background: linear-gradient(135deg, #0f172a 0%, #0b1220 55%, #0f172a 100%);
  color: #bfdbfe;
  padding: 48px 8vw 28px;
  margin-top: 24px;
}
.site-footer a { color: #bfdbfe; }
.site-footer a:hover { color: #fff; }
.site-footer strong, .site-footer h4 { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 32px;
}
.footer-logo { height: 56px; width: auto; margin-bottom: 12px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #93c5fd;
}
.footer-contact p { margin: 6px 0; }

.app-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar {
  background: #fff;
  color: var(--ink);
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
  color: #4b5563;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 500;
}
.side-nav a:hover, .side-nav a.is-on {
  background: var(--blue-soft);
  color: var(--blue-strong);
}
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.side-foot a { color: #4b5563; }
.side-foot .lang-switch { margin-bottom: 4px; }
.app-main {
  padding: 32px clamp(14px, 3vw, 36px) 64px;
  width: 100%;
  min-width: 0;
  overflow-x: clip;
}

.flash-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.flash { padding: 12px 14px; border-radius: 12px; }
.flash-success { background: #dcfce7; color: var(--ok); }
.flash-error { background: #fee2e2; color: var(--bad); }

.auth-wrap {
  max-width: 460px;
  margin: 36px auto 80px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 32px;
}
label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 0.92rem; }
input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}
input[type="radio"],
input[type="checkbox"] {
  width: auto;
  min-width: 1.1rem;
  height: auto;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  flex-shrink: 0;
  accent-color: #1e3a5f;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--focus);
}
textarea { min-height: 120px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

.progress-bar {
  height: 10px;
  background: var(--blue-muted);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: var(--blue-strong);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 14px;
  margin: 20px 0 28px;
}
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 1.6rem; }

.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
.lesson-body h3 { margin-top: 1.4em; }
.lesson-body p, .lesson-body li { max-width: 62ch; }
.vocab-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.vocab-table th, .vocab-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.exercise {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 16px;
  margin: 14px 0;
  background: #fff;
}
.choice { display: flex; flex-direction: column; gap: 8px; }
.choice label { font-weight: 500; display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.match-list { display: grid; gap: 10px; }
.match-list select { margin-top: 4px; }
.sticky-ai {
  position: sticky;
  top: 20px;
  background: var(--ink);
  color: #e2e8f0;
  border-radius: 20px;
  padding: 18px;
}
.sticky-ai a, .sticky-ai p { color: #cbd5e1; }
.sticky-ai textarea, .sticky-ai input, .sticky-ai select {
  background: rgba(255,255,255,.08);
  color: #f8fafc;
  border-color: rgba(255,255,255,.18);
}
.sticky-ai .chat { max-height: 220px; }
.ai-draft-form .form-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.ai-draft-form input { flex: 1; min-width: 180px; }
.ai-draft-form button { flex: 0 0 auto; width: auto; }
.ai-assist-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
}
.ai-assist-bar-form {
  margin: 0 0 14px;
  padding: 8px 10px;
  background: var(--blue-soft);
  border-radius: var(--radius-sm);
}
.ai-assist-bar.is-busy { opacity: 0.72; }
.ai-assist-btn { width: auto; padding: 4px 10px; font-size: 0.8rem; }
.ai-assist-status { min-height: 1.2em; }
.ai-assist-status.is-ok { color: var(--ok); }
.ai-assist-status.is-err { color: var(--bad); }
label.ai-assist-pair { display: flex; flex-direction: column; gap: 6px; }

.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  margin: 12px 0;
}
.bubble { padding: 10px 12px; border-radius: 14px; max-width: 92%; }
.bubble-user { align-self: flex-end; background: var(--blue-strong); color: white; }
.bubble-ai { align-self: flex-start; background: #e2e8f0; color: var(--ink); }

.table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 16px; overflow: hidden; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.94rem; }

.install { max-width: 760px; }
.install-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.install-steps li {
  padding: 6px 12px;
  border-radius: 999px;
  background: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 600;
}
.install-steps li.is-active { background: var(--blue-strong); color: #fff; }
.install-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.install-panel h2 { font-size: 1.05rem; margin: 0 0 14px; }
.install-checks { list-style: none; padding: 0; margin: 0; }
.install-checks li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 4px 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.install-checks li:last-child { border-bottom: none; }
.install-checks li span { font-weight: 700; }
.install-checks li.ok span { color: #166534; }
.install-checks li.fail span { color: #b91c1c; }
.install-checks li em { grid-column: 2; color: var(--muted); font-style: normal; font-size: 0.86rem; }
.install-form .btn-secondary {
  background: #e2e8f0;
  color: var(--ink);
  border: 1px solid var(--line);
}
.zoom-box {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.countdown { font-size: 2rem; font-weight: 700; color: var(--blue-strong); }
.legal-content h2 { font-size: 1.15rem; margin-top: 1.6em; }
.legal-content a { font-weight: 600; }
.bank-box { border-left: 4px solid var(--blue-strong); }
.card.is-locked { opacity: 0.72; }
.card-link { display: block; color: inherit; }
.card-link:hover { border-color: var(--blue-muted); color: inherit; }
.trust-line {
  font-size: 0.92rem;
  color: var(--blue-dark);
  font-weight: 600;
  margin: 0 0 8px;
}
.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 0 8vw 12px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stats-band b { display: block; font-size: 1.45rem; color: var(--blue-strong); }
.stats-band span { color: var(--muted); font-size: 0.88rem; }
.section-soft { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: start; }
.check-list { margin: 12px 0 0; padding: 0; list-style: none; }
.check-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid var(--line-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 10px; height: 10px;
  border-radius: 99px;
  background: var(--blue-strong);
}
.week-list { margin: 8px 0 0; padding-left: 18px; }
.week-list li { margin: 10px 0; }
.faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 20px;
  max-width: 860px;
  align-items: start;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 16px 4px;
  box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
}
.faq-item p { margin: 0 0 14px; color: var(--muted); }
@media (max-width: 800px) {
  .faq-list { grid-template-columns: 1fr; max-width: 760px; }
}

/* Soft FAQ */
.psite-faq {
  position: relative;
}
.psite-faq-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
  max-width: 860px;
}
.psite-faq-head img {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(30, 58, 95, 0.12));
}
.psite-faq-head h2 {
  margin: 0 0 6px;
}
.psite-faq-lead {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.5;
}
.psite-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
  max-width: 860px;
}
.psite-faq-item {
  background: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}
.psite-faq-item[open] {
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}
.psite-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.psite-faq-item summary::-webkit-details-marker { display: none; }
.psite-faq-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
}
.psite-faq-ico img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.psite-faq-item[open] .psite-faq-ico img {
  transform: scale(1.06);
}
.psite-faq-q { padding-right: 4px; }
.psite-faq-chev {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fef9c3;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease;
}
.psite-faq-chev::before,
.psite-faq-chev::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: #854d0e;
  border-radius: 2px;
  transform: translate(-50%, -50%);
}
.psite-faq-chev::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: opacity 0.2s ease, transform 0.25s ease;
}
.psite-faq-item[open] .psite-faq-chev {
  background: #fde047;
  transform: rotate(0deg);
}
.psite-faq-item[open] .psite-faq-chev::after {
  opacity: 0;
}
.psite-faq-a {
  padding: 0 18px 18px 80px;
  animation: psite-faq-open 0.28s ease both;
}
.psite-faq-a p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 500;
}
.psite-faq-more {
  margin-top: 22px;
}
@keyframes psite-faq-open {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.psite-faq-page {
  padding: 28px 8vw 56px;
  max-width: 980px;
  margin: 0 auto;
}
.psite-faq-hero {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 8px;
  padding: 8px 0 12px;
}
.psite-faq-hero-ico {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(30, 58, 95, 0.14));
  flex-shrink: 0;
}
.psite-faq-hero h1 {
  margin: 4px 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.15;
}
.psite-faq-cta {
  margin-top: 36px;
  padding: 24px 26px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(250, 204, 21, 0.28), transparent 55%),
    linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.psite-faq-cta h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}
.psite-faq-cta p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}
.psite-faq-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 700px) {
  .psite-faq-head,
  .psite-faq-hero {
    flex-direction: column;
    gap: 10px;
  }
  .psite-faq-a {
    padding-left: 18px;
  }
  .psite-faq-item summary {
    gap: 10px;
    padding: 12px 14px;
  }
  .psite-faq-ico {
    width: 40px;
    height: 40px;
  }
  .psite-faq-ico img {
    width: 38px;
    height: 38px;
  }
}
.page-hero { padding-bottom: 12px; }
.course-layout { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 36px; align-items: start; }
.price-line { font-size: 1.25rem; margin: 8px 0 12px; }
.syllabus { padding-left: 18px; }
.syllabus li { margin: 10px 0; }
.syllabus .meta { display: block; }
.lesson-stack { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.lesson-row { display: flex; gap: 16px; align-items: flex-start; }
.lesson-index {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 99px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-bar { display: none; }

.sticky-contact {
  display: none;
}

@media (max-width: 960px) {
  .hero, .lesson-layout, .app-shell, .grid-3, .grid-4, .stat-row, .form-row, .footer-grid, .split, .course-layout {
    grid-template-columns: 1fr;
  }
  .stats-band { margin: 0 20px 12px; }
  .mobile-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
  }
  .mobile-bar a { color: var(--ink); }
  .mobile-bar .nav-toggle { display: inline-flex; }
  .sidebar { display: none; }
  .app-main { padding: 20px 16px calc(48px + env(safe-area-inset-bottom, 0px)); }
  .hero { padding: 28px 20px; }
  .section { padding: 20px; }
  .topbar { padding: 10px 12px 0; }
  .brand img, .logo-img { height: 42px; }
  .nav-toggle { display: inline-flex; }
  .top-nav { display: none; }
  .header-inner { gap: 10px; }
  body.is-app .app-main {
    padding-top: 16px;
  }
  .btn, button.btn {
    min-height: 44px;
  }
  .prog-carousel-btn {
    min-width: 44px;
    min-height: 44px;
  }
  .sticky-contact {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: #0f172a;
  }
  .sticky-contact a {
    flex: 1;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
  }
  .sticky-contact a.is-mail { background: var(--blue-strong); }
  .sticky-contact a.is-web { background: #334155; }
  body.is-guest { padding-bottom: 4.5rem; }
}

/* LMS school shell */
body.is-school {
  font-family: Geist, "Be Vietnam Pro", "IBM Plex Sans", system-ui, sans-serif;
  background: #F2F5F7;
  color: #010211;
}
body.is-school h1, body.is-school h2, body.is-school h3, body.is-school .display {
  font-family: Geist, "Be Vietnam Pro", sans-serif;
}
.school-wrap { display: flex; min-height: 100vh; background: #f5f7fb; }
body.is-school {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
}
html:has(body.is-school) {
  height: 100%;
  overflow: hidden;
}
body.is-school .school-wrap {
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
body.is-school .school-sidebar {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  min-height: 0;
}
body.is-school .school-nav {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
body.is-school .school-col {
  height: 100%;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
body.is-school .school-header {
  flex-shrink: 0;
}
body.is-school .school-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
body.is-school .school-footer {
  flex-shrink: 0;
}
body.is-school .school-main .table-wrap,
body.is-school .school-main .jobs-table-wrap,
body.is-school .school-main .table-scroll,
body.is-school .school-main .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.school-sidebar {
  width: 260px;
  background: #fff;
  border-right: 1px solid #e8eef5;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  color: #0f172a;
}
.school-sidebar.sidebar-collapsed { width: 76px; }
.school-sidebar.sidebar-collapsed .school-nav-label,
.school-sidebar.sidebar-collapsed .school-nav-group,
.school-sidebar.sidebar-collapsed .school-nav-group-static,
.school-sidebar.sidebar-collapsed .school-nav-section > summary,
.school-sidebar.sidebar-collapsed .school-brand span { display: none; }
.school-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 18px; font-weight: 700; color: #0f172a;
}
.school-brand img { height: 36px; width: auto; }
.school-brand span { color: #0f172a; letter-spacing: .02em; }
.school-nav { padding: 8px 12px 24px; overflow-y: auto; flex: 1; }
.school-nav-pin {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8eef5;
}
.school-lang-side { padding: 12px 16px 20px; border-top: 1px solid #e8eef5; }
.school-lang-side .lang-switch-opt { color: #475569; }
.school-lang-side .lang-switch-opt.is-on { color: #0f172a; }
.school-sidebar.sidebar-collapsed .school-lang-side { display: none; }
.school-nav-group {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #94a3b8; padding: 16px 12px 6px; font-weight: 600;
}
.school-nav-group-static { padding-top: 8px; }
.school-nav-section { border: 0; margin: 0; }
.school-nav-section > summary.school-nav-group {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  user-select: none;
  border-radius: 10px;
  margin: 4px 0 0;
  padding: 10px 12px;
}
.school-nav-section > summary.school-nav-group::-webkit-details-marker { display: none; }
.school-nav-section > summary.school-nav-group:hover {
  background: #f8fafc;
  color: #64748b;
}
.school-nav-chevron {
  width: 8px; height: 8px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(-45deg);
  transition: transform .15s ease;
  flex-shrink: 0;
}
.school-nav-section[open] > summary .school-nav-chevron {
  transform: rotate(45deg);
}
.school-nav-section-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 6px;
}
.school-nav-section.is-active > summary.school-nav-group {
  color: #1d4ed8;
}
.school-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; color: #334155; font-weight: 500;
}
.school-nav a svg { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; }
.school-nav a:hover { background: #f1f5f9; color: #0f172a; }
.school-nav a.is-on { background: #eff6ff; color: #1d4ed8; }
.school-sidebar.sidebar-collapsed .school-nav-section-body { display: flex !important; }
.school-col { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #f5f7fb; }
.school-header {
  background: #fff; box-shadow: none; border-bottom: 1px solid #e8eef5;
  padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.school-icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid #e5e7eb;
  background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  color: #334155; position: relative;
}
.school-bell-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: #ef4444; color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.school-header-right { display: flex; align-items: center; gap: 12px; position: relative; }
.school-drop {
  display: none; position: absolute; right: 0; top: 52px; z-index: 70;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .12); min-width: 280px; max-height: 320px; overflow: auto;
}
.school-drop.is-open { display: block; }
.school-note { display: block; padding: 10px 14px; border-bottom: 1px solid #f1f5f9; color: inherit; }
.school-note:hover { background: #eff6ff; }
.school-note p { margin: 0; }
.school-main { flex: 1; padding: 24px 28px 48px; background: #f5f7fb; }
.is-school .school-main h1 { display: none; }
.is-school .school-title-row h1 { display: block; }
.school-title-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.school-title-row h1 { margin: 0; font-size: 1.45rem; color: #0f172a; }
.school-crumb { color: #64748b; display: flex; align-items: center; gap: 8px; }
.school-card {
  background: #fff; border: 1px solid #e8eef5; border-radius: 16px; padding: 20px; margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.school-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.school-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600;
  background: #eff6ff; color: #1d4ed8; border: 1px solid #dbeafe;
}
.school-pill.is-ok { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.school-pill.is-off { background: #f1f5f9; color: #64748b; border-color: #e2e8f0; }
.school-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.school-stat { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 16px; }
.school-stat strong { display: block; font-size: 1.6rem; }
.school-stat span { color: #64748b; font-size: 13px; }
.school-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.school-tabs a, .school-tabs .tab {
  border-radius: 999px; padding: 8px 14px; background: #fff; border: 1px solid #e5e7eb;
  color: #334155; font-weight: 600; font-size: 14px;
}
.school-tabs a.is-on, .school-tabs .tab.is-on { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }

/* Admin Klassen-Liste */
.cohorts-page { max-width: 1100px; }
.cohorts-toolbar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 16px;
}
.cohorts-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.cohorts-filter {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid #e5e7eb;
  background: #fff; color: #334155; font-weight: 600; font-size: 14px; text-decoration: none;
}
.cohorts-filter em {
  font-style: normal; font-size: 12px; font-weight: 700;
  min-width: 1.4em; text-align: center;
  padding: 1px 7px; border-radius: 999px; background: #f1f5f9; color: #64748b;
}
.cohorts-filter.is-on { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }
.cohorts-filter.is-on em { background: rgba(255,255,255,.2); color: #fff; }
.cohorts-create { margin-bottom: 20px; }
.cohorts-create-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px;
}
.cohorts-create-head h3 { margin: 0; font-size: 1.1rem; }
.cohorts-create-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cohorts-empty { padding: 28px 8px; }
.cohorts-list { display: flex; flex-direction: column; gap: 10px; }
.cohorts-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 14px 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cohorts-row:hover { border-color: #cbd5e1; box-shadow: 0 4px 14px rgba(15, 23, 42, .04); }
.cohorts-row.is-archived { opacity: .78; background: #f8fafc; }
.cohorts-main { text-decoration: none; color: inherit; min-width: 0; }
.cohorts-main:hover .cohorts-title-line strong { color: #1e3a5f; }
.cohorts-title-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px;
}
.cohorts-title-line strong { font-size: 1.05rem; font-weight: 700; }
.cohorts-main .meta { margin: 0; line-height: 1.45; }
.cohorts-side {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0;
}
.cohorts-links {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px;
  font-size: 13px; font-weight: 600;
}
.cohorts-links a { color: #64748b; text-decoration: none; }
.cohorts-links a:hover { color: #1e3a5f; text-decoration: underline; }
.cohorts-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.cohorts-cta form { margin: 0; }
.cohorts-btn-danger {
  color: #b91c1c !important;
  border-color: #fecaca !important;
}
.cohorts-btn-danger:hover {
  background: #fef2f2 !important;
}
.cohorts-more { position: relative; }
.cohorts-more > summary {
  list-style: none;
  cursor: pointer;
}
.cohorts-more > summary::-webkit-details-marker { display: none; }
.cohorts-more-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}
.cohorts-more-panel a,
.cohorts-more-panel button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.cohorts-more-panel a:hover,
.cohorts-more-panel button:hover { background: #f1f5f9; }
.cohorts-more-panel hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 4px 0;
}
.cohorts-more-panel .is-danger button { color: #b91c1c; }
.cohort-danger {
  border-color: #fecaca;
  background: #fff7f7;
}
.cohort-danger h3 { margin-top: 0; color: #991b1b; }
@media (max-width: 720px) {
  .cohorts-quick-dup { display: none; }
}
.school-card.is-exam-week {
  border-color: #1e3a5f;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 40%);
}

/* Admin Dashboard (Campus-Layout) */
.adash { max-width: 1280px; }
.adash-hero {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 16px; margin-bottom: 18px;
}
.adash-kicker { margin: 0; font-size: 13px; color: #64748b; }
.adash-hello { margin: 4px 0 6px; font-size: clamp(1.35rem, 2.5vw, 1.75rem); color: #0f172a; }
.adash-search {
  flex: 1 1 220px; max-width: 320px;
}
.adash-search input {
  width: 100%; border: 1px solid #e5e7eb; border-radius: 12px;
  background: #fff; padding: 12px 14px; font: inherit;
}
.adash-kpi {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px;
}
.adash-kpi-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid #e8ecf1; border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.adash-kpi-ico {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.adash-kpi-ico svg { width: 22px; height: 22px; }
.adash-kpi-ico.is-teal { background: #ccfbf1; color: #0f766e; }
.adash-kpi-ico.is-amber { background: #ffedd5; color: #c2410c; }
.adash-kpi-ico.is-rose { background: #ffe4e6; color: #be123c; }
.adash-kpi-ico.is-navy { background: #e2e8f0; color: #1e3a5f; }
.adash-kpi-ico.is-sky { background: #e0f2fe; color: #0369a1; }
.adash-kpi-label { display: block; font-size: 13px; color: #64748b; margin-bottom: 2px; }
.adash-kpi-card strong { font-size: 1.35rem; color: #0f172a; }
.adash-mid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px;
}
.adash-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px;
}
.adash-panel {
  background: #fff; border: 1px solid #e8ecf1; border-radius: 16px; padding: 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.adash-panel-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px;
}
.adash-panel-head h3 { margin: 0; font-size: 1.05rem; }
.adash-see { font-size: 13px; font-weight: 600; color: #64748b; white-space: nowrap; }
.adash-see:hover { color: #1e3a5f; }
.adash-bars {
  display: flex; align-items: flex-end; gap: 8px; height: 160px; padding-top: 8px;
}
.adash-bar-col {
  flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; gap: 6px;
}
.adash-bar {
  width: 100%; max-width: 28px; border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #1e3a5f 0%, #0d9488 100%);
  min-height: 4px;
}
.adash-bar-col span { font-size: 10px; color: #94a3b8; }
.adash-donut-wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: center;
  padding: 8px 0 4px;
}
.adash-donut {
  width: 160px; height: 160px; border-radius: 50%;
  display: grid; place-items: center;
}
.adash-donut-hole {
  width: 108px; height: 108px; border-radius: 50%; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px #f1f5f9;
}
.adash-donut-hole strong { font-size: 1.5rem; line-height: 1.1; }
.adash-donut-hole span { font-size: 12px; color: #64748b; }
.adash-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.adash-legend li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #334155; }
.adash-legend i {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block;
}
.adash-legend .is-present { background: #0d9488; }
.adash-legend .is-late { background: #f59e0b; }
.adash-legend .is-absent { background: #ef4444; }
.adash-upcoming, .adash-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.adash-upcoming li, .adash-list li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 12px; background: #f8fafc;
}
.adash-upcoming li.is-next {
  background: #1e3a5f; color: #fff;
}
.adash-upcoming li.is-next span { color: rgba(255,255,255,.75); }
.adash-upcoming li.is-next .adash-chev { background: rgba(255,255,255,.15); color: #fff; border-color: transparent; }
.adash-upcoming time {
  font-weight: 700; font-size: 14px; min-width: 3.2em;
}
.adash-upcoming strong, .adash-list strong { display: block; font-size: 14px; }
.adash-upcoming span, .adash-list span { display: block; font-size: 12px; color: #64748b; margin-top: 2px; }
.adash-chev {
  width: 32px; height: 32px; border-radius: 10px; border: 1px solid #e5e7eb;
  background: #fff; display: inline-flex; align-items: center; justify-content: center;
  color: #334155; font-size: 18px; font-weight: 600; text-decoration: none;
}
.adash-chev:hover { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }
.adash-thumb {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; flex-shrink: 0;
}
.adash-thumb.is-teal { background: #0d9488; }
.adash-thumb.is-amber { background: #ea580c; }
.adash-thumb.is-rose { background: #e11d48; }
.adash-thumb.is-navy { background: #1e3a5f; }
.adash-thumb.is-sky { background: #0284c7; }
.adash-status.is-on { color: #166534; font-weight: 600; }
.adash-table { display: flex; flex-direction: column; gap: 2px; }
.adash-tr {
  display: grid; grid-template-columns: 1.2fr 1.2fr .7fr; gap: 8px;
  padding: 10px 4px; align-items: center; font-size: 13px;
  border-bottom: 1px solid #f1f5f9;
}
.adash-tr.is-head { color: #94a3b8; font-weight: 600; font-size: 12px; border-bottom-color: #e5e7eb; }
.adash-person { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.adash-person .school-avatar {
  width: 28px; height: 28px; font-size: 11px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.adash-ops {
  background: #fff; border: 1px solid #e8ecf1; border-radius: 16px; padding: 14px 18px;
}
.adash-ops summary {
  cursor: pointer; font-weight: 700; color: #1e3a5f; list-style: none;
}
.adash-ops summary::-webkit-details-marker { display: none; }
.adash-ops[open] summary { margin-bottom: 8px; }

/* Klassen-Wochenplan an Lehrplan */
.cplan-head { margin-bottom: 12px; }
.cplan-weeks {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px; margin-bottom: 14px;
}
.cplan-week {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px; border-radius: 12px; border: 1px solid #e5e7eb;
  background: #fff; color: inherit; text-decoration: none; min-width: 0;
}
.cplan-week:hover { border-color: #94a3b8; }
.cplan-week.is-on { border-color: #1e3a5f; background: #1e3a5f; color: #fff; }
.cplan-week.is-exam:not(.is-on) { border-color: #0d9488; background: #f0fdfa; }
.cplan-week strong { font-size: 13px; }
.cplan-week span, .cplan-week em { font-size: 11px; font-style: normal; color: #64748b; }
.cplan-week.is-on span, .cplan-week.is-on em { color: rgba(255,255,255,.75); }
.cplan-st.is-approved { color: #166534; font-weight: 600; }
.cplan-week.is-on .cplan-st.is-approved { color: #bbf7d0; }
.cplan-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start;
}
.cplan-sub { margin: 16px 0 8px; font-size: 14px; }
.cplan-lives { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cplan-lives li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 8px 10px; background: #f8fafc; border-radius: 10px; font-size: 13px;
}
.cplan-ai { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #f1f5f9; }
@media (max-width: 900px) {
  .cplan-split { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .adash-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adash-mid, .adash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .adash-kpi { grid-template-columns: 1fr; }
  .adash-tr { grid-template-columns: 1fr; gap: 4px; }
  .adash-tr.is-head { display: none; }
  .adash-upcoming li, .adash-list li { grid-template-columns: auto 1fr; }
  .adash-chev { grid-column: 2; justify-self: end; }
}

@media (max-width: 760px) {
  .cohorts-row {
    grid-template-columns: 1fr;
    gap: 12px; padding: 14px;
  }
  .cohorts-side { align-items: stretch; }
  .cohorts-links { justify-content: flex-start; }
  .cohorts-cta { justify-content: flex-start; }
  .cohorts-cta .btn { flex: 1 1 auto; text-align: center; }
}

.analytics-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-start;
}
.analytics-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 16px 0;
}
.analytics-funnel { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.analytics-funnel-row {
  display: grid; grid-template-columns: minmax(90px, 140px) 1fr 48px; gap: 10px; align-items: center;
  font-size: 13px;
}
.analytics-funnel-row strong { text-align: right; }
.progress-bar-sm { height: 6px; margin-top: 4px; }
.analytics-bars {
  display: flex; align-items: flex-end; gap: 3px; height: 140px; margin-top: 12px;
  border-bottom: 1px solid #e5e7eb; padding-bottom: 4px;
}
.analytics-bar-col {
  flex: 1; min-width: 4px; height: 100%; display: flex; align-items: flex-end; gap: 1px;
}
.analytics-bar { width: 100%; border-radius: 2px 2px 0 0; min-height: 2px; }
.analytics-bar.is-lesson { background: #1e3a5f; }
.analytics-bar.is-attempt { background: #3b82f6; }
.analytics-bar.is-live { background: #0d9488; }
.analytics-legend { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 10px; }
.analytics-legend .dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle;
}
.analytics-legend .dot.is-lesson { background: #1e3a5f; }
.analytics-legend .dot.is-attempt { background: #3b82f6; }
.analytics-legend .dot.is-live { background: #0d9488; }
.analytics-pill {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: #f1f5f9; color: #334155;
}
.analytics-pill.is-ok, .analytics-pill.is-on_track, .analytics-pill.is-ready { background: #dcfce7; color: #166534; }
.analytics-pill.is-warn, .analytics-pill.is-medium, .analytics-pill.is-intake { background: #fef3c7; color: #92400e; }
.analytics-pill.is-bad, .analytics-pill.is-high, .analytics-pill.is-at_risk { background: #fee2e2; color: #991b1b; }
.analytics-pill.is-low { background: #e0f2fe; color: #075985; }
.analytics-spark { display: block; margin-top: 8px; opacity: 0.9; }
.rt-map-host {
  position: relative;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  min-height: 180px;
}
.rt-map-host--wide { min-height: 220px; }
.rt-map-svg { padding: 4px 6px 0; }
.rt-world-svg {
  width: 100%;
  max-height: 240px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.rt-world-svg path {
  transition: fill 0.25s ease, stroke 0.25s ease;
  cursor: default;
}
.rt-world-svg path.rt-map-active { cursor: pointer; }
.rt-world-svg path.rt-map-active:hover {
  filter: brightness(1.08);
  stroke: #0f172a !important;
}
.rt-map-active-count { color: #334155; font-weight: 600; }
.rt-map-loading {
  padding: 2rem 1rem;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}
.rt-map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 10px;
  font-size: 12px;
  color: #64748b;
}
.rt-map-scale {
  display: inline-flex;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
}
.rt-map-scale i {
  display: block;
  width: 14px;
  height: 8px;
}
.rt-map-unknown { margin-left: auto; }
.rt-map-tip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  padding: 3px 7px;
  border-radius: 5px;
  white-space: nowrap;
}
.analytics-map-card { margin: 16px 0; }
.set-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.set-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px 16px;
  color: inherit;
}
.set-stat strong { font-size: 0.95rem; }
.set-stat span { color: #64748b; font-size: 13px; font-weight: 600; }
.set-stat.is-ok { border-color: #bbf7d0; background: #f0fdf4; }
.set-stat.is-off { border-color: #e2e8f0; }

/* Settings Soft-UI board */
.set-page { max-width: 1120px; }
.set-hero .set-hero-meta {
  display: inline-flex; align-items: center;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.85); border: 1px solid #e2e8f0;
  color: #64748b; font-size: 12px; font-weight: 600;
}
.set-tabs {
  display: flex; flex-wrap: wrap; width: 100%;
  margin: 0 0 18px; padding: 4px;
  border-radius: 16px; background: #fff;
  border: 1px solid #e2e8f0; gap: 4px;
}
.set-tabs a {
  flex: 1 1 auto; text-align: center;
  padding: 9px 12px; border-radius: 12px;
  font-size: 13px; font-weight: 650; color: #475569;
  text-decoration: none; white-space: nowrap;
}
.set-tabs a:hover { background: #f8fafc; color: #0f172a; }
.set-tabs a.is-on {
  background: #1e3a5f; color: #fff;
  box-shadow: 0 4px 12px rgba(30, 58, 95, .18);
}
.set-kpi { margin-bottom: 10px; }
.set-kpi .lms-stat {
  text-decoration: none; color: inherit;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.set-kpi .lms-stat.is-ready { border-color: rgba(16, 185, 129, .25); }
.set-kpi .lms-stat.is-warn { border-color: rgba(245, 158, 11, .28); }
.set-kpi .lms-stat-text strong { font-size: 0.95rem; letter-spacing: -.01em; }
.set-kpi .lms-stat-text em { font-style: normal; font-size: 12px; }
.set-ready-line { margin: 0 0 16px; }
.set-panel {
  border-radius: 18px;
  border-color: #e8eef5;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03), 0 8px 24px rgba(15, 23, 42, .04);
}
.set-panel > .set-head { margin-bottom: 14px; }
.set-panel > .set-head .meta { margin: 4px 0 0; }
.set-panel label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; font-weight: 650; color: #334155;
}
.set-panel label input,
.set-panel label select,
.set-panel label textarea {
  font-weight: 500; color: #0f172a;
  border-radius: 12px; border: 1px solid #e2e8f0;
  padding: 10px 12px; background: #fff;
}
.set-panel label input:focus,
.set-panel label select:focus,
.set-panel label textarea:focus {
  outline: none; border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}
.set-section {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid #eef2f7;
}
.set-section .set-head { margin-bottom: 12px; }
.set-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid #eef2f7;
}
.set-actions-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.set-panel-action h3 { margin: 0 0 6px; font-size: 1rem; }
.set-panel-action .meta { margin: 0 0 12px; min-height: 2.6em; }
.set-copy-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px 16px; margin-top: 12px;
}
.set-copy input[readonly] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px; background: #f8fafc; color: #475569;
  cursor: pointer;
}
.set-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.set-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.set-head h3 { margin: 0; font-size: 1.05rem; color: #0f172a; }
.set-flags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
}
.set-switch {
  display: flex !important; flex-direction: row !important; align-items: center;
  gap: 10px; margin: 0; padding: 12px 14px;
  border-radius: 14px; border: 1px solid #e8eef5; background: #f8fafc;
  font-weight: 600; color: #334155; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.set-switch:hover { border-color: #cbd5e1; background: #fff; }
.set-switch input[type="checkbox"] {
  width: 18px; height: 18px; margin: 0; accent-color: #1e3a5f; flex-shrink: 0;
}
.set-switch span { font-weight: 600; line-height: 1.35; }
.set-secret { display: block; margin-top: 4px; color: #64748b; font-size: 12px; font-weight: 500; }
.set-check {
  display: flex !important; flex-direction: row !important; align-items: center;
  gap: 8px; margin: 12px 0; font-weight: 600;
}
.set-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px;
}
.set-log {
  margin: 0; padding: 14px 16px; border-radius: 14px;
  background: #0f172a; color: #e2e8f0;
  font-size: 12px; line-height: 1.5; overflow: auto; max-height: 280px;
  border: 1px solid #1e293b; white-space: pre-wrap;
}
@media (max-width: 900px) {
  .set-actions-row { grid-template-columns: 1fr; }
  .set-copy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .set-grid { grid-template-columns: 1fr; }
  .set-tabs a { flex: 1 1 calc(50% - 4px); }
  .set-hero .set-hero-meta { width: 100%; justify-content: center; }
}

.sys-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef6ff 55%, #f0fdf4 100%);
  border-color: #dbeafe;
}
.sys-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
}
.sys-version {
  margin: 0 0 6px;
  font-size: 1.75rem;
  line-height: 1.15;
  color: #0f172a;
}
.sys-notes {
  margin: 0;
  color: #334155;
  font-size: 15px;
  line-height: 1.45;
  max-width: 42rem;
}
.sys-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sys-chips li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}
.sys-chips li.is-ok { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.sys-chips li.is-off { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.sys-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sys-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.sys-pill strong { font-size: 13px; color: #0f172a; }
.sys-pill span { font-size: 12px; font-weight: 600; color: #64748b; }
.sys-pill.is-ok { border-color: #bbf7d0; background: #f0fdf4; }
.sys-pill.is-off { border-color: #fecaca; background: #fef2f2; }
.sys-install { margin-bottom: 16px; }
.sys-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin: 0 0 16px;
}
.sys-panel .set-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.sys-sub {
  margin: 18px 0 10px;
  font-size: 0.95rem;
}
.sys-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin: 4px 0 0;
}
.set-panel label.sys-drop {
  position: relative;
  flex: 1 1 280px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  margin: 0;
  padding: 12px 16px;
  border: 1.5px dashed #93c5fd;
  border-radius: 18px;
  background: #f8fbff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
  color: #0f172a;
}
.set-panel label.sys-drop:hover,
.set-panel label.sys-drop:focus-within {
  border-color: #2563eb;
  background: #eff6ff;
}
.set-panel label.sys-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.sys-drop-mark {
  flex: 0 0 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #1e3a5f;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}
.sys-drop-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sys-drop-copy strong { font-size: 15px; color: #0f172a; }
.sys-drop-copy em {
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sys-upload .btn {
  align-self: center;
  min-height: 48px;
  padding: 12px 22px;
}
.sys-pkg-list,
.sys-cl-list,
.sys-history {
  display: grid;
  gap: 8px;
}
.sys-pkg,
.sys-cl-entry,
.sys-hist {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  overflow: hidden;
}
.sys-pkg.has-cl { border-color: #bfdbfe; background: #f8fbff; }
.sys-pkg-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
}
.sys-pkg-title {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.sys-pkg-preview {
  margin: 8px 0 0;
  color: #1e293b;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}
.sys-pkg-details {
  margin-top: 8px;
  border-top: 1px solid #eef2f7;
  padding-top: 8px;
}
.sys-pkg-details > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 13px;
  color: #0369a1;
}
.sys-pkg-details > summary::-webkit-details-marker { display: none; }
.sys-pkg-apply { margin-top: 10px; }
.sys-more {
  margin-top: 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  padding: 4px 12px 10px;
}
.sys-more > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 14px;
  color: #0369a1;
  padding: 10px 2px;
}
.sys-more > summary::-webkit-details-marker { display: none; }
.sys-pkg-list-more { margin-top: 4px; }
.sys-cl-entry > summary,
.sys-hist > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 0;
  font-weight: 600;
}
.sys-cl-entry,
.sys-hist {
  padding: 0;
}
.sys-cl-entry > summary,
.sys-hist > summary {
  padding: 12px 14px;
}
.sys-cl-entry > summary::-webkit-details-marker,
.sys-hist > summary::-webkit-details-marker { display: none; }
.sys-cl-entry[open] > summary,
.sys-hist[open] > summary {
  border-bottom: 1px solid #eef2f7;
  background: #f8fafc;
}
.sys-cl-entry.is-now {
  border-color: #93c5fd;
  background: #f8fbff;
}
.sys-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  background: #e0f2fe;
  color: #0369a1;
}
.sys-cl-entry > *:not(summary),
.sys-hist > *:not(summary) {
  padding: 0 14px 12px;
}
.sys-pkg-file { margin: 8px 0 0; }
.sys-pkg-notes {
  margin: 8px 0 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.4;
}
.sys-cl {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #475569;
  font-size: 13.5px;
  line-height: 1.45;
}
.sys-cl li { margin: 4px 0; }
.sys-backup-actions { margin: 8px 0 14px; }
.sys-seg { margin: 0 0 16px; }
@media (max-width: 900px) {
  .sys-grid { grid-template-columns: 1fr; }
  .sys-status-grid { grid-template-columns: 1fr 1fr; }
  .sys-upload .btn { width: 100%; }
}

.school-footer { background: transparent; color: #94a3b8; text-align: center; padding: 16px; font-size: 13px; }
.school-footer a { color: #1e3a5f; font-weight: 700; }
.school-avatar {
  width: 44px; height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; border: 1px solid #e5e7eb;
}
.av-navy { background: #1e3a5f; }
.av-blue { background: #2563eb; }
.av-teal { background: #0f766e; }
.av-slate { background: #475569; }
.school-lang-btn {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
  padding: 6px 10px; border: 0; background: transparent; cursor: pointer; font: inherit;
}
.school-modal { display: none; position: fixed; inset: 0; z-index: 90; align-items: center; justify-content: center; }
.school-modal.is-open { display: flex; }
.school-modal-bg { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }
.school-modal-box { position: relative; background: #fff; border-radius: 12px; padding: 24px; width: min(520px, 92vw); }
.flag-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  isolation: isolate;
  position: relative;
  background: #94a3b8;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 -1px 3px rgba(15, 23, 42, 0.2) inset,
    0 2px 5px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(15, 23, 42, 0.1);
}
.flag-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 30% 24%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.12) 40%, transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 45%, rgba(0, 0, 0, 0.1) 100%);
}
.flag-dot svg {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  color: initial;
}
.flag-de,
.flag-vi {
  background: transparent;
  color: initial;
  font-size: inherit;
  line-height: 0;
}
.school-lang-grid .flag-dot {
  width: 28px;
  height: 28px;
}
.h-5 { width: 20px; height: 20px; }
.w-5 { width: 20px; height: 20px; }
.school-drawer { display: none; }
.school-drawer.is-open { display: block; position: fixed; inset: 0; z-index: 80; }
.school-drawer-panel {
  position: absolute; left: 0; top: 0; bottom: 0; width: 280px; background: #fff; color: #0f172a;
  overflow: auto; box-shadow: 8px 0 24px rgba(15,23,42,.12); border-right: 1px solid #e8eef5;
}
.school-drawer-panel .school-brand { color: #0f172a; }
.school-drawer-panel .school-nav a { color: #334155; }
.school-drawer-panel .school-nav a:hover { background: #f1f5f9; color: #0f172a; }
.school-drawer-panel .school-nav a.is-on { background: #eff6ff; color: #1d4ed8; }
.school-drawer-panel .school-nav-group { color: #94a3b8; }
.school-actions { display: flex; flex-wrap: wrap; gap: 8px; }
body.is-school .btn { border-radius: 12px; }
body.is-school .table-wrap { overflow-x: auto; }
.is-school .school-main:has(.lms-dash) .school-title-row { display: none; }

/* LMS Dashboard – wie Edu-LMS Vorlage */
.lms-dash {
  max-width: none;
  width: 100%;
  padding-bottom: 72px;
  box-sizing: border-box;
}
.lms-welcome {
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.lms-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.lms-welcome h2 {
  margin: 0 0 6px;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.lms-welcome p { margin: 0; color: #64748b; font-size: 15px; }
.lms-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px;
}
.lms-stat {
  display: flex; align-items: center; gap: 14px;
  border-radius: 18px; padding: 18px 16px; text-decoration: none; color: inherit;
  border: 0; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: transform .15s ease, box-shadow .15s ease;
}
.lms-stat:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15, 23, 42, .08); }
.lms-stat.is-blue { background: #eff6ff; }
.lms-stat.is-green { background: #ecfdf5; }
.lms-stat.is-orange { background: #fff7ed; }
.lms-stat.is-violet { background: #f5f3ff; }
.lms-stat-ico {
  width: 48px; height: 48px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: #fff;
}
.lms-stat.is-blue .lms-stat-ico { color: #2563eb; }
.lms-stat.is-green .lms-stat-ico { color: #059669; }
.lms-stat.is-orange .lms-stat-ico { color: #ea580c; }
.lms-stat.is-violet .lms-stat-ico { color: #7c3aed; }
.lms-stat-ico svg { width: 22px; height: 22px; }
.lms-stat-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lms-stat-text strong {
  font-size: 1.05rem; font-weight: 700; color: #0f172a; line-height: 1.25;
}
.lms-stat-text em {
  font-style: normal; font-size: 13px; font-weight: 600; color: #2563eb;
}
.lms-main {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.lms-side { display: flex; flex-direction: column; gap: 18px; }
.lms-card {
  background: #fff; border: 0; border-radius: 18px; padding: 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}
.lms-card-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px;
}
.lms-card-head h3 { margin: 0; font-size: 1.1rem; font-weight: 700; color: #0f172a; }
.lms-card-head a { font-size: 13px; font-weight: 600; color: #2563eb; text-decoration: none; }
.lms-courses, .lms-lives, .lms-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lms-courses li { padding: 0; border: 0; }
.lms-course-link {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(120px, .9fr);
  gap: 14px; align-items: center; padding: 12px 4px;
  border-radius: 12px; text-decoration: none; color: inherit;
}
.lms-course-link:hover { background: #f8fafc; }
.lms-lives li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px 4px; border-bottom: 1px solid #f1f5f9;
}
.lms-lives li:last-child, .lms-notes li:last-child { border-bottom: 0; }
.lms-notes li {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  padding: 12px 4px; border-bottom: 1px solid #f1f5f9;
}
.lms-course-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; flex-shrink: 0; font-size: 15px;
}
.lms-course-ico svg { width: 18px; height: 18px; stroke: #fff; }
.lms-course-ico.is-sky { background: #3b82f6; }
.lms-course-ico.is-teal { background: #10b981; }
.lms-course-ico.is-amber { background: #f59e0b; }
.lms-course-ico.is-violet { background: #8b5cf6; }
.lms-course-ico.is-rose { background: #f43f5e; }
.lms-note-ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: #eff6ff; color: #2563eb;
}
.lms-note-ico.is-green { background: #ecfdf5; color: #059669; }
.lms-note-ico svg { width: 18px; height: 18px; }
.lms-course-meta strong, .lms-lives strong, .lms-notes strong {
  display: block; font-size: 14px; font-weight: 700; color: #0f172a;
}
.lms-course-meta span, .lms-lives span, .lms-notes span {
  display: block; font-size: 12px; color: #64748b; margin-top: 3px;
}
.lms-notes em { display: block; font-size: 11px; color: #94a3b8; font-style: normal; margin-top: 4px; }
.lms-progress { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lms-progress-track {
  flex: 1; height: 8px; border-radius: 999px; background: #eef2f7; overflow: hidden;
}
.lms-progress-track i {
  display: block; height: 100%; border-radius: inherit; background: #3b82f6;
}
.lms-progress-track i.is-teal { background: #10b981; }
.lms-progress-track i.is-amber { background: #f59e0b; }
.lms-progress-track i.is-violet { background: #8b5cf6; }
.lms-progress-track i.is-rose { background: #f43f5e; }
.lms-progress-track i.is-sky { background: #3b82f6; }
.lms-progress em {
  font-style: normal; font-size: 12px; font-weight: 700; color: #334155;
  min-width: 2.6em; text-align: right;
}
.lms-join {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px; border-radius: 10px;
  background: #2563eb; color: #fff !important; font-size: 13px; font-weight: 600;
  text-decoration: none; border: 0; white-space: nowrap;
}
.lms-join:hover { background: #1d4ed8; color: #fff !important; }
.lms-features {
  display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between;
  background: #fff; border-radius: 16px; padding: 14px 18px; margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  color: #64748b; font-size: 12px; font-weight: 600;
}
.lms-features span { display: inline-flex; align-items: center; gap: 6px; }
.lms-features svg { width: 16px; height: 16px; color: #2563eb; }
.lms-ops {
  background: #fff; border-radius: 16px; padding: 12px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.lms-ops summary { cursor: pointer; font-weight: 700; color: #1e3a5f; font-size: 14px; }
.lms-mobile-nav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #fff; border-top: 1px solid #e8eef5;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(4, 1fr); gap: 4px;
}
.lms-mobile-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px; border-radius: 12px; color: #64748b; font-size: 11px; font-weight: 600;
  text-decoration: none;
}
.lms-mobile-nav a svg { width: 20px; height: 20px; }
.lms-mobile-nav a.is-on { color: #2563eb; background: #eff6ff; }
.school-profile-btn { gap: 10px !important; }
.school-profile-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.school-profile-meta strong { font-size: 14px; color: #0f172a; }
.school-profile-meta em { font-style: normal; font-size: 12px; color: #64748b; }

@media (max-width: 1100px) {
  .lms-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lms-main { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .school-sidebar { display: none; }
  .school-main { padding: 16px; }
  .lms-mobile-nav { display: grid; }
  .lms-dash { padding-bottom: 88px; }
  .school-profile-meta { display: none; }
  body.is-school .school-drawer-panel {
    display: flex;
    flex-direction: column;
    max-height: 100dvh;
    overflow: hidden;
  }
  body.is-school .school-drawer-panel .school-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 640px) {
  .lms-stats { grid-template-columns: 1fr; }
  .lms-course-link { grid-template-columns: auto 1fr; }
  .lms-progress { grid-column: 1 / -1; padding-left: 58px; }
  .lms-features { display: none; }
}

.school-actions { display: flex; flex-wrap: wrap; gap: 8px; }
body.is-school .btn { border-radius: 12px; }
body.is-school .table-wrap { overflow-x: auto; }

.audio-studio .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) {
  .audio-studio .form-grid { grid-template-columns: 1fr; }
}
.audio-record-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 12px; }
.audio-clip {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 280px) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid #e5e7eb;
}
@media (max-width: 900px) {
  .audio-clip { grid-template-columns: 1fr; }
}
.audio-clip audio, .audio-player audio { width: 100%; max-width: 480px; }
.audio-clip-assign label { display: block; }
.audio-url-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 2fr auto;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}

/* —— Hörstudio (Teleprompter) —— */
.astudio { max-width: 1200px; }
.astudio-head {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: end;
  margin-bottom: 12px;
}
.astudio-stats { display: flex; flex-wrap: wrap; gap: 14px; font-size: .92rem; color: #64748b; }
.astudio-stats b { color: #0f172a; }
.astudio-stats .is-warn b { color: #c2410c; }
.astudio-tabs {
  display: flex; gap: 6px; margin-bottom: 14px; padding: 4px;
  background: #f1f5f9; border-radius: 14px; width: fit-content;
}
.astudio-tab {
  text-decoration: none; color: #475569; font-weight: 600; font-size: .92rem;
  padding: 8px 16px; border-radius: 10px;
}
.astudio-tab.is-on { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(15,23,42,.08); }
.astudio-work {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 14px;
  align-items: stretch;
  min-height: 70vh;
}
@media (max-width: 900px) {
  .astudio-work { grid-template-columns: 1fr; min-height: 0; }
}
.astudio-queue { display: flex; flex-direction: column; padding: 12px; max-height: 78vh; overflow: hidden; }
.astudio-queue-tools { display: grid; gap: 8px; margin-bottom: 10px; }
.astudio-queue-tools input[type="search"] {
  width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 8px 10px;
}
.astudio-queue-tools label { font-size: .85rem; color: #64748b; display: flex; gap: 6px; align-items: center; }
.astudio-queue-list { overflow: auto; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.astudio-qitem {
  display: flex; gap: 10px; align-items: flex-start; text-align: left;
  border: 0; background: transparent; border-radius: 10px; padding: 8px 10px; cursor: pointer; width: 100%;
}
.astudio-qitem:hover { background: #f8fafc; }
.astudio-qitem.is-hide { display: none !important; }
.astudio-stage-top .badge { margin-left: auto; }
.astudio-qitem strong { display: block; font-size: .9rem; color: #0f172a; }
.astudio-qitem em { display: block; font-style: normal; font-size: .75rem; color: #64748b; }
.astudio-qdot {
  width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex-shrink: 0;
}
.astudio-qdot.is-ok { background: #10b981; }
.astudio-qdot.is-miss { background: #f59e0b; }
.astudio-stage {
  display: flex; flex-direction: column; padding: 0; overflow: hidden;
}
.astudio-stage-top {
  display: flex; justify-content: space-between; gap: 12px; align-items: start;
  padding: 16px 18px 8px;
}
.astudio-stage-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; max-width: 320px;
}
.astudio-stage-top h2 { margin: 2px 0 0; font-size: 1.25rem; }
.astudio-script {
  flex: 1;
  padding: 8px 22px 20px;
  overflow: auto;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.astudio-script-de {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.65;
  white-space: pre-wrap;
  color: #0f172a;
  margin: 0 0 14px;
  max-width: 42rem;
}
.astudio-script-vi { max-width: 42rem; margin: 0; }
.astudio-bar {
  margin-top: auto;
  padding: 14px 16px 16px;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 0 0 14px 14px;
}
.astudio-meter {
  height: 6px; background: rgba(255,255,255,.12); border-radius: 999px; overflow: hidden; margin-bottom: 12px;
}
.astudio-meter i {
  display: block; height: 100%; width: 0; background: #38bdf8; transition: width .08s linear;
}
.astudio-bar-row {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.astudio-rec {
  min-width: 150px; min-height: 48px;
  border: 0; border-radius: 999px;
  background: #ef4444; color: #fff; font-weight: 800; font-size: 1rem;
  cursor: pointer; padding: 0 22px;
}
.astudio-rec.is-on {
  background: #0ea5e9;
  animation: astudio-pulse 1.2s ease-in-out infinite;
}
@keyframes astudio-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14,165,233,.5); }
  50% { box-shadow: 0 0 0 12px rgba(14,165,233,0); }
}
.astudio-timer {
  font-variant-numeric: tabular-nums; font-size: 1.5rem; font-weight: 800; min-width: 4.5ch;
}
.astudio-max { color: #94a3b8; font-size: .85rem; white-space: nowrap; }
.astudio-status { margin: 0; color: #cbd5e1; font-size: .9rem; flex: 1; min-width: 160px; }
.astudio-preview {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}
.astudio-preview[hidden] { display: none !important; }
.astudio-preview-label {
  margin: 0 0 8px;
  font-size: .85rem;
  font-weight: 700;
  color: #7dd3fc;
  letter-spacing: .02em;
}
.astudio-preview-row {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.astudio-preview audio { width: min(100%, 360px); min-width: 200px; }
.astudio-play {
  background: #38bdf8 !important;
  border-color: #38bdf8 !important;
  color: #0f172a !important;
  font-weight: 800;
}
.astudio-actions {
  margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.astudio-save {
  background: #22c55e !important; border-color: #22c55e !important; color: #052e16 !important;
  font-weight: 800; min-width: 160px;
}
.astudio-save:disabled { opacity: .45; cursor: not-allowed; }
.astudio-upload { margin-top: 10px; color: #94a3b8; font-size: .85rem; }
.astudio-upload summary { cursor: pointer; }
.astudio-upload input { margin-top: 8px; color: #e2e8f0; }
.astudio-lib-tools { margin-bottom: 12px; }
.astudio-lib-tools input {
  min-width: 240px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 8px 12px;
}
.audio-url-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 2fr auto;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}
@media (max-width: 700px) {
  .audio-url-row { grid-template-columns: 1fr; }
}
.audio-form textarea { min-height: 72px; }
.audio-script-box {
  background: #f4f7fb;
  border: 1px solid #d7e0ea;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0;
}
.audio-script-de { white-space: pre-wrap; margin: 8px 0; line-height: 1.5; }
.audio-script-item { margin: 8px 0; padding: 8px 0; border-top: 1px solid #e5e7eb; }
.audio-script-item summary { cursor: pointer; font-weight: 600; }
.audio-missing-list { list-style: none; padding: 0; margin: 0; }
.audio-missing-list li { padding: 10px 0; border-top: 1px solid #e5e7eb; }
.listen-grid { display: grid; gap: 16px; }
.listen-clip audio { width: 100%; max-width: 520px; margin: 8px 0; }
details.card { cursor: pointer; }
details.card > summary { font-weight: 600; }

.content-studio {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.content-nav {
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 0;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #fff, #f8fafc);
}
.content-nav-search {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  padding: 14px 14px 10px;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 16px 16px 0 0;
}
.content-nav-search input {
  margin-top: 4px;
  padding: 8px 10px;
  font-size: 0.9rem;
}
.content-tree { padding-bottom: 8px; }
.content-mod { border-top: 1px solid #f1f5f9; }
.content-mod-sum {
  list-style: none;
  cursor: pointer;
  padding: 8px 12px 8px 14px;
  font-weight: 700;
  color: #1e3a5f;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  align-items: center;
  background: transparent;
}
.content-mod-sum:hover { background: #f8fafc; }
.content-mod-sum::-webkit-details-marker { display: none; }
.content-mod-sum::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform .15s ease;
  margin-right: 2px;
}
.content-mod[open] > .content-mod-sum::after { transform: rotate(225deg); }
.content-mod-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.content-mod-name {
  font-size: 0.86rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.content-count {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: #eef2f7;
  border-radius: 999px;
  padding: 1px 7px;
}
.content-del-form {
  display: inline-flex;
  margin: 0;
  opacity: 0.45;
  transition: opacity .15s ease;
}
.content-mod-sum:hover .content-del-form,
.content-mod-sum:focus-within .content-del-form {
  opacity: 1;
}
.content-del {
  appearance: none;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 2px 4px;
  margin: 0;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: none;
}
.content-del:hover {
  color: #b91c1c;
  background: #fef2f2;
}
.content-del-lg {
  font-size: 12px;
  padding: 4px 0;
  color: #64748b;
}
.content-danger-row {
  margin-top: 10px;
  padding: 0 2px;
}
.content-lesson-list {
  padding: 0 0 6px;
  border-top: 1px solid #f8fafc;
}
.content-lesson {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  padding: 7px 12px 8px 14px;
  color: #334155;
  border-left: 3px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.content-lesson[hidden],
.content-mod[hidden] { display: none !important; }
.content-lesson:hover { background: #F8F9FA; color: #1e3a5f; }
.content-lesson.is-on {
  background: #eff6ff;
  border-left-color: #2563eb;
  color: #1e3a5f;
}
.content-lesson-i {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  line-height: 1.5;
  text-align: right;
  padding-top: 1px;
}
.content-lesson.is-on .content-lesson-i { color: #2563eb; }
.content-lesson-t { min-width: 0; }
.content-lesson strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}
.content-lesson .meta {
  display: block;
  margin-top: 2px;
  font-size: 11px;
}
.ex-delete { margin-top: 8px; }
.content-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.content-head h2 { margin: 4px 0 0; font-size: 1.35rem; }
.content-empty { padding: 36px 24px; }
.content-empty h2 { margin: 6px 0 8px; }
.content-lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.content-lang-grid textarea { min-height: 84px; }
.content-html,
.content-md,
.content-body-input { min-height: 240px; font-size: 0.92rem; line-height: 1.45; font-family: inherit; }
.content-meta-row { grid-template-columns: 1.4fr 0.8fr 0.8fr; }
.content-advanced {
  margin: 10px 0 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  background: #f8fafc;
}
.content-advanced summary {
  cursor: pointer;
  font-weight: 600;
  color: #1e3a5f;
}
.content-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}
.content-check input { width: auto; }
.content-savebar {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: #fff;
}
.ex-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}
.content-ex-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
}
.content-ex-item > summary,
.ex-card > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}
.content-ex-item > summary::-webkit-details-marker,
.ex-card > summary::-webkit-details-marker { display: none; }
.ex-summary-title { flex: 1; font-weight: 600; color: #1e3a5f; min-width: 0; }
.content-ex-toolbar-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.content-ex-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.content-ex-filter select { width: auto; min-width: 160px; }
.content-ex-move {
  display: inline-flex;
  gap: 2px;
  flex-shrink: 0;
}
.content-ex-move form { margin: 0; }
.content-ex-move .btn { width: auto; min-width: 32px; padding: 2px 8px; }
.content-ex-batch {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
}
.content-ex-batch-item {
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 12px;
  margin: 0 0 14px;
  background: #fff;
}
.content-ex-batch-item legend {
  font-weight: 600;
  padding: 0 6px;
}
.content-ex-batch-discard { margin-top: 8px; }
.content-ex-new { margin-top: 16px; }
.content-ex-new > summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.content-ex-new > summary::-webkit-details-marker { display: none; }
.content-ex-preview-line { margin: 0 0 10px; }

.material-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.material-list-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.material-list-item strong { flex: 1; min-width: 140px; }
.material-viewer { max-width: 1100px; margin: 0 auto; }
.material-viewer.is-protected,
.lesson-materials.is-protected {
  -webkit-user-select: none;
  user-select: none;
}
.material-stage {
  margin-top: 16px;
  background: #0b1220;
  border-radius: 16px;
  overflow: hidden;
  min-height: 60vh;
}
.material-frame {
  display: block;
  width: 100%;
  height: min(78vh, 900px);
  border: 0;
  background: #111;
}
.material-video {
  display: block;
  width: 100%;
  max-height: min(78vh, 900px);
  margin: 0 auto;
  background: #000;
}
@media print {
  .material-viewer,
  .lesson-materials,
  .material-stage { display: none !important; }
}

.ex-card > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}
.ex-card > summary::-webkit-details-marker { display: none; }
.ex-type {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: #eff6ff;
  color: #1e3a5f;
  border: 1px solid #dbeafe;
  padding: 3px 8px;
  border-radius: 999px;
}
.ex-body { padding: 0 16px 16px; border-top: 1px solid #f1f5f9; }
[data-ex-block][hidden] { display: none !important; }
.content-preview-kann {
  background: #F8F9FA;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0 16px;
}
.content-preview-body { line-height: 1.55; }
.content-preview-body h3 { margin-top: 1.1em; }
.content-preview-ex { padding-left: 18px; }
.content-preview-ex li { margin: 8px 0; }
@media (max-width: 980px) {
  .content-studio, .content-lang-grid, .content-meta-row { grid-template-columns: 1fr; }
  .content-nav { position: static; max-height: 280px; }
}

/* —— Mein Kurs (Schüler) —— */
.mycourse-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 22px 24px;
  background:
    radial-gradient(900px 240px at 100% 0%, rgba(59, 130, 246, 0.1), transparent 50%),
    #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.mycourse-hero h1 { margin: 4px 0 8px; }
.mycourse-hero .lead { margin: 0 0 8px; font-size: 1.15rem; font-weight: 600; color: #1e3a5f; }
.mycourse-status { text-align: right; }
.mycourse-status .badge { font-size: 13px; padding: 6px 12px; }
.mycourse-stats { margin: 0 0 8px; }
.mycourse-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}
.mycourse-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.mycourse-panel h2 { margin: 0 0 10px; font-size: 1.1rem; color: #1e3a5f; }
.mycourse-panel h3 { margin: 0 0 8px; font-size: 1.2rem; }
.mycourse-live-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.mycourse-live-list li { border-top: 1px solid #f1f5f9; }
.mycourse-live-list a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  color: inherit;
}
.mycourse-live-list a:hover { color: var(--blue-strong); }
.mycourse-book { margin-top: 14px; max-width: 520px; }
@media (max-width: 860px) {
  .mycourse-grid { grid-template-columns: 1fr; }
  .mycourse-status { text-align: left; }
}

.jobs-path-grid, .jobs-ind-grid, .jobs-list, .jobs-split, .company-modal-grid {
  display: grid;
  gap: 16px;
}
.jobs-path-grid, .jobs-split, .company-modal-grid { grid-template-columns: 1fr 1fr; }
.jobs-ind-grid { grid-template-columns: repeat(3, 1fr); }
.jobs-path-card, .jobs-ind-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  color: inherit;
}
.jobs-ind-card.has-photo {
  padding: 0;
  overflow: hidden;
  text-decoration: none;
}
.jobs-ind-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1e3a5f center / cover no-repeat;
  background-image: var(--ind-img);
}
.jobs-ind-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.jobs-ind-card:hover .jobs-ind-media img { transform: scale(1.05); }
.jobs-ind-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, .35) 100%);
  pointer-events: none;
}
.jobs-ind-copy {
  display: block;
  padding: 16px 18px 18px;
}
.jobs-ind-copy h3 { margin: 0 0 6px; font-size: 1.05rem; }
.jobs-ind-copy .meta { margin: 0; }
.jobs-path-card:hover, .jobs-ind-card:hover, .jobs-ind-card.is-on {
  border-color: #1e3a5f;
  color: inherit;
}
.jobs-ind-card.is-on {
  box-shadow: 0 0 0 2px #1e3a5f, var(--shadow);
}
.jobs-path-code {
  display: inline-block;
  font-weight: 800;
  letter-spacing: .04em;
  background: #1e3a5f;
  color: #fff;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 12px;
  margin-right: 8px;
}
.jobs-path-link { display: inline-block; margin-top: 10px; font-weight: 650; color: #1e3a5f; }
.jobs-intro-list { margin: 22px 0 0; padding-left: 18px; max-width: 52rem; }
.jobs-intro-list li { margin: 8px 0; }
.jobs-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.job-card {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.job-card-body { padding: 20px 22px 8px; flex: 1; }
.job-card-body h3 { margin: 8px 0 6px; }
.job-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 22px 18px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}
.job-card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.job-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  background: #0f172a;
  color: #fff;
  border-radius: 6px;
  padding: 2px 8px;
}
.job-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.job-chips span {
  font-size: 12px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 8px;
  padding: 4px 8px;
}
.job-chips span.is-pay { background: #ecfdf5; color: #166534; }
body.modal-open { overflow: hidden; }
.company-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  align-items: stretch;
  justify-content: center;
  padding: 24px 12px;
}
.company-modal.is-open { display: flex; }
.company-modal[hidden] { display: none !important; }
.company-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }
.company-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
  margin: auto;
}
.company-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 8px;
  border-bottom: 1px solid var(--line);
}
.company-modal-header h2 { margin: 0 0 6px; font-size: 1.25rem; color: #1e3a5f; }
.company-modal-close {
  border: 0;
  background: #f1f5f9;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.company-modal-grid { padding: 8px 24px 24px; align-items: start; }
.company-modal-details h3, .company-modal-form-panel h3 { margin: 16px 0 8px; font-size: 1.05rem; color: #1e3a5f; }
.company-modal-steps { list-style: none; padding: 0; margin: 0; }
.company-modal-steps li { margin: 12px 0; display: flex; flex-direction: column; gap: 2px; }
.company-modal-form-panel {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 8px 16px 16px;
}
.company-modal-form textarea { min-height: 72px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
@media (max-width: 860px) {
  .jobs-path-grid, .jobs-ind-grid, .jobs-split, .company-modal-grid { grid-template-columns: 1fr; }
}

.ex-stack { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
.ex-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ex-card.is-done { border-color: #bbf7d0; }
.ex-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #1e3a5f;
  color: #fff;
}
.ex-num {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: #e8c48a;
  color: #1e3a5f;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.ex-type {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.9;
}
.ex-pts, .ex-ok, .ex-req {
  margin-left: auto;
  font-size: 12px;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 4px 10px;
}
.ex-ok { background: #16a34a; margin-left: 0; }
.ex-req { margin-left: 0; background: rgba(232,196,138,.2); color: #e8c48a; }
.ex-prompt { margin: 16px 16px 8px; font-weight: 600; font-size: 1.05rem; }
.ex-choices, .ex-gap, .ex-match, .ex-order, .ex-speak, .ex-write, .ex-inline, .ex-article, .ex-audio { padding: 4px 16px 8px; }
.ex-choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  margin: 8px 0;
  cursor: pointer;
  background: #f8fafc;
  text-align: left;
  font-weight: 500;
}
.ex-choice > span:last-child {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}
.ex-choice input {
  margin-top: 5px;
  width: auto;
  flex-shrink: 0;
}
.ex-choice:has(input:checked) {
  border-color: #1e3a5f;
  background: #eef2f7;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}
.ex-choice-mark {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 8px;
  background: #1e3a5f;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ex-gap input { width: 100%; }
.ex-match { display: grid; gap: 10px; }
.ex-match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.ex-match-left {
  background: #eef2f7;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
}

/* Editor: Paare / Optionen */
.ex-editor { display: grid; gap: 14px; }
.ex-pair-editor, .ex-line-editor {
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 40%);
}
.ex-pair-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin-bottom: 12px;
}
.ex-pair-head, .ex-pair-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
}
.ex-pair-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}
.ex-pair-row {
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ex-pair-row input {
  margin: 0;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  padding: 10px 12px;
  font-weight: 500;
}
.ex-pair-link {
  text-align: center;
  color: #2563eb;
  font-weight: 700;
  font-size: 1.1rem;
}
.ex-line-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.ex-line-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: #1e3a5f;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.ex-opt-raw {
  margin-top: 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 8px 12px;
  background: #f8fafc;
}
.ex-opt-raw summary { cursor: pointer; font-weight: 600; color: #334155; }
.ex-live-preview {
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 14px;
  background: #eff6ff;
}
.ex-live-preview-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  margin-bottom: 12px;
}
.ex-live-preview-body .ex-card { margin: 0; box-shadow: none; }
.ex-card.is-preview { pointer-events: none; }
.ex-choice.is-static { cursor: default; }
.ex-preview-raw {
  white-space: pre-wrap;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 16px 12px;
}

/* Learner: Zuordnen */
.ex-pair-board { padding: 4px 16px 12px; }
.ex-pair-board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
  align-items: start;
}
.ex-pair-col-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #64748b;
}
.ex-pair-card {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 10px;
  text-align: left;
  border: 1px solid #dbe3ef;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 10px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.ex-pair-card:hover { border-color: #93c5fd; }
.ex-pair-card.is-active {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  transform: translateY(-1px);
}
.ex-pair-card.is-matched {
  border-color: #86efac;
  background: #f0fdf4;
}
.ex-pair-card-idx {
  grid-row: 1 / span 2;
  align-self: center;
  width: 28px; height: 28px;
  border-radius: 999px;
  background: #1e3a5f;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}
.ex-pair-card-text { font-weight: 650; line-height: 1.35; }
.ex-pair-card-pick {
  grid-column: 2;
  color: #2563eb;
  font-weight: 600;
}
.ex-pair-card.is-matched .ex-pair-card-pick { color: #15803d; }
.ex-pair-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-pair-pill {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 650;
  color: #1e3a5f;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background .15s, border-color .15s, opacity .15s;
}
.ex-pair-pill:hover { border-color: #2563eb; background: #eff6ff; }
.ex-pair-pill.is-used { opacity: 0.35; pointer-events: none; }
.ex-pair-pill.is-static, .ex-pair-card.is-static { cursor: default; pointer-events: none; }
.content-preview-ex-stack { margin-top: 8px; }
.content-preview-ex-stack .ex-card { box-shadow: var(--shadow); }

.ex-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.ex-chip {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: #1e3a5f;
}
.ex-chip.is-used { opacity: 0.35; pointer-events: none; }
.ex-order-built {
  min-height: 48px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #f8fafc;
}
.ex-order-built .ex-chip { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }
.ex-tf { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ex-tf .ex-choice {
  margin: 0;
  min-height: 72px;
  align-items: center;
  justify-content: flex-start;
  font-weight: 700;
}
.ex-audio audio { width: 100%; margin: 6px 0 10px; }
.ex-inline-text { font-size: 1.05rem; line-height: 2.1; font-weight: 500; }
.ex-inline-gap {
  display: inline-block;
  width: 7.5rem;
  margin: 0 4px;
  padding: 4px 8px;
  border: 0;
  border-bottom: 2px solid #1e3a5f;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: #1e3a5f;
}
.ex-inline-select {
  display: inline-block;
  margin: 0 4px;
  padding: 4px 8px;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  color: #1e3a5f;
  background: #eef2f7;
}
.ex-article { display: grid; gap: 10px; }
.ex-article-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px 12px;
}
.ex-article-noun { font-weight: 700; }
.ex-article-arts { display: flex; gap: 6px; }
.ex-art {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  color: #1e3a5f;
  cursor: pointer;
  min-width: 52px;
}
.ex-art.is-on {
  background: #1e3a5f;
  color: #fff;
  border-color: #1e3a5f;
}
.ex-dialogue .ex-chip { border-radius: 12px; max-width: 100%; text-align: left; white-space: normal; }
.ex-dialogue .ex-order-built { min-height: 72px; flex-direction: column; align-items: stretch; }
.ex-speak-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 8px 0 12px; }
.ex-speak.is-phonetik {
  border-left: 3px solid #0f766e;
  background: linear-gradient(90deg, #f0fdfa 0%, transparent 70%);
  border-radius: 0 12px 12px 0;
}
.speak-stats .school-stat.is-active {
  border-color: #1e3a5f;
  box-shadow: 0 0 0 1px #1e3a5f inset;
}
.speak-phonetik-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.speak-phonetik-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.speak-phonetik-chip:hover {
  border-color: #0f766e;
  transform: translateY(-1px);
}
.speak-phonetik-chip strong { font-size: 0.92rem; line-height: 1.3; }
.speak-phonetik-chip span { color: #64748b; font-size: 12px; font-weight: 600; }
.speak-filter .set-actions { margin-top: 4px; }
.speak-ai-out {
  white-space: pre-wrap;
  font: inherit;
  background: #f8fafc;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}
.speak-item.is-open { border-color: #fcd34d; }
.speak-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.speak-feedback { white-space: pre-wrap; margin: 0 0 12px; }
.speak-ai-btn { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.speak-rubric-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 900px) {
  .speak-rubric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ex-rec { min-width: 140px; }
.ex-rec-status { color: var(--muted); font-size: 0.92rem; }
.ex-foot { padding: 8px 16px 16px; }
.ex-result {
  margin: 0 16px 16px;
  padding: 12px 14px;
  border-radius: 12px;
  white-space: pre-wrap;
}
.ex-result.flash-success { background: #ecfdf5; color: #166534; }
.ex-result.flash-error { background: #fef2f2; color: #991b1b; }
.mock-stage { max-width: 720px; }
.mock-timer {
  font-size: 2.4rem;
  font-weight: 700;
  color: #1e3a5f;
  letter-spacing: -0.04em;
  margin: 8px 0 16px;
}
.mock-timer.is-low { color: #dc2626; }
.visa-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 16px;
  margin-bottom: 12px;
  align-items: start;
}
.visa-row h3 { margin: 0 0 6px; }
.vocab-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.vocab-flip h2 { font-size: 1.8rem; }

/* —— Berufsspur /spur —— */
.track-hub { --track-ink: #0f172a; --track-mute: #64748b; }
.track-stage {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 280px;
  margin-bottom: 28px;
  padding: 28px 28px 32px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 24px;
  align-items: end;
  background:
    radial-gradient(900px 320px at 12% 0%, rgba(253, 224, 71, 0.45), transparent 55%),
    radial-gradient(700px 280px at 100% 100%, rgba(134, 239, 172, 0.35), transparent 50%),
    linear-gradient(145deg, #fff8dc 0%, #f8fafc 48%, #ecfdf5 100%);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  animation: track-rise .55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.track-stage.has-photo {
  background-image: var(--track-hero);
  background-size: cover;
  background-position: center;
  color: #fff;
  min-height: 340px;
}
.track-stage.has-photo h1,
.track-stage.has-photo .track-stage-kicker,
.track-stage.has-photo .track-stage-lead,
.track-stage.has-photo .track-ready-label,
.track-stage.has-photo .track-ready-label strong,
.track-stage.has-photo .track-ready-label span {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.45);
}
.track-stage-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.42) 48%, rgba(15, 23, 42, 0.18) 100%);
  opacity: 0;
}
.track-stage.has-photo .track-stage-veil { opacity: 1; }
.track-stage-copy,
.track-stage-ready { position: relative; z-index: 1; }
.track-stage-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--track-mute);
}
.track-stage.has-photo .track-stage-kicker { color: rgba(255, 255, 255, 0.78); }
.track-stage-badge { margin: 0 0 10px; }
.track-stage-badge span {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ld-yellow, #fde047);
  color: #713f12;
  font-size: 12px;
  font-weight: 800;
}
.track-stage h1 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.track-stage-lead {
  margin: 0 0 18px;
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #334155;
}
.track-stage.has-photo .track-stage-lead { color: rgba(255, 255, 255, 0.9); }
.track-stage-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.track-stage.has-photo .btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.track-stage.has-photo .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}
.track-stage-ready {
  justify-self: end;
  align-self: center;
}
.track-ready-ring {
  position: relative;
  width: 112px;
  height: 112px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.18));
}
.track-ready-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.track-ready-track,
.track-ready-value {
  fill: none;
  stroke-width: 8;
}
.track-ready-track { stroke: rgba(255, 255, 255, 0.22); }
.track-stage:not(.has-photo) .track-ready-track { stroke: #e2e8f0; }
.track-ready-value {
  stroke: var(--ld-yellow, #fde047);
  stroke-linecap: round;
  stroke-dasharray: var(--ring-c);
  stroke-dashoffset: var(--ring-c);
  animation: track-ring-draw 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
.track-ready-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  transform: rotate(0);
}
.track-ready-label strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}
.track-ready-label span {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}
.track-stage:not(.has-photo) .track-ready-label { color: var(--track-ink); }

.track-sec-head { margin-bottom: 14px; }
.track-sec-head h2 { margin: 0 0 4px; font-size: 1.2rem; font-weight: 800; }
.track-sec-head .meta { margin: 0; }
.track-mini-kicker {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--track-mute);
}

.track-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 16px;
}
.track-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  border: 2px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  animation: track-rise .5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.track-tile:nth-child(2) { animation-delay: .04s; }
.track-tile:nth-child(3) { animation-delay: .08s; }
.track-tile:nth-child(4) { animation-delay: .12s; }
.track-tile:nth-child(5) { animation-delay: .16s; }
.track-tile:nth-child(6) { animation-delay: .2s; }
.track-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}
.track-tile.is-track-on {
  border-color: #facc15;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.28), 0 14px 36px rgba(15, 23, 42, 0.1);
}
.track-tile-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(145deg, #e2e8f0, #f8fafc),
    var(--tile-img) center / cover;
}
.track-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.track-tile:hover .track-tile-media img { transform: scale(1.06); }
.track-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 18%, rgba(15, 23, 42, 0.55) 55%, rgba(15, 23, 42, 0.88) 100%);
  pointer-events: none;
}
.track-tile-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 14px 12px;
  color: #fff;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.55);
}
.track-tile-caption h3,
.track-tile-caption p {
  color: #fff !important;
}
.track-tile-caption h3 {
  margin: 0 0 2px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}
.track-tile-caption p {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.92;
  line-height: 1.35;
}
.track-tile-live {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ld-yellow, #fde047);
  color: #713f12;
  font-size: 11px;
  font-weight: 800;
}
.track-tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 14px;
}
.track-tile-link {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0369a1;
  text-decoration: none;
}
.track-tile-key {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--track-mute);
}

.track-panel {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  padding: 20px 22px;
  margin-top: 16px;
}
.track-advice-result {
  background: linear-gradient(135deg, #fffbeb, #ecfdf5);
  border-radius: 22px;
  padding: 20px 22px;
  margin-bottom: 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  animation: track-rise .45s ease both;
}
.track-advice-result h2 { margin: 0 0 8px; }
.track-advice-result p { margin: 0 0 14px; color: #334155; line-height: 1.5; }
.track-advise-form {
  display: grid;
  gap: 8px;
  max-width: 520px;
}
.track-advise-form label { margin-top: 6px; font-weight: 700; }
.track-advise-form input { width: 100%; }
.track-advise-box summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1.05rem;
  list-style: none;
}
.track-advise-box summary::-webkit-details-marker { display: none; }

.track-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin-top: 16px;
}
.track-hub-grid > .track-panel { margin-top: 0; }
.track-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.track-card-head h2 { margin: 0; font-size: 1.15rem; }
.track-brief-body {
  margin: 0 0 12px;
  white-space: pre-wrap;
  line-height: 1.55;
  color: #1e293b;
}
.track-tip {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.95rem;
  line-height: 1.45;
}
.track-ready-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.track-ready-list li a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
  font-weight: 600;
  transition: background .2s ease;
}
.track-ready-list li a:hover { background: #f1f5f9; }
.track-ready-list li.is-ok a {
  background: #f0fdf4;
  color: #166534;
}
.track-ready-list li.is-ok a::before { content: "✓ "; font-weight: 800; }
.track-ready-list li.is-miss a::before { content: "○ "; color: #b45309; }

.track-plan-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
}
.track-plan-rail a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, #f8fafc, #fff);
  border: 1px solid #e2e8f0;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.track-plan-rail a:hover {
  transform: translateY(-2px);
  border-color: #fde047;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.track-plan-num {
  width: 28px;
  height: 28px;
  display: grid;
  place-content: center;
  border-radius: 999px;
  background: var(--ld-navy, #0f172a);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.track-plan-mins {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--track-mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.track-plan-rail strong {
  font-size: 1rem;
  line-height: 1.3;
}

.track-pitch-text {
  white-space: pre-wrap;
  font: inherit;
  margin: 0;
  line-height: 1.55;
  background: #f8fafc;
  border: 0;
  border-radius: 16px;
  padding: 14px 16px;
}
.track-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}
.track-sit-list { display: flex; flex-direction: column; gap: 10px; }
.track-sit-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
}
.track-sit-item strong { display: block; margin-bottom: 2px; }
.track-sit-item .meta { margin: 0; }
.track-sit-item .btn { flex-shrink: 0; }
.track-more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 14px 0 0;
  font-weight: 700;
}
.track-more-links a { text-decoration: none; }
.track-vocab-grid { margin-top: 8px; }
.track-subh { margin: 18px 0 8px; font-size: 1rem; }
.track-phrase-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.track-phrase-list li {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
}
.track-coach-form { display: grid; gap: 8px; }
.track-coach-form textarea { width: 100%; min-height: 96px; }
.track-coach-answer {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #eff6ff;
  white-space: pre-wrap;
  line-height: 1.5;
}
.track-jobs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.track-jobs-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
}
.track-job-main {
  flex: 1;
  min-width: 180px;
  text-decoration: none;
  color: inherit;
}
.track-job-main strong { display: block; }
.track-job-main .meta { display: block; margin-top: 2px; }
.track-job-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.track-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 8px;
}
.track-quick a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.track-quick a:hover {
  transform: translateY(-2px);
  background: #fef9c3;
}

@keyframes track-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes track-ring-draw {
  to { stroke-dashoffset: var(--ring-o); }
}
@media (prefers-reduced-motion: reduce) {
  .track-stage,
  .track-tile,
  .track-advice-result { animation: none; }
  .track-ready-value { animation: none; stroke-dashoffset: var(--ring-o); }
  .track-tile:hover,
  .track-tile:hover .track-tile-media img,
  .jobs-ind-card:hover .jobs-ind-media img { transform: none; }
}
@media (max-width: 800px) {
  .track-stage {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 22px 18px 24px;
  }
  .track-stage.has-photo { min-height: 300px; }
  .track-stage h1 { max-width: none; }
  .track-stage-ready { justify-self: start; }
  .track-sit-item { flex-direction: column; align-items: stretch; }
}
@media (max-width: 800px) {
  .ex-match-row, .visa-row, .ex-tf, .ex-article-row, .ex-pair-board-grid, .ex-pair-head, .ex-pair-row { grid-template-columns: 1fr; }
  .ex-pair-link { display: none; }
  .ex-pair-head span:nth-child(2), .ex-pair-head span:nth-child(4) { display: none; }
}

/* Admin Stellenbörse (Career-style) */
.jobs-admin-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 16px; }
.jobs-legend { margin: 8px 0 0; }
.jobs-admin-stats { margin: 0 0 16px; }
.school-stat-ok { border-color: #bbf7d0; background: #f0fdf4; }
.school-stat-ok strong { color: #166534; }
.school-stat-free { border-color: #a7f3d0; background: #ecfdf5; }
.school-stat-free strong { color: #0f766e; }
.school-stat-warn { border-color: #fde68a; background: #fffbeb; }
.school-stat-warn strong { color: #92400e; }
.jobs-health { margin-bottom: 16px; background: #fffbeb; border-color: #fde68a; }
.jobs-health h3 { margin: 0 0 10px; color: #92400e; }
.jobs-health ul { margin: 0 0 10px; padding-left: 1.1rem; }
.jobs-health-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 8px 0 4px; }
.jobs-health-label.is-critical { color: #b91c1c; }
.jobs-health-label.is-warn { color: #b45309; }
.jobs-filter-bar { margin-bottom: 16px; }
.jobs-filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 10px 12px;
  align-items: end;
}
.jobs-filter-grow { min-width: 0; }
.jobs-filter-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.jobs-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}
.jobs-list-head h3 { margin: 0; }
.jobs-view-toggle { display: flex; gap: 6px; }
.admin-jobs-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) {
  .admin-jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .admin-jobs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.job-admin-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.job-admin-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 12px 28px -8px rgba(30, 58, 95, 0.16);
}
.job-admin-card.is-active {
  border-color: #1e3a5f;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.14);
}
.job-admin-card-accent { height: 4px; width: 100%; flex-shrink: 0; }
.job-admin-card-accent--ausbildung { background: linear-gradient(90deg, #3b82f6, #1e3a5f); }
.job-admin-card-accent--fachkraft { background: linear-gradient(90deg, #6366f1, #4338ca); }
.job-admin-card-accent--praktikum { background: linear-gradient(90deg, #f59e0b, #d97706); }
.job-admin-card-accent--fsj { background: linear-gradient(90deg, #10b981, #059669); }
.job-admin-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 12px;
  gap: 10px;
}
.job-admin-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.job-admin-card-body h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #0f172a;
}
.jobs-title-vi { margin: 0 0 4px; font-size: 13px; color: #64748b; line-height: 1.35; }
.jobs-company { margin: 0; font-weight: 700; color: #334155; font-size: 14px; }
.jobs-excerpt { margin: 0; font-size: 12px; color: #64748b; line-height: 1.45; }
.jobs-chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.badge-ok { background: #ecfdf5; color: #166534; border: 1px solid #bbf7d0; }
.badge-warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.job-admin-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  font-size: 12px;
  margin: 0;
}
.job-admin-card-meta .span-2 { grid-column: 1 / -1; }
.job-admin-card-meta dt { color: #94a3b8; font-weight: 600; margin: 0; }
.job-admin-card-meta dd { color: #334155; font-weight: 600; margin: 2px 0 0; word-break: break-word; }
.job-admin-spots {
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  padding: 10px 12px;
}
.job-admin-spots-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 6px;
}
.job-admin-spots-label span { font-weight: 600; color: #64748b; }
.job-admin-spots-label strong { color: #64748b; }
.job-admin-spots-label strong.is-free { color: #0f766e; }
.job-admin-spots-bar {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.job-admin-spots-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1e3a5f, #2563eb);
}
.job-admin-spots-fill.is-full { background: linear-gradient(90deg, #94a3b8, #64748b); }
.job-admin-spots-sub {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #94a3b8;
  margin-top: 6px;
}
.job-admin-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
}
.job-admin-card-footer form { display: inline; margin: 0; }
.jobs-status {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}
.jobs-status.is-open { background: #ecfdf5; color: #166534; }
.jobs-status.is-filled { background: #ede9fe; color: #5b21b6; }
.jobs-status.is-rejected { background: #fef2f2; color: #991b1b; }
.jobs-status.is-pending { background: #fffbeb; color: #92400e; }
.jobs-status.is-closed { background: #f1f5f9; color: #64748b; }
.jobs-table-wrap { overflow-x: auto; padding: 0; }
.jobs-admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.jobs-admin-table th,
.jobs-admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.jobs-admin-table th { background: #f8fafc; font-size: 12px; color: #64748b; }
.jobs-admin-table tr.is-active { background: #eff6ff; }
.jobs-row-actions { white-space: nowrap; }
.jobs-row-actions a { margin-right: 8px; font-weight: 600; }
.jobs-edit-form { max-width: 920px; margin-bottom: 20px; }

/* Stellen Studio / Vorlagen */
.jobs-studio { margin: 0 0 20px; }
.jobs-studio-hero {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end;
  margin: 0 0 14px; padding: 18px 20px; border-radius: 18px;
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(14, 165, 233, .1), transparent 50%),
    linear-gradient(135deg, #f8fafc, #eff6ff 55%, #f0fdfa);
  border: 1px solid #e2e8f0;
}
.jobs-studio-kicker {
  margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #0284c7;
}
.jobs-studio-hero h2 {
  margin: 0; font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 800;
  letter-spacing: -.02em; color: #0f172a;
}
.jobs-studio-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.jobs-studio-badges .pl-chip.is-ok { background: #ecfdf5; color: #047857; }
.jobs-studio-badges .pl-chip.is-warn { background: #fff7ed; color: #c2410c; }
.jobs-tpl {
  margin: 0 0 14px; padding: 14px 16px; border-radius: 16px;
  background: #fff; border: 1px solid #e2e8f0;
}
.jobs-tpl-head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  align-items: flex-end; margin-bottom: 12px;
}
.jobs-tpl-head strong { display: block; font-size: 15px; color: #0f172a; }
.jobs-tpl-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.jobs-tpl-filters select, .jobs-tpl-filters input {
  font-size: 13px; min-width: 140px; margin: 0;
}
.jobs-tpl-filters input[type="search"] { min-width: 180px; flex: 1; }
.jobs-tpl-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px; max-height: 340px; overflow: auto; padding: 2px;
}
.jobs-tpl-card {
  text-align: left; appearance: none; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc, #fff);
  border: 1px solid #e2e8f0; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.jobs-tpl-card:hover {
  transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15, 23, 42, .07);
  border-color: #93c5fd;
}
.jobs-tpl-card.is-on {
  border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37, 99, 235, .18);
  background: #eff6ff;
}
.jobs-tpl-ind {
  font-size: 10px; font-weight: 750; letter-spacing: .06em;
  text-transform: uppercase; color: #0284c7;
}
.jobs-tpl-card strong { font-size: 13px; line-height: 1.3; color: #0f172a; }
.jobs-tpl-card em { font-style: normal; font-size: 12px; color: #64748b; line-height: 1.3; }
.jobs-tpl-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.jobs-tpl-empty { margin: 8px 0 0; }
.jobs-ai-panel {
  margin: 0 0 16px; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(135deg, #f0f9ff, #f8fafc);
  border: 1px solid #bae6fd;
}
.jobs-ai-panel-head { margin-bottom: 10px; }
.jobs-ai-panel-head strong { display: block; font-size: 14px; color: #0f172a; }
.jobs-ai-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px;
}
.jobs-ai-actions .meta { font-size: 12px; color: #0369a1; }

.jobs-section-label {
  margin: 18px 0 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #64748b;
}
.jobs-bi-banner {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
}
.jobs-bi-banner.is-ok { background: #ecfdf5; border: 1px solid #bbf7d0; color: #166534; }
.jobs-bi-banner.is-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.jobs-lang-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.jobs-lang-tab {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  border-radius: 12px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.jobs-lang-tab.is-on { background: #1e3a5f; border-color: #1e3a5f; color: #fff; }
.jobs-lang-panel.is-hidden { display: none; }
@media (max-width: 900px) {
  .jobs-filter-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .jobs-filter-grid { grid-template-columns: 1fr; }
}

/* ATS Pipeline / Kanban */
.jobs-pipe-kpi { margin-bottom: 14px; }
.jobs-kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(200px, 1fr));
  gap: 12px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 8px;
}
.jobs-kanban-col {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  min-height: 120px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.jobs-kanban-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
}
.jobs-kanban-head strong { font-size: 13px; color: #1e3a5f; }
.jobs-kanban-body { padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.jobs-app-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.jobs-app-card.is-open { border-color: #93c5fd; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12); }
.jobs-app-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.jobs-app-card-top strong { font-size: 14px; color: #0f172a; line-height: 1.3; }
.jobs-app-meta { margin: 4px 0 6px; font-size: 12px; }
.jobs-app-msg { margin: 6px 0; font-size: 13px; color: #475569; line-height: 1.4; }
.jobs-app-quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.jobs-app-status-form select { font-size: 12px; max-width: 140px; }
.jobs-app-actions { margin-top: 8px; }
.jobs-app-actions > summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  color: #1e3a5f;
  list-style: none;
}
.jobs-app-actions > summary::-webkit-details-marker { display: none; }
.jobs-app-actions-body { margin-top: 10px; display: flex; flex-direction: column; gap: 12px; }
.jobs-app-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #eef2f7;
}
.jobs-app-block label { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .03em; }
.jobs-app-block textarea,
.jobs-app-block input[type="url"],
.jobs-app-block input[type="datetime-local"] {
  width: 100%;
  font-size: 13px;
}
.jobs-pipe-st.is-neu { background: #eff6ff; color: #1d4ed8; }
.jobs-pipe-st.is-screening { background: #f0f9ff; color: #0369a1; }
.jobs-pipe-st.is-gespraech { background: #fffbeb; color: #b45309; }
.jobs-pipe-st.is-angebot { background: #ecfdf5; color: #166534; }
.jobs-pipe-st.is-abgelehnt { background: #fef2f2; color: #991b1b; }
.jobs-apps-list { display: flex; flex-direction: column; gap: 12px; }
.jobs-apps-list .jobs-app-card { padding: 14px 16px; }
@media (max-width: 1100px) {
  .jobs-kanban { grid-template-columns: repeat(5, minmax(220px, 1fr)); }
}

/* Partner-Leads CRM – Soft-UI */
.pl-page { --pl-ink: #0f172a; --pl-muted: #64748b; --pl-line: #e2e8f0; --pl-soft: #f8fafc; --pl-blue: #1e3a5f; }
.pl-page .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.pl-hero {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-end;
  margin: 0 0 18px; padding: 22px 24px;
  border-radius: 20px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(37, 99, 235, 0.12), transparent 55%),
    linear-gradient(135deg, #f8fafc 0%, #eef2ff 48%, #f0f9ff 100%);
  border: 1px solid #e2e8f0;
  animation: pl-fade .45s ease both;
}
.pl-kicker {
  margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #2563eb;
}
.pl-hero h1 {
  margin: 0; font-size: clamp(1.55rem, 2.4vw, 2rem); font-weight: 800;
  letter-spacing: -.03em; color: var(--pl-ink); line-height: 1.15;
}
.pl-hero-lead { margin: 8px 0 0; max-width: 42rem; color: var(--pl-muted); font-size: 14px; line-height: 1.45; }
.pl-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pl-seg, .pl-source-seg {
  display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.85);
  border: 1px solid #e2e8f0; gap: 2px;
}
.pl-seg a, .pl-source-seg a {
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 650;
  color: #475569; text-decoration: none; transition: background .15s ease, color .15s ease;
}
.pl-seg a.is-on, .pl-source-seg a.is-on { background: #1e3a5f; color: #fff; }
.set-page .pl-seg.set-tabs {
  display: flex; flex-wrap: wrap; width: 100%;
  margin: 0 0 18px; padding: 4px;
  border-radius: 16px; background: #fff;
  border: 1px solid #e2e8f0; gap: 4px;
}
.set-page .pl-seg.set-tabs a {
  flex: 1 1 auto; text-align: center;
  padding: 9px 12px; border-radius: 12px;
}
.set-page .pl-seg.set-tabs a.is-on {
  background: #1e3a5f; color: #fff;
  box-shadow: 0 4px 12px rgba(30, 58, 95, .18);
}
.pl-kpi { margin-bottom: 16px; }
.pl-brief-rail {
  margin: 0 0 16px; padding: 14px 16px; border-radius: 16px;
  background: #fff; border: 1px solid var(--pl-line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.pl-brief-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; }
.pl-brief-head strong { font-size: 14px; color: var(--pl-ink); }
.pl-brief-sla { font-size: 12px; font-weight: 700; color: #b45309; background: #fffbeb; padding: 3px 8px; border-radius: 999px; }
.pl-brief-track {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory;
}
.pl-brief-item {
  flex: 0 0 min(240px, 78vw); scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px; border-radius: 14px; text-decoration: none; color: inherit;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  transition: transform .18s ease, box-shadow .18s ease;
  animation: pl-rise .4s ease both; animation-delay: calc(var(--pl-i, 0) * 40ms);
}
.pl-brief-item:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15, 23, 42, .08); }
.pl-brief-item strong { font-size: 14px; color: var(--pl-ink); }
.pl-brief-item span { font-size: 12px; color: var(--pl-muted); line-height: 1.35; }
.pl-brief-item.is-urgent, .pl-brief-item.is-high { border-color: #fecaca; background: linear-gradient(180deg, #fff, #fef2f2); }
.pl-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0 0 12px; padding: 10px 12px; border-radius: 14px;
  background: #fff; border: 1px solid var(--pl-line);
}
.pl-toolbar-search { flex: 1 1 200px; min-width: 160px; }
.pl-toolbar-search input, .pl-toolbar select {
  width: 100%; margin: 0; font-size: 13px;
}
.pl-toolbar select { width: auto; min-width: 120px; }
.pl-stage-nav { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; }
.pl-stage-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px; text-decoration: none;
  font-size: 12px; font-weight: 650; color: #475569;
  background: #f1f5f9; border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pl-pill b { font-size: 11px; opacity: .75; }
.pl-pill:hover { background: #e2e8f0; }
.pl-pill.is-on { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }
.pl-pill.is-on b { opacity: 1; }
.pl-create {
  margin: 0 0 12px; border-radius: 16px; background: #fff; border: 1px solid var(--pl-line);
  overflow: hidden;
}
.pl-create > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; font-weight: 700; color: var(--pl-ink);
}
.pl-create > summary::-webkit-details-marker { display: none; }
.pl-create > summary em {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: #eff6ff; color: #2563eb; font-style: normal; font-weight: 800;
  transition: transform .2s ease;
}
.pl-create[open] > summary em { transform: rotate(45deg); }
.pl-create-body { padding: 0 16px 16px; border-top: 1px solid #f1f5f9; padding-top: 14px; }
.pl-create-opts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 10px; }
.pl-bulk {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0 0 16px; padding: 10px 12px; border-radius: 12px;
  background: var(--pl-soft); border: 1px dashed #cbd5e1;
}
.pl-bulk-label { font-size: 12px; font-weight: 700; color: var(--pl-muted); text-transform: uppercase; letter-spacing: .04em; }
.pl-bulk select { font-size: 13px; max-width: 150px; }

.pl-kanban {
  display: grid; grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 8px;
}
.pl-kanban-col {
  background: #fff; border: 1px solid var(--pl-line); border-radius: 16px;
  min-height: 140px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  overflow: hidden;
}
.pl-kanban-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(180deg, #f8fafc, #fff);
}
.pl-kanban-head strong { font-size: 13px; color: var(--pl-blue); }
.pl-kanban-head span {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  display: inline-grid; place-items: center; font-size: 11px; font-weight: 700;
  background: #e2e8f0; color: #334155;
}
.pl-kanban-col.is-neu { border-top: 3px solid #3b82f6; }
.pl-kanban-col.is-kontakt { border-top: 3px solid #0ea5e9; }
.pl-kanban-col.is-qualifiziert { border-top: 3px solid #10b981; }
.pl-kanban-col.is-angebot { border-top: 3px solid #f59e0b; }
.pl-kanban-body { padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.pl-kanban-more { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0 0; font-size: 13px; }
.pl-empty { margin: 8px; font-size: 12px; color: var(--pl-muted); text-align: center; }

.pl-card {
  background: #fff; border: 1px solid var(--pl-line); border-radius: 14px;
  padding: 12px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  animation: pl-rise .35s ease both;
}
.pl-card:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(15, 23, 42, .07); }
.pl-card.is-open { border-color: #93c5fd; box-shadow: 0 0 0 2px rgba(59, 130, 246, .14); }
.pl-card.is-overdue { border-left: 3px solid #dc2626; }
.pl-card.is-sla { box-shadow: 0 0 0 1px rgba(245, 158, 11, .35); }
.pl-card.is-prio-urgent { background: linear-gradient(180deg, #fff, #fff7f7); }
.pl-card-top { display: flex; gap: 10px; align-items: flex-start; }
.pl-avatar {
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: linear-gradient(145deg, #dbeafe, #eff6ff); color: #1d4ed8;
}
.pl-avatar-lg { width: 48px; height: 48px; border-radius: 14px; font-size: 15px; }
.pl-avatar-sm { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
.pl-card-title { flex: 1; min-width: 0; }
.pl-card-name {
  display: block; font-size: 14px; font-weight: 750; color: var(--pl-ink);
  text-decoration: none; line-height: 1.3;
}
.pl-card-name:hover { color: #2563eb; }
.pl-card-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--pl-muted); }
.pl-check { margin: 0; }
.pl-chip-row { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 0; }
.pl-chip, .pl-prio {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; background: #f1f5f9; color: #475569;
}
.pl-chip.is-warn { background: #fff7ed; color: #c2410c; }
.pl-prio.is-urgent { background: #fef2f2; color: #b91c1c; }
.pl-prio.is-high { background: #fff7ed; color: #c2410c; }
.pl-prio.is-low { background: #f8fafc; color: #94a3b8; }
.pl-score {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; padding: 2px 7px; border-radius: 999px;
  font-size: 11px; font-weight: 800; background: #e2e8f0; color: #334155;
}
.pl-score.is-hot { background: #fef2f2; color: #b91c1c; }
.pl-score.is-warm { background: #fffbeb; color: #b45309; }
.pl-score.is-cold { background: #f1f5f9; color: #64748b; }
.pl-next {
  margin: 10px 0 0; padding: 8px 10px; border-radius: 10px;
  background: #f8fafc; font-size: 12px; color: var(--pl-muted);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline;
}
.pl-next strong { color: var(--pl-ink); }
.pl-next em { font-style: normal; color: #64748b; }
.pl-next.is-late { background: #fef2f2; color: #991b1b; }
.pl-next.is-late strong { color: #991b1b; }
.pl-card-msg { margin: 8px 0 0; font-size: 13px; color: #475569; line-height: 1.4; }
.pl-card-foot {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid #f1f5f9;
}
.pl-status-form select { font-size: 12px; max-width: 130px; }

.pl-workspace {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .95fr);
  gap: 16px; align-items: start;
}
.pl-list { display: flex; flex-direction: column; gap: 10px; }
.pl-detail {
  position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto;
  padding: 4px; border-radius: 18px;
}
.pl-detail.has-lead {
  padding: 0; background: #fff; border: 1px solid var(--pl-line);
  box-shadow: 0 8px 28px rgba(15, 23, 42, .06);
}
.pl-detail-hero {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 18px 14px;
  background: linear-gradient(135deg, #f8fafc, #eff6ff 70%);
  border-bottom: 1px solid #eef2f7;
}
.pl-detail-hero h2 { margin: 0; font-size: 1.2rem; letter-spacing: -.02em; color: var(--pl-ink); }
.pl-detail-hero p { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pl-id { font-size: 12px; color: var(--pl-muted); font-weight: 650; }
.pl-ai-brief {
  margin: 12px 14px 0; padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(135deg, #f0f9ff, #f8fafc); border: 1px solid #bae6fd;
  font-size: 13px; line-height: 1.45; color: #0f172a;
}
.pl-ai-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
.pl-action-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 12px 14px 0;
}
.pl-btn-danger { color: #b91c1c !important; }
.pl-btn-danger:hover { background: #fef2f2 !important; }
.pl-delete-form { margin-left: auto; }
.pl-panel {
  margin: 0 14px 12px; padding: 14px; border-radius: 14px;
  background: #f8fafc; border: 1px solid #eef2f7;
  display: flex; flex-direction: column; gap: 8px;
}
.pl-panel.is-warn { background: #fff7ed; border-color: #fed7aa; }
.pl-panel-title { font-size: 13px; font-weight: 750; color: var(--pl-ink); }
.pl-panel label { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .03em; }
.pl-contact { display: flex; flex-direction: column; gap: 2px; }
.pl-contact strong { font-size: 15px; }
.pl-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 0;
}
.pl-facts dt { font-size: 10px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; }
.pl-facts dd { margin: 2px 0 0; font-size: 13px; font-weight: 650; color: var(--pl-ink); }
.pl-job-title { margin: 0; font-weight: 700; color: var(--pl-ink); }
.pl-message { margin: 0; font-size: 13px; color: #475569; line-height: 1.45; }
.pl-linked { margin: 0; font-size: 13px; }
.pl-job-actions, .pl-ai-mail-actions, .pl-dupe-row {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.pl-reject-form { display: flex; gap: 6px; align-items: center; }
.pl-reject-form input { width: 120px; font-size: 13px; }
.pl-match-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pl-match-list li {
  display: flex; gap: 10px; align-items: center; padding: 8px;
  background: #fff; border-radius: 10px; border: 1px solid #eef2f7;
}
.pl-match-list strong { display: block; font-size: 13px; }
.pl-match-list span { font-size: 11px; color: var(--pl-muted); }
.pl-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 14px 12px;
}
.pl-grid-2 .pl-panel { margin: 0; }
.pl-acc {
  margin: 0 14px 12px; border-radius: 14px; background: #fff;
  border: 1px solid var(--pl-line); overflow: hidden;
}
.pl-acc > summary {
  list-style: none; cursor: pointer; padding: 12px 14px;
  font-weight: 700; font-size: 13px; color: var(--pl-ink);
}
.pl-acc > summary::-webkit-details-marker { display: none; }
.pl-acc-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.pl-tone-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-tone {
  appearance: none; border: 1px solid #e2e8f0; background: #fff; color: #475569;
  padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 650;
  text-decoration: none; cursor: pointer;
}
.pl-tone.is-on, .pl-tone:hover { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.pl-ai-mail { background: #fff; }
.pl-pre {
  white-space: pre-wrap; font-size: 12px; background: #f8fafc;
  padding: 10px 14px; margin: 0; max-height: 220px; overflow: auto;
}
.pl-timeline { list-style: none; margin: 0; padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.pl-timeline li {
  padding-left: 14px; border-left: 2px solid #e2e8f0;
  display: flex; flex-direction: column; gap: 2px;
}
.pl-timeline strong { font-size: 12px; color: var(--pl-ink); }
.pl-timeline span, .pl-timeline em { font-size: 11px; color: var(--pl-muted); font-style: normal; }
.pl-empty-block {
  padding: 28px 20px; text-align: center; border-radius: 16px;
  background: var(--pl-soft); border: 1px dashed #cbd5e1; color: var(--pl-muted);
}
.pl-empty-block strong { display: block; color: var(--pl-ink); margin-bottom: 6px; }
.pl-warn { color: #b91c1c; }
.jobs-pipe-st.is-kontakt { background: #f0f9ff; color: #0369a1; }
.jobs-pipe-st.is-qualifiziert { background: #ecfdf5; color: #047857; }
.jobs-pipe-st.is-partner { background: #ecfeff; color: #0f766e; }
.jobs-pipe-st.is-archiv { background: #f1f5f9; color: #64748b; }

@keyframes pl-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes pl-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .pl-kanban { grid-template-columns: repeat(4, minmax(220px, 1fr)); }
  .pl-workspace { grid-template-columns: 1fr; }
  .pl-detail { position: static; max-height: none; }
  .pl-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pl-hero { padding: 16px; }
  .pl-facts { grid-template-columns: 1fr; }
}

/* Admin Nutzer / Lernende */
.users-admin-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 16px; }
.users-admin-stats { margin: 0 0 16px; }
.users-filter-bar { margin-bottom: 16px; }
.users-filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 10px 12px;
  align-items: end;
}
.users-filter-grow { min-width: 0; }
.users-filter-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.users-edit-form { max-width: 920px; margin-bottom: 20px; }
.users-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0;
  font-weight: 600;
}
.users-status {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  white-space: nowrap;
}
.users-status.is-open { background: #ecfdf5; color: #166534; }
.users-status.is-closed { background: #fef2f2; color: #991b1b; }
.admin-users-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) {
  .admin-users-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .admin-users-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.user-admin-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.user-admin-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 12px 28px -8px rgba(30, 58, 95, 0.16);
}
.user-admin-card.is-active {
  border-color: #1e3a5f;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.14);
}
.user-admin-card.is-inactive { opacity: 0.78; }
.user-admin-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 12px;
  gap: 10px;
}
.user-admin-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.user-admin-card-id { flex: 1; min-width: 0; }
.user-admin-card-id h3 {
  margin: 0 0 2px;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #0f172a;
}
.user-admin-card .school-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.is-hidden { display: none !important; }
@media (max-width: 900px) {
  .users-filter-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .users-filter-grid { grid-template-columns: 1fr; }
}

/* Admin Liveklassen */
.live-filter-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)) auto;
  gap: 10px 12px;
  align-items: end;
}
.live-kpi-row a.school-stat {
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}
.live-kpi-row a.school-stat:hover,
.live-kpi-row a.school-stat.is-active-kpi {
  box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.2);
  transform: translateY(-1px);
}
.live-next-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(135deg, #eff6ff, #fff);
}
.live-next-banner h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.live-next-meta { margin: 0; color: #475569; }
.live-next-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.live-view-toggle {
  display: inline-flex;
  gap: 0;
  padding: 3px;
  background: #e2e8f0;
  border-radius: 10px;
}
.live-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 600;
}
.live-view-btn.is-on {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}
.live-day-sep td {
  background: #f1f5f9;
  font-weight: 700;
  font-size: 0.85rem;
  color: #334155;
  padding: 8px 12px !important;
}
.live-admin-table tr.is-live-row { background: #ecfdf5; }
.live-admin-card.is-running {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.live-admin-card-accent.is-live {
  background: linear-gradient(90deg, #34d399, #059669);
  height: 5px;
}
.live-edit-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.live-filter-hint { margin: 10px 0 0; }
.live-empty-card { text-align: center; padding: 28px 16px; }
.admin-live-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) {
  .admin-live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .admin-live-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.live-admin-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.live-admin-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 12px 28px -8px rgba(30, 58, 95, 0.16);
}
.live-admin-card.is-active {
  border-color: #1e3a5f;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.14);
}
.live-admin-card.is-inactive { opacity: 0.72; }
.live-admin-card-accent { height: 4px; width: 100%; flex-shrink: 0; }
.live-admin-card-accent.is-today { background: linear-gradient(90deg, #10b981, #059669); }
.live-admin-card-accent.is-up { background: linear-gradient(90deg, #3b82f6, #1e3a5f); }
.live-admin-card-accent.is-past { background: linear-gradient(90deg, #94a3b8, #64748b); }
.live-admin-card .user-admin-card-body h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  line-height: 1.3;
}
@media (max-width: 1100px) {
  .live-filter-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .live-filter-grid { grid-template-columns: 1fr; }
}

/* Admin Wochenplan */
.weekplan-card-warn { border-color: #f59e0b; }
.weekplan-excerpt { font-size: 0.92rem; color: #475569; }
.weekplan-live-list { margin: 6px 0 0; padding-left: 1.1rem; }
.weekplan-live-list li { margin: 4px 0; }
.weekplan-live-list li.is-bad-time { color: #b45309; }

/* Lehrer Hausaufgaben */
.hw-filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 10px 12px;
  align-items: end;
}
.admin-hw-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) {
  .admin-hw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .admin-hw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.hw-admin-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.hw-admin-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 12px 28px -8px rgba(30, 58, 95, 0.16);
}
.hw-admin-card.is-active {
  border-color: #1e3a5f;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.14);
}
.hw-admin-card-accent { height: 4px; width: 100%; flex-shrink: 0; }
.hw-admin-card-accent.is-ok { background: linear-gradient(90deg, #10b981, #059669); }
.hw-admin-card-accent.is-pending { background: linear-gradient(90deg, #3b82f6, #1e3a5f); }
.hw-admin-card-accent.is-over { background: linear-gradient(90deg, #f59e0b, #d97706); }
.hw-admin-card .user-admin-card-body h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  line-height: 1.3;
}
.admin-hw-subs { display: grid; gap: 12px; }
.hw-sub-card { margin: 0; }
.hw-sub-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.hw-sub-answer {
  white-space: pre-wrap;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.45;
}
.hw-sub-ai {
  white-space: pre-wrap;
  font-size: 13px;
  color: #475569;
  margin: 0 0 8px;
}
.hw-review-form { margin-top: 8px; }
.hw-assignee-box {
  margin-top: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
}
.hw-assignee-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.hw-assignee-list {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
}
.hw-assignee-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #eef2f7;
  cursor: pointer;
}
.hw-assignee-item:hover { border-color: #93c5fd; }
.hw-assignee-item input { margin-top: 3px; }
.hw-assignee-item span { display: flex; flex-direction: column; gap: 2px; }
.hw-rubric {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
.hw-rubric span {
  background: #eff6ff;
  color: #1e3a5f;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}
.hw-tip-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
}
.hw-criteria-box {
  background: #f8fafc;
  border-left: 3px solid #1e3a5f;
  padding: 8px 12px;
  margin: 0 0 12px;
  font-size: 14px;
}
.hw-learner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.hw-submit-actions { align-items: center; margin-top: 8px; }
.ai-draft-hw-meta { margin-bottom: 8px; }
@media (max-width: 900px) {
  .hw-filter-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hw-filter-grid { grid-template-columns: 1fr; }
}

/* ——— Kursseite /kurs (Site-Design) ——— */
body.page-kurs {
  background: var(--paper);
}

.kurs-hero {
  position: relative;
  padding: 36px 8vw 48px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 92% 8%, rgba(37, 99, 235, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 40% at 0% 100%, rgba(6, 182, 212, 0.1), transparent 50%),
    linear-gradient(180deg, #fff 0%, var(--paper) 100%);
}
.kurs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent 0,
      transparent 18px,
      rgba(37, 99, 235, 0.03) 18px,
      rgba(37, 99, 235, 0.03) 19px
    );
  pointer-events: none;
  animation: kursGrain 22s linear infinite;
}
.kurs-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}
.kurs-brand {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  animation: kursRise 0.55s ease both;
}
.kurs-brand em {
  font-style: normal;
  color: var(--blue-strong);
  font-weight: 600;
}
.kurs-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  color: var(--ink);
  max-width: 18ch;
  animation: kursRise 0.6s ease 0.05s both;
}
.kurs-lead {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 36rem;
  animation: kursRise 0.6s ease 0.1s both;
}
.kurs-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 12px;
  animation: kursRise 0.6s ease 0.15s both;
}
.kurs-price-soft {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  animation: kursRise 0.6s ease 0.2s both;
}
.kurs-hero-visual {
  position: relative;
  min-height: 260px;
  animation: kursFade 0.7s ease 0.12s both;
}
.kurs-visual-glow {
  position: absolute;
  inset: 8% 0 0 10%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22), transparent 68%);
  filter: blur(22px);
  animation: kursPulse 6s ease-in-out infinite;
}
.kurs-visual-panel {
  position: absolute;
  inset: 8% 0 0 12%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}
.kurs-visual-tag {
  align-self: flex-start;
  margin-bottom: auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-strong);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 4px 10px;
}
.kurs-visual-line {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.kurs-visual-line.is-accent { color: var(--blue-strong); }

.kurs-facts {
  background: var(--white);
  border-block: 1px solid var(--line);
}
.kurs-facts-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 8px 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px clamp(16px, 8vw, 8vw);
  width: 100%;
}
.kurs-facts-inner div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kurs-facts-inner strong {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.kurs-facts-inner span {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

.kurs-section { padding: 56px 8vw; }
.kurs-section-inner { max-width: 1120px; margin: 0 auto; }
.kurs-section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 2.5vw, 1.95rem);
}
.kurs-section-lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40rem;
}


.kurs-enroll-how { background: var(--paper); }
.kurs-enroll-note { margin: 12px 0 0; max-width: 36rem; }
.kurs-enroll-steps {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.kurs-enroll-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.kurs-enroll-num {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: #fde047;
  color: #713f12;
}
.kurs-enroll-steps strong { display: block; margin-bottom: 4px; }
.kurs-enroll-steps p { margin: 0; color: var(--muted); line-height: 1.45; font-weight: 500; }
.auth-register-book-hint { margin: 0 0 12px; }
@media (max-width: 800px) {
  .kurs-enroll-steps { grid-template-columns: 1fr; }
}

.kurs-include { background: var(--paper); }
.kurs-include-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}
.kurs-include-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 4px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
}
.kurs-include-list li::before { content: none; }
.kurs-include-list li img {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(30, 58, 95, 0.12));
  transition: transform 0.25s ease;
}
.kurs-include-list li:hover img {
  transform: translateY(-3px) scale(1.04);
}
.kurs-include-list li span {
  flex: 1;
  padding-top: 6px;
}
.kurs-include-list.is-compact {
  gap: 12px 18px;
}
.kurs-include-list.is-compact li {
  gap: 12px;
  padding: 6px 0;
}
.kurs-include-list.is-compact li img {
  width: 44px;
  height: 44px;
}
.kurs-include-list.is-compact li span {
  padding-top: 4px;
  font-size: 0.95rem;
}

.kurs-week { background: var(--white); }
.kurs-week-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.kurs-week-track li { position: relative; padding-top: 4px; }
.kurs-week-track li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 48px;
  right: -12px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-strong), var(--blue-muted));
}
.kurs-week-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 99px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.kurs-week-track p {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.45;
}

.kurs-access {
  background: var(--blue-soft);
  border-block: 1px solid var(--blue-muted);
  padding: 48px 8vw;
}
.kurs-access-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}
.kurs-access h2 { margin: 0 0 10px; }
.kurs-access .kurs-section-lead { color: var(--muted); }
.kurs-access-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kurs-access-list li {
  padding-left: 18px;
  position: relative;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}
.kurs-access-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-strong);
}
.kurs-access-price {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.kurs-access-amount {
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kurs-access-amount strong {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.kurs-access-amount span {
  font-size: 1.02rem;
  color: var(--blue-strong);
  font-weight: 600;
}

.kurs-program { background: var(--paper); overflow: hidden; }
.kurs-program .prog-carousel-track { padding-left: 0; padding-right: 0; }
.kurs-program .prog-carousel-slide { flex-basis: min(320px, 88%); }
.home-modules { overflow: hidden; padding-bottom: 12px; }
.home-modules .prog-carousel-head {
  max-width: 1120px;
  margin: 0 auto 8px;
  padding: 0 4vw;
}
.home-modules .lead { margin: 0; }

.kurs-program-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.kurs-program-head .kurs-section-lead { margin-bottom: 0; }
.kurs-program-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.kurs-program-meta strong { color: var(--ink); font-weight: 700; }
.kurs-program-grid {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}
.kurs-program-grid > li { margin: 0; }
.kurs-program-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 18px 18px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.kurs-program-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  color: inherit;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}
.kurs-program-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.kurs-program-step {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue-strong);
  background: var(--blue-soft);
  border-radius: 8px;
  padding: 4px 8px;
  line-height: 1;
}
.kurs-program-card-top .curr-mod-ico {
  margin-left: auto;
}
.kurs-program-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
}
.kurs-program-sub {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.kurs-program-count {
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-strong);
}
.kurs-program-more {
  margin: 28px 0 0;
  text-align: center;
}

.kurs-faq { background: var(--white); }
.kurs-faq .faq-list { max-width: none; }

.kurs-close {
  background: linear-gradient(135deg, var(--blue-soft) 0%, #fff 55%, var(--paper) 100%);
  border-top: 1px solid var(--line);
  padding: 56px 8vw;
  text-align: center;
}
.kurs-close-inner { max-width: 640px; margin: 0 auto; }
.kurs-close h2 { margin: 0 0 10px; }
.kurs-close p {
  margin: 0;
  color: var(--muted);
}
.kurs-close .kurs-cta {
  justify-content: center;
  margin-top: 22px;
}

@keyframes kursRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes kursFade {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes kursPulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes kursGrain {
  from { transform: translateY(0); }
  to { transform: translateY(-24px); }
}

@media (max-width: 960px) {
  .kurs-hero-inner,
  .kurs-access-inner,
  .kurs-week-track,
  .kurs-include-list,
  .kurs-facts-inner {
    grid-template-columns: 1fr 1fr;
  }
  .kurs-hero h1 { max-width: none; }
  .kurs-week-track li:not(:last-child)::after { display: none; }
  .kurs-hero-visual { min-height: 220px; }
  .kurs-visual-panel { inset: 0; }
}
@media (max-width: 700px) {
  .kurs-hero { padding: 24px 6vw 36px; }
  .kurs-hero-inner,
  .kurs-access-inner,
  .kurs-week-track,
  .kurs-include-list,
  .kurs-facts-inner {
    grid-template-columns: 1fr;
  }
  .kurs-facts-inner { gap: 16px; }
  .kurs-section { padding: 44px 6vw; }
}

/* ——— Programmseite /programm ——— */
body.page-programm { background: var(--paper); }

.prog-hero {
  position: relative;
  padding: 36px 8vw 52px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 92% 8%, rgba(37, 99, 235, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 40% at 0% 100%, rgba(6, 182, 212, 0.1), transparent 50%),
    linear-gradient(180deg, #fff 0%, var(--paper) 100%);
}
.prog-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}
.prog-hero-inner { max-width: 640px; }
.prog-brand {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  animation: kursRise 0.55s ease both;
}
.prog-brand em {
  font-style: normal;
  color: var(--blue-strong);
  font-weight: 600;
}
.prog-course-note {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 0.95rem;
}
.prog-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  color: var(--ink);
  animation: kursRise 0.6s ease 0.05s both;
}
.prog-lead {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 40rem;
  animation: kursRise 0.6s ease 0.1s both;
}
.prog-meta {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.prog-hero-path {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
  animation: kursFade 0.7s ease 0.12s both;
}
.prog-path-label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-strong);
}
.prog-path-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prog-path-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}
.prog-path-steps span {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 99px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.prog-path-steps li.is-accent span {
  background: var(--blue-strong);
  color: #fff;
}
.prog-path-steps li.is-accent { color: var(--blue-strong); }

.prog-facts {
  background: var(--white);
  border-block: 1px solid var(--line);
}
.prog-facts-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 8px 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px clamp(16px, 8vw, 8vw);
  width: 100%;
}
.prog-facts-inner div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.prog-facts-inner strong {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.prog-facts-inner span {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

.prog-section { padding: 56px 8vw; }
.prog-section-inner { max-width: 1120px; margin: 0 auto; }
.prog-section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 2.5vw, 1.95rem);
}
.prog-section-lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40rem;
}

.prog-method { background: var(--white); }
.prog-method-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.prog-method-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 4px 0;
}
.prog-method-num {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 99px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.prog-method-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.05rem;
}
.prog-method-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.prog-modules {
  background: var(--paper);
  padding-bottom: 40px;
  overflow: hidden;
}
.prog-carousel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.prog-carousel-head .prog-section-lead { margin-bottom: 0; }
.prog-carousel-nav { display: flex; gap: 8px; }
.prog-carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.prog-carousel-btn:hover {
  background: var(--blue-soft);
  border-color: var(--blue-muted);
  color: var(--blue-strong);
}
.prog-carousel-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.prog-carousel {
  margin-top: 20px;
}
.prog-carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 8vw 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.prog-carousel-track::-webkit-scrollbar { display: none; }
.prog-carousel-slide {
  flex: 0 0 min(340px, 78vw);
  scroll-snap-align: start;
}
.prog-slide-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 280px;
  padding: 22px 22px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.prog-slide-card:hover {
  border-color: #93c5fd;
  transform: translateY(-3px);
  color: inherit;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}
.prog-slide-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.prog-slide-step {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue-strong);
  background: var(--blue-soft);
  border-radius: 8px;
  padding: 5px 9px;
}
.prog-slide-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 6px;
  width: 76px;
  height: 76px;
  color: var(--blue-strong);
}
.prog-slide-ico .curr-ico { width: 28px; height: 28px; }
.prog-slide-ico .curr-ico-3d,
.prog-slide-ico img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(30, 58, 95, 0.14));
  transition: transform 0.28s ease;
}
.prog-slide-card:hover .prog-slide-ico img {
  transform: translateY(-4px) scale(1.05);
}
.prog-slide-card h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--ink);
}
.prog-slide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.prog-slide-meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-strong);
}
.prog-slide-go {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 4px;
}
.prog-slide-card:hover .prog-slide-go { color: var(--blue-strong); }

.prog-carousel-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 4px 8vw 0;
}
.prog-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  border: 0;
  padding: 0;
  background: #cbd5e1;
  cursor: pointer;
  transition: width .15s ease, background .15s ease;
}
.prog-carousel-dot.is-active {
  width: 22px;
  background: var(--blue-strong);
}

@media (max-width: 900px) {
  .prog-hero-layout,
  .prog-facts-inner,
  .prog-method-list {
    grid-template-columns: 1fr 1fr;
  }
  .prog-hero-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .prog-hero { padding: 24px 6vw 36px; }
  .prog-section { padding: 44px 6vw; }
  .prog-facts-inner,
  .prog-method-list {
    grid-template-columns: 1fr;
  }
  .prog-carousel-slide { flex-basis: min(300px, 85vw); }
}

/* —— Schüler-Dashboard Fokus —— */
.page-dashboard .app-main {
  padding-top: 24px;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(37, 99, 235, 0.10), transparent 60%),
    radial-gradient(700px 360px at 100% 0%, rgba(6, 182, 212, 0.08), transparent 55%),
    var(--paper);
}
.dash { max-width: 1120px; }

.dash-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--blue-muted);
  background: var(--blue-soft);
  animation: dash-rise 0.5s ease both;
}
.dash-banner.is-warn {
  border-color: #fde68a;
  background: #fffbeb;
}
.dash-banner p { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }
.dash-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.dash-notes {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
}
.dash-notes p { margin: 4px 0; }
.dash-notes .meta { margin-left: 8px; }

.dash-hero {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 32px;
  align-items: center;
  padding: 32px 36px;
  margin-bottom: 28px;
  border-radius: 28px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background:
    linear-gradient(155deg, #ffffff 0%, #f7fbff 42%, #eaf3ff 100%);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 18px 40px rgba(37, 99, 235, 0.08);
  position: relative;
  overflow: hidden;
  animation: dash-rise 0.55s ease both;
}
.dash-hero::before {
  content: "";
  position: absolute;
  right: -100px;
  top: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 68%);
  pointer-events: none;
}
.dash-hero::after {
  content: "";
  position: absolute;
  left: -60px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12), transparent 70%);
  pointer-events: none;
}
.dash-kicker {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-strong);
}
.dash-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
}
.dash-lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.02rem;
}
.dash-lead span { white-space: nowrap; }
.dash-next-label {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-strong);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dash-next-title {
  margin: 0 0 6px;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}
.dash-next-meta {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
}
.dash-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.dash-hero-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.dash-ring {
  --p: 0;
  --ring-c: 339.29;
  --ring-o: 339.29;
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), transparent 55%),
    linear-gradient(160deg, #ffffff, #eef5ff);
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.08),
    0 16px 36px rgba(37, 99, 235, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: dash-ring-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.dash-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.dash-ring-track,
.dash-ring-value {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}
.dash-ring-track {
  stroke: #dbeafe;
}
.dash-ring-value {
  stroke: url(#dashRingGrad);
  stroke-dasharray: var(--ring-c);
  stroke-dashoffset: var(--ring-c);
  animation: dash-ring-draw 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
  filter: drop-shadow(0 0 6px rgba(37, 99, 235, 0.28));
}
.dash-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.dash-ring-label strong {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.dash-ring-label span {
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-strong);
}
.dash-ring-label em {
  margin-top: 4px;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.dash-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 8px;
}
.dash-stats li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(37, 99, 235, 0.1);
  font-size: 0.9rem;
  backdrop-filter: blur(4px);
}
.dash-stats span { color: var(--muted); }
.dash-stats b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

.dash-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.dash-section-head h2 {
  margin: 0;
  font-size: 1.25rem;
}
.dash-section-lead {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.dash-section-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.dash-path {
  margin-bottom: 28px;
  animation: dash-rise 0.6s ease 0.08s both;
}
.dash-path-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.dash-path-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 136px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(37, 99, 235, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.dash-path-tile:hover {
  transform: translateY(-3px);
  border-color: var(--blue-muted);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.12);
  color: inherit;
}
.dash-path-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue-strong);
}
.dash-path-tile strong {
  font-size: 1rem;
  line-height: 1.3;
}

.dash-tools { margin-bottom: 28px; animation: dash-rise 0.65s ease 0.12s both; }
.dash-tools-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
}
.dash-tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dash-tool {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.dash-tool:hover {
  background: var(--blue-soft);
  border-color: var(--blue-muted);
  color: var(--blue-strong);
}
.dash-tool em {
  font-style: normal;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--muted);
}

.dash-ai {
  margin-bottom: 28px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}
.dash-ai-text {
  margin: 0;
  white-space: pre-wrap;
  color: var(--ink);
}

.dash-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-bottom: 32px;
}
.dash-panel {
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}
.dash-panel h3 { margin: 0 0 12px; font-size: 1.05rem; }
.dash-week {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.dash-week li { margin-bottom: 6px; }
.dash-zoom-item { margin-bottom: 14px; }
.dash-zoom-item:last-child { margin-bottom: 0; }
.dash-zoom-item strong { display: block; margin-bottom: 4px; }

.dash-jobs { margin-bottom: 32px; }
.dash-job-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.dash-job {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.dash-job:hover {
  border-color: var(--blue-muted);
  transform: translateY(-2px);
  color: inherit;
}

.dash-modules {
  margin-bottom: 12px;
  overflow: hidden;
}
.dash-mod-carousel .prog-carousel-track {
  padding-left: 0;
  padding-right: 4px;
}
.dash-mod-carousel .prog-carousel-slide {
  flex-basis: min(260px, 78%);
}
.dash-mod-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 210px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.dash-mod-card:hover {
  border-color: var(--blue-muted);
  transform: translateY(-2px);
  color: inherit;
}
.dash-mod-card.is-locked { opacity: 0.7; }
.dash-mod-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.dash-mod-step {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-strong);
  letter-spacing: 0.05em;
}
.dash-mod-card h3 {
  margin: 0;
  font-size: 1.05rem;
}
.dash-mod-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

@keyframes dash-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dash-ring-in {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes dash-ring-draw {
  to { stroke-dashoffset: var(--ring-o); }
}

@media (prefers-reduced-motion: reduce) {
  .dash-hero,
  .dash-banner,
  .dash-path,
  .dash-tools,
  .dash-ring,
  .dash-ring-value {
    animation: none;
  }
  .dash-ring-value {
    stroke-dashoffset: var(--ring-o);
  }
  .dash-path-tile:hover,
  .dash-job:hover,
  a.dash-mod-card:hover {
    transform: none;
  }
}

@media (max-width: 980px) {
  .dash-hero,
  .dash-split,
  .dash-job-row {
    grid-template-columns: 1fr;
  }
  .dash-hero {
    gap: 22px;
    padding: 24px 22px;
  }
  .dash-hero-progress {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
  }
  .dash-ring {
    width: 132px;
    height: 132px;
    flex-shrink: 0;
  }
  .dash-ring-label strong { font-size: 1.55rem; }
  .dash-stats { flex: 1; min-width: 0; }
  .dash-path-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .dash-path-track::-webkit-scrollbar { display: none; }
  .dash-path-track > li {
    flex: 0 0 min(240px, 78vw);
    scroll-snap-align: start;
  }
  .dash-path-tile { min-height: 120px; }
  .dash-tool-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .dash-tool-row::-webkit-scrollbar { display: none; }
  .dash-tool {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .dash-section-head {
    align-items: flex-start;
  }
  .dash-mod-carousel .prog-carousel-slide {
    flex-basis: min(240px, 82vw);
  }
}

@media (max-width: 640px) {
  .page-dashboard .app-main {
    padding: 14px 14px calc(28px + env(safe-area-inset-bottom, 0px));
  }
  .dash-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
    gap: 12px;
  }
  .dash-banner-actions {
    width: 100%;
  }
  .dash-banner-actions .btn {
    flex: 1;
    justify-content: center;
    min-height: 44px;
  }
  .dash-hero {
    padding: 18px 16px;
    border-radius: 20px;
    gap: 18px;
  }
  .dash-hero h1 {
    font-size: clamp(1.45rem, 7vw, 1.85rem);
  }
  .dash-lead {
    margin-bottom: 16px;
    font-size: 0.95rem;
  }
  .dash-lead span { white-space: normal; }
  .dash-next-title { font-size: 1.12rem; }
  .dash-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .dash-cta .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }
  .dash-hero-progress {
    flex-direction: column;
  }
  .dash-ring {
    width: 148px;
    height: 148px;
  }
  .dash-stats {
    width: 100%;
  }
  .dash-stats li {
    min-height: 44px;
    align-items: center;
  }
  .dash-section-head {
    flex-direction: column;
    gap: 10px;
  }
  .dash-section-actions {
    width: 100%;
  }
  .dash-section-actions .btn {
    flex: 1;
    justify-content: center;
    min-height: 42px;
  }
  .dash-path-track > li {
    flex-basis: min(220px, 84vw);
  }
  .dash-path-tile {
    min-height: 112px;
    padding: 14px;
  }
  .dash-tool {
    min-height: 42px;
    padding: 10px 14px;
  }
  .dash-panel {
    padding: 16px;
  }
  .dash-job-row {
    grid-template-columns: 1fr;
  }
  .dash-mod-card {
    min-height: 190px;
    padding: 14px;
  }
  .prog-carousel-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }
  .dash-modules .prog-carousel-track {
    padding-bottom: 12px;
  }
}

/* Öffentliche Karussells / Kurs mobil */
@media (max-width: 640px) {
  .prog-carousel-head,
  .kurs-program-head,
  .home-modules .prog-carousel-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .prog-carousel-nav {
    align-self: flex-end;
  }
  .prog-carousel-track {
    padding: 8px 4vw 16px;
    scroll-padding-inline: 4vw;
  }
  .prog-carousel-slide {
    flex-basis: min(280px, 86vw);
  }
  .kurs-program .prog-carousel-track {
    padding-left: 0;
    padding-right: 0;
  }
  .kurs-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .kurs-cta .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }
  .kurs-facts-inner,
  .prog-facts-inner {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .lang-switch-toggle {
    min-width: 108px;
  }
  .lang-switch-toggle .lang-switch-opt {
    padding: 5px 7px;
    min-height: 32px;
  }
  .page-kurs .kurs-section,
  .page-programm .prog-section {
    padding-left: 5vw;
    padding-right: 5vw;
  }
}

/* —— Fluid / immer viewport-tauglich —— */
:root {
  --page-pad: clamp(14px, 4vw, 36px);
  --content-max: 1120px;
}
.site-footer,
.topbar,
.section,
.hero,
.kurs-hero,
.prog-hero,
.kurs-section,
.prog-section,
.kurs-facts,
.prog-facts,
.kurs-close,
.prog-close {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.hero-inner,
.kurs-section-inner,
.prog-section-inner,
.kurs-close-inner,
.home-modules .prog-carousel-head,
.auth-wrap,
.dash {
  width: 100%;
  max-width: min(var(--content-max), 100%);
  box-sizing: border-box;
}
.header-inner {
  width: 100%;
  max-width: 100%;
  flex-wrap: wrap;
}
.btn, button.btn, a.btn {
  max-width: 100%;
}
.btn-row, .kurs-cta, .dash-cta, .dash-banner-actions {
  max-width: 100%;
}
iframe, embed, object {
  max-width: 100%;
}
.lesson-layout,
.course-layout,
.split {
  width: 100%;
  min-width: 0;
}
.speak-rubric-row {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 100px), 1fr));
}
.jobs-ind-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

@media (max-width: 720px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .auth-wrap {
    margin: 20px auto 48px;
    padding: 22px 16px;
    border-radius: 18px;
  }
  .header-inner {
    padding: 8px 12px;
    min-height: 0;
  }
  .brand img, .logo-img { height: 40px; }
  h1 { font-size: clamp(1.4rem, 6.5vw, 2rem); overflow-wrap: anywhere; }
  h2 { overflow-wrap: anywhere; }
  p, .lead, .meta { overflow-wrap: break-word; }
  .table th, .table td {
    padding: 8px 10px;
    white-space: nowrap;
  }
  .ai-draft-form input { min-width: 0; width: 100%; }
  .content-ex-filter select { min-width: 0; width: 100%; }
}

@media (max-width: 480px) {
  .grid-3,
  .grid-4,
  .mod-grid,
  .stat-row,
  .kurs-facts-inner,
  .prog-facts-inner {
    grid-template-columns: 1fr;
  }
}

/* —— Learner Dashboard (Art Academy / Soft UI) —— */
.page-dashboard .app-main {
  background: #f3f4f6;
  padding-top: 20px;
}
.page-dashboard .app-main > .ldash {
  max-width: none;
}
.ldash {
  --ld-yellow: #fde047;
  --ld-yellow-deep: #facc15;
  --ld-mint: #86efac;
  --ld-mint-deep: #4ade80;
  --ld-teal: #5eead4;
  --ld-navy: #0f172a;
  --ld-card: #ffffff;
  --ld-bg: #f3f4f6;
  --ld-muted: #64748b;
  --ld-radius: 22px;
  --ld-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  color: #0f172a;
}
.ldash-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: var(--ld-radius);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
.ldash-banner.is-warn {
  background: #fffbeb;
  border-color: #fde68a;
}
.ldash-banner p { margin: 4px 0 0; color: var(--ld-muted); }
.ldash-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.ldash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}
.ldash-main { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.ldash-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 16px;
}

.ldash-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ldash-top h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ldash-top p { margin: 6px 0 0; color: var(--ld-muted); }
.ldash-top-actions { display: flex; align-items: center; gap: 10px; }
.ldash-search {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--ld-shadow);
  padding: 2px 4px 2px 14px;
}
.ldash-search input {
  border: 0;
  background: transparent;
  outline: none;
  min-width: 180px;
  padding: 10px 8px;
  font: inherit;
}
.ldash-bell {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--ld-shadow);
  display: grid;
  place-items: center;
  color: inherit;
}
.ldash-bell i {
  position: absolute;
  top: 10px;
  right: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
}

.ldash-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.ldash-sec-head h2,
.ldash-sec-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}
.ldash-sec-head a {
  color: var(--ld-muted);
  font-size: 0.9rem;
  text-decoration: none;
}
.ldash-sec-head a:hover { color: var(--ld-navy); }
.ldash-sec-head-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  min-width: 0;
}
.ldash-tabs {
  display: flex;
  gap: 14px;
  align-items: center;
}
.ldash-tabs a {
  position: relative;
  color: var(--ld-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding-bottom: 4px;
}
.ldash-tabs a.is-on { color: var(--ld-navy); }
.ldash-tabs a.is-on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ld-yellow-deep);
  transform: translateX(-50%);
}
.ldash-carousel-nav { flex-shrink: 0; }
.ldash-carousel-nav .prog-carousel-btn {
  width: 40px;
  height: 40px;
  box-shadow: var(--ld-shadow, 0 10px 30px rgba(15, 23, 42, 0.06));
}
.ldash-course-carousel {
  margin-top: 4px;
  overflow: hidden;
}
.ldash-course-track.prog-carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 14px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.ldash-course-track.prog-carousel-track::-webkit-scrollbar { display: none; }
.ldash-course-card.prog-carousel-slide {
  flex: 0 0 min(280px, 82%);
  scroll-snap-align: start;
  min-height: 320px;
}
.ldash-carousel-dots {
  margin-top: 4px;
}
.ldash-course-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ldash-course-card {
  background: var(--ld-card);
  border-radius: var(--ld-radius);
  box-shadow: var(--ld-shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ldash-course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}
.ldash-course-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ldash-course-body h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}
.ldash-course-body .meta { margin: 0; color: var(--ld-muted); font-size: 0.85rem; }
.ldash-3d {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
  margin: 0 auto 4px;
  filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.12));
}
.ldash-3d.lg { width: 120px; height: 120px; margin: 0; }
.ldash-3d.sm { width: 64px; height: 64px; margin: 0 0 6px; }

.ldash-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ldash-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.ldash-tag.is-mint { background: #dcfce7; color: #166534; }
.ldash-tag.is-amber { background: #ffedd5; color: #9a3412; }
.ldash-tag.is-sky { background: #e0f2fe; color: #075985; }
.ldash-tag.is-lock { background: #f1f5f9; color: #64748b; }

.ldash-course-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--ld-muted);
  font-size: 0.8rem;
}
.ldash-course-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ldash-course-stats svg { width: 14px; height: 14px; }

.ldash-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.ldash-progress-track {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.ldash-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ld-yellow-deep);
}
.ldash-progress-track i.is-teal { background: #14b8a6; }
.ldash-progress-track i.is-mint { background: #22c55e; }
.ldash-progress-track i.is-navy { background: #1e293b; }
.ldash-progress-track i.is-yellow { background: #eab308; }
.ldash-progress em {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ld-muted);
  min-width: 2.4em;
  text-align: right;
}

.ldash-btn-yellow {
  background: var(--ld-yellow) !important;
  border-color: var(--ld-yellow) !important;
  color: #0f172a !important;
  font-weight: 800;
  border-radius: 999px;
}
.ldash-btn-yellow:hover { filter: brightness(0.97); }
.ldash-btn-mint {
  background: #bbf7d0 !important;
  border-color: #bbf7d0 !important;
  color: #14532d !important;
  font-weight: 800;
  border-radius: 999px;
}

.ldash-assign-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  background: #fff;
  border-radius: var(--ld-radius);
  box-shadow: var(--ld-shadow);
  padding: 18px 22px;
}
.ldash-assign-card h3 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 800; }
.ldash-assign-card .meta { margin: 0 0 12px; color: var(--ld-muted); }
.ldash-assign-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ldash-assign-actions .btn,
.ldash-assign-card .btn { border-radius: 999px; }

.ldash-task-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ldash-task {
  position: relative;
  border-radius: var(--ld-radius);
  padding: 18px;
  box-shadow: var(--ld-shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 210px;
}
.ldash-task.is-dark {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
}
.ldash-task.is-dark h3,
.ldash-task.is-dark strong { color: #f8fafc !important; }
.ldash-task.is-dark p,
.ldash-task.is-dark .ldash-due,
.ldash-task.is-dark .meta { color: #cbd5e1 !important; }
.ldash-task.is-dark .ldash-prio.is-high {
  background: rgba(254, 202, 202, 0.25);
  color: #fecaca;
}

/* Schüler Dashboard: Hausaufgaben-Block */
.ldash-hw-block { margin-top: 8px; }
.ldash-hw-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 7px;
  margin-left: 6px;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 800;
  vertical-align: middle;
}
.ldash-hw-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.ldash-hw-card {
  background: linear-gradient(165deg, #fff7ed 0%, #ffedd5 55%, #fed7aa 100%);
  border-radius: var(--ld-radius, 20px);
  padding: 16px 18px;
  box-shadow: var(--ld-shadow, 0 10px 28px rgba(15, 23, 42, 0.08));
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  border: 1px solid rgba(251, 146, 60, 0.25);
}
.ldash-hw-card.is-overdue {
  background: linear-gradient(165deg, #fff1f2 0%, #fecdd3 100%);
  border-color: rgba(244, 63, 94, 0.28);
}
.ldash-hw-card.is-soon {
  background: linear-gradient(165deg, #fffbeb 0%, #fde68a 100%);
}
.ldash-hw-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}
.ldash-hw-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #475569;
  flex: 1;
}
.ldash-hw-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ldash-hw-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ldash-hw-badge.is-open { background: #ffedd5; color: #c2410c; }
.ldash-hw-badge.is-soon { background: #fef3c7; color: #b45309; }
.ldash-hw-badge.is-overdue { background: #fecdd3; color: #be123c; }
.ldash-hw-lvl {
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
  background: rgba(255,255,255,0.7);
  padding: 3px 8px;
  border-radius: 999px;
}
.ldash-hw-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}
.ldash-hw-card-foot .ldash-due {
  margin-top: 0 !important;
  color: #57534e;
}
.ldash-hw-card-foot .btn {
  background: #ea580c;
  color: #fff;
  box-shadow: 0 6px 14px rgba(234, 88, 12, 0.25);
}
.ldash-hw-card-foot .btn:hover { background: #c2410c; color: #fff; }
.ldash-hw-empty {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--ld-radius, 20px);
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  margin-bottom: 14px;
}
.ldash-hw-empty h3 { margin: 0 0 4px; color: #0f172a; font-size: 1.05rem; }
.ldash-exam-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--ld-radius, 20px);
  background: linear-gradient(120deg, #0f172a 0%, #1e3a5f 55%, #0f766e 120%);
  color: #f8fafc;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}
.ldash-exam-chip h3 {
  margin: 4px 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff !important;
}
.ldash-exam-chip p {
  margin: 0;
  font-size: 0.9rem;
  color: #cbd5e1 !important;
  max-width: 42rem;
}
.ldash-exam-kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5eead4;
}
.ldash-exam-chip .btn {
  background: #fff;
  color: #0f172a;
  box-shadow: none;
  flex-shrink: 0;
}
.ldash-exam-chip .btn:hover {
  background: #ecfeff;
  color: #0f172a;
}
@media (max-width: 640px) {
  .ldash-hw-empty { flex-direction: column; align-items: flex-start; }
}

.ldash-task.is-yellow {
  background: linear-gradient(160deg, #fef08a 0%, #fde047 100%);
  color: #0f172a;
}
.ldash-task h3 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.ldash-task p { margin: 0; font-size: 0.9rem; line-height: 1.45; }
.ldash-due {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  margin-top: auto !important;
}
.ldash-due svg { width: 14px; height: 14px; }
.ldash-prio {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ldash-prio.is-high { background: #fecaca; color: #991b1b; }
.ldash-prio.is-low { background: #dcfce7; color: #166534; }
.ldash-task .btn {
  align-self: flex-start;
  border-radius: 999px;
  margin-top: 4px;
}
.ldash-task.is-dark .btn {
  background: #fff;
  color: #0f172a;
  border-color: #fff;
}
.ldash-task.is-yellow .btn {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.ldash-profile {
  position: relative;
  background: #fff;
  border-radius: var(--ld-radius);
  box-shadow: var(--ld-shadow);
  padding: 22px 18px 16px;
  text-align: center;
}
.ldash-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}
.ldash-profile strong { display: block; font-size: 1rem; }
.ldash-profile > span { display: block; color: var(--ld-muted); font-size: 0.82rem; margin-top: 2px; word-break: break-all; }
.ldash-edit {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f8fafc;
  display: grid;
  place-items: center;
  color: var(--ld-muted);
}
.ldash-ring-mini {
  margin-top: 14px;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
}
.ldash-ring-mini strong { font-size: 1.35rem; }
.ldash-ring-mini span { display: block; color: var(--ld-muted); font-size: 0.8rem; margin-top: 2px; }

.ldash-cal {
  background: #fff;
  border-radius: var(--ld-radius);
  box-shadow: var(--ld-shadow);
  padding: 16px;
}
.ldash-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ldash-cal-head img { width: 40px; height: 40px; object-fit: contain; }
.ldash-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.ldash-cal-wd {
  font-size: 0.7rem;
  color: var(--ld-muted);
  font-weight: 700;
  padding: 4px 0;
}
.ldash-cal-day {
  display: grid;
  place-items: center;
  height: 30px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
}
.ldash-cal-day.is-on {
  background: var(--ld-navy);
  color: #fff;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.25);
}

.ldash-schedule {
  background: #fff;
  border-radius: var(--ld-radius);
  box-shadow: var(--ld-shadow);
  padding: 16px;
}
.ldash-schedule ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ldash-schedule li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(90deg, #fef9c3, #fff);
  border-left: 4px solid var(--ld-yellow-deep);
}
.ldash-schedule li.is-teal {
  background: linear-gradient(90deg, #ccfbf1, #fff);
  border-left-color: #14b8a6;
}
.ldash-schedule time {
  font-weight: 800;
  font-size: 0.85rem;
}
.ldash-schedule strong { display: block; font-size: 0.9rem; }
.ldash-schedule span { display: block; color: var(--ld-muted); font-size: 0.75rem; }
.ldash-schedule a {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.ldash-remind {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--ld-shadow);
  padding: 12px 14px;
}
.ldash-remind-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e0f2fe;
  display: grid;
  place-items: center;
  color: #0369a1;
}
.ldash-remind strong { display: block; font-size: 0.9rem; }
.ldash-remind span { color: var(--ld-muted); font-size: 0.78rem; }

.ldash-help {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--ld-navy);
  color: #fff;
  border-radius: var(--ld-radius);
  padding: 14px 16px;
  text-decoration: none;
  box-shadow: var(--ld-shadow);
}
.ldash-help img { width: 52px; height: 52px; object-fit: contain; }
.ldash-help strong { display: block; color: #fff; }
.ldash-help span { color: #cbd5e1; font-size: 0.82rem; }

@media (max-width: 1100px) {
  .ldash-grid { grid-template-columns: 1fr; }
  .ldash-rail { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ldash-help { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .ldash-course-list { grid-template-columns: 1fr; }
  .ldash-course-card.prog-carousel-slide { flex-basis: min(260px, 86%); }
  .ldash-assign-card { grid-template-columns: 1fr; text-align: center; }
  .ldash-assign-card .ldash-3d.lg { margin: 0 auto; }
  .ldash-assign-actions { justify-content: center; }
  .ldash-task-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ldash-rail { grid-template-columns: 1fr; }
  .ldash-search input { min-width: 120px; }
  .ldash-top h1 { font-size: 1.35rem; }
}

/* —— Gamification —— */
.ldash-game {
  background: #fff;
  border-radius: var(--ld-radius, 22px);
  box-shadow: var(--ld-shadow, 0 10px 30px rgba(15, 23, 42, 0.06));
  padding: 18px 20px;
}
.ldash-game-hero {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.ldash-game-hero h2 { margin: 0 0 4px; font-size: 1.15rem; font-weight: 800; }
.ldash-game-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 10px 0;
  font-size: 0.88rem;
  color: #64748b;
}
.ldash-game-stats strong { color: #0f172a; font-size: 1.05rem; margin-right: 4px; }
.ldash-game-bar { max-width: 320px; }
.ldash-game-cols {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}
.ldash-game-board ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ldash-game-board li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
}
.ldash-game-board li.is-me {
  background: linear-gradient(90deg, #fef9c3, #fff);
  border: 1px solid #fde047;
}
.ldash-rank {
  font-weight: 800;
  color: #64748b;
}
.ldash-game-board em {
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  color: #0f172a;
}
.ldash-game-trophies ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ldash-game-trophies li {
  text-align: center;
  background: #f8fafc;
  border-radius: 16px;
  padding: 10px 6px;
  font-size: 0.75rem;
  font-weight: 700;
}
.ldash-game-trophies img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  margin: 0 auto 6px;
}

.gfy { max-width: 1080px; }
.gfy-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.gfy-top h1 { margin: 0 0 6px; font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 800; }
.gfy-top p { margin: 0; color: #64748b; max-width: 42rem; }
.gfy-hero-img { filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.12)); }
.gfy-me {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.gfy-me-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.gfy-me-card h2 { margin: 0 0 4px; }
.gfy-kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gfy-kpi > div {
  background: #fff;
  border-radius: 18px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.gfy-kpi strong { display: block; font-size: 1.35rem; }
.gfy-kpi span { color: #64748b; font-size: 0.8rem; }
.gfy-how {
  background: linear-gradient(160deg, #0f172a, #1e293b);
  color: #f8fafc;
  border-radius: 22px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.gfy-how h2 { margin: 0 0 10px; font-size: 1.05rem; }
.gfy-how ul { margin: 0; padding-left: 1.1rem; color: #cbd5e1; }
.gfy-how li { margin: 4px 0; }
.gfy-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
}
.gfy-board-card,
.gfy-trophy-card {
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.gfy-board {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gfy-board li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
}
.gfy-board li.is-me {
  background: linear-gradient(90deg, #fef9c3, #fff);
  border: 1px solid #fde047;
}
.gfy-place {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: #e2e8f0;
  color: #334155;
}
.gfy-place.is-1 { background: #fde047; color: #0f172a; }
.gfy-place.is-2 { background: #e2e8f0; }
.gfy-place.is-3 { background: #ffedd5; color: #9a3412; }
.gfy-you {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #854d0e;
  background: #fef08a;
  border-radius: 999px;
  padding: 2px 8px;
}
.gfy-board em {
  font-style: normal;
  font-weight: 800;
}
.gfy-trophy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.gfy-trophy-grid article {
  border-radius: 16px;
  padding: 14px;
  background: #f8fafc;
  text-align: center;
}
.gfy-trophy-grid article.is-locked {
  opacity: 0.45;
  filter: grayscale(0.4);
}
.gfy-trophy-grid img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto 8px;
  display: block;
}
.gfy-trophy-grid strong { display: block; font-size: 0.92rem; margin-bottom: 4px; }
.gfy-trophy-grid p { margin: 0 0 6px; font-size: 0.8rem; color: #64748b; }

@media (max-width: 900px) {
  .ldash-game-hero { grid-template-columns: 72px minmax(0, 1fr); }
  .ldash-game-hero .btn { grid-column: 1 / -1; justify-self: start; }
  .ldash-game-cols,
  .gfy-me,
  .gfy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .gfy-kpi { grid-template-columns: 1fr; }
  .gfy-trophy-grid { grid-template-columns: 1fr; }
  .ldash-game-trophies ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* —— DEVINA FLEX Maskottchen —— */
.flex-mascot {
  position: relative;
  display: inline-block;
  width: var(--flex-mascot-size, 88px);
  height: var(--flex-mascot-size, 88px);
  vertical-align: middle;
  pointer-events: none;
  user-select: none;
  flex-shrink: 0;
}
.flex-mascot-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}
.flex-mascot--sm { --flex-mascot-size: 40px; }
.flex-mascot--md { --flex-mascot-size: 64px; }
.flex-mascot--lg { --flex-mascot-size: 120px; }
.flex-mascot--xl { --flex-mascot-size: 180px; }
.flex-mascot--hero { --flex-mascot-size: 220px; }
.tutor-buddy-mascot.flex-mascot,
.flex-mascot.tutor-buddy-mascot {
  --flex-mascot-size: min(42vw, 200px);
  width: var(--flex-mascot-size);
  height: var(--flex-mascot-size);
}
.ldash-help .flex-mascot { --flex-mascot-size: 56px; }
.ldash-help .flex-mascot-frame { filter: drop-shadow(0 6px 12px rgba(0,0,0,.25)); }
.curr-ai-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.curr-ai-head h3 { margin: 0; }
.curr-ai-flex.flex-mascot { --flex-mascot-size: 48px; }

.ai-buddy-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.ai-buddy-kicker {
  margin: 0 0 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0e7490;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ai-buddy-hero h1 { margin: 0 0 8px; }
.ai-buddy-hero .lead { margin: 0; max-width: 40rem; }
.ai-buddy-tip {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px;
}
.ai-buddy-tip p { margin: 0; font-size: 0.92rem; color: #475569; }
.ai-buddy-card .chat { min-height: 220px; }

.gfy-trophy-grid img,
.ldash-game-trophies img {
  filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.12));
}

@media (max-width: 900px) {
  .tutor-buddy-mascot.flex-mascot {
    --flex-mascot-size: 120px;
  }
}

/* —— Admin Dashboard Charts —— */
.lms-stats-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.lms-stat.is-amber { background: #fffbeb; }
.lms-stat.is-teal { background: #f0fdfa; }
.lms-stat.is-amber .lms-stat-ico { color: #d97706; }
.lms-stat.is-teal .lms-stat-ico { color: #0d9488; }
.lms-stat-text strong { font-size: 1.35rem; }
.lms-stat-text em { color: #64748b; font-weight: 600; }

.lms-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.lms-chart-card { min-height: 260px; }
.lms-chart-activity {
  grid-column: 1 / -1;
  min-height: 0;
}
@media (min-width: 1400px) {
  .lms-main {
    grid-template-columns: minmax(0, 1.85fr) minmax(340px, 1fr);
    gap: 20px;
  }
  .lms-stats { gap: 18px; }
  .school-main:has(.lms-dash) { padding-right: 32px; padding-left: 32px; }
}
@media (min-width: 1700px) {
  .lms-main {
    grid-template-columns: minmax(0, 2fr) minmax(380px, 1fr);
  }
}
.lms-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 160px;
  padding: 8px 4px 0;
}
.lms-bar-col {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.lms-bar-stack {
  width: 100%;
  max-width: 28px;
  height: 100%;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  gap: 2px;
}
.lms-bar-stack i {
  display: block;
  width: 100%;
  border-radius: 6px 6px 2px 2px;
  min-height: 3px;
}
.lms-bar-stack i.is-lessons { background: #2563eb; }
.lms-bar-stack i.is-attempts { background: #67e8f9; }
.lms-bar-stack i.is-live { background: #a78bfa; }
.lms-bar-stack i.is-hw { background: #f97316; border-radius: 8px 8px 3px 3px; }
.lms-bar-col span { font-size: 11px; color: #94a3b8; font-weight: 700; }
.lms-bar-col em { font-style: normal; font-size: 11px; font-weight: 800; color: #0f172a; }
.lms-bars-single .lms-bar-stack { max-width: 22px; }

/* Admin Dashboard v2 + glossy 3D charts */
.lms-dash-v2 .lms-welcome { margin-bottom: 14px; }
.lms-actions {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0f766e 140%);
  color: #fff;
  border-radius: 22px;
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}
.lms-actions-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.lms-actions-head h3 { margin: 0; font-size: 1.05rem; color: #fff; }
.lms-actions-head .meta { color: rgba(255,255,255,0.7); }
.lms-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.lms-action {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  text-decoration: none;
  color: #0f172a;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.8);
  transition: transform .15s ease, box-shadow .15s ease;
}
.lms-action:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,0,0,0.16); }
.lms-action strong { font-size: 1.5rem; line-height: 1; }
.lms-action em { font-style: normal; font-size: 12px; font-weight: 700; color: #475569; }
.lms-action.is-amber { background: linear-gradient(180deg, #fffbeb, #fde68a); }
.lms-action.is-orange { background: linear-gradient(180deg, #fff7ed, #fdba74); }
.lms-action.is-violet { background: linear-gradient(180deg, #f5f3ff, #c4b5fd); }
.lms-action.is-rose { background: linear-gradient(180deg, #fff1f2, #fda4af); }
.lms-action.is-teal { background: linear-gradient(180deg, #f0fdfa, #5eead4); }
.lms-action.is-sky { background: linear-gradient(180deg, #f0f9ff, #7dd3fc); }
.lms-actions-clear { margin: 0 0 14px; }

.lms-live-prep { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lms-live-prep > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff7ed;
}
.lms-live-prep > li.is-ready { background: #ecfdf5; }
.lms-live-prep-meta { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 4px; }
.lms-live-prep-meta strong a { color: inherit; text-decoration: none; }
.lms-live-prep-meta span { font-size: 13px; color: #64748b; }
.lms-prep-meter {
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-top: 4px;
  max-width: 220px;
}
.lms-prep-meter > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d9488, #2dd4bf);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}
.lms-live-prep-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.lms-insights {
  margin: 22px 0 12px;
  border: none;
}
.lms-insights > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  margin-bottom: 14px;
  font-weight: 800;
  font-size: 1.05rem;
  color: #0f172a;
}
.lms-insights > summary::-webkit-details-marker { display: none; }
.lms-insights-extra {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.lms-ops-link { margin: 8px 0 6px; }
.lms-ops { opacity: 0.85; }

/* —— Admin Heute: Health / Queue / Next Live / Risk / Heat / Tabs —— */
.lms-health {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff7ed, #ffedd5);
  border: 1px solid rgba(251, 146, 60, 0.35);
}
.lms-health strong { font-size: 13px; color: #9a3412; }
.lms-health ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lms-health li a {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  color: #9a3412;
  box-shadow: 0 4px 10px rgba(154, 52, 18, 0.08);
}
.lms-health li.is-risk a { background: #fee2e2; color: #b91c1c; }

.lms-queue {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}
.lms-queue-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 12px;
}
.lms-queue-head h3 { margin: 0; font-size: 1.05rem; color: #fff; }
.lms-queue-head .meta { color: rgba(255,255,255,0.65); }
.lms-queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.lms-queue-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.lms-queue-item:hover { background: rgba(255,255,255,0.14); transform: translateY(-1px); }
.lms-queue-item strong {
  min-width: 2rem;
  font-size: 1.35rem;
  line-height: 1;
}
.lms-queue-item span { font-weight: 700; font-size: 14px; }
.lms-queue-item em { font-style: normal; font-size: 12px; font-weight: 700; opacity: 0.7; }
.lms-queue-item.is-amber { box-shadow: inset 3px 0 0 #fbbf24; }
.lms-queue-item.is-orange { box-shadow: inset 3px 0 0 #fb923c; }
.lms-queue-item.is-violet { box-shadow: inset 3px 0 0 #a78bfa; }
.lms-queue-item.is-rose { box-shadow: inset 3px 0 0 #fb7185; }
.lms-queue-item.is-teal { box-shadow: inset 3px 0 0 #2dd4bf; }
.lms-queue-item.is-sky { box-shadow: inset 3px 0 0 #38bdf8; }

.lms-next-live {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ecfeff, #cffafe);
  border: 1px solid rgba(8, 145, 178, 0.22);
}
.lms-next-live.is-open {
  background: linear-gradient(180deg, #fff7ed, #ffedd5);
  border-color: rgba(234, 88, 12, 0.25);
}
.lms-next-live-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lms-next-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0e7490;
}
.lms-next-live.is-open .lms-next-kicker { color: #c2410c; }
.lms-next-live-main strong { font-size: 1.05rem; }
.lms-next-live-main strong a { color: #0f172a; text-decoration: none; }
.lms-next-live-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.lms-risk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.lms-risk-list li a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  background: #fff;
  box-shadow: inset 3px 0 0 #ef4444, 0 6px 14px rgba(15,23,42,0.05);
  color: #0f172a;
}
.lms-risk-list li.is-medium a { box-shadow: inset 3px 0 0 #f59e0b, 0 6px 14px rgba(15,23,42,0.05); }
.lms-risk-list li a span { font-size: 12px; font-weight: 600; color: #64748b; }

.lms-heat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.lms-heat-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid rgba(148,163,184,0.25);
}
.lms-heat-tile strong { font-size: 14px; }
.lms-heat-tile span, .lms-heat-tile em { font-size: 12px; color: #64748b; font-style: normal; }
.lms-heat-tile i { font-style: normal; font-size: 11px; font-weight: 800; color: #b45309; }
.lms-heat-tile.is-ok { background: linear-gradient(180deg, #f0fdf4, #dcfce7); border-color: rgba(34,197,94,0.25); }
.lms-heat-tile.is-warn { background: linear-gradient(180deg, #fffbeb, #fef3c7); border-color: rgba(245,158,11,0.3); }
.lms-heat-tile.is-risk { background: linear-gradient(180deg, #fff1f2, #fecdd3); border-color: rgba(244,63,94,0.3); }

.lms-act-head-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.lms-week-delta {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #f1f5f9;
  color: #475569;
}
.lms-week-delta.is-up { background: #dcfce7; color: #15803d; }
.lms-week-delta.is-down { background: #fee2e2; color: #b91c1c; }

.lms-relevant {
  margin-top: 16px;
}
.lms-tabs {
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(15,23,42,0.06);
  border: 1px solid rgba(148,163,184,0.2);
  overflow: hidden;
}
.lms-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 12px 0;
  background: #f8fafc;
  border-bottom: 1px solid rgba(226,232,240,0.9);
}
.lms-tabs-nav button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  border-radius: 12px 12px 0 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}
.lms-tabs-nav button.is-on {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 -1px 0 #fff;
}
.lms-tabs-panel {
  padding: 16px;
}
.lms-tabs-panel[hidden] { display: none; }
.lms-tabs-panel > .meta { display: inline-block; margin-top: 10px; }

.lms-updates {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(226,232,240,0.9);
}
.lms-updates h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #475569;
}
.lms-updates ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.lms-updates li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
}
.lms-updates li strong { font-size: 13px; }
.lms-updates li span { font-size: 12px; color: #64748b; }

.lms-briefing {
  margin: 6px 0 10px;
  max-width: 52rem;
  font-size: 0.98rem;
  color: #334155;
  line-height: 1.45;
}
.lms-primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.lms-primary-cta strong {
  min-width: 1.5rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15,23,42,0.08);
}

.lms-empty-steps {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px dashed rgba(148,163,184,0.5);
}
.lms-empty-steps h3 { margin: 0 0 10px; font-size: 1rem; }
.lms-empty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}
.lms-empty-card {
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 8px 16px rgba(15,23,42,0.05);
}
.lms-empty-card.is-sky { border-left: 3px solid #0ea5e9; }
.lms-empty-card.is-amber { border-left: 3px solid #f59e0b; }
.lms-empty-card.is-teal { border-left: 3px solid #14b8a6; }
.lms-empty-card.is-violet { border-left: 3px solid #8b5cf6; }

.lms-capacity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #eff6ff;
  border: 1px solid rgba(37,99,235,0.2);
}
.lms-capacity strong { font-size: 13px; color: #1d4ed8; }
.lms-capacity ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lms-capacity a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: #1e40af;
}

.lms-prep-inline {
  flex: 1 1 100%;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(8,145,178,0.2);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 16px;
}
.lms-prep-inline ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px 12px;
  flex: 1 1 auto;
}
.lms-prep-inline label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
}

.lms-risk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.lms-risk-row > a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1;
}
.lms-risk-list li {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 3px 0 0 #ef4444, 0 6px 14px rgba(15,23,42,0.05);
}
.lms-risk-list li.is-medium { box-shadow: inset 3px 0 0 #f59e0b, 0 6px 14px rgba(15,23,42,0.05); }
.lms-risk-list li a span { font-size: 12px; font-weight: 600; color: #64748b; }
.lms-risk-bulk { margin-top: 10px; }

.lms-focus-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 16px;
}
.lms-goals-grid { display: grid; gap: 10px; }
.lms-goal-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #0f172a;
  background: #f8fafc;
}
.lms-goal-tile strong { display: block; font-size: 14px; }
.lms-goal-tile span { font-size: 12px; color: #64748b; }
.lms-goal-ring {
  --p: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: conic-gradient(#0d9488 calc(var(--p) * 1%), #e2e8f0 0);
}
.lms-goal-ring em {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}
.lms-hotspot-list, .lms-unmarked-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.lms-hotspot-list a, .lms-unmarked-list a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  text-decoration: none;
  color: #0f172a;
}
.lms-hotspot-list span, .lms-unmarked-list span { font-size: 12px; color: #64748b; }

.lms-digest {
  margin: 0 0 16px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(148,163,184,0.25);
  box-shadow: 0 12px 24px rgba(15,23,42,0.05);
}
.lms-digest-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 8px;
}
.lms-digest-head h3 { margin: 0; font-size: 1.05rem; }
.lms-digest-subject { margin: 0 0 8px; }
.lms-digest-excerpt {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  white-space: pre-wrap;
  font: inherit;
  font-size: 13px;
  color: #475569;
  max-height: 160px;
  overflow: auto;
}
.lms-digest-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.lms-dash.is-editing [data-dash-block] {
  outline: 2px dashed rgba(37,99,235,0.35);
  outline-offset: 4px;
  position: relative;
}
.lms-dash.is-editing [data-dash-block]::before {
  content: attr(data-dash-block);
  position: absolute;
  top: -10px;
  right: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1d4ed8;
  background: #dbeafe;
  padding: 2px 6px;
  border-radius: 6px;
  z-index: 2;
}
.lms-dash-block-tools {
  position: absolute;
  top: 6px;
  left: 6px;
  display: none;
  gap: 4px;
  z-index: 3;
}
.lms-dash.is-editing .lms-dash-block-tools { display: flex; }
.lms-dash-block-tools button {
  appearance: none;
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(15,23,42,0.12);
  cursor: pointer;
  font-weight: 800;
  color: #0f172a;
}
[data-dash-block].is-collapsed > :not(.lms-dash-block-tools):not(summary):not(.lms-card-head):not(.lms-queue-head):not(.lms-digest-head) {
  display: none !important;
}
[data-dash-block].is-collapsed .lms-card-head + *,
[data-dash-block].is-collapsed summary + * { display: none !important; }

@media (max-width: 1100px) {
  .lms-focus-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .lms-next-live { align-items: flex-start; }
  .lms-queue-item { grid-template-columns: auto 1fr; }
  .lms-queue-item em { display: none; }
  .lms-risk-row { flex-direction: column; align-items: flex-start; }
}

.lms-charts-3d .lms-chart-3d {
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(255,255,255,0.95), transparent 55%),
    linear-gradient(165deg, #ffffff 0%, #f8fafc 45%, #eef2ff 100%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow:
    0 22px 40px rgba(15, 23, 42, 0.1),
    0 2px 0 rgba(255,255,255,0.9) inset,
    0 -1px 0 rgba(15, 23, 42, 0.04) inset;
  transform-style: preserve-3d;
}
.lms-act-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 4px 0 16px;
}
.lms-act-layout {
  display: grid;
  grid-template-columns: minmax(160px, 200px) minmax(0, 1fr);
  gap: 16px 20px;
  align-items: stretch;
  margin-top: 4px;
}
.lms-act-kpis-stack {
  grid-template-columns: 1fr;
  margin: 0;
  gap: 8px;
  align-content: stretch;
  height: 100%;
}
.lms-act-chart {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px 16px 12px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,250,252,0.88));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 0 0 1px rgba(148,163,184,0.18);
}
.lms-act-kpi {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 6px 14px rgba(15,23,42,0.04);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-left: 3px solid transparent;
  min-height: 0;
  flex: 1 1 0;
}
.lms-act-kpi strong {
  font-size: 1.35rem;
  line-height: 1;
  color: #0f172a;
  display: flex;
  align-items: baseline;
  gap: 6px;
  order: 2;
}
.lms-act-kpi strong small {
  font-size: 0.68rem;
  font-weight: 800;
  color: #0f766e;
  background: #ccfbf1;
  padding: 2px 6px;
  border-radius: 999px;
}
.lms-act-kpi em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  order: 1;
  line-height: 1.2;
}
.lms-act-kpi.is-lessons { border-left-color: #2563eb; }
.lms-act-kpi.is-attempts { border-left-color: #0891b2; }
.lms-act-kpi.is-active { border-left-color: #4f46e5; }

.lms-bars-act {
  display: flex;
  align-items: stretch;
  gap: 8px;
  height: 156px;
  padding: 4px 2px 0;
  margin: 0;
  flex: 1 1 auto;
}
.lms-bars-act .lms-bar-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.lms-bars-act .lms-bar-stack {
  width: 100%;
  max-width: 34px;
  height: var(--h, 8%);
  min-height: 8px;
  display: flex;
  flex-direction: column-reverse;
  overflow: hidden;
  border-radius: 10px 10px 4px 4px;
  background: #e2e8f0;
  box-shadow: 0 8px 14px rgba(15, 23, 42, 0.07);
}
.lms-bars-act .lms-bar-col.is-empty .lms-bar-stack {
  height: 8px;
  background: #e2e8f0;
  box-shadow: none;
  opacity: 0.5;
}
.lms-bars-act .lms-bar-stack i {
  display: block;
  width: 100%;
  min-height: 4px;
  border: 0;
}
.lms-bars-act .lms-bar-stack i.is-lessons { background: linear-gradient(180deg, #60a5fa, #2563eb); }
.lms-bars-act .lms-bar-stack i.is-attempts { background: linear-gradient(180deg, #22d3ee, #0891b2); }
.lms-bars-act .lms-bar-stack i.is-live { background: linear-gradient(180deg, #a78bfa, #7c3aed); }
.lms-bars-act .lms-bar-stack i.is-empty { background: transparent; flex: 1; }
.lms-bars-act .lms-bar-n {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  min-height: 14px;
}
.lms-bars-act .lms-bar-n.is-zero { color: #cbd5e1; font-weight: 700; }
.lms-bars-act .lms-bar-col.is-peak .lms-bar-day { color: #0f172a; font-weight: 800; }
.lms-bars-act .lms-bar-col.is-peak .lms-bar-stack {
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.2);
  outline: 2px solid rgba(37, 99, 235, 0.28);
  outline-offset: 1px;
}
.lms-act-legend {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}
@media (max-width: 900px) {
  .lms-act-layout { grid-template-columns: 1fr; }
  .lms-act-kpis-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .lms-act-kpis-stack { grid-template-columns: 1fr; }
}

/* legacy KPI accents kept for analytics pages */
.lms-act-kpis-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 520px;
}
.lms-bar-n {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
}
.lms-bars-cluster {
  height: 230px;
  padding: 12px 4px 56px;
  gap: 6px;
}
.lms-bars-cluster .lms-bar-col {
  min-width: 0;
  gap: 4px;
}
.lms-bars-cluster .lms-bar-col.is-peak .lms-bar-day {
  color: #c2410c;
  font-weight: 800;
}
.lms-bar-cluster {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 100%;
  max-width: 78px;
  height: 100%;
  filter: drop-shadow(4px 8px 8px rgba(15, 23, 42, 0.18));
}
.lms-bar-cluster i {
  flex: 1 1 0;
  min-width: 6px;
  max-width: 12px;
  height: var(--h, 0%);
  min-height: 0;
  border-radius: 8px 8px 3px 3px;
  position: relative;
  transform: skewX(-6deg);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.55),
    inset -4px 0 8px rgba(255,255,255,0.15),
    inset 4px 0 10px rgba(0,0,0,0.16);
}
.lms-bar-cluster i[style*="--h:0%"] {
  height: 4px;
  opacity: 0.22;
  box-shadow: none;
}
.lms-bar-cluster i::after {
  content: "";
  position: absolute;
  inset: 2px auto 20% 18%;
  width: 30%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), transparent);
  pointer-events: none;
}
.lms-bar-cluster i.is-lessons { background: linear-gradient(180deg, #93c5fd, #2563eb 48%, #1d4ed8); }
.lms-bar-cluster i.is-attempts { background: linear-gradient(180deg, #a5f3fc, #06b6d4 48%, #0e7490); }
.lms-bar-cluster i.is-hw { background: linear-gradient(180deg, #fdba74, #f97316 48%, #c2410c); }
.lms-bar-cluster i.is-speak { background: linear-gradient(180deg, #f9a8d4, #ec4899 48%, #be185d); }
.lms-bar-cluster i.is-live { background: linear-gradient(180deg, #ddd6fe, #8b5cf6 48%, #6d28d9); }
.lms-bar-day { font-size: 11px; color: #94a3b8; font-weight: 700; }
.lms-bar-detail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 6px;
  min-height: 28px;
}
.lms-bar-detail em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
}
.lms-bar-detail em.is-total { color: #0f172a; font-weight: 800; }
.lms-act-legend .meta { color: #94a3b8; }
.lms-act-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border-radius: 14px;
  background: rgba(255,255,255,0.65);
  box-shadow: inset 0 0 0 1px rgba(148,163,184,0.25);
}
.lms-act-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.lms-act-table th,
.lms-act-table td {
  padding: 9px 10px;
  text-align: right;
  border-bottom: 1px solid rgba(226,232,240,0.9);
  white-space: nowrap;
}
.lms-act-table th:first-child,
.lms-act-table td:first-child { text-align: left; }
.lms-act-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
  background: rgba(248,250,252,0.9);
}
.lms-act-table tr.is-peak td { background: #fff7ed; }
.lms-act-table tbody tr:hover td { background: #f8fafc; }

.lms-bars-3d {
  position: relative;
  perspective: 700px;
  height: 190px;
  padding: 18px 8px 28px;
  isolation: isolate;
}
.lms-bars-stage {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 22px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.14), transparent 70%);
  filter: blur(2px);
  z-index: 0;
  pointer-events: none;
}
.lms-bars-3d .lms-bar-col {
  position: relative;
  z-index: 1;
  transform: rotateX(18deg) translateZ(0);
  transform-origin: bottom center;
}
.lms-bars-3d .lms-bar-stack {
  max-width: 32px;
  filter: drop-shadow(6px 10px 10px rgba(15, 23, 42, 0.22));
}
.lms-bars-3d .lms-bar-stack i {
  height: var(--h, 20%);
  min-height: 6px;
  border-radius: 10px 10px 4px 4px;
  position: relative;
  transform: skewX(-8deg);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.55),
    inset -6px 0 10px rgba(255,255,255,0.18),
    inset 6px 0 12px rgba(0,0,0,0.18),
    0 8px 14px rgba(15, 23, 42, 0.18);
}
.lms-bars-3d .lms-bar-stack i::after {
  content: "";
  position: absolute;
  inset: 2px auto 18% 14%;
  width: 28%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0));
  pointer-events: none;
}
.lms-bars-3d .lms-bar-stack i.is-lessons {
  background: linear-gradient(180deg, #93c5fd 0%, #2563eb 42%, #1d4ed8 100%);
}
.lms-bars-3d .lms-bar-stack i.is-attempts {
  background: linear-gradient(180deg, #a5f3fc 0%, #22d3ee 45%, #0891b2 100%);
}
.lms-bars-3d .lms-bar-stack i.is-live {
  background: linear-gradient(180deg, #ddd6fe 0%, #8b5cf6 45%, #6d28d9 100%);
}
.lms-bars-3d .lms-bar-stack i.is-hw {
  background: linear-gradient(180deg, #fdba74 0%, #f97316 48%, #c2410c 100%);
  border-radius: 12px 12px 5px 5px;
}
.lms-bars-3d.lms-bars-single .lms-bar-stack { max-width: 26px; }

.lms-donut-3d {
  position: relative;
  width: 148px;
  height: 148px;
  background: transparent;
  box-shadow: none;
  transform: perspective(600px) rotateX(22deg);
  filter: drop-shadow(0 18px 18px rgba(15, 23, 42, 0.2));
}
.lms-donut-3d .lms-donut-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,0.65),
    inset 0 -8px 16px rgba(15, 23, 42, 0.2),
    0 0 0 1px rgba(255,255,255,0.35);
}
.lms-donut-3d .lms-donut-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.55), transparent 42%, rgba(0,0,0,0.12) 100%);
  pointer-events: none;
}
.lms-donut-3d .lms-donut-hole {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  background: linear-gradient(180deg, #ffffff, #f1f5f9);
  box-shadow:
    0 10px 20px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.9);
}
@media (max-width: 1100px) {
  .lms-insights-extra { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .lms-bars-3d .lms-bar-col,
  .lms-donut-3d { transform: none; }
}

.lms-donut-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.lms-donut {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}
.lms-donut-hole {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.lms-donut-hole strong { font-size: 1.35rem; line-height: 1.1; color: #0f172a; }
.lms-donut-hole span { font-size: 11px; color: #64748b; }

.lms-chart-legend {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 12px;
  color: #475569;
}
.lms-chart-legend.is-col { flex-direction: column; gap: 8px; margin: 0; }
.lms-chart-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 6px;
  vertical-align: middle;
}
.lms-chart-legend .is-lessons { background: #2563eb; }
.lms-chart-legend .is-attempts { background: #67e8f9; }
.lms-chart-legend .is-live { background: #a78bfa; }
.lms-chart-legend .is-present { background: #0d9488; }
.lms-chart-legend .is-late { background: #f59e0b; }
.lms-chart-legend .is-absent { background: #ef4444; }
.lms-chart-legend .is-en-active { background: #2563eb; }
.lms-chart-legend .is-en-self { background: #14b8a6; }
.lms-chart-legend .is-en-pending { background: #f59e0b; }

.lms-top-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lms-top-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f8fafc;
}
.lms-top-rank { font-weight: 800; color: #64748b; }
.lms-top-list em { font-style: normal; font-size: 12px; color: #64748b; font-weight: 600; }

.lms-hw-queue {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lms-hw-queue li {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
}
.lms-hw-queue span, .lms-hw-queue em { font-size: 13px; color: #64748b; }
.lms-hw-queue em { font-style: normal; font-weight: 700; color: #ea580c; }
.lms-note-ico.is-sky { background: #e0f2fe; color: #0369a1; }

@media (max-width: 1100px) {
  .lms-stats-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lms-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lms-chart-activity { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .lms-charts { grid-template-columns: 1fr; }
  .lms-chart-activity { grid-column: auto; }
  .lms-hw-queue li { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 560px) {
  .lms-stats-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* —— KI-Tutor (ldash Soft-UI) —— */
.page-ai .app-main,
.page-dashboard.page-ai .app-main {
  background: #f3f4f6;
}
.aidash { max-width: none; }
.aidash-top { margin-bottom: 0; }
.aidash-kicker {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0e7490;
}
.aidash-top h1 { margin: 0; }
.aidash-top > div > p:last-child {
  margin: 6px 0 0;
  color: var(--ld-muted, #64748b);
  max-width: 40rem;
}
.aidash-today { margin-top: 8px !important; font-weight: 600; color: #0f172a !important; }
.aidash-ctx {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.aidash-ctx-title { margin: 0 0 10px; font-size: 1rem; font-weight: 800; }
.aidash-ctx-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.aidash-ctx-chip {
  border: 0;
  background: #eef2ff;
  color: #1e3a8a;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.aidash-ctx-chip:hover { background: #dbeafe; }

.aidash-chat-card {
  background: var(--ld-card, #fff);
  border-radius: var(--ld-radius, 22px);
  box-shadow: var(--ld-shadow, 0 10px 30px rgba(15, 23, 42, 0.06));
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  min-height: 560px;
}
.aidash-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.aidash-chat-head h2 { margin: 0; font-size: 1.1rem; font-weight: 800; }

.aidash-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 280px;
  max-height: min(52vh, 480px);
  overflow: auto;
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
  margin-bottom: 14px;
}
.aidash-chat .bubble {
  padding: 12px 14px;
  border-radius: 16px;
  max-width: 85%;
  white-space: pre-wrap;
  line-height: 1.45;
  font-size: 0.95rem;
}
.aidash-chat .bubble-user {
  align-self: flex-end;
  background: #fde047;
  color: #0f172a;
  font-weight: 600;
}
.aidash-chat .bubble-ai {
  align-self: flex-start;
  background: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.aidash-empty {
  margin: auto;
  text-align: center;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 12px;
}
.aidash-empty p { margin: 0; max-width: 28rem; }

.aidash-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.aidash-mode {
  border: 0;
  background: #f1f5f9;
  color: #334155;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.aidash-mode:hover { background: #e2e8f0; }
.aidash-mode.is-on {
  background: #fde047;
  color: #0f172a;
}

.aidash-tools {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  margin-bottom: 12px;
}
.aidash-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}
.aidash-field select,
.aidash-field input {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 500;
  color: #0f172a;
  background: #fff;
}
.aidash-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.aidash-composer textarea {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
  min-height: 72px;
  background: #fff;
}
.aidash-composer .btn {
  border-radius: 999px;
  padding: 12px 18px;
  white-space: nowrap;
}

.aidash-flex-card {
  padding-top: 18px;
  padding-bottom: 18px;
}
.aidash-flex-card .flex-mascot,
.aidash-flex-card .tutor-buddy-mascot.flex-mascot {
  margin: 0 auto 10px;
  --flex-mascot-size: min(48vw, 180px);
  width: var(--flex-mascot-size);
  height: var(--flex-mascot-size);
}
.aidash-empty {
  margin: auto;
  text-align: center;
  color: #64748b;
  padding: 28px 16px;
  max-width: 28rem;
}
.aidash-empty p { margin: 0; line-height: 1.45; }
.ldash-help.aidash-dash-link,
.aidash .ldash-help {
  justify-content: center;
  text-align: center;
}

@media (max-width: 900px) {
  .aidash-tools { grid-template-columns: 1fr; }
  .aidash-composer { grid-template-columns: 1fr; }
  .aidash-composer .btn { width: 100%; }
  .aidash-chat-card { min-height: 0; }
}

/* —— Learner Live (/live) Soft-UI —— */
.page-live .app-main > .livedash {
  max-width: none;
}
.livedash-kicker {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.livedash-top h1 { margin: 0; }
.livedash-top > div > p:last-child {
  margin: 6px 0 0;
  color: var(--ld-muted);
  max-width: 42rem;
  line-height: 1.45;
}

.livedash-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-radius: var(--ld-radius);
  background: linear-gradient(135deg, #ecfeff 0%, #eff6ff 55%, #f8fafc 100%);
  border: 1px solid #bae6fd;
  box-shadow: var(--ld-shadow);
}
.livedash-next.is-live {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #6ee7b7;
}
.livedash-next-main .meta {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0369a1;
}
.livedash-next.is-live .meta { color: #047857; }
.livedash-next-main h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
}
.livedash-next-meta {
  margin: 0;
  color: var(--ld-muted);
  font-size: 0.9rem;
}
.livedash-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.livedash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--ld-shadow);
}
.livedash-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.15s, color 0.15s;
}
.livedash-tabs a em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 800;
  min-width: 1.4rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  text-align: center;
}
.livedash-tabs a:hover { background: #f8fafc; color: #0f172a; }
.livedash-tabs a.is-on {
  background: #0f172a;
  color: #fff;
}
.livedash-tabs a.is-on em {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.livedash-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.livedash-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--ld-radius);
  box-shadow: var(--ld-shadow);
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s;
}
.livedash-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}
.livedash-card.is-live { border-color: #6ee7b7; }
.livedash-card.is-past { opacity: 0.78; }
.livedash-card-accent {
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #6366f1);
}
.livedash-card.is-live .livedash-card-accent {
  background: linear-gradient(90deg, #34d399, #10b981);
}
.livedash-card.is-past .livedash-card-accent {
  background: linear-gradient(90deg, #94a3b8, #64748b);
}
.livedash-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 8px;
  flex: 1;
}
.livedash-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.livedash-card-top time {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
}
.livedash-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}
.livedash-card h3 a {
  color: inherit;
  text-decoration: none;
}
.livedash-card h3 a:hover { color: #0369a1; }
.livedash-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ld-muted);
  line-height: 1.4;
}
.livedash-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.livedash-chips span {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}
.livedash-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
}
.livedash-pill.is-ok {
  background: #dcfce7;
  color: #166534;
}
.livedash-pill.is-live {
  background: #d1fae5;
  color: #047857;
  animation: livedash-pulse 1.6s ease-in-out infinite;
}
@keyframes livedash-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.livedash-seats { display: flex; flex-direction: column; gap: 6px; }
.livedash-seats-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ld-muted);
}
.livedash-seats-label strong { color: #0f172a; }
.livedash-seats-bar {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.livedash-seats-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
}
.livedash-seats-lg { margin-top: 8px; max-width: 280px; }

.livedash-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 16px;
}
.livedash-card-foot .btn { border-radius: 999px; }

.livedash-empty {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--ld-radius);
  box-shadow: var(--ld-shadow);
}
.livedash-empty strong { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.livedash-empty p { margin: 0 0 14px; color: var(--ld-muted); }

.livedash-rail-card {
  background: #fff;
  border-radius: var(--ld-radius);
  box-shadow: var(--ld-shadow);
  padding: 16px 18px;
}
.livedash-rail-card h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 800;
}
.livedash-rail-card ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--ld-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.livedash-rail .ldash-profile {
  text-align: left;
}
.livedash-rail .ldash-profile strong { margin-bottom: 6px; }
.livedash-rail .ldash-profile > span {
  word-break: normal;
  line-height: 1.45;
}

/* Detail */
.livedash-show { display: flex; flex-direction: column; gap: 18px; }
.livedash-back { margin: 0; }
.livedash-back a {
  color: #64748b;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}
.livedash-back a:hover { color: #0f172a; }
.livedash-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr);
  gap: 22px;
  padding: 24px;
  background: #fff;
  border-radius: var(--ld-radius);
  box-shadow: var(--ld-shadow);
  border: 1px solid transparent;
}
.livedash-hero.is-live { border-color: #6ee7b7; }
.livedash-hero-main h1 {
  margin: 4px 0 8px;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
}
.livedash-hero-when {
  margin: 0 0 12px;
  font-weight: 700;
  color: #334155;
}
.livedash-hero-desc {
  margin: 14px 0 0;
  color: var(--ld-muted);
  line-height: 1.5;
}
.livedash-hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(160deg, #f8fafc, #eff6ff);
  align-self: start;
}
.livedash-countdown-wrap .meta {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.livedash-countdown-wrap .countdown {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
}
.livedash-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.livedash-cta .btn { border-radius: 999px; }
.livedash-roster {
  background: #fff;
  border-radius: var(--ld-radius);
  box-shadow: var(--ld-shadow);
  padding: 18px 20px;
}
.livedash-roster h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
}
.live-taps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.live-taps form { margin: 0; }

.livedash-lessons {
  background: #fff;
  border-radius: var(--ld-radius);
  box-shadow: var(--ld-shadow);
  padding: 18px 20px;
}
.livedash-lessons-head h2,
.livedash-lessons > h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
}
.livedash-lessons-head .meta,
.livedash-lessons-empty .meta {
  margin: 0 0 14px;
}
.livedash-lessons-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.livedash-lesson-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.livedash-lesson-main h3 {
  margin: 2px 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
}
.livedash-lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  justify-content: flex-end;
}
.livedash-lesson-actions .btn { border-radius: 999px; }
.livedash-mat-list {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.livedash-mat-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 600;
}
.livedash-mat-list a:hover { border-color: #94a3b8; }
.livedash-mat-list em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0369a1;
}
.livedash-mat-empty { grid-column: 1 / -1; margin: 0; }

@media (max-width: 900px) {
  .livedash-hero { grid-template-columns: 1fr; }
  .livedash-tabs { border-radius: 18px; }
  .livedash-lesson-card { grid-template-columns: 1fr; }
  .livedash-lesson-actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .livedash-next { padding: 16px; }
  .livedash-tabs a { flex: 1 1 auto; justify-content: center; }
  .livedash-grid-cards { grid-template-columns: 1fr; }
}

/* —— Schülerportal Soft-UI (alle Learner-Views) —— */
.page-dashboard .app-main > .ldash-soft,
.page-dashboard .app-main > .ldash {
  max-width: none;
}
.ldash-soft {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ldash-soft > h1,
.ldash-soft > .ldash-page-head h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: var(--ld-navy, #0f172a);
}
.ldash-soft > .kicker,
.ldash-soft .ldash-page-kicker {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.ldash-soft > .lead,
.ldash-soft .ldash-page-lead {
  margin: 0;
  color: var(--ld-muted, #64748b);
  max-width: 46rem;
  line-height: 1.45;
}
.ldash-soft > .meta { color: var(--ld-muted, #64748b); }

.ldash-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.ldash-page-head .ldash-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Cards / forms under Soft shell */
.ldash-soft .card,
.page-dashboard .ldash .card {
  background: #fff;
  border: 1px solid transparent;
  border-radius: var(--ld-radius, 22px);
  box-shadow: var(--ld-shadow, 0 10px 30px rgba(15, 23, 42, 0.06));
  padding: 18px 20px;
}
.ldash-soft .card-link:hover,
.page-dashboard .ldash .card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}
.ldash-soft .badge,
.page-dashboard .ldash .badge {
  border-radius: 999px;
  font-weight: 700;
}
.ldash-soft .btn,
.page-dashboard .ldash .btn {
  border-radius: 999px;
}
.ldash-soft input:not([type="checkbox"]):not([type="radio"]),
.ldash-soft select,
.ldash-soft textarea,
.page-dashboard .ldash input:not([type="checkbox"]):not([type="radio"]),
.page-dashboard .ldash select,
.page-dashboard .ldash textarea {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}
.ldash-soft textarea {
  min-height: 140px;
  width: 100%;
}

/* Mein Kurs */
.page-dashboard .mycourse { max-width: none; }
.page-dashboard .mycourse-hero {
  background: #fff;
  border-radius: var(--ld-radius, 22px);
  box-shadow: var(--ld-shadow, 0 10px 30px rgba(15, 23, 42, 0.06));
  padding: 22px 24px;
  border: none;
  align-items: center;
}
.page-dashboard .mycourse-hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  font-size: 0.78rem;
  color: #64748b;
}
.page-dashboard .mycourse-hero h1 { font-weight: 800; }
.page-dashboard .mycourse-panel,
.page-dashboard .mycourse .card {
  background: #fff;
  border-radius: var(--ld-radius, 22px);
  box-shadow: var(--ld-shadow, 0 10px 30px rgba(15, 23, 42, 0.06));
  border: none;
  padding: 18px 20px;
}
.page-dashboard .mycourse-stats .stat {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--ld-shadow, 0 10px 30px rgba(15, 23, 42, 0.06));
  padding: 14px 16px;
  border: none;
}
.page-dashboard .mycourse .curr-progress,
.page-dashboard .ldash-soft .curr-progress {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.page-dashboard .mycourse .curr-progress > span,
.page-dashboard .ldash-soft .curr-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #facc15, #fde047);
}

/* Curriculum / Modul / Lektion */
.page-dashboard .curr-hero {
  background: #fff;
  border-radius: var(--ld-radius, 22px);
  box-shadow: var(--ld-shadow, 0 10px 30px rgba(15, 23, 42, 0.06));
  border: none;
  padding: 22px 24px;
}
.page-dashboard .curr-hero-mark {
  background: #fef9c3;
  border-radius: 18px;
}
.page-dashboard .curr-path {
  background: #fff;
  border-radius: var(--ld-radius, 22px);
  box-shadow: var(--ld-shadow, 0 10px 30px rgba(15, 23, 42, 0.06));
  padding: 18px 20px;
}
.page-dashboard .curr-lesson {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  transition: transform 0.15s, box-shadow 0.15s;
}
.page-dashboard .curr-lesson:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.page-dashboard .curr-lesson.is-next {
  border-color: #fde047;
  background: #fffbeb;
}
.page-dashboard .curr-lesson.is-done {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.page-dashboard .curr-back {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
}
.page-dashboard .curr-back:hover { color: #0f172a; }
.page-dashboard .lesson-layout,
.page-dashboard .curr-lesson-page {
  gap: 18px;
}
.page-dashboard .lesson-body,
.page-dashboard .lesson-head,
.page-dashboard .lesson-panel,
.page-dashboard .lesson-aside > * {
  background: #fff;
  border-radius: var(--ld-radius, 22px);
  box-shadow: var(--ld-shadow, 0 10px 30px rgba(15, 23, 42, 0.06));
  border: none;
}
.page-dashboard .lesson-head,
.page-dashboard .lesson-panel,
.page-dashboard .lesson-body {
  padding: 18px 20px;
}
.page-dashboard .lesson-kann {
  background: #f8fafc;
  border-radius: 16px;
  padding: 12px 14px;
}
.page-dashboard .material-viewer,
.page-dashboard .lesson-head.material-head {
  background: #fff;
  border-radius: var(--ld-radius, 22px);
  box-shadow: var(--ld-shadow, 0 10px 30px rgba(15, 23, 42, 0.06));
  padding: 18px 20px;
}

/* Hausaufgaben */
.page-dashboard .hw-learner-card h2 {
  margin: 8px 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
}
.page-dashboard .hw-criteria-box,
.page-dashboard .hw-tip-box {
  background: #f8fafc;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
}
.page-dashboard .hw-rubric {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.page-dashboard .hw-rubric span {
  background: #eff6ff;
  color: #1e40af;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}
.page-dashboard .hw-submit-actions .btn { border-radius: 999px; }

/* Gamify */
.page-dashboard .gfy { max-width: none; }
.page-dashboard .gfy-top,
.page-dashboard .gfy-me-card,
.page-dashboard .gfy-how,
.page-dashboard .gfy-board-card,
.page-dashboard .gfy-trophies {
  background: #fff;
  border-radius: var(--ld-radius, 22px);
  box-shadow: var(--ld-shadow, 0 10px 30px rgba(15, 23, 42, 0.06));
  border: none;
}
.page-dashboard .gfy-top { padding: 20px 22px; }
.page-dashboard .gfy-me-card { padding: 16px; }
.page-dashboard .gfy-how {
  padding: 16px 18px;
  background: var(--ld-navy, #0f172a);
}
.page-dashboard .gfy-kpi > div {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--ld-shadow, 0 10px 30px rgba(15, 23, 42, 0.06));
  border: none;
}

/* Listen / Vocab / Tracks / Visa / Exam / Interview / Placement */
.page-dashboard .listen-clip,
.page-dashboard .vocab-flip,
.page-dashboard .visa-row,
.page-dashboard .mock-stage,
.page-dashboard .ex-card,
.page-dashboard .mod-grid > * {
  border-radius: var(--ld-radius, 22px) !important;
  box-shadow: var(--ld-shadow, 0 10px 30px rgba(15, 23, 42, 0.06));
  border: none !important;
}
.page-dashboard .stat-row .stat {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--ld-shadow, 0 10px 30px rgba(15, 23, 42, 0.06));
  border: none;
  padding: 14px 16px;
}
.page-dashboard .week-list .card {
  transition: transform 0.15s, box-shadow 0.15s;
}
.page-dashboard .week-list .card:hover {
  transform: translateY(-2px);
}
.page-dashboard .check-list {
  padding-left: 1.15rem;
  color: #334155;
  line-height: 1.55;
}
.page-dashboard fieldset.exercise,
.page-dashboard .exercise {
  background: #fff;
  border-radius: var(--ld-radius, 22px);
  box-shadow: var(--ld-shadow, 0 10px 30px rgba(15, 23, 42, 0.06));
  border: 1px solid #e2e8f0;
  padding: 16px 18px;
}

/* —— Auth Soft-UI (Login / Register / Passwort) —— */
body.page-auth {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(253, 224, 71, 0.16), transparent 60%),
    radial-gradient(700px 360px at 100% 0%, rgba(94, 234, 212, 0.14), transparent 55%),
    #f3f4f6;
  color: #0f172a;
}
body.page-auth .flash-stack {
  max-width: 440px;
  margin: 16px auto 0;
  padding: 0 16px;
}
.authdash {
  --ld-radius: 22px;
  --ld-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 48px;
  gap: 18px;
}
.authdash-brand {
  display: block;
  line-height: 0;
}
.authdash-brand img {
  height: 40px;
  width: auto;
}
.authdash-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--ld-radius);
  box-shadow: var(--ld-shadow);
  padding: 28px 26px 24px;
}
.authdash-kicker {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.authdash-card h1 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
}
.authdash-lead {
  margin: 0 0 20px;
  color: #64748b;
  line-height: 1.45;
  font-size: 0.95rem;
}
.authdash-form label {
  margin-top: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #334155;
}
.authdash-form input[type="email"],
.authdash-form input[type="password"],
.authdash-form input[type="text"],
.authdash-form select {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}
.auth-ref-optional {
  margin: 14px 0 4px;
  padding: 12px 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
}
.auth-ref-optional label { margin-top: 0; }
.auth-ref-optional .meta { display: block; margin-top: 6px; }
.authdash-pass-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.authdash-pass-row label { margin-top: 0; }
.authdash-forgot {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0369a1;
  text-decoration: none;
  white-space: nowrap;
}
.authdash-forgot:hover { text-decoration: underline; }
.authdash-remember {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 16px 0 4px !important;
  font-weight: 600 !important;
  cursor: pointer;
  color: #334155;
}
.authdash-remember input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #0f172a;
}
.authdash-submit {
  width: 100%;
  margin-top: 18px;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
.authdash-submit:hover {
  filter: brightness(1.08);
}
.authdash-foot {
  margin: 18px 0 0;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}
.authdash-foot a {
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}
.authdash-foot a:hover { color: #0369a1; }
.authdash-lang {
  margin: 0;
  color: #94a3b8;
  font-size: 0.85rem;
}
.authdash-lang a {
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
}
.authdash-lang a:hover { color: #0f172a; }
.authdash .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) {
  .authdash .form-row { grid-template-columns: 1fr; }
  .authdash-pass-row { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* Soft-rail · Mein-Kurs · Auth extras · Live-Checkliste */
.authdash-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  color: #94a3b8;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.authdash-divider::before,
.authdash-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
.remember-device-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.remember-device-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 14px;
}
.mycourse-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: 18px;
  margin: 0 0 22px;
  align-items: center;
}
.mycourse-ring {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}
.mycourse-ring-chart {
  position: relative;
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
}
.mycourse-ring-svg {
  position: absolute;
  inset: 0;
  width: 96px !important;
  height: 96px !important;
  max-width: 96px;
  display: block;
  transform: rotate(-90deg);
}
.mycourse-ring-track,
.mycourse-ring-value {
  fill: none;
  stroke-width: 10;
}
.mycourse-ring-track { stroke: #e2e8f0; }
.mycourse-ring-value {
  stroke: #0ea5e9;
  stroke-linecap: round;
}
.mycourse-ring-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  pointer-events: none;
}
.mycourse-ring-pct b {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}
.mycourse-ring-pct span {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
}
.mycourse-ring strong { display: block; font-weight: 800; color: #0f172a; }
.mycourse-pay-help {
  background: #f0f9ff;
  border-radius: 16px;
  padding: 14px 16px;
  margin: 12px 0 16px;
}
.mycourse-pay-steps {
  margin: 12px 0 8px;
  padding-left: 1.25rem;
  color: #334155;
  font-weight: 600;
  line-height: 1.5;
}
.mycourse-pay-steps li { margin: 4px 0; }
.mycourse-pay-amount { margin: 8px 0 0; font-size: 1.1rem; }
.mycourse-pay-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: start;
  margin: 8px 0 16px;
}
.mycourse-pay-dl {
  margin: 0;
}
.mycourse-pay-dl > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 6px 12px;
  margin: 6px 0;
}
.mycourse-pay-dl dt {
  margin: 0;
  color: #64748b;
  font-weight: 600;
  font-size: 0.88rem;
}
.mycourse-pay-dl dd {
  margin: 0;
  font-weight: 700;
  color: #0f172a;
}
.mycourse-pay-qr {
  text-align: center;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.mycourse-pay-qr img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 12px;
}
.mycourse-pay-momo { margin-top: 12px; }
.bank-qr-admin {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  margin: 8px 0 16px;
}
.bank-qr-preview {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  text-align: center;
}
.bank-qr-preview img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 10px;
}
@media (max-width: 720px) {
  .mycourse-pay-grid { grid-template-columns: 1fr; }
  .mycourse-pay-dl > div { grid-template-columns: 1fr; gap: 2px; }
}
.mycourse-ref-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
.mycourse-ref-row code {
  font-size: 1.05rem;
  font-weight: 700;
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px dashed #7dd3fc;
}
.soft-rail-head { margin-bottom: 8px; }
.soft-rail-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.soft-rail-card em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 4px;
}
.soft-rail-card strong { display: block; font-weight: 800; color: #0f172a; }
.soft-rail-card span { display: block; margin-top: 4px; font-size: 0.85rem; color: #64748b; }
.soft-rail-card.is-warn { background: #fffbeb; }
.soft-rail-card.is-teal { background: #ecfeff; }
.soft-rail-card.is-muted { opacity: 0.85; }
.soft-rail-zoom-btn { width: 100%; margin: 0 0 12px; justify-content: center; }
.soft-rail-more {
  margin-top: 4px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  padding: 4px 12px 10px;
}
.soft-rail-more > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 0.9rem;
  color: #0369a1;
  padding: 10px 2px;
}
.soft-rail-more > summary::-webkit-details-marker { display: none; }
.soft-rail-more-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.soft-rail-more-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.88rem;
}
.soft-rail-more-list a:hover { background: #f1f5f9; }
.ldash-focus-path {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}
.ldash-focus-path a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  text-decoration: none;
  color: inherit;
  min-height: 72px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ldash-focus-path a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
.ldash-focus-path em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ldash-focus-path strong {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}
@media (max-width: 1100px) {
  .ldash-focus-path { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ldash-focus-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.livedash-checklist {
  background: #fff;
  border-radius: 20px;
  padding: 18px 20px;
  margin: 18px 0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}
.livedash-check-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.livedash-check-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
}
.livedash-check-list li.is-done { background: #ecfdf5; }
.livedash-check-list li.is-open { background: #fff7ed; }
.livedash-check-list li > span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
  min-width: 4.5rem;
}
.livedash-check-list li.is-done > span { color: #047857; }
.livedash-check-list li.is-open > span { color: #c2410c; }
.livedash-check-list li strong { flex: 1; font-weight: 700; }
.livedash-check-list li label {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 12px;
  width: 100%;
  cursor: pointer;
}
.livedash-check-list li label input[type="checkbox"] {
  margin-top: 4px;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}
.livedash-check-list li label strong { flex: 1 1 12rem; }
.livedash-check-list li label .meta { flex: 1 1 100%; margin: 0; }
.livedash-prep-bar {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin: 8px 0 4px;
}
.livedash-prep-bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0d9488, #14b8a6);
  border-radius: inherit;
}
.livedash-prep-bar.is-post > i {
  background: linear-gradient(90deg, #0369a1, #38bdf8);
}
.livedash-check-form .btn { margin-top: 14px; }
.livedash-pack {
  background: #fff;
  border-radius: 20px;
  padding: 18px 20px;
  margin: 18px 0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}
.livedash-pack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.livedash-pack-mats { margin-top: 8px; }
.teacher-prep-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.teacher-prep-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7ed;
}
.teacher-prep-item.is-ready { background: #ecfdf5; }
.teacher-prep-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.school-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
}
.school-banner.is-warn { background: #fff7ed; color: #9a3412; }
@media (max-width: 900px) {
  .mycourse-progress-row { grid-template-columns: 1fr; }
}

/* Auth Modal – Soft-UI wie Schüler-Dashboard */
body.auth-modal-open { overflow: hidden; }
.auth-modal {
  --ld-yellow: #fde047;
  --ld-yellow-deep: #facc15;
  --ld-mint: #86efac;
  --ld-mint-deep: #4ade80;
  --ld-teal: #5eead4;
  --ld-navy: #0f172a;
  --ld-card: #ffffff;
  --ld-bg: #f3f4f6;
  --ld-muted: #64748b;
  --ld-radius: 22px;
  --ld-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.auth-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.auth-modal[hidden] { display: none !important; }
.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(253, 224, 71, 0.22), transparent 60%),
    radial-gradient(700px 360px at 100% 0%, rgba(94, 234, 212, 0.18), transparent 55%),
    rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
}
.auth-modal-shell {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(92vh, 920px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  background: var(--ld-bg);
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 28px 64px rgba(15, 23, 42, 0.22);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.22s ease;
}
.auth-modal.is-open .auth-modal-shell {
  transform: translateY(0) scale(1);
}
.auth-modal[data-open="register"] .auth-modal-shell {
  width: min(920px, 100%);
}
.auth-modal-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 28px 24px 32px;
  color: var(--ld-navy);
  background:
    linear-gradient(165deg, #fffbeb 0%, #fef9c3 38%, #d1fae5 100%);
  overflow: hidden;
}
.auth-modal-hero::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.55), transparent 70%);
  pointer-events: none;
}
.auth-modal-hero::after {
  content: "";
  position: absolute;
  left: -30px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.45), transparent 70%);
  pointer-events: none;
}
.auth-modal-3d {
  position: relative;
  z-index: 1;
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 12px 20px rgba(15, 23, 42, 0.12));
}
.auth-modal-hero-kicker {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #854d0e;
}
.auth-modal-hero strong {
  position: relative;
  z-index: 1;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 800;
  line-height: 1.2;
}
.auth-modal-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}
.auth-modal-hero span {
  position: relative;
  z-index: 1;
  color: #57534e;
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 18rem;
}
.auth-modal-hero-points {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.auth-modal-hero-points li {
  position: relative;
  padding-left: 1.15em;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1e293b;
}
.auth-modal-hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #facc15;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.28);
}
.auth-modal-panel {
  position: relative;
  background: var(--ld-card);
  padding: 22px 24px 20px;
  overflow: auto;
  max-height: min(92vh, 920px);
}
.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--ld-navy);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--ld-shadow);
  z-index: 2;
}
.auth-modal-close:hover { background: var(--ld-yellow); }
.auth-modal-brand {
  display: flex;
  justify-content: flex-start;
  margin: 2px 0 14px;
}
.auth-modal-brand img { height: 36px; width: auto; }
.auth-modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  background: #f3f4f6;
  border-radius: 999px;
  margin-bottom: 18px;
}
.auth-modal-tab {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 11px 14px;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ld-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.auth-modal-tab.is-on {
  background: #fff;
  color: var(--ld-navy);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
.auth-modal-tab[data-auth-tab="register"].is-on {
  background: var(--ld-mint);
  color: #14532d;
}
.auth-modal-tab[data-auth-tab="login"].is-on {
  background: var(--ld-yellow);
  color: #713f12;
}
.auth-modal-body {
  animation: auth-modal-rise 0.28s ease both;
}
.auth-modal-body .ldash-page-kicker {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ld-muted);
}
.auth-modal-body h2 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 800;
  color: var(--ld-navy);
}
.auth-modal-body .ldash-page-lead {
  margin: 0 0 18px;
  color: var(--ld-muted);
  line-height: 1.45;
  font-size: 0.95rem;
}
.auth-modal .authdash-form label {
  margin-top: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #334155;
}
.auth-modal .authdash-form input[type="email"],
.auth-modal .authdash-form input[type="password"],
.auth-modal .authdash-form input[type="text"],
.auth-modal .authdash-form select {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 13px 14px;
  background: #f8fafc;
  box-shadow: none;
}
.auth-modal .authdash-form input:focus,
.auth-modal .authdash-form select:focus {
  outline: none;
  border-color: #facc15;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.25);
}
.auth-modal .authdash-submit {
  width: 100%;
  margin-top: 16px;
  border-radius: 999px !important;
  padding: 13px 18px;
  font-weight: 800;
  border: 0;
}
.auth-modal .authdash-submit.ldash-btn-yellow,
.auth-modal .ldash-btn-yellow {
  background: var(--ld-yellow) !important;
  border-color: var(--ld-yellow) !important;
  color: #713f12 !important;
}
.auth-modal .authdash-submit.ldash-btn-mint,
.auth-modal .ldash-btn-mint {
  background: var(--ld-mint) !important;
  border-color: var(--ld-mint) !important;
  color: #14532d !important;
}
.auth-modal .authdash-submit-ghost {
  background: #f3f4f6 !important;
  color: var(--ld-navy) !important;
  border: 1px solid #e2e8f0 !important;
}
.auth-modal .authdash-submit-ghost:hover {
  background: #fff !important;
}
.auth-modal .authdash-divider {
  margin: 18px 0 12px;
}
.auth-modal .authdash-foot {
  margin: 16px 0 0;
  text-align: center;
  color: var(--ld-muted);
  font-size: 0.9rem;
}
.auth-modal-switch {
  border: 0;
  background: none;
  color: var(--ld-navy);
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-modal-switch:hover { color: #0369a1; }
.auth-modal .flash-stack { margin: 0 0 12px; }
.auth-modal .flash {
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.9rem;
}
@keyframes auth-modal-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 820px) {
  .auth-modal-shell {
    grid-template-columns: 1fr;
    width: min(460px, 100%);
  }
  .auth-modal[data-open="register"] .auth-modal-shell {
    width: min(520px, 100%);
  }
  .auth-modal-hero {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
  }
  .auth-modal-3d {
    width: 72px;
    height: 72px;
    margin: 0;
    flex-shrink: 0;
  }
  .auth-modal-hero strong { font-size: 1.15rem; }
  .auth-modal-hero span { font-size: 0.82rem; max-width: none; }
  .auth-modal-hero-points { display: none; }
}
@media (max-width: 520px) {
  .auth-modal {
    padding: 0;
    align-items: flex-end;
  }
  .auth-modal-shell {
    width: 100%;
    max-height: 96vh;
    border-radius: 24px 24px 0 0;
  }
  .auth-modal-panel { padding: 18px 16px 22px; }
}
/* —— Public Soft-UI (Website ≈ Schülerportal) —— */
body.is-guest.page-public,
body.is-guest:not(.page-auth) {
  --ld-yellow: #fde047;
  --ld-yellow-deep: #facc15;
  --ld-mint: #86efac;
  --ld-mint-deep: #4ade80;
  --ld-teal: #5eead4;
  --ld-navy: #0f172a;
  --ld-card: #ffffff;
  --ld-bg: #f3f4f6;
  --ld-muted: #64748b;
  --ld-radius: 22px;
  --ld-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(253, 224, 71, 0.16), transparent 60%),
    radial-gradient(700px 360px at 100% 0%, rgba(94, 234, 212, 0.14), transparent 55%),
    var(--ld-bg);
  color: var(--ld-navy);
}
body.is-guest .psite {
  min-height: 70vh;
}
body.is-guest .topbar {
  padding: 14px 20px 0;
  position: sticky;
  top: 0;
  z-index: 40;
}
body.is-guest .header-inner {
  border: 0;
  border-radius: 999px;
  box-shadow: var(--ld-shadow);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 8px 10px 8px 16px;
}
body.is-guest .top-nav a {
  font-weight: 700;
  color: #334155;
  border-radius: 999px;
  padding: 8px 12px;
}
body.is-guest .top-nav a:hover {
  background: #f3f4f6;
  color: var(--ld-navy);
}
body.is-guest .top-nav .lang-switch {
  margin-left: 6px;
  vertical-align: middle;
}
body.is-guest .mobile-drawer-lang {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}
body.is-guest .mobile-drawer-lang .lang-switch-trigger {
  min-height: 52px;
}
body.is-guest .top-nav .btn,
body.is-guest .top-nav .btn-sm {
  background: var(--ld-yellow) !important;
  color: #713f12 !important;
  border: 0 !important;
  box-shadow: none !important;
  font-weight: 800;
}
body.is-guest .top-nav .btn:hover {
  filter: brightness(0.97);
  color: #713f12 !important;
}
body.is-guest .btn-soft-yellow,
body.is-guest a.btn-soft-yellow,
body.is-guest button.btn-soft-yellow {
  background: var(--ld-yellow) !important;
  color: #713f12 !important;
  border: 0 !important;
  box-shadow: 0 8px 20px rgba(250, 204, 21, 0.28) !important;
  font-weight: 800;
}
body.is-guest .btn-soft-yellow:hover {
  filter: brightness(0.97);
  color: #713f12 !important;
}
body.is-guest .btn-soft-mint,
body.is-guest a.btn-soft-mint {
  background: var(--ld-mint) !important;
  color: #14532d !important;
  border: 0 !important;
  box-shadow: none !important;
  font-weight: 800;
}
body.is-guest .btn-ghost {
  background: #fff !important;
  color: var(--ld-navy) !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
  font-weight: 700;
}
body.is-guest .btn-ghost:hover {
  background: #f8fafc !important;
  color: var(--ld-navy) !important;
}
body.is-guest .btn:not(.btn-ghost):not(.btn-soft-yellow):not(.btn-soft-mint):not(.btn-wa):not(.btn-zalo):not(.btn-dark) {
  background: var(--ld-navy);
  box-shadow: var(--ld-shadow);
  font-weight: 800;
}
body.is-guest .btn:not(.btn-ghost):not(.btn-soft-yellow):not(.btn-soft-mint):hover {
  filter: brightness(1.08);
}
body.is-guest .kicker {
  color: #854d0e;
  letter-spacing: 0.08em;
  font-weight: 800;
}
body.is-guest .card,
body.is-guest .hero-card,
body.is-guest .prog-slide-card {
  border: 0;
  border-radius: var(--ld-radius);
  box-shadow: var(--ld-shadow);
  background: var(--ld-card);
}
body.is-guest .card:hover,
body.is-guest .prog-slide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}
body.is-guest .badge {
  background: #fef9c3;
  color: #854d0e;
  font-weight: 800;
}
body.is-guest .badge-clay {
  background: #ccfbf1;
  color: #0f766e;
}
body.is-guest .section h1,
body.is-guest .section h2,
body.is-guest .hero h1 {
  font-weight: 800;
  color: var(--ld-navy);
}
body.is-guest .lead,
body.is-guest .meta {
  color: var(--ld-muted);
}
body.is-guest .section-soft {
  background: transparent;
}
body.is-guest .stats-band,
body.is-guest .psite-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  padding: 8px 8vw 28px;
  background: transparent;
  border: 0;
}
body.is-guest .psite-stat,
body.is-guest .stats-band > div {
  background: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--ld-shadow);
  text-align: left;
}
body.is-guest .psite-stat b,
body.is-guest .stats-band > div b {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ld-navy);
}
body.is-guest .psite-stat span,
body.is-guest .stats-band > div span {
  color: var(--ld-muted);
  font-size: 0.88rem;
}

/* Home Soft hero – kompakt */
.psite-hero {
  position: relative;
  margin: 8px 0 6px;
  padding: 0;
  min-height: 0;
  display: block;
}
.psite-hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.75fr);
  gap: 18px;
  align-items: center;
  min-height: 0;
  margin: 0 3vw;
  padding: 22px clamp(18px, 3vw, 32px);
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 65% 80% at 92% 20%, rgba(253, 224, 71, 0.42), transparent 55%),
    radial-gradient(ellipse 50% 70% at 8% 90%, rgba(134, 239, 172, 0.35), transparent 50%),
    linear-gradient(145deg, #ffffff 0%, #f8fafc 50%, #ecfdf5 100%);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.07);
  animation: psite-hero-in 0.55s ease both;
}
.psite-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  animation: psite-hero-rise 0.6s 0.05s ease both;
}
.psite-hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1;
}
.psite-hero-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.1));
}
.psite-hero-brand em {
  font-style: normal;
  background: linear-gradient(90deg, #ca8a04, #0d9488);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.psite-hero-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.8vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #0f172a;
  max-width: 22ch;
}
.psite-hero-lead {
  margin: 0 0 14px;
  font-size: 0.98rem;
  line-height: 1.45;
  color: #64748b;
  max-width: 32rem;
}
.psite-hero .hero-actions {
  margin: 0 0 12px;
  gap: 8px;
}
.psite-hero .hero-actions .btn {
  padding: 11px 18px;
  font-weight: 800;
  font-size: 0.94rem;
}
.psite-hero-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.psite-hero-pills li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}
.psite-hero-pills img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.psite-hero-art {
  position: relative;
  z-index: 1;
  min-height: 200px;
  height: 200px;
  display: grid;
  place-items: center;
  animation: psite-hero-rise 0.65s 0.1s ease both;
}
.psite-hero-glow {
  position: absolute;
  inset: 8% 6%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(250, 204, 21, 0.28), transparent 62%),
    radial-gradient(circle at 70% 60%, rgba(94, 234, 212, 0.22), transparent 55%);
  filter: blur(6px);
  animation: psite-glow 6s ease-in-out infinite alternate;
}
.psite-hero-3d {
  position: relative;
  z-index: 1;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(15, 23, 42, 0.14));
}
.psite-hero-3d.is-main {
  width: min(190px, 34vw);
  animation: psite-float 5s ease-in-out infinite;
}
.psite-hero-3d.is-side {
  position: absolute;
  right: 4%;
  bottom: 6%;
  width: min(88px, 16vw);
  animation: psite-float-delay 5.5s 0.35s ease-in-out infinite;
}
.psite-hero-3d.is-back {
  position: absolute;
  left: 2%;
  top: 4%;
  width: min(76px, 14vw);
  opacity: 0.95;
  animation: psite-float 6s 0.7s ease-in-out infinite;
}
.psite-card-ico {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 0 10px;
  filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.1));
}
@keyframes psite-hero-in {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes psite-hero-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes psite-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes psite-float-delay {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}
@keyframes psite-glow {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 1; transform: scale(1.04); }
}
@media (max-width: 900px) {
  .psite-hero-stage {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 18px 14px;
    margin: 0 4vw;
  }
  .psite-hero-copy h1 { max-width: none; }
  .psite-hero-art {
    min-height: 150px;
    height: 150px;
    order: -1;
  }
  .psite-hero-3d.is-main { width: min(140px, 40vw); }
  .psite-hero-3d.is-side { width: 68px; }
  .psite-hero-3d.is-back { width: 58px; }
}
@media (max-width: 560px) {
  .psite-hero-stage {
    margin: 0 3vw;
    border-radius: 20px;
    padding: 16px 14px 12px;
  }
  .psite-hero-brand { font-size: 1.15rem; }
  .psite-hero-brand img { width: 34px; height: 34px; }
  .psite-hero-art { min-height: 120px; height: 120px; }
  .psite-hero .hero-actions { flex-direction: column; align-items: stretch; }
  .psite-hero .hero-actions .btn { width: 100%; justify-content: center; }
  .psite-hero-pills { gap: 6px; }
  .psite-hero-pills li { font-size: 0.74rem; }
}
.psite-how {
  padding: 8px 8vw 12px;
}
.psite-how-inner {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--ld-shadow);
  padding: 20px 22px;
}
.psite-steps {
  list-style: none;
  margin: 14px 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.psite-steps li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
  border-radius: 16px;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}
.psite-steps li span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ld-yellow);
  color: #713f12;
  font-weight: 800;
  font-size: 0.85rem;
}

/* Kurs / Programm Soft */
body.is-guest .kurs-hero,
body.is-guest .prog-hero {
  background: transparent;
  padding-top: 28px;
}
body.is-guest .kurs-hero-inner,
body.is-guest .prog-hero-layout {
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--ld-shadow);
  padding: 28px 28px 24px;
  overflow: hidden;
}
body.is-guest .kurs-brand,
body.is-guest .prog-brand {
  font-weight: 800;
  letter-spacing: -0.02em;
}
body.is-guest .kurs-brand em,
body.is-guest .prog-brand em {
  font-style: normal;
  color: #854d0e;
}
body.is-guest .kurs-visual-panel,
body.is-guest .prog-hero-path {
  background: linear-gradient(165deg, #fffbeb, #d1fae5);
  border-radius: 22px;
  border: 0;
  box-shadow: none;
}
body.is-guest .kurs-facts,
body.is-guest .prog-facts {
  background: transparent;
}
body.is-guest .kurs-facts-inner > *,
body.is-guest .prog-facts-inner > * {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--ld-shadow);
  border: 0;
}
body.is-guest .kurs-section,
body.is-guest .prog-section {
  background: transparent;
}

/* FAQ Soft (legacy + new) */
body.is-guest .faq-item,
body.is-guest details.faq-item,
body.is-guest .faq-list details,
body.is-guest .psite-faq-item {
  background: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  margin-bottom: 0;
  padding: 0;
}
body.is-guest .kurs-faq {
  background:
    radial-gradient(ellipse 55% 50% at 0% 0%, rgba(250, 204, 21, 0.12), transparent 55%),
    #fff;
}

/* Stimmen / Testimonials Soft */
.psite-voices {
  padding: 48px 8vw 56px;
  background:
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(250, 204, 21, 0.18), transparent 55%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgba(56, 189, 248, 0.12), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.psite-voices-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.psite-voices-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
  max-width: 40rem;
}
.psite-voices-head img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(30, 58, 95, 0.12));
  flex-shrink: 0;
  animation: psite-voice-float 4s ease-in-out infinite;
}
.psite-voices-head h2 {
  margin: 4px 0 8px;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  color: var(--ink);
}
.psite-voices-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.psite-voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.psite-voice {
  margin: 0;
  padding: 22px 22px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  animation: psite-voice-in 0.55s ease both;
}
.psite-voice:nth-child(2) { animation-delay: 0.08s; }
.psite-voice:nth-child(3) { animation-delay: 0.16s; }
.psite-voice:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}
.psite-voice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.psite-voice-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #713f12;
  background: linear-gradient(145deg, #fef08a, #fde047);
}
.psite-voice-ico {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(30, 58, 95, 0.1));
}
.psite-voice blockquote {
  margin: 0;
  flex: 1;
}
.psite-voice blockquote p {
  margin: 0;
  position: relative;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #1e293b;
  font-weight: 550;
}
.psite-voice blockquote p::before {
  content: "“";
  color: #facc15;
  font-size: 2rem;
  line-height: 0;
  margin-right: 4px;
  font-weight: 800;
  vertical-align: -0.35em;
}
.psite-voice figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 4px;
  border-top: 1px solid #f1f5f9;
}
.psite-voice figcaption strong {
  font-weight: 800;
  color: #0f172a;
}
.psite-voice figcaption span {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
}
@keyframes psite-voice-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes psite-voice-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (max-width: 900px) {
  .psite-voices-grid { grid-template-columns: 1fr; }
  .psite-voices { padding: 36px 6vw 44px; }
  .psite-voices-head { flex-direction: column; gap: 10px; }
}

body.is-guest input:not([type="checkbox"]):not([type="radio"]),
body.is-guest select,
body.is-guest textarea {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
body.is-guest input:focus,
body.is-guest select:focus,
body.is-guest textarea:focus {
  outline: none;
  border-color: #facc15;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.22);
}

/* Footer Soft */
body.is-guest .site-footer {
  margin-top: 24px;
  background: #0f172a;
  border-radius: 28px 28px 0 0;
  box-shadow: none;
}
body.is-guest .sticky-contact a.is-mail {
  background: var(--ld-yellow);
  color: #713f12;
  font-weight: 800;
}
body.is-guest .sticky-contact a.is-web {
  background: var(--ld-mint);
  color: #14532d;
  font-weight: 800;
}
body.is-guest .prog-carousel-btn {
  background: #fff;
  border: 0;
  box-shadow: var(--ld-shadow);
  border-radius: 999px;
  font-weight: 800;
}
body.is-guest .prog-carousel-btn:hover {
  background: var(--ld-yellow);
}

@media (max-width: 900px) {
  .psite-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body.is-guest .header-inner { border-radius: 20px; }
  .psite-steps { grid-template-columns: 1fr; }
  body.is-guest .section { padding-left: 5vw; padding-right: 5vw; }
  body.is-guest .stats-band,
  body.is-guest .psite-stats,
  .psite-how { padding-left: 5vw; padding-right: 5vw; }
}

/* ===== eVerträge Admin Board ===== */
.ctr-page { --ctr-ink: #0f172a; --ctr-muted: #64748b; --ctr-line: #e2e8f0; }
.ctr-hero { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin: 0 0 18px; padding: 18px 20px; border-radius: 18px; background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 48%, #ecfeff 100%); border: 1px solid #e2e8f0; animation: pl-fade .45s ease both; }
.ctr-kpi .lms-stat strong { font-size: clamp(0.95rem, 1.6vw, 1.15rem); }
.ctr-toolbar { margin-bottom: 10px; }
.ctr-pills { margin: 0 0 14px; }
.ctr-create { margin-bottom: 12px; }
.ctr-create-form { padding: 0 16px 16px; }
.ctr-create-actions { margin: 8px 0 0; }
.ctr-bulk-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0 0 14px; padding: 10px 12px; border-radius: 14px;
  background: #fff; border: 1px dashed #cbd5e1;
}
.ctr-bulk-bar select { margin: 0; font-size: 13px; min-width: 160px; }
.ctr-layout {
  display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start;
}
.ctr-layout.has-detail { grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); }
.ctr-list { display: flex; flex-direction: column; gap: 10px; }
.ctr-card {
  padding: 14px 14px 12px; border-radius: 16px; background: #fff;
  border: 1px solid var(--ctr-line); box-shadow: 0 1px 2px rgba(15,23,42,.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  animation: pl-rise .4s ease both;
}
.ctr-card:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(15,23,42,.07); }
.ctr-card.is-open { border-color: #93c5fd; box-shadow: 0 0 0 2px rgba(59,130,246,.14); }
.ctr-card.is-overdue { border-left: 3px solid #dc2626; }
.ctr-card-top { display: flex; gap: 10px; align-items: flex-start; }
.ctr-card-title { flex: 1; min-width: 0; }
.ctr-card-name { font-weight: 750; color: var(--ctr-ink); text-decoration: none; font-size: 15px; }
.ctr-card-name:hover { color: #2563eb; }
.ctr-card-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--ctr-muted); word-break: break-all; }
.ctr-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.ctr-st, .ctr-chip {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; background: #f1f5f9; color: #475569;
}
.ctr-st.is-sent, .ctr-st.is-draft { background: #e0f2fe; color: #0369a1; }
.ctr-st.is-signed, .ctr-st.is-awaiting_payment { background: #ffedd5; color: #c2410c; }
.ctr-st.is-active { background: #dcfce7; color: #15803d; }
.ctr-st.is-expired { background: #f1f5f9; color: #64748b; }
.ctr-st.is-void { background: #fee2e2; color: #b91c1c; }
.ctr-chip.is-ok { background: #dcfce7; color: #15803d; }
.ctr-chip.is-warn { background: #fef3c7; color: #b45309; }
.ctr-pipe {
  list-style: none; margin: 0 0 8px; padding: 0; display: flex; gap: 4px;
}
.ctr-pipe li {
  flex: 1; height: 5px; border-radius: 999px; background: #e2e8f0;
}
.ctr-pipe li.is-done { background: #22c55e; }
.ctr-pipe li.is-now { background: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,.2); }
.ctr-pipe-lg { gap: 6px; margin: 12px 0; }
.ctr-pipe-lg li {
  height: auto; min-height: 36px; padding: 8px 6px; border-radius: 10px;
  background: #f8fafc; border: 1px solid #e2e8f0; text-align: center;
}
.ctr-pipe-lg li span { display: block; font-size: 10px; font-weight: 700; color: #64748b; line-height: 1.2; }
.ctr-pipe-lg li.is-done { background: #ecfdf5; border-color: #86efac; }
.ctr-pipe-lg li.is-done span { color: #15803d; }
.ctr-pipe-lg li.is-now { background: #eff6ff; border-color: #93c5fd; }
.ctr-pipe-lg li.is-now span { color: #1d4ed8; }
.ctr-meta { margin: 0 0 8px; font-size: 12px; color: var(--ctr-muted); }
.ctr-card-foot {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding-top: 8px; border-top: 1px solid #f1f5f9;
}
.ctr-pay-form { display: inline-flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.ctr-pay-form input { width: 100px; margin: 0; font-size: 12px; padding: 6px 8px; }
.ctr-empty { padding: 28px; text-align: center; color: var(--ctr-muted); background: #fff; border-radius: 16px; border: 1px dashed #cbd5e1; }
.ctr-aside { position: sticky; top: 72px; }
.ctr-detail {
  padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--ctr-line);
  box-shadow: 0 8px 24px rgba(15,23,42,.06); margin-bottom: 16px;
  animation: pl-fade .35s ease both;
}
.ctr-detail-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.ctr-detail-head h2 { margin: 0; font-size: 1.25rem; color: var(--ctr-ink); }
.ctr-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 12px 0;
  padding: 12px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0;
}
.ctr-facts dt { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #94a3b8; margin: 0; }
.ctr-facts dd { margin: 2px 0 0; font-size: 12px; color: var(--ctr-ink); word-break: break-word; }
.ctr-action-bar {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin: 0 0 14px; padding: 10px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0;
}
.ctr-mini-forms { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.ctr-mini label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 4px; color: #475569; }
.ctr-mini-row { display: flex; gap: 6px; align-items: center; }
.ctr-mini-row select, .ctr-mini-row input { flex: 1; margin: 0; font-size: 13px; }
.ctr-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 8px 0; }
.ctr-preview-head h3 { margin: 0; font-size: 14px; }
.ctr-preview {
  max-height: 320px; overflow: auto; font-size: 13px;
  border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; margin-bottom: 14px;
  background: #fff;
}
.ctr-audit { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow: auto; }
.ctr-audit li {
  padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.ctr-audit strong { color: var(--ctr-ink); }
.ctr-audit span, .ctr-audit em { color: var(--ctr-muted); font-style: normal; }
.ctr-aside-empty {
  padding: 24px; text-align: center; color: var(--ctr-muted);
  border-radius: 16px; border: 1px dashed #cbd5e1; background: #fff; margin-bottom: 16px;
}
.ctr-inv-title { margin: 8px 0 10px; font-size: 14px; }
.ctr-inv {
  padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--ctr-line);
  margin-bottom: 8px;
}
.ctr-inv strong { font-size: 13px; }
[data-copy].is-copied { color: #15803d; }

@media (max-width: 980px) {
  .ctr-layout.has-detail { grid-template-columns: 1fr; }
  .ctr-aside { position: static; }
}

/* eVertrag Vorlage-Editor */
.ctr-tpl-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 12px; }
.ctr-tpl-badge {
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.ctr-tpl-badge.is-factory { background: #f1f5f9; color: #64748b; }
.ctr-tpl-badge.is-custom { background: #dcfce7; color: #15803d; }
.ctr-tpl-zoom {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 6px; border-radius: 999px; background: #fff; border: 1px solid #e2e8f0;
}
.ctr-tpl-zoom span { min-width: 42px; text-align: center; font-size: 12px; font-weight: 700; color: #475569; }
.ctr-tpl-hint { margin: 0 0 12px; max-width: 52rem; }
.ctr-tpl-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 16px; align-items: start; }
.ctr-tpl-grid.is-focus { grid-template-columns: 1fr; }
.ctr-tpl-grid.is-focus .ctr-tpl-side { display: none; }
#ctr-tpl-focus-btn.is-on { background: #1e3a5f; color: #fff; }
.ctr-tpl-editor { position: relative; }
.ctr-tpl-chrome {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center;
  margin: 0 0 8px;
}
.ctr-tpl-chrome-left { display: flex; gap: 10px; align-items: center; }
.ctr-tpl-chrome-left strong { font-size: 14px; color: #0f172a; }
.ctr-tpl-dirty {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
}
.ctr-tpl-dirty.is-clean { background: #ecfdf5; color: #15803d; }
.ctr-tpl-dirty.is-dirty { background: #fff7ed; color: #c2410c; }
.ctr-tpl-ph-insert {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin: 0 0 10px; padding: 10px 12px; border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fafc); border: 1px solid #e2e8f0;
}
.ctr-ph-label { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .04em; margin-right: 4px; }
.ctr-ph-btn {
  appearance: none; border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8;
  font-size: 11px; font-weight: 650; padding: 5px 9px; border-radius: 999px; cursor: pointer; line-height: 1.2;
}
.ctr-ph-btn:hover { background: #dbeafe; transform: translateY(-1px); }
.ctr-ph-btn.is-extra { display: none; }
.ctr-tpl-ph-insert.is-expanded .ctr-ph-btn.is-extra { display: inline-flex; }
.ctr-tpl-source { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ctr-tpl-editor .tox-tinymce {
  border-radius: 14px !important; border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .07) !important; overflow: hidden;
}
.ctr-tpl-editor .tox .tox-toolbar-overlord,
.ctr-tpl-editor .tox .tox-toolbar__primary,
.ctr-tpl-editor .tox .tox-menubar {
  background: #f8fafc !important;
}
.ctr-tpl-editor .tox .tox-menubar { border-bottom: 1px solid #e2e8f0 !important; }
.ctr-tpl-editor .tox .tox-edit-area__iframe { background: #d9e2ec !important; }
.ctr-tpl-editor .tox .tox-statusbar { border-top: 1px solid #e2e8f0 !important; background: #f8fafc !important; }
.ctr-tpl-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 12px; padding: 10px 12px; border-radius: 12px;
  background: #fff; border: 1px solid #e2e8f0;
}
.ctr-tpl-kbd {
  margin-left: auto; font-size: 11px; color: #94a3b8; background: #f1f5f9;
  border: 1px solid #e2e8f0; border-radius: 6px; padding: 2px 6px; font-family: inherit;
}
.ctr-tpl-side {
  padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #e2e8f0;
  position: sticky; top: 72px; box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}
.ctr-tpl-side-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 10px; }
.ctr-tpl-side-head h3 { margin: 0; font-size: 14px; }
.ctr-tpl-frame {
  width: 100%; height: 560px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; margin-bottom: 10px;
}
@media (max-width: 980px) {
  .ctr-tpl-grid { grid-template-columns: 1fr; }
  .ctr-tpl-side { position: static; }
  .ctr-tpl-kbd { margin-left: 0; }
}

/* Shared Rich-Text Editor */
textarea.is-rte { min-height: 120px; }
.tox-tinymce {
  border-radius: 12px !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important;
}
.tox .tox-toolbar__primary, .tox .tox-menubar { background: #f8fafc !important; }
.rte-content { line-height: 1.55; }
.rte-content p { margin: 0 0 .65em; }
.rte-content ul, .rte-content ol { margin: 0 0 .65em; padding-left: 1.25em; }
.rte-content table { width: 100%; border-collapse: collapse; margin: 0 0 .65em; }
.rte-content td, .rte-content th { border: 1px solid #e2e8f0; padding: 6px 8px; }

/* ===== Rechnungen Admin Board ===== */
.inv-page { --inv-ink: #0f172a; --inv-muted: #64748b; --inv-line: #e2e8f0; }
.inv-hero { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin: 0 0 18px; padding: 18px 20px; border-radius: 18px; background: linear-gradient(135deg, #ecfeff 0%, #f8fafc 50%, #f0fdf4 100%); border: 1px solid #e2e8f0; }
.inv-kpi .lms-stat strong { font-size: clamp(0.95rem, 1.6vw, 1.15rem); }
.inv-toolbar { margin-bottom: 10px; }
.inv-layout { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.inv-layout.has-detail { grid-template-columns: minmax(0, 1.1fr) minmax(300px, .95fr); }
.inv-list { display: flex; flex-direction: column; gap: 10px; }
.inv-card {
  padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--inv-line);
  box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: transform .18s ease, box-shadow .18s ease;
}
.inv-card:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(15,23,42,.07); }
.inv-card.is-open { border-color: #5eead4; box-shadow: 0 0 0 2px rgba(20,184,166,.16); }
.inv-card.is-overdue { border-left: 3px solid #dc2626; }
.inv-card-top { display: flex; gap: 10px; align-items: flex-start; }
.inv-card-title { flex: 1; min-width: 0; }
.inv-card-name { font-weight: 750; color: var(--inv-ink); text-decoration: none; }
.inv-card-name:hover { color: #0d9488; }
.inv-card-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--inv-muted); word-break: break-all; }
.inv-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.inv-st, .inv-chip {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; background: #f1f5f9; color: #475569;
}
.inv-st.is-offen { background: #ffedd5; color: #c2410c; }
.inv-st.is-overdue, .inv-st.is-ueberfaellig { background: #fee2e2; color: #b91c1c; }
.inv-st.is-bezahlt { background: #dcfce7; color: #15803d; }
.inv-st.is-storniert { background: #f1f5f9; color: #64748b; }
.inv-card-msg { margin: 0 0 8px; font-size: 13px; color: #475569; }
.inv-card-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 8px; border-top: 1px solid #f1f5f9; }
.inv-pay-form { display: inline-flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.inv-pay-form input[type=text] { width: 90px; margin: 0; font-size: 12px; padding: 6px 8px; }
.inv-aside { position: sticky; top: 72px; }
.inv-detail {
  padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--inv-line);
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.inv-detail-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.inv-detail-head h2 { margin: 0; font-size: 1.2rem; }
.inv-edit, .inv-mail { margin: 14px 0; padding: 12px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; }
.inv-edit h3, .inv-mail h3 { margin: 0 0 8px; font-size: 14px; }
.inv-preview-frame {
  width: 100%; height: 420px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; margin-bottom: 14px;
}
@media (max-width: 980px) {
  .inv-layout.has-detail { grid-template-columns: 1fr; }
  .inv-aside { position: static; }
}


/* —— Embedded Zoom live room —— */
.page-live-room {
  margin: 0;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
}
.live-room {
  display: grid;
  grid-template-columns: 1fr min(280px, 32vw);
  grid-template-rows: auto auto 1fr;
  min-height: 100vh;
  gap: 0;
}
.live-room-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #111827;
  border-bottom: 1px solid #1f2937;
}
.live-room-bar-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.live-room-bar-main h1 {
  margin: 0;
  font-size: 1.05rem;
  color: #f8fafc;
}
.live-room-kicker {
  margin: 0;
  font-size: .75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.live-room-back {
  color: #93c5fd;
  text-decoration: none;
  white-space: nowrap;
}
.live-room-bar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.live-room-status {
  font-size: .85rem;
  color: #a7f3d0;
}
.live-room.is-error .live-room-status { color: #fca5a5; }
.live-room-leave {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #fff !important;
}
.live-room-hint {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 16px;
  background: #1e293b;
  color: #cbd5e1;
  font-size: .9rem;
  border-bottom: 1px solid #334155;
}
.live-room-stage {
  position: relative;
  min-height: 70vh;
  background: #020617;
  overflow: hidden;
}
.live-room-stage #zmmtg-root {
  width: 100%;
  min-height: 70vh;
}
.live-room-side {
  padding: 16px;
  background: #111827;
  border-left: 1px solid #1f2937;
}
.live-room-side h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #f1f5f9;
}
.live-room-side ul {
  margin: 0 0 14px;
  padding-left: 18px;
}
.live-room-side a { color: #93c5fd; }
.live-room-side .meta { color: #94a3b8; font-size: .85rem; }
@media (max-width: 900px) {
  .live-room {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
  }
  .live-room-side {
    border-left: 0;
    border-top: 1px solid #1f2937;
  }
}

/* ——— SaaS Preisliste ——— */
.saas-price { display: grid; gap: 20px; }
.saas-price-hero {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
  padding: 22px 24px; border-radius: 20px;
  background:
    radial-gradient(1200px 280px at 0% 0%, rgba(20, 184, 166, .12), transparent 55%),
    radial-gradient(900px 260px at 100% 0%, rgba(37, 99, 235, .10), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e8eef5;
}
.saas-price-eyebrow {
  margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #0d9488;
}
.saas-price-hero h2 { margin: 0 0 8px; font-size: 1.45rem; color: #0f172a; letter-spacing: -.02em; }
.saas-price-hero p { margin: 0; max-width: 52ch; color: #64748b; line-height: 1.55; }
.saas-price-buyout {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px;
  padding: 18px 20px; border-radius: 18px;
  border: 2px solid #0b1f4a;
  background: linear-gradient(165deg, #f1f5f9 0%, #fff 55%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.saas-price-buyout .saas-price-eyebrow { margin: 0 0 4px; }
.saas-price-buyout h3 { margin: 0 0 6px; font-size: 1.2rem; color: #0b1f4a; letter-spacing: -.02em; }
.saas-price-buyout p { margin: 0; max-width: 52ch; color: #64748b; line-height: 1.5; font-size: 14px; }
.saas-price-buyout-incl { margin-top: 8px !important; font-weight: 600; color: #0f172a !important; }
.saas-price-buyout-scope-title {
  margin: 14px 0 6px; font-size: 12px; font-weight: 750; letter-spacing: .04em;
  text-transform: uppercase; color: #0b1f4a;
}
.saas-price-buyout-scope {
  list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 5px;
  max-width: 58ch;
}
.saas-price-buyout-scope li {
  font-size: 13.5px; line-height: 1.4; color: #334155;
  padding-left: 16px; position: relative;
}
.saas-price-buyout-scope li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: #0f766e; font-weight: 700; font-size: 12px;
}
.saas-price-buyout-amount { margin: 0; text-align: right; }
.saas-price-buyout-amount span {
  display: block; font-size: clamp(1.9rem, 3.2vw, 2.4rem); font-weight: 750;
  letter-spacing: -.03em; color: #0b1f4a;
}
.saas-price-buyout-amount small { display: block; margin-top: 2px; color: #64748b; font-weight: 600; font-size: 12px; }
.saas-price-buyout-terms {
  list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px;
}
.saas-price-buyout-terms li {
  font-size: 13px; font-weight: 600; color: #334155;
  padding-left: 14px; position: relative;
}
.saas-price-buyout-terms li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px;
  border-radius: 50%; background: #0f766e;
}
.saas-price-buyout-vnd {
  margin: 10px 0 0; text-align: right;
}
.saas-price-buyout-vnd strong {
  display: block; font-size: 1.15rem; font-weight: 750; color: #0f766e;
}
.saas-price-buyout-vnd .meta {
  display: block; margin-top: 2px; font-size: 11px; font-weight: 600; color: #64748b;
}
.saas-price-buyout-amount.is-vi .saas-price-buyout-vnd-main {
  display: block; font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 750;
  letter-spacing: -.03em; color: #0f766e;
}
.saas-price-buyout-eur-alt {
  margin: 8px 0 0; font-size: 13px; font-weight: 650; color: #475569;
}
.saas-price-buyout-amount > .meta { margin: 6px 0 0; max-width: 28ch; margin-left: auto; text-align: right; }
.saas-price-pdf {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px;
  margin-top: 14px; max-width: 42rem;
}
.saas-price-pdf-market {
  display: grid; gap: 4px; min-width: min(100%, 240px); flex: 1 1 200px;
  font-size: 12px; font-weight: 700; color: #64748b;
}
.saas-price-pdf-market select {
  appearance: auto; width: 100%; padding: 8px 10px; border-radius: 10px;
  border: 1px solid #e2e8f0; background: #fff; color: #0f172a; font-weight: 600; font-size: 13px;
}
.saas-price-pdf .meta { flex: 1 1 100%; margin: 0; font-size: 12px; color: #94a3b8; }
.saas-price-chips {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start;
}
.saas-price-chips li {
  min-width: 108px; padding: 12px 14px; border-radius: 14px; background: #fff;
  border: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.saas-price-chips strong { display: block; font-size: 1.15rem; color: #0f172a; }
.saas-price-chips span { display: block; margin-top: 2px; font-size: 12px; color: #64748b; font-weight: 600; }

.saas-price-plans {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
.saas-price-plan {
  position: relative; padding: 20px; border-radius: 18px; background: #fff;
  border: 1px solid #e8eef5; box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
  overflow: hidden;
}
.saas-price-plan::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
}
.saas-price-plan.is-sky::before { background: #2563eb; }
.saas-price-plan.is-teal::before { background: #0d9488; }
.saas-price-plan.is-amber::before { background: #d97706; }
.saas-price-plan.is-sky { background: linear-gradient(165deg, #eff6ff 0%, #fff 48%); }
.saas-price-plan.is-teal { background: linear-gradient(165deg, #f0fdfa 0%, #fff 48%); }
.saas-price-plan.is-amber { background: linear-gradient(165deg, #fffbeb 0%, #fff 48%); }
.saas-price-plan-name {
  margin: 0 0 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #64748b;
}
.saas-price-plan-amount { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.saas-price-plan-amount span { font-size: clamp(1.8rem, 3vw, 2.25rem); font-weight: 750; letter-spacing: -.03em; color: #0f172a; }
.saas-price-plan-amount small { color: #64748b; font-weight: 600; font-size: 13px; }
.saas-price-plan-meta { margin: 8px 0 14px; color: #64748b; font-size: 13px; font-weight: 600; }
.saas-price-plan-terms {
  margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding-top: 12px; border-top: 1px dashed #e2e8f0;
}
.saas-price-plan-terms div {
  display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.7);
}
.saas-price-plan-terms dt { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; }
.saas-price-plan-terms dd { margin: 0; font-size: 14px; font-weight: 700; color: #0f172a; }

.saas-price-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.saas-price-term-switch {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px;
  background: #f1f5f9; border: 1px solid #e2e8f0;
}
.saas-price-term {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; color: #475569;
}
.saas-price-term.is-on {
  background: #0f172a; color: #fff; box-shadow: 0 4px 12px rgba(15, 23, 42, .18);
}
.saas-price-toolbar-hint { margin: 0; font-weight: 600; }

.saas-price-markets {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px;
}
.saas-price-market {
  padding: 16px; border-radius: 18px; background: #fff; border: 1px solid #e8eef5;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.saas-price-market:hover {
  border-color: #cbd5e1; box-shadow: 0 10px 24px rgba(15, 23, 42, .06); transform: translateY(-1px);
}
.saas-price-market.is-ref { border-color: #99f6e4; background: linear-gradient(180deg, #f0fdfa 0%, #fff 40%); }
.saas-price-market header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px;
}
.saas-price-market h3 { margin: 0; font-size: 1.05rem; color: #0f172a; }
.saas-price-mult {
  flex: none; min-width: 52px; text-align: center; padding: 6px 8px; border-radius: 999px;
  background: #f8fafc; border: 1px solid #e2e8f0; font-size: 12px; font-weight: 750; color: #334155;
}
.saas-price-market-grid { display: grid; gap: 8px; }
.saas-price-cell {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 12px; border: 1px solid transparent;
}
.saas-price-cell.is-sky { background: #eff6ff; border-color: #dbeafe; }
.saas-price-cell.is-teal { background: #f0fdfa; border-color: #ccfbf1; }
.saas-price-cell.is-amber { background: #fffbeb; border-color: #fde68a; }
.saas-price-cell-plan { font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .03em; color: #64748b; }
.saas-price-val { display: none; font-size: 1.15rem; font-weight: 750; letter-spacing: -.02em; color: #0f172a; }
.saas-price-val.is-show { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.saas-price-val small { font-size: 12px; font-weight: 700; color: #64748b; }
.saas-price-setup { display: block; width: 100%; font-size: 11px; font-weight: 650; font-style: normal; color: #b45309; margin-top: 2px; }

.saas-price-footnote {
  padding: 14px 16px; border-radius: 14px; background: #f8fafc; border: 1px dashed #cbd5e1;
}
.saas-price-footnote p { margin: 0; color: #64748b; font-size: 13px; line-height: 1.55; }

/* —— SaaS Ops Soft-UI —— */
.saas-ops-hero {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px;
  margin: 0 0 20px; padding: 22px 24px;
  border-radius: 22px;
  background:
    radial-gradient(900px 220px at 0% 0%, rgba(37, 99, 235, .10), transparent 55%),
    radial-gradient(700px 200px at 100% 0%, rgba(13, 148, 136, .10), transparent 50%),
    linear-gradient(165deg, #f8fafc 0%, #fff 55%);
  border: 1px solid #e2e8f0;
}
.saas-ops-eyebrow {
  margin: 0 0 6px; font-size: 12px; font-weight: 750; letter-spacing: .06em;
  text-transform: uppercase; color: #0d9488;
}
.saas-ops-hero h1 {
  margin: 0 0 8px; font-size: clamp(1.45rem, 2.5vw, 1.85rem); font-weight: 750;
  letter-spacing: -.02em; color: #0f172a; line-height: 1.2;
}
.saas-ops-hero-copy p:last-child {
  margin: 0; max-width: 56ch; color: #64748b; line-height: 1.55; font-size: 14px; font-weight: 500;
}
.saas-ops-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.saas-kpi { margin-bottom: 18px; }
.saas-kpi .lms-stat {
  position: relative; overflow: hidden;
  min-height: 88px; padding: 16px 14px;
  border: 1px solid transparent;
}
.saas-kpi .lms-stat::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  opacity: .85; background: currentColor;
}
.saas-kpi .lms-stat.is-sky { background: linear-gradient(165deg, #eff6ff 0%, #fff 62%); color: #2563eb; }
.saas-kpi .lms-stat.is-teal { background: linear-gradient(165deg, #f0fdfa 0%, #fff 62%); color: #0d9488; }
.saas-kpi .lms-stat.is-amber { background: linear-gradient(165deg, #fffbeb 0%, #fff 62%); color: #d97706; }
.saas-kpi .lms-stat.is-violet { background: linear-gradient(165deg, #f5f3ff 0%, #fff 62%); color: #7c3aed; }
.saas-kpi .lms-stat.is-blue { background: linear-gradient(165deg, #eff6ff 0%, #fff 62%); color: #2563eb; }
.saas-kpi .lms-stat.is-green { background: linear-gradient(165deg, #ecfdf5 0%, #fff 62%); color: #059669; }
.saas-kpi .lms-stat.is-sky .lms-stat-ico,
.saas-kpi .lms-stat.is-blue .lms-stat-ico { color: #2563eb; }
.saas-kpi .lms-stat.is-teal .lms-stat-ico { color: #0d9488; }
.saas-kpi .lms-stat.is-amber .lms-stat-ico { color: #d97706; }
.saas-kpi .lms-stat.is-violet .lms-stat-ico { color: #7c3aed; }
.saas-kpi .lms-stat.is-green .lms-stat-ico { color: #059669; }
.saas-kpi .lms-stat-ico {
  width: 44px; height: 44px; border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.saas-kpi .lms-stat-text strong {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 750;
  letter-spacing: -.03em; color: #0f172a; font-variant-numeric: tabular-nums;
}
.saas-kpi .lms-stat-text em {
  font-size: 12px; font-weight: 650; color: #64748b; line-height: 1.25;
}
.saas-kpi .lms-stat.is-on {
  box-shadow: 0 0 0 2px rgba(30, 58, 95, .18), 0 10px 24px rgba(15, 23, 42, .08);
  transform: translateY(-2px);
}

.saas-ops-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 0 20px; padding: 6px;
  border-radius: 16px; background: #f1f5f9;
}
.saas-ops-tabs a {
  display: inline-flex; align-items: center; padding: 8px 14px;
  border-radius: 12px; font-size: 13px; font-weight: 650;
  color: #475569; text-decoration: none; border: 0;
  transition: background .12s ease, color .12s ease, box-shadow .12s ease;
}
.saas-ops-tabs a:hover { background: #fff; color: #0f172a; }
.saas-ops-tabs a.is-on {
  background: #fff; color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}

@media (max-width: 960px) {
  .saas-price-plans { grid-template-columns: 1fr; }
  .saas-ops-hero { padding: 18px; }
}
@media (max-width: 640px) {
  .saas-price-hero { padding: 18px; }
  .saas-price-chips { width: 100%; }
  .saas-price-chips li { flex: 1 1 calc(33% - 8px); min-width: 0; }
  .saas-kpi .lms-stat { min-height: 76px; padding: 14px 12px; }
  .saas-ops-tabs { gap: 4px; }
  .saas-ops-tabs a { padding: 7px 10px; font-size: 12px; }
}

/* SaaS RTL (Arabic UI) */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .lang-switch { direction: ltr; }
html[dir="rtl"] .form-row, html[dir="rtl"] .set-grid { direction: rtl; }

/* —— PWA Install-Assistent (Schüler) —— */
.pwa-assist {
  position: fixed;
  z-index: 9800;
  left: 12px;
  right: 12px;
  bottom: 12px;
  max-width: 420px;
  margin: 0 auto;
  pointer-events: none;
}
.pwa-assist.is-open { pointer-events: auto; }
.pwa-assist-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, .18);
  overflow: hidden;
  animation: pwa-assist-in .35s ease-out;
}
@keyframes pwa-assist-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.pwa-assist-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 0;
}
.pwa-assist-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eff6ff;
  color: #2563eb;
}
.pwa-assist.is-installed .pwa-assist-icon {
  background: #ecfdf5;
  color: #059669;
}
.pwa-assist-titles { flex: 1; min-width: 0; }
.pwa-assist-eyebrow {
  margin: 0 0 2px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
}
.pwa-assist-titles h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}
.pwa-assist-close {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 8px;
}
.pwa-assist-close:hover { background: #f1f5f9; color: #334155; }
.pwa-assist-body { padding: 12px 16px 16px; }
.pwa-assist-lead {
  margin: 0 0 10px;
  font-size: .92rem;
  line-height: 1.45;
  color: #334155;
}
.pwa-assist-steps,
.pwa-assist-ios ol {
  margin: 0 0 12px;
  padding-left: 1.2rem;
  font-size: .88rem;
  line-height: 1.5;
  color: #475569;
}
.pwa-assist-ios {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: .88rem;
  color: #334155;
}
.pwa-assist-ios p { margin: 0 0 6px; }
.pwa-assist-ios ol { margin-bottom: 0; }
.pwa-assist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pwa-assist-hint {
  margin: 10px 0 0;
  font-size: .8rem;
  color: #64748b;
}
.pwa-assist:not(.is-expanded) .pwa-assist-steps,
.pwa-assist:not(.is-expanded) .pwa-assist-ios {
  display: none;
}
.pwa-assist.is-expanded .pwa-assist-steps,
.pwa-assist.is-expanded .pwa-assist-ios:not([hidden]) {
  display: block;
}
@media (min-width: 720px) {
  .pwa-assist {
    left: auto;
    right: 20px;
    bottom: 20px;
    margin: 0;
  }
}
html[dir="rtl"] .pwa-assist-steps,
html[dir="rtl"] .pwa-assist-ios ol { padding-left: 0; padding-right: 1.2rem; }
html[dir="rtl"] .pwa-assist {
  left: 20px;
  right: auto;
}

/* Public: Über uns + Partnernetzwerk */
.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
}
.about-values li {
  background: #fef9c3;
  color: #854d0e;
  font-weight: 700;
  font-size: 0.86rem;
  border-radius: 999px;
  padding: 6px 12px;
}
.about-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
}
.about-name-part {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #334155;
}
.about-name-part b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #14532d;
  font-size: 0.78rem;
}
.about-name-dot { color: #cbd5e1; font-weight: 800; }
.about-story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
.about-claim {
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: 22px;
  background: linear-gradient(155deg, #fffbeb 0%, #ecfdf5 100%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.about-claim p:last-child {
  margin: 8px 0 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
}
.about-tagline {
  font-weight: 800;
  font-size: 1.05rem;
  margin: 12px 0 4px;
}
.about-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fef9c3;
  color: #854d0e;
  font-weight: 800;
  margin-bottom: 8px;
}
.partners-strip {
  padding: 12px 8vw 28px;
}
.partners-strip-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.partners-strip-head h2 {
  margin: 0;
  font-size: 1.2rem;
}
.partners-strip-head a {
  font-weight: 700;
  font-size: 0.9rem;
}
.partners-logo-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
}
.partners-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 76px;
  padding: 12px 18px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.partners-logo-card img {
  max-height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.85;
}
.partners-logo-card:hover img {
  filter: none;
  opacity: 1;
}
.partners-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}
.partners-visual {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
.partners-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.partners-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.partners-regions li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.88rem;
}
.partners-regions span {
  font-weight: 800;
  color: #0f766e;
}
.partners-points {
  margin: 0 0 18px;
  padding-left: 1.1rem;
  color: #475569;
}
.partners-points strong {
  display: block;
  color: #0f172a;
  margin-bottom: 2px;
}
.partners-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.partners-card {
  text-decoration: none;
  color: inherit;
}
a.partners-card:hover { color: inherit; }
.partners-card-logo {
  max-height: 56px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  margin-bottom: 12px;
}
.partners-visit {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  color: #0f766e;
}
.partners-page-hero { margin: 8px 8vw 0; }
@media (max-width: 800px) {
  .partners-intro { grid-template-columns: 1fr; }
}

.sticky-contact { display: none !important; }
@media (max-width: 960px) {
  body.is-guest { padding-bottom: 0; }
}

.side-nav .lnav-home {
  font-weight: 700;
  color: var(--ink);
}
.side-nav .lnav-group {
  border: 0;
  margin: 2px 0;
}
.side-nav .lnav-group > summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  color: #334155;
}
.side-nav .lnav-group > summary::-webkit-details-marker { display: none; }
.side-nav .lnav-group > summary:hover { background: var(--blue-soft); }
.side-nav .lnav-body { display: flex; flex-direction: column; gap: 2px; padding: 0 0 6px 8px; }
.side-nav .lnav-link { font-size: 0.92rem; }

.ldash-folders {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
.ldash-folder {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  text-decoration: none;
  color: inherit;
  min-height: 96px;
}
.ldash-folder em {
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 800;
  color: #0369a1;
}
.ldash-folder strong { font-size: 0.98rem; line-height: 1.35; }
.ldash-folder.is-live em { color: #b45309; }
.ldash-folder.is-apply em { color: #0f766e; }
.ldash-folder.is-de em { color: #6d28d9; }
.ldash-match {
  background: #fff;
  border-radius: 18px;
  padding: 18px 20px;
  margin: 0 0 18px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}
.ldash-match-kicker {
  margin: 0 0 4px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
  color: #0f766e;
}
.ldash-match h2 { margin: 0 0 6px; font-size: 1.25rem; }
.ldash-match-ampel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 12px 0;
  padding: 0;
}
.ldash-match-ampel li {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  background: #f1f5f9;
}
.ldash-match-ampel li.is-ok { background: #dcfce7; color: #166534; }
.ldash-match-ampel li.is-warn { background: #fef3c7; color: #92400e; }

.parent-ampel { margin: 24px 0; }
.parent-ampel h2 { font-size: 1.15rem; margin: 0 0 12px; }
.parent-ampel ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.parent-ampel li {
  border-radius: 16px;
  padding: 14px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.parent-ampel li strong { display: block; }
.parent-ampel li span { color: #64748b; font-size: 0.85rem; }
.parent-ampel li.is-ok { background: #dcfce7; border-color: #86efac; }
.parent-ampel li.is-wait { background: #fef3c7; border-color: #fcd34d; }
.parent-ampel li.is-open { background: #f1f5f9; }

.first72-phrases { margin: 0; padding-left: 1.1rem; }
.first72-phrases li { margin: 0 0 8px; }
.first72-phrases span { display: block; color: #64748b; font-size: 0.9rem; }

@media (max-width: 800px) {
  .ldash-folders { grid-template-columns: 1fr 1fr; }
  .parent-ampel ul { grid-template-columns: 1fr 1fr; }
}

.home-jobs-mag-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
}
.home-jobs-mag-head .lead { margin: 6px 0 0; max-width: 40rem; }
.home-jobs-mag-head h2 { margin: 0; }
.home-jobs-mag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.home-job {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 280px;
  border-radius: 22px;
  overflow: hidden;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}
.home-job:hover { color: #fff; transform: translateY(-2px); }
.home-job-media {
  display: block;
  position: relative;
  flex: 1;
  min-height: 180px;
  background: #1e3a5f center / cover no-repeat;
  background-image: var(--ind-img);
}
.home-job-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.home-job-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(15, 23, 42, 0.78) 100%);
  pointer-events: none;
}
.home-job-copy {
  display: block;
  position: relative;
  margin-top: auto;
  padding: 18px 18px 20px;
  z-index: 1;
}
.home-job.has-photo .home-job-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
}
.home-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.home-job-meta em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(250, 204, 21, 0.92);
  color: #0f172a;
  border-radius: 999px;
  padding: 3px 8px;
}
.home-job-copy strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0 0 4px;
}
.home-job-copy span { color: #cbd5e1; font-size: 0.9rem; }

.contact-talk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 8px;
}
.contact-talk-ways {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-way {
  display: block;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
}
.contact-way:hover { color: inherit; border-color: #1e3a5f; }
.contact-way em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}
.contact-way strong { display: block; font-size: 1.15rem; }
.contact-way span { display: block; margin-top: 4px; color: #64748b; font-size: 0.9rem; }
.contact-way.is-zalo { border-color: #93c5fd; background: #eff6ff; }
.contact-way.is-zalo em { color: #0068ff; }
.contact-way.is-meet { border-color: #fde68a; background: #fffbeb; }
.contact-way.is-meet em { color: #b45309; }
.contact-way.is-call { border-color: #a7f3d0; background: #ecfdf5; }
.contact-way.is-mail { border-color: #e2e8f0; }
.contact-talk-form h2 { margin: 0 0 6px; font-size: 1.2rem; }
.contact-talk-form textarea { min-height: 120px; resize: vertical; }
.contact-talk-office {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

@media (max-width: 800px) {
  .home-jobs-mag-grid { grid-template-columns: 1fr; }
  .home-job { min-height: 240px; }
  .contact-talk-grid,
  .contact-talk-office { grid-template-columns: 1fr; }
}
