/* reset.css */
/* Minimaler Reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
picture,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

input,
textarea,
select {
  font: inherit;
}

/* tokens.css */
/* Design-Tokens Radstand. Werte und Herkunft: docs/refs/DESIGN.md. */

:root {
  /* ---------- Farben ---------- */
  --papier: #ffffff;
  --tinte: #1e1e1e;
  --text-grau: #4d4d4d;
  --meta-grau: #666668;
  --signal: #ef7d1a;
  --signal-dunkel: #a8521a;
  --leiste: #f7f7f7;
  --linie-hell: #e3e3e3;
  --linie-mittel: #bfbfbf;
  --tabelle-a: #eeeeee;
  --tabelle-b: #e3e3e3;

  /* ---------- Schrift ---------- */
  --schrift: "Bitter", "Rockwell", "Roboto Slab", Georgia, serif;

  /* ---------- Raster ---------- */
  --rahmen: 1440px;
  --rand: 60px;
  --textspalte: 730px;

  /* ---------- Bewegung ---------- */
  --ease: cubic-bezier(.2, .6, .2, 1);
  --dur-fast: 150ms;
  --dur-base: 220ms;

  /* ---------- Namen, die der Cookie-Hinweis und der
     Einwilligungs-Platzhalter erwarten ---------- */
  --color-canvas: var(--papier);
  --color-surface-paper: var(--papier);
  --color-surface-soft: var(--leiste);
  --color-surface-card: var(--tabelle-a);
  --color-ink: var(--tinte);
  --color-body: var(--text-grau);
  --color-muted: var(--meta-grau);
  --color-muted-soft: var(--meta-grau);
  --color-hairline: var(--linie-mittel);
  --color-hairline-soft: var(--linie-hell);
  --color-accent-stone: var(--meta-grau);
  --color-brand-blue: var(--tinte);
  --color-primary-active: var(--signal-dunkel);
  --color-on-primary: #ffffff;
  --color-link: var(--tinte);
  --color-link-hover: var(--signal-dunkel);
  --color-focus: var(--tinte);
  --color-success: #2f6b3a;
  --font-ui: var(--schrift);
  --font-serif: var(--schrift);
  --fs-title-lg: 1.25rem;
  --fs-body-md: 1rem;
  --line-body: 1.5;
  --radius-sm: 2px;
  --space-2: 0.5rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
}

@media (max-width: 63.99em) {
  :root { --rand: 32px; }
}

@media (max-width: 47.99em) {
  :root { --rand: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
  }
}

/* base.css */
/* Grundlagen: lokale Schrift, Fliesstext, Links, Hilfsklassen. */

/* Bitter (SIL OFL 1.1), Dateien aus @fontsource/bitter. Siehe docs/refs/SCHRIFTEN.md. */
@font-face {
  font-family: "Bitter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/bitter-400-normal-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: "Bitter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/bitter-400-normal-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: "Bitter";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/bitter-400-italic-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: "Bitter";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/bitter-400-italic-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: "Bitter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/bitter-600-normal-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: "Bitter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/bitter-600-normal-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: "Bitter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/bitter-700-normal-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: "Bitter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/bitter-700-normal-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: "Bitter";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/bitter-700-italic-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: "Bitter";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/bitter-700-italic-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: "Bitter";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/bitter-900-normal-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: "Bitter";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/bitter-900-normal-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;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--text-grau);
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--tinte);
  font-weight: 700;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

img, picture, svg { display: block; }

img {
  max-width: 100%;
  height: auto;
}

button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--tinte);
  outline-offset: 2px;
}

/* Auf dunklen Flaechen ist der Fokusrahmen weiss. */
.schwarz :focus-visible,
.band :focus-visible,
.wer__dunkel :focus-visible,
.fuss__kasten :focus-visible,
.bu :focus-visible { outline-color: #fff; }

.nb { white-space: nowrap; }

.rahmen {
  width: 100%;
  max-width: var(--rahmen);
  margin-inline: auto;
  padding-inline: var(--rand);
}

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--tinte);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus { top: 16px; }

main { display: block; }

/* layout.css */
/* Kopf, Navigation, Menue und Fuss. Masse aus docs/refs/DESIGN.md, Abschnitte 5 und 9. */

/* ---------- Kopf ---------- */

.kopf {
  position: relative;
  background: var(--papier);
}

.kopf__logozeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.kopf__logo svg {
  height: 60px;
  width: auto;
}

.kopf__unterzeile {
  font-size: 14px;
  line-height: 21px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-grau);
}

.kopf__leiste {
  position: relative;
  background: var(--leiste);
  border-bottom: 1px solid var(--linie-mittel);
}

.kopf__leiste-innen {
  display: flex;
  align-items: center;
  height: 52px;
}

.hauptnav {
  flex: 1;
  padding-left: 110px;
  padding-right: 0;
}

.hauptnav ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hauptnav a {
  display: block;
  padding: 14px 0 11px;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  line-height: 21px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tinte);
  white-space: nowrap;
}

.hauptnav a:hover { color: var(--signal-dunkel); }
.hauptnav a[aria-current="page"] { border-bottom-color: var(--signal); }

/* ---------- Menue (details/summary, geht auch ohne Skript) ---------- */

.menue__knopf {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 0;
  cursor: pointer;
  list-style: none;
}

.menue__knopf::-webkit-details-marker { display: none; }

.menue__striche,
.menue__striche::before,
.menue__striche::after {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--tinte);
}

.menue__striche { position: relative; }

.menue__striche::before,
.menue__striche::after {
  content: "";
  position: absolute;
  left: 0;
}

.menue__striche::before { top: -7px; }
.menue__striche::after { top: 7px; }

.menue[open] .menue__striche { background: transparent; }
.menue[open] .menue__striche::before { top: 0; transform: rotate(45deg); }
.menue[open] .menue__striche::after { top: 0; transform: rotate(-45deg); }

.menue__flaeche {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
  margin-top: 1px;
  background: var(--papier);
  border-bottom: 1px solid var(--tinte);
}

.menue__innen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-block: 32px;
}

.menue__haupt a,
.menue__neben a {
  display: block;
  padding: 8px 0;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tinte);
}

.menue__haupt a { font-size: 18px; line-height: 24px; }
.menue__neben a { font-size: 14px; line-height: 24px; color: var(--meta-grau); }
.menue__haupt a:hover,
.menue__neben a:hover { color: var(--signal-dunkel); }

.menue__innen nav { display: contents; }

/* Am Desktop steht die Hauptliste schon in der Leiste; das Menue zeigt
   nur die Nebenlinks, damit nichts doppelt in der Tab-Folge liegt. */
@media (min-width: 64em) {
  .menue__haupt { display: none; }
  .menue__innen { grid-template-columns: 1fr; padding-block: 20px; }
  .menue__neben { display: flex; flex-wrap: wrap; gap: 0 32px; }
}

@media (max-width: 63.99em) {
  .kopf__logozeile {
    justify-content: center;
    height: 56px;
  }

  .kopf__logo svg { height: 34px; }
  .kopf__unterzeile { display: none; }

  .kopf__leiste {
    position: static;
    border-bottom: 1px solid var(--linie-hell);
  }

  .kopf__leiste-innen { height: 0; }
  .hauptnav { display: none; }

  .menue__knopf {
    position: absolute;
    left: calc(var(--rand) - 4px);
    top: 12px;
  }

  .menue__flaeche {
    top: 56px;
    margin-top: 0;
  }

  .menue__innen {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-block: 8px 24px;
  }

  .menue__haupt a {
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--linie-hell);
  }
}

/* ---------- Fuss ---------- */

.fuss {
  margin-top: 80px;
  padding: 44px 0 48px;
  border-top: 1px solid var(--tinte);
}

.fuss__innen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 40px;
}

.fuss__logo {
  display: inline-block;
  margin-bottom: 32px;
}

.fuss__logo svg {
  height: 68px;
  width: auto;
}

.fuss__mitte {
  display: grid;
  grid-template-columns: 212px minmax(0, 788px);
  gap: 36px;
  align-items: start;
}

.fuss__kasten {
  padding: 12px;
  background: var(--tinte);
  color: #fff;
}

.fuss__kastentitel {
  font-size: 18px;
  line-height: 30px;
  font-weight: 700;
}

.fuss__kastentext {
  margin: 8px 0 16px;
  font-size: 14px;
  line-height: 21px;
}

.fuss__gross {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  width: fit-content;
  border-top: 1px solid var(--tinte);
  border-bottom: 1px solid var(--tinte);
}

.fuss__gross a {
  display: block;
  font-size: 18px;
  line-height: 50px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tinte);
}

.fuss__klein {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 24px;
}

.fuss__klein a,
.fuss__knopf-link {
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--meta-grau);
}

.fuss a:hover,
.fuss__knopf-link:hover { color: var(--signal-dunkel); }

.fuss__rechtshinweis {
  max-width: 900px;
  margin-top: 32px;
  padding: 12px 16px;
  border-left: 4px solid var(--signal);
  background: var(--leiste);
  font-size: 12px;
  line-height: 18px;
  color: var(--text-grau);
}

.fuss__rechtshinweis + .fuss__copyright { margin-top: 24px; }

.fuss__copyright {
  font-size: 12px;
  line-height: 18px;
  text-transform: uppercase;
  color: var(--meta-grau);
}

.fuss__verweise nav + .fuss__copyright { margin-top: 48px; }
.fuss__copyright + .fuss__copyright { margin-top: 8px; }

.fuss__rubriken {
  padding-left: 16px;
  border-left: 1px solid var(--tinte);
}

.fuss__rubriken a {
  display: block;
  font-size: 16px;
  line-height: 36px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tinte);
}

@media (max-width: 63.99em) {
  .fuss__innen { grid-template-columns: 1fr; }

  .fuss__rubriken {
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid var(--tinte);
  }
}

@media (max-width: 47.99em) {
  .fuss { margin-top: 56px; }
  .fuss__mitte { grid-template-columns: 1fr; gap: 24px; }

  .fuss__gross {
    display: block;
    width: auto;
  }

  .fuss__gross a { line-height: 43px; }

  .fuss__klein {
    display: block;
  }

  .fuss__klein li { padding: 6px 0; }
}

/* components/bausteine.css */
/* Wiederkehrende Bausteine: Rubrikbalken, Kicker, Autorenzeile, Knopf,
   Karten, Feed, Kaesten, Bildunterschrift. DESIGN.md, Abschnitt 6. */

/* ---------- 6.1 Rubrikbalken ---------- */

.balken {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 4px 20px 2px;
  border-bottom: 4px solid var(--signal);
  background: var(--tinte);
  color: #fff;
  font-size: 20px;
  line-height: 32px;
  font-weight: 600;
  text-transform: uppercase;
}

.balken a { color: inherit; }
.balken--voll { display: flex; }

.balken--klein {
  min-height: 36px;
  padding: 4px 16px 2px;
  border-bottom-width: 3px;
  font-size: 16px;
  line-height: 24px;
}

/* ---------- 6.2 Kicker und Autorenzeile ---------- */

.kicker {
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 20px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--meta-grau);
}

.kicker a:hover { color: var(--signal-dunkel); }

.kicker--anzeige span,
.marke-anzeige {
  display: inline-block;
  padding: 1px 6px;
  background: var(--signal);
  color: var(--tinte);
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.zeile {
  font-size: 12px;
  line-height: 20px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-grau);
}

.zeile__trenner {
  margin: 0 2px;
  color: var(--meta-grau);
  font-weight: 400;
}

a.zeile__autor:hover { color: var(--signal-dunkel); }

/* ---------- 6.3 Knopf ---------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 52px;
  padding: 8px 24px;
  border-radius: 2px;
  background: var(--signal);
  color: var(--tinte);
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.knopf:hover { background: var(--tinte); color: #fff; }
.schwarz .knopf:hover,
.band .knopf:hover { background: #fff; color: var(--tinte); }
.knopf--voll { display: flex; width: 100%; }

.knopfzeile { margin-top: 32px; }
.knopfzeile--mitte { margin-top: 48px; text-align: center; }

/* ---------- 6.7 Karte ---------- */

.karte__bild,
.feed__bild,
.aufmacher__bild {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16 / 9;
  background: var(--tabelle-a);
}

.karte__bild picture,
.feed__bild picture,
.aufmacher__bild picture,
.karte__bild img,
.feed__bild img,
.aufmacher__bild img {
  width: 100%;
  height: 100%;
}

.karte__bild img,
.feed__bild img,
.aufmacher__bild img { object-fit: cover; }

.karte__bild { margin-bottom: 16px; }

.karte__titel,
.feed__titel {
  font-size: 20px;
  line-height: 25px;
  font-weight: 600;
  color: var(--tinte);
}

.karte__titel a:hover,
.feed__titel a:hover,
.eintrag__titel a:hover,
.aufmacher__titel a:hover {
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.karte .zeile,
.eintrag .zeile,
.feed__text .zeile { margin-top: 8px; }

.karte--klein .karte__titel,
.eintrag__titel {
  font-size: 18px;
  line-height: 22.5px;
  font-weight: 600;
  color: var(--tinte);
}

/* ---------- 6.6 Feed ---------- */

.feed { margin-top: 12px; }

.feed__zeile {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--linie-hell);
}

.feed__anreisser {
  margin-top: 8px;
  color: var(--meta-grau);
}

.feed__zeile--gross { display: block; }
.feed__zeile--gross .feed__bild { margin-bottom: 16px; }
.feed__leer { margin-top: 24px; font-size: 18px; line-height: 28px; }

/* ---------- Raster Liste + Seitenleiste ---------- */

.liste { padding-top: 24px; }

.liste__raster {
  display: grid;
  grid-template-columns: minmax(0, 872fr) minmax(0, 380fr);
  gap: 68px;
  align-items: start;
}

.liste__lead {
  margin-top: 16px;
  max-width: 730px;
  font-size: 18px;
  line-height: 28px;
}

.leiste > * + * { margin-top: 48px; }
.leiste > .schwarz + .rubrikkasten { margin-top: 48px; }

/* ---------- 6.4 Schwarzer Kasten ---------- */

.schwarz {
  padding: 24px;
  background: var(--tinte);
  color: #fff;
}

.schwarz__titel {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  text-transform: uppercase;
}

.schwarz__text {
  margin: 8px 0 20px;
  font-size: 14px;
  line-height: 24px;
}

/* ---------- 6.5 Rubrikkasten mit Versatzschatten ---------- */

.rubrikkasten {
  padding: 20px 12px 12px;
  border: 1px solid var(--tinte);
  border-top: 0;
  background: var(--papier);
}

.rubrikkasten > .balken {
  display: flex;
  margin: -20px -13px 20px;
}

.rubrikkasten .eintrag { margin-top: 24px; }
.rubrikkasten .knopf { margin-top: 24px; }

/* ---------- Rubrikenliste ---------- */

.rubrikliste ul { margin-top: 8px; }

.rubrikliste a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--linie-hell);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tinte);
}

.rubrikliste a:hover { color: var(--signal-dunkel); }

/* ---------- Karten aus anderen Rubriken (kurze Rubrikseiten) ---------- */

.andere { margin-top: 56px; }

.andere__raster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.leiste__karten { margin-top: 12px; }
.leiste__karten .karte + .karte { margin-top: 32px; }

/* ---------- 6.8 Bildunterschrift-Balken ---------- */

.bu {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px;
  background: var(--tinte);
  color: #fff;
  font-size: 14px;
  line-height: 21px;
}

/* Eigenes Zeichen aus dem Logo: ein kleines Rad. */
.bu__marke {
  flex: none;
  width: 14px;
  height: 14px;
  border: 3px solid var(--signal);
  border-radius: 50%;
}

.bu em { font-style: italic; }

/* ---------- Autorenfoto ---------- */

.autorfoto {
  display: block;
  flex: none;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border: 3px solid var(--signal);
  border-radius: 50%;
  background: var(--tabelle-a);
}

.autorfoto--144 { width: 144px; height: 144px; }
.autorfoto--160 { width: 160px; height: 160px; }

.autorfoto picture,
.autorfoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 63.99em) {
  .liste__raster {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

@media (max-width: 47.99em) {
  .balken { font-size: 24px; }
  .balken--klein { font-size: 16px; }
  .knopf { font-size: 14px; }

  .karte__titel,
  .feed__titel {
    font-size: 18px;
    line-height: 22.5px;
  }

  .feed__zeile {
    display: block;
    padding: 16px 0;
  }

  .feed__bild { margin-bottom: 12px; }
  .feed__anreisser { line-height: 21px; }
  .andere__raster { grid-template-columns: 1fr; gap: 32px; }
}

/* Mobil sind alle Balken so breit wie ihr Text. */
@media (max-width: 63.99em) {
  .start__zuletzt .balken.balken--voll { display: inline-flex; width: auto; }
}

.bu { hyphens: manual; }

/* components/start.css */
/* Startseite. DESIGN.md, Abschnitt 7. */

.start { padding-top: 24px; }

/* ---------- 7.1 Aufmacher ---------- */

.aufmacher {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: 20px;
  align-items: start;
}

.aufmacher__gross { text-align: center; }

.aufmacher__bild {
  border-radius: 0;
  margin-bottom: 30px;
}

.aufmacher__titel {
  font-size: 44px;
  line-height: 50px;
  font-weight: 900;
  text-wrap: balance;
}

.aufmacher__vorspann {
  max-width: 440px;
  margin: 12px auto 8px;
  font-size: 18px;
  line-height: 23px;
}

.aufmacher__mitte .karte + .karte {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--linie-hell);
}

.start__zuletzt {
  align-self: stretch;
  padding-left: 20px;
  border-left: 1px solid var(--linie-hell);
}

.start__zuletzt .eintrag {
  padding: 16px 0;
  border-bottom: 1px solid var(--linie-hell);
}

.start__zuletzt .eintrag:last-of-type { border-bottom: 0; }
.start__zuletzt .balken + .eintrag { padding-top: 20px; }

/* ---------- 7.2 Feed ---------- */

.start__feed { margin-top: 48px; }

/* ---------- 7.3 Dunkles Band ---------- */

.band {
  margin-top: 48px;
  padding: 32px 0 48px;
  background: var(--tinte);
  color: #fff;
}

.band__titel {
  color: #fff;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  text-transform: uppercase;
}

.band__raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 358px;
  gap: 32px;
  margin-top: 24px;
}

.band__karten {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 230px));
  justify-content: space-between;
  gap: 24px;
  padding-right: 32px;
  border-right: 1px solid var(--meta-grau);
}

.karte--band .karte__titel {
  color: #fff;
  font-size: 18px;
  line-height: 25px;
}

.karte--band .zeile { color: #cfcfcf; }
.karte--band .zeile__trenner { color: #cfcfcf; }

.band__text {
  align-self: center;
  font-size: 16px;
  line-height: 24px;
}

.band__kastentitel {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  text-transform: uppercase;
}

.band__text .knopf { margin-top: 24px; }

/* ---------- 7.4 Wer wir sind ---------- */

.wer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.wer__hell,
.wer__dunkel { padding: 48px; }

.wer__hell { border: 1px solid var(--tinte); }

.wer__logo svg {
  height: 52px;
  width: auto;
  margin-bottom: 32px;
}

.wer__hell p {
  margin-bottom: 28px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  color: var(--tinte);
}

.wer__hell .knopf { min-width: 272px; margin-top: 12px; }

.wer__dunkel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--tinte);
  color: #fff;
}

.wer__koepfe {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.kopf-karte {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.kopf-karte__text { display: block; }

.kopf-karte__name,
.kopf-karte__rolle {
  display: block;
  font-size: 14px;
  line-height: 21px;
}

.kopf-karte__name {
  font-weight: 700;
  text-transform: uppercase;
}

.kopf-karte__kurz {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 21px;
  color: #cfcfcf;
}

.kopf-karte:hover .kopf-karte__name { color: var(--signal); }

.wer__kontakt {
  margin-top: 40px;
  text-align: center;
  font-size: 16px;
  line-height: 24px;
}

@media (max-width: 66em) {
  .wer { grid-template-columns: 1fr; }
}

@media (max-width: 63.99em) {
  .aufmacher { grid-template-columns: 1fr 1fr; }
  .aufmacher__gross { grid-column: 1 / -1; }

  .aufmacher__mitte {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .aufmacher__mitte .karte + .karte {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .start__zuletzt {
    padding-left: 0;
    border-left: 0;
  }

  .band__raster { grid-template-columns: 1fr; }

  .band__karten {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-right: 0;
    border-right: 0;
  }

  .wer__koepfe .autorfoto { width: 120px; height: 120px; }
}

@media (max-width: 47.99em) {
  .start { padding-top: 0; }

  .aufmacher__bild { margin-bottom: 20px; }

  .aufmacher__gross {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--linie-hell);
  }

  .aufmacher__titel {
    font-size: 30px;
    line-height: 32px;
  }

  .aufmacher__vorspann {
    font-size: 16px;
    line-height: 20px;
  }

  .aufmacher__mitte { grid-template-columns: 1fr; }

  .aufmacher__mitte .karte + .karte {
    padding-top: 20px;
    border-top: 1px solid var(--linie-hell);
  }

  .start__zuletzt .balken { margin-left: 4px; }

  .band__karten { grid-template-columns: 1fr; }

  .wer__hell,
  .wer__dunkel { padding: 24px; }

  .wer__hell .knopf { min-width: 0; width: 100%; }

  .wer__koepfe { grid-template-columns: 1fr; }

  .kopf-karte {
    flex-direction: row;
    text-align: left;
  }

  .kopf-karte .autorfoto { width: 80px; height: 80px; }
  .kopf-karte__kurz { margin-top: 2px; }
  .wer__kontakt { text-align: left; }
}

/* Der Balken "Zuletzt erschienen" muss in die schmale Spalte passen. */
@media (min-width: 64em) {
  .start__zuletzt .balken {
    padding-inline: 16px;
    font-size: 18px;
    white-space: nowrap;
  }
}

/* components/artikel.css */
/* Artikelseite und Textseiten. DESIGN.md, Abschnitte 8 und 10. */

.artikel { padding-top: 40px; }

/* ---------- Kopf des Artikels ---------- */

.anzeige {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 20px;
  padding: 8px 16px;
  background: var(--signal);
  color: var(--tinte);
  font-size: 14px;
  line-height: 21px;
}

.anzeige strong {
  font-weight: 700;
  text-transform: uppercase;
}

.krumen {
  font-size: 12px;
  line-height: 20px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--signal-dunkel);
}

.krumen a { color: var(--signal-dunkel); }
.krumen a:hover { text-decoration: underline; }

.krumen__trenner {
  margin: 0 8px;
  color: var(--meta-grau);
}

.artikel__titel {
  margin-top: 12px;
  font-size: 48px;
  line-height: 57.6px;
  font-weight: 700;
  text-wrap: balance;
}

.seite .artikel__titel { margin-top: 0; }

.artikel__vorspann {
  margin-top: 16px;
  font-size: 24px;
  line-height: 36px;
  color: var(--text-grau);
}

.zeile--artikel { margin-top: 16px; }

/* ---------- Raster ---------- */

.artikel__raster {
  display: grid;
  grid-template-columns: minmax(0, 1000fr) minmax(0, 300fr);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}

.seite .artikel__raster { margin-top: 32px; }

.artikel__spalte {
  max-width: var(--textspalte);
  margin-inline: auto;
}

.kopfbild picture,
.kopfbild img {
  width: 100%;
}

.kopfbild img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.artikel__hinweis {
  margin-top: 44px;
  font-size: 14px;
  line-height: 19.25px;
  font-weight: 700;
  font-style: italic;
  color: var(--text-grau);
}

/* ---------- Fliesstext ---------- */

.artikel__text {
  margin-top: 36px;
  font-size: 18px;
  line-height: 28px;
  color: var(--tinte);
  hyphens: manual;
}

.artikel__text > * + * { margin-top: 18px; }

.artikel__text > p:first-child::first-letter {
  float: left;
  margin: 8px 18px 0 0;
  font-size: 124px;
  line-height: 96px;
  font-weight: 400;
  color: var(--signal-dunkel);
}

.artikel__text--schlicht > p:first-child::first-letter {
  float: none;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.artikel__text a,
.person a,
.autorenkasten__mehr a {
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.artikel__text a:hover,
.person a:hover,
.autorenkasten__mehr a:hover { color: var(--signal-dunkel); }

.artikel__text a.knopf {
  color: var(--tinte);
  text-decoration: none;
}

.artikel__text a.knopf:hover { color: #fff; }

.artikel__text h2 {
  margin-top: 56px;
  margin-bottom: -2px;
  font-size: 36px;
  line-height: 54px;
  font-weight: 900;
  hyphens: manual;
  clear: both;
}

.artikel__text h3 {
  margin-top: 36px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  hyphens: manual;
}

.artikel__text strong { font-weight: 700; }

.artikel__text ul,
.artikel__text ol { padding-left: 28px; }

.artikel__text ol { list-style: decimal; }
.artikel__text ol li::marker { font-weight: 700; }
.artikel__text li + li { margin-top: 8px; }

.artikel__text ul > li { position: relative; }

.artikel__text ul > li::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 8px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--signal);
  border-radius: 50%;
}

.artikel__text blockquote {
  margin-block: 32px;
  padding: 4px 20px;
  border-left: 4px solid var(--signal);
  font-size: 22px;
  line-height: 32px;
  font-weight: 600;
  hyphens: manual;
}

.artikel__text hr {
  margin-block: 40px;
  border: 0;
  border-top: 1px solid var(--linie-hell);
}

/* ---------- Bilder im Text ---------- */

.artikel__text .bild,
.artikel__text .bildgruppe,
.artikel__text .produktfoto,
.artikel__text .tabelle,
.artikel__text .urteil,
.artikel__text .kasten { margin-block: 32px; }

.bild picture,
.bild img,
.bildgruppe picture,
.bildgruppe img {
  width: 100%;
}

.bild img,
.bildgruppe img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.bild--hoch {
  max-width: 486px;
  margin-inline: auto;
}

.bild--hoch img { aspect-ratio: 4 / 5; }

.bildgruppe__paar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bildgruppe--hoch .bildgruppe__paar img { aspect-ratio: 4 / 5; }
.bildgruppe__einzel { margin-top: 8px; }
.bildgruppe .bu { margin-top: 8px; }

/* ---------- 6.11 Platzhalter Produktfoto ---------- */

.produktfoto__flaeche {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  border: 2px dashed var(--linie-mittel);
  background: var(--tabelle-a);
}

.produktfoto__flaeche p {
  padding: 16px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: var(--meta-grau);
  text-align: center;
  hyphens: manual;
}

/* ---------- 6.9 Tabelle ---------- */

.tabelle {
  overflow-x: auto;
  hyphens: manual;
}

.tabelle table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-grau);
}

.tabelle th,
.tabelle td {
  padding: 12px 16px;
  border: 1px solid var(--linie-mittel);
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
  hyphens: auto;
}

.tabelle thead th {
  height: 70px;
  background: var(--signal);
  color: var(--tinte);
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
}

.tabelle tbody tr:nth-child(odd) { background: var(--tabelle-a); }
.tabelle tbody tr:nth-child(even) { background: var(--tabelle-b); }

/* ---------- 6.10 Zwei Listen ---------- */

.urteil {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  hyphens: manual;
}

.artikel__text .urteil ul {
  margin-top: 4px;
  padding-left: 0;
}

.artikel__text .urteil li {
  margin-top: 0;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--linie-hell);
  font-size: 16px;
  line-height: 24px;
}

.artikel__text .urteil li::before {
  left: 0;
  top: 17px;
}

.artikel__text .urteil__spalte--wissen li::before { border-color: var(--meta-grau); }

/* ---------- Kasten ---------- */

.kasten {
  position: relative;
  padding: 36px 20px 20px;
  border: 1px solid var(--tinte);
  border-top: 4px solid var(--signal);
  font-size: 16px;
  line-height: 24px;
}

.artikel__text .kasten { margin-top: 48px; }

.kasten__titel {
  position: absolute;
  top: -22px;
  left: -1px;
}

.kasten__inhalt > * + * { margin-top: 12px; }
.kasten__inhalt h3 { margin-top: 20px; font-size: 18px; line-height: 24px; }

/* ---------- Autorenkasten ---------- */

.autorenkasten {
  display: flex;
  gap: 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--tinte);
}

.autorenkasten__name {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  color: var(--tinte);
}

.autorenkasten__rolle {
  font-size: 14px;
  line-height: 24px;
  color: var(--meta-grau);
}

.autorenkasten__bio { margin-top: 8px; color: var(--tinte); }
.autorenkasten__mehr { margin-top: 8px; font-weight: 700; color: var(--tinte); }

/* ---------- Weiterlesen ---------- */

.weiterlesen { margin-top: 64px; }

.weiterlesen__raster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 20px;
  margin-top: 20px;
}

/* ---------- Redaktion ---------- */

.personen { margin-top: 48px; }

.person {
  padding-top: 32px;
  border-top: 1px solid var(--tinte);
  font-size: 18px;
  line-height: 28px;
  color: var(--tinte);
  scroll-margin-top: 16px;
}

.person + .person { margin-top: 48px; }
.person > p { margin-top: 18px; }

.person__kopf {
  display: flex;
  align-items: center;
  gap: 24px;
}

.person__name {
  font-size: 36px;
  line-height: 44px;
  font-weight: 900;
}

.person__rolle {
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--meta-grau);
}

.person__zwischentitel {
  margin-top: 28px;
  font-size: 14px;
  line-height: 24px;
  font-weight: 700;
  text-transform: uppercase;
}

.person__beitraege li {
  padding: 10px 0;
  border-bottom: 1px solid var(--linie-hell);
  font-size: 16px;
  line-height: 24px;
}

.person__beitraege time {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--meta-grau);
  white-space: nowrap;
}

@media (max-width: 63.99em) {
  .artikel__raster {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .weiterlesen__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 47.99em) {
  .artikel { padding-top: 20px; }

  .artikel__titel {
    font-size: 36px;
    line-height: 38px;
    hyphens: auto;
    text-wrap: wrap;
  }

  .artikel__vorspann {
    font-size: 16px;
    line-height: 22px;
  }

  .artikel__hinweis { margin-top: 24px; }

  .artikel__text {
    margin-top: 24px;
    line-height: 25px;
    hyphens: auto;
  }

  .artikel__text > p:first-child::first-letter {
    margin: 6px 12px 0 0;
    font-size: 96px;
    line-height: 74px;
  }

  .artikel__text--schlicht > p:first-child::first-letter { margin: 0; }

  .artikel__text h2 {
    margin-top: 40px;
    font-size: 24px;
    line-height: 36px;
  }

  .artikel__text h3 {
    font-size: 20px;
    line-height: 28px;
  }

  .artikel__text blockquote {
    font-size: 20px;
    line-height: 28px;
  }

  .tabelle th,
  .tabelle td { padding: 10px 8px; }

  .urteil { grid-template-columns: 1fr; gap: 28px; }

  .autorenkasten { gap: 16px; }
  .autorenkasten .autorfoto { width: 72px; height: 72px; }

  .weiterlesen__raster { grid-template-columns: 1fr; gap: 32px; }

  .person__kopf { gap: 16px; }
  .person__kopf .autorfoto { width: 96px; height: 96px; }
  .person__name { font-size: 28px; line-height: 34px; }
}

/* ---------- Feinschliff ---------- */

/* Kurze Woerter und Namen nicht trennen. */
.artikel__text,
.artikel__titel,
.tabelle th,
.tabelle td { hyphenate-limit-chars: 10 4 4; }

/* Rubrikbalken in den zwei Listen: nicht die Masse der Zwischentitel erben. */
.artikel__text h3.balken {
  margin-top: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

/* Solange ein Bild noch laedt, steht eine graue Flaeche an seiner Stelle. */
.bild picture,
.bildgruppe picture,
.kopfbild picture {
  display: block;
  background: var(--tabelle-a);
}

/* Der letzte Baustein der Seitenleiste laeuft am Desktop mit. */
@media (min-width: 64em) {
  .artikel__raster { align-items: stretch; }
  .artikel__raster > .leiste > :last-child { position: sticky; top: 24px; }
}

/* components/cookie-banner.css */
/* Cookie-Consent-Banner. */

.consent-banner {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16px;
  background: rgba(30, 30, 30, 0.5);
  backdrop-filter: blur(1px);
  animation: consent-fade-in 0.3s ease;
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner.is-closing {
  animation: consent-fade-out 0.3s ease forwards;
}

@keyframes consent-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes consent-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

.consent-banner__inner {
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--color-surface-paper);
  border: 1px solid var(--color-hairline);
  border-radius: 0;
  box-shadow: 0 18px 48px rgba(30, 30, 30, 0.2);
}

.consent-banner__header,
.consent-banner__desc,
.consent-banner__actions,
.consent-banner__details {
  margin-inline: 32px;
}

.consent-banner__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block-start: 28px;
  margin-block-end: 16px;
}

.consent-banner__icon {
  flex-shrink: 0;
  color: var(--color-brand-blue);
}

.consent-banner__title {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-ink);
  letter-spacing: 0;
}

.consent-banner__desc {
  margin-block-end: 24px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.consent-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block-end: 0;
}

.consent-banner__button {
  min-height: 43px;
  border: 0;
  border-radius: 0;
  padding: 12px 20px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.consent-banner__button--primary {
  background: var(--color-brand-blue);
  color: var(--color-on-primary);
}

.consent-banner__button--primary:hover {
  background: var(--color-primary-active);
  color: var(--color-on-primary);
}

.consent-banner__button--secondary {
  background: #ffffff;
  color: var(--color-ink);
  border: 1px solid var(--color-hairline-soft);
}

.consent-banner__button--secondary:hover {
  background: var(--color-surface-card);
}

.consent-banner__button--link {
  min-height: 34px;
  padding: 8px 0;
  background: none;
  color: var(--color-muted);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-banner__button--link:hover {
  color: var(--color-ink);
}

.consent-banner__details {
  margin-block-start: 20px;
  padding-block-start: 16px;
  border-block-start: 1px solid var(--color-hairline-soft);
}

.consent-banner__details[hidden] {
  display: none;
}

.consent-banner__groups {
  display: block;
}

.consent-category {
  overflow: hidden;
  border: 1px solid var(--color-hairline-soft);
  border-radius: 0;
  margin-block-end: 10px;
}

.consent-category__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--color-surface-soft);
}

.consent-category__info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.consent-category__info strong {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-ink);
}

.consent-category__badge {
  border-radius: 0;
  padding: 2px 8px;
  background: rgba(74, 106, 58, 0.12);
  color: var(--color-success);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.consent-category__count {
  color: var(--color-muted);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: nowrap;
}

.consent-category__accordion {
  border: 0;
  background: none;
  color: var(--color-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 4px 8px;
  transition:
    color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.consent-category__accordion:hover {
  color: var(--color-ink);
}

.consent-category__accordion.is-open {
  transform: rotate(180deg);
}

.consent-category__detail {
  padding: 14px 16px;
  border-block-start: 1px solid var(--color-hairline-soft);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.consent-category__detail[hidden] {
  display: none;
}

.consent-category__detail p {
  margin-block: 0 10px;
}

.consent-category__table-wrap {
  width: 100%;
  overflow-x: auto;
}

.consent-category__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  line-height: 1.35;
}

.consent-category__table th {
  padding: 6px 8px;
  border-block-end: 1px solid var(--color-hairline-soft);
  color: var(--color-ink);
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.consent-category__table td {
  padding: 6px 8px;
  border-block-end: 1px solid var(--color-hairline-soft);
  color: var(--color-muted);
  vertical-align: top;
}

.consent-category__table td:first-child {
  width: 52px;
}

.consent-category__table td strong {
  display: block;
  margin-block-end: 2px;
  color: var(--color-ink);
  font-size: 0.78rem;
}

.consent-category__table td span {
  display: block;
}

.consent-category__table a {
  color: var(--color-link);
  text-decoration: none;
}

.consent-category__table a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

.consent-banner__details-actions {
  margin-block-start: 12px;
}

.consent-banner__details-actions .consent-banner__button {
  width: 100%;
}

.consent-banner__footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-block-start: 4px;
  padding: 16px 32px;
  border-block-start: 1px solid var(--color-hairline-soft);
}

.consent-banner__footer a {
  color: var(--color-muted);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  line-height: 1.4;
  text-decoration: none;
}

.consent-banner__footer a:hover {
  color: var(--color-ink);
  text-decoration: underline;
}

.consent-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.consent-toggle input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.consent-toggle__slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: var(--color-muted-soft);
  border-radius: 24px;
  transition: background-color var(--dur-fast) var(--ease);
}

.consent-toggle__slider::before {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-surface-paper);
  transition: transform var(--dur-fast) var(--ease);
}

.consent-toggle input:checked + .consent-toggle__slider {
  background: var(--color-brand-blue);
}

.consent-toggle input:indeterminate + .consent-toggle__slider {
  background: var(--color-accent-stone);
}

.consent-toggle input:checked + .consent-toggle__slider::before {
  transform: translateX(20px);
}

.consent-toggle input:disabled + .consent-toggle__slider {
  cursor: default;
  opacity: 0.72;
}

.consent-toggle input:focus-visible + .consent-toggle__slider {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .consent-banner__inner {
    max-height: 88vh;
  }

  .consent-banner__header,
  .consent-banner__desc,
  .consent-banner__actions,
  .consent-banner__details {
    margin-inline: 18px;
  }

  .consent-banner__header {
    padding-block-start: 20px;
  }

  .consent-banner__title {
    font-size: 1.1rem;
  }

  .consent-category__header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .consent-category__table {
    font-size: 0.72rem;
  }

  .consent-banner__footer {
    padding: 12px 18px;
  }
}

/* Ohne zustimmungspflichtige Dienste: keine Auswahlknoepfe. */
.consent-banner.is-essential-only .consent-banner__actions {
  display: none;
}

/* components/consent-placeholder.css */
/* Platzhalter fuer geblockte Embeds (YouTube, Maps, ...).
   Dezent, editorial – gestrichelter Rahmen, Sandstein-Background. */

.consent-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: var(--space-6) var(--space-5);
  margin-block: var(--space-6);
  background: var(--color-surface-soft);
  border: 1px dashed var(--color-hairline);
  border-radius: var(--radius-sm);
  text-align: left;
}

.consent-placeholder__inner {
  max-width: 480px;
}

.consent-placeholder__title {
  font-family: var(--font-serif);
  font-size: var(--fs-title-lg);
  font-weight: 600;
  color: var(--color-ink);
  margin: 0 0 var(--space-2);
}

.consent-placeholder__desc {
  font-family: var(--font-serif);
  font-size: var(--fs-body-md);
  line-height: var(--line-body);
  color: var(--color-body);
  margin: 0 0 var(--space-4);
}

.consent-placeholder__desc a {
  color: var(--color-link);
}

