/* ================================================================
   FF DIBA 2027 — RESPONSE Theme
   Design: Editorial · Full-Width · Emergency-First
   ================================================================ */

/* ── Custom Properties ─────────────────────────────────────────── */
:root {
  color-scheme: light; /* Theme ist nur für Light-Mode ausgelegt → kein Auto-Darkmode */
  --red:        #C8191A;
  --red-dark:   #8B0000;
  --red-bright: #e02020;
  --ink:        #0d1117;
  --navy:       #1a2035;
  --navy-light: #232d45;
  --white:      #ffffff;
  --offwhite:   #f8f9fb;
  --gray-100:   #f1f3f6;
  --gray-200:   #e2e6ec;
  --gray-400:   #9aa3b2;
  --gray-600:   #5a6478;
  --text:       #1a2035;
  --radius:     6px;
  --shadow:     0 2px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.18);
  --trans:      .28s cubic-bezier(.4,0,.2,1);
  --max-w:      1400px;
  --pad:        clamp(16px, 4vw, 48px);
}

/* ── Reset & Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--offwhite);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--red); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--red-dark); }

h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

p { margin-bottom: 1em; }

/* ── Layout ─────────────────────────────────────────────────────── */
#page { display: flex; flex-direction: column; min-height: 100vh; }
#content { flex: 1; }

.ff27-wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.ff27-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  text-decoration: none;
  letter-spacing: .03em;
}
.ff27-btn-primary {
  background: var(--red);
  color: #fff;
}
.ff27-btn-primary:hover {
  background: var(--red-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200,25,26,.35);
}
.ff27-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}
.ff27-btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  color: #fff;
  transform: translateY(-1px);
}
.ff27-btn-dark {
  background: var(--ink);
  color: #fff;
}
.ff27-btn-dark:hover { background: var(--navy); color: #fff; }
.ff27-btn-ghost {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.ff27-btn-ghost:hover { background: var(--red); color: #fff; }

/* Section link */
.ff27-section-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  color: var(--red);
  letter-spacing: .06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ff27-section-link::after { content: '→'; transition: transform var(--trans); }
.ff27-section-link:hover::after { transform: translateX(4px); }
.ff27-section-link:hover { color: var(--red-dark); }

/* ── Section Header ─────────────────────────────────────────────── */
.ff27-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gray-200);
  gap: 16px;
  flex-wrap: wrap;
}
.ff27-section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 4px;
}
.ff27-section-title {
  font-family: 'Oswald', 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .01em;
  margin: 0;
}

/* ── Einsatzart Badge ───────────────────────────────────────────── */
.ff27-badge {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════════ */
#masthead {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--ink);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}

.ff27-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

/* Logo */
.ff27-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.ff27-branding img.custom-logo { height: 48px; width: auto; }
.ff27-branding-text { display: flex; flex-direction: column; }
.ff27-branding-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  line-height: 1.1;
}
.ff27-branding-sub {
  font-size: .68rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Primary Nav */
.ff27-nav { display: flex; align-items: center; gap: 2px; list-style: none; }

.ff27-nav > li { position: relative; }

.ff27-nav > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  color: rgba(255,255,255,.85);
  padding: 8px 14px;
  border-radius: 4px;
  transition: background var(--trans), color var(--trans);
  white-space: nowrap;
}
.ff27-nav > li > a:hover,
.ff27-nav > li.current-menu-item > a,
.ff27-nav > li.current-menu-ancestor > a {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.ff27-nav > li.current-menu-item > a { border-bottom: 2px solid var(--red); }

/* UIkit-Icon Fallback (Emoji im Nav-Label) */
.ff27-nav-icon {
  font-style: normal;
  font-size: 1em;
  margin-right: 3px;
  vertical-align: middle;
}

/* Caret on parent items */
.ff27-nav > li.menu-item-has-children > a::after {
  content: '▾';
  font-size: .65rem;
  opacity: .6;
  margin-left: 2px;
}

/* Dropdown — targets standard WP sub-menu */
.ff27-nav > li > ul.sub-menu,
.ff27-nav > li > ul {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius);
  border-top: 3px solid var(--red);
  box-shadow: var(--shadow-lg);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--trans), visibility var(--trans), transform var(--trans);
  z-index: 100;
  padding: 0;
}
.ff27-nav > li:hover > ul.sub-menu,
.ff27-nav > li:hover > ul,
.ff27-nav > li:focus-within > ul.sub-menu,
.ff27-nav > li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ff27-nav > li > ul li a,
.ff27-nav > li > ul.sub-menu li a {
  display: block;
  padding: 10px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--trans), color var(--trans), padding var(--trans);
}
.ff27-nav > li > ul li a:hover { background: var(--gray-100); color: var(--red); padding-left: 24px; }
.ff27-nav > li > ul li:last-child a { border-bottom: none; }

/* Emergency button */
.ff27-emergency {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  padding: 8px 18px;
  border-radius: var(--radius);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  transition: background var(--trans);
  letter-spacing: .04em;
}
.ff27-emergency:hover { background: var(--red-dark); color: #fff; }
.ff27-emergency-icon { font-size: 1.1rem; }

/* Hamburger */
.ff27-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.ff27-hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}
.ff27-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ff27-hamburger.open span:nth-child(2) { opacity: 0; }
.ff27-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav — kein display:none, nur max-height Animation */
.ff27-mobile-nav {
  background: var(--navy);
  overflow: hidden;
  max-height: 0;
  visibility: hidden;
  transition: max-height .4s ease, visibility .4s;
}
.ff27-mobile-nav.open {
  max-height: 100vh;
  visibility: visible;
}
.ff27-mobile-nav ul { list-style: none; padding: 8px 0 16px; }
.ff27-mobile-nav ul li a {
  display: block;
  padding: 12px var(--pad);
  color: rgba(255,255,255,.85);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background var(--trans);
}
.ff27-mobile-nav ul li a:hover { background: rgba(255,255,255,.08); color: #fff; }
.ff27-mobile-nav ul ul,
.ff27-mobile-nav ul ul.sub-menu {
  padding: 0;
  background: rgba(0,0,0,.2);
  list-style: none;
  display: none; /* JS toggles this */
}
.ff27-mobile-nav ul ul.ff27-sub-open { display: block; }
.ff27-mobile-nav ul ul li a { padding-left: calc(var(--pad) + 16px); font-size: .82rem; }

/* Toggle-Button neben Eltern-Link */
.ff27-mobile-sub-toggle {
  position: absolute;
  right: 0; top: 0;
  height: 100%;
  width: 52px;
  background: transparent;
  border: none;
  border-left: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans), color var(--trans);
}
.ff27-mobile-sub-toggle:hover { background: rgba(255,255,255,.08); color: #fff; }
.ff27-mobile-sub-toggle svg { transition: transform var(--trans); }
.ff27-mobile-sub-toggle.open svg { transform: rotate(180deg); }
.ff27-mobile-nav ul li { position: relative; }

/* ════════════════════════════════════════════════════════════════
   NEWS TICKER
   ════════════════════════════════════════════════════════════════ */
.ff27-ticker {
  background: var(--red);
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
}
.ff27-ticker-label {
  flex-shrink: 0;
  background: var(--red-dark);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.ff27-ticker-track {
  display: flex;
  animation: ff27-ticker 28s linear infinite;
  white-space: nowrap;
}
.ff27-ticker-track:hover { animation-play-state: paused; }
.ff27-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 32px;
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
}
.ff27-ticker-item a { color: #fff; font-weight: 600; }
.ff27-ticker-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.5); }
.ff27-ticker-date { color: #111; font-weight: 600; font-size: .75rem; }

@keyframes ff27-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ════════════════════════════════════════════════════════════════
   HERO SLIDER
   ════════════════════════════════════════════════════════════════ */
.ff27-hero {
  position: relative;
  width: 100%;
  height: clamp(380px, 52vh, 560px);
  background: var(--ink);
  overflow: hidden;
}

.ff27-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility .7s ease;
  z-index: 1;
}
.ff27-hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.ff27-hero-img {
  position: absolute;
  inset: 0;
}
.ff27-hero-img a { display: block; height: 100%; }
.ff27-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--ink);
}
/* Fotos (kein PNG-Grafik): cover für echte Fotos wenn gewünscht */
.ff27-hero-img.ff27-photo img {
  object-fit: cover;
}
/* Grafiken (BMA, TH, ABC Icons): contain auf weißem Hintergrund */
.ff27-hero-img.ff27-graphic img {
  object-fit: contain;
  background: #fff;
}

/* Gradient overlay — dramatic */
.ff27-hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 40%, rgba(0,0,0,.05) 100%),
    linear-gradient(to right, rgba(0,0,0,.4) 0%, transparent 60%);
  z-index: 3;
  pointer-events: none;
}

/* Content */
.ff27-hero-content {
  position: absolute;
  bottom: 0; left: 0;
  z-index: 4;
  padding: 0 var(--pad) 52px;
  max-width: 720px;
}
.ff27-hero-content .ff27-badge { margin-bottom: 14px; }
.ff27-hero-title {
  font-family: 'Oswald', 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.ff27-hero-meta {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Slide counter */
.ff27-hero-counter {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 5;
  background: rgba(0,0,0,.45);
  color: rgba(255,255,255,.85);
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* Arrows */
.ff27-hero-prev,
.ff27-hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans);
  padding: 0;
}
.ff27-hero-prev { left: 20px; }
.ff27-hero-next { right: 20px; }
.ff27-hero-prev:hover,
.ff27-hero-next:hover { background: var(--red); border-color: var(--red); }

/* Dots */
.ff27-hero-dots {
  position: absolute;
  bottom: 20px;
  right: var(--pad);
  z-index: 10;
  display: flex;
  gap: 6px;
  align-items: center;
}
.ff27-hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  transition: background var(--trans), transform var(--trans);
  padding: 0;
}
.ff27-hero-dot.active { background: var(--red); transform: scale(1.35); }
.ff27-hero-dot:hover  { background: rgba(255,255,255,.75); }

/* Progress bar */
.ff27-hero-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,.15);
  z-index: 11;
  overflow: hidden;
}
.ff27-hero-bar {
  height: 100%;
  background: var(--red);
  width: 0%;
  animation: ff27-progress 6s linear infinite;
}
.ff27-hero-bar.paused { animation-play-state: paused; }
@keyframes ff27-progress { from { width:0 } to { width:100% } }

/* ════════════════════════════════════════════════════════════════
   STATS BAR
   ════════════════════════════════════════════════════════════════ */
.ff27-stats {
  background: var(--navy);
  padding: 0;
}
.ff27-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.ff27-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  border-right: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
.ff27-stat:last-child { border-right: none; }
.ff27-stat-num {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 4px;
}
.ff27-stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════════
   EINSÄTZE SECTION
   ════════════════════════════════════════════════════════════════ */
.ff27-section { padding: clamp(36px,6vw,72px) 0; }
.ff27-section-gray { background: var(--gray-100); }
.ff27-section-white { background: var(--white); }
.ff27-section-dark  { background: var(--navy); }

/* Einsatz grid: 4 cards */
.ff27-einsatz-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.ff27-einsatz-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--trans), box-shadow var(--trans);
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--red);
}
.ff27-einsatz-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.ff27-einsatz-card-img {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: var(--gray-100);
}
.ff27-einsatz-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.ff27-einsatz-card:hover .ff27-einsatz-card-img img { transform: scale(1.05); }
.ff27-einsatz-card-img-icon {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 12px;
}
.ff27-einsatz-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.ff27-einsatz-card-date {
  font-size: .72rem;
  color: var(--gray-400);
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.ff27-einsatz-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  margin: 6px 0 auto;
  line-height: 1.3;
}
.ff27-einsatz-card-title a { color: inherit; }
.ff27-einsatz-card-title a:hover { color: var(--red); }
.ff27-einsatz-card-link {
  margin-top: 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: .04em;
}
.ff27-einsatz-card-link::after { content: '→'; transition: transform var(--trans); }
.ff27-einsatz-card-link:hover::after { transform: translateX(4px); }

/* ════════════════════════════════════════════════════════════════
   NEWS / AKTUELLES — Editorial Grid
   ════════════════════════════════════════════════════════════════ */
/* 3 gleichwertige Karten nebeneinander */
.ff27-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.ff27-news-grid > article {
  display: flex;
  min-height: 0;
}

.ff27-post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--trans), box-shadow var(--trans);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.ff27-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.ff27-post-card-img {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
  height: 260px;        /* gleiche Bildhöhe für alle Karten */
  flex-shrink: 0;
}
.ff27-post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;  /* Hochkant-Bilder: oben beginnen (Gesichter sichtbar) */
  display: block;
  transition: transform .5s ease;
}
.ff27-post-card:hover .ff27-post-card-img img { transform: scale(1.04); }

.ff27-post-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.ff27-post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  color: var(--gray-400);
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.ff27-post-card-cat {
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}
.ff27-post-card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}
.ff27-news-featured .ff27-post-card-title { font-size: 1.4rem; }
.ff27-post-card-sm .ff27-post-card-title { font-size: .95rem; }
.ff27-post-card-title a { color: inherit; }
.ff27-post-card-title a:hover { color: var(--red); }

.ff27-post-card-excerpt {
  font-size: .85rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.ff27-post-card-sm .ff27-post-card-excerpt { display: none; }

/* Row below: 3 equal posts */
.ff27-news-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.ff27-news-row .ff27-post-card-img { height: 180px; }
.ff27-news-row .ff27-post-card-img img { height: 100%; object-fit: cover; }
.ff27-news-row .ff27-post-card-title { font-size: .95rem; }

/* Clickable card — stretch inner link to cover whole card */
.ff27-post-card { position: relative; }
.ff27-post-card-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.ff27-post-card-body > *:not(.ff27-post-card-title) { position: relative; z-index: 2; }

/* ════════════════════════════════════════════════════════════════
   EINSATZ-ARCHIV LAYOUT (2 columns: grid + sidebar)
   ════════════════════════════════════════════════════════════════ */
.ff27-einsatz-archive-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  align-items: start;
}
.ff27-einsatz-archive-main { min-width: 0; }

/* Archive sidebar */
.ff27-einsatz-archive-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 88px;
}
.ff27-archive-widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ff27-archive-widget-title {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-600);
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--gray-100);
  margin: 0;
}
.ff27-archive-filter-list { list-style: none; padding: 6px 0; }
.ff27-archive-filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text);
  transition: background var(--trans), color var(--trans);
  text-decoration: none;
}
.ff27-archive-filter-item:hover { background: var(--gray-100); color: var(--red); }
.ff27-archive-filter-item.active {
  background: var(--gray-100);
  color: var(--red);
  font-weight: 700;
}
.ff27-archive-filter-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ff27-archive-filter-count {
  margin-left: auto;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}
.ff27-archive-filter-item.active .ff27-archive-filter-count {
  background: var(--red);
  color: #fff;
}

@media (max-width: 900px) {
  .ff27-einsatz-archive-layout { grid-template-columns: 1fr; }
  .ff27-einsatz-archive-sidebar { position: static; }
}

/* ════════════════════════════════════════════════════════════════
   QUICK ACCESS — icon grid (red section)
   ════════════════════════════════════════════════════════════════ */
.ff27-quick { background: var(--red); }
.ff27-quick-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
}
.ff27-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 16px;
  background: rgba(0,0,0,.15);
  color: #fff;
  text-decoration: none;
  transition: background var(--trans), transform var(--trans);
  text-align: center;
}
.ff27-quick-item:hover {
  background: rgba(0,0,0,.3);
  color: #fff;
  transform: translateY(-2px);
}
.ff27-quick-icon {
  font-size: 2rem;
  line-height: 1;
}
.ff27-quick-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .9;
}

/* ════════════════════════════════════════════════════════════════
   PAGE / ARCHIVE HEADER BANNER
   ════════════════════════════════════════════════════════════════ */
/* Force white title/text inside banner (overrides h1 base color) */
.ff27-page-banner .ff27-page-title,
.ff27-page-banner h1,
.ff27-page-banner h2 {
  color: #fff;
}

.ff27-page-banner {
  background: var(--navy);
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}
.ff27-page-banner::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: var(--red);
}
.ff27-page-banner-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.ff27-page-banner-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
  margin-bottom: 6px;
}
.ff27-page-banner-meta {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.ff27-page-banner-meta a { color: rgba(255,255,255,.6); }
.ff27-page-banner-meta a:hover { color: #fff; }

/* Breadcrumb */
.ff27-breadcrumb {
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.ff27-breadcrumb a { color: rgba(255,255,255,.5); }
.ff27-breadcrumb a:hover { color: #fff; }
.ff27-breadcrumb-sep { opacity: .4; }

/* ════════════════════════════════════════════════════════════════
   SINGLE POST / EINSATZ
   ════════════════════════════════════════════════════════════════ */
.ff27-single-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding: 48px 0 72px;
  align-items: start;
}
.ff27-single-layout.no-sidebar {
  grid-template-columns: 1fr;
}

/* Article body */
.ff27-article-body {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ff27-article-featured-img { width: 100%; }
.ff27-article-featured-img img { width: 100%; max-height: 480px; object-fit: cover; display: block; }

.ff27-article-content { padding: 32px 40px 40px; }
.ff27-article-content h1,
.ff27-article-content h2 { color: var(--ink); margin: 1.4em 0 .5em; }
.ff27-article-content p  { color: var(--gray-600); line-height: 1.75; margin-bottom: 1.1em; }
.ff27-article-content img { border-radius: var(--radius); max-width: 100%; }
.ff27-article-content ul,
.ff27-article-content ol { padding-left: 1.5em; margin-bottom: 1em; color: var(--gray-600); }
.ff27-article-content li { margin-bottom: .4em; }
.ff27-article-content a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.ff27-article-content hr,
.ff27-article-body hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 2.5em 0;
}
.ff27-article-content blockquote {
  border-left: 4px solid var(--red);
  background: var(--gray-100);
  padding: 16px 24px;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--gray-600);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Post navigation */
.ff27-post-nav {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  flex-wrap: wrap;
}
.ff27-post-nav-prev,
.ff27-post-nav-next {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  min-width: 200px;
  text-decoration: none;
  transition: all var(--trans);
  border-left: 4px solid var(--red);
}
.ff27-post-nav-prev:hover,
.ff27-post-nav-next:hover {
  color: var(--red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.ff27-post-nav-prev svg,
.ff27-post-nav-next svg {
  flex-shrink: 0;
  color: var(--red);
}
.ff27-post-nav-prev span,
.ff27-post-nav-next span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ff27-post-nav-prev small,
.ff27-post-nav-next small {
  font-size: .65rem;
  font-weight: 500;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ff27-post-nav-next {
  text-align: right;
  justify-content: flex-end;
  border-left: none;
  border-right: 4px solid var(--red);
}
@media (max-width: 600px) {
  .ff27-post-nav { flex-direction: column; }
  .ff27-post-nav-prev,
  .ff27-post-nav-next { min-width: 0; }
}

/* ════════════════════════════════════════════════════════════════
   ARCHIVE GRID
   ════════════════════════════════════════════════════════════════ */
.ff27-archive-layout {
  padding: 48px 0 72px;
}
.ff27-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.ff27-archive-grid .ff27-post-card-img { height: 220px; }
.ff27-archive-grid .ff27-post-card-img img { height: 100%; object-fit: cover; }
.ff27-archive-grid .ff27-post-card-title { font-size: 1rem; }
.ff27-archive-grid .ff27-post-card-excerpt { display: block; }

/* ════════════════════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════════════════════ */
.ff27-sidebar { display: flex; flex-direction: column; gap: 24px; }
.ff27-widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  overflow: hidden;
}
.ff27-widget-title {
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .1em;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--red);
  margin-bottom: 14px;
}
.ff27-widget ul { list-style: none; }
.ff27-widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: .85rem;
}
.ff27-widget ul li:last-child { border-bottom: none; }
.ff27-widget ul li a { color: var(--text); }
.ff27-widget ul li a:hover { color: var(--red); }

/* ════════════════════════════════════════════════════════════════
   PAGINATION
   ════════════════════════════════════════════════════════════════ */
.ff27-pagination,
.navigation.pagination .nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.navigation.pagination {
  margin-top: 40px;
}
.ff27-pagination .page-numbers,
.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--gray-200);
  text-decoration: none;
  transition: background var(--trans), color var(--trans), border-color var(--trans);
}
.ff27-pagination .current,
.ff27-pagination .page-numbers:hover,
.navigation.pagination .page-numbers.current,
.navigation.pagination .page-numbers:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.navigation.pagination .page-numbers.dots {
  background: transparent;
  border-color: transparent;
}

/* ════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════ */
#colophon {
  background: var(--ink);
  color: rgba(255,255,255,.65);
}
.ff27-footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding: 60px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ff27-footer-brand p {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  margin-top: 14px;
  line-height: 1.7;
}
.ff27-footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 16px;
}
.ff27-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ff27-footer-col ul li a {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  transition: color var(--trans);
}
.ff27-footer-col ul li a:hover { color: #fff; }
.ff27-footer-col .ff27-widget { background: transparent; padding: 0; box-shadow: none; }
.ff27-footer-col .ff27-widget-title {
  font-size: .72rem;
  letter-spacing: .14em;
  color: rgba(255,255,255,.35);
  border-bottom-color: rgba(255,255,255,.12);
}
.ff27-footer-col .ff27-widget ul li { border-bottom-color: rgba(255,255,255,.07); }
.ff27-footer-col .ff27-widget ul li a { color: rgba(255,255,255,.55); }
.ff27-footer-col .ff27-widget ul li a:hover { color: #fff; }

.ff27-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  gap: 16px;
  flex-wrap: wrap;
}
.ff27-footer-bottom a { color: rgba(255,255,255,.4); }
.ff27-footer-bottom a:hover { color: rgba(255,255,255,.75); }
.ff27-footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.ff27-footer-logo { height: 40px; width: auto; }

/* Social icons */
.ff27-social { display: flex; gap: 10px; margin-top: 18px; }
.ff27-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--trans), color var(--trans);
  text-decoration: none;
}
.ff27-social a:hover { background: var(--red); color: #fff; }

/* ════════════════════════════════════════════════════════════════
   EINSATZÜBERSICHT — Custom Template
   ════════════════════════════════════════════════════════════════ */

/* ── Stats Bar ─────────────────────────────────────────────────── */
.ff27-eu-stats-bar {
  background: var(--navy);
  padding: 0;
  border-bottom: 3px solid var(--red);
}
.ff27-eu-stats-inner {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}
.ff27-eu-stats-inner::-webkit-scrollbar { display: none; }

.ff27-eu-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  border-right: 1px solid rgba(255,255,255,.08);
  text-align: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: background var(--trans);
  min-width: 120px;
}
.ff27-eu-stat:hover { background: rgba(255,255,255,.05); }
.ff27-eu-stat-total { min-width: 160px; }

.ff27-eu-stat-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-bottom: 4px;
  flex-shrink: 0;
}
.ff27-eu-stat-num {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 3px;
}
.ff27-eu-stat-total .ff27-eu-stat-num { color: var(--red); }
.ff27-eu-stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .68rem;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  letter-spacing: .09em;
  text-transform: uppercase;
  line-height: 1.3;
}
.ff27-eu-stat-vs {
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  color: rgba(255,255,255,.3);
  margin-top: 3px;
}

/* ── Jahr-Tabs ─────────────────────────────────────────────────── */
.ff27-eu-tabs-wrap {
  background: var(--white);
  border-bottom: 2px solid var(--gray-200);
  position: sticky;
  top: 68px;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  color-scheme: light;
}
.ff27-eu-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.ff27-eu-tabs::-webkit-scrollbar { display: none; }

.ff27-eu-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color var(--trans), border-color var(--trans), background var(--trans);
  flex-shrink: 0;
}
.ff27-eu-tab:hover { color: var(--red); background: var(--gray-100); }
.ff27-eu-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
  font-weight: 700;
}

.ff27-eu-tab-count {
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}
.ff27-eu-tab.active .ff27-eu-tab-count {
  background: var(--red);
  color: #fff;
}

/* Plugin: Einsatzverwaltung – Tabellenkopf-Farbe überschreiben */
.einsatzverwaltung-reportlist .einsatz-header,
.einsatzverwaltung-reportlist .einsatz-header th {
  background-color: #232840 !important;
  color: #ffffff !important;
}

/* ── Tabelleninhalt ────────────────────────────────────────────── */
.ff27-eu-content-wrap { padding-top: clamp(24px,4vw,48px); }

.ff27-eu-table-outer {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color-scheme: light; /* Chrome Auto-Darkening für diesen Container deaktivieren */
}

/* Plugin-Tabelle: horizontales Scrollen auf Mobile */
.ff27-eu-table-outer .einsatz-liste,
.ff27-eu-table-outer table {
  width: 100%;
  border-collapse: collapse;
}
.ff27-eu-table-outer .einsatz-listenansicht {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Plugin headings (## Einsätze YYYY) */
.ff27-eu-table-outer h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  padding: 14px 20px;
  margin: 0;
  letter-spacing: .04em;
}
.ff27-eu-table-outer h2:not(:first-child) {
  border-top: 3px solid var(--red);
}

/* Tabellenkopf – explizite Hex-Farben verhindern Browser-Auto-Darkening */
.ff27-eu-table-outer thead tr,
.ff27-eu-table-outer .einsatz-listenansicht thead tr {
  background-color: #f1f3f6;
}
.ff27-eu-table-outer thead th,
.ff27-eu-table-outer .einsatz-listenansicht th {
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background-color: #f1f3f6;
  color: #5a6478;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid #e2e6ec;
  white-space: nowrap;
}

/* Tabellenzeilen */
.ff27-eu-table-outer tbody td,
.ff27-eu-table-outer .einsatz-listenansicht td {
  padding: 11px 16px;
  font-size: .85rem;
  color: var(--text);
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.ff27-eu-table-outer tbody tr:last-child td { border-bottom: none; }
.ff27-eu-table-outer tbody tr:hover td { background: var(--gray-100); }

/* Links in Tabelle */
.ff27-eu-table-outer td a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}
.ff27-eu-table-outer td a:hover { text-decoration: underline; }

/* Einsatzmeldung-Spalte: schmal halten */
.ff27-eu-table-outer .einsatz-column-numberRange { white-space: nowrap; }
.ff27-eu-table-outer .einsatz-column-date,
.ff27-eu-table-outer .einsatz-column-time { white-space: nowrap; }

/* Mobile Card-Ansicht des Plugins */
.ff27-eu-table-outer .einsatz-einzelansicht {
  padding: 16px;
  border-bottom: 1px solid var(--gray-100);
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ff27-eu-stats-inner { flex-wrap: nowrap; }
  .ff27-eu-stat { min-width: 100px; padding: 16px 14px; }
  .ff27-eu-stat-num { font-size: 1.4rem; }
}
@media (max-width: 600px) {
  .ff27-eu-tabs-wrap { top: 0; }
  .ff27-eu-tab { padding: 12px 14px; font-size: .78rem; }
  .ff27-eu-stat { min-width: 88px; padding: 12px 10px; }
  .ff27-eu-stat-num { font-size: 1.2rem; }
  .ff27-eu-stat-label { font-size: .6rem; }

  /* Tabelle auf Mobile kompakt scrollbar */
  .ff27-eu-table-outer tbody td,
  .ff27-eu-table-outer .einsatz-listenansicht td {
    padding: 8px 10px;
    font-size: .78rem;
  }
  .ff27-eu-table-outer thead th { padding: 8px 10px; }
}

/* ════════════════════════════════════════════════════════════════
   404 PAGE
   ════════════════════════════════════════════════════════════════ */
.ff27-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px var(--pad);
  min-height: 60vh;
}
.ff27-404-num {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 16px;
}
.ff27-404-title { font-size: 1.8rem; margin-bottom: 12px; }
.ff27-404-text  { color: var(--gray-600); margin-bottom: 28px; }

/* ════════════════════════════════════════════════════════════════
   UTILITIES
   ════════════════════════════════════════════════════════════════ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.ff27-text-center { text-align: center; }
.ff27-mt-8  { margin-top: 8px; }
.ff27-mt-16 { margin-top: 16px; }
.ff27-mt-24 { margin-top: 24px; }
.ff27-mt-32 { margin-top: 32px; }
.ff27-mt-48 { margin-top: 48px; }

/* ════════════════════════════════════════════════════════════════
   DARK MODE – explizite Overrides
   Falls der Browser trotz color-scheme:light Dark Mode anwendet,
   erzwingen wir saubaren Kontrast für die Einsatz-Tabelle/-Karten.
   ════════════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {

  /* Einsatzübersicht Tabellen-Container */
  .ff27-eu-table-outer {
    background: #1c2030 !important;
    color: #dde1ea !important;
  }

  /* Plugin-Überschriften (## Einsätze YYYY) */
  .ff27-eu-table-outer h2 {
    background: #232840 !important;
    color: #ffffff !important;
  }

  /* Desktop-Tabellenkopf – Text schwarz, lesbar auf jedem Hintergrund */
  .ff27-eu-table-outer thead th,
  .ff27-eu-table-outer thead tr th,
  .ff27-eu-table-outer .einsatz-listenansicht th,
  .ff27-eu-table-outer .einsatz-listenansicht thead tr th {
    color: #0d1117 !important;
  }

  /* Desktop-Tabellenzeilen */
  .ff27-eu-table-outer tbody td,
  .ff27-eu-table-outer .einsatz-listenansicht td {
    color: #dde1ea !important;
    border-color: #2e3550 !important;
  }
  .ff27-eu-table-outer tbody tr:nth-child(even) td {
    background: #222740 !important;
  }
  .ff27-eu-table-outer tbody tr:nth-child(odd) td {
    background: #1c2030 !important;
  }
  .ff27-eu-table-outer tbody tr:hover td {
    background: #2a3060 !important;
  }

  /* Mobile Plugin-Karten (einsatz-einzelansicht) */
  .ff27-eu-table-outer .einsatz-einzelansicht,
  .ff27-eu-table-outer .einsatz-single {
    background: #1c2030 !important;
    color: #dde1ea !important;
    border-color: #2e3550 !important;
  }
  /* Alternierende Karten – gerade */
  .ff27-eu-table-outer .einsatz-einzelansicht:nth-child(even),
  .ff27-eu-table-outer .einsatz-single:nth-child(even),
  .ff27-eu-table-outer .einsatz-einzelansicht.einsatz-gerade,
  .ff27-eu-table-outer .einsatz-single.einsatz-gerade {
    background: #222740 !important;
  }

  /* Alle Texte in den Plugin-Karten lesbar machen */
  .ff27-eu-table-outer .einsatz-einzelansicht *,
  .ff27-eu-table-outer .einsatz-single *,
  .ff27-eu-table-outer tbody td * {
    color: #dde1ea !important;
  }
  /* Links rot lassen */
  .ff27-eu-table-outer .einsatz-einzelansicht a,
  .ff27-eu-table-outer .einsatz-single a,
  .ff27-eu-table-outer td a {
    color: #e05555 !important;
  }

  /* Content-Bereich Hintergrund */
  .ff27-eu-content-wrap {
    background: #161b2c !important;
  }

  /* Einsatz-Archiv Karten */
  .ff27-einsatz-card {
    background: #1c2030 !important;
    color: #dde1ea !important;
  }
  .ff27-einsatz-card-title { color: #ffffff !important; }
  .ff27-einsatz-card-title a { color: #ffffff !important; }
  .ff27-einsatz-card-img    { background: #232840 !important; }
}

/* Scroll-reveal */
.ff27-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.ff27-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.ff27-reveal-delay-1 { transition-delay: .1s; }
.ff27-reveal-delay-2 { transition-delay: .2s; }
.ff27-reveal-delay-3 { transition-delay: .3s; }
.ff27-reveal-delay-4 { transition-delay: .4s; }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
  .ff27-quick-grid { grid-template-columns: repeat(3, 1fr); }
  .ff27-footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 1024px) {
  .ff27-einsatz-grid { grid-template-columns: repeat(2, 1fr); }
  .ff27-single-layout { grid-template-columns: 1fr; }
  .ff27-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .ff27-nav-wrap, .ff27-emergency { display: none; }
  .ff27-hamburger { display: flex; }

  .ff27-ticker-track { animation-duration: 8s; }  /* Mobile: schnellere Laufschrift */
  .ff27-hero { height: 70vw; min-height: 300px; }
  .ff27-hero-content { padding-bottom: 36px; }
  .ff27-hero-prev, .ff27-hero-next { width: 36px; height: 36px; }

  .ff27-stats-inner { grid-template-columns: repeat(2, 1fr); }

  .ff27-einsatz-grid { grid-template-columns: repeat(2, 1fr); }

  .ff27-news-grid { grid-template-columns: repeat(2, 1fr); }
  .ff27-news-row { grid-template-columns: 1fr; }

  .ff27-quick-grid { grid-template-columns: repeat(3, 1fr); }

  .ff27-footer-top { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 32px; }

  .ff27-archive-grid { grid-template-columns: 1fr; }
  .ff27-sidebar { grid-template-columns: 1fr; }

  .ff27-article-content { padding: 20px; }
}

@media (max-width: 480px) {
  .ff27-einsatz-grid { grid-template-columns: 1fr; }
  .ff27-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .ff27-quick-grid { grid-template-columns: repeat(2, 1fr); }
  .ff27-footer-bottom { flex-direction: column; text-align: center; }
  .ff27-news-grid { grid-template-columns: 1fr; }
}
