/* Quest-Board · dunkles Spiel-Interface, mobil zuerst */
:root {
  --bg: #0e121a;
  --panel: #161b26;
  --panel-2: #1d2331;
  --line: #2a3244;
  --line-2: #3a4459;
  --text: #e9edf5;
  --muted: #8e98ad;
  --accent: #3d7ee0;
  --accent-2: #6aa3f5;
  --ok: #37b86a;
  --bad: #e35d50;
  --s1: #c97f45;
  --s2: #aeb8c8;
  --s3: #e6b43a;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
}
a { color: var(--accent-2); }
code { font-size: .85em; background: var(--panel-2); padding: 1px 5px; border-radius: 5px; }

.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px calc(92px + env(safe-area-inset-bottom)); }
body.guest .wrap { padding-bottom: 40px; }

h1, h2, h3 { margin: 0; line-height: 1.2; }
h2 { font-size: 1.05rem; margin: 26px 0 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; scroll-margin-top: 12px; }
h2 small { color: var(--muted); font-weight: 400; font-size: .8rem; }
h3 { font-size: 1rem; margin-bottom: 8px; }
h3.sub { margin: 22px 0 0; color: var(--accent-2); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .85rem; margin: 10px 0 0; }
.center { text-align: center; }
.mt { margin-top: 10px; }
.opt { color: var(--muted); font-weight: 400; }

/* ---------- Karten */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.card.tight { padding: 4px 10px; }
.card.empty { color: var(--muted); text-align: center; padding: 20px 14px; }
.scroll-x { overflow-x: auto; }

/* ---------- Kopfbereich */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #1b2433 0%, #121722 70%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 16px 14px 20px;
}
.hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.hero.slim { padding-bottom: 16px; }
.hero h1 { font-size: 1.55rem; margin-top: 2px; letter-spacing: .01em; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.level { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.xp-total { margin: 14px 0 34px; color: var(--muted); font-size: .9rem; }
.xp-total strong { font-size: 2.1rem; color: var(--text); font-weight: 800; letter-spacing: -.02em; }
.next { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: .75rem; font-weight: 700; white-space: nowrap; color: var(--muted);
}
.badge.s1 { color: var(--s1); border-color: var(--s1); }
.badge.s2 { color: var(--s2); border-color: var(--s2); }
.badge.s3 { color: var(--s3); border-color: var(--s3); background: rgba(230, 180, 58, .12); }
.badge.sm { padding: 2px 8px; min-width: 38px; justify-content: center; }

/* ---------- XP-Leiste */
.xpbar { display: flex; height: 20px; border: 1px solid var(--line-2); border-radius: 5px; background: #0b0f17; position: relative; }
.xpbar.is-empty { opacity: .4; }
.seg { flex: 1; position: relative; border-right: 1px solid #222a39; }
.seg:last-child { border-right: 0; }
.seg.on { background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.seg.mark::after {
  content: ""; position: absolute; right: -2px; top: -7px; bottom: -6px; width: 3px;
  border-radius: 2px; background: var(--mc); z-index: 1;
}
.seg.mark::before {
  content: attr(data-label); position: absolute; right: 0; bottom: calc(100% + 9px);
  transform: translateX(50%); font-size: .68rem; font-weight: 800; color: var(--mc); white-space: nowrap;
}
.seg.mark-1 { --mc: var(--s1); }
.seg.mark-2 { --mc: var(--s2); }
.seg.mark-3 { --mc: var(--s3); }
.seg.mark-3::before { transform: none; }
.seg.mark-3::after { right: -1px; }

/* ---------- Tage */
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 12px; }
.day {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 8px 0 6px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line);
  color: var(--text); text-decoration: none;
}
.day b { font-size: .9rem; }
.day small { font-size: .66rem; color: var(--muted); }
.day.sel { border-color: var(--accent); background: #19263c; }
.day.today b { color: var(--accent-2); }
.day.full small { color: var(--ok); font-weight: 700; }
.day.off { opacity: .4; }

/* ---------- Quests */
.quests { display: grid; gap: 10px; }
.quest-form { margin: 0; }
.quest {
  width: 100%; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px;
  padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel);
  color: var(--text); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .08s ease, border-color .15s ease;
}
.quest:active { transform: scale(.985); }
.quest:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.quest[disabled] { cursor: default; opacity: .7; }
.quest .chk { width: 40px; height: 40px; border-radius: 11px; border: 2px solid #4a5570; display: grid; place-items: center; }
.quest .chk svg { width: 22px; height: 22px; stroke-width: 3; color: #fff; opacity: 0; }
.quest .body { min-width: 0; }
.quest .t { display: block; font-weight: 700; }
.quest .d { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.quest.done { border-color: rgba(55, 184, 106, .55); background: linear-gradient(90deg, rgba(55, 184, 106, .16), var(--panel) 65%); }
.quest.done .chk { background: var(--ok); border-color: var(--ok); }
.quest.done .chk svg { opacity: 1; }
.is-busy .quest { opacity: .6; }

.xp {
  font-weight: 800; font-size: .85rem; white-space: nowrap; color: var(--accent-2);
  background: rgba(61, 126, 224, .12); border: 1px solid rgba(61, 126, 224, .5); border-radius: 8px; padding: 4px 8px;
}
.quest.done .xp { color: var(--ok); border-color: rgba(55, 184, 106, .5); background: rgba(55, 184, 106, .12); }
.xp.gold { color: var(--s3); border-color: rgba(230, 180, 58, .55); background: rgba(230, 180, 58, .12); }

/* ---------- Listen */
.list { display: grid; gap: 8px; }
.item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line);
  font-size: .9rem; color: var(--text); text-decoration: none;
}
.item .meta { font-size: .75rem; color: var(--muted); }
.item-end { display: flex; align-items: center; gap: 6px; }
.item-end form { margin: 0; }
.iconbtn { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.iconbtn svg { width: 16px; height: 16px; }
.iconbtn:hover { color: var(--bad); border-color: var(--bad); }

/* ---------- Belohnungen */
.rewards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.reward {
  display: flex; flex-direction: column; gap: 3px; min-height: 96px;
  padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-size: .82rem;
  overflow-wrap: anywhere;
}
.reward .h { font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--rc); }
.reward .x { font-size: .7rem; color: var(--muted); }
.reward .txt { margin-top: 4px; }
.reward.r1 { --rc: var(--s1); }
.reward.r2 { --rc: var(--s2); }
.reward.r3 { --rc: var(--s3); }
.reward.got { border-color: var(--rc); box-shadow: inset 0 0 0 1px var(--rc); background: linear-gradient(180deg, rgba(255, 255, 255, .04), var(--panel)); }
.reward.got .h::after { content: " ✓"; }

/* ---------- Wochenansicht */
.weeknav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.weeknav .wk { text-align: center; }
.navbtn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.navbtn svg { width: 20px; height: 20px; }
.navbtn.off { opacity: .3; }

.grid { width: 100%; border-collapse: collapse; font-size: .82rem; }
.grid th, .grid td { padding: 9px 3px; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; }
.grid tr:last-child td { border-bottom: 0; }
.grid th:first-child, .grid td:first-child { text-align: left; padding-left: 2px; }
.grid thead th { color: var(--muted); font-size: .75rem; font-weight: 700; }
.grid thead th a { color: var(--text); text-decoration: none; }
.grid thead th.is-today a, .grid thead th.is-today { color: var(--accent-2); }
.grid .qt { display: block; font-weight: 600; line-height: 1.25; }
.grid .qx { display: block; font-size: .7rem; color: var(--muted); }
.grid .sum td { color: var(--muted); font-size: .75rem; font-weight: 700; }
.c { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; }
.c.done { background: var(--ok); }
.c.done svg { width: 15px; height: 15px; stroke-width: 3.2; color: #fff; }
.c.open { border: 2px solid #4a5570; }
.c.open.missed { border-color: rgba(227, 93, 80, .55); }
.c.na { color: #3a4459; }
.tag { display: block; width: max-content; margin: 2px auto 0; font-size: .58rem; padding: 0 4px; border-radius: 4px; background: var(--panel-2); color: var(--muted); font-weight: 600; }
.tag.ferien { color: var(--accent-2); }

/* ---------- Ausklappbare Bereiche */
details.fold { padding: 0; }
details.fold > summary { list-style: none; cursor: pointer; padding: 13px 14px; font-weight: 700; position: relative; padding-right: 38px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.2rem; font-weight: 400; }
details.fold[open] > summary::after { content: "–"; }
details.fold > *:not(summary) { padding: 0 14px 14px; }
details.fold > form { padding-top: 0; }
details.fold + details.fold { margin-top: 10px; }
.quest-edit summary { display: flex; flex-direction: column; gap: 2px; }
.qs-title { font-weight: 700; }
.qs-meta { font-size: .75rem; color: var(--muted); font-weight: 400; }
.quest-edit.inactive .qs-title { color: var(--muted); text-decoration: line-through; }
details.new > summary { color: var(--accent-2); }

/* ---------- Formulare */
label { display: block; font-size: .8rem; color: var(--muted); margin: 12px 0 5px; }
input[type=text], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line-2);
  background: #0c1018; color: var(--text); font: inherit; font-size: 16px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
textarea { min-height: 76px; resize: vertical; }
textarea[readonly] { opacity: .7; }
input.stack + input.stack { margin-top: 8px; }
label.check { display: flex; align-items: center; gap: 9px; color: var(--text); font-size: .9rem; }
label.check input { width: 18px; height: 18px; accent-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 12px 0 0; }
legend { font-size: .8rem; color: var(--muted); padding: 0; margin-bottom: 6px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }
.row.three .unit { display: block; font-size: .7rem; color: var(--muted); margin-top: 4px; text-align: center; }
.actions { margin-top: 14px; display: flex; gap: 8px; }
form.actions { margin-top: 14px; }
.wrap-btns { flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 16px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent);
  color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn.ghost { background: transparent; color: var(--accent-2); }
.btn.small { padding: 7px 12px; font-size: .85rem; }
.btn.block { width: 100%; }

.wdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.wdays label { margin: 0; }
.wdays input { position: absolute; opacity: 0; pointer-events: none; }
.wdays span { display: block; text-align: center; padding: 8px 0; border-radius: 9px; border: 1px solid var(--line-2); color: var(--muted); font-weight: 700; font-size: .8rem; }
.wdays input:checked + span { background: rgba(61, 126, 224, .2); border-color: var(--accent); color: var(--text); }
.wdays input:focus-visible + span { outline: 2px solid var(--accent-2); }
.seg-choice { display: grid; gap: 4px; }
.seg-choice label { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text); font-size: .9rem; }

.daytypes { display: grid; gap: 8px; }
.dt-row { display: grid; grid-template-columns: 68px 110px 1fr; gap: 6px; align-items: center; }
.dt-row .dt-day { font-size: .82rem; font-weight: 700; }
.dt-row .dt-day .auto { display: block; font-size: .62rem; font-weight: 600; color: var(--accent-2); text-transform: uppercase; letter-spacing: .05em; }
.small-text { font-size: .88rem; margin: 0; }
.dt-row select, .dt-row input { padding: 8px; }

.chips { display: flex; gap: 6px; overflow-x: auto; margin-top: 12px; padding-bottom: 2px; }
.chips a { flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; font-size: .82rem; }

/* ---------- Verlauf */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.stat .k { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.stat b { font-size: 1.7rem; line-height: 1.1; }
.stat .s { font-size: .72rem; color: var(--muted); }
.levelbar { margin-top: 10px; display: grid; gap: 4px; font-size: .75rem; color: var(--muted); }
progress { appearance: none; -webkit-appearance: none; width: 100%; height: 8px; border: 0; border-radius: 5px; background: #0b0f17; overflow: hidden; }
progress::-webkit-progress-bar { background: #0b0f17; border-radius: 5px; }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 5px; }
progress::-moz-progress-bar { background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 5px; }
.item.week { display: grid; grid-template-columns: 1fr 70px auto auto; gap: 10px; }
.item.week .wl { display: flex; flex-direction: column; min-width: 0; }
.item.week .wx { font-weight: 800; font-size: .9rem; text-align: right; min-width: 52px; }
.item.week .wx small { color: var(--muted); font-weight: 400; }

/* ---------- Regeln */
.rules { list-style: none; counter-reset: r; padding: 0; margin: 0; display: grid; gap: 10px; }
.rules li { counter-increment: r; position: relative; padding: 12px 12px 12px 50px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; font-size: .92rem; }
.rules li::before { content: counter(r); position: absolute; left: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.open-val { color: var(--muted); border-bottom: 1px dashed var(--line-2); font-style: italic; }
.ideas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.idea { border-radius: 12px; border: 1px solid var(--ic); background: var(--panel); overflow: hidden; }
.idea .ih { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 7px 10px; background: var(--ic); color: #fff; font-size: .82rem; }
.idea .ih span { font-size: .7rem; opacity: .85; }
.idea svg { display: block; width: 100%; height: auto; padding: 6px 6px 0; }
.idea p { margin: 4px 10px 10px; font-size: .8rem; text-align: center; }
.idea.lie { --ic: #b8473d; }
.idea.truth { --ic: #2f8f53; }
.quote { font-style: italic; color: var(--muted); font-size: .85rem; margin: 10px 0 0; }
.ruleblock { margin-top: 12px; border-left: 4px solid var(--accent); }
.ruleblock.dark { border-left-color: var(--s2); }
.ruleblock p, .ruleblock ul { margin: 0; font-size: .92rem; }
.ruleblock ul { padding-left: 18px; display: grid; gap: 6px; }
.codeword { margin-top: 10px !important; }
.logout { margin-top: 28px; text-align: center; }

/* ---------- Anmeldung */
.brand { text-align: center; margin: 28px 0 18px; }
.brand img { display: block; margin: 0 auto 10px; }
.brand h1 { font-size: 1.6rem; }
.who { display: grid; gap: 8px; }
.who-opt { margin: 0; }
.who-opt input { position: absolute; opacity: 0; pointer-events: none; }
.who-opt span { display: flex; justify-content: space-between; align-items: center; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--text); font-size: 1rem; }
.who-opt small { color: var(--muted); font-size: .75rem; }
.who-opt input:checked + span { border-color: var(--accent); background: rgba(61, 126, 224, .15); }
.who-opt input:focus-visible + span { outline: 2px solid var(--accent-2); }

/* ---------- Hinweise */
.flash { padding: 11px 14px; border-radius: 12px; margin-bottom: 12px; font-weight: 600; font-size: .9rem; transition: opacity .5s ease; }
.flash-ok { background: rgba(55, 184, 106, .14); border: 1px solid rgba(55, 184, 106, .5); }
.flash-error { background: rgba(227, 93, 80, .14); border: 1px solid rgba(227, 93, 80, .55); }
.flash-level { background: rgba(230, 180, 58, .14); border: 1px solid var(--s3); color: #f5d98f; }
.flash.fade { opacity: 0; }

/* ---------- Navigation unten */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: center;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: rgba(14, 18, 26, .96); border-top: 1px solid var(--line);
}
.tabbar a { flex: 1; max-width: 112px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; color: var(--muted); text-decoration: none; font-size: .68rem; border-radius: 10px; }
.tabbar a svg { width: 23px; height: 23px; }
.tabbar a.on { color: var(--text); }
.tabbar a.on svg { color: var(--accent-2); }

@media (max-width: 360px) {
  .wrap { padding-left: 12px; padding-right: 12px; }
  .ideas { grid-template-columns: 1fr; }
  .dt-row { grid-template-columns: 60px 1fr; }
  .dt-row input { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .quest, .flash { transition: none; }
}

/* ---------- Schule: Fächer, Stundenplan, Hausaufgaben, Arbeiten */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: color-mix(in srgb, var(--c, var(--accent)) 18%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 55%, transparent); }
.chip.ex { font-weight: 500; }
.chip.ex b { font-weight: 800; }
.tomorrow, .examstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.tomorrow .tl { font-size: .8rem; color: var(--muted); font-weight: 700; margin-right: 2px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--accent)); margin-right: 6px; vertical-align: 1px; }
.count { font-weight: 800; font-size: .85rem; white-space: nowrap; color: var(--accent-2); }
.count.muted { color: var(--muted); font-weight: 600; }

.quest.hw { display: block; padding: 0; cursor: default; }
.quest.hw .hw-head { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 14px; }
.hw-list { border-top: 1px solid var(--line); padding: 6px 10px 10px 14px; display: grid; gap: 4px; }
.hw-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 6px; margin: 0; }
.hw-name { font-size: .9rem; font-weight: 600; display: flex; align-items: center; gap: 8px; min-width: 0; }
.hw-name i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.hw-btn { font: inherit; font-size: .74rem; font-weight: 700; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; }
.hw-btn.on { color: var(--text); border-color: var(--line-2); background: var(--panel-2); }
.hw-btn.on.ok { color: #fff; background: var(--ok); border-color: var(--ok); }
.hw-btn[disabled] { opacity: .6; cursor: default; }

.tt { width: 100%; border-collapse: collapse; font-size: .82rem; }
.tt th, .tt td { padding: 5px 3px; text-align: center; border-bottom: 1px solid var(--line); }
.tt thead th { color: var(--muted); font-size: .75rem; }
.tt tbody th { color: var(--muted); font-weight: 700; width: 24px; }
.tt .is-today { background: rgba(61, 126, 224, .08); }
.tt thead th.is-today { color: var(--accent-2); }
.tt-cell { display: inline-block; min-width: 36px; padding: 6px 4px; border-radius: 7px; font-weight: 800; background: color-mix(in srgb, var(--c) 22%, transparent); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); }
.tt.edit select { padding: 7px 2px; font-size: .8rem; text-align: center; min-width: 52px; }
.tt.edit th, .tt.edit td { padding: 3px 2px; }
.card.tight-top { margin-top: 10px; }
.chips a.on { border-color: var(--accent); background: rgba(61, 126, 224, .15); }
details.item.exam { display: block; padding: 0; }
details.item.exam > summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 36px 10px 12px; font-weight: 400; }
details.item.exam > summary > span:first-child { display: flex; flex-direction: column; }
details.item.exam > *:not(summary) { padding: 0 12px 12px; }

/* Fachfarben als Klassen (CSP erlaubt keine Inline-Styles) */
.c0 { --c: #e35d50; }
.c1 { --c: #f08c4a; }
.c2 { --c: #e6b43a; }
.c3 { --c: #8bc34a; }
.c4 { --c: #37b86a; }
.c5 { --c: #4dd0a1; }
.c6 { --c: #26a6b8; }
.c7 { --c: #3d7ee0; }
.c8 { --c: #5c6bc0; }
.c9 { --c: #9c7bd6; }
.c10 { --c: #e07bb0; }
.c11 { --c: #c97f45; }
.c12 { --c: #a0a8b8; }
details.card.fold summary .qs-title + .qs-meta { display: block; margin-top: 2px; }
