/* Selbst-gehostete Schriften – V4 Gesetze. Generiert von fetch-fonts.mjs. */
@font-face{font-family:'Spectral';font-style:italic;font-weight:400;font-display:swap;src:url('/v4/fonts/spectral-400i-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Spectral';font-style:italic;font-weight:400;font-display:swap;src:url('/v4/fonts/spectral-400i-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Spectral';font-style:normal;font-weight:300;font-display:swap;src:url('/v4/fonts/spectral-300-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Spectral';font-style:normal;font-weight:300;font-display:swap;src:url('/v4/fonts/spectral-300-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Spectral';font-style:normal;font-weight:400;font-display:swap;src:url('/v4/fonts/spectral-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Spectral';font-style:normal;font-weight:400;font-display:swap;src:url('/v4/fonts/spectral-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Spectral';font-style:normal;font-weight:500;font-display:swap;src:url('/v4/fonts/spectral-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Spectral';font-style:normal;font-weight:500;font-display:swap;src:url('/v4/fonts/spectral-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Spectral';font-style:normal;font-weight:600;font-display:swap;src:url('/v4/fonts/spectral-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Spectral';font-style:normal;font-weight:600;font-display:swap;src:url('/v4/fonts/spectral-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Spectral';font-style:normal;font-weight:700;font-display:swap;src:url('/v4/fonts/spectral-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Spectral';font-style:normal;font-weight:700;font-display:swap;src:url('/v4/fonts/spectral-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400;font-display:swap;src:url('/v4/fonts/fraunces-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400;font-display:swap;src:url('/v4/fonts/fraunces-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:500;font-display:swap;src:url('/v4/fonts/fraunces-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:500;font-display:swap;src:url('/v4/fonts/fraunces-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:600;font-display:swap;src:url('/v4/fonts/fraunces-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:600;font-display:swap;src:url('/v4/fonts/fraunces-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:700;font-display:swap;src:url('/v4/fonts/fraunces-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:700;font-display:swap;src:url('/v4/fonts/fraunces-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Atkinson Hyperlegible Next';font-style:normal;font-weight:400;font-display:swap;src:url('/v4/fonts/atk-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Atkinson Hyperlegible Next';font-style:normal;font-weight:400;font-display:swap;src:url('/v4/fonts/atk-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Atkinson Hyperlegible Next';font-style:normal;font-weight:500;font-display:swap;src:url('/v4/fonts/atk-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Atkinson Hyperlegible Next';font-style:normal;font-weight:500;font-display:swap;src:url('/v4/fonts/atk-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Atkinson Hyperlegible Next';font-style:normal;font-weight:600;font-display:swap;src:url('/v4/fonts/atk-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Atkinson Hyperlegible Next';font-style:normal;font-weight:600;font-display:swap;src:url('/v4/fonts/atk-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Atkinson Hyperlegible Next';font-style:normal;font-weight:700;font-display:swap;src:url('/v4/fonts/atk-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Atkinson Hyperlegible Next';font-style:normal;font-weight:700;font-display:swap;src:url('/v4/fonts/atk-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Atkinson Hyperlegible Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/v4/fonts/atkmono-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Atkinson Hyperlegible Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/v4/fonts/atkmono-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Atkinson Hyperlegible Mono';font-style:normal;font-weight:500;font-display:swap;src:url('/v4/fonts/atkmono-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Atkinson Hyperlegible Mono';font-style:normal;font-weight:500;font-display:swap;src:url('/v4/fonts/atkmono-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ===========================================================================
   KANON — Die deutschen Gesetze, neu gesetzt.
   Design-System. Hell, Buchsatz, "Schoenfelder"-Rot. Fuer ruhiges, langes
   Lesen (Zielgruppe: erfahrene Juristinnen und Juristen). Kein Darkmode.
   =========================================================================== */

:root {
  --opsz-display: 'opsz' 144;
  /* Papier & Tinte */
  --paper:      #FBF9F4;
  --paper-2:    #F4EFE5;
  --paper-3:    #EDE6D8;
  --ink:        #1B1915;
  --ink-soft:   #4C463C;
  --ink-faint:  #8A8071;
  /* Akzent: tiefes "Gesetzbuch"-Rot (Schoenfelder) */
  --rot:        #8A1C26;
  --rot-deep:   #6C1119;
  --rot-tint:   #F3E4E0;
  /* Funktional */
  --rule:       #E6DFD0;
  --rule-2:     #D8CFBB;
  --new:        #4B6A3A;   /* "neu" */
  --new-tint:   #E8EFE0;
  --chg:        #9A5B12;   /* "geaendert" */
  --chg-tint:   #F6EAD7;
  --sel:        #F0E2DD;

  --serif:   'Spectral', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --display: 'Fraunces', 'Spectral', Georgia, serif;
  --sans:    'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:    'Atkinson Hyperlegible Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --measure: 38rem;          /* Lesebreite */
  --gutter: 1.6rem;
  --radius: 7px;
  --shadow: 0 1px 2px rgba(35,28,18,.04), 0 8px 30px -12px rgba(35,28,18,.18);
  --shadow-pop: 0 6px 14px -6px rgba(35,28,18,.22), 0 22px 48px -20px rgba(35,28,18,.30);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.72;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-variant-ligatures: common-ligatures;
}
::selection { background: var(--sel); }

a { color: var(--rot); text-decoration: none; }
a:hover { color: var(--rot-deep); }
:focus-visible { outline: 2.5px solid var(--rot); outline-offset: 2px; border-radius: 3px; }

/* ---- Skip & a11y ---- */
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 200; }
.skip:focus { left: .5rem; top: .5rem; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =========================== Kopfzeile =================================== */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-head__in {
  max-width: 78rem; margin: 0 auto; padding: .55rem 1.4rem;
  display: flex; align-items: center; gap: 1.1rem;
}
.brand { display: flex; align-items: baseline; gap: .5rem; text-decoration: none; color: var(--ink); }
.brand__mark { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: .01em; }
.brand__mark b { color: var(--rot); font-weight: 700; }
.brand__sub { font-family: var(--sans); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.head-spacer { flex: 1; }

.searchbtn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-size: .82rem; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--rule-2); border-radius: 999px;
  padding: .4rem .8rem .4rem .7rem; cursor: pointer; transition: border-color .15s, box-shadow .15s;
  min-width: min(20rem, 38vw);
}
.searchbtn:hover { border-color: var(--ink-faint); box-shadow: var(--shadow); }
.searchbtn svg { width: 16px; height: 16px; flex: none; color: var(--ink-faint); }
.searchbtn .kbd { margin-left: auto; font-family: var(--mono); font-size: .7rem; color: var(--ink-faint); border: 1px solid var(--rule-2); border-radius: 4px; padding: .05rem .35rem; }
.searchbtn__txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lang {
  font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .04em;
  border: 1px solid var(--rule-2); border-radius: 999px; overflow: hidden; display: inline-flex; flex: none;
}
.lang button { font: inherit; border: 0; background: transparent; color: var(--ink-faint); padding: .32rem .6rem; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* =========================== Layout ===================================== */
.wrap { max-width: 78rem; margin: 0 auto; padding: 0 1.4rem; }
.page { padding: 2.4rem 0 5rem; }

.breadcrumb { font-family: var(--sans); font-size: .78rem; color: var(--ink-faint); margin: 0 0 1.4rem; letter-spacing: .01em; display: flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: center; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--rot); }
.breadcrumb .sep { color: var(--rule-2); }

/* Zwei-Spalten: Lesetext + Marginalspalte */
.doc { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, 17rem); gap: 3rem; align-items: start; }
@media (max-width: 60rem) { .doc { grid-template-columns: 1fr; gap: 2rem; } }

/* =========================== § / Norm =================================== */
.norm__kicker { font-family: var(--sans); font-size: .73rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--rot); margin: 0 0 .5rem; }
.norm__enbez { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4.6vw, 2.9rem); line-height: 1.08; letter-spacing: -.01em; margin: 0; }
.norm__titel { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.4rem); color: var(--ink-soft); margin: .5rem 0 0; line-height: 1.3; }
.norm__meta { font-family: var(--sans); font-size: .78rem; color: var(--ink-faint); margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; }
.norm__rule { border: 0; border-top: 1px solid var(--rule); margin: 1.6rem 0 2rem; }

.badge { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .03em; padding: .12rem .5rem; border-radius: 999px; }
.badge--chg { color: var(--chg); background: var(--chg-tint); }
.badge--new { color: var(--new); background: var(--new-tint); }

/* Absatz mit haengender Marke (klassischer Gesetzessatz) */
.text { font-size: 1.0rem; }
.abs { position: relative; padding-left: 2.6rem; margin: 0 0 1.05rem; }
.abs__m { position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: .82em; font-weight: 500; color: var(--rot); padding-top: .18em; }
.abs--plain { padding-left: 0; }
.abs p { margin: 0; }
.text :where(p) { hanging-punctuation: first; }

/* Verweis-Links im Fliesstext */
a.ref { color: var(--rot); border-bottom: 1px solid color-mix(in srgb, var(--rot) 32%, transparent); white-space: nowrap; }
a.ref:hover { border-bottom-color: var(--rot); background: var(--rot-tint); border-radius: 2px; }
.reftxt { color: var(--ink-soft); }   /* nicht aufloesbarer Verweis */

/* Diff */
.diff { font-size: .94rem; background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.2rem; margin-top: 1.4rem; line-height: 1.7; }
.diff del { color: var(--rot-deep); background: #f6e0e0; text-decoration: line-through; text-decoration-thickness: 1px; }
.diff ins { color: var(--new); background: var(--new-tint); text-decoration: none; }
details.compare { margin-top: 1.6rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
details.compare > summary { font-family: var(--sans); font-size: .82rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .4rem; }
details.compare > summary::-webkit-details-marker { display: none; }
details.compare > summary::before { content: "▸"; color: var(--rot); }
details.compare[open] > summary::before { content: "▾"; }

/* Norm-Werkzeuge */
.tools { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.2rem; }
.tool { font-family: var(--sans); font-size: .78rem; color: var(--ink-soft); background: var(--paper-2); border: 1px solid var(--rule); border-radius: 999px; padding: .35rem .85rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; transition: border-color .15s, background .15s; }
.tool:hover { border-color: var(--ink-faint); background: var(--paper-3); color: var(--ink); }
.tool svg { width: 14px; height: 14px; }

/* Prev/Next */
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; border-top: 1px solid var(--rule); padding-top: 1.4rem; }
.pager a { font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); max-width: 46%; }
.pager a:hover { color: var(--rot); }
.pager a .lbl { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .15rem; }
.pager a.next { text-align: right; margin-left: auto; }

/* =========================== Marginalspalte ============================= */
.margin { position: sticky; top: 4.4rem; font-family: var(--sans); }
@media (max-width: 60rem) { .margin { position: static; } }
.mbox { margin-bottom: 1.8rem; }
.mbox__h { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 .7rem; padding-bottom: .4rem; border-bottom: 1px solid var(--rule); }
.mlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.mlist a { display: block; padding: .32rem .5rem; border-radius: 6px; color: var(--ink-soft); font-size: .86rem; line-height: 1.35; transition: background .12s; }
.mlist a:hover { background: var(--paper-2); color: var(--rot); }
.mlist a .num { font-family: var(--mono); font-size: .82em; color: var(--rot); margin-right: .45rem; }
.mlist a .ab { font-size: .72em; color: var(--ink-faint); }
.mempty { font-size: .82rem; color: var(--ink-faint); font-style: italic; font-family: var(--serif); }
.mmore { font-size: .78rem; color: var(--rot); background: none; border: 0; cursor: pointer; padding: .3rem .5rem; font-family: var(--sans); }

/* =========================== Landing ==================================== */
.hero { padding: 3.2rem 0 1rem; max-width: 46rem; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 7vw, 4.4rem); line-height: 1.02; letter-spacing: -.018em; margin: 0; }
.hero h1 b { color: var(--rot); font-weight: 700; }
.hero__lead { font-size: clamp(1.12rem, 2.4vw, 1.4rem); color: var(--ink-soft); line-height: 1.5; margin: 1.3rem 0 0; max-width: 34rem; }
.hero__search { margin: 2.2rem 0 .6rem; max-width: 38rem; }
.bigsearch { width: 100%; display: flex; align-items: center; gap: .7rem; background: var(--paper); border: 1.5px solid var(--rule-2); border-radius: 999px; padding: .85rem 1.3rem; cursor: text; transition: border-color .15s, box-shadow .15s; }
.bigsearch:hover, .bigsearch:focus-within { border-color: var(--rot); box-shadow: var(--shadow); }
.bigsearch svg { width: 20px; height: 20px; color: var(--ink-faint); flex: none; }
.bigsearch span { font-family: var(--sans); color: var(--ink-faint); font-size: 1rem; }
.hero__hint { font-family: var(--sans); font-size: .8rem; color: var(--ink-faint); margin-top: .8rem; }
.hero__hint a { color: var(--ink-soft); border-bottom: 1px solid var(--rule-2); }

.section { margin-top: 4.2rem; }
.section__h { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 1.4rem; display: flex; align-items: center; gap: .8rem; }
.section__h::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

.katgroup { margin-bottom: 2.4rem; }
.katgroup__h { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink-soft); margin: 0 0 .9rem; }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: .9rem; }
.code { display: block; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1rem 1.2rem; transition: border-color .15s, box-shadow .15s, transform .15s; }
.code:hover { border-color: var(--rot); box-shadow: var(--shadow); transform: translateY(-2px); }
.code__top { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.code__abbr { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--rot); letter-spacing: .005em; }
.code__n { font-family: var(--mono); font-size: .74rem; color: var(--ink-faint); }
.code__title { font-size: .98rem; color: var(--ink-soft); margin: .35rem 0 0; line-height: 1.3; }
.code__stand { font-family: var(--sans); font-size: .72rem; color: var(--ink-faint); margin-top: .7rem; }

/* Chronik */
.chron { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.chron li { border-bottom: 1px solid var(--rule); }
.chron a { display: flex; align-items: baseline; gap: .9rem; padding: .8rem .2rem; text-decoration: none; color: var(--ink); }
.chron a:hover { background: var(--paper-2); }
.chron .date { font-family: var(--mono); font-size: .76rem; color: var(--ink-faint); flex: none; width: 5.5rem; }
.chron .what { flex: 1; }
.chron .what b { font-weight: 600; }
.chron .what .t { color: var(--ink-soft); font-style: italic; }

/* "Wie es funktioniert" */
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.6rem; }
.how__step { }
.how__num { font-family: var(--mono); font-size: .78rem; color: var(--rot); font-weight: 500; }
.how__t { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; margin: .35rem 0 .4rem; }
.how__d { font-size: .96rem; color: var(--ink-soft); line-height: 1.5; }

/* =========================== Gesetz-Inhalt (TOC) ======================== */
.lawhead { max-width: 50rem; margin-bottom: 2rem; }
.lawhead__abbr { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 5vw, 3rem); color: var(--rot); }
.lawhead__title { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--ink-soft); margin: .3rem 0 0; }
.lawhead__meta { font-family: var(--sans); font-size: .8rem; color: var(--ink-faint); margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }

.toc { columns: 2; column-gap: 3rem; }
@media (max-width: 46rem) { .toc { columns: 1; } }
.toc__group { break-inside: avoid; margin: 0 0 1.5rem; }
.toc__gh { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 .5rem; line-height: 1.3; }
.toc__list { list-style: none; margin: 0; padding: 0; }
.toc__list li { margin: 0; }
.toc__list a { display: flex; gap: .6rem; padding: .22rem 0; color: var(--ink); text-decoration: none; line-height: 1.35; font-size: .94rem; }
.toc__list a:hover { color: var(--rot); }
.toc__list a .e { font-family: var(--mono); font-size: .8em; color: var(--rot); flex: none; min-width: 3.4rem; }
.toc__list a .t { color: var(--ink-soft); }
.toc__list a:hover .t { color: var(--rot); }

/* =========================== Such-Overlay =============================== */
.ov { position: fixed; inset: 0; z-index: 100; display: none; }
.ov[open], .ov.on { display: block; }
.ov__bg { position: absolute; inset: 0; background: rgba(27,25,21,.34); backdrop-filter: blur(2px); }
.ov__panel { position: relative; max-width: 42rem; margin: 8vh auto 0; background: var(--paper); border: 1px solid var(--rule-2); border-radius: 12px; box-shadow: var(--shadow-pop); overflow: hidden; }
.ov__in { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--rule); }
.ov__in svg { width: 20px; height: 20px; color: var(--ink-faint); flex: none; }
.ov__in input { flex: 1; border: 0; background: transparent; font-family: var(--serif); font-size: 1.25rem; color: var(--ink); outline: none; }
.ov__in input::placeholder { color: var(--ink-faint); }
.ov__esc { font-family: var(--mono); font-size: .7rem; color: var(--ink-faint); border: 1px solid var(--rule-2); border-radius: 4px; padding: .1rem .4rem; }
.ov__res { max-height: 60vh; overflow-y: auto; padding: .4rem; }
.ov__hint { padding: 1.6rem 1.2rem; color: var(--ink-faint); font-family: var(--sans); font-size: .85rem; text-align: center; }
.res { display: flex; align-items: baseline; gap: .7rem; padding: .6rem .8rem; border-radius: 8px; text-decoration: none; color: var(--ink); }
.res[aria-selected="true"], .res:hover { background: var(--paper-2); }
.res__e { font-family: var(--mono); font-size: .8rem; color: var(--rot); flex: none; min-width: 6.2rem; }
.res__b { flex: 1; min-width: 0; }
.res__t { font-weight: 500; }
.res__s { font-size: .82rem; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res mark { background: var(--rot-tint); color: var(--rot-deep); border-radius: 2px; padding: 0 1px; }

/* =========================== Hover-Vorschau ============================= */
.pv { position: fixed; z-index: 120; max-width: 24rem; background: var(--paper); border: 1px solid var(--rule-2); border-radius: 10px; box-shadow: var(--shadow-pop); padding: .85rem 1rem; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; font-family: var(--serif); }
.pv.on { opacity: 1; transform: translateY(0); }
.pv__e { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--rot); margin-bottom: .25rem; }
.pv__t { font-style: italic; color: var(--ink-soft); font-size: .92rem; margin-bottom: .3rem; }
.pv__s { font-size: .9rem; color: var(--ink); line-height: 1.45; }

/* =========================== Fusszeile ================================== */
.foot { border-top: 1px solid var(--rule); margin-top: 4rem; background: var(--paper-2); }
.foot__in { max-width: 78rem; margin: 0 auto; padding: 2.6rem 1.4rem 3rem; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
@media (max-width: 46rem) { .foot__in { grid-template-columns: 1fr; gap: 1.5rem; } }
.foot__brand { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.foot__brand b { color: var(--rot); }
.foot p { font-family: var(--sans); font-size: .82rem; color: var(--ink-faint); line-height: 1.55; margin: .6rem 0 0; max-width: 24rem; }
.foot__h { font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 .7rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 .45rem; }
.foot a { font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); }
.foot a:hover { color: var(--rot); }
.foot__legal { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 1.2rem; margin-top: .6rem; font-family: var(--sans); font-size: .76rem; color: var(--ink-faint); line-height: 1.55; }

/* Auto-Aktualitaet Hinweisband */
.autopilot { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--sans); font-size: .76rem; color: var(--new); background: var(--new-tint); border-radius: 999px; padding: .25rem .7rem; }
.autopilot .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--new); box-shadow: 0 0 0 0 color-mix(in srgb, var(--new) 60%, transparent); animation: pulse 2.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--new) 55%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* =========================== Print ===================================== */
@media print {
  .site-head, .margin, .tools, .pager, .foot, .searchbtn, .lang, .hero__search { display: none !important; }
  body { font-size: 11.5pt; background: #fff; color: #000; }
  .doc { display: block; }
  a.ref { color: #000; border: 0; }
  .norm__enbez { font-size: 20pt; }
  .wrap, .page { max-width: none; padding: 0; }
}

/* Utility */
.lead-note { font-family: var(--sans); font-size: .82rem; color: var(--ink-faint); }
[hidden] { display: none !important; }
