/* ============================================================
   Wissensbibliothek – Zusatzstyles
   Ergänzt styles.css, überschreibt keine bestehenden Regeln.
   ============================================================ */

/* ---------- Meta-Zeile (Lesezeit · Stand · Kategorie) ---------- */
.wissen-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.wissen-meta span:not(:first-child)::before {
  content: "·";
  margin-right: 14px;
  color: var(--forest-700);
}

/* ---------- Kategorie-Filter ---------- */
.wissen-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 46px;
}

.wissen-filter a,
.wissen-filter button {
  padding: 10px 19px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wissen-filter a:hover,
.wissen-filter button:hover {
  border-color: var(--forest-700);
  color: var(--forest-900);
}

.wissen-filter a.is-active,
.wissen-filter button.is-active {
  background: var(--forest-950);
  border-color: var(--forest-950);
  color: var(--white);
}

/* ---------- Beitrags-Kacheln ---------- */
.wissen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.wissen-card {
  display: flex;
  flex-direction: column;
  min-height: 265px;
  padding: 30px 28px;
  border-top: 3px solid var(--accent);
  background: var(--white);
  box-shadow: 0 12px 36px rgba(11, 46, 79, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

a.wissen-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(11, 46, 79, 0.13);
}

.wissen-card > span:first-child {
  color: var(--forest-700);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wissen-card h3 {
  margin: 24px 0 12px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.14;
  overflow-wrap: break-word;
  word-break: normal;
  -webkit-hyphens: manual;
  hyphens: manual;
}

.wissen-card p {
  flex-grow: 1;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.wissen-card-more {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--forest-900);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.wissen-card-more span {
  transition: transform 0.2s ease;
}

a.wissen-card:hover .wissen-card-more span {
  transform: translateX(5px);
}

.wissen-card.is-hidden {
  display: none;
}

/* ---------- Artikel-Layout ---------- */
.wissen-article {
  max-width: 780px;
}

.wissen-article > p {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.75;
}

.wissen-article h2 {
  margin: 56px 0 18px;
  font-family: var(--serif);
  font-size: 33px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.wissen-article > *:first-child {
  margin-top: 0;
}

.wissen-article h3 {
  margin: 34px 0 12px;
  font-size: 19px;
  font-weight: 800;
}

.wissen-article ul,
.wissen-article ol {
  margin: 0 0 24px;
  padding-left: 22px;
}

.wissen-article li {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.68;
}

.wissen-article li::marker {
  color: var(--forest-700);
  font-weight: 800;
}

.wissen-article a {
  color: var(--forest-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.wissen-article a:hover {
  color: var(--forest-900);
}

/* ---------- Tabellen ---------- */
.wissen-table-wrap {
  max-width: 100%;
  margin: 32px 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
}

.wissen-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}

.wissen-table th {
  padding: 13px 16px;
  background: var(--forest-950);
  color: var(--white);
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wissen-table td {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink);
  line-height: 1.55;
}

.wissen-table tbody tr:nth-child(even) {
  background: var(--cream);
}

.wissen-table td:first-child {
  font-weight: 800;
}

/* ---------- Beispiel- / Hinweisbox im Artikel ---------- */
.wissen-example {
  margin: 32px 0;
  padding: 26px 28px;
  border-left: 3px solid var(--forest-700);
  background: var(--cream);
}

.wissen-example h3 {
  margin: 0 0 14px;
  color: var(--forest-700);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wissen-example p {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.68;
}

.wissen-example p:last-child {
  margin-bottom: 0;
}

/* ---------- „Das Wichtigste in Kürze“ im Hero-Snapshot ---------- */
.wissen-snapshot h2 {
  margin-top: 42px;
  margin-bottom: 20px;
  font-size: 24px;
}

.wissen-facts-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.wissen-facts-list li {
  position: relative;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13.5px;
  line-height: 1.55;
}

.wissen-facts-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Cluster-Sektionen auf der Übersichtsseite ---------- */
.wissen-cluster {
  scroll-margin-top: 110px;
}

.wissen-cluster .service-detail-intro-copy p {
  max-width: 720px;
}

/* ---------- Glossar ---------- */
.glossar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 52px;
}

.glossar-nav a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--forest-900);
  font-size: 13px;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.glossar-nav a:hover {
  background: var(--forest-950);
  border-color: var(--forest-950);
  color: var(--white);
}

.glossar-group {
  margin-bottom: 54px;
  scroll-margin-top: 110px;
}

.glossar-letter {
  margin: 0 0 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  color: var(--sage);
}

.glossar-group dl {
  margin: 0;
}

.glossar-group dt {
  margin-top: 26px;
  color: var(--forest-950);
  font-size: 17px;
  font-weight: 800;
}

.glossar-group dd {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.glossar-group dd a {
  color: var(--forest-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .wissen-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .wissen-grid {
    grid-template-columns: 1fr;
  }

  .wissen-article h2 {
    font-size: 27px;
  }

  .wissen-article > p {
    font-size: 16px;
  }

  .wissen-table {
    font-size: 13.5px;
  }

  .glossar-letter {
    font-size: 34px;
  }
}

/* ============================================================
   Gemeinsame Fassung: ruhige Bibliothek + vertiefte Wissensseiten
   ============================================================ */

.wissen-page .service-detail-hero h1,
.wissen-page .service-detail-heading h2,
.wissen-cluster .service-detail-intro-copy h2 {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  -webkit-hyphens: manual;
  hyphens: manual;
  text-wrap: balance;
}

.wissen-page .service-detail-hero h1 {
  max-width: 920px;
  font-size: clamp(40px, 4.55vw, 60px);
  line-height: 1.02;
}

.wissen-card h3 {
  font-size: clamp(20px, 1.65vw, 23px);
  overflow-wrap: break-word;
  word-break: normal;
  -webkit-hyphens: manual;
  hyphens: manual;
}

.wissen-library-overview .knowledge-search {
  margin-top: -34px;
  padding-bottom: 38px;
  background: transparent;
}

.wissen-library-overview .knowledge-search-inner {
  grid-template-columns: 190px minmax(280px, 1fr) auto;
}

.wissen-library-overview .knowledge-search input {
  width: 100%;
}

.wissen-library-overview .wissen-filter {
  margin: 24px 0 0;
}

.wissen-overview-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-top: 18px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  color: var(--forest-900);
  font-size: 12px;
  font-weight: 800;
}

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

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

.wissen-trust-section {
  padding: 78px 0;
  background: #f5f9fc;
}

.wissen-trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  border: 1px solid rgba(11, 46, 79, 0.14);
  background: #fff;
}

.wissen-author-card,
.wissen-source-card {
  padding: 34px;
}

.wissen-author-card {
  border-right: 1px solid rgba(11, 46, 79, 0.14);
  border-top: 3px solid var(--accent);
}

.wissen-source-card {
  border-top: 3px solid var(--forest-900);
}

.wissen-author-card > span,
.wissen-source-card > span {
  color: var(--forest-700);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.wissen-author-card h2,
.wissen-source-card h2 {
  margin: 13px 0 14px;
  color: var(--forest-950);
  font-family: var(--serif);
  font-size: clamp(25px, 2.7vw, 34px);
  font-weight: 500;
  line-height: 1.08;
}

.wissen-author-card p,
.wissen-source-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.wissen-author-card a {
  display: inline-block;
  margin-top: 22px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--forest-900);
  font-size: 12px;
  font-weight: 800;
}

.wissen-source-card ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.wissen-source-card li {
  padding-left: 17px;
  position: relative;
}

.wissen-source-card li::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  left: 0;
  top: 0.67em;
  border-radius: 50%;
  background: var(--accent);
}

.wissen-source-card li a {
  color: var(--forest-900);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.wissen-trust-section [data-knowledge-engagement] {
  margin-top: 34px;
}

.wissen-trust-section .knowledge-next-step h2,
.wissen-trust-section .knowledge-feedback-main h2 {
  margin: 12px 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
}

.wissen-trust-section .knowledge-next-step h2 {
  max-width: 690px;
  color: #fff;
  font-size: clamp(28px, 3vw, 39px);
}

.wissen-trust-section .knowledge-feedback-main h2 {
  color: var(--forest-950);
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .wissen-library-overview .knowledge-search-inner {
    grid-template-columns: 1fr;
  }

  .wissen-trust-grid {
    grid-template-columns: 1fr;
  }

  .wissen-author-card {
    border-right: 0;
    border-bottom: 1px solid rgba(11, 46, 79, 0.14);
  }
}

@media (max-width: 720px) {
  .wissen-page .service-detail-hero h1 {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.05;
  }

  .wissen-library-overview .knowledge-search {
    margin-top: -22px;
  }

  .wissen-library-overview .knowledge-search-inner,
  .wissen-author-card,
  .wissen-source-card {
    padding: 24px;
  }

  .wissen-filter {
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
  }

  .wissen-filter a {
    flex: 0 0 auto;
  }
}
