/* ============================================================
   Studienplaner – Game-UI (dunkles Quest-Log, Gold-Akzente)
   ============================================================ */

@font-face { font-family: "Cinzel"; src: url("fonts/cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("fonts/rajdhani-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("fonts/rajdhani-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b0e14;
  --bg2: #111622;
  --panel: #151b27;
  --panel2: #1b2232;
  --line: #2b3448;
  --line2: #3a4560;
  --text: #e7e2d4;
  --muted: #8f97aa;
  --gold: #e8b64c;
  --gold2: #b8862a;
  --gold-glow: rgba(232, 182, 76, .35);
  --teal: #46d1c4;
  --teal-glow: rgba(70, 209, 196, .3);
  --violet: #a78bfa;
  --red: #f0806e;
  --green: #74d68a;
  --radius: 6px;
  --head: "Cinzel", Georgia, serif;
  --ui: "Rajdhani", "Segoe UI", system-ui, sans-serif;

  /* alte Namen, die einige Seiten noch nutzen */
  --accent: var(--teal);
  --accent-ink: #061413;
  --card: var(--panel);
  --badge: #222a3b;
  --overdue: var(--red);
  --ok: var(--green);
  --warm: var(--gold);
  --alert-bg: #2a2214;
  --alert-line: var(--gold2);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(70, 209, 196, .08), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(232, 182, 76, .07), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg) 40%);
  background-color: var(--bg);
  background-attachment: fixed;
  font: 500 16px/1.45 var(--ui);
  letter-spacing: .01em;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: .04em; color: var(--gold); }
h1 { font-size: 1.6rem; margin: 1.2rem 0 1rem; text-shadow: 0 0 18px var(--gold-glow); }
h2 { font-size: 1.05rem; margin: 0 0 .8rem; text-transform: uppercase; letter-spacing: .12em; }
h3 { font-size: .9rem; margin: 1rem 0 .4rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.count { font-family: var(--ui); color: var(--muted); font-size: .85em; letter-spacing: 0; }
code { background: #0e131d; border: 1px solid var(--line); padding: .05rem .35rem; border-radius: 4px; font-size: .9em; }

/* ---------- Kopfzeile / HUD ---------- */
.top {
  background: linear-gradient(180deg, rgba(21, 27, 39, .95), rgba(15, 20, 30, .95));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(232, 182, 76, .15), 0 8px 30px rgba(0, 0, 0, .35);
  position: sticky; top: 0; z-index: 10;
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; flex-wrap: wrap; padding-top: .55rem; padding-bottom: .55rem; }
.brand { font-family: var(--head); font-weight: 800; color: var(--gold); letter-spacing: .08em; text-shadow: 0 0 12px var(--gold-glow); }
.brand:hover { text-decoration: none; }
nav { display: flex; gap: .15rem; flex-wrap: wrap; align-items: center; }
nav a { color: var(--muted); padding: .3rem .65rem; border-radius: 4px; text-transform: uppercase; font-size: .85rem; letter-spacing: .08em; font-weight: 700; }
nav a:hover { color: var(--text); text-decoration: none; background: rgba(255, 255, 255, .04); }
nav a.active { color: var(--gold); background: rgba(232, 182, 76, .08); box-shadow: inset 0 -2px 0 var(--gold); }
.foot { color: var(--muted); font-size: .8rem; padding-top: 2rem; padding-bottom: 2rem; text-align: center; letter-spacing: .1em; text-transform: uppercase; }

/* XP-Anzeige */
.xp { display: flex; align-items: center; gap: .6rem; min-width: 0; flex: 0 1 200px; }
.xp-level { font-family: var(--head); font-weight: 800; color: var(--bg); background: linear-gradient(180deg, var(--gold), var(--gold2)); border-radius: 50%; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; box-shadow: 0 0 12px var(--gold-glow); font-size: .95rem; }
.xp-info { flex: 1; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.xp-bar { height: 6px; background: #0b0f17; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; margin-top: 3px; }
.xp-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--teal)); box-shadow: 0 0 8px var(--teal-glow); }

/* ---------- Panels ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 6px 24px rgba(0, 0, 0, .3);
}
.card::before { /* goldene Ecke oben links */
  content: ""; position: absolute; top: -1px; left: -1px; width: 14px; height: 14px;
  border-top: 2px solid var(--gold2); border-left: 2px solid var(--gold2); border-top-left-radius: var(--radius);
}
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.card-head h1, .card-head h2 { margin-bottom: .6rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.grid .card { margin-bottom: 0; }
.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }
.stack > * + * { margin-top: 1rem; }
@media (max-width: 880px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .span2, .span3 { grid-column: auto; }
}

/* ---------- HUD-Kästen (Countdowns) ---------- */
.countdowns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 1rem; margin: 1.2rem 0 1rem; }
.cd { margin: 0; text-align: center; }
.cd-label { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; }
.cd-num { font-family: var(--head); font-size: 2.1rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; text-shadow: 0 0 16px rgba(70, 209, 196, .25); }
.cd-num small { font-family: var(--ui); font-size: .85rem; font-weight: 700; color: var(--teal); letter-spacing: .1em; text-transform: uppercase; }
.cd-sub { font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }

.quicklinks { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }

/* ---------- Hinweise ---------- */
.alert { background: var(--alert-bg); border: 1px solid var(--alert-line); border-radius: var(--radius); padding: .8rem 1rem; margin: 1rem 0; }
.flash { border-radius: var(--radius); padding: .6rem .9rem; margin: 1rem 0; border: 1px solid var(--line2); background: var(--panel); }
.flash-ok { border-color: var(--teal); box-shadow: 0 0 14px var(--teal-glow); }
.flash-err { border-color: var(--red); color: var(--red); }
.flash-warn { border-color: var(--gold2); background: var(--alert-bg); }
.flash-quest { border-color: var(--gold); background: linear-gradient(90deg, rgba(232, 182, 76, .18), transparent); color: var(--gold); font-family: var(--head); font-weight: 700; letter-spacing: .06em; box-shadow: 0 0 22px var(--gold-glow); animation: pop .6s ease-out; }
@keyframes pop { 0% { transform: scale(.96); opacity: 0; } 60% { transform: scale(1.01); opacity: 1; } 100% { transform: none; } }
.warn-text { color: var(--gold); font-weight: 700; }
.ok-text { color: var(--green); font-weight: 700; }

/* ---------- Buttons & Formulare ---------- */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none; line-height: 1.2;
  font: 700 .9rem var(--ui); text-transform: uppercase; letter-spacing: .1em;
  color: #1a1206; background: linear-gradient(180deg, #f3cd73, var(--gold) 45%, var(--gold2));
  border: 1px solid #f6d68a; border-radius: 4px; padding: .5rem 1rem;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 4px 14px rgba(232, 182, 76, .2);
}
.btn:hover { text-decoration: none; filter: brightness(1.08); box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 0 18px var(--gold-glow); }
.btn.ghost { background: transparent; color: var(--gold); border-color: var(--gold2); box-shadow: none; }
.btn.ghost:hover { background: rgba(232, 182, 76, .08); }
.btn.small { padding: .28rem .6rem; font-size: .78rem; }
.btn.danger { background: transparent; border-color: var(--red); color: var(--red); box-shadow: none; }
.btn.waypoint { color: #04201d; background: linear-gradient(180deg, #7eeadf, var(--teal) 45%, #2a9c92); border-color: #9ff3ea; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 0 18px var(--teal-glow); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.linklike { background: none; border: 0; color: var(--muted); cursor: pointer; font: 700 .85rem var(--ui); text-transform: uppercase; letter-spacing: .08em; padding: .3rem .6rem; }
.linklike:hover { color: var(--text); }
form.inline { display: inline; margin: 0; }
input, select, textarea {
  font: 500 1rem var(--ui); color: var(--text); background: #0d121c;
  border: 1px solid var(--line); border-radius: 4px; padding: .5rem .65rem; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-glow); }
input[type=checkbox] { width: auto; accent-color: var(--gold); }
input[type=file] { padding: .4rem; }
label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.check-label { flex-direction: row; align-items: center; gap: .45rem; color: var(--text); text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .95rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: .5rem 0; }
.form-grid .actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: end; }
@media (max-width: 600px) { .form-grid { grid-template-columns: minmax(0, 1fr); } .form-grid .span2 { grid-column: auto; } }
.row-form { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.row-form input[name=text], .row-form input[name=pw] { flex: 1 1 220px; }
.row-form input[type=date] { width: auto; flex: 0 0 auto; }
.login { max-width: 400px; margin: 3rem auto; }
.login form { display: grid; gap: .8rem; }
.setup { max-width: 480px; }
.setup h2 { margin-top: 1.2rem; }
.setup form { display: grid; gap: .8rem; }
fieldset.types { border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-wrap: wrap; gap: .4rem 1rem; padding: .5rem .8rem; }
.types legend { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }

/* ---------- Badges ---------- */
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: .08rem .5rem; border-radius: 3px; background: var(--badge); color: var(--muted); white-space: nowrap; text-transform: uppercase; letter-spacing: .08em; border: 1px solid var(--line); }
.badge.verify { color: var(--gold); border-color: var(--gold2); }
.badge.t-klausur { color: var(--red); }
.badge.t-anmeldung { color: var(--teal); }
.badge.t-ea { color: var(--violet); }
.badge.st-belegt { color: var(--green); border-color: #2f5b3b; }
.badge.st-geplant { color: var(--gold); border-color: var(--gold2); }

/* ---------- Quest: aktive Hauptquest ---------- */
.quest-main {
  border: 1px solid var(--gold2);
  background:
    radial-gradient(500px 200px at 0% 0%, rgba(232, 182, 76, .12), transparent 70%),
    linear-gradient(180deg, #1d2232, #141a26);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 0 30px rgba(232, 182, 76, .12), inset 0 1px 0 rgba(255, 255, 255, .04);
  padding: 1.3rem 1.4rem;
}
.quest-main::before, .quest-main::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 0; }
.quest-main::before { top: -1px; left: -1px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.quest-main::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.quest-label { display: flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .2em; }
.quest-label .diamond { display: inline-block; width: .6rem; height: .6rem; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 10px var(--gold); }
.quest-title { font-family: var(--head); font-size: 1.55rem; font-weight: 800; margin: .35rem 0 .2rem; color: var(--text); letter-spacing: .02em; text-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
.quest-meta { color: var(--muted); font-size: .9rem; display: flex; gap: .9rem; flex-wrap: wrap; }
.objectives { list-style: none; margin: 1rem 0; padding: 0; }
.objectives li { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; font-size: 1.05rem; }
.objectives li.done .obj-text { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(143, 151, 170, .6); }
.obj-box {
  width: 1.05rem; height: 1.05rem; flex: 0 0 auto; transform: rotate(45deg); cursor: pointer;
  border: 2px solid var(--gold2); background: transparent; padding: 0; border-radius: 2px;
}
.obj-box:hover { border-color: var(--gold); box-shadow: 0 0 8px var(--gold-glow); }
li.done .obj-box { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 8px var(--gold-glow); }
.progress { display: flex; align-items: center; gap: .6rem; margin: .4rem 0 1rem; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.progress-bar { flex: 1; height: 8px; background: #0b0f17; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold2), var(--gold)); box-shadow: 0 0 10px var(--gold-glow); transition: width .4s; }
.quest-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.waypoint-hint { display: block; font-size: .75rem; color: var(--teal); text-transform: uppercase; letter-spacing: .12em; margin-bottom: .3rem; font-weight: 700; }
.quest-empty { text-align: center; padding: 2rem 1rem; }
.quest-empty .quest-title { color: var(--gold); }

/* ---------- Weitere Quests ---------- */
.quest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .8rem; }
.sq {
  background: linear-gradient(180deg, #1a2130, #141a25); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .8rem .9rem; display: flex; flex-direction: column; gap: .4rem;
}
.sq:hover { border-color: var(--line2); }
.sq.main { border-left: 3px solid var(--gold); }
.sq-type { font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: var(--muted); }
.sq.main .sq-type { color: var(--gold); }
.sq-title { font-weight: 700; font-size: 1.02rem; overflow-wrap: anywhere; }
.sq-meta { font-size: .82rem; color: var(--muted); }
.sq-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: auto; padding-top: .3rem; }
.mini-bar { height: 4px; background: #0b0f17; border-radius: 99px; overflow: hidden; }
.mini-bar span { display: block; height: 100%; background: var(--gold2); }

/* ---------- Trophäen ---------- */
.trophies { list-style: none; margin: 0; padding: 0; }
.trophies li { display: flex; gap: .5rem; align-items: baseline; padding: .3rem 0; border-bottom: 1px solid rgba(43, 52, 72, .6); color: var(--muted); }
.trophies li:last-child { border-bottom: 0; }
.trophies .t-icon { color: var(--gold); }
.trophy-count { font-family: var(--head); font-size: 1.8rem; font-weight: 800; color: var(--gold); text-shadow: 0 0 14px var(--gold-glow); }

/* ---------- Fristenliste ("Am Horizont") ---------- */
.dls { list-style: none; margin: 0; padding: 0; }
.dl { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: .75rem; padding: .6rem .5rem .6rem .75rem; border-left: 3px solid var(--line2); border-bottom: 1px solid rgba(43, 52, 72, .6); }
.dl:last-child { border-bottom: 0; }
.dl-day { display: block; font-weight: 700; font-size: .92rem; }
.dl-rel { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.dl-title { font-weight: 600; overflow-wrap: anywhere; }
.dl-meta { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .25rem; }
.dl-notes { font-size: .88rem; color: var(--muted); margin-top: .25rem; overflow-wrap: anywhere; }
.dl-link { font-size: .85rem; }
.dl-actions { display: flex; gap: .3rem; align-items: start; }
.u-hot { border-left-color: var(--teal); }
.u-hot .dl-rel { color: var(--teal); }
.u-warm, .u-soon, .u-later, .u-overdue { border-left-color: var(--line2); }
.u-overdue .dl-rel { color: var(--muted); }
.u-past, .u-done { opacity: .55; }
.group { color: var(--muted); }
.horizon .dl { grid-template-columns: minmax(0, 1fr) auto; }
.horizon .dl-date { grid-column: 1 / -1; display: flex; gap: .5rem; align-items: baseline; }
@media (max-width: 600px) {
  .dl { grid-template-columns: minmax(0, 1fr) auto; }
  .dl-date { grid-column: 1 / -1; display: flex; gap: .5rem; align-items: baseline; }
}

/* ---------- Module ---------- */
.mods { list-style: none; padding: 0; margin: 0 0 .5rem; }
.mods li { padding: .5rem 0; border-bottom: 1px solid rgba(43, 52, 72, .6); }
.module summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: .45rem; align-items: baseline; font-size: 1.02rem; }
.module.st-katalog summary, .module.st-abgebrochen summary { color: var(--muted); }
.module.st-belegt { border-color: #2f5b3b; }
.module.st-geplant { border-color: var(--gold2); }

/* ---------- Checkliste (Altbestand) ---------- */
.tasks { list-style: none; margin: 0; padding: 0; }
.tasks li { display: flex; align-items: center; gap: .5rem; padding: .35rem 0; border-bottom: 1px solid rgba(43, 52, 72, .6); }
.tasks .t-text { flex: 1; overflow-wrap: anywhere; }
.tasks .t-due { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.tasks li.done .t-text { text-decoration: line-through; color: var(--muted); }
.check { background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: var(--gold); padding: 0 .2rem; }

/* ---------- Wochenplan ---------- */
.plan { list-style: none; margin: 0; padding: 0; }
.plan li { border-bottom: 1px solid rgba(43, 52, 72, .6); padding: .55rem .4rem; }
.plan li.past { opacity: .5; }
.plan li.current { background: rgba(232, 182, 76, .07); border: 1px solid var(--gold2); border-radius: var(--radius); padding: .6rem; box-shadow: 0 0 18px rgba(232, 182, 76, .1); }
.plan summary { cursor: pointer; display: grid; grid-template-columns: 12rem 3.5rem minmax(0, 1fr); gap: .5rem; }
.plan-week { font-weight: 700; font-size: .92rem; }
.plan-hours { color: var(--teal); font-size: .92rem; font-weight: 700; }
@media (max-width: 600px) { .plan summary { grid-template-columns: 1fr auto; } .plan-focus { grid-column: 1 / -1; } }
.week-goal { font-size: 1.05rem; }

/* ---------- Tabs, Berichte, Selbsttest, Sonstiges ---------- */
.tabs { display: flex; gap: .3rem; margin: 0 0 1rem; flex-wrap: wrap; }
.tabs a { padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); text-transform: uppercase; font-size: .82rem; letter-spacing: .08em; font-weight: 700; }
.tabs a.active { color: var(--gold); border-color: var(--gold2); background: rgba(232, 182, 76, .08); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.report { list-style: none; padding: 0; margin: 0 0 .5rem; }
.report li { padding: .2rem 0; }
.checks { width: 100%; border-collapse: collapse; }
.checks td { padding: .4rem; border-bottom: 1px solid rgba(43, 52, 72, .6); vertical-align: top; }
.checks tr.ok td:first-child { color: var(--green); }
.checks tr.fail td:first-child, .checks tr.fail td:nth-child(2) { color: var(--red); font-weight: 700; }
.checks tr.unknown td:first-child { color: var(--gold); }
.log { background: #0b0f17; border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all; font-size: .88rem; }
.link-rows { display: grid; gap: .5rem; }
.link-row { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: .5rem; }
.copy-row { display: flex; gap: .5rem; align-items: start; margin: .4rem 0; }
.copy-row input, .copy-row textarea { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.steps { padding-left: 1.2rem; }
.steps li { margin-bottom: .5rem; }
details > summary { cursor: pointer; }
@media (max-width: 600px) { .link-row { grid-template-columns: minmax(0, 1fr); } .copy-row { flex-direction: column; } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Am Horizont: nur Datum + Titel, keine Notizen/Schilder */
.horizon .dl-notes, .horizon .dl-link, .horizon .badge.muted, .horizon .dl-meta { display: none; }
.more-quests > summary { list-style: none; margin-top: .8rem; color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; }
.more-quests > summary::-webkit-details-marker { display: none; }
.more-quests[open] > summary { margin-bottom: .8rem; }
main.wrap { overflow-x: clip; }
@media (max-width: 600px) { .quest-title { font-size: 1.3rem; } .cd-num { font-size: 1.8rem; } }

/* ---------- Sammlung (Inventar) ---------- */
.collection-head { display: grid; gap: .4rem; }
.coll-count { font-family: var(--head); color: var(--muted); font-size: 1.1rem; letter-spacing: .06em; }
.coll-count .big { font-size: 2.2rem; font-weight: 800; color: var(--gold); text-shadow: 0 0 16px var(--gold-glow); }
.inventory { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: .8rem; }
.slot {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem;
  padding: 1rem .7rem .8rem; border-radius: var(--radius); min-height: 210px;
}
.slot.missing { border: 2px dashed var(--line2); background: rgba(11, 15, 23, .6); }
.slot.missing .slot-title, .slot.missing .slot-desc { color: var(--muted); }
.slot.missing .slot-icon { color: #4a5470; background: #0b0f17; border: 2px solid var(--line); font-family: var(--head); font-weight: 800; }
.slot.missing.optional { opacity: .7; border-style: dotted; }
.slot.has {
  border: 1px solid var(--gold2);
  background: radial-gradient(160px 110px at 50% 22%, rgba(232, 182, 76, .2), transparent 70%), linear-gradient(180deg, #1f2638, #151b27);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 0 22px rgba(232, 182, 76, .14);
}
.slot-icon {
  width: 4.2rem; height: 4.2rem; display: grid; place-items: center; font-size: 2.2rem; border-radius: 10px;
}
.slot.has .slot-icon { background: radial-gradient(circle, rgba(232, 182, 76, .25), transparent 70%); filter: drop-shadow(0 0 10px var(--gold-glow)); animation: shine 3s ease-in-out infinite; }
@keyframes shine { 0%, 100% { filter: drop-shadow(0 0 6px var(--gold-glow)); } 50% { filter: drop-shadow(0 0 14px var(--gold-glow)); } }
.slot-title { font-weight: 700; font-size: .98rem; line-height: 1.2; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; max-width: 100%; }
.slot-desc { font-size: .8rem; color: var(--muted); }
.slot-tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 .4rem; }
.slot-file { font-size: .75rem; color: var(--teal); overflow-wrap: anywhere; max-width: 100%; }
.slot-actions { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: center; }
.slot-upload { margin-top: auto; }
.file-btn { position: relative; cursor: pointer; display: inline-block; flex-direction: row; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.slot-more { position: absolute; top: .3rem; right: .45rem; text-align: right; }
.slot-more > summary { list-style: none; color: var(--muted); font-weight: 700; padding: 0 .3rem; }
.slot-more > summary::-webkit-details-marker { display: none; }
.slot-more[open] { background: var(--panel2); border: 1px solid var(--line); border-radius: 4px; padding: .2rem; z-index: 2; }
.slot-more form { display: block; }

.share-box { width: 100%; border: 1px solid rgba(70, 209, 196, .45); border-radius: 4px; padding: .4rem; background: rgba(70, 209, 196, .06); }
.share-box .copy-row { flex-direction: column; gap: .3rem; margin: .3rem 0; }
.share-box input { font-size: .7rem; padding: .3rem; }
.share-state { font-size: .72rem; color: var(--teal); }
.share-state.muted { color: var(--muted); }
.share-form { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.share-form select { font-size: .78rem; padding: .2rem .4rem; width: auto; }
.share-form .linklike { font-size: .72rem; color: var(--teal); }

/* ---------- SVG-Icons (statt Emojis) ---------- */
.ic { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -.18em; flex: 0 0 auto; }
.ic-sm { width: .9em; height: .9em; margin-left: .25em; vertical-align: -.1em; }
.btn .ic { margin-right: .35em; }
.btn .ic.ic-sm { margin: 0 0 0 .3em; }
.dl-actions .btn .ic, .slot-actions .btn.ghost .ic { margin: 0; }
.quest-meta .ic { color: var(--gold); margin-right: .2em; }
.sq-meta .ic { color: var(--gold2); margin-right: .2em; }
.trophy-count { display: flex; align-items: center; gap: .4rem; }
.trophy-count .ic { width: 1.6rem; height: 1.6rem; }
.slot-icon .ic { width: 2.4rem; height: 2.4rem; stroke-width: 1.6; }
.slot.has .slot-icon { color: var(--gold); }
.slot.missing .slot-icon .ic { width: 1.8rem; height: 1.8rem; }
.checks td:first-child .ic { width: 1.2em; height: 1.2em; }
.dia { display: inline-block; width: .5rem; height: .5rem; background: var(--gold); transform: rotate(45deg); margin-right: .45rem; vertical-align: .1em; }
.dia.hollow { background: transparent; border: 1.5px solid var(--muted); }
.trophies .dia { margin-right: .2rem; }
.flash-quest::before { content: ""; display: inline-block; width: .55rem; height: .55rem; background: var(--gold); transform: rotate(45deg); margin-right: .6rem; box-shadow: 0 0 8px var(--gold); vertical-align: .1em; }
.more-quests > summary::before { content: ""; display: inline-block; border: 5px solid transparent; border-left-color: currentColor; margin-right: .35rem; vertical-align: .05em; transition: transform .2s; }
.more-quests[open] > summary::before { transform: rotate(90deg) translateX(2px); }
/* Bearbeiten-Stift oben rechts in der Quest-Karte, damit die Knöpfe nicht umbrechen */
.sq { position: relative; }
.sq-type { padding-right: 1.6rem; }
.sq-edit { position: absolute; top: .55rem; right: .6rem; color: var(--muted); line-height: 1; }
.sq-edit:hover { color: var(--gold); }
.sq-actions .btn { white-space: nowrap; }
