/* Wissenslandschaft — ENTWURF: gemeinsames Stylesheet der vier Prototyp-Seiten. */
:root {
  --bg: #fbf3e7;
  --surface: #fffaf2;
  --ink: #2c2017;
  --ink-soft: #5f4a3b;
  --muted: #927c66;
  --line: #ecdcc5;
  --accent: #c4682d;
  --accent-deep: #9a3526;
  --gold: #c2922f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60,45,20,.04), 0 10px 30px rgba(60,45,20,.06);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg);
  line-height: 1.6; font-size: 16px;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.4rem 4rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }

/* Kopfzeile aller Entwurfs-Seiten */
.e-head { padding: 1.6rem 0 0.4rem; border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; }
.e-head h1 { margin: 0.2rem 0 0.3rem; font-size: 1.9rem; }
.e-head p { margin: 0 0 1rem; color: var(--ink-soft); max-width: 760px; }
.e-crumb { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.e-crumb a { color: var(--muted); }
.e-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.8rem 0 1rem; }
.e-nav a {
  font-size: 0.82rem; padding: 0.3rem 0.75rem; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); color: var(--ink-soft);
}
.e-nav a.is-here { background: var(--ink); color: #fdf6e9; border-color: var(--ink); }
.e-nav a:hover { text-decoration: none; border-color: var(--accent); }

/* Karten & Chips */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; box-shadow: var(--shadow); cursor: pointer;
  border-top: 4px solid var(--card-farbe, var(--accent));
}
.card h3 { margin: 0 0 0.3rem; font-size: 1.08rem; }
.card p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }
.card .count { display: block; margin-top: 0.55rem; font-size: 0.78rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  display: inline-flex; align-items: baseline; gap: 0.4rem; cursor: pointer;
  background: var(--surface); 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));
}
.chip:hover { border-color: var(--accent); }
.chip .de { color: var(--muted); font-size: 0.8em; }
.chip.quelle { border-radius: 6px; font-variant: small-caps; }

/* Detail-Panel (rechts einschwebend) */
.panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 92vw); z-index: 50;
  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;
}
.panel.is-open { transform: translateX(0); }
.panel-head { padding: 1.1rem 1.3rem 0.8rem; border-bottom: 1px solid var(--line); }
.panel-head .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)); }
.panel-head h2 { margin: 0.5rem 0 0.1rem; font-size: 1.3rem; }
.panel-head .sub { color: var(--muted); font-size: 0.88rem; }
.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);
}
.panel-body { padding: 1rem 1.3rem 2rem; overflow-y: auto; font-size: 0.93rem; }
.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); }
.panel-body .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;
}
.panel-body .lesen:hover { background: var(--accent-deep); text-decoration: none; }
.kantenliste { list-style: none; margin: 0; padding: 0; }
.kantenliste li { padding: 0.35rem 0; border-bottom: 1px dashed var(--line); }
.kantenliste .ktyp { font-size: 0.75rem; color: var(--muted); margin-right: 0.4rem; }
.kantenliste a { cursor: pointer; }
.kantenliste .raten { opacity: 0.65; }

/* Abschnitt-Layout (Entwurf A & B) */
.abschnitt { margin: 2.6rem 0; scroll-margin-top: 1rem; }
.abschnitt > h2 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.45rem; margin-bottom: 0.2rem; }
.abschnitt > h2 .dot { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; }
.abschnitt > .beschreibung { margin: 0 0 1.1rem; color: var(--ink-soft); max-width: 720px; }
.abschnitt 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; }
.textkarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 0.9rem; margin-bottom: 0.4rem; }
.textkarte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.9rem 1rem; box-shadow: var(--shadow); 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; }

/* Weg (Entwurf B) */
.weg { position: relative; margin: 2rem 0 0; padding-left: 2.1rem; }
.weg::before { content: ''; position: absolute; left: 9px; top: 8px; bottom: 8px;
  width: 3px; background: linear-gradient(var(--accent), var(--gold)); border-radius: 2px; }
.stufe { position: relative; margin-bottom: 2.4rem; }
.stufe::before { content: ''; position: absolute; left: -2.1rem; top: 6px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--bg); border: 4px solid var(--accent); }
.stufe:last-child::before { background: var(--gold); border-color: var(--gold); }
.stufe h2 { margin: 0 0 0.25rem; font-size: 1.3rem; }
.stufe .text { margin: 0 0 0.8rem; color: var(--ink-soft); max-width: 700px; }

/* SVG-Bühnen (Entwurf C & D) */
.stage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; }
.stage svg { display: block; width: 100%; height: auto; user-select: none; }
.stage-hint { font-size: 0.8rem; color: var(--muted); margin: 0.5rem 0 0; }
.svg-label { font-family: Inter, system-ui, sans-serif; fill: #2c2017; pointer-events: none; }
.svg-edgelabel { font-family: Inter, system-ui, sans-serif; fill: #927c66; pointer-events: none; }
.node-g { cursor: pointer; }
.node-g:hover circle, .node-g:hover rect { stroke: var(--ink); stroke-width: 2.5; }

footer.e-foot { margin-top: 3.5rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-size: 0.8rem; color: var(--muted); }
