/* ===== Per-Dept Utility Classes ============================================
   Nutzbar im Block-Editor via "Additional CSS Class".
   ========================================================================== */

/* Hintergründe */
.dept-bg-primary  { background-color: var(--dept-primary) !important; color: var(--dept-contrast) !important; }
.dept-bg-light    { background-color: var(--dept-light)   !important; }
.dept-bg-secondary { background-color: var(--dept-secondary) !important; color: var(--dept-contrast) !important; }

/* Text */
.dept-text        { color: var(--dept-primary) !important; }

/* Border */
.dept-border-left {
  border-left: 4px solid var(--dept-primary) !important;
  padding-left: 1rem !important;
}

.dept-border-top {
  border-top: 4px solid var(--dept-primary) !important;
  padding-top: 1rem !important;
}

/* Badge / Label */
.dept-badge {
  display: inline-block;
  background: var(--dept-light);
  color: var(--dept-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 9999px;
}

/* Karte mit Farbakzent */
.dept-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  border-top: 4px solid var(--dept-primary);
}

/* Button override */
.is-style-dept-outline {
  background: transparent !important;
  color: var(--dept-primary) !important;
  border: 2px solid var(--dept-primary) !important;
}

.is-style-dept-outline:hover {
  background: var(--dept-primary) !important;
  color: var(--dept-contrast) !important;
}

/* ─── Dept-spezifische Farb-Klassen (für expliziten Einsatz ohne body-class) */

/* Dept-Utility-Klassen — Farben kommen aus der WP-Palette (Site Editor → Stile) */
.eiserne-text    { color: var(--wp--preset--color--eiserne)   !important; }
.towers-text     { color: var(--wp--preset--color--towers)    !important; }
.kempo-text      { color: var(--wp--preset--color--kempo)     !important; }
.loewen-text     { color: var(--wp--preset--color--loewen)    !important; }
.gymnastik-text  { color: var(--wp--preset--color--gymnastik) !important; }

.eiserne-bg      { background: color-mix(in srgb, var(--wp--preset--color--eiserne)   8%, white) !important; }
.towers-bg       { background: color-mix(in srgb, var(--wp--preset--color--towers)    8%, white) !important; }
.kempo-bg        { background: color-mix(in srgb, var(--wp--preset--color--kempo)     8%, white) !important; }
.loewen-bg       { background: color-mix(in srgb, var(--wp--preset--color--loewen)    8%, white) !important; }
.gymnastik-bg    { background: color-mix(in srgb, var(--wp--preset--color--gymnastik) 8%, white) !important; }

/* ─── News-Card im Dept-Kontext */

.osc-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.osc-news-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--osc-border);
  background: var(--osc-white);
  transition: box-shadow 250ms ease, transform 250ms ease;
}

.osc-news-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.osc-news-card__image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.osc-news-card__body {
  padding: 1.25rem;
}

.osc-news-card__cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dept-primary);
  margin-bottom: 0.375rem;
}

.osc-news-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--osc-dark);
}

.osc-news-card__date {
  font-size: 0.75rem;
  color: var(--osc-muted);
}

/* ─── Scroll-Reveal Klassen für den Block-Editor */
/* Editoren können "reveal", "reveal-left", "stagger-parent" als CSS-Klasse setzen */
