/*
 * EKO Fachbibliothek – Klick-Prototyp
 * Design-System, angelehnt an offenbach.de (Himmelblau, Navy, eckige Flächen,
 * Versal-Labels mit Sperrung) und die Farben des EKO-Logos (Rot, Gelb, Blau).
 * Schrift: Figtree (SIL OFL) als frei verfügbarer Ersatz für die Hausschrift.
 */

/* ---------- Schriften (lokal eingebunden, keine externen Server) ---------- */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url('../assets/fonts/figtree-latin-wght-normal.woff2') format('woff2-variations'),
       url('../assets/fonts/figtree-latin-wght-normal.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: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url('../assets/fonts/figtree-latin-ext-wght-normal.woff2') format('woff2-variations'),
       url('../assets/fonts/figtree-latin-ext-wght-normal.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: 'Figtree';
  font-style: italic;
  font-display: swap;
  font-weight: 300 900;
  src: url('../assets/fonts/figtree-latin-wght-italic.woff2') format('woff2-variations'),
       url('../assets/fonts/figtree-latin-wght-italic.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 ---------- */
:root {
  /* Stadt Offenbach (offenbach.de) */
  --of-sky: #08b8ff;          /* Kopfzeile, Kacheln – immer mit dunkler Schrift */
  --of-sky-hover: #4ccbff;
  --of-sky-tint: #e2f5ff;
  --of-sky-tint-2: #c8ecff;
  --of-navy: #162b53;         /* dunkle Flächen, Primärbuttons */
  --of-navy-hover: #233f78;
  --of-navy-soft: #2d4572;
  --of-text: #222222;
  --of-text-2: #444444;
  --of-muted: #5c6670;        /* 5,8:1 auf Weiß, 4,9:1 auf --of-section */
  --of-link: #0b6aa3;         /* 5,8:1 auf Weiß, ≥ 4,9:1 auf getönten Flächen (offenbach.de: #0e7cbe) */
  --of-section: #e8edf0;
  --of-field: #e9eef1;
  --of-border: #d9d6c8;       /* warmes Grau */
  --of-border-strong: #b9b5a3;
  --of-border-cool: #c9d3da;
  --of-beige: #e2e0cf;
  --of-footer: #222222;
  --white: #ffffff;

  /* EKO-Logo */
  --eko-rot: #c50536;
  --eko-rot-tint: #fbe6ec;
  --eko-gelb: #f7a903;
  --eko-gelb-tint: #fff3d4;
  --eko-blau: #04bdfc;

  /* Status */
  --ok: #1b7543;
  --ok-tint: #e2f2e8;
  --warn-text: #6e4a00;
  --warn-tint: #fff1cf;
  --err: #b00020;
  --err-tint: #fde7ea;

  --focus: #162b53;
  --font: 'Figtree', 'OFSansVariable', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fw-regular: 450;
  --fw-medium: 560;
  --fw-bold: 700;
  --fw-black: 800;

  --container: 1240px;
  --gutter: clamp(16px, 3.6vw, 40px);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --fs-xxs: 12px;
  --fs-xs: 13px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 21px;
  --fs-xl: clamp(22px, 2.2vw, 26px);
  --fs-xxl: clamp(26px, 3vw, 34px);
  --fs-display: clamp(32px, 4.6vw, 50px);

  --shadow-1: 0 1px 3px rgba(22, 43, 83, .12);
  --shadow-2: 0 6px 24px rgba(22, 43, 83, .16);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --header-h: 76px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: var(--fw-regular);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--of-text);
  background: var(--white);
  font-feature-settings: 'kern', 'liga';
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; outline: none; }
h1, h2, h3, h4, h5 { font-weight: var(--fw-bold); line-height: 1.15; margin: 0 0 .5em; color: var(--of-text); letter-spacing: -.012em; }
h1 { font-size: var(--fs-display); line-height: 1.08; }
h2 { font-size: var(--fs-xxl); }
h3 { font-size: var(--fs-xl); line-height: 1.22; }
h4 { font-size: var(--fs-md); line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: .25em; }
small { font-size: var(--fs-sm); }
strong, b { font-weight: var(--fw-bold); }
hr { border: 0; border-top: 1px solid var(--of-border); margin: var(--s6) 0; }
img, svg { max-width: 100%; }
a { color: var(--of-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--of-navy); text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
mark { background: var(--eko-gelb-tint); color: inherit; padding: 0 .08em; box-shadow: inset 0 -2px 0 var(--eko-gelb); }
abbr[title] { text-decoration: underline dotted; cursor: help; }
::selection { background: var(--of-sky-tint-2); }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--white); }
/* Überschriften, die nach einer Navigation programmatisch fokussiert werden, brauchen keinen Rahmen */
h1[tabindex='-1']:focus, h2[tabindex='-1']:focus, h3[tabindex='-1']:focus, main:focus { outline: none; box-shadow: none; }
.on-dark :focus-visible, .section--navy :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .toast :focus-visible, .card--navy :focus-visible { outline-color: var(--eko-gelb); box-shadow: none; }
/* Lange Wörter (deutsche Komposita) dürfen umbrechen – kein waagerechtes Scrollen ab 320 px */
h1, h2, h3, h4, .lead, .card__title, .media-card__title, .media-card__sub, .media-card__desc, .media-tile__title, .prose, .field__label { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.page-head__row > *, .split > *, .section-head > * { min-width: 0; }
.kicker, .media-card__meta, .media-tile__meta, .label-caps { overflow-wrap: anywhere; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s4); top: -100px; z-index: 1000;
  background: var(--white); color: var(--of-text); padding: var(--s3) var(--s4);
  font-weight: var(--fw-bold); text-decoration: none; border: 3px solid var(--of-navy);
}
.skip-link:focus { top: var(--s3); }

.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; width: 1.25em; height: 1.25em; }
.icon--s { width: 1em; height: 1em; }
.icon--l { width: 1.6em; height: 1.6em; }
.icon--xl { width: 2.4em; height: 2.4em; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container--narrow { max-width: 880px; }
.section { padding: var(--s8) 0; }
.section--tight { padding: var(--s6) 0; }
.section--light { background: var(--of-section); }
.section--beige { background: #f4f3ec; }
.section--navy { background: var(--of-navy); color: var(--white); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--navy a { color: var(--white); }
.section--navy .kicker { color: var(--of-sky); }
.section--sky { background: var(--of-sky); color: var(--of-text); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s6); }
.section-head h2 { margin: 0; }
.stack > * + * { margin-top: var(--s4); }
.stack-s > * + * { margin-top: var(--s2); }
.stack-l > * + * { margin-top: var(--s6); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.cluster--l { gap: var(--s4); }
.grid { display: grid; gap: var(--s5); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.grid--5 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
@media (min-width: 960px) {
  .split { grid-template-columns: 300px minmax(0, 1fr); gap: var(--s7); }
  .split--wide-aside { grid-template-columns: minmax(0, 1fr) 360px; }
}
.page { padding-top: var(--s6); padding-bottom: var(--s8); }
.list-reset { list-style: none; margin: 0; padding: 0; }
.list-reset > li + li { margin-top: 0; }
.muted { color: var(--of-muted); }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: var(--s4); } .mt-5 { margin-top: var(--s5); } .mt-6 { margin-top: var(--s6); }
.mb-4 { margin-bottom: var(--s4); } .mb-5 { margin-bottom: var(--s5); } .mb-6 { margin-bottom: var(--s6); }

/* ---------- Typografie-Bausteine ---------- */
.kicker {
  display: inline-block;
  font-size: var(--fs-xs); font-weight: var(--fw-bold);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--of-link); margin-bottom: var(--s2);
}
.kicker--muted { color: var(--of-muted); }
.lead { font-size: var(--fs-md); line-height: 1.55; color: var(--of-text-2); max-width: 70ch; }
.label-caps {
  font-size: var(--fs-sm); font-weight: var(--fw-bold);
  letter-spacing: .14em; text-transform: uppercase;
}
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose li { margin-top: .35em; }

/* ---------- Demo-Leiste ---------- */
.demo-bar {
  background: var(--eko-gelb);
  color: var(--of-text);
  font-size: var(--fs-sm);
}
.demo-bar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); padding-top: 6px; padding-bottom: 6px; }
.demo-bar__note { display: flex; align-items: center; gap: var(--s2); font-weight: var(--fw-medium); }
.demo-bar__note strong { letter-spacing: .12em; text-transform: uppercase; font-size: var(--fs-xs); }
.demo-bar__controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }
@media (max-width: 1100px) and (min-width: 721px) { .demo-bar__note span { display: none; } }
.demo-bar label { font-weight: var(--fw-bold); }
.demo-bar select {
  border: 2px solid var(--of-text); background: var(--white); padding: 3px 28px 3px 8px; border-radius: 0;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--of-text) 50%), linear-gradient(135deg, var(--of-text) 50%, transparent 50%);
  background-position: calc(100% - 14px) 52%, calc(100% - 9px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
  font-weight: var(--fw-medium);
  max-width: 62vw;
}
.demo-bar .btn-link { color: var(--of-text); font-weight: var(--fw-bold); }
.demo-bar .btn-link[aria-current='page'] { text-decoration-thickness: 3px; }

/* ---------- Kopfzeile ---------- */
.site-header { background: var(--of-sky); color: var(--of-text); position: relative; z-index: 50; }
.site-header__inner { display: flex; align-items: center; gap: var(--s4); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--of-text); margin-right: auto; min-width: 0; }
.brand:hover { color: var(--of-text); }
.brand__mark {
  width: 50px; height: 50px; flex: 0 0 50px;
  border: 2.5px solid var(--of-navy);
  display: grid; place-items: center;
  font-weight: var(--fw-black); font-size: 19px; letter-spacing: -.02em;
  color: var(--of-navy); background: rgba(255, 255, 255, .18);
  position: relative;
}
.brand__mark::after { /* Buchrücken-Akzent in EKO-Farben */
  content: ''; position: absolute; left: 6px; right: 6px; bottom: 6px; height: 4px;
  background: linear-gradient(90deg, var(--eko-rot) 0 33%, var(--eko-gelb) 33% 66%, var(--of-navy) 66%);
}
.brand__mark span { transform: translateY(-3px); }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__title { font-weight: var(--fw-black); font-size: 22px; line-height: 1.05; letter-spacing: -.01em; }
.brand__sub { font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-actions { display: flex; align-items: center; gap: 2px; }
.header-btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 48px; min-height: 48px; padding: 4px 10px;
  background: transparent; border: 0; color: var(--of-text); text-decoration: none; position: relative;
  font-size: 11px; font-weight: var(--fw-bold); letter-spacing: .1em; text-transform: uppercase;
}
.header-btn .icon { width: 26px; height: 26px; }
.header-btn:hover { background: rgba(255, 255, 255, .28); color: var(--of-text); }
.header-btn[aria-current='page']::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 4px; background: var(--of-navy); }
.brand__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-btn__count {
  position: absolute; top: 4px; right: 6px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--of-navy); color: var(--white); font-size: 11px; font-weight: var(--fw-bold);
  display: grid; place-items: center; letter-spacing: 0; border-radius: 10px;
}
@media (max-width: 720px) {
  .brand__sub { display: none; }
  .brand__title { font-size: 19px; }
  .header-btn span.header-btn__label { display: none; }
  .site-header__inner { gap: var(--s2); min-height: 64px; }
  .header-btn { min-width: 44px; padding: 4px 6px; }
}
@media (max-width: 420px) {
  .brand { gap: 8px; }
  .brand__mark { width: 40px; height: 40px; flex-basis: 40px; font-size: 15px; border-width: 2px; }
  .brand__mark::after { left: 5px; right: 5px; bottom: 4px; height: 3px; }
  .brand__title { font-size: 17px; }
  .header-actions { gap: 0; }
  .header-btn { min-width: 42px; padding: 2px 4px; }
  .header-btn .icon { width: 24px; height: 24px; }
  .header-btn__count { top: 2px; right: 0; }
}
@media (max-width: 359px) {
  .brand__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Hauptnavigation (Leiste unter der Kopfzeile, wie die Schnellzugänge auf offenbach.de) */
.mainnav { background: var(--white); border-bottom: 1px solid var(--of-border); }
.mainnav__list { display: flex; flex-wrap: nowrap; list-style: none; margin: 0; padding: 0; }
.mainnav__list li { margin: 0; }
.mainnav__link {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px 14px 0; margin-right: 16px; white-space: nowrap;
  color: var(--of-text); text-decoration: none; font-size: var(--fs-sm); font-weight: var(--fw-bold);
  letter-spacing: .12em; text-transform: uppercase; position: relative;
}
.mainnav__list li + li .mainnav__link { padding-left: 16px; border-left: 1px solid var(--of-border); }
.mainnav__link .icon { width: 26px; height: 26px; }
.mainnav__link:hover { color: var(--of-navy); }
.mainnav__link[aria-current='page']::after {
  content: ''; position: absolute; left: 0; right: 18px; bottom: 0; height: 4px; background: var(--of-sky);
}
.mainnav__list li + li .mainnav__link[aria-current='page']::after { left: 16px; }
.menu-toggle { display: none; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .mainnav { display: none; }
  body.menue-offen .mainnav { display: block; }
  .mainnav__list { flex-direction: column; padding: var(--s2) 0; }
  .mainnav__link, .mainnav__list li + li .mainnav__link { border-left: 0; padding: 14px 0; margin: 0; border-bottom: 1px solid var(--of-border); }
  .mainnav__link[aria-current='page']::after { left: 0 !important; right: auto; top: 10px; bottom: 10px; width: 4px; height: auto; }
  .mainnav__link[aria-current='page'] { padding-left: 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px;
  border: 2px solid var(--of-navy); border-radius: 0;
  background: var(--of-navy); color: var(--white);
  font-size: var(--fs-sm); font-weight: var(--fw-bold); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; line-height: 1.2; text-align: center;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.btn:hover { background: var(--of-navy-hover); border-color: var(--of-navy-hover); color: var(--white); }
.btn .icon { width: 20px; height: 20px; }
.btn--secondary { background: var(--white); color: var(--of-navy); }
.btn--secondary:hover { background: var(--of-sky-tint); color: var(--of-navy); border-color: var(--of-navy); }
.btn--sky { background: var(--of-sky); border-color: var(--of-sky); color: var(--of-text); }
.btn--sky:hover { background: var(--of-sky-hover); border-color: var(--of-sky-hover); color: var(--of-text); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--of-navy); padding-left: 12px; padding-right: 12px; }
.btn--ghost:hover { background: var(--of-section); border-color: transparent; color: var(--of-navy); }
.btn--danger { background: var(--eko-rot); border-color: var(--eko-rot); color: var(--white); }
.btn--danger:hover { background: #a1032b; border-color: #a1032b; }
.btn--on-dark { background: transparent; border-color: var(--white); color: var(--white); }
.btn--on-dark:hover { background: var(--white); color: var(--of-navy); }
.btn--s { min-height: 38px; padding: 6px 14px; font-size: var(--fs-xs); gap: 8px; }
.btn--s .icon { width: 18px; height: 18px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .5; cursor: not-allowed; }
.btn-link {
  background: none; border: 0; padding: 0; color: var(--of-link); text-decoration: underline;
  text-underline-offset: 3px; font-weight: var(--fw-medium); display: inline-flex; align-items: center; gap: 6px;
}
.btn-link:hover { color: var(--of-navy); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 2px solid transparent; background: transparent; color: var(--of-navy);
}
.icon-btn:hover { background: var(--of-section); }
.icon-btn--outline { border-color: var(--of-border-strong); }
.icon-btn[aria-pressed='true'] { color: var(--eko-rot); }
.btn-group { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* Link mit Kreispfeil (Stil offenbach.de) */
.arrow-link {
  display: inline-flex; align-items: center; gap: 10px; color: var(--of-text); text-decoration: none;
  font-size: var(--fs-sm); font-weight: var(--fw-bold); letter-spacing: .14em; text-transform: uppercase;
}
.arrow-link .icon { width: 28px; height: 28px; transition: transform .15s var(--ease); }
.arrow-link:hover { color: var(--of-navy); }
.arrow-link:hover .icon { transform: translateX(3px); }
.section--navy .arrow-link, .on-dark .arrow-link { color: var(--white); }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: var(--s4); }
.field__label { font-weight: var(--fw-bold); font-size: var(--fs-sm); }
.field__hint { font-size: var(--fs-xs); color: var(--of-muted); }
.field__error { font-size: var(--fs-sm); color: var(--err); font-weight: var(--fw-medium); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--of-field); border: 0; border-bottom: 2px solid var(--of-navy); border-radius: 0;
  color: var(--of-text);
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { background: #dfe6ea; }
.input::placeholder, .textarea::placeholder { color: var(--of-muted); opacity: 1; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 3px solid var(--of-navy); outline-offset: 0; background-color: var(--white); }
.input[aria-invalid='true'], .textarea[aria-invalid='true'] { border-bottom-color: var(--err); background: var(--err-tint); }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--of-navy) 50%), linear-gradient(135deg, var(--of-navy) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.form-grid { display: grid; gap: var(--s4) var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.form-grid .field + .field { margin-top: 0; }
.form-grid .field--full { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: var(--fw-bold); padding: 0; margin-bottom: var(--s2); }

/* Checkbox/Radio */
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; padding: 5px 0; line-height: 1.35; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; flex: 0 0 22px; margin: 0; border: 2px solid var(--of-navy); background: var(--white); display: grid; place-items: center; cursor: pointer; }
.check input[type='radio'] { border-radius: 50%; }
.check input:checked { background: var(--of-navy); }
.check input[type='checkbox']:checked::after { content: ''; width: 6px; height: 11px; border: solid var(--white); border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.check input[type='radio']:checked::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--white); }
.check input:focus-visible { outline: 3px solid var(--of-navy); outline-offset: 2px; }
.check__label { flex: 1; }
.check__count { color: var(--of-muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }

/* Umschalter */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 44px; height: 24px; border-radius: 12px; background: var(--of-muted); position: relative; margin: 0; cursor: pointer; transition: background .15s; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); transition: transform .15s var(--ease); }
.switch input:checked { background: var(--of-navy); }
.switch input:checked::after { transform: translateX(20px); }

/* ---------- Suchfeld (Stil „Was suchen Sie?“) ---------- */
.searchbar { display: flex; width: 100%; max-width: 760px; position: relative; }
.searchbar__input {
  flex: 1; min-width: 0; height: 60px; padding: 0 20px; border: 0; border-radius: 0;
  background: rgba(255, 255, 255, .96); color: var(--of-text); font-size: var(--fs-md);
}
.searchbar__input::placeholder { color: var(--of-text-2); opacity: 1; }
.searchbar__input:focus-visible { outline: 3px solid var(--eko-gelb); outline-offset: 0; }
.searchbar__btn {
  width: 64px; height: 60px; flex: 0 0 64px; border: 0; background: var(--of-navy); color: var(--white);
  display: grid; place-items: center;
}
.searchbar__btn:hover { background: var(--of-navy-hover); }
.searchbar__btn .icon { width: 28px; height: 28px; }
.searchbar--on-light .searchbar__input { background: var(--of-field); border-bottom: 2px solid var(--of-navy); }
.searchbar--on-light .searchbar__input:focus-visible { outline-color: var(--of-navy); background: var(--white); }

/* Vorschlagsliste (Autovervollständigung) */
.suggest {
  position: absolute; left: 0; right: 64px; top: 100%; z-index: 40; margin: 0; padding: 6px 0; list-style: none;
  background: var(--white); color: var(--of-text); box-shadow: var(--shadow-2); border-top: 3px solid var(--of-sky);
  max-height: 360px; overflow-y: auto;
}
.suggest li { margin: 0; }
.suggest__item { display: flex; align-items: center; gap: 10px; padding: 9px 16px; cursor: pointer; }
.suggest__item[aria-selected='true'], .suggest__item:hover { background: var(--of-sky-tint); }
.suggest__type { margin-left: auto; font-size: var(--fs-xxs); font-weight: var(--fw-bold); letter-spacing: .12em; text-transform: uppercase; color: var(--of-muted); }

/* ---------- Kacheln (Stil Schnellzugriffe auf offenbach.de) ---------- */
.tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.tile {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 20px;
  background: rgba(8, 184, 255, .92); color: var(--of-text); text-decoration: none;
  font-size: var(--fs-md); font-weight: var(--fw-medium); line-height: 1.2;
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.tile:hover { background: var(--of-sky-hover); color: var(--of-text); }
.tile .icon { width: 22px; height: 22px; }
.tile__count { font-size: var(--fs-sm); font-weight: var(--fw-bold); opacity: .8; }
.tile--white { background: var(--white); }
.tile--white:hover { background: var(--of-sky-tint); }

/* große Themenkachel */
.topic-card {
  display: flex; flex-direction: column; gap: 6px; min-height: 132px; padding: 18px 20px 16px;
  background: var(--of-sky); color: var(--of-text); text-decoration: none; position: relative; overflow: hidden;
}
.topic-card:hover { background: var(--of-sky-hover); color: var(--of-text); }
.topic-card__title { font-size: var(--fs-md); font-weight: var(--fw-bold); line-height: 1.2; }
.topic-card__text { font-size: var(--fs-sm); line-height: 1.4; }
.topic-card__count { margin-top: auto; font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }

/* ---------- Badges & Chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; min-height: 24px;
  font-size: var(--fs-xs); font-weight: var(--fw-bold); line-height: 1.2;
  background: var(--of-section); color: var(--of-text); white-space: nowrap;
}
.badge .icon { width: 14px; height: 14px; }
.badge--digital { background: var(--of-sky-tint-2); color: var(--of-navy); }
.badge--physisch { background: var(--of-beige); }
.badge--empfohlen { background: var(--eko-rot); color: var(--white); }
.badge--neu { background: var(--eko-gelb); color: var(--of-text); }
.badge--ok { background: var(--ok-tint); color: var(--ok); }
.badge--warn { background: var(--warn-tint); color: var(--warn-text); }
.badge--err { background: var(--err-tint); color: var(--err); }
.badge--navy { background: var(--of-navy); color: var(--white); }
.badge--outline { background: transparent; box-shadow: inset 0 0 0 1.5px var(--of-border-strong); }
.badge--veraltet { background: #ececec; color: #5a5a5a; text-decoration: line-through; text-decoration-thickness: 1px; }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.status::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: 0 0 10px; }
.status--verfuegbar { color: var(--ok); }
.status--ausgeliehen, .status--vorgemerkt { color: var(--warn-text); }
.status--digital { color: var(--of-navy); }
.status--digital::before { background: var(--of-sky); box-shadow: 0 0 0 2px var(--of-navy) inset; }
.status--gesperrt, .status--nicht-verfuegbar { color: var(--of-muted); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 6px 4px 12px;
  background: var(--of-navy); color: var(--white); border: 0; font-size: var(--fs-sm); font-weight: var(--fw-medium);
}
.chip .icon { width: 16px; height: 16px; }
.chip:hover { background: var(--of-navy-hover); }
.chip--light { background: var(--of-sky-tint); color: var(--of-navy); }
.chip--light:hover { background: var(--of-sky-tint-2); }
.tag {
  display: inline-flex; align-items: center; padding: 3px 10px; font-size: var(--fs-sm);
  background: var(--white); border: 1.5px solid var(--of-border-strong); color: var(--of-text); text-decoration: none;
}
a.tag:hover { border-color: var(--of-navy); color: var(--of-navy); background: var(--of-sky-tint); }

/* Zähler (einheitliche Pille für Anzahlen) */
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--of-sky-tint); color: var(--of-navy); font-size: 12px; font-weight: var(--fw-bold); letter-spacing: 0; font-variant-numeric: tabular-nums; text-decoration: none; line-height: 1; }
.count--strong { background: var(--of-navy); color: var(--white); }
.count--on-sky { background: rgba(255, 255, 255, .85); color: var(--of-navy); }

/* ---------- Medienkarte ---------- */
.media-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: var(--s4) var(--s5); padding: var(--s5) 0; border-top: 1px solid var(--of-border); position: relative; }
.media-card:last-child { border-bottom: 1px solid var(--of-border); }
.media-card__cover { width: 92px; }
.media-card__cover svg, .media-card__cover img { width: 100%; height: auto; display: block; box-shadow: var(--shadow-1); }
.media-card__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.media-card__meta { font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .12em; text-transform: uppercase; color: var(--of-link); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.media-card__meta .sep { color: var(--of-border-strong); }
.media-card__title { font-size: var(--fs-lg); line-height: 1.22; margin: 0; }
.media-card__title a { color: var(--of-text); text-decoration: none; }
.media-card__title a:hover { color: var(--of-navy); text-decoration: underline; }
.media-card__title a::after { content: ''; position: absolute; inset: 0; z-index: 0; } /* ganze Karte klickbar */
.media-card__sub { font-size: var(--fs-base); color: var(--of-text-2); margin: -2px 0 0; }
.media-card__persons { font-size: var(--fs-sm); color: var(--of-text-2); margin: 0; }
.media-card__desc { font-size: var(--fs-sm); color: var(--of-text-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.media-card__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.media-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); margin-top: 4px; }
.media-card__actions { display: flex; flex-wrap: wrap; gap: 4px; position: relative; z-index: 1; }
.media-card__actions .btn, .media-card__actions .icon-btn, .media-card__badges a { position: relative; z-index: 1; }
@media (min-width: 640px) {
  .media-card { grid-template-columns: 112px minmax(0, 1fr); }
  .media-card__cover { width: 112px; }
}
/* Kachel-Variante (z. B. Startseite) */
.media-tile { display: flex; flex-direction: column; gap: 8px; position: relative; text-decoration: none; color: inherit; }
.media-tile__cover { aspect-ratio: 3 / 4; background: var(--of-section); display: grid; place-items: center; padding: 18px; overflow: hidden; }
.media-tile__cover svg { width: 100%; height: 100%; max-width: 160px; box-shadow: var(--shadow-2); }
.media-tile__meta { font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .12em; text-transform: uppercase; color: var(--of-link); }
.media-tile__title { font-size: var(--fs-md); line-height: 1.25; margin: 0; }
.media-tile__title a { color: inherit; text-decoration: none; }
.media-tile__title a::after { content: ''; position: absolute; inset: 0; }
.media-tile__title a:hover { text-decoration: underline; }
.media-tile:hover .media-tile__cover { background: var(--of-sky-tint); }
.section--navy .media-tile__cover { background: rgba(255, 255, 255, .08); }
.section--navy .media-tile:hover .media-tile__cover { background: rgba(255, 255, 255, .16); }
.section--navy .media-tile__meta { color: var(--of-sky); }
.section--navy .media-tile__title { color: var(--white); }

/* ---------- Karten & Panels ---------- */
.card { background: var(--white); border: 1px solid var(--of-border); padding: var(--s5); }
.card--flat { border: 0; background: var(--of-section); }
.card--accent { border-top: 4px solid var(--of-sky); }
.card--navy { background: var(--of-navy); color: var(--white); border: 0; }
.card--navy h2, .card--navy h3 { color: var(--white); }
.card__title { font-size: var(--fs-lg); margin-bottom: var(--s2); }
.panel { border: 1px solid var(--of-border); background: var(--white); }
.panel__head { padding: var(--s4) var(--s5); border-bottom: 1px solid var(--of-border); display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.panel__head h2, .panel__head h3 { margin: 0; font-size: var(--fs-lg); }
.panel__body { padding: var(--s5); }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: var(--s5); background: var(--white); border-top: 4px solid var(--of-sky); box-shadow: var(--shadow-1); }
.kpi__value { font-size: clamp(28px, 3.4vw, 40px); font-weight: var(--fw-black); line-height: 1; font-variant-numeric: tabular-nums; color: var(--of-navy); }
.kpi__label { font-size: var(--fs-sm); color: var(--of-text-2); }
.kpi--rot { border-top-color: var(--eko-rot); }
.kpi--gelb { border-top-color: var(--eko-gelb); }
.kpi--navy { border-top-color: var(--of-navy); }

/* Hinweisboxen */
.notice { display: flex; gap: var(--s3); padding: var(--s4) var(--s5); background: var(--of-sky-tint); border-left: 5px solid var(--of-sky); }
.notice > .icon { width: 24px; height: 24px; color: var(--of-navy); margin-top: 1px; flex: 0 0 24px; }
.notice > div > :last-child { margin-bottom: 0; }
.notice--warn { background: var(--warn-tint); border-left-color: var(--eko-gelb); }
.notice--warn > .icon { color: var(--warn-text); }
.notice--err { background: var(--err-tint); border-left-color: var(--eko-rot); }
.notice--err > .icon { color: var(--eko-rot); }
.notice--ok { background: var(--ok-tint); border-left-color: var(--ok); }
.notice--ok > .icon { color: var(--ok); }
.notice--lock { background: #f1f1ee; border-left-color: var(--of-border-strong); }

/* ---------- Tabellen ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table caption { text-align: left; font-weight: var(--fw-bold); padding-bottom: var(--s2); }
.table th, .table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--of-border); vertical-align: top; }
.table thead th { font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .1em; text-transform: uppercase; color: var(--of-text-2); border-bottom: 2px solid var(--of-navy); background: var(--white); white-space: nowrap; }
.table tbody tr:hover { background: #f6f8f9; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table--compact th, .table--compact td { padding: 7px 10px; }
.matrix td, .matrix th { text-align: center; }
.matrix th[scope='row'] { text-align: left; }

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: nowrap; gap: 0; border-bottom: 2px solid var(--of-border); margin-bottom: var(--s5); overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.tab {
  flex: 0 0 auto; white-space: nowrap;
  padding: 12px 15px; background: none; border: 0; border-bottom: 4px solid transparent; margin-bottom: -2px;
  font-size: var(--fs-sm); font-weight: var(--fw-bold); letter-spacing: .08em; text-transform: uppercase; color: var(--of-text-2); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
@media (max-width: 720px) { .tab { padding: 10px 12px; font-size: var(--fs-xs); } }
.tab:hover { color: var(--of-navy); background: var(--of-section); }
.tab[aria-selected='true'], .tab[aria-current='page'] { color: var(--of-navy); border-bottom-color: var(--of-sky); }

/* ---------- Brotkrumen ---------- */
.breadcrumb { font-size: var(--fs-sm); margin-bottom: var(--s4); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: '/'; color: var(--of-border-strong); }
.breadcrumb a { color: var(--of-text-2); }
.breadcrumb [aria-current='page'] { color: var(--of-text); font-weight: var(--fw-medium); }

/* ---------- Seitenkopf ---------- */
.page-head { padding: var(--s6) 0 var(--s5); border-bottom: 1px solid var(--of-border); margin-bottom: var(--s6); }
.page-head h1 { font-size: clamp(30px, 3.8vw, 44px); margin-bottom: var(--s3); }
.page-head__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4); }
.page-head .lead { margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero { background: var(--of-navy); color: var(--white); position: relative; overflow: hidden; }
.hero__inner { position: relative; z-index: 1; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(140px, 15vw, 190px); }
.hero h1 { color: var(--white); max-width: 17ch; }
.hero .kicker { color: var(--of-sky); }
.hero__lead { font-size: var(--fs-md); max-width: 58ch; color: #e6ecf5; margin-bottom: var(--s5); }
.hero .tiles { margin-top: var(--s4); max-width: 900px; }
.hero__shelf { position: absolute; left: 0; right: 0; bottom: 0; height: 132px; z-index: 0; pointer-events: none; }
.hero__shelf svg { width: 100%; height: 100%; display: block; }
.hero .searchbar__btn { background: var(--of-sky); color: var(--of-text); }
.hero .searchbar__btn:hover { background: var(--of-sky-hover); }
.hero__hint { font-size: var(--fs-sm); color: #cfd9e8; margin-top: var(--s3); }
.hero__hint a { color: var(--white); }

/* ---------- Facetten ---------- */
.facets { display: flex; flex-direction: column; gap: 0; }
.facet { border-top: 1px solid var(--of-border); }
.facet:last-child { border-bottom: 1px solid var(--of-border); }
.facet > summary {
  list-style: none; cursor: pointer; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  font-weight: var(--fw-bold); font-size: var(--fs-sm); letter-spacing: .1em; text-transform: uppercase;
}
.facet > summary::-webkit-details-marker { display: none; }
.facet > summary .icon { transition: transform .15s var(--ease); }
.facet[open] > summary .icon { transform: rotate(180deg); }
.facet__body { padding: 0 0 var(--s4); }
.facet__more { margin-top: 6px; }
.facet__active-count { background: var(--of-navy); color: var(--white); font-size: 11px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; letter-spacing: 0; margin-left: 6px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin-top: var(--s6); }
.pagination a, .pagination span {
  min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 10px;
  border: 2px solid var(--of-border); color: var(--of-text); text-decoration: none; font-weight: var(--fw-bold);
}
.pagination a:hover { border-color: var(--of-navy); background: var(--of-sky-tint); }
.pagination [aria-current='page'] { background: var(--of-navy); border-color: var(--of-navy); color: var(--white); }

/* ---------- Leere Zustände ---------- */
.empty { text-align: center; padding: var(--s7) var(--s5); background: var(--of-section); }
.empty > .icon { width: 48px; height: 48px; color: var(--of-navy); margin-bottom: var(--s3); }
.empty h2, .empty h3 { font-size: var(--fs-xl); }
.empty p { max-width: 52ch; margin-left: auto; margin-right: auto; color: var(--of-text-2); }

/* ---------- Dialog ---------- */
dialog.dlg {
  border: 0; padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 32px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35); color: var(--of-text); background: var(--white);
  overflow: hidden;
}
dialog.dlg[open] { display: flex; flex-direction: column; }
dialog.dlg--wide { width: min(980px, calc(100vw - 24px)); }
dialog.dlg::backdrop { background: rgba(22, 43, 83, .55); }
.dlg__form { display: flex; flex-direction: column; min-height: 0; max-height: inherit; flex: 1 1 auto; }
.dlg__head { flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); padding: var(--s5) var(--s5) var(--s3); border-top: 6px solid var(--of-sky); }
.dlg__head h2 { font-size: var(--fs-xl); margin: 0; }
.dlg__body { flex: 1 1 auto; min-height: 0; padding: 0 var(--s5) var(--s5); overflow-y: auto; }
.dlg__meldung { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; margin: 0 var(--s5) var(--s3); padding: 10px 14px; background: var(--ok-tint); color: var(--of-text); border-left: 5px solid var(--ok); font-weight: var(--fw-medium); }
.dlg__meldung .icon { width: 20px; height: 20px; flex: 0 0 20px; }
.dlg__meldung--info { background: var(--of-sky-tint); border-left-color: var(--of-sky); }
.dlg__meldung--warnung, .dlg__meldung--fehler { background: var(--warn-tint); border-left-color: var(--eko-gelb); }
.dlg__foot { flex: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s3); padding: var(--s4) var(--s5); background: var(--of-section); }
@media (max-height: 480px) {
  dialog.dlg { max-height: calc(100dvh - 8px); }
  .dlg__form { overflow-y: auto; }
  .dlg__body { overflow: visible; flex: none; }
  .dlg__foot { flex-direction: row !important; flex-wrap: wrap; }
  .dlg__foot .btn { width: auto !important; min-height: 40px; }
}
@media (max-width: 520px) {
  dialog.dlg { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .dlg__head { padding: var(--s4) var(--s4) var(--s3); }
  .dlg__body { padding: 0 var(--s4) var(--s4); }
  .dlg__foot { padding: var(--s3) var(--s4); flex-direction: column-reverse; align-items: stretch; }
  .dlg__foot .btn { width: 100%; }
}

/* ---------- Toasts ---------- */
.toast-region { position: fixed; z-index: 2000; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(560px, calc(100vw - 24px)); pointer-events: none; }
.toast-region[popover] { margin: 0; inset: auto auto 24px 50%; padding: 0; border: 0; background: transparent; overflow: visible; color: inherit; }
.toast-region[popover]:not(:popover-open) { display: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 18px;
  background: var(--of-navy); color: var(--white); box-shadow: var(--shadow-2); border-left: 6px solid var(--of-sky);
  animation: toast-in .2s var(--ease);
}
.toast--erfolg { border-left-color: #3fc27a; }
.toast--warnung { border-left-color: var(--eko-gelb); }
.toast--fehler { border-left-color: var(--eko-rot); }
.toast__text { flex: 1; }
.toast a, .toast .btn-link { color: var(--white); }
.toast .icon-btn { color: var(--white); width: 36px; height: 36px; }
.toast .icon-btn:hover { background: rgba(255, 255, 255, .12); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--of-footer); color: #f1f1f1; margin-top: auto; }
.site-footer a, .site-footer .btn-link { color: #ffffff; }
.site-footer__grid { display: grid; gap: var(--s6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); padding: var(--s7) 0 var(--s6); }
.site-footer h2 { color: var(--of-beige); font-size: var(--fs-sm); letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--s3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer__bottom { border-top: 1px solid #444; padding: var(--s4) 0 var(--s5); font-size: var(--fs-sm); color: #cfcfcf; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); justify-content: space-between; }
.site-footer .icon { color: var(--of-beige); }

/* ---------- Druck-Container ---------- */
#print-root { display: none; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Druck ---------- */
@media print {
  @page { margin: 16mm 14mm; }
  body { display: block; font-size: 10.5pt; color: #000; background: #fff; }
  .demo-bar, .site-header, .mainnav, .site-footer, .toast-region, .skip-link, .no-print,
  .media-card__actions, .facets-col, .btn, .icon-btn, .pagination, dialog { display: none !important; }
  a { color: #000; text-decoration: none; }
  .media-card { break-inside: avoid; grid-template-columns: 60px 1fr; padding: 8px 0; }
  .media-card__cover { width: 60px; }
  .media-card__desc { -webkit-line-clamp: unset; display: block; }
  .section--navy, .hero, .card--navy { background: #fff !important; color: #000 !important; }
  .section--navy *, .hero *, .card--navy * { color: #000 !important; }
  body.drucke-auswahl > *:not(#print-root) { display: none !important; }
  body.drucke-auswahl #print-root { display: block !important; }
  .print-head { border-bottom: 2px solid #000; margin-bottom: 10pt; padding-bottom: 6pt; }
  .print-head__brand { font-size: 9pt; letter-spacing: .12em; text-transform: uppercase; }
  .print-item { break-inside: avoid; padding: 6pt 0; border-bottom: .5pt solid #999; }
  .print-item h3 { font-size: 12pt; margin: 0 0 2pt; }
  .print-item p { margin: 0 0 2pt; }
}
