/* Lernpfad & Begriffsseiten — Komponenten-Stylesheet (ergänzt style.css, berührt sie nicht). */

/* Standort-Box */
.standort { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1rem 1.3rem; margin: 0 0 2rem; }
.standort .punkte { display: flex; gap: 0.45rem; }
.standort .punkt { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--gold);
  background: transparent; cursor: pointer; }
.standort .punkt.done { background: var(--gold); }
.standort .punkt.hier { box-shadow: 0 0 0 3px rgba(194, 146, 47, 0.3); }
.standort .text strong { font-family: var(--serif); }
.standort .reset { margin-left: auto; font-size: 0.78rem; color: var(--muted); cursor: pointer; }

/* Stufen (Akkordeon) */
.stufe-e { margin: 0 0 1.4rem; padding: 1.1rem 1.4rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  scroll-margin-top: 1rem; }
.stufe-e.ist-hier { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(194,146,47,0.25), var(--shadow-sm); }
.stufe-e.ist-done { opacity: 0.82; }
.stufe-e > header { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; cursor: pointer; }
.stufe-e > header .pfeil { font-size: 0.8rem; color: var(--muted); transition: transform 0.15s ease; }
.stufe-e.ist-offen > header .pfeil { transform: rotate(90deg); }
.stufe-e .koerper { display: none; }
.stufe-e.ist-offen .koerper { display: block; }
.stufe-e .vorschau { margin: 0.3rem 0 0; font-size: 0.84rem; color: var(--muted); }
.stufe-e.ist-offen .vorschau { display: none; }
.stufe-e h2 { margin: 0; font-size: 1.3rem; }
.stufe-e .status { font-size: 0.78rem; color: var(--muted); }
.stufe-e .status .ok { color: #2f6b5e; font-weight: 600; }
.stufe-e .beschreibung { margin: 0.3rem 0 0.9rem; color: var(--ink-soft); max-width: 720px; }

h3.gruppe { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-family: var(--sans); margin: 1.3rem 0 0.55rem; }

/* Kern-Karten mit Verstanden-Haken */
.kernkarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.7rem; margin-bottom: 0.5rem; }
.kernkarte { display: flex; align-items: flex-start; gap: 0.6rem; background: #fff;
  border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px;
  padding: 0.65rem 0.8rem; cursor: pointer; }
.kernkarte:hover { border-color: var(--accent); }
.kernkarte .haken { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--gold); background: transparent; cursor: pointer; font-size: 13px;
  line-height: 18px; text-align: center; color: transparent; padding: 0; }
.kernkarte.done .haken { background: var(--gold); color: #fff; }
.kernkarte.done .titelzeile { text-decoration: line-through; text-decoration-thickness: 1px; opacity: 0.7; }
.kernkarte .titelzeile { font-weight: 600; font-size: 0.95rem; }
.kernkarte .sub { display: block; font-size: 0.78rem; color: var(--muted); }

/* Chips */
.wl-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.wl-chip { display: inline-flex; align-items: baseline; gap: 0.4rem; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.28rem 0.75rem; font-size: 0.88rem;
  border-left: 4px solid var(--chip-farbe, var(--line)); }
.wl-chip:hover { border-color: var(--accent); }
.wl-chip .de { color: var(--muted); font-size: 0.8em; }
.wl-chip.quelle { border-radius: 6px; font-variant: small-caps; }

details.vertiefung { margin-top: 0.9rem; }
details.vertiefung summary { cursor: pointer; font-size: 0.85rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; }
details.vertiefung[open] summary { margin-bottom: 0.6rem; }

.wl-quellenliste { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.wl-quellenliste li { padding: 0.4rem 0.2rem; border-bottom: 1px dashed var(--line); cursor: pointer; font-size: 0.88rem; }
.wl-quellenliste li:hover { background: rgba(196, 104, 45, 0.06); }
.wl-quellenliste .sigle { color: var(--muted); font-size: 0.78em; margin-left: 0.45rem; white-space: nowrap; }

/* Studientext-Karten */
.textkarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 0.9rem; margin-bottom: 0.4rem; }
.textkarte { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.9rem 1rem; box-shadow: var(--shadow-sm); cursor: pointer; }
.textkarte h4 { margin: 0 0 0.25rem; font-family: var(--serif); font-size: 1.02rem; }
.textkarte p { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.textkarte .thema { font-size: 0.74rem; color: var(--muted); display: block; margin-bottom: 0.3rem; }

/* Detail-Panel */
.wl-pfad-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 92vw); z-index: 80;
  background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: -12px 0 40px rgba(60,45,20,0.14);
  transform: translateX(105%); transition: transform 0.22s ease;
  display: flex; flex-direction: column; }
.wl-pfad-panel.is-open { transform: translateX(0); }
.wl-pfad-panel .panel-head { padding: 1.1rem 1.3rem 0.8rem; border-bottom: 1px solid var(--line); position: relative; }
.wl-pfad-panel .typ { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: #fff;
  display: inline-block; padding: 0.12rem 0.55rem; border-radius: 999px; background: var(--panel-farbe, var(--accent)); }
.wl-pfad-panel h2 { margin: 0.5rem 0 0.1rem; font-size: 1.3rem; }
.wl-pfad-panel .sub { color: var(--muted); font-size: 0.88rem; }
.wl-pfad-panel .panel-close { position: absolute; top: 0.8rem; right: 0.9rem; border: 0; background: transparent;
  font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); }
.wl-pfad-panel .panel-body { padding: 1rem 1.3rem 2rem; overflow-y: auto; font-size: 0.93rem; }
.wl-pfad-panel .panel-body h4 { margin: 1.2rem 0 0.4rem; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--muted); font-family: var(--sans); }
.wl-pfad-panel .lesen { display: inline-block; margin-top: 0.6rem; padding: 0.45rem 0.95rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 0.88rem; }
.wl-pfad-panel .lesen:hover { background: var(--accent-deep); text-decoration: none; }
.wl-pfad-panel .kantenliste { list-style: none; margin: 0; padding: 0; }
.wl-pfad-panel .kantenliste li { padding: 0.35rem 0; border-bottom: 1px dashed var(--line); }
.wl-pfad-panel .kantenliste .ktyp { font-size: 0.75rem; color: var(--muted); margin-right: 0.4rem; }
.wl-pfad-panel .kantenliste a { cursor: pointer; }

/* Begriffsseite */
.b-kopf { margin: 0.4rem 0 1.4rem; }
.b-kopf h1 { margin: 0 0 0.1rem; }
.b-kopf .pali { font-size: 1.15rem; color: var(--muted); font-style: italic; }
.badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.8rem 0 0; }
.badge { font-size: 0.76rem; padding: 0.22rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); }
.badge.rang-kern { background: var(--gold); color: #fff; border-color: var(--gold); }
.badge.rang-aufbau { border-color: var(--gold); color: #8a6716; }
.badge.bereich { border-left: 5px solid var(--badge-farbe, var(--line)); }
.b-erkl { font-size: 1.06rem; max-width: 700px; }
.b-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 1.6rem; }
@media (max-width: 800px) { .b-spalten { grid-template-columns: 1fr; } }
.b-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1rem 1.2rem; }
.b-box h2 { margin: 0 0 0.6rem; font-size: 1.02rem; }
.b-box ul { list-style: none; margin: 0; padding: 0; }
.b-box li { padding: 0.42rem 0.1rem; border-bottom: 1px dashed var(--line); font-size: 0.9rem; }
.b-box li:last-child { border-bottom: 0; }
.b-box .ktyp { font-size: 0.74rem; color: var(--muted); margin-right: 0.4rem; }
.b-box a { cursor: pointer; }
.b-weg { margin-top: 1.4rem; padding: 0.9rem 1.2rem; background: var(--gold-soft);
  border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.95rem; }
.b-suchzeile { margin: 0.4rem 0 1.4rem; }
.b-suchzeile input { padding: 0.5rem 0.8rem; border: 1px solid var(--line); border-radius: 8px;
  font: 0.92rem var(--sans); background: #fff; width: min(420px, 100%); }
.b-index { columns: 3 240px; column-gap: 2rem; }
.b-index li { break-inside: avoid; padding: 0.3rem 0; list-style: none; }
.b-index .de { color: var(--muted); font-size: 0.82em; margin-left: 0.4rem; }
