/* Lesetext auf der Website. Farben, Schrift und Maße aus packages/design/tokens.css, nur hell. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground-soft);
  font: var(--text-base) / 1.65 var(--font-sans);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

.kopf,
main,
.fuss {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
}

.kopf img {
  display: block;
}

.anmelden {
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--control);
  color: var(--foreground-soft);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
}

.anmelden:hover {
  background: var(--control-hover);
}

main {
  padding-top: 24px;
  padding-bottom: 64px;
}

h1 {
  margin: 0;
  color: var(--foreground);
  font-size: var(--text-3xl);
  line-height: var(--text-3xl--line-height);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
}

h2 {
  margin: 48px 0 12px;
  color: var(--foreground);
  font-size: var(--text-xl);
  line-height: var(--text-xl--line-height);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
}

h3 {
  margin: 32px 0 8px;
  color: var(--foreground);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
}

p,
ul,
ol,
table,
blockquote {
  margin: 0 0 16px;
}

ul,
ol {
  padding-left: 22px;
}

li + li {
  margin-top: 6px;
}

strong {
  color: var(--foreground);
  font-weight: var(--weight-semibold);
}

a {
  color: var(--primary-text);
  text-underline-offset: 2px;
}

hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.stand {
  margin-top: 8px;
  color: var(--muted-foreground);
  font-size: var(--text-sm);
}

.hinweis,
blockquote {
  padding: 14px 18px;
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--foreground-soft);
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Tabellen laufen auf dem Handy seitlich, statt den Text zu quetschen. */
table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: var(--text-sm);
  line-height: 1.5;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--foreground);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

/* Tabellen mit leerer Kopfzeile sind Steckbriefe: links die Bezeichnung, rechts der Wert. */
thead:has(th:empty) {
  display: none;
}

table:has(th:empty) {
  display: table;
  width: 100%;
}

table:has(th:empty) td:first-child {
  width: 150px;
  color: var(--muted-foreground);
}

table:has(th:empty) tr:first-child td {
  border-top: 1px solid var(--border);
}

.fuss {
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: var(--text-sm);
}

.fuss nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 12px;
}

.fuss a {
  color: var(--muted-foreground);
  text-decoration: none;
}

.fuss a:hover {
  color: var(--foreground-soft);
  text-decoration: underline;
}

@media (max-width: 600px) {
  h1 {
    font-size: var(--text-2xl);
    line-height: var(--text-2xl--line-height);
  }
}

@media print {
  .kopf .anmelden,
  .fuss nav {
    display: none;
  }
  body {
    background: #ffffff;
    font-size: 11pt;
  }
  a {
    color: inherit;
  }
}
