/* Unterseiten (Sicherheit, Betriebsrat, Vorlagen, Fachseiten) im Bild der
   Startseite: dieselben Tokens, Kopfleiste und Fuß aus site.css. */
.unterseite main {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 4vw, 2rem) clamp(4rem, 8vw, 7rem);
}

.sach-kopf .etikett {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.sach-kopf h1 {
  margin: 1rem 0 1.5rem;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

.sach-kopf p {
  margin: 0;
  max-width: 36em;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.5;
  color: var(--text-muted);
}

section.ab {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.rand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.rand .nr {
  color: var(--accent);
}

.inhalt h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

.inhalt h3 {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.inhalt p,
.inhalt li {
  font-size: 1.0625rem;
  line-height: 1.6;
}

.inhalt p {
  margin: 0 0 1rem;
}

.inhalt > :last-child {
  margin-bottom: 0;
}

.inhalt ul,
.inhalt ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.inhalt li {
  margin: 0.25rem 0;
}

.inhalt a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

.kernsatz {
  font-size: clamp(1.1875rem, 2vw, 1.375rem) !important;
  font-weight: 500;
  line-height: 1.4 !important;
  color: var(--text);
}

.hinweis {
  font-size: 0.9375rem !important;
  color: var(--text-muted);
}

.beispiel-hinweis {
  margin: 0 0 0.5rem !important;
  font-size: 0.8125rem !important;
  font-weight: 600;
  color: var(--text-muted);
}

.schwach {
  color: var(--text-muted);
}

/* Karten: Tabellen, Wortlaut, Listen. */
.inhalt table,
blockquote.wortlaut,
.nein,
.reihenfolge,
.uebersicht {
  margin: 0 0 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 2px rgba(32, 28, 18, 0.04),
              0 1px 3px rgba(32, 28, 18, 0.06);
}

.inhalt table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.5;
}

.inhalt th,
.inhalt td {
  padding: 0.875rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--border);
}

.inhalt tr:first-child > th,
.inhalt tr:first-child > td {
  border-top: 0;
}

.inhalt thead th {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.inhalt tbody tr:first-child > * {
  border-top: 1px solid var(--border);
}

.inhalt table:not(:has(thead)) tbody tr:first-child > * {
  border-top: 0;
}

.inhalt tbody th {
  width: 12.5em;
  font-weight: 600;
}

.inhalt table.saetze tbody th {
  width: 50%;
  font-weight: 400;
}

.inhalt th .hinweis {
  font-weight: 400;
}

blockquote.wortlaut {
  padding: 1.25rem 1.5rem;
}

blockquote.wortlaut p {
  margin: 0 0 0.5rem;
}

.nein,
.reihenfolge,
.uebersicht {
  padding: 0 !important;
  list-style: none;
}

.nein li,
.reihenfolge li,
.uebersicht li {
  margin: 0;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--border);
}

.nein li:first-child,
.reihenfolge li:first-child,
.uebersicht li:first-child {
  border-top: 0;
}

.reihenfolge {
  counter-reset: schritt;
}

.reihenfolge li {
  counter-increment: schritt;
  position: relative;
  padding-left: 3.25rem;
}

.reihenfolge li::before {
  content: counter(schritt);
  position: absolute;
  left: 1.25rem;
  font-weight: 600;
  color: var(--accent);
}

.uebersicht li {
  padding: 1.25rem;
}

.uebersicht p {
  margin: 0 0 0.375rem;
  color: var(--text-muted);
}

.laden {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink) !important;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.offen {
  padding: 0 0.375rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.kopfleiste-nav a[aria-current="page"] {
  color: var(--text);
}

@media (hover: hover) {
  .laden:hover {
    background: var(--accent-hover);
  }
}

@media (max-width: 699.98px) {
  .inhalt thead {
    display: none;
  }

  .inhalt tbody th,
  .inhalt tbody td {
    display: block;
    width: auto !important;
  }

  .inhalt tbody td {
    border-top: 0 !important;
    padding-top: 0;
  }

  .inhalt tbody tr:first-child > th {
    border-top: 0;
  }

  .inhalt tbody td[data-kopf]::before {
    content: attr(data-kopf) ": ";
    font-size: 0.8125rem;
    color: var(--text-muted);
  }
}

/* Impressum und Datenschutz: Inhalt unverändert, nur im neuen Rahmen. */
.recht {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.recht h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}
