/* ===== OSC Löbau — Global Styles 2026 =====================================
   Design-Prinzipien:
   - Outline-first: Karten mit 1px Border statt Hintergrundfarbe
   - Dept-Farbe als Akzent: Linker Border, Tag, Hover — nie Vollflächig
   - Typografie trägt das Design: Größenkontrast, Gewicht, Spacing
   - Header: dunkel mit Dept-Tönung, nie gleißend bunt
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: var(--font-sans); font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  background: #FAFAFA; color: var(--osc-dark);
  font-size: var(--text-base); line-height: 1.6;
  display: flex; flex-direction: column; min-height: 100vh;
}
.site-main { flex: 1; }  /* Footer klebt unten */

h1, h2, h3, h4, h5, h6 { font-weight: var(--font-weight-bold); line-height: 1.15; letter-spacing: -0.025em; color: var(--osc-dark); }
h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
p  { line-height: 1.7; }
a  { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--dept-primary); }
img, video { max-width: 100%; height: auto; display: block; }

/* ─── Header ─────────────────────────────────────────────────────────────── */

.osc-header {
  position: sticky; top: 0; z-index: 100;
  background: #0F0F0F;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background 400ms ease;
}

/* Dept: Header übernimmt die EXAKT eingestellte Dept-Farbe — keine Mischung mehr,
   damit der im Site-Editor gewählte Farbton 1:1 erscheint. Lesbarkeit wird über
   --dept-contrast gesteuert (weiß auf dunklen Farben, dunkel auf hellen). */
body.has-dept-color .osc-header {
  background: var(--dept-primary);
}
body.has-dept-color .osc-header,
body.has-dept-color .osc-header__logo,
body.has-dept-color .osc-header__logo:hover {
  color: var(--dept-contrast);
}
body.has-dept-color .osc-dept-nav__item {
  color: color-mix(in srgb, var(--dept-contrast) 55%, transparent);
}
body.has-dept-color .osc-dept-nav__item:hover,
body.has-dept-color .osc-dept-nav__item.is-active {
  color: var(--dept-contrast);
}
body.has-dept-color .osc-dept-nav__item:hover::after,
body.has-dept-color .osc-dept-nav__item.is-active::after {
  background: color-mix(in srgb, var(--dept-contrast) 70%, transparent);
}
body.has-dept-color .osc-header__global a {
  color: color-mix(in srgb, var(--dept-contrast) 60%, transparent);
}
body.has-dept-color .osc-header__global a:hover {
  color: var(--dept-contrast);
}
body.has-dept-color .hamburger-line {
  background: color-mix(in srgb, var(--dept-contrast) 85%, transparent);
}
body.has-dept-color .osc-header__toggle:hover {
  background: color-mix(in srgb, var(--dept-contrast) 12%, transparent);
}
body.has-dept-color .osc-header__user {
  border-color: color-mix(in srgb, var(--dept-contrast) 30%, transparent);
}
body.has-dept-color .osc-header__user a {
  color: var(--dept-contrast) !important;
}
body.has-dept-color .osc-header__user .osc-user-menu__logout {
  color: color-mix(in srgb, var(--dept-contrast) 55%, transparent) !important;
}
body.has-dept-color .osc-header__user .osc-user-menu__logout:hover {
  color: var(--dept-contrast) !important;
}

/* Buttons mit Dept-Farbe: dunkler Text bei hellen Dept-Farben (z.B. Kempo gelb).
   Inline-Style aus dem Content wird hier per !important überschrieben — der Token
   --dept-contrast wird automatisch je Dept-Body-Klasse gesetzt. */
body.dept-kempo .wp-block-button__link.has-background,
body.dept-kempo .wp-element-button.has-background {
  color: var(--dept-contrast) !important;
}

.osc-header.is-scrolled { box-shadow: 0 1px 20px rgba(0,0,0,.5); }

.osc-header__row {
  display: flex; align-items: center;
  height: var(--header-height); /* 60px */
  padding: 0 var(--space-5); max-width: var(--max-full); margin: 0 auto; gap: var(--space-3);
}

/* OSC Logo */
.osc-header__logo {
  display: flex; align-items: center; gap: var(--space-2);
  color: white; font-weight: var(--font-weight-bold); font-size: 0.9rem;
  text-decoration: none; flex-shrink: 0; white-space: nowrap;
}
.osc-header__logo:hover { color: white; } /* kein Rot beim Hover */
.osc-header__logo img {
  width: 32px; height: 32px; border-radius: 50%; object-fit: contain;
  background: white; padding: 1px; flex-shrink: 0;
}
.osc-header__logo-text { opacity: .85; letter-spacing: -0.01em; }

/* ─── Dept Nav Desktop ───────────────────────────────────────────────────── */

.osc-dept-nav { display: flex; align-items: center; flex: 1; justify-content: center; }
.osc-dept-nav--desktop { display: flex; gap: var(--space-1); }
.osc-dept-nav--mobile  { display: none; }

/* Logo + Text horizontal — Kreise */
.osc-dept-nav__item {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 6px 10px;
  text-decoration: none; color: rgba(255,255,255,.5);
  font-size: 0.78rem; font-weight: var(--font-weight-semibold);
  white-space: nowrap; border-radius: var(--radius);
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
}
.osc-dept-nav__logo {
  width: 24px; height: 24px; border-radius: 50%;
  object-fit: contain; background: white; padding: 2px; flex-shrink: 0;
  transition: filter var(--transition-base), opacity var(--transition-base);
}
/* Hover: nur Schrift heller + Unterstrich — kein Pill/Button-Hintergrund.
   Einheitlich mit der Subnav darunter. */
.osc-dept-nav__item::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px;
  height: 2px; background: transparent; border-radius: 2px;
  transition: background var(--transition-fast);
}
.osc-dept-nav__item:hover { color: white; background: transparent; }
.osc-dept-nav__item:hover::after { background: rgba(255,255,255,.45); }
.osc-dept-nav__item:hover .osc-dept-nav__logo { filter: none; opacity: 1; }

/* Im Dept: andere ausblenden, aktives klar */
body.has-dept-color .osc-dept-nav__item .osc-dept-nav__logo { filter: grayscale(1) brightness(.5); opacity: .4; }
body.has-dept-color .osc-dept-nav__item:hover .osc-dept-nav__logo { filter: none; opacity: .85; }
body.has-dept-color .osc-dept-nav__item:hover { color: rgba(255,255,255,.9); }
body.has-dept-color .osc-dept-nav__item.is-active { color: white; }
body.has-dept-color .osc-dept-nav__item.is-active .osc-dept-nav__logo { filter: none; opacity: 1; }
body.has-dept-color .osc-dept-nav__item.is-active::after { background: rgba(255,255,255,.7); }

/* Mobile Logo-Only */
.osc-dept-nav__icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; text-decoration: none; flex-shrink: 0;
}
.osc-dept-nav__icon img {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: contain; background: white; padding: 2px;
  transition: filter var(--transition-base), opacity var(--transition-base);
}
body.has-dept-color .osc-dept-nav__icon img { filter: grayscale(1) brightness(.5); opacity: .4; }
body.has-dept-color .osc-dept-nav__icon.is-active img { filter: none; opacity: 1; }
.osc-dept-nav__icon:hover img { filter: none !important; opacity: 1 !important; }

/* Globale Header-Links — minimal, kein Button-Look */
.osc-header__global {
  display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0;
}
.osc-header__global a {
  color: rgba(255,255,255,.55); font-size: 0.78rem; font-weight: var(--font-weight-medium);
  text-decoration: none; white-space: nowrap;
  transition: color var(--transition-fast);
}
.osc-header__global a:hover { color: white; }
/* User-Menu im Header — separates Styling als "Profil-Chip" */
.osc-header__user {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  font-size: 0.78rem;
}
.osc-header__user a {
  color: white !important; border-bottom: none !important;
  font-weight: var(--font-weight-semibold) !important;
}
.osc-header__user .osc-user-menu__logout {
  color: rgba(255,255,255,.55) !important; font-size: 0.9rem;
}
.osc-header__user .osc-user-menu__logout:hover { color: white !important; }
@media (max-width: 860px) { .osc-header__global { display: none; } }

/* Footer-Mitglieder-Menü */
.osc-footer__user a {
  color: var(--color-text-muted);
}
.osc-footer__user a:hover { color: white; }
.osc-footer__user .osc-user-menu__logout {
  font-size: 0.75rem; opacity: 0.6;
}

/* Hamburger */
.osc-header__toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px;
  background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: var(--radius); flex-shrink: 0;
  transition: background var(--transition-fast);
}
.osc-header__toggle:hover { background: rgba(255,255,255,.08); }
.hamburger-line {
  display: block; width: 100%; height: 1.5px;
  background: rgba(255,255,255,.8); border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform-origin: center;
}
.osc-header.nav-open .hamburger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.osc-header.nav-open .hamburger-line:nth-child(2) { opacity: 0; }
.osc-header.nav-open .hamburger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Desktop Sub-Nav ────────────────────────────────────────────────────── */

.osc-subnav {
  background: rgba(0,0,0,.2);
  border-top: 1px solid rgba(255,255,255,.08);
  max-height: 0; overflow: hidden;
  transition: max-height 280ms ease;
}
.osc-subnav.is-visible { max-height: 50px; }

.osc-subnav__inner {
  display: flex; align-items: center; justify-content: center;
  max-width: var(--max-full); margin: 0 auto;
  padding: 0 var(--space-5); height: 44px;
  gap: var(--space-3); overflow-x: auto; scrollbar-width: none;
  flex-wrap: nowrap;
}
.osc-subnav__inner::-webkit-scrollbar { display: none; }

/* Subnav: gleiche Hover-Logik wie Dept-Nav — Unterstrich, kein Pill */
.osc-subnav a {
  position: relative;
  color: rgba(255,255,255,.7); font-size: 0.8rem; font-weight: var(--font-weight-medium);
  padding: 8px 4px;
  white-space: nowrap; flex-shrink: 0; text-decoration: none;
  transition: color var(--transition-fast);
}
.osc-subnav a::after {
  content: ''; position: absolute; left: 4px; right: 4px; bottom: 3px;
  height: 2px; background: transparent; border-radius: 2px;
  transition: background var(--transition-fast);
}
.osc-subnav a:hover { color: white; background: transparent; }
.osc-subnav a:hover::after { background: rgba(255,255,255,.4); }
.osc-subnav a.current-page {
  color: white; font-weight: var(--font-weight-semibold);
  background: transparent; box-shadow: none;
}
.osc-subnav a.current-page::after { background: rgba(255,255,255,.7); }

/* ─── Mobile Menü ────────────────────────────────────────────────────────── */

.osc-mobile-menu {
  display: none; background: rgba(10,10,10,.97);
  border-top: 1px solid rgba(255,255,255,.06);
  overflow: hidden; max-height: 0;
  transition: max-height 350ms ease;
}
body.has-dept-color .osc-mobile-menu {
  background: color-mix(in srgb, var(--dept-primary) 85%, black);
}
.osc-mobile-menu.is-open { max-height: 75vh; overflow-y: auto; }
.osc-mobile-menu__inner { padding: var(--space-2) var(--space-4) var(--space-5); }
.osc-mobile-menu__ctx-label {
  font-size: 0.6rem; font-weight: var(--font-weight-bold);
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255,255,255,.35); padding: var(--space-3) var(--space-2) var(--space-2);
}
.osc-mobile-menu__inner a {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 11px var(--space-2); color: rgba(255,255,255,.72);
  font-size: 0.88rem; font-weight: var(--font-weight-medium);
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.05);
  transition: color var(--transition-fast);
}
.osc-mobile-menu__inner a:hover, .osc-mobile-menu__inner a.current-page { color: white; }
.osc-mobile-menu__inner a.current-page { font-weight: var(--font-weight-semibold); }
.osc-mobile-menu__back {
  color: rgba(255,255,255,.35) !important; font-size: 0.72rem !important;
  border-bottom: none !important; padding: var(--space-2) var(--space-2) var(--space-1) !important;
}
.osc-mobile-menu__back:hover { color: rgba(255,255,255,.6) !important; }
.osc-mobile-menu__divider { height: 1px; background: rgba(255,255,255,.08); margin: var(--space-2) 0; }
.osc-mobile-menu__dept-link { color: rgba(255,255,255,.6) !important; font-size: 0.85rem !important; }
.osc-mobile-menu__dept-link:hover { color: white !important; }
.osc-mobile-menu__global-links { display: flex; flex-wrap: wrap; gap: var(--space-3); padding: var(--space-3) var(--space-2) 0; }
.osc-mobile-menu__global-links a { border-bottom: none !important; padding: var(--space-1) 0 !important; font-size: 0.78rem !important; color: rgba(255,255,255,.35) !important; }
.osc-mobile-menu__global-links a:hover { color: rgba(255,255,255,.65) !important; }

/* ─── Responsive: Mobile Header ──────────────────────────────────────────── */

@media (max-width: 860px) {
  .osc-dept-nav--desktop { display: none; }
  .osc-dept-nav--mobile  { display: flex; gap: var(--space-1); flex: 1; justify-content: center; }
  .osc-header__toggle    { display: flex; }
  .osc-mobile-menu       { display: block; }
  .osc-header__logo-text { display: none; }
  .osc-subnav            { display: none; }
  /* User-Chip im Header auf mobile NICHT zeigen — der Login wandert in den Footer
     (saubere Mobile-UX, Header bleibt aufgeräumt: Logo + Dept-Logos + Burger). */
  .osc-header__user      { display: none; }
}
@media (min-width: 861px) {
  .osc-mobile-menu      { display: none !important; }
  .osc-dept-nav--mobile { display: none !important; }
  .osc-header__toggle   { display: none !important; }
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.osc-hero {
  position: relative; overflow: hidden;
  color: white;
  min-height: 520px; display: flex; align-items: center;
}
.osc-hero--dept {
  min-height: clamp(260px, 40vh, 380px);
}
.osc-hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .2; mix-blend-mode: luminosity;
}
.osc-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.4) 55%, rgba(0,0,0,.1) 100%);
}
.osc-hero__content {
  position: relative; z-index: 1;
  max-width: var(--max-wide); width: 100%; margin: 0 auto;
  padding: var(--space-20) var(--space-6);
}
.osc-hero--dept .osc-hero__content { padding: var(--space-10) var(--space-6) var(--space-10); }

.osc-hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-size: 0.65rem; font-weight: var(--font-weight-bold);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--osc-yellow, #F5C200); margin-bottom: var(--space-4);
}
.osc-hero__eyebrow::before { content: ''; display: block; width: 24px; height: 1.5px; background: currentColor; }

.osc-hero h1 { color: white; font-size: clamp(2rem, 4.5vw, 3.5rem); max-width: 16ch; margin-bottom: var(--space-4); }
.osc-hero--dept h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: var(--space-2); }
.osc-hero__tagline { font-size: 1.05rem; color: rgba(255,255,255,.7); font-style: italic; margin-bottom: var(--space-6); }
.osc-hero__lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgba(255,255,255,.72); max-width: 52ch; margin-bottom: var(--space-8); line-height: 1.65; }

/* Buttons */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.wp-block-button__link, .osc-btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 0.85rem; font-weight: var(--font-weight-semibold);
  cursor: pointer; transition: all var(--transition-fast);
  border: 1.5px solid transparent; text-decoration: none; white-space: nowrap;
}
.wp-block-buttons .wp-block-button__link {
  background: var(--dept-primary, var(--osc-red));
  border-color: var(--dept-primary, var(--osc-red)); color: white;
}
.wp-block-buttons .wp-block-button__link:hover {
  background: var(--dept-secondary, #990000);
  border-color: var(--dept-secondary, #990000);
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent; color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.4);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(255,255,255,.12); color: white; border-color: rgba(255,255,255,.7);
}

/* ─── Sections ───────────────────────────────────────────────────────────── */

.osc-section { padding: var(--space-16) var(--space-6); max-width: var(--max-wide); margin: 0 auto; }
.osc-section__header { margin-bottom: var(--space-10); }
.osc-section__label {
  display: inline-block; font-size: 0.65rem; font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dept-primary, var(--osc-red)); margin-bottom: var(--space-3);
}
.osc-section__title {
  font-size: var(--text-4xl); font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.03em; line-height: 1.1;
}

/* ─── Dept Cards (Startseite) ────────────────────────────────────────────── */

.osc-dept-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
}
.osc-dept-card {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; background: white;
  border: 1px solid var(--osc-border);
  text-decoration: none; color: var(--osc-dark);
  display: flex; flex-direction: column; min-height: 240px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.osc-dept-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,.1); border-color: transparent; }

.osc-dept-card__img { height: 110px; overflow: hidden; background: var(--osc-light); }
.osc-dept-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.osc-dept-card:hover .osc-dept-card__img img { transform: scale(1.06); }

/* Farbiger Top-Akzent — 3px Linie statt Balken */
.osc-dept-card__color-band { height: 3px; flex-shrink: 0; }
.osc-dept-card[data-dept="eiserne"]   .osc-dept-card__color-band { background: var(--wp--preset--color--eiserne,   #CC0000); }
.osc-dept-card[data-dept="towers"]    .osc-dept-card__color-band { background: var(--wp--preset--color--towers,    #EA580C); }
.osc-dept-card[data-dept="kempo"]     .osc-dept-card__color-band { background: var(--wp--preset--color--kempo,     #B45309); }
.osc-dept-card[data-dept="loewen"]    .osc-dept-card__color-band { background: var(--wp--preset--color--loewen,    #1D4ED8); }
.osc-dept-card[data-dept="gymnastik"] .osc-dept-card__color-band { background: var(--wp--preset--color--gymnastik, #9D174D); }

.osc-dept-card__body { padding: var(--space-4); flex: 1; display: flex; flex-direction: column; }
.osc-dept-card__sport { font-size: 0.62rem; font-weight: var(--font-weight-bold); text-transform: uppercase; letter-spacing: 0.1em; color: var(--osc-muted); margin-bottom: var(--space-1); }
.osc-dept-card__name { font-size: var(--text-lg); font-weight: var(--font-weight-bold); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: var(--space-2); }
.osc-dept-card__desc { font-size: 0.78rem; color: var(--osc-muted); line-height: 1.5; flex: 1; }
.osc-dept-card__arrow { align-self: flex-end; margin-top: var(--space-3); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.osc-dept-card[data-dept="eiserne"]   .osc-dept-card__arrow { background: #FEF2F2; color: #CC0000; }
.osc-dept-card[data-dept="towers"]    .osc-dept-card__arrow { background: #FFF7ED; color: #EA580C; }
.osc-dept-card[data-dept="kempo"]     .osc-dept-card__arrow { background: #FFFBEB; color: #B45309; }
.osc-dept-card[data-dept="loewen"]    .osc-dept-card__arrow { background: #EFF6FF; color: #1D4ED8; }
.osc-dept-card[data-dept="gymnastik"] .osc-dept-card__arrow { background: #FFF1F2; color: #9D174D; }

/* ─── News Grid — Outline-Cards ──────────────────────────────────────────── */

/* WP block override */
.osc-news-grid,
.wp-block-query.osc-news-grid ul.wp-block-post-template,
.wp-block-query.osc-news-grid > ul {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  list-style: none; padding: 0; margin: 0;
}
.wp-block-query.osc-news-grid ul.wp-block-post-template > li,
.wp-block-query.osc-news-grid > ul > li { list-style: none; }

.osc-news-card {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--osc-border); background: white;
  transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}
.osc-news-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-3px); border-color: var(--osc-border); }
.osc-news-card__img { aspect-ratio: 16/9; overflow: hidden; background: var(--osc-light); }
.osc-news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.osc-news-card:hover .osc-news-card__img img { transform: scale(1.04); }
.osc-news-card__body { padding: var(--space-4) var(--space-5); }
.osc-news-card__cat { font-size: 0.62rem; font-weight: var(--font-weight-bold); text-transform: uppercase; letter-spacing: 0.1em; color: var(--dept-primary, var(--osc-red)); margin-bottom: var(--space-2); }
.osc-news-card__title { font-size: var(--text-base); font-weight: var(--font-weight-bold); line-height: 1.35; margin-bottom: var(--space-2); }
.osc-news-card__date { font-size: 0.72rem; color: var(--osc-muted); }

/* ─── Downloads ──────────────────────────────────────────────────────────── */

.osc-downloads__filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.osc-downloads__filter-btn {
  padding: 5px 14px; border-radius: var(--radius-full);
  border: 1px solid var(--osc-border); background: white; color: var(--osc-mid);
  font-size: var(--text-sm); font-weight: var(--font-weight-medium);
  cursor: pointer; transition: all var(--transition-fast); font-family: var(--font-sans);
}
.osc-downloads__filter-btn:hover { border-color: var(--dept-primary); color: var(--dept-primary); }
.osc-downloads__filter-btn.is-active { background: var(--dept-primary); border-color: var(--dept-primary); color: white; }
.osc-downloads__grid { display: grid; gap: var(--space-2); }
.osc-download-item {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-4); border: 1px solid var(--osc-border); border-radius: var(--radius-md);
  text-decoration: none; color: var(--osc-dark); background: white;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.osc-download-item:hover { border-color: var(--dept-primary); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.osc-download-item__icon { width: 38px; height: 38px; border-radius: var(--radius); background: var(--dept-light, #FEF2F2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--dept-primary); }
.osc-download-item__info { flex: 1; min-width: 0; }
.osc-download-item__name { font-weight: var(--font-weight-semibold); font-size: var(--text-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.osc-download-item__meta { font-size: var(--text-xs); color: var(--osc-muted); margin-top: 2px; }
.osc-download-item__badge { font-size: var(--text-xs); font-weight: var(--font-weight-semibold); padding: 2px 10px; border-radius: var(--radius-full); border: 1px solid currentColor; color: var(--dept-primary); white-space: nowrap; flex-shrink: 0; }

/* Safety-Net: jedes main bekommt Mindest-Bottom-Padding, damit Inhalt nie
   direkt am Footer klebt — fängt Templates ab, in denen das vergessen wurde. */
main.site-main { padding-bottom: var(--space-12); }

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.osc-footer {
  background: #0F0F0F; color: rgba(255,255,255,.6);
  border-top: 1px solid rgba(255,255,255,.06);
}

/* Desktop: Brand + 3 Link-Spalten */
.osc-footer__main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-10);
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: var(--space-14) var(--space-6) var(--space-10);
  align-items: start;
}
/* cols als normale grid-kinder — kein display:contents */
.osc-footer__cols {
  display: contents;
}

.osc-footer__brand-logo { display: inline-block; margin-bottom: var(--space-3); }
.osc-footer__brand-logo img { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; }
.osc-footer__brand-name { color: white; font-weight: var(--font-weight-bold); font-size: var(--text-base); margin-bottom: var(--space-2); }
.osc-footer__tagline { font-size: var(--text-sm); color: rgba(255,255,255,.4); line-height: 1.55; }

.osc-footer__col-title { color: rgba(255,255,255,.3); font-size: 0.62rem; font-weight: var(--font-weight-bold); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--space-4); }
.osc-footer__links { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.osc-footer__links a { font-size: var(--text-sm); color: rgba(255,255,255,.5); transition: color var(--transition-fast); text-decoration: none; }
.osc-footer__links a:hover { color: white; }

/* User-Chip im Footer = identisch zum Desktop-Header-Chip, nur kleiner Kontext.
   Liegt rechts in der Bottom-Bar neben Impressum/Datenschutz. */
.osc-footer__user-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  font-size: 0.78rem;
}
.osc-footer__user-chip a {
  color: rgba(255,255,255,.85) !important; border-bottom: none !important;
  font-weight: var(--font-weight-semibold) !important;
  text-decoration: none;
}
.osc-footer__user-chip a:hover { color: white !important; }
.osc-footer__user-chip .osc-user-menu__logout {
  color: rgba(255,255,255,.45) !important; font-size: 0.9rem;
}
.osc-footer__user-chip .osc-user-menu__logout:hover { color: white !important; }

.osc-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  max-width: var(--max-wide); margin: 0 auto;
  padding: var(--space-5) var(--space-6) var(--space-8);
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-4); font-size: var(--text-xs); color: rgba(255,255,255,.25);
}
.osc-footer__legal { display: flex; gap: var(--space-5); }
.osc-footer__legal a { color: rgba(255,255,255,.25); font-size: var(--text-xs); text-decoration: none; transition: color var(--transition-fast); }
.osc-footer__legal a:hover { color: rgba(255,255,255,.6); }

/* Kein WP default nav block im footer */
.osc-footer .wp-block-navigation { display: none; }

/* ─── Single Post ────────────────────────────────────────────────────────── */

.osc-single__hero { background: var(--osc-light); border-bottom: 1px solid var(--osc-border); }
.osc-single__hero .wp-block-post-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1100px) { .osc-dept-grid { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 768px) {
  .osc-hero { min-height: 340px; }
  .osc-hero__content { padding: var(--space-10) var(--space-4) var(--space-8); }
  .osc-hero--dept .osc-hero__content { padding: var(--space-8) var(--space-4); }
  .osc-dept-grid { grid-template-columns: repeat(2, 1fr); }

  .osc-news-grid,
  .wp-block-query.osc-news-grid ul.wp-block-post-template {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Footer Mobile: Brand oben, dann 3 schmale Spalten nebeneinander —
     wirkt aufgeräumter als 2x2 mit unbalanciertem dritten Eintrag */
  .osc-footer__main {
    grid-template-columns: 1fr;
    gap: 0;
    padding: var(--space-10) var(--space-5) var(--space-8);
  }
  .osc-footer__brand { padding-bottom: var(--space-6); border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: var(--space-6); }
  .osc-footer__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
  .osc-footer__col-title { font-size: 0.58rem; margin-bottom: var(--space-3); }
  .osc-footer__links a { font-size: 0.78rem; }
  .osc-footer__bottom {
    flex-direction: column; align-items: flex-start; gap: var(--space-3);
    padding: var(--space-5) var(--space-5) var(--space-10);
  }
  .osc-footer__legal { flex-wrap: wrap; gap: var(--space-3) var(--space-4); align-items: center; }
}
@media (max-width: 480px) {
  .osc-footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .osc-dept-grid { grid-template-columns: 1fr; }
  .osc-news-grid,
  .wp-block-query.osc-news-grid ul.wp-block-post-template {
    grid-template-columns: 1fr !important;
  }
  .osc-footer__cols { grid-template-columns: 1fr; }
  h1 { font-size: 1.8rem; }
}
