/* ============================================================
   Pruefungstrainer - Stylesheet
   Farbschema als CSS-Variablen: Dark-Mode-Werte auf :root,
   Light-Mode-Werte unter [data-theme="light"]. Der Toggle in
   js/theme.js setzt/entfernt dieses Attribut auf <html>.
   ============================================================ */

:root {
  /* --- Dark Mode (Standard) --- */
  --bg: #151c27;
  --bg-raised: #1d2734;
  --bg-card: #232f3f;
  --bg-card-hover: #2a3849;
  --line: #33445a;
  --line-soft: #283549;
  --text: #f1f3f6;
  --text-dim: #9fb0c3;
  --text-faint: #6b7a8e;
  --amber: #f0ac4c;
  --amber-text: #1a1000;
  --teal: #57c2b4;
  --teal-dim: #1e3a36;
  --red: #e27568;
  --red-dim: #3a2422;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);

  --radius-lg: 18px;
  --radius-md: 12px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="light"] {
  --bg: #f4f6f9;
  --bg-raised: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #eef2f7;
  --line: #d7dee7;
  --line-soft: #e3e8ef;
  --text: #182230;
  --text-dim: #4c5b6d;
  --text-faint: #77879b;
  --amber: #c97a12;
  --amber-text: #ffffff;
  --teal: #12897d;
  --teal-dim: #dff3f0;
  --red: #c8402f;
  --red-dim: #fbe4e0;
  --shadow: 0 8px 24px rgba(20, 30, 45, 0.08);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior-y: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

button, input, textarea, select { font-family: inherit; }

.app {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------- Sidebar ---------- */

.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-raised);
  border-right: 1px solid var(--line-soft);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
}

.brand-row { display: flex; align-items: center; justify-content: space-between; margin: 0 0 26px 6px; }
.brand {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--amber);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }

.sidebar-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin: 0 0 12px 8px;
  text-transform: uppercase;
}

.berufs-tab {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-bottom: 5px;
  line-height: 1.4;
}
.berufs-tab.active { background: var(--bg-card); color: var(--amber); box-shadow: 0 0 0 1px var(--line-soft) inset; }
.berufs-tab .sub {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 3px;
}

.sidebar-nav { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-bottom: 3px;
}
.nav-item:hover { background: var(--bg-card); }
.nav-item.active { background: var(--bg-card); color: var(--teal); }
.nav-item .icon { font-family: var(--mono); font-size: 12px; opacity: 0.8; }

.sidebar-footer { margin-top: auto; padding-top: 18px; }

/* ---------- Theme toggle ---------- */

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 4px;
  cursor: pointer;
  width: fit-content;
}
.theme-toggle .track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.theme-toggle .knob {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--amber);
  transition: transform 0.18s ease;
}
[data-theme="light"] .theme-toggle .knob { transform: translateX(18px); background: var(--teal); }
.theme-toggle .label { font-family: var(--mono); font-size: 11px; color: var(--text-dim); padding-right: 6px; }

/* ---------- Main layout ---------- */

.main {
  flex: 1;
  padding: 44px 56px 80px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

h1 { font-family: var(--sans); font-weight: 700; font-size: 28px; margin: 0 0 6px 0; letter-spacing: -0.01em; }
h2 { font-family: var(--sans); font-weight: 700; font-size: 20px; margin: 0 0 6px 0; }
.subtitle { color: var(--text-dim); font-size: 15.5px; margin: 0 0 12px 0; }

.stats-row { display: flex; gap: 14px; margin: 20px 0 32px 0; flex-wrap: wrap; }
.stat-pill {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
}
.stat-pill b { color: var(--amber); font-weight: 700; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 22px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.1s ease, background-color 0.15s ease;
}
.cat-card:active { transform: scale(0.98); }
.cat-card:hover { border-color: var(--teal); background: var(--bg-card-hover); }

.cat-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--teal);
  font-weight: 700;
}
.teil-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.teil-badge.teil1 { color: var(--teal); background: var(--teal-dim); }
.teil-badge.teil2 { color: var(--amber); background: var(--bg-raised); border: 1px solid var(--amber); }
.cat-name { font-weight: 700; font-size: 17px; margin: 0 0 10px 0; letter-spacing: -0.005em; }
.cat-meta { font-family: var(--mono); font-size: 12px; color: var(--text-dim); display: flex; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.cat-score { color: var(--amber); font-weight: 600; text-align: right; }
.bar-track { height: 6px; background: var(--bg-raised); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--teal); }

.teil-filter-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.teil-filter-label { font-size: 13px; font-weight: 600; color: var(--text-dim); white-space: nowrap; }

.len-picker { display: flex; gap: 10px; margin: 10px 0 26px 0; flex-wrap: wrap; }
.len-btn {
  background: var(--bg-card);
  border: 1.5px solid var(--line-soft);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.len-btn.active { border-color: var(--amber); color: var(--amber); background: var(--bg-card-hover); }

.quiz-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.back-btn { background: none; border: none; color: var(--text-dim); font-family: var(--mono); font-size: 13px; font-weight: 600; cursor: pointer; padding: 8px 0; }
.back-btn:hover { color: var(--teal); }

.progress-track { height: 8px; background: var(--bg-card); border-radius: 5px; overflow: hidden; margin-bottom: 32px; }
.progress-fill { height: 100%; background: var(--amber); transition: width 0.25s ease; }

.cat-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  background: var(--teal-dim);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.q-text { font-size: 21px; font-weight: 700; line-height: 1.5; margin: 0 0 28px 0; letter-spacing: -0.005em; }

.option {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg-card);
  border: 1.5px solid var(--line-soft);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  padding: 17px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-bottom: 12px;
  line-height: 1.45;
}
.option:hover:not(.locked) { border-color: var(--teal); background: var(--bg-card-hover); }
.option:active:not(.locked) { transform: scale(0.99); }
.option.correct { border-color: var(--teal); background: var(--teal-dim); }
.option.wrong { border-color: var(--red); background: var(--red-dim); }
.option.locked { cursor: default; }
.option.selected { border-color: var(--amber); background: var(--bg-card-hover); }

.explanation { background: var(--bg-raised); border-left: 3px solid var(--amber); padding: 18px 20px; border-radius: 10px; font-size: 15px; line-height: 1.6; color: var(--text-dim); margin-top: 18px; }
.explanation strong { color: var(--text); }

/* ---------- Prüfungssimulation ---------- */

.exam-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1.5px solid var(--amber);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 28px;
}
.exam-banner-title { font-weight: 700; font-size: 17px; margin: 0 0 6px 0; }
.exam-banner-sub { font-size: 13px; color: var(--text-dim); margin: 0; }
.exam-banner-best { font-size: 13px; color: var(--amber); margin: 8px 0 0 0; font-family: var(--mono); }
.exam-banner .primary-result-btn { white-space: nowrap; }

.exam-rule {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
  color: var(--text-dim);
}
.exam-rule:last-of-type { border-bottom: none; }
.exam-rule b { color: var(--text); font-weight: 700; }

.exam-timer {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--amber);
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  padding: 7px 14px;
  border-radius: 999px;
}

.exam-nav { display: flex; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* Fragenübersicht: ein Kasten je Frage */
.exam-box-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 26px;
  padding: 14px;
  background: var(--bg-raised);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
}
.exam-box {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 7px;
  border: 1.5px solid var(--line);
  background: var(--bg-card);
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.exam-box:hover { border-color: var(--teal); color: var(--text); }
.exam-box.answered { background: var(--teal); border-color: var(--teal); color: var(--bg); }
.exam-box.current { border-color: var(--amber); border-width: 2.5px; color: var(--amber); }
.exam-box.answered.current { color: var(--bg); border-color: var(--amber); }

@media (max-width: 760px) {
  .exam-box-grid { padding: 10px; gap: 5px; }
  .exam-box { width: 30px; height: 30px; font-size: 11px; }
}

.review-line { font-size: 14px; padding: 3px 0; }
.review-line.correct { color: var(--teal); }
.review-line.wrong { color: var(--red); }

/* ---------- Lernplan ---------- */

.phase-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.phase-row { display: grid; grid-template-columns: 160px 1fr 32px; align-items: center; gap: 14px; }
.phase-label { font-size: 13.5px; color: var(--text-dim); white-space: nowrap; }
.phase-interval { font-family: var(--mono); font-size: 11px; color: var(--text-faint); }
.phase-bar-track { height: 8px; background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: 5px; overflow: hidden; }
.phase-bar-fill { height: 100%; background: var(--teal); }
.phase-count { font-family: var(--mono); font-size: 13px; color: var(--text); text-align: right; }

.checkbox-list { display: flex; flex-direction: column; gap: 4px; }
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  font-size: 14.5px;
}
.checkbox-row:last-child { border-bottom: none; }
.checkbox-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--teal); flex-shrink: 0; }
.checkbox-meta { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); white-space: nowrap; }

@media (max-width: 760px) {
  .phase-row { grid-template-columns: 1fr; gap: 4px; }
  .phase-count { text-align: left; }
}

.next-btn {
  margin-top: 24px;
  width: 100%;
  background: var(--amber);
  color: var(--amber-text);
  border: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.next-btn:hover { filter: brightness(0.95); }
.next-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.result-box { text-align: center; padding: 60px 20px 20px; }
.result-ring { width: 160px; height: 160px; margin: 0 auto 24px; position: relative; }
.result-ring svg { transform: rotate(-90deg); }
.result-ring-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 32px; font-weight: 700; color: var(--amber); }
.result-sub { color: var(--text-dim); font-size: 16px; margin: 0 0 8px 0; }
.result-msg { color: var(--text-faint); font-size: 14px; margin: 0 0 32px 0; }
.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.secondary-btn { background: var(--bg-card); border: 1.5px solid var(--line-soft); color: var(--text); font-family: var(--sans); font-weight: 600; font-size: 15px; padding: 14px 24px; border-radius: var(--radius-md); cursor: pointer; }
.secondary-btn:hover { border-color: var(--teal); }
.primary-result-btn { background: var(--amber); color: var(--amber-text); border: none; font-family: var(--sans); font-weight: 700; font-size: 15px; padding: 14px 24px; border-radius: var(--radius-md); cursor: pointer; }

.install-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.install-banner button {
  background: var(--amber);
  color: var(--amber-text);
  border: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

/* ---------- Forms (Frage hinzufuegen, Einstellungen) ---------- */

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; }
.field .hint { font-size: 12px; color: var(--text-faint); margin-top: 6px; }

.field input[type="text"],
.field input[type="password"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-raised);
  border: 1.5px solid var(--line-soft);
  color: var(--text);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-family: var(--sans);
}
.field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.options-editor { display: flex; flex-direction: column; gap: 10px; }
.option-row { display: flex; align-items: center; gap: 10px; }
.option-row input[type="radio"] { width: 18px; height: 18px; accent-color: var(--teal); flex-shrink: 0; }
.option-row input[type="text"] { flex: 1; }

.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row .field { flex: 1; min-width: 200px; }

.form-actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  color: var(--text);
  padding: 13px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  font-size: 14px;
  z-index: 50;
}
.toast.error { border-color: var(--red); color: var(--red); }
.toast.success { border-color: var(--teal); }

/* ---------- Meine Fragen (Liste) ---------- */

.question-list { display: flex; flex-direction: column; gap: 12px; }
.question-item {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.question-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.question-item-text { font-weight: 600; font-size: 15px; line-height: 1.45; }
.question-item-meta { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); margin-bottom: 4px; }
.question-item-actions { display: flex; gap: 8px; flex-shrink: 0; }
.icon-btn {
  background: var(--bg-raised);
  border: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--teal); color: var(--teal); }
.icon-btn.danger:hover { border-color: var(--red); color: var(--red); }

.empty-state { color: var(--text-faint); font-size: 14px; padding: 30px 0; text-align: center; }

/* ---------- KI-Textgenerierung ---------- */

.provider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 6px; }
.provider-card {
  background: var(--bg-raised);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
}
.provider-card.active { border-color: var(--amber); background: var(--bg-card-hover); }
.provider-card .name { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.provider-card .status { font-family: var(--mono); font-size: 11px; color: var(--text-faint); }
.provider-card .status.ok { color: var(--teal); }

.preview-list { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.preview-card .options-editor { margin-top: 10px; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--amber);
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .app { flex-direction: column; }
  .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--line-soft); padding: 16px 14px; position: sticky; top: 0; z-index: 5; height: auto; overflow-y: visible; }
  .brand-row { margin: 0 0 12px 6px; }
  .sidebar-label { display: none; }
  .berufs-tab-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
  .berufs-tab { white-space: nowrap; width: auto; flex-shrink: 0; margin-bottom: 0; }
  .berufs-tab .sub { display: none; }
  .sidebar-nav { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-top: 10px; border-top: none; }
  .nav-item { white-space: nowrap; width: auto; margin-bottom: 0; }
  .sidebar-footer { margin-top: 10px; }
  .main { padding: 24px 18px 60px; }
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 23px; }
  .q-text { font-size: 19px; }
  .form-row { flex-direction: column; }
}

/* ---------- Konto / Cloud-Sync ---------- */

.account-badge {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  margin-bottom: 12px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-badge:hover { border-color: var(--teal); }
.account-badge.logged-in { border-color: var(--teal); }
.account-badge.error { border-color: var(--red); }
.account-sub { display: block; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--text-faint); margin-top: 2px; }
.account-card { max-width: 480px; }
.account-msg { font-size: 14px; line-height: 1.5; padding: 10px 12px; border-radius: 8px; background: var(--teal-dim); color: var(--text); margin: 0 0 16px 0; }
.account-msg.error { background: var(--red-dim); color: var(--red); }
.account-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.link-btn { background: none; border: none; padding: 0; color: var(--teal); font-size: 13px; cursor: pointer; text-decoration: underline; }

/* ---------- Community ---------- */
.section-title { font-size: 15px; margin: 26px 0 10px; color: var(--text-dim); font-weight: 600; }
.set-desc { margin: 6px 0 0; font-size: 13px; color: var(--text-dim); }
.set-flag { color: var(--teal); font-weight: 600; }
.set-flag.danger { color: var(--red); }
.set-card.subscribed { border-color: var(--teal); }
.set-preview { margin: 12px 0 0; padding-left: 22px; font-size: 13px; color: var(--text-dim); display: flex; flex-direction: column; gap: 4px; }
.icon-btn.primary { border-color: var(--teal); color: var(--teal); }
.cat-tag.community { color: var(--teal); }

/* ---------- Dialog (Melden) ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); display: flex; align-items: center; justify-content: center; padding: 18px; z-index: 40; }
.modal { background: var(--bg-raised); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; }
.modal h2 { margin: 0 0 4px; font-size: 19px; }
.modal-hint { font-size: 12.5px; color: var(--text-faint); margin: 10px 0 12px; }
.modal .checkbox-row input[type="radio"] { width: 18px; height: 18px; accent-color: var(--red); flex-shrink: 0; }
.modal textarea { width: 100%; box-sizing: border-box; }
.next-btn.danger-btn { background: var(--red); border-color: var(--red); }

/* Niedrige Bildschirme (Laptop): Sidebar kompakter, damit alles ohne Scrollen passt */
@media (min-width: 761px) and (max-height: 900px) {
  .sidebar { padding: 18px 16px; }
  .brand-row { margin-bottom: 14px; }
  .berufs-tab { padding: 8px 12px; margin-bottom: 2px; font-size: 14px; }
  .sidebar-nav { margin-top: 12px; padding-top: 10px; }
  .nav-item { padding: 7px 12px; margin-bottom: 1px; }
  .sidebar-footer { padding-top: 10px; }
}
.modal-text { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--text-dim); }
.legal-link { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--text-faint); text-decoration: none; }
.legal-link:hover { color: var(--teal); text-decoration: underline; }
.account-legal { font-size: 12.5px; color: var(--text-faint); margin: 12px 0 0; }
.account-legal a { color: var(--teal); }
