/* ============================================================
   Mitzscherlich — Know-how: Wissensdatenbank
   Baut auf b-base.css auf (Farben, Typo, Header, Buttons).
   ============================================================ */

/* ---------- Seitenkopf ---------- */

.wissen-head {
  background:
    radial-gradient(50% 60% at 78% 10%, var(--aqua) 0%, rgba(151, 186, 180, 0) 72%),
    var(--bone);
  border-bottom: 1px solid var(--line);
  padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(40px, 5vw, 68px);
}

.wissen-head__inner {
  max-width: 760px;
}

.wissen-head .kicker {
  margin-bottom: 22px;
}

.wissen-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 620;
  font-stretch: 94%;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.wissen-head__lead {
  margin-top: 26px;
  font-size: clamp(1.06rem, 1.5vw, 1.18rem);
  line-height: 1.7;
  max-width: 60ch;
}

/* ---------- Filter & Suche ---------- */

.wissen-filter {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(250, 248, 243, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.wissen-filter__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-block: 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 560;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background-color 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out),
    color 0.22s var(--ease-out);
}

.chip:hover {
  border-color: var(--ink);
}

.chip[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
}

.wissen-search {
  position: relative;
  flex: 1 1 240px;
  max-width: 320px;
}

.wissen-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 16px 0 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.9rem;
  transition: border-color 0.22s var(--ease-out);
}

.wissen-search input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.wissen-search input:focus {
  outline: none;
  border-color: var(--brass);
}

.wissen-search::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 50%;
  width: 13px;
  height: 13px;
  margin-top: -8px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  pointer-events: none;
}

.wissen-search::after {
  content: '';
  position: absolute;
  left: 26px;
  top: 50%;
  width: 6px;
  height: 1.5px;
  margin-top: 4px;
  background: var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}

/* Ohne JavaScript sind alle Artikel sichtbar - dann stört die Filterleiste nur. */
html:not(.js) .wissen-filter {
  display: none;
}

/* ---------- Artikelübersicht ---------- */

.wissen-list {
  padding-block: clamp(48px, 7vw, 84px) clamp(72px, 9vw, 110px);
  background: var(--white);
}

.wissen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(20px, 2.4vw, 28px);
}

.wissen-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bone);
  transition:
    border-color 0.25s var(--ease-out),
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.wissen-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(19, 26, 29, 0.07);
}

.wissen-card[hidden] {
  display: none;
}

.wissen-card__cat {
  font-size: 0.68rem;
  font-weight: 620;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}

.wissen-card__title {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 620;
  font-stretch: 95%;
  line-height: 1.26;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.wissen-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.wissen-card__teaser {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.68;
}

.wissen-card__meta {
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.wissen-empty {
  padding: clamp(40px, 6vw, 72px) 0;
  text-align: center;
  font-size: 1.05rem;
  color: var(--muted);
}

.wissen-empty[hidden] {
  display: none;
}

/* ---------- Artikelseite ---------- */

.artikel {
  background: var(--white);
  padding-block: clamp(48px, 6vw, 80px) clamp(64px, 8vw, 100px);
}

.artikel__inner {
  max-width: 720px;
}

.artikel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.artikel h2 {
  margin: clamp(44px, 5vw, 62px) 0 16px;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 620;
  font-stretch: 95%;
  line-height: 1.24;
  letter-spacing: -0.022em;
  color: var(--ink);
}

.artikel h2:first-child {
  margin-top: 0;
}

.artikel h3 {
  margin: 34px 0 12px;
  font-size: 1.1rem;
  font-weight: 620;
  font-stretch: 95%;
  letter-spacing: -0.015em;
  line-height: 1.34;
  color: var(--ink);
}

.artikel p {
  margin: 0 0 20px;
  font-size: 1.05rem;
  line-height: 1.82;
}

.artikel ul,
.artikel ol {
  margin: 0 0 22px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.artikel ul li,
.artikel ol li {
  position: relative;
  padding-left: 26px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--muted);
}

.artikel ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--brass);
}

.artikel ol {
  counter-reset: artikel-ol;
}

.artikel ol li {
  counter-increment: artikel-ol;
}

.artikel ol li::before {
  content: counter(artikel-ol) '.';
  position: absolute;
  left: 0;
  color: var(--brass);
  font-weight: 620;
  font-size: 0.92em;
}

.artikel a {
  color: var(--ink);
  border-bottom: 1px solid rgba(163, 133, 78, 0.45);
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
  overflow-wrap: anywhere;
}

.artikel a:hover {
  color: var(--brass-deep);
  border-color: var(--brass);
}

.artikel strong {
  color: var(--ink);
  font-weight: 620;
}

/* Merksatz / Kernaussage */

.artikel .merksatz {
  margin: clamp(30px, 4vw, 42px) 0;
  padding: 24px 28px;
  border-left: 2px solid var(--brass);
  background: var(--bone);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

.artikel .merksatz p {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--ink);
}

.artikel .merksatz p + p {
  margin-top: 12px;
}

/* Gegenüberstellung zweier Optionen */

.vergleich {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: clamp(28px, 4vw, 40px) 0;
}

.vergleich__box {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bone);
}

.vergleich__box h4 {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 620;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

.vergleich__box p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.68;
}

/* Risikohinweis am Artikelende */

.artikel__risk {
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Verwandte Artikel ---------- */

.related {
  background: var(--bone);
  border-top: 1px solid var(--line);
  padding-block: clamp(52px, 7vw, 84px);
}

.related h2 {
  margin: 0 0 clamp(28px, 3.5vw, 40px);
  font-size: 0.7rem;
  font-weight: 620;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(18px, 2.4vw, 26px);
  max-width: 860px;
}

.related .wissen-card {
  background: var(--white);
}

/* ---------- Abschluss-CTA ---------- */

.wissen-cta {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding-block: clamp(72px, 10vw, 120px);
  text-align: center;
}

.wissen-cta__inner {
  display: grid;
  justify-items: center;
  gap: 22px;
}

.wissen-cta h2 {
  max-width: 20ch;
}

.wissen-cta p {
  max-width: 54ch;
}

.wissen-cta .btn {
  margin-top: 10px;
}

/* ---------- Zurück-Link ---------- */

.wissen-back {
  margin-bottom: 26px;
}

.wissen-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 560;
  color: var(--muted);
  transition: color 0.2s var(--ease-out);
}

.wissen-back a::before {
  content: '←';
  transition: transform 0.25s var(--ease-out);
}

.wissen-back a:hover {
  color: var(--ink);
}

.wissen-back a:hover::before {
  transform: translateX(-4px);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .wissen-filter {
    position: static;
  }

  .wissen-filter__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .wissen-search {
    max-width: none;
  }

  .vergleich {
    grid-template-columns: 1fr;
  }
}

/* ---------- Druck ---------- */

@media print {
  .header,
  .menu,
  .wissen-filter,
  .wissen-cta,
  .related,
  .skip-link {
    display: none !important;
  }

  .artikel {
    padding: 0;
  }
}
