/* ============================================================
   MICHAEL SELCK — Wissen (Lexikon A–Z), wi1 (20.10.2026)
   Lädt NACH styles.css und blog/blog.css: nutzt deren Tokens
   (--text, --muted, --faint, --accent, --line, --panel, --f-display …)
   und die Mini-Buttons (.cat-mini) für verwandte Begriffe.
   Zettel: Website-Framework/auftraege/ZETTEL_2026-10-20_msde-wissensbereich.md
   ============================================================ */

/* ---------- Übersicht: Kopf ---------- */
.wissen-hero { position: relative; z-index: 1; padding: clamp(96px, 14vh, 168px) 0 clamp(28px, 4vw, 44px); }
.wissen-hero .crumbs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--faint); font-size: 13px; letter-spacing: .02em; }
.wissen-hero .crumbs a { color: var(--muted); transition: color .2s ease; }
.wissen-hero .crumbs a:hover { color: var(--accent-soft); }
.wissen-hero .crumbs .sep { color: var(--faint); }
.wissen-hero h1 { margin: 18px 0 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(38px, 6vw, 74px); line-height: 1.04; letter-spacing: -.035em; color: var(--text); }
.wissen-hero h1 em { font-family: var(--f-accent); font-style: italic; font-weight: 600; color: var(--accent); }
.wissen-hero .lead { max-width: 640px; margin-top: 20px; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.62; }

/* ---------- Werkzeugleiste: Suche + Zähler ---------- */
.wissen-werkzeug {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 0 0 clamp(18px, 2.6vw, 28px);
}
.wissen-suche { position: relative; flex: 1 1 280px; max-width: 520px; }
.wissen-suche svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.wissen-suche input {
  width: 100%; min-height: 48px; padding: 10px 44px 10px 46px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  color: var(--text); font-family: var(--f-body); font-size: 15px; outline: none;
  transition: border-color .2s var(--ease-out), box-shadow .22s var(--ease-out);
}
.wissen-suche input::placeholder { color: var(--faint); }
.wissen-suche input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(193,106,79,.18); }
.wissen-suche__leeren {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--faint);
  display: none; align-items: center; justify-content: center; font-size: 20px; line-height: 1; cursor: pointer;
}
.wissen-suche__leeren:hover { color: var(--text); background: var(--line-soft); }
.wissen-suche.hat-text .wissen-suche__leeren { display: inline-flex; }
.wissen-zaehler { color: var(--faint); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.wissen-zaehler strong { color: var(--text); font-weight: 700; }

/* ---------- Buchstabenleiste ---------- */
.wissen-abc {
  position: relative; z-index: 3;
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 0 clamp(32px, 5vw, 56px); padding: 0; list-style: none;
}
.wissen-abc a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 10px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--text); font-family: var(--f-display); font-size: 16px; font-weight: 600; letter-spacing: 0;
  text-decoration: none;
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out), background .22s var(--ease-out), transform .18s var(--ease-out);
}
.wissen-abc a:hover, .wissen-abc a:focus-visible { border-color: var(--accent); color: var(--text); background: rgba(193,106,79,.10); transform: translateY(-2px); }
.wissen-abc a:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
.wissen-abc a[aria-disabled="true"] { color: var(--faint); border-color: var(--line-soft); background: transparent; opacity: .55; pointer-events: none; }
.wissen-abc a.is-aktiv { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); }

/* ---------- Gruppen und Einträge ---------- */
.wissen-gruppen { display: grid; gap: clamp(28px, 4vw, 44px); padding-bottom: clamp(80px, 11vw, 140px); }
.wissen-gruppe { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px 28px; scroll-margin-top: 110px; }
.wissen-gruppe[hidden] { display: none; }
.wissen-gruppe h2 {
  margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(44px, 5.4vw, 72px); line-height: .9; letter-spacing: -.04em;
  color: var(--accent); opacity: .92;
}
.wissen-liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.wissen-eintrag[hidden] { display: none; }
.wissen-eintrag a {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; gap: 16px;
  padding: 18px 20px; border: 1px solid var(--line-soft); border-radius: 18px; background: var(--bg-2);
  color: var(--text); text-decoration: none;
  transition: transform .3s var(--ease-out), border-color .25s var(--ease-out), box-shadow .3s var(--ease-out);
}
.wissen-eintrag a:hover, .wissen-eintrag a:focus-visible { transform: translateY(-3px); border-color: rgba(193,106,79,.45); box-shadow: 0 34px 70px -48px rgba(0,0,0,.85); }
.wissen-eintrag a:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
.wissen-eintrag strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.25; letter-spacing: -.02em; color: var(--text); }
.wissen-eintrag span { display: block; margin-top: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.wissen-eintrag svg { width: 22px; height: 22px; color: var(--accent-soft); transition: transform .22s var(--ease-out); }
.wissen-eintrag a:hover svg { transform: translateX(4px); }
.wissen-leer { margin: 0 0 clamp(80px, 11vw, 140px); color: var(--muted); font-size: 16px; }
.wissen-leer[hidden] { display: none; }
.wissen-leer button { color: var(--accent-soft); background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Eintragsseite (nutzt .post-hero/.post-body aus blog.css) ---------- */
.wissen-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 22px 0 14px; color: var(--accent); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.wissen-kicker .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }
.wissen-kicker .wissen-autor { color: var(--faint); font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.wissen-kicker .wissen-autor a { color: var(--accent); font-weight: 600; text-decoration: none; }
.wissen-kicker .wissen-autor a:hover { text-decoration: underline; }
.post-hero.wissen-eintrag-kopf h1 { max-width: 20ch; }
.post-hero.wissen-eintrag-kopf { padding-bottom: 0; }
.post-body .wissen-definition {
  margin: 0 0 30px; padding: 22px 26px; border-left: 3px solid var(--accent); border-radius: 0 16px 16px 0;
  background: rgba(193,106,79,.08);
}
.post-body .wissen-definition p { margin: 0; color: var(--text); font-family: var(--f-display); font-weight: 500; font-size: clamp(18px, 1.9vw, 22px); line-height: 1.5; letter-spacing: -.01em; }
.wissen-verwandt { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.wissen-verwandt li { margin: 0; padding: 0; }
.wissen-verwandt li::before { display: none; }
.wissen-verwandt a.cat-mini { text-decoration: none; }
.wissen-zurueck { display: inline-flex; align-items: center; gap: 9px; margin-top: 6px; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.wissen-zurueck:hover { color: var(--accent-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .wissen-gruppe { grid-template-columns: 1fr; gap: 12px; }
  .wissen-gruppe h2 { font-size: clamp(36px, 9vw, 48px); }
}
@media (max-width: 700px) {
  .wissen-hero { padding-top: 84px; }
  .wissen-abc a { min-width: 36px; height: 36px; border-radius: 10px; font-size: 15px; }
  .wissen-eintrag a { padding: 16px 16px; border-radius: 16px; }
  .post-hero.wissen-eintrag-kopf { padding-top: 72px; }
}
@media (hover: none) {
  .wissen-abc a, .wissen-eintrag a { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .wissen-abc a, .wissen-eintrag a, .wissen-eintrag svg { transition: none; transform: none !important; }
}

/* Hilfsklasse für das Suchfeld-Label (nur falls styles.css keine .sr-only hat) */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
