/* =========================================================================
   PyQuest · app.css — Komponenten & Layout (Restyling, gleiche Klassennamen)
   Klassennamen-Vertrag aus Abschnitt 8 unverändert. Reines CSS.
   ========================================================================= */

#app {
  display: grid;
  grid-template-rows: var(--header-h) 1fr;
  height: 100%;
}

/* =============================== Header ================================== */
.header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #2c2517, #241e13);
  box-shadow: 0 1px 0 rgba(255,179,64,.05), var(--shadow-sm);
  position: relative;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 19px;
}
.brand .logo {
  width: 32px;
  height: 32px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(52,211,181,.25));
}
.brand .name { color: var(--text); }
.brand .name b { color: var(--accent); font-weight: 700; }
.header-spacer { flex: 1; }

/* --- Gamification-Cluster: Streak · Level · XP als kohärentes System --- */
.stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  padding: 5px 11px 5px 9px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border-soft);
}
.stat .val { color: var(--text); font-weight: 700; }
/* Streak-Flamme bekommt einen ruhigen Glow */
.stat[data-kind="streak"] { position: relative; }
.stat[data-kind="streak"]::before {
  content: "";
  position: absolute; inset: -6px -4px;
  background: var(--streak-glow);
  opacity: .0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.stat[data-kind="streak"]:hover::before { opacity: .8; }

.stat-label {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
@media (max-width: 1120px) { .stat-label { display: none; } }

.xp-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 4px 4px;
}
.level-badge {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 10px;
  background: var(--accent-weak);
  color: var(--accent);
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid var(--accent-line);
  box-shadow: inset 0 0 0 1px rgba(255,179,64,.08);
}
.xp-bar {
  width: 148px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.4);
}
.xp-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--r-pill);
  background: var(--grad-xp);
  box-shadow: 0 0 14px rgba(52,211,181,.45);
  transition: width .6s cubic-bezier(.2,.8,.2,1);
}

/* ---- runde Icon-Buttons (?/📥/⤓) · .btn-Familie liegt in design.css ---- */
.help-btn {
  width: 32px; height: 32px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  font-family: var(--display); font-weight: 700; font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .12s ease, border-color .12s ease, background .12s ease;
}
.help-btn:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-weak); }
.help-btn.done { color: var(--teal); border-color: var(--teal-line); background: var(--teal-weak); }

/* Sprach-Dropdown */
.lang-wrap { position: relative; display: inline-flex; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 152px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lang-menu[hidden] { display: none; }
.lang-opt {
  text-align: left;
  padding: 8px 12px;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-family: var(--display);
  font-weight: 500;
  cursor: pointer;
}
.lang-opt:hover { background: var(--surface-2); color: var(--text); }
.lang-opt.active { color: var(--accent); background: var(--accent-weak); }

/* ================================ Body ================================== */
.body {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 0;
}
.body > *, .workspace > *, .editor-host { min-width: 0; }

/* ========================= Sidebar / Journey ============================ */
.sidebar {
  border-right: 1px solid var(--border);
  background: var(--bg-tint);
  overflow-y: auto;
  padding: 6px 12px 30px;
}
.chapter-title {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--accent);
  padding: 22px 10px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* farbiger Kapitel-Marker */
.chapter-title::before {
  content: "";
  width: 6px; height: 6px; flex: none;
  border-radius: 2px;
  background: var(--grad-accent);
  box-shadow: 0 0 8px rgba(255,179,64,.5);
}
.lesson-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  padding: 9px 11px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--r-md);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  transition: background .12s ease, color .12s ease;
}
/* verbindende Journey-Linie */
.lesson-item::before {
  content: "";
  position: absolute;
  left: 22px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
  z-index: 0;
}
.lesson-item.first::before { top: 50%; }
.lesson-item.last::before  { bottom: 50%; }
/* erledigte Etappen: Linie leuchtet dezent teal */
.lesson-item.done::before { background: linear-gradient(var(--teal-line), var(--border)); }

.lesson-item:hover { background: var(--surface); color: var(--text); }
.lesson-item.active {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
/* aktiver Akzentbalken links */
.lesson-item.active::after {
  content: "";
  position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; border-radius: 99px;
  background: var(--grad-accent);
}
.lesson-item.locked { opacity: .42; cursor: not-allowed; }
.lesson-item.locked:hover { background: transparent; color: var(--text-muted); }

.lesson-item .mark {
  position: relative;
  z-index: 1;
  width: 24px; height: 24px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  background: var(--surface-3);
  color: var(--text-faint);
  box-shadow: 0 0 0 4px var(--bg-tint);
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.lesson-item.done .mark { background: var(--grad-teal); color: #04211b; }
.lesson-item.active .mark {
  background: var(--grad-accent);
  color: #241704;
  box-shadow: 0 0 0 4px var(--bg-tint), 0 0 0 6px var(--accent-weak);
}
.lesson-item .title { font-family: var(--display); font-weight: 500; }
.lesson-item.active .title { font-weight: 600; }

/* ============================ Arbeitsbereich ============================ */
.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 40%) 1fr;
  min-height: 0;
}
.lesson-pane {
  overflow-y: auto;
  padding: 30px 32px 46px;
  border-right: 1px solid var(--border);
  background: var(--bg);
}
.lesson-kicker {
  display: inline-block;
  font-family: var(--display);
  color: var(--accent);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  background: var(--accent-weak);
}
.lesson-pane h1 { font-size: 28px; margin-top: 14px; }
.lesson-body { line-height: 1.7; margin-top: 14px; }
.lesson-body p { color: var(--text); }

/* Code-Beispielblock im Lektionstext */
.lesson-body pre, .code-sample {
  margin: 16px 0;
  padding: 14px 16px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--mono);
  font-size: 14px;
  color: #ece3d1;
  overflow-x: auto;
}

/* Aufgabe */
.lesson-body .task {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.lesson-body .task h2 {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 7px;
}

/* Tipps */
.hint-box { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
#hints-shown { width: 100%; }
.hint {
  margin-top: 8px;
  padding: 12px 15px;
  background: var(--surface-2);
  border-left: 3px solid var(--warning);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text);
}

/* Papa+ */
.papa-toggle {
  margin-top: 26px;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  background: var(--teal-weak);
  border: 1px solid var(--teal-line);
  border-radius: var(--r-md);
  cursor: pointer;
}
.papa-toggle:hover { border-color: var(--teal); }
.papa-toggle input { accent-color: var(--teal); width: 17px; height: 17px; }
.papa-toggle .label { font-family: var(--display); font-weight: 700; }
.papa-toggle .sub { font-size: 12.5px; color: var(--text-muted); }
.papa-content {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px dashed var(--teal-line);
  border-radius: var(--r-md);
  background: var(--bg-tint);
}

/* ============================ Editor-Spalte ============================= */
.editor-col {
  display: grid;
  grid-template-rows: 50px 1fr 1fr;
  min-height: 0;
  background: var(--bg-deep);
}
.toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #2b2517, #221d12);
}
.toolbar .spacer { flex: 1; }
.editor-host { min-height: 0; overflow: hidden; }
.editor-host .CodeMirror { height: 100%; }

/* =============================== Konsole ================================ */
.console {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-rows: 34px 1fr auto;
  min-height: 0;
  background: var(--bg-deep);
}
.console-head {
  display: flex; align-items: center; gap: 9px;
  padding: 0 14px;
  font-family: var(--display);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border-soft);
}
.console-head .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}
.console-out {
  overflow-y: auto;
  padding: 13px 15px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: #e8dcc4;
}
.console-out .info { color: var(--text-faint); }
.console-out .in { color: var(--teal); font-weight: 700; }
.console-out .placeholder { color: var(--text-faint); font-style: italic; }

/* ---- Freundliche Fehler-Karte (Highlight — erkennbar erhalten) ---- */
.err-card {
  margin: 10px 0 6px;
  border: 1px solid #5a2f28;
  border-left: 3px solid var(--danger);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #22110d, #1a0d0a);
  overflow: hidden;
  white-space: normal;
  box-shadow: var(--shadow-sm);
}
.err-card .err-title {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px 10px;
  font-family: var(--display); font-weight: 700;
  color: #ffb0a4;
}
.err-card .err-title .ico { font-size: 17px; }
.err-card .err-msg {
  padding: 0 14px 13px 42px;
  color: var(--text);
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.6;
}
.err-card .err-msg .where { color: var(--warning); font-weight: 600; }
.err-card .err-details { border-top: 1px solid #3a201b; }
.err-card .err-details summary {
  cursor: pointer;
  padding: 9px 14px;
  color: var(--text-faint);
  font-family: var(--font);
  font-size: 12.5px;
  list-style: none;
  transition: color .12s ease;
}
.err-card .err-details summary:hover { color: var(--text-muted); }
.err-card .err-details summary::-webkit-details-marker { display: none; }
.err-card .err-details pre {
  margin: 0; border: none; border-radius: 0;
  background: #1a100c;
  color: #d8a99f;
  font-family: var(--mono);
  font-size: 12px;
  padding: 12px 14px;
  overflow-x: auto;
}

/* Eingabezeile für input() */
.console-input {
  display: none;
  align-items: center; gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-deep);
}
.console-input.show { display: flex; }
.console-input .prompt { color: var(--teal); font-family: var(--mono); font-weight: 700; }
.console-input input {
  flex: 1; font: inherit;
  font-family: var(--mono); font-size: 13.5px;
  background: transparent; border: none; color: var(--text);
}
.console-input input:focus { outline: none; }
.console-input:focus-within {
  box-shadow: inset 0 0 0 2px var(--teal);
  border-radius: var(--r-sm);
}

/* ============================ Erfolgs-Banner ============================ */
.result-banner {
  position: fixed;
  left: 50%; top: calc(var(--header-h) + 16px);
  transform: translateX(-50%) translateY(-16px);
  opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px);
  padding: 13px 24px;
  border-radius: var(--r-pill);
  font-family: var(--display); font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 50;
}
.result-banner.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.result-banner.ok {
  background: var(--grad-teal);
  color: #04211b;
  box-shadow: var(--shadow), 0 0 32px rgba(52,211,181,.35);
}
.result-banner.fail { background: var(--surface-3); color: var(--text); border: 1px solid var(--border); }

/* ============================= Boot-Overlay ============================= */
.boot {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background: var(--bg);
  z-index: 100;
  transition: opacity .4s ease;
}
.boot.hide { opacity: 0; pointer-events: none; }
.boot .box { text-align: center; color: var(--text-muted); }
.boot .box .big {
  font-family: var(--display); font-weight: 700; font-size: 22px;
  color: var(--text); margin-bottom: 4px;
}
.spinner {
  width: 38px; height: 38px; margin: 0 auto 16px;
  border: 3px solid var(--surface-3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================== Responsiv ============================== */
#menu-btn { display: none; }
.mtabs { display: none; }
.scrim { display: none; }

@media (max-width: 960px) {
  #menu-btn { display: inline-flex; }
  .body { grid-template-columns: 1fr; position: relative; }

  .sidebar {
    position: fixed;
    top: var(--header-h); bottom: 0; left: 0;
    width: min(84vw, 322px);
    z-index: 40;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: var(--shadow);
  }
  .sidebar.open { transform: translateX(0); }
  .scrim {
    display: none;
    position: fixed; inset: var(--header-h) 0 0 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(2px);
    z-index: 35;
  }
  .sidebar.open ~ .scrim { display: block; }

  .mtabs {
    display: flex; gap: 8px;
    padding: 9px 10px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-tint);
  }
  .mtab {
    flex: 1;
    font-family: var(--display); font-weight: 700; font-size: 13px;
    padding: 11px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
  }
  .mtab.active { background: var(--surface-2); color: var(--text); border-color: var(--accent-line); }

  .workspace { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .lesson-pane { border-right: none; max-height: none; }
  .workspace.show-code .lesson-pane { display: none; }
  .workspace:not(.show-code) .editor-col { display: none; }
  .editor-col { min-height: 0; }

  .header { gap: 10px; padding: 0 12px; }
  .xp-bar { width: 90px; }
}

@media (max-width: 560px) {
  .lesson-pane { padding: 22px 16px 32px; }
  .lesson-pane h1 { font-size: 23px; }
  .toolbar .btxt { display: none; }
  .brand .name { display: none; }
  .header { gap: 7px; padding: 0 10px; }
  /* XP-Balken ausblenden (Level-Badge + Streak bleiben) -> kein Overflow */
  .xp-bar { display: none; }
  .xp-wrap { gap: 0; padding: 0; }
  .stat { gap: 5px; padding: 4px 8px; }
}

/* ===================== Onboarding: Modal + Tour ========================= */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(8,6,4,.74);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  z-index: 210; padding: 20px;
}
.modal {
  max-width: 448px; width: 100%;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 30px;
  text-align: center;
  box-shadow: var(--shadow);
}
.modal-logo { font-size: 44px; line-height: 1; margin-bottom: 8px; }
.modal h2 { font-size: 24px; }
.modal p { color: var(--text-muted); margin: 10px 0 0; }
.modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

.tour { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.tour-spot {
  position: fixed;
  border-radius: 12px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 9999px rgba(8,6,4,.74), 0 0 22px rgba(255,179,64,.4);
  transition: left .28s ease, top .28s ease, width .28s ease, height .28s ease;
  pointer-events: none;
}
.tour-card {
  position: fixed;
  pointer-events: auto;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 17px 19px;
  max-width: 300px;
  box-shadow: var(--shadow);
}
.tour-step {
  font-family: var(--display); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--accent); font-weight: 700;
}
.tour-card h3 { font-size: 17px; margin: 5px 0 6px; }
.tour-card p { margin: 0; color: var(--text-muted); font-size: 14px; }
.tour-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 15px; }

/* ---- Light-Theme: Header/Toolbar/Konsole bleiben dunkel -> Text hell halten ---- */
:root[data-theme="light"] .brand .name { color: #f6f1e7; }
:root[data-theme="light"] .xp-wrap .stat-label { color: #c9bda3; }
:root[data-theme="light"] .toolbar .btn-ghost { color: #cdc2ac; }
:root[data-theme="light"] .toolbar .btn-ghost:hover { color: #fff; background: #ffffff14; }
:root[data-theme="light"] .console-head { color: #9d927c; }

/* ============================== Offline-Toast =========================== */
.offline-toast {
  position: fixed;
  left: 50%; bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px);
  padding: 13px 22px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--display); font-weight: 600;
  box-shadow: var(--shadow);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 60;
}
.offline-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Fortschritt-Bereich unten in der Sidebar ---- */
.sidebar-footer {
  margin-top: 22px;
  padding: 14px 4px 6px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.side-action {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-family: var(--display);
  font-weight: 500;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.side-action:hover { background: var(--surface); color: var(--text); }
.side-action.danger:hover { background: var(--danger-weak); color: var(--danger); }
.side-account { padding: 2px 10px 6px; }
.acct-email {
  display: block;
  font-size: 12.5px;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-legal {
  margin-top: 12px;
  padding: 10px 10px 0;
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
  color: var(--text-faint);
}
.side-legal a { color: var(--text-faint); }
.side-legal a:hover { color: var(--accent); }

/* Login-Dialog */
.auth-modal { max-width: 400px; text-align: left; }
.auth-modal h2 { text-align: center; }
.auth-modal > p { text-align: center; color: var(--text-muted); }
.auth-email { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.auth-email input {
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
}
.auth-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--text-faint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-providers { display: flex; flex-direction: column; gap: 8px; }
.auth-providers .btn { justify-content: center; }
.auth-note { margin-top: 18px; font-size: 12px; color: var(--text-faint); text-align: center; }
.auth-note a { color: var(--teal); }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.linkbtn {
  background: none;
  border: none;
  padding: 0;
  color: var(--teal);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.linkbtn:hover { text-decoration: underline; }
/* Login-Gate (Login-Pflicht): stärker abgedunkelt, nicht schließbar */
.modal-overlay.gate { background: rgba(8, 6, 4, 0.92); }

/* Diplom */
.diploma-modal { max-width: 540px; }
.diploma-modal h2 { text-align: center; }
.diploma-cert { width: 100%; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.diploma-cert svg { display: block; width: 100%; height: auto; }
.diploma-name-input {
  width: 100%;
  margin-top: 14px;
  font: inherit;
  font-size: 15px;
  text-align: center;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
}
