/* ==========================================================================
   WICKHUNTERS — KURSBEREICH-STARTBILDSCHIRM
   Portiert aus dateien/website/mitgliederbereich-mockup.html (Kai-final 09.08.2026).
   Alles unter .wh-kb gescopt -> kollidiert nicht mit Theme/LearnDash.
   Marken-Gold #d4b62a (wiki/fakten.md — "ein Gold ueberall").
   ========================================================================== */

/* Canvas-Body (nur wenn das Canvas-Template genutzt wird) */
body.wh-kb-body{
  margin:0;
  background:#0F0D0A;
}

.wh-kb{
  /* --- Tokens (identisch zu design-a-mentor.html, Gold auf #d4b62a) --- */
  --bg:#0F0D0A; --surface:#1A1611; --surface-2:#241E15;
  --ink:#F3ECDA; --ink-soft:#C6BB9F; --ink-faint:#8B8268;
  --accent:#d4b62a; --accent-hell:#e4c94e; --accent-soft:#b89a24; --accent-ink:#1A1305;
  --rule:#342C1E; --bull:#3C8C5C; --bear:#B5473A;
  --shadow:0 1px 2px rgba(0,0,0,.5), 0 16px 34px -16px rgba(0,0,0,.75);
  --radius:2px;

  background:var(--bg); color:var(--ink);
  font-family:'Karla',system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size:16px; line-height:1.55; -webkit-font-smoothing:antialiased;
  min-height:100vh;
}
.wh-kb *{box-sizing:border-box}
.wh-kb h1,.wh-kb h2,.wh-kb h3{font-family:'Fraunces',Georgia,serif; font-weight:600; margin:0; line-height:1.15; color:var(--ink)}
/* Ueberschriften-Farbe explizit zurueckholen.
   Grund: Das WordPress-Theme faerbt h1/h2/h3 dunkel und tut das teilweise per !important.
   Der Kursbereich hatte hier bisher GAR KEINE eigene color-Angabe, also gewann das Theme —
   auf dem dunklen Grund waren die Kartenkoepfe ("Meine Zugaenge", "1:1 Call mit Kai",
   "Dein Trading-Journal", "Neu hier?") dadurch fast unlesbar (Kai, 02.09.2026).
   Die goldene Hervorhebung .hello__name bleibt unberuehrt: sie sitzt auf dem span,
   nicht auf der Ueberschrift, und wird von einer !important-Regel auf h1 nicht geschlagen. */
.wh-kb .card .card__h h2,
.wh-kb .wrap h1,.wh-kb .wrap h2,.wh-kb .wrap h3,
.wh-kb h1,.wh-kb h2,.wh-kb h3{color:var(--ink) !important}
.wh-kb a{color:inherit}
.wh-kb .wrap{max-width:1180px; margin:0 auto; padding:0 20px}
.wh-kb em{font-style:italic}

/* ---------- Kopfleiste ---------- */
.wh-kb .top{border-bottom:1px solid var(--rule); background:rgba(15,13,10,.9); position:sticky; top:0; z-index:20; backdrop-filter:blur(8px)}
.wh-kb .top__in{display:flex; align-items:center; gap:18px; height:64px}
.wh-kb .logo{display:flex; align-items:center; gap:10px; font-family:'Fraunces',Georgia,serif; font-weight:700; letter-spacing:.02em; text-decoration:none}
.wh-kb .logo__mark{width:32px; height:32px; border-radius:50%; background:transparent;
  display:grid; place-items:center; flex:none; overflow:hidden}
.wh-kb .logo__mark img{width:100%; height:100%; object-fit:contain; display:block}
.wh-kb .logo__sub{display:block; font-family:'Karla',sans-serif; font-size:10px; letter-spacing:.18em;
  text-transform:uppercase; color:var(--ink-faint); font-weight:500}
.wh-kb .top__spacer{flex:1}
.wh-kb .iconbtn{width:36px; height:36px; border:1px solid var(--rule); background:transparent; color:var(--ink-soft);
  border-radius:var(--radius); cursor:pointer; display:grid; place-items:center; font-size:14px; text-decoration:none}
.wh-kb .iconbtn:hover{border-color:var(--accent); color:var(--accent)}
.wh-kb .avatar{width:34px; height:34px; border-radius:50%; background:var(--surface-2); border:1px solid var(--rule);
  display:grid; place-items:center; font-size:13px; font-weight:700; color:var(--accent); text-decoration:none}
.wh-kb .avatar:hover{border-color:var(--accent)}

/* ---------- Navigation ---------- */
.wh-kb .nav{border-bottom:1px solid var(--rule); background:var(--bg)}
.wh-kb .nav__in{display:flex; gap:4px; overflow-x:auto; scrollbar-width:none}
.wh-kb .nav__in::-webkit-scrollbar{display:none}
.wh-kb .nav a{padding:13px 14px; font-size:14px; text-decoration:none; color:var(--ink-soft);
  border-bottom:2px solid transparent; white-space:nowrap}
.wh-kb .nav a:hover{color:var(--ink)}
.wh-kb .nav a.is-active{color:var(--accent); border-bottom-color:var(--accent)}

/* ---------- Begruessung ---------- */
/* Live-Kurs-Ticker */
.wh-kb .wh-kb-ticker{margin:14px 0 0; border:1px solid var(--rule); border-radius:var(--radius); background:var(--surface); overflow:hidden}
.wh-kb .wh-kb-ticker__load{width:100%; padding:11px 14px; background:transparent; border:0; color:var(--ink-soft); font:inherit; font-size:13px; cursor:pointer; text-align:center}
.wh-kb .wh-kb-ticker__load:hover{color:var(--accent)}
.wh-kb .wh-kb-ticker__load span{color:var(--ink-faint); font-size:11px}
.wh-kb .wh-kb-ticker .tradingview-widget-container{min-height:46px}

/* Pinnwand-/Ankuendigungs-Banner */
.wh-kb .wh-kb-ann{margin:14px 0 0; padding:12px 16px; background:var(--surface-2); border:1px solid var(--rule);
  border-left:3px solid var(--accent); border-radius:var(--radius); color:var(--ink-soft); font-size:14px}
.wh-kb .wh-kb-ann__tag{color:var(--accent); font-weight:700; font-size:11px; letter-spacing:.12em; text-transform:uppercase; margin-right:8px}

.wh-kb .hello{padding:38px 0 22px}
.wh-kb .hello__meta{font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-faint); margin-bottom:10px}
.wh-kb .hello__meta b{color:var(--accent-soft); font-weight:500}
.wh-kb .hello h1{font-size:clamp(30px,4.6vw,44px); color:var(--ink); font-weight:700}
.wh-kb .hello__name{color:var(--accent); font-weight:700}
.wh-kb .hello p{color:var(--ink-soft); margin:16px 0 0; max-width:62ch; font-size:16px}

/* ---------- Produkt-Leiste (Upsell) ---------- */
.wh-kb .rail{display:flex; gap:8px; overflow-x:auto; padding:4px 0 14px; scrollbar-width:none}
.wh-kb .rail::-webkit-scrollbar{display:none}
.wh-kb .chip{display:flex; align-items:center; gap:8px; padding:10px 15px; border:1px solid var(--rule);
  border-radius:var(--radius); background:var(--surface); font-size:14px; white-space:nowrap; color:var(--ink-soft); text-decoration:none}
.wh-kb .chip--on{border-color:rgba(60,140,92,.5); color:var(--ink)}
.wh-kb .chip--on .chip__i{color:var(--bull)}
.wh-kb .chip--now{border-color:var(--accent); background:var(--surface-2); color:var(--ink)}
.wh-kb .chip--now .chip__i{color:var(--accent)}
.wh-kb .chip--locked{opacity:.62}
.wh-kb a.chip--locked:hover{opacity:1; border-color:var(--accent-soft); cursor:pointer}
.wh-kb .chip__i{font-size:13px}
.wh-kb .chip__hint{font-size:11px; color:var(--ink-faint); margin-left:2px}

/* ---------- Raster ---------- */
.wh-kb .grid{display:grid; grid-template-columns:1.55fr 1fr; gap:18px; padding-bottom:26px}
@media(max-width:900px){.wh-kb .grid{grid-template-columns:1fr}}
.wh-kb .card{background:var(--surface); border:1px solid var(--rule); border-radius:var(--radius); box-shadow:var(--shadow)}
.wh-kb .card__h{display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:16px 18px 0}
.wh-kb .card__h h2{font-size:17px}
.wh-kb .card__more{font-size:13px; color:var(--accent); text-decoration:none}
.wh-kb .eyebrow{font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-faint)}

/* ---------- Weiterlernen ---------- */
.wh-kb .resume__media{position:relative; aspect-ratio:16/9; background:
  radial-gradient(120% 90% at 70% 20%, #2A2318 0%, #14110C 60%);
  border-bottom:1px solid var(--rule); display:grid; place-items:center}
.wh-kb .resume__play{width:60px; height:60px; border-radius:50%; border:1px solid var(--accent); color:var(--accent);
  display:grid; place-items:center; font-size:20px; background:rgba(15,13,10,.55); text-decoration:none}
.wh-kb .resume__tag{position:absolute; top:12px; left:12px; font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  background:var(--accent); color:var(--accent-ink); padding:4px 9px; border-radius:var(--radius); font-weight:700}
.wh-kb .resume__time{position:absolute; top:12px; right:12px; font-size:12px; color:var(--ink-soft);
  background:rgba(15,13,10,.7); padding:4px 9px; border:1px solid var(--rule); border-radius:var(--radius)}
/* Inline-Video im Weiterlernen-Block (spielt direkt hier, keine Weiterleitung) */
.wh-kb .resume__media--video{padding:0}
.wh-kb .resume__media iframe,
.wh-kb .resume__media video{position:absolute; inset:0; width:100%; height:100%; border:0; display:block; background:#000}
.wh-kb .resume__media--video .resume__tag,
.wh-kb .resume__media--video .resume__time{z-index:2}
.wh-kb .resume__body{padding:16px 18px 18px}
.wh-kb .resume__body h3{font-size:20px; margin-bottom:4px}
.wh-kb .bars{display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:16px 0 14px}
.wh-kb .bar__top{display:flex; justify-content:space-between; font-size:12px; color:var(--ink-faint); margin-bottom:5px}
.wh-kb .bar__top b{color:var(--ink)}
.wh-kb .bar{height:5px; background:var(--surface-2); border-radius:99px; overflow:hidden}
.wh-kb .bar i{display:block; height:100%; background:var(--accent); border-radius:99px}
.wh-kb .btn{display:inline-flex; align-items:center; gap:8px; padding:11px 18px; border-radius:var(--radius);
  background:var(--accent); color:var(--accent-ink); text-decoration:none; font-weight:700; font-size:14px; border:1px solid var(--accent); cursor:pointer}
.wh-kb .btn:hover{background:var(--accent-soft); border-color:var(--accent-soft)}
.wh-kb .btn--ghost{background:transparent; color:var(--ink); border-color:var(--rule); font-weight:500}
.wh-kb .btn--ghost:hover{border-color:var(--accent); color:var(--accent)}
/* Inline-Player: Abschluss-Button + Fallback-Link nebeneinander, Statuszeile darunter */
.wh-kb .js-wh-kb-complete{margin-right:10px}
.wh-kb .js-wh-kb-next{margin-right:10px}
.wh-kb .btn:disabled{opacity:.6; cursor:default}
/* Abgeschlossen-Zustand des Complete-Buttons (Kai 10.08.2026): gruener Haken, ausgegraut */
.wh-kb .js-wh-kb-complete.is-done{background:transparent; color:var(--ok, #4caf7d); border-color:var(--ok, #4caf7d); font-weight:600}
.wh-kb .resume__msg{margin:12px 0 0; font-size:13px; color:var(--ink-soft)}
/* Autoplay-Schalter (Kai 10.08.2026): dezent, standardmaessig aus */
.wh-kb .wh-kb-autoplay{display:inline-flex; align-items:center; gap:7px; vertical-align:middle;
  margin-left:4px; font-size:13px; color:var(--ink-faint); cursor:pointer; user-select:none}
.wh-kb .wh-kb-autoplay input{width:15px; height:15px; accent-color:var(--accent); cursor:pointer; margin:0}
.wh-kb .wh-kb-autoplay:hover{color:var(--ink-soft)}

/* ---------- Meine Zugaenge ---------- */
.wh-kb .acc{padding:6px 18px 18px}
.wh-kb .acc__row{padding:14px 0; border-bottom:1px solid var(--rule)}
.wh-kb .acc__row:last-child{border-bottom:0; padding-bottom:4px}
.wh-kb .acc__t{display:flex; align-items:center; justify-content:space-between; gap:10px}
.wh-kb .acc__name{font-weight:700; font-size:15px}
.wh-kb .acc__state{font-size:13px; color:var(--ink-soft); margin-top:3px}
.wh-kb .acc__state b{color:var(--ink)}
.wh-kb .pill{font-size:11px; padding:3px 8px; border-radius:99px; border:1px solid; white-space:nowrap}
.wh-kb .pill--ok{color:var(--bull); border-color:rgba(60,140,92,.45)}
.wh-kb .pill--run{color:var(--accent); border-color:rgba(230,185,78,.45)}
.wh-kb .acc .bar{margin-top:9px}
.wh-kb .acc__link{font-size:13px; color:var(--accent); text-decoration:none; display:inline-block; margin-top:9px}
.wh-kb .acc__note{font-size:12px; color:var(--ink-faint); margin-top:12px; padding-top:12px; border-top:1px dashed var(--rule)}
.wh-kb .acc__empty{font-size:13px; color:var(--ink-faint); padding:8px 0}

/* ---------- Neu fuer dich / Termine ---------- */
.wh-kb .news{padding:6px 18px 16px}
/* Scrollbare Liste (Neu fuer dich / Mediathek) — kompakt, aber viele Eintraege */
.wh-kb .news--scroll{max-height:320px; overflow-y:auto; scrollbar-width:thin; scrollbar-color:var(--accent-soft) transparent}
.wh-kb .news--scroll::-webkit-scrollbar{width:8px}
.wh-kb .news--scroll::-webkit-scrollbar-thumb{background:var(--rule); border-radius:99px}
.wh-kb .news--scroll::-webkit-scrollbar-thumb:hover{background:var(--accent-soft)}
.wh-kb .news__i{display:flex; gap:12px; padding:12px 0; border-bottom:1px solid var(--rule); text-decoration:none}
.wh-kb .news__i:last-child{border-bottom:0}
.wh-kb .news__thumb{width:52px; height:52px; flex:none; border-radius:var(--radius); border:1px solid var(--rule);
  background:var(--surface-2); display:grid; place-items:center; color:var(--accent); font-size:15px}
.wh-kb .news__t{font-weight:700; font-size:14px; margin-bottom:2px; display:block}
.wh-kb .news__m{font-size:12px; color:var(--ink-faint); display:block}
.wh-kb .tag{font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--accent-soft); margin-right:7px}

/* ---------- Mediathek: 2 aufklappbare Gruppen (native <details>) ---------- */
.wh-kb .media-groups{padding:6px 18px 16px}
.wh-kb .mediagrp{border-bottom:1px solid var(--rule)}
.wh-kb .mediagrp:last-child{border-bottom:0}
.wh-kb .mediagrp__sum{display:flex; align-items:center; gap:12px; padding:14px 0; cursor:pointer;
  list-style:none; user-select:none}
.wh-kb .mediagrp__sum::-webkit-details-marker{display:none}
.wh-kb .mediagrp__sum:hover .mediagrp__t{color:var(--accent)}
.wh-kb .mediagrp__tt{display:flex; flex-direction:column; min-width:0}
.wh-kb .mediagrp__t{font-family:'Fraunces',Georgia,serif; font-weight:700; font-size:15px; margin-bottom:2px}
.wh-kb .mediagrp__m{font-size:12px; color:var(--ink-faint)}
.wh-kb .mediagrp__chev{margin-left:auto; color:var(--accent-soft); font-size:13px; transition:transform .2s ease}
.wh-kb details[open].mediagrp .mediagrp__chev{transform:rotate(180deg)}
.wh-kb .mediagrp__body{margin:0 0 10px 26px; padding-left:16px; border-left:1px solid var(--rule)}
.wh-kb .mediagrp__body .news__i{padding:11px 0}
.wh-kb .mediagrp__body .news__thumb{width:44px; height:44px}

/* ---------- Play-Buttons (in-page abspielen statt navigieren) ---------- */
/* Als <button> gerenderte Zeilen sollen wie die frueheren Links aussehen. */
.wh-kb button.news__i{width:100%; margin:0; background:transparent; border:0;
  border-bottom:1px solid var(--rule); font:inherit; color:inherit; text-align:left; cursor:pointer}
.wh-kb button.news__i:last-child{border-bottom:0}
.wh-kb .js-wh-kb-play{cursor:pointer}
.wh-kb .js-wh-kb-play:hover .news__t{color:var(--accent)}
.wh-kb .js-wh-kb-play.is-playing .news__t{color:var(--accent)}
.wh-kb .js-wh-kb-play.is-loading{opacity:.6}
.wh-kb button.resume__play{cursor:pointer; font:inherit; font-size:20px}

/* ---------- Lernpfad: Akkordeon (native <details>) ---------- */
.wh-kb .path--acc{padding:6px 18px 16px}
.wh-kb .lekt{border-bottom:1px solid var(--rule)}
.wh-kb .lekt:last-child{border-bottom:0}
.wh-kb .lekt__sum{display:flex; align-items:center; gap:14px; padding:13px 0; cursor:pointer;
  list-style:none; user-select:none}
.wh-kb .lekt__sum::-webkit-details-marker{display:none}
.wh-kb .lekt__sum:hover .step__t{color:var(--accent)}
.wh-kb .lekt__tt{min-width:0; flex:1}
.wh-kb .lekt--done .step__n{border-color:var(--bull); color:var(--bull)}
.wh-kb .lekt--now .step__n{border-color:var(--accent); background:var(--accent); color:var(--accent-ink)}
.wh-kb .lekt__chev{color:var(--accent-soft); font-size:13px; transition:transform .2s ease}
.wh-kb details[open].lekt .lekt__chev{transform:rotate(180deg)}
.wh-kb .lekt__body{margin:0 0 12px 44px; padding-left:14px; border-left:1px solid var(--rule)}
.wh-kb .playrow{display:flex; align-items:center; gap:11px; width:100%; margin:0; padding:10px 0;
  background:transparent; border:0; border-bottom:1px solid var(--rule); font:inherit; color:var(--ink-soft);
  text-align:left; cursor:pointer}
.wh-kb .playrow:last-child{border-bottom:0}
.wh-kb .playrow:hover{color:var(--accent)}
.wh-kb .playrow.is-playing{color:var(--accent)}
.wh-kb .playrow.is-loading{opacity:.6}
.wh-kb .playrow__ic{width:26px; height:26px; flex:none; border-radius:50%; border:1px solid var(--rule);
  display:grid; place-items:center; font-size:11px; color:var(--accent)}
.wh-kb .playrow__t{font-size:14px; font-weight:500}

/* Geschaut / nicht geschaut deutlich sichtbar (Kai 10.08.2026).
   Offen  = Gold-▶ (Standard oben).  Geschaut = gruener ✓ (gefuellt) + Titel gedaempft
   + kleines Label „geschaut" (per ::after, damit auch live umgeschaltete Zeilen es
   automatisch bekommen — das JS setzt nur die Klasse .playrow--done). */
.wh-kb .playrow--done .playrow__ic{border-color:var(--bull); background:var(--bull); color:#0F0D0A; font-weight:700}
.wh-kb .playrow--done .playrow__t{color:var(--ink-faint)}
.wh-kb .playrow--done .playrow__t::after{content:"geschaut"; margin-left:9px; font-size:10px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--bull); font-weight:700; vertical-align:1px}

/* Fortschritts-Zaehler in Lektions-Summaries (Lernpfad + Mediathek), z. B. „3 / 6 geschaut". */
.wh-kb .lekt__prog{margin-left:auto; font-size:12px; color:var(--bull); white-space:nowrap; align-self:center}

/* ---------- Mediathek: Lektion eine Ebene tiefer (verschachteltes <details>) ---------- */
.wh-kb .medialekt{border-bottom:1px solid var(--rule)}
.wh-kb .medialekt:last-child{border-bottom:0}
.wh-kb .medialekt__sum{display:flex; align-items:center; gap:12px; padding:12px 0; cursor:pointer;
  list-style:none; user-select:none}
.wh-kb .medialekt__sum::-webkit-details-marker{display:none}
.wh-kb .medialekt__sum:hover .medialekt__t{color:var(--accent)}
.wh-kb .medialekt__tt{display:flex; flex-direction:column; min-width:0; flex:1}
.wh-kb .medialekt__t{font-weight:700; font-size:14px; margin-bottom:2px}
.wh-kb .medialekt__m{font-size:12px; color:var(--ink-faint)}
.wh-kb .medialekt__m .wh-kb-prog{color:var(--bull)}
.wh-kb .medialekt__chev{margin-left:auto; color:var(--accent-soft); font-size:12px; transition:transform .2s ease}
.wh-kb details[open].medialekt .medialekt__chev{transform:rotate(180deg)}
.wh-kb .medialekt__body{margin:0 0 10px 20px; padding-left:14px; border-left:1px solid var(--rule)}

/* ---------- Lernpfad (Onboarding-Steps, weiterhin genutzt) ---------- */
.wh-kb .path{padding:16px 18px 20px}
.wh-kb .step{display:flex; gap:14px; padding:13px 0; border-bottom:1px solid var(--rule)}
.wh-kb .step:last-child{border-bottom:0}
.wh-kb .step__n{width:30px; height:30px; flex:none; border-radius:50%; border:1px solid var(--rule);
  display:grid; place-items:center; font-size:13px; font-weight:700; color:var(--ink-faint)}
.wh-kb .step--done .step__n{border-color:var(--bull); color:var(--bull)}
.wh-kb .step--now .step__n{border-color:var(--accent); background:var(--accent); color:var(--accent-ink)}
.wh-kb .step__t{font-weight:700; font-size:14px}
.wh-kb .step__d{font-size:13px; color:var(--ink-soft)}
.wh-kb .step__s{margin-left:auto; font-size:12px; color:var(--ink-faint); white-space:nowrap; align-self:center}

/* ---------- Fuss / Hinweise ---------- */
.wh-kb .foot{border-top:1px solid var(--rule); margin-top:20px; padding:20px 0 40px; font-size:12px; color:var(--ink-faint)}
.wh-kb .adminnote{background:var(--surface-2); border:1px dashed var(--rule); padding:10px 14px; margin:0 0 14px;
  font-size:12px; color:var(--ink-soft); border-radius:var(--radius)}
.wh-kb .adminnote b{color:var(--accent)}
