/*
Theme Name: AKP Register
Description: Theme für auskunftsportal.at nach dem Designsystem „Auskunftsportal Register": Papierton, Haarlinien, eine Signalfarbe. Arbeitet mit dem Plugin AKP Core zusammen.
Author: Maik Möhring Media
Version: 1.17.0
Requires PHP: 7.4
Text Domain: akp-register
*/

/* === Schriften, lokal ausgeliefert — keine Verbindung zu Google === */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/InstrumentSerif-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: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/InstrumentSerif-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/JetBrainsMono-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/JetBrainsMono-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/JetBrainsMono-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/JetBrainsMono-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: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/PublicSans-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: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/PublicSans-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: 'Public Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/PublicSans-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: 'Public Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/PublicSans-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: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/PublicSans-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: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/PublicSans-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: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/PublicSans-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: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/PublicSans-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;
}

/* === Tokens aus dem Designsystem — nicht von Hand ändern, sondern dort === */
:root, [data-theme="papier"] {
  --surface-grund: #F4F1EA;
  --surface-karte: #FFFFFF;
  --surface-gedeckt: #FBFAF6;
  --surface-band: #EAE5DA;
  --surface-invers: #16181C;
  --ink: #16181C;
  --ink-sekundaer: #3A3D44;
  --ink-tertiaer: #5F6269;
  --ink-invers: #F4F1EA;
  --ink-invers-gedaempft: #C6C2B8;
  --akzent: #A81C2E;
  --akzent-tief: #7C0D1D;
  --linie: #D7D1C4;
  --linie-stark: #16181C;
  --linie-zart: #E2DDD2;
  --fokus: #A81C2E;
}
[data-theme="nacht"] {
  --surface-grund: #16181C;
  --surface-karte: #1E2127;
  --surface-gedeckt: #1A1D23;
  --surface-band: #23262C;
  --surface-invers: #F4F1EA;
  --ink: #F4F1EA;
  --ink-sekundaer: #C6C2B8;
  --ink-tertiaer: #9BA0A9;
  --ink-invers: #16181C;
  --ink-invers-gedaempft: #3A3D44;
  --akzent: #E79AA6;
  --akzent-tief: #F2B6BF;
  --linie: #3C4048;
  --linie-stark: #F4F1EA;
  --linie-zart: #2A2E35;
  --fokus: #E79AA6;
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius-kante: 0px;
  --radius-karte: 2px;
  --radius-pille: 999px;
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-text: "Public Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --inhalt-breite: 1440px;
}
.display-xl { font-family: var(--font-display); font-size: 78px; line-height: 76px; font-weight: 400; letter-spacing: -0.02em; }
.display-l { font-family: var(--font-display); font-size: 62px; line-height: 64px; font-weight: 400; letter-spacing: -0.02em; }
.display-m { font-family: var(--font-display); font-size: 38px; line-height: 44px; font-weight: 400; }
.display-s { font-family: var(--font-display); font-size: 27px; line-height: 32px; font-weight: 400; }
.zahl { font-family: var(--font-display); font-size: 46px; line-height: 46px; font-weight: 400; }
.lead { font-family: var(--font-text); font-size: 19px; line-height: 30px; font-weight: 400; }
.body { font-family: var(--font-text); font-size: 18px; line-height: 31px; font-weight: 400; }
.body-s { font-family: var(--font-text); font-size: 15px; line-height: 23px; font-weight: 400; }
.body-stark { font-family: var(--font-text); font-size: 17px; line-height: 26px; font-weight: 600; }
.fussnote { font-family: var(--font-text); font-size: 13px; line-height: 20px; font-weight: 400; }
.label { font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.12em; }
.label-l { font-family: var(--font-mono); font-size: 12px; line-height: 18px; font-weight: 400; letter-spacing: 0.08em; }
.daten { font-family: var(--font-mono); font-size: 15px; line-height: 22px; font-weight: 400; }

/* === Grundlage === */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--surface-grund);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 31px;
  -webkit-font-smoothing: antialiased;
}
img, svg, table { max-width: 100%; }
img { height: auto; }
a { color: var(--akzent); text-decoration: none; }
a:hover { color: var(--akzent-tief); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--fokus); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; margin: 0 0 var(--space-4); }
h1 { font-size: 62px; line-height: 64px; }
h2 { font-size: 38px; line-height: 44px; margin-top: var(--space-7); }
h3 { font-family: var(--font-text); font-weight: 600; font-size: 19px; line-height: 28px; letter-spacing: 0; }
p { margin: 0 0 var(--space-4); }
.akp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.akp-offen { color: var(--ink-tertiaer); }
.akp-ohne-link { color: var(--ink-sekundaer); }

/* === Rahmen === */
.akp-band { padding: 0 var(--space-8); }
.akp-inhalt { max-width: var(--inhalt-breite); margin: 0 auto; padding: var(--space-7) var(--space-8) var(--space-8); }
.akp-inhalt > * { max-width: 820px; }
.akp-inhalt > .akp-datenblatt, .akp-inhalt > .akp-liste, .akp-inhalt > table { max-width: 100%; }

/* === Kopf- und Fußleiste === */
.akp-hinweisleiste {
  background: var(--surface-invers); color: var(--ink-invers-gedaempft);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  display: flex; justify-content: space-between; gap: var(--space-5);
  padding: 13px var(--space-8);
}
.akp-kopf {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
  padding: var(--space-5) var(--space-8); border-bottom: 1px solid var(--linie);
}
.akp-marke { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.akp-marke:hover { text-decoration: none; }
.akp-marke-wort { font-family: var(--font-display); font-size: 30px; }
.akp-marke-tld { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--akzent); }
.akp-navi { display: flex; align-items: center; gap: var(--space-6); font-size: 15px; font-weight: 500; }
.akp-navi a { color: var(--ink); }
.akp-navi .current-menu-item > a { border-bottom: 2px solid var(--akzent); padding-bottom: 4px; }
.akp-navi-aktion {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px;
  background: var(--akzent); color: var(--ink-invers); border-radius: var(--radius-karte); font-weight: 600;
}
.akp-navi-aktion:hover { background: var(--akzent-tief); color: var(--ink-invers); text-decoration: none; }
.akp-fuss {
  background: var(--surface-invers); color: var(--ink-invers-gedaempft);
  display: flex; justify-content: space-between; gap: var(--space-7); flex-wrap: wrap;
  padding: var(--space-7) var(--space-8);
}
.akp-fuss a { color: var(--ink-invers-gedaempft); }
.akp-fuss a:hover { color: var(--ink-invers); }
.akp-fuss-spalte { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.akp-fuss-spalte .label { color: var(--ink-tertiaer); }

/* === Brotkrume === */
.akp-brotkrume { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink-tertiaer); margin-bottom: var(--space-5); }
.akp-brotkrume a { color: var(--ink-tertiaer); }

/* === Bausteine aus dem Designsystem === */
.akp-answer-capsule {
  background: var(--surface-karte);
  border: 1px solid var(--linie); border-left: 3px solid var(--akzent);
  border-radius: var(--radius-karte); padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-6);
}
.akp-answer-capsule p { margin: 0; }

.akp-datenblatt { background: var(--surface-karte); border: 1px solid var(--linie-stark); border-radius: var(--radius-karte); margin-bottom: var(--space-6); }
.akp-datenblatt-kopf { display: flex; justify-content: space-between; padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--linie-stark); }
.akp-datenblatt table { width: 100%; border-collapse: collapse; font-size: 16px; }
.akp-datenblatt th { text-align: left; font-weight: 400; color: var(--ink-sekundaer); padding: var(--space-4) var(--space-6); width: 36%; }
.akp-datenblatt td { text-align: right; padding: var(--space-4) var(--space-6); }
.akp-datenblatt tr + tr { border-top: 1px solid var(--linie-zart); }

.akp-liste { width: 100%; border-collapse: collapse; font-size: 16px; margin-bottom: var(--space-6); }
.akp-liste th, .akp-liste td { padding: var(--space-4) var(--space-3) var(--space-4) 0; text-align: left; vertical-align: top; }
.akp-liste thead th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-sekundaer); font-weight: 500; }
.akp-liste thead tr { border-top: 1.5px solid var(--linie-stark); border-bottom: 1px solid var(--linie-stark); }
.akp-liste tbody tr { border-bottom: 1px solid var(--linie); }
.akp-liste tbody tr:last-child { border-bottom: 1.5px solid var(--linie-stark); }

.akp-quellen { background: var(--surface-karte); border: 1px solid var(--linie); border-radius: var(--radius-karte); padding: var(--space-5) var(--space-6); margin-bottom: var(--space-5); }
.akp-quellen ul { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); font-size: 15px; line-height: 23px; color: var(--ink-sekundaer); }
.akp-quellen li + li { border-top: 1px solid var(--linie-zart); padding-top: var(--space-3); }

.akp-hinweis { background: var(--surface-band); border: 1px solid var(--linie); border-radius: var(--radius-karte); padding: var(--space-5) var(--space-6); color: var(--ink-sekundaer); font-size: 15px; line-height: 23px; }

.akp-zaehler { list-style: none; margin: var(--space-6) 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.akp-zaehler .zahl { display: block; font-family: var(--font-display); font-size: 46px; line-height: 1; font-weight: 400; }
.akp-zaehler .label { color: var(--ink-tertiaer); }

/* Suchleiste */
.akp-suche { display: flex; max-width: 620px; }
.akp-suche input {
  flex-grow: 1; min-height: 56px; padding: 0 20px; font-family: var(--font-text); font-size: 17px;
  color: var(--ink); background: var(--surface-karte);
  border: 1.5px solid var(--linie-stark); border-right: none;
  border-radius: var(--radius-karte) 0 0 var(--radius-karte);
}
.akp-suche button {
  min-height: 56px; padding: 0 28px; background: var(--surface-invers); color: var(--ink-invers);
  border: 1.5px solid var(--linie-stark); border-radius: 0 var(--radius-karte) var(--radius-karte) 0;
  font-family: var(--font-text); font-size: 16px; font-weight: 600; cursor: pointer;
}

/* Themenkarten */
.akp-themen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); margin: var(--space-6) 0; }
.akp-themen a {
  min-height: 178px; padding: var(--space-5); display: flex; flex-direction: column; gap: 9px;
  background: var(--surface-gedeckt); border: 1px solid var(--linie); border-radius: var(--radius-karte); color: var(--ink);
}
.akp-themen a:hover { border-color: var(--akzent); text-decoration: none; }
.akp-themen a.invers { background: var(--surface-invers); color: var(--ink-invers); border-color: var(--surface-invers); }
.akp-themen .nr { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--akzent); }
.akp-themen .name { font-family: var(--font-display); font-size: 25px; line-height: 1.15; }
.akp-themen .text { font-size: 14px; line-height: 21px; color: var(--ink-sekundaer); }
.akp-themen a.invers .text { color: var(--ink-invers-gedaempft); }
.akp-themen .menge { margin-top: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-tertiaer); }
.akp-themen a.invers .menge { color: var(--ink-invers); }

/* === Mobil === */
@media (max-width: 900px) {
  body { font-size: 17px; line-height: 28px; }
  h1 { font-size: 40px; line-height: 42px; }
  h2 { font-size: 28px; line-height: 34px; }
  .akp-band, .akp-kopf, .akp-fuss, .akp-hinweisleiste { padding-left: 18px; padding-right: 18px; }
  .akp-inhalt { padding: var(--space-6) 18px var(--space-7); }
  .akp-navi { display: none; }
  .akp-navi.offen { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: var(--space-4); background: var(--surface-karte); border-bottom: 1px solid var(--linie); padding: var(--space-5) 18px; z-index: 20; }
  .akp-navi-schalter { display: inline-flex; }
  .akp-themen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .akp-zaehler { grid-template-columns: 1fr; }
  .akp-datenblatt th, .akp-datenblatt td { display: block; width: auto; text-align: left; padding: var(--space-3) var(--space-5); }
  .akp-datenblatt th { padding-bottom: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-tertiaer); }
  .akp-liste { display: block; overflow-x: auto; }
}
.akp-navi-schalter {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--linie); border-radius: var(--radius-karte); cursor: pointer;
}

/* === Druck === */
@media print {
  .akp-hinweisleiste, .akp-navi, .akp-fuss { display: none; }
  body { background: #fff; }
}

/* === Autorenbox === */
.akp-autor {
  background: var(--surface-karte); border: 1px solid var(--linie); border-radius: var(--radius-karte);
  padding: var(--space-5) var(--space-6); margin: var(--space-6) 0;
  display: flex; flex-direction: column; gap: var(--space-2);
}
.akp-autor .label { color: var(--ink-tertiaer); }
.akp-autor-name { margin: 0; font-family: var(--font-display); font-size: 25px; }
.akp-autor-rolle { font-family: var(--font-text); font-size: 15px; color: var(--ink-tertiaer); }
.akp-autor-bio { margin: 0; font-size: 15px; line-height: 23px; color: var(--ink-sekundaer); }
.akp-autor-links { margin: var(--space-2) 0 0; font-size: 14px; }

/* === Zweispaltiges Layout der Inhaltsseiten === */
.akp-zweispaltig {
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  column-gap: var(--space-8); align-items: start;
}
.akp-zweispaltig .akp-spalte-text { max-width: 820px; }
.akp-zweispaltig .akp-spalte-text > * { max-width: 100%; }
.akp-seitenleiste { position: sticky; top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-5); }

.akp-karte { background: var(--surface-karte); border: 1px solid var(--linie); border-radius: var(--radius-karte); padding: var(--space-5); }
.akp-karte .label { display: block; color: var(--ink-tertiaer); margin-bottom: var(--space-3); }
.akp-karte p { font-size: 15px; line-height: 23px; color: var(--ink-sekundaer); }
.akp-karte-invers { background: var(--surface-invers); border-color: var(--surface-invers); }
.akp-karte-invers .label { color: var(--akzent); }
.akp-karte-invers p { color: var(--ink-invers-gedaempft); }
.akp-knopf {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  background: var(--akzent); color: var(--ink-invers); border-radius: var(--radius-karte); font-weight: 600; font-size: 15px;
}
.akp-knopf:hover { background: var(--akzent-tief); color: var(--ink-invers); text-decoration: none; }

.akp-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.akp-toc li { border-top: 1px solid var(--linie-zart); }
.akp-toc li:first-child { border-top: none; }
.akp-toc a { display: block; padding: 9px 0; font-size: 15px; line-height: 21px; color: var(--ink); }
.akp-toc a:hover { color: var(--akzent); text-decoration: none; }
.akp-toc .stufe-3 a { padding-left: var(--space-4); font-size: 14px; color: var(--ink-sekundaer); }

.akp-verwandte { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.akp-verwandte li { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 22px; }
.akp-verwandte li + li { border-top: 1px solid var(--linie-zart); padding-top: var(--space-3); }
.akp-verwandte-datum { font-family: var(--font-mono); font-size: 11px; color: var(--ink-tertiaer); }

.akp-beitragsbild { margin: 0 0 var(--space-6); }
.akp-beitragsbild img { width: 100%; height: auto; border-radius: var(--radius-karte); display: block; }
.akp-beitragsbild figcaption { margin-top: var(--space-2); font-size: 13px; line-height: 20px; color: var(--ink-tertiaer); }

/* Sprungziele nicht unter der Kopfleiste verstecken */
.akp-spalte-text h2, .akp-spalte-text h3 { scroll-margin-top: var(--space-6); }

@media (max-width: 1100px) {
  .akp-zweispaltig { grid-template-columns: 1fr; row-gap: var(--space-6); }
  .akp-seitenleiste { position: static; }
  .akp-toc { order: -1; }
}

/* === Kachel-Verzeichnis === */
.akp-kacheln {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4); margin: var(--space-5) 0 var(--space-7);
}
.akp-kacheln-klein { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.akp-kachel {
  display: flex; flex-direction: column; gap: 6px;
  min-height: 124px; padding: var(--space-4);
  background: var(--surface-karte); border: 1px solid var(--linie);
  border-radius: var(--radius-karte); color: var(--ink);
  transition: border-color 120ms ease, transform 120ms ease;
}
.akp-kachel:hover { border-color: var(--akzent); text-decoration: none; transform: translateY(-1px); }
.akp-kachel:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }

.akp-kachel-invers { background: var(--surface-invers); border-color: var(--surface-invers); color: var(--ink-invers); }
.akp-kachel-invers:hover { border-color: var(--akzent); color: var(--ink-invers); }

.akp-kachel-art { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--akzent); }
.akp-kachel-name { font-family: var(--font-display); font-size: 22px; line-height: 1.12; }
.akp-kachel-ort { font-size: 13px; line-height: 19px; color: var(--ink-sekundaer); }
.akp-kachel-invers .akp-kachel-ort { color: var(--ink-invers-gedaempft); }
.akp-kachel-fuss {
  margin-top: auto; padding-top: 8px; border-top: 1px solid var(--linie-zart);
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-tertiaer);
}
.akp-kachel-invers .akp-kachel-fuss { border-top-color: #2E323A; color: var(--ink-invers); }
.akp-kacheln-klein .akp-kachel { min-height: 92px; }
.akp-kacheln-klein .akp-kachel-name { font-size: 19px; }

@media (max-width: 1100px) { .akp-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); } .akp-kacheln-klein { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) { .akp-kacheln, .akp-kacheln-klein { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* === Amtswege-Liste === */
.akp-amtswege { list-style: none; margin: 0 0 var(--space-6); padding: 0; }
.akp-amtswege li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding: 11px 0; border-top: 1px solid var(--linie-zart); }
.akp-amtswege li:last-child { border-bottom: 1px solid var(--linie-zart); }
.akp-amtswege a { font-weight: 600; }

/* === Startseite === */
.akp-start { max-width: none; padding: 0; }
.akp-start > .akp-band { max-width: var(--inhalt-breite); margin: 0 auto; }
.akp-abschnitt { padding: var(--space-7) var(--space-8); }
.akp-abschnitt-gedeckt { background: var(--surface-gedeckt); max-width: none; }
.akp-abschnitt-gedeckt > * { max-width: var(--inhalt-breite); margin-left: auto; margin-right: auto; }
.akp-abschnitt-kopf { display: flex; align-items: baseline; gap: var(--space-5); flex-wrap: wrap; margin-bottom: var(--space-5); }
.akp-abschnitt-kopf h2 { margin: 0; }
.akp-abschnitt-kopf p { margin: 0; color: var(--ink-sekundaer); font-size: 16px; }

.akp-hero { padding: var(--space-8); border-bottom: 1px solid var(--linie); }
.akp-hero-kicker { color: var(--akzent); margin-bottom: var(--space-4); }
.akp-hero h1 { font-size: clamp(44px, 6.4vw, 86px); line-height: 0.98; margin-bottom: var(--space-5); }
.akp-hero .lead { max-width: 640px; }
.akp-hero .akp-suche { margin-top: var(--space-5); }
.akp-hero-zahlen {
  list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-7);
  margin: var(--space-6) 0 0; padding: var(--space-5) 0 0; border-top: 1px solid var(--linie);
  font-size: 14px; color: var(--ink-sekundaer);
}
.akp-hero-zahlen strong { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 400; color: var(--ink); line-height: 1.1; }

/* Themenkacheln: gleiche Höhe, kein Überlauf bei langen Wörtern */
.akp-themen a { min-height: 232px; }
.akp-themen .name { overflow-wrap: anywhere; hyphens: auto; }
.akp-themen .text { overflow-wrap: anywhere; }

.akp-schnell { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--space-6); }
.akp-schnell li { border-top: 1px solid var(--linie); }
.akp-schnell a { display: flex; flex-direction: column; gap: 4px; padding: var(--space-4) 0; color: var(--ink); }
.akp-schnell a:hover { text-decoration: none; }
.akp-schnell a:hover .akp-schnell-frage { color: var(--akzent); }
.akp-schnell-frage { font-weight: 600; font-size: 16px; line-height: 23px; }
.akp-schnell-wert { font-family: var(--font-mono); font-size: 12px; color: var(--ink-tertiaer); }

.akp-verzeichnis-teaser {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--space-7); align-items: center;
  background: var(--surface-karte); border: 1px solid var(--linie-stark); border-radius: var(--radius-karte);
  padding: var(--space-7);
}
.akp-verzeichnis-teaser h2 { margin-top: 0; }
.akp-verzeichnis-teaser .akp-zaehler { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }

@media (max-width: 900px) {
  .akp-hero, .akp-abschnitt { padding-left: 18px; padding-right: 18px; }
  .akp-schnell { grid-template-columns: 1fr; }
  .akp-verzeichnis-teaser { grid-template-columns: 1fr; padding: var(--space-5); }
  .akp-hero-zahlen { gap: var(--space-5); }
}

/* === Glossar === */
.akp-begriff { border-bottom: 1px dotted var(--akzent); color: inherit; text-decoration: none; }
.akp-begriff:hover { color: var(--akzent); text-decoration: none; }
.akp-register-index { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--font-mono); font-size: 13px; margin-bottom: var(--space-6); }
.akp-register-index a { padding: 4px 9px; border: 1px solid var(--linie); border-radius: var(--radius-karte); color: var(--ink); }
.akp-register-index a:hover { border-color: var(--akzent); color: var(--akzent); text-decoration: none; }
.akp-glossar { margin: 0 0 var(--space-6); }
.akp-glossar dt { font-family: var(--font-display); font-size: 23px; margin-top: var(--space-4); }
.akp-glossar dd { margin: 4px 0 0; padding-bottom: var(--space-4); border-bottom: 1px solid var(--linie-zart); color: var(--ink-sekundaer); font-size: 16px; }

/* Glossar-Kacheln: mehr Text, deshalb breiter */
.akp-kacheln-begriffe { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.akp-kacheln-begriffe .akp-kachel { min-height: 150px; }
.akp-kacheln-begriffe .akp-kachel-name { font-size: 24px; }
.akp-kacheln-begriffe .akp-kachel-ort { font-size: 14px; line-height: 21px; }
@media (max-width: 1100px) { .akp-kacheln-begriffe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .akp-kacheln-begriffe { grid-template-columns: 1fr; } }

/* === Magazinansicht der Archive === */
.akp-magazin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); margin: var(--space-6) 0; }
.akp-karte-beitrag {
  display: flex; flex-direction: column;
  background: var(--surface-karte); border: 1px solid var(--linie); border-radius: var(--radius-karte);
  overflow: hidden; transition: border-color 120ms ease;
}
.akp-karte-beitrag:hover { border-color: var(--akzent); }
.akp-karte-bild { display: block; aspect-ratio: 16 / 9; background: var(--surface-gedeckt); }
.akp-karte-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.akp-karte-platzhalter { display: block; width: 100%; height: 100%; background: var(--surface-gedeckt); }
.akp-karte-text { padding: var(--space-5); display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.akp-karte-kicker { color: var(--akzent); }
.akp-karte-kicker:hover { text-decoration: none; color: var(--akzent-tief); }
.akp-karte-beitrag h2 { font-size: 27px; line-height: 31px; margin: 0; }
.akp-karte-beitrag h2 a { color: var(--ink); }
.akp-karte-beitrag h2 a:hover { color: var(--akzent); text-decoration: none; }
.akp-karte-beitrag p { margin: 0; font-size: 16px; line-height: 24px; color: var(--ink-sekundaer); }
.akp-karte-fuss { margin-top: auto !important; padding-top: var(--space-3); border-top: 1px solid var(--linie-zart);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-tertiaer) !important; }

/* Erster Eintrag breit, wenn genug Platz ist */
@media (min-width: 1100px) {
  .akp-magazin > .akp-karte-beitrag:first-child { grid-column: 1 / -1; flex-direction: row; }
  .akp-magazin > .akp-karte-beitrag:first-child .akp-karte-bild { width: 50%; aspect-ratio: auto; flex-shrink: 0; }
  .akp-magazin > .akp-karte-beitrag:first-child .akp-karte-text { justify-content: center; padding: var(--space-7); }
  .akp-magazin > .akp-karte-beitrag:first-child h2 { font-size: 38px; line-height: 43px; font-family: var(--font-display); font-weight: 400; }
}
@media (max-width: 900px) { .akp-magazin { grid-template-columns: 1fr; } }

/* === Verweis auf die Themenwelt === */
.akp-themenwelt {
  margin: var(--space-7) 0 var(--space-6); padding: var(--space-5) var(--space-6);
  background: var(--surface-gedeckt); border-radius: var(--radius-karte);
}
.akp-themenwelt .label { display: block; color: var(--ink-tertiaer); margin-bottom: var(--space-3); }
.akp-themenwelt .akp-amtswege { margin-bottom: var(--space-3); }
.akp-themenwelt .akp-amtswege li { border-top-color: var(--linie); }
.akp-themenwelt p { margin: 0; font-size: 15px; }

/* === Notrufleiste auf der Startseite === */
.akp-notruf { padding: var(--space-5) var(--space-6); margin: var(--space-6) 0; border: 1px solid var(--akzent); border-radius: var(--radius-karte); }
.akp-notruf .label { color: var(--akzent); display: block; margin-bottom: var(--space-3); }
.akp-notruf-leiste { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); }
.akp-notruf-leiste a { display: flex; flex-direction: column; align-items: center; padding: var(--space-3) var(--space-2);
  background: var(--surface-karte); border: 1px solid var(--linie); border-radius: var(--radius-karte); color: var(--ink); text-decoration: none; }
.akp-notruf-leiste a:hover { border-color: var(--akzent); }
.akp-notruf-leiste strong { font-family: var(--font-mono); font-size: 26px; line-height: 1.2; color: var(--akzent); }
.akp-notruf-leiste span { font-size: 13px; color: var(--ink-sekundaer); }
.akp-notruf-mehr { display: inline-block; margin-top: var(--space-3); font-size: 15px; }
@media (max-width: 720px) { .akp-notruf-leiste { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* === Zuständigkeits-Finder im Hero === */
.akp-finder-start { margin-top: var(--space-4); flex-wrap: wrap; }
.akp-finder-start .akp-finder-label { flex-basis: 100%; font-size: 15px; color: var(--ink-sekundaer); margin-bottom: var(--space-2); }
.akp-finder-start .akp-finder-label strong { color: var(--ink); }
.akp-finder-start button { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.akp-finder-start button:hover { background: var(--akzent-tief); }

/* === Suchfelder am Handy: Eingabe darf schrumpfen, Knopf bleibt in der Zeile === */
.akp-suche input { min-width: 0; flex: 1 1 0; }
.akp-suche button { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 480px) {
  .akp-suche input { padding: 0 14px; font-size: 16px; }
  .akp-suche button { padding: 0 16px; font-size: 15px; }
  .akp-finder-start button { padding: 0 14px; }
}
/* Breite Tabellen scrollen in sich statt die Seite zu verbreitern */
@media (max-width: 720px) {
  .akp-inhalt table.akp-liste { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.akp-finder-start .akp-kurz { display: none; }
@media (max-width: 480px) { .akp-finder-start .akp-lang { display: none; } .akp-finder-start .akp-kurz { display: inline; } }
