/* recht.css */

.recht { padding: 56px 0 80px; background: var(--weiss); border-bottom: 1px solid var(--rahmen); }
@media (min-width: 720px) { .recht { padding: 72px 0 112px; } }
.recht-wrap > * { max-width: 72ch; }
.recht h1 { font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.2rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; margin-bottom: 32px; overflow-wrap: break-word; hyphens: auto; }

.recht-teil { padding: 32px 0 40px; border-top: 1px solid var(--rahmen); }
.recht-teil:last-child { padding-bottom: 0; }
.recht-teil h2 { font-size: 1.625rem; line-height: 1.2; letter-spacing: -.02em; font-weight: 750; margin-bottom: 20px; overflow-wrap: break-word; hyphens: auto; }

.recht-text { color: var(--text); font-size: 1rem; line-height: 1.7; overflow-wrap: break-word; }
.recht-text > * + * { margin-top: 1em; }
.recht-text h3 { font-size: 1.1875rem; line-height: 1.3; font-weight: 700; margin-top: 2em; }
.recht-text h4 { font-size: 1rem; line-height: 1.4; font-weight: 700; margin-top: 1.6em; }
.recht-text ul, .recht-text ol { padding-left: 1.4em; }
.recht-text li + li { margin-top: .35em; }
.recht-text strong { font-weight: 650; }
.recht-pflicht { color: var(--text-2); }

.recht-vorspann { color: var(--text-2); }
.recht-pdf { margin-top: 8px; margin-bottom: 32px; }
.recht-pdf .textlink { min-height: 44px; }
.recht-text h2 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -.02em; font-weight: 750; margin-top: 2.4em; padding-top: 24px; border-top: 1px solid var(--rahmen); overflow-wrap: break-word; hyphens: auto; }
.recht-text h3 { overflow-wrap: break-word; hyphens: auto; }
.recht-text blockquote { padding-left: 16px; border-left: 3px solid var(--rahmen); color: var(--text-2); }
.recht-text code { font-size: .875em; overflow-wrap: anywhere; }
.recht-text table { width: 100%; border-collapse: collapse; font-size: .875rem; line-height: 1.5; table-layout: fixed; }
.recht-text th, .recht-text td { padding: 8px 6px; border: 1px solid var(--rahmen); text-align: left; vertical-align: top; overflow-wrap: anywhere; hyphens: auto; }
.recht-text th { background: var(--flaeche); font-weight: 650; }
@media (min-width: 720px) { .recht-text th, .recht-text td { padding: 8px 10px; } }

.recht-fehler-text { font-size: 1.125rem; color: var(--text-2); }
.recht-ziele { margin-top: 28px; }
.recht-ziele ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.recht-ziele .textlink { min-height: 44px; font-size: 1.0625rem; }
@media (min-width: 720px) { .recht-ziele ul { flex-direction: row; flex-wrap: wrap; gap: 8px 32px; } }

@media print {
  .recht { padding: 0 0 24px; border: 0; }
  .recht-wrap > * { max-width: none; }
  .recht h1 { font-size: 1.75rem; margin-bottom: 16px; }
  .recht-teil { padding: 16px 0; break-inside: auto; }
  .recht-teil h2 { font-size: 1.25rem; break-after: avoid; }
  .recht-text h2, .recht-text h3 { break-after: avoid; }
  .recht-pdf { display: none; }
  .recht-text, .recht-pflicht, .recht-fehler-text { color: var(--text); }
  .recht-text a, .recht-ziele a { color: var(--text); }
}
/* messung.css */
.mb { container: mb / inline-size; width: min(40rem, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: var(--r-l); background: var(--weiss); color: var(--text); box-shadow: var(--schatten-2); overflow: hidden; }
.mb[open] { display: flex; flex-direction: column; }
.mb::backdrop { background: var(--abdunkelung); }
.mb:focus, .mb-titel:focus { outline: none; }
.mb-ebene:not([hidden]) { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.mb-text { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 24px 8px; font-size: .9375rem; line-height: 1.55; color: var(--text-2); overflow-wrap: break-word; }
.mb-titel { font-size: 1.1875rem; line-height: 1.3; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.mb-knoepfe { flex: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 24px 24px; }
.mb-knoepfe .knopf { width: 100%; min-width: 0; padding-inline: .75rem; overflow-wrap: anywhere; }

.mb-art { border-top: 1px solid var(--rahmen); padding-top: 14px; margin-top: 14px; }
.mb-art > * + * { margin-top: 6px; }
.mb-art-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mb-art-titel { min-width: 0; font-weight: 700; color: var(--text); }
label.mb-art-titel { cursor: pointer; }
.mb-art code { font-size: .875em; }
.mb-schalter-ort { position: relative; flex: none; width: 44px; height: 26px; }
.mb-schalter-feld { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mb-schalter { position: absolute; inset: 0; border-radius: 13px; background: var(--knopf-rahmen); transition: background-color .15s; }
.mb-schalter::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--weiss); box-shadow: var(--schatten-1); transition: transform .15s var(--ease); }
.mb-schalter-feld:checked + .mb-schalter { background: var(--blau); }
.mb-schalter-feld:checked + .mb-schalter::before { transform: translateX(18px); }
.mb-schalter-feld:focus-visible + .mb-schalter { outline: 3px solid var(--blau); outline-offset: 2px; }

@container mb (min-width: 30em) {
  .mb-text { padding: 32px 32px 8px; }
  .mb-knoepfe { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px 32px 32px; }
  .mb-mehr { grid-column: 1 / -1; }
}
@container mb (min-width: 36em) { .mb-knoepfe--drei { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container mb (min-width: 30em) and (max-width: 35.99em) { .mb-knoepfe--drei { grid-template-columns: minmax(0, 1fr); } }

@media screen { :root:has(.mb[open]) { overflow: hidden; } }
@media (prefers-reduced-motion: no-preference) {
  .mb[open], .mb[open]::backdrop { animation: mb-ein .18s ease-out; }
}
@media (prefers-reduced-motion: reduce) { .mb-schalter, .mb-schalter::before { transition: none; } }
@keyframes mb-ein { from { opacity: 0; } }
@media print { .mb, .mb::backdrop { display: none !important; } }
body[tabindex="-1"]:focus { outline: none; }