/* wissen.php und der Uebersichtskopf von wissen-artikel.php: seitenspezifische
   Regeln. Farben, Schrift, Abstaende, Radien und Schatten kommen ausschliesslich
   aus den Tokens in styles.css, damit Dark, Sepia und Kontrast weiter passen. */

/* ------------------------------------------------------------
   Hero: am Handy flacher Streifen, damit die Zahlen frueh beginnen
   ------------------------------------------------------------ */
@media (max-width: 767px) {
  .page-wissen .hero-page {
    padding-bottom: var(--sp-5);
  }
  .page-wissen .hero-photo img {
    aspect-ratio: 21 / 9;
  }
}

/* ------------------------------------------------------------
   Einblicke: drei Zahlen als ruhige Zeile, keine Karten
   ------------------------------------------------------------ */
.figure-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0 var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.figure-row li {
  display: grid;
  gap: 2px;
  padding: var(--sp-2) 0;
  border-top: 1px solid var(--line);
}
.figure-row strong {
  font-size: var(--fs-xl);
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.figure-row span {
  font-size: var(--fs-sm);
  line-height: var(--lh-copy);
  color: var(--muted);
}

/* ------------------------------------------------------------
   Artikel: Listenzeilen, ganze Zeile klickbar
   ------------------------------------------------------------ */
.article-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.article-search {
  flex: 1 1 240px;
  min-height: 44px;
  padding: 0 var(--sp-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-base);
}
.article-cats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.article-count {
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.article-rows {
  border-top: 1px solid var(--line);
}
.article-row {
  position: relative;
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-3) 0 var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.article-row h3 {
  margin: 0;
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  font-weight: var(--fw-bold);
  color: var(--ink);
}
/* Stretched Link: das Overlay bezieht sich auf .article-row, der Link selbst
   bekommt deshalb kein position:relative. */
.article-row h3 a {
  display: inline-block;
  padding-block: .6rem;
  margin-block: -.6rem;
  color: var(--ink);
  text-decoration: none;
}
.article-row h3 a::before {
  content: "";
  position: absolute;
  inset: 0;
}
.article-row:hover h3 a,
.article-row h3 a:focus-visible {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: .15em;
}
.article-row p {
  margin: 0;
  max-width: 70ch;
  font-size: var(--fs-md);
  line-height: var(--lh-copy);
  color: var(--muted);
}
.article-row .article-meta {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.article-empty {
  margin: 0;
  max-width: 70ch;
  font-size: var(--fs-base);
  line-height: var(--lh-copy);
  color: var(--muted);
}
.article-feed {
  margin: var(--sp-3) 0 0;
}
.article-feed a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-sm);
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: .15em;
}
.article-feed a:hover {
  color: var(--accent-2-strong);
}

/* ------------------------------------------------------------
   Netzwerk: Laeden und Verbaende als Zeilen
   ------------------------------------------------------------ */
.netz-title {
  margin: var(--sp-4) 0 var(--sp-2);
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  font-weight: var(--fw-bold);
  color: var(--ink);
}
.netz-title:first-of-type {
  margin-top: 0;
}
.netz-rows,
.netz-links {
  border-top: 1px solid var(--line);
}
.netz-rows .list-row {
  padding: 0;
}
.netz-rows a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: .15em;
}
.netz-rows a:hover {
  color: var(--accent-2-strong);
}
.netz-rows span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.netz-note {
  margin: var(--sp-2) 0 0;
  max-width: 70ch;
  font-size: var(--fs-sm);
  line-height: var(--lh-copy);
  color: var(--muted);
}
.netz-link-row {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-3) 0 var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.netz-link-row:last-child {
  border-bottom: 0;
}
.netz-link-row strong {
  display: block;
  font-size: var(--fs-base);
  line-height: var(--lh-snug);
  font-weight: var(--fw-bold);
  color: var(--ink);
}
.netz-link-row p {
  margin: var(--sp-1) 0 0;
  max-width: 70ch;
  font-size: var(--fs-md);
  line-height: var(--lh-copy);
  color: var(--muted);
}
.netz-link-row .button {
  justify-self: start;
}
@media (min-width: 768px) {
  .netz-link-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--sp-5);
  }
  .netz-link-row .button {
    justify-self: end;
  }
}

.netz-more summary {
  display: flex;
  border-top: 1px solid var(--line);
  align-items: center;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: .15em;
}
.netz-more summary::-webkit-details-marker {
  display: none;
}
.netz-more summary:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
}

/* ------------------------------------------------------------
   Uebersichtskopf von wissen-artikel.php
   ------------------------------------------------------------ */
.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
