/* clar.tax · Wissensseiten unter /wissen/ (erzeugt von tools/wissen/build.py). Baut auf wissen.css auf. */

.zurueck {
  display: inline-block;
  margin: 28px 0 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.zurueck:hover { text-decoration: underline; }

.artikel-kopf .vorspann p { margin: 0 0 12px; }
.artikel-kopf .vorspann p:last-child { margin-bottom: 0; }

.lesetext ul { padding-left: 1.2em; line-height: 1.65; }
.lesetext li + li { margin-top: 6px; }
.lesetext code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--accent-soft);
  padding: 1px 5px;
  border-radius: 4px;
}
.lesetext > section { scroll-margin-top: 90px; }
.lesetext > section:target h2 { color: var(--accent); }

.weiterfragen {
  margin: 48px 0 24px;
  padding: 24px 26px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
}
.weiterfragen p { margin: 0 0 14px; color: var(--muted); }
.weiterfragen .weiterfragen-titel { margin-bottom: 6px; color: var(--ink); font-weight: 600; font-size: 19px; }
.weiterfragen-knopf {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.weiterfragen-knopf:hover { filter: brightness(1.1); }
.weiterfragen-knopf:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.muted { color: var(--muted); }
.klein { font-size: 13px; }

.wissen-uebersicht section { margin: 0 0 48px; }
.wissen-uebersicht h2 { font-size: clamp(24px, 2.4vw, 32px); margin: 0 0 16px; }
.wissen-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
}
.wissen-liste a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.wissen-liste a:hover { border-color: var(--accent); transform: translateY(-2px); }
.wissen-liste a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wissen-titel { font-weight: 600; line-height: 1.35; }
.wissen-text { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

.fuss {
  padding-block: 24px 40px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
}
.fuss a { color: inherit; }

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .weiterfragen { padding: 20px; }
}
