/* =========================================================================
   Freiwillige Feuerwehr der Hansestadt Warburg — Redesign
   Palette: Feuerrot / Signalgelb / Uniformschwarz / Rauchweiß / Stahl
   Type:    Barlow Condensed (display) · Barlow (body) · JetBrains Mono (data)
   ========================================================================= */

:root {
  --fire:      #D81E24;
  --fire-deep: #9E1418;
  --signal:    #FFD100;
  --ink:       #0F1114;
  --ink-2:     #171A20;
  --ink-3:     #21252D;
  --smoke:     #F4F2ED;
  --paper:     #FBFAF7;
  --steel:     #6C727B;
  --steel-2:   #9AA0A8;
  --line:      rgba(255,255,255,.10);
  --line-dk:   rgba(15,17,20,.12);

  --nav-dark:  #1C1F24;   /* shared grey for the navbar chrome (topbar, dropdown, mobile menu) */

  --f-display: "Barlow Condensed", system-ui, sans-serif;
  --f-body:    "Barlow", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1200px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--f-body);
  color: #23262B;
  background-color: #000;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

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

/* ---- Hazard chevron stripe (the signature) --------------------------- */
.hazard {
  height: 12px;
  background: repeating-linear-gradient(-45deg,
              var(--signal) 0 26px, var(--ink) 26px 52px);
}
.hazard--red {
  background: repeating-linear-gradient(-45deg,
              var(--fire) 0 26px, #fff 26px 52px);
}

/* ---- Eyebrow / mono labels ------------------------------------------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fire);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--fire);
}
.eyebrow--light { color: var(--signal); }
.eyebrow--light::before { background: var(--signal); }

/* =====================================================================
   TOP BAR — dispatch strip
   ===================================================================== */
.topbar {
  background: var(--nav-dark);
  color: rgba(255,255,255,.7);
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar .notruf { color: #fff; font-weight: 700; letter-spacing: .1em; }
.topbar .notruf b { color: var(--signal); font-size: 1rem; }
.topbar .addr { color: rgba(255,255,255,.6); }
.topbar .status { margin-left: auto; display: inline-flex; align-items: center; gap: .55em; color: #fff; }
.topbar .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 0 rgba(46,204,113,.7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46,204,113,.6); }
  70%  { box-shadow: 0 0 0 7px rgba(46,204,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}

/* =====================================================================
   HEADER / NAV
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #000;
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,.10);
  transition: background .6s ease, border-color .6s ease;
}
.site-header.scrolled {
  background: rgba(0,0,0,.8);
  border-bottom-color: rgba(255,255,255,.14);
}
/* Scroll-progress gauge — a live "readout" pinned to the header's lower edge. */
.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  pointer-events: none;
  overflow: hidden;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--fire) 0%, var(--signal) 100%);
  box-shadow: 0 0 8px rgba(255,209,0,.5);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
  transition: min-height .25s ease;
}
.scrolled .nav { min-height: 60px; }
.brand img { height: 32px; width: auto; transition: height .25s ease; }
.scrolled .brand img { height: 28px; }
.brand { display: flex; align-items: center; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
  list-style: none;
}
.nav-links a {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  padding: .3rem 0;
  position: relative;
  transition: color .18s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 2px; background: var(--signal);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: #fff; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }

.btn {
  --btn-bg: var(--fire);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-bg);
  padding: .62rem 1.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--signal { --btn-bg: var(--signal); --btn-fg: var(--ink); }
.btn--ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.5);
}
.btn--ghost:hover { border-color: var(--signal); color: var(--signal); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--lg { font-size: 1.15rem; padding: .85rem 1.7rem; }

.nav-cta {
  margin-left: .4rem;
  font-size: .92rem;
  letter-spacing: .06em;
  padding: .5rem 1.1rem;
  border-width: 1px;
  box-shadow: 0 6px 16px -8px rgba(0,0,0,.5);
}

/* --- Dropdown (Ansprechpartner) --- */
.has-dropdown { position: relative; }
.dropdown-toggle {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  background: none;
  border: 0;
  cursor: pointer;
  padding: .3rem 0;
  display: inline-flex;
  align-items: center;
  gap: .4em;
  position: relative;
  transition: color .18s ease;
}
.has-dropdown:hover .dropdown-toggle,
.has-dropdown:focus-within .dropdown-toggle { color: #fff; }
.dropdown-toggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 2px; background: var(--signal);
  transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.has-dropdown:hover .dropdown-toggle::after,
.has-dropdown:focus-within .dropdown-toggle::after { transform: scaleX(1); }
.dropdown-toggle[data-active="true"] { color: #fff; }
.dropdown-toggle .caret {
  border: solid currentColor; border-width: 0 2px 2px 0;
  display: inline-block; padding: 2.5px; transform: rotate(45deg) translateY(-1px);
  transition: transform .2s ease;
}
.has-dropdown:hover .dropdown-toggle .caret,
.has-dropdown:focus-within .dropdown-toggle .caret,
.dropdown-toggle[aria-expanded="true"] .caret { transform: rotate(-135deg) translateY(-1px); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  min-width: 320px;
  background: var(--nav-dark);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .5rem;
  list-style: none;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.75);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 60;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.dropdown.open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(8px); }
.dropdown li a {
  display: block;
  padding: .6rem .85rem;
  border-radius: 5px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: .95rem;
  text-transform: none;
  letter-spacing: 0;
  color: #D5D8DC;
}
.dropdown li a::after { display: none; }
.dropdown li a:hover, .dropdown li a[aria-current="page"] { background: var(--ink-3); color: var(--signal); padding-left: 1.05rem; }
.dropdown .sep { height: 1px; background: var(--line); margin: .4rem .6rem; }

/* Staggered reveal of the dropdown items when the menu opens. */
.dropdown li { opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; }
.dropdown li.sep { transition: none; }
.has-dropdown:hover .dropdown li,
.has-dropdown:focus-within .dropdown li,
.dropdown.open li { opacity: 1; transform: none; transition-delay: calc(var(--d, 0) * 28ms + 40ms); }
@media (prefers-reduced-motion: reduce) {
  .dropdown li { opacity: 1; transform: none; }
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  border-radius: var(--radius);
  width: 46px; height: 40px;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: #fff; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  background:
    linear-gradient(90deg, rgba(12,14,17,.86) 0%, rgba(12,14,17,.60) 46%, rgba(12,14,17,.42) 100%),
    radial-gradient(120% 90% at 85% 0%, rgba(216,30,36,.26) 0%, transparent 55%),
    url("images/heroes/home.jpeg") center center / cover no-repeat,
    var(--ink);
  color: #fff;
  overflow: hidden;
}
@media (max-width: 960px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(12,14,17,.68) 0%, rgba(12,14,17,.82) 55%, rgba(12,14,17,.92) 100%),
      url("images/heroes/home.jpeg") center / cover no-repeat,
      var(--ink);
  }
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  gap: 3rem;
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.hero h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(3rem, 8.5vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 1.1rem 0 1.3rem;
}
.hero h1 em { font-style: normal; color: var(--signal); }
.hero h1 .fire { color: var(--fire); }
.hero .lead {
  font-size: 1.18rem;
  color: #C7CBD1;
  max-width: 44ch;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; }

/* dispatch status panel */
.dispatch {
  background: linear-gradient(180deg, var(--ink-2), var(--ink-3));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
  font-family: var(--f-mono);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
}
.dispatch-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .68rem; letter-spacing: .18em; color: var(--steel-2);
  text-transform: uppercase;
  padding-bottom: 1rem; margin-bottom: 1.1rem;
  border-bottom: 1px dashed var(--line);
}
.dispatch-status {
  display: flex; align-items: baseline; gap: .7rem;
  margin-bottom: 1.3rem;
}
.dispatch-status .big {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: .02em;
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
}
.dispatch-status .live {
  font-size: .72rem; color: #2ecc71; letter-spacing: .12em;
  display: inline-flex; align-items: center; gap: .4em;
}
.dispatch-status .live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2ecc71;
  animation: pulse 2.2s infinite;
}
.dispatch-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem;
}
.dispatch-grid div { border-left: 2px solid var(--fire); padding-left: .7rem; }
.dispatch-grid dt { font-size: .62rem; letter-spacing: .12em; color: var(--steel-2); text-transform: uppercase; }
.dispatch-grid dd { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; color: #fff; }
.dispatch-note {
  margin-top: 1.2rem; padding-top: 1rem; border-top: 1px dashed var(--line);
  font-size: .68rem; color: var(--steel); letter-spacing: .06em;
}

/* =====================================================================
   STATS BAND
   ===================================================================== */
.stats {
  background: var(--ink);
  color: #fff;
  border-top: 1px solid var(--line);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.stat {
  background: var(--ink);
  padding: 2rem 1.4rem;
  text-align: center;
}
.stat .num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--signal);
}
.stat .num small { font-size: .5em; color: #fff; }
.stat .lbl {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel-2);
  margin-top: .6rem;
}

/* =====================================================================
   GENERIC SECTION
   ===================================================================== */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--paper); }
.section--smoke { background: var(--smoke); }
.section-head { max-width: 60ch; margin-bottom: 2.6rem; }
.section-head h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: .8rem 0 .7rem;
}
.section-head p { color: #4B4F55; font-size: 1.08rem; max-width: 52ch; }
.section-cta { margin-top: 1.6rem; max-width: none; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ---- Aufgaben (task cards) ------------------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.cards--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .cards--2 { grid-template-columns: 1fr; } }
.card {
  background: var(--paper);
  border: 1px solid var(--line-dk);
  border-top: 3px solid var(--fire);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.8rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(15,17,20,.4); }
.card .idx {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--fire);
}
.card h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.55rem;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--ink);
  margin: .35rem 0 .6rem;
}
.card p { color: #4B4F55; font-size: .98rem; }

/* ---- Aktuelles (news) ----------------------------------------------- */
.news {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.post {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-dk);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.post:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(15,17,20,.45); }
.post .thumb {
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--fire) 0 14px, var(--fire-deep) 14px 28px);
}
.post .body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post .date {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fire);
  margin-bottom: .5rem;
}
.post h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: .6rem;
}
.post p { color: #4B4F55; font-size: .95rem; flex: 1; }
.post .more {
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fire);
  font-weight: 600;
  margin-top: 1rem;
}
.post .more span { transition: margin-left .2s ease; }
.post:hover .more span { margin-left: .35em; }
.news-foot { text-align: center; margin-top: 2.4rem; }

/* ---- Coverage / Map -------------------------------------------------- */
.coverage .wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
}
.coverage .map {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-dk);
  box-shadow: 0 30px 60px -34px rgba(15,17,20,.5);
}
.map-video { display: block; width: 100%; height: auto; }
.units {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(7, auto);
  grid-auto-flow: column;
  gap: .4rem .9rem;
  margin-top: 1.6rem;
  list-style: none;
}
.units li {
  font-family: var(--f-mono);
  font-size: .82rem;
  color: #3A3E44;
  display: flex;
  align-items: center;
  gap: .55em;
  padding: .15rem 0;
}
.units li::before {
  content: ""; width: 7px; height: 7px; background: var(--fire); border-radius: 1px; flex: none;
}
.units--wide { grid-template-columns: repeat(3, 1fr); }
.units--wide li { font-size: .9rem; padding: .35rem 0; }
.cov-title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1;
  text-transform: uppercase; color: var(--ink); margin: .7rem 0 .6rem;
}
.cov-lead { color: #4B4F55; font-size: 1.05rem; max-width: 48ch; }
@media (max-width: 720px) { .units--wide { grid-template-columns: 1fr; } }

/* =====================================================================
   RECRUIT CTA
   ===================================================================== */
.recruit {
  background:
    radial-gradient(100% 120% at 80% 0%, rgba(255,209,0,.14) 0%, transparent 55%),
    var(--fire);
  color: #fff;
  text-align: center;
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}
.recruit .eyebrow { color: var(--signal); justify-content: center; }
.recruit .eyebrow::before { background: var(--signal); }
.recruit h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: .95;
  text-transform: uppercase;
  margin: 1rem 0 .6rem;
}
.recruit h2 em { font-style: normal; color: var(--ink); }
.recruit p { font-size: 1.18rem; max-width: 46ch; margin: 0 auto 2rem; color: rgba(255,255,255,.92); }
.recruit .hero-cta { justify-content: center; }
.recruit-video { max-width: 920px; margin: 0 auto 2.2rem; }
.recruit-video video {
  display: block;
  width: 100%;
  aspect-ratio: 1896 / 804;
  background: #000;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 40px 80px -34px rgba(0,0,0,.75);
}
.recruit-video .recruit-credit {
  display: block;
  margin-top: .9rem;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: rgba(255,255,255,.75);
}

/* =====================================================================
   PARTNER / SEAL
   ===================================================================== */
.partners .wrap {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 3rem;
  align-items: center;
}
.partners .seal img { max-width: 320px; margin-inline: auto; }
.partner-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.6rem;
}
.partner-list li {
  list-style: none;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--ink);
  border-left: 3px solid var(--fire);
  padding-left: .8rem;
  line-height: 1.1;
}
.partner-list li small {
  display: block;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: .8rem;
  text-transform: none;
  color: var(--steel);
  letter-spacing: 0;
}

/* Dark variant of the partner / "Stark im Verbund" section */
.partners--dark {
  background:
    radial-gradient(90% 120% at 85% 0%, rgba(255,209,0,.07) 0%, transparent 55%),
    var(--ink);
  color: #fff;
}
.partners--dark .partner-list li { color: #fff; }
.partners--dark .partner-list li small { color: var(--steel-2); }
.partners--dark .partner-list a {
  color: inherit;
  text-decoration: none;
  display: block;
  transition: color .15s;
}
.partners--dark .partner-list a:hover { color: var(--signal); }
.partners--dark .partner-list a:hover small { color: rgba(255,255,255,.8); }

.partner-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.6rem;
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.14);
}
.partner-links a {
  font-family: var(--f-mono);
  font-size: .8rem;
  letter-spacing: .04em;
  color: #E7E9EC;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .45em;
}
.partner-links a::before { content: "→"; color: var(--signal); }
.partner-links a:hover { color: var(--signal); }

/* Campaign banners (landing page) */
.campaign-banners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  align-items: start;
}
.campaign-banner {
  display: block;
  line-height: 0;
  border: 1px solid var(--line-dk);
  border-radius: var(--radius);
  overflow: hidden;
}
.campaign-banner img {
  width: 100%;
  aspect-ratio: 7 / 5;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.campaign-banner:hover img { transform: scale(1.03); }
@media (max-width: 720px) { .campaign-banners { grid-template-columns: 1fr; } }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  background: var(--ink);
  color: #B6BAC0;
  padding-top: 3.5rem;
}
.footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2.4rem;
  padding-bottom: 3rem;
}
.footer img.logo { height: 30px; width: auto; margin-bottom: 1.1rem; }
.footer p { font-size: .95rem; }
.footer h4 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer ul a { font-size: .95rem; transition: color .2s ease; }
.footer ul a:hover { color: var(--signal); }
.footer .contact-line { font-family: var(--f-mono); font-size: .82rem; letter-spacing: .03em; }
.footer .contact-line b { color: var(--signal); }
.socials { display: flex; gap: .6rem; margin-top: 1.1rem; }
.socials a {
  width: 40px; height: 40px; border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid; place-items: center;
  color: #fff; font-family: var(--f-display); font-weight: 700;
  transition: background .2s, color .2s, border-color .2s;
}
.socials a:hover { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--steel);
}
.footer-bottom a:hover { color: var(--signal); }
.cc-settings-link {
  font: inherit; color: inherit; letter-spacing: inherit;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.cc-settings-link:hover { color: var(--signal); }

/* =====================================================================
   Scroll-reveal
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .cards, .news { grid-template-columns: repeat(2, 1fr); }
  .coverage .wrap, .partners .wrap { grid-template-columns: 1fr; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .footer .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  /* Solid black at the top, fading to translucent glass as you scroll. */
  .site-header { background: #000; }
  .site-header.scrolled { background: rgba(0,0,0,.8); }
  .cards, .news, .partner-list, .units { grid-template-columns: 1fr; }
  .units { grid-auto-flow: row; grid-template-rows: none; }
  .topbar .status { margin-left: 0; }
  .topbar .addr { display: none; }
  .dispatch-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 3.6rem); }
}

/* keep the eyebrow from overflowing very narrow screens */
@media (max-width: 420px) {
  .eyebrow { font-size: .62rem; letter-spacing: .14em; }
  .eyebrow::before { width: 16px; }
}

/* =====================================================================
   SUBPAGE COMPONENTS
   ===================================================================== */

/* current nav item */
.nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* --- Compact page hero --- */
.subhero {
  position: relative;
  background:
    radial-gradient(120% 100% at 90% 0%, rgba(216,30,36,.30) 0%, transparent 55%),
    var(--ink);
  color: #fff;
  overflow: hidden;
}
.subhero::before {
  content: "";
  position: absolute; right: -3%; bottom: -30%;
  width: min(560px, 55%); height: 150%;
  background: url("images/logo-desenberg.png") no-repeat center / contain;
  opacity: .05; pointer-events: none;
}

/* photo variant: real firefighter image behind the headline, darkened for legibility.
   set the image via inline style: --hero:url('assets/images/heroes/<page>.jpg') */
.subhero.photo {
  background-color: var(--ink);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.subhero.photo::before { display: none; }
.subhero.photo::after { /* legibility overlay, darkest on the left where the text sits */
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(13,15,18,.90) 0%, rgba(13,15,18,.55) 48%, rgba(13,15,18,.12) 100%);
}
.subhero.photo .wrap { position: relative; z-index: 1; }
@media (max-width: 720px) {
  .subhero.photo::after {
    background: linear-gradient(180deg, rgba(13,15,18,.72) 0%, rgba(13,15,18,.92) 100%);
  }
}
.subhero .wrap { position: relative; padding-block: clamp(2.6rem, 6vw, 4.4rem); }
.breadcrumb {
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel-2);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--steel-2); }
.breadcrumb a:hover { color: var(--signal); }
.breadcrumb span { color: var(--fire); }
.subhero h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.subhero p { color: #C7CBD1; font-size: 1.12rem; max-width: 56ch; margin-top: 1rem; }

/* =====================================================================
   IMAGE LIGHTBOX
   ===================================================================== */
.zoomable { cursor: zoom-in; }
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(10,11,13,.9);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 100%; max-height: 100%;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
  cursor: default;
}
.lightbox-close {
  position: absolute; top: clamp(.8rem, 3vw, 1.4rem); right: clamp(.8rem, 3vw, 1.4rem);
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.14); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
/* X drawn from two centered bars — avoids the off-centre look of the × glyph */
.lightbox-close::before, .lightbox-close::after {
  content: ""; position: absolute;
  width: 20px; height: 2px; border-radius: 2px; background: #fff;
}
.lightbox-close::before { transform: rotate(45deg); }
.lightbox-close::after { transform: rotate(-45deg); }
.lightbox-close:hover { background: rgba(255,255,255,.26); }

/* --- Prose / legal --- */
.prose { max-width: 72ch; }
/* Let prose span the full container width, matching the other sections. */
.prose--full { max-width: none; }
.prose h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: 1.7rem; text-transform: uppercase; color: var(--ink);
  margin: 2.2rem 0 .8rem;
}
.prose h3 {
  font-family: var(--f-display); font-weight: 700;
  font-size: 1.25rem; color: var(--ink); margin: 1.6rem 0 .5rem;
}
.prose p, .prose li { color: #3F4349; font-size: 1rem; margin-bottom: .9rem; }
.prose ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.prose li { list-style: disc; }
.prose a { color: var(--fire); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); }
.prose img, .prose video { border-radius: var(--radius); margin: 1.2rem 0; }

/* =====================================================================
   AKTUELLES / BLOG
   ===================================================================== */
/* Category filter tabs */
.post-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.post-tab {
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .5rem 1.05rem; border: 1px solid var(--line-dk); border-radius: 40px;
  background: none; color: var(--ink); cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.post-tab:hover { border-color: var(--fire); color: var(--fire); }
.post-tab[aria-pressed="true"] { background: var(--fire); border-color: var(--fire); color: #fff; }

/* Card cover image (replaces the hazard strip when a post has an image) */
.post-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--smoke); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post:hover .post-cover img { transform: scale(1.04); }

/* Card meta row (badge + date) */
.post-meta { display: flex; align-items: center; gap: .7rem; margin-bottom: .55rem; }
.post-meta .date { margin-bottom: 0; }
.post h3 a { color: inherit; transition: color .18s ease; }
.post h3 a:hover { color: var(--fire); }

/* Category badge (used on cards and the detail header) */
.post-badge {
  font-family: var(--f-mono); font-size: .62rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  padding: .3rem .65rem; border-radius: 40px;
}
.post-badge.k-neuigkeiten { background: var(--fire); color: #fff; }
.post-badge.k-tipps { background: var(--signal); color: var(--ink); }

/* .post uses display:flex, which would otherwise override the [hidden] attribute
   the category filter sets — force it hidden so filtering actually works. */
.post[hidden] { display: none !important; }
.post-empty { color: var(--steel); text-align: center; padding: 2rem 0; }

/* Detail page */
.post-detail-meta { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.post-detail-meta .date { color: rgba(255,255,255,.8); margin-bottom: 0; }
.post-media {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .9rem; margin: 2.2rem 0 1rem;
}
.post-media-item {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); background: var(--smoke); display: block;
}
.post-back { margin-top: 2.4rem; }
.post-back a {
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fire); font-weight: 600;
}

/* --- Einsatz stat breakdown --- */
.breakdown { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
.bd-item {
  background: var(--paper); border: 1px solid var(--line-dk);
  border-left: 4px solid var(--fire); border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.bd-item .n { font-family: var(--f-display); font-weight: 800; font-size: 2.8rem; line-height: 1; color: var(--ink); }
.bd-item .k { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin-top: .4rem; }
.bd-item .bar { height: 6px; background: #E6E2DA; border-radius: 3px; margin-top: 1rem; overflow: hidden; }
.bd-item .bar i { display: block; height: 100%; background: var(--fire); border-radius: 3px; }

/* year switch (sits on the dark sub-hero) */
.years { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.8rem; }
.years a {
  font-family: var(--f-display); font-weight: 700; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .04em;
  padding: .5rem 1.1rem; border: 2px solid rgba(255,255,255,.28); border-radius: var(--radius);
  color: #E7E9EC;
}
.years a[aria-current="page"], .years a:hover { background: var(--signal); color: var(--ink); border-color: var(--signal); }

/* --- People / contacts --- */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.person {
  background: var(--paper); border: 1px solid var(--line-dk); border-radius: var(--radius);
  padding: 1.6rem; text-align: center;
}
.person .avatar {
  width: 76px; height: 76px; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--ink); color: var(--signal);
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; font-size: 1.7rem;
}
.person .role { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fire); }
.person .name { font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; text-transform: uppercase; color: var(--ink); margin: .3rem 0; }
.person .meta { font-size: .9rem; color: var(--steel); }
.person .ressorts { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line-dk); }
.person .ressorts-label {
  display: block; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--steel); margin-bottom: .7rem;
}
.person .ressorts-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center;
}
.person .ressorts-list li {
  font-family: var(--f-mono); font-size: .72rem; line-height: 1;
  color: var(--ink); background: rgba(15,17,20,.04);
  border: 1px solid var(--line-dk); border-radius: 999px;
  padding: .42rem .7rem; transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.person:hover .ressorts-list li { border-color: rgba(216,30,36,.35); }
.person .ressorts-list li:hover { background: var(--fire); border-color: var(--fire); color: var(--signal); }

/* topic cards with link */
.topic {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line-dk);
  border-top: 3px solid var(--fire); border-radius: var(--radius);
  padding: 1.6rem; transition: transform .18s ease, box-shadow .18s ease;
}
.topic:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(15,17,20,.4); }
.topic h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; color: var(--ink); margin-bottom: .5rem; }
.topic p { color: #4B4F55; font-size: .95rem; flex: 1; }
.topic .go { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fire); font-weight: 600; margin-top: 1rem; }

/* --- Calendar / events --- */
.cal-group + .cal-group { margin-top: 2.4rem; }
.cal-month {
  font-family: var(--f-display); font-weight: 700; font-size: 1.4rem;
  text-transform: uppercase; color: var(--ink);
  margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line-dk);
}
.events { display: flex; flex-direction: column; gap: .8rem; }
.event {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 1.4rem; align-items: center;
  background: var(--paper); border: 1px solid var(--line-dk); border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
}
.event .cal {
  text-align: center; border-right: 1px solid var(--line-dk); padding-right: 1rem;
  font-family: var(--f-display);
}
.event .cal .d { font-weight: 800; font-size: 2rem; line-height: 1; color: var(--fire); }
.event .cal .m { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.event .ev-title { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; color: var(--ink); }
.event .ev-meta { font-size: .9rem; color: var(--steel); }
.event .tag { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border: 1px solid var(--line-dk); border-radius: 40px; color: var(--fire); white-space: nowrap; }

/* calendar empty / loading state */
.cal-empty {
  background: var(--paper); border: 1px dashed var(--line-dk); border-radius: var(--radius);
  padding: 2rem 1.6rem; text-align: center;
}
.cal-empty p { color: var(--steel); font-size: 1rem; margin: 0; }

/* invitation with district names */
.join-places {
  max-width: 62ch;
  margin: .4rem auto 0;
  font-family: var(--f-body);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.55;
  color: #33373C;
}
.join-places b { color: var(--fire); font-weight: 700; white-space: nowrap; }

/* member testimonials — horizontal slider */
.voices {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 1.8rem;
  margin: 0 -4px;
  scrollbar-width: none;
}
.voices::-webkit-scrollbar { display: none; }
.voice {
  flex: 0 0 min(340px, 82%);
  scroll-snap-align: start;
  display: flex; flex-direction: column; margin: 0;
  background: #fff; border: 1px solid var(--line-dk); border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.voice:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(15,17,20,.45); }
.voice-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.voice-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.voice blockquote {
  margin: 0; padding: 1.4rem 1.5rem .4rem; flex: 1;
  font-size: 1rem; line-height: 1.55; color: #33373C;
}
.voice blockquote::before {
  content: "„"; display: block;
  font-family: var(--f-display); font-weight: 800; font-size: 2.6rem;
  line-height: .5; color: var(--fire); margin-bottom: .9rem;
}
.voice figcaption { padding: .6rem 1.5rem 1.5rem; border-top: 1px solid var(--line-dk); margin-top: 1rem; }
.voice .v-name { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; color: var(--ink); }
.voice .v-role { display: block; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .05em; color: var(--steel); margin-top: .15rem; }
.voices-nav { display: flex; justify-content: center; gap: .8rem; margin-top: 1.4rem; }
.vnav-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--line-dk); background: #fff; color: var(--ink);
  cursor: pointer; display: grid; place-items: center;
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.vnav-btn svg { width: 20px; height: 20px; }
.vnav-btn:hover { background: var(--fire); color: #fff; border-color: var(--fire); }
.vnav-btn:disabled { opacity: .3; cursor: default; }
.vnav-btn:disabled:hover { background: #fff; color: var(--ink); border-color: var(--line-dk); }
@media (prefers-reduced-motion: reduce) { .voices { scroll-behavior: auto; } }

/* --- Leadership contact card --- */
.leader-contact {
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch;
  background: #fff; border: 1px solid var(--line-dk); border-radius: var(--radius);
  overflow: hidden;
}
.lc-photo { background: var(--ink); }
.lc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.lc-body {
  display: flex; flex-direction: column; justify-content: center;
  gap: .7rem; padding: clamp(1.6rem, 4vw, 2.6rem);
  border-left: 4px solid var(--fire);
}
.lc-role {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--fire);
}
.lc-names {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1; text-transform: uppercase; color: var(--ink);
}
.lc-mail {
  font-family: var(--f-mono); font-size: .95rem; color: var(--ink);
  text-decoration: none; border-bottom: 2px solid var(--signal);
  align-self: flex-start; padding-bottom: 2px; transition: color .2s;
}
.lc-mail:hover { color: var(--fire); }
@media (max-width: 720px) {
  .leader-contact { grid-template-columns: 1fr; }
  .lc-photo { aspect-ratio: 4 / 3; }
}
/* Single-person portrait variant: compact, centered card */
.leader-contact--portrait {
  grid-template-columns: 300px 1fr;
  max-width: 720px; margin-inline: auto;
}
.leader-contact--portrait .lc-photo { aspect-ratio: 3 / 4; }
.leader-contact--portrait .lc-photo img { object-position: center 22%; }
@media (max-width: 720px) {
  .leader-contact--portrait { grid-template-columns: 1fr; max-width: 420px; }
  .leader-contact--portrait .lc-photo { aspect-ratio: 4 / 3; }
}

/* --- Checklist 2-column variant --- */
.checklist--2col { grid-template-columns: repeat(2, 1fr); gap: .55rem 2rem; }
@media (max-width: 640px) { .checklist--2col { grid-template-columns: 1fr; } }

/* --- VB numbered service list --- */
.vb-list { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); }
.vb-item {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 3vw, 2rem);
  background: #fff; border: 1px solid var(--line-dk); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem); margin: 0;
}
.vb-no {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1; color: var(--fire); font-variant-numeric: tabular-nums;
}
.vb-content h3 {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.12; color: var(--ink);
  margin-bottom: .9rem;
}
.vb-content > p { color: #33373C; margin-bottom: .8rem; }
.vb-content > p:last-child { margin-bottom: 0; }
.vb-q {
  font-family: var(--f-display); font-weight: 600; color: var(--ink) !important;
  font-size: 1.08rem; line-height: 1.3; margin-top: 1.1rem; padding-left: .9rem;
  border-left: 3px solid var(--signal);
}
.vb-content .checklist { margin-top: .9rem; margin-bottom: .4rem; }
@media (max-width: 560px) {
  .vb-item { grid-template-columns: 1fr; gap: .4rem; }
  .vb-no { font-size: 2rem; }
}

/* --- Download cards --- */
.dl-group-title {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .02em; font-size: 1.1rem; color: var(--ink);
  margin: 2rem 0 .9rem;
}
.dl-group-title:first-of-type { margin-top: 0; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.dl-card {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid var(--line-dk); border-left: 4px solid var(--fire);
  border-radius: var(--radius); padding: 1rem 1.2rem; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.dl-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -22px rgba(15,17,20,.5); }
.dl-ico {
  flex-shrink: 0; font-family: var(--f-mono); font-weight: 700; font-size: .68rem;
  letter-spacing: .05em; color: #fff; background: var(--fire);
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius);
  display: grid; place-items: center;
}
.dl-label {
  font-family: var(--f-body); font-weight: 600; font-size: .95rem;
  color: var(--ink); line-height: 1.25;
}
@media (max-width: 860px) { .dl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dl-grid { grid-template-columns: 1fr; } }

/* --- Bausteine (target-group spec rows) --- */
.bausteine { border-top: 1px solid var(--line-dk); }
.baustein {
  display: grid; grid-template-columns: minmax(0, 300px) 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.6rem, 4vw, 2.6rem) 0;
  border-bottom: 1px solid var(--line-dk); margin: 0;
}
.baustein-head { align-self: start; }
.baustein-head .b-kicker {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--fire); display: block;
}
.baustein-head h3 {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.08; color: var(--ink);
  margin-top: .5rem; padding-left: 1rem; border-left: 4px solid var(--fire);
}
.baustein-body p { color: #33373C; margin-bottom: .8rem; }
.baustein-body p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .baustein { grid-template-columns: 1fr; gap: .9rem; }
}

/* --- Group blocks (text + image, alternating) --- */
.group {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.4rem, 4vw, 3rem);
  align-items: start; margin: 0;
}
.group--center { align-items: center; }
.group + .group { margin-top: clamp(2.4rem, 6vw, 4rem); }
.group--reverse .group-media { order: 2; }
.group-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: var(--radius); border: 1px solid var(--line-dk);
}
.group-media--stack {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-content: start;
}
.group-media--stack img { aspect-ratio: 4 / 3; }
.group-kicker {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--fire); display: inline-block; margin-bottom: .5rem;
}
.group-text h3 {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.05; color: var(--ink);
  margin-bottom: .9rem;
}
.group-text p { color: #33373C; margin-bottom: .8rem; }
.town-chips {
  list-style: none; margin: .4rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.town-chips li {
  font-family: var(--f-mono); font-size: .82rem; font-weight: 600;
  color: var(--ink); background: #fff; border: 1px solid var(--line-dk);
  border-left: 3px solid var(--fire); border-radius: var(--radius);
  padding: .35rem .7rem;
}
@media (max-width: 760px) {
  .group { grid-template-columns: 1fr; }
  .group--reverse .group-media { order: 0; }
}

/* --- Contact cards (photo + name + email) --- */
.contact-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.contact-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line-dk); border-radius: var(--radius);
  overflow: hidden; transition: transform .18s ease, box-shadow .18s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(15,17,20,.45); }
.cc-photo { aspect-ratio: 4 / 3; background: var(--ink); overflow: hidden; }
.cc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
.cc-body {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1.2rem 1.3rem 1.4rem; border-top: 4px solid var(--fire);
}
.cc-role {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--fire);
}
.cc-name {
  font-family: var(--f-display); font-weight: 700; font-size: 1.35rem;
  line-height: 1.1; text-transform: uppercase; color: var(--ink);
}
.cc-mail {
  font-family: var(--f-mono); font-size: .82rem; color: var(--ink);
  text-decoration: none; display: inline-flex; align-items: center; gap: .45em;
  margin-top: .3rem; word-break: break-all; align-self: flex-start;
  border-bottom: 2px solid var(--signal); padding-bottom: 2px; transition: color .2s;
}
.cc-mail .cc-ico { color: var(--steel-2); }
.cc-mail:hover { color: var(--fire); }
@media (max-width: 780px) { .contact-cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* --- Document CTA band (dark) --- */
.doc-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(1.2rem, 3vw, 2.4rem); flex-wrap: wrap;
  background: var(--ink); color: #fff; border-radius: var(--radius);
  border-left: 5px solid var(--signal);
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.4rem);
}
.doc-cta-text { max-width: 60ch; }
.doc-cta-k {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--signal);
}
.doc-cta h3 {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.1; color: #fff;
  margin: .35rem 0 .3rem;
}
.doc-cta p { color: rgba(255,255,255,.8); font-size: .98rem; margin: 0; }
.doc-cta .btn { flex-shrink: 0; }
@media (max-width: 640px) { .doc-cta { flex-direction: column; align-items: flex-start; } }

/* --- Organisation tree --- */
.org-tree { position: relative; }
.org-root {
  display: flex; justify-content: center; margin-bottom: 2.4rem;
}
.org-root .or-label {
  position: relative;
  font-family: var(--f-display); font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; font-size: 1.05rem; color: #fff;
  background: var(--ink); padding: .7rem 1.6rem; border-radius: var(--radius);
  border-bottom: 4px solid var(--fire);
}
/* connector from root down to the columns */
.org-root .or-label::after {
  content: ""; position: absolute; left: 50%; top: 100%;
  width: 2px; height: 2.4rem; background: var(--line-dk); transform: translateX(-50%);
}
.org-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
  align-items: start;
}
.org-col {
  background: #fff; border: 1px solid var(--line-dk); border-radius: var(--radius);
  overflow: hidden;
}
.org-col-title {
  position: relative;
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; font-size: 1.15rem; color: #fff;
  background: var(--fire); padding: .85rem 1.1rem;
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
}
.org-col-title .oi-count {
  font-family: var(--f-mono); font-size: .78rem; font-weight: 700;
  background: rgba(255,255,255,.22); color: #fff;
  min-width: 1.7em; height: 1.7em; padding: 0 .4em; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
}
.org-list { list-style: none; margin: 0; padding: 0; }
.org-item {
  display: flex; flex-direction: column; gap: .18rem;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--line-dk);
}
.org-item:last-child { border-bottom: 0; }
.oi-unit {
  font-family: var(--f-display); font-weight: 700; font-size: 1.02rem;
  text-transform: uppercase; letter-spacing: .01em; color: var(--ink); line-height: 1.15;
}
.oi-person { font-size: .9rem; color: var(--steel); line-height: 1.35; }
.oi-mail {
  font-family: var(--f-mono); font-size: .8rem; color: var(--fire);
  text-decoration: none; display: inline-flex; align-items: center; gap: .4em;
  margin-top: .25rem; word-break: break-all; align-self: flex-start;
}
.oi-mail .oi-ico { color: var(--steel-2); font-size: .95em; }
.oi-mail:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .org-cols { grid-template-columns: 1fr 1fr; }
  .org-cols .org-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .org-cols { grid-template-columns: 1fr; }
  .org-cols .org-col:first-child { grid-column: auto; }
  .org-root .or-label::after { height: 1.6rem; }
}

/* --- Membership pathways --- */
.paths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.path {
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 1.8rem 1.5rem; border-top: 3px solid var(--signal);
}
.path .age { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; color: var(--signal); }
.path h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; margin: .3rem 0 .6rem; }
.path p { color: #C7CBD1; font-size: .95rem; }

/* --- Form --- */
.form {
  background: var(--paper); border: 1px solid var(--line-dk); border-radius: 8px;
  padding: clamp(1.5rem, 4vw, 2.6rem);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.field input, .field select, .field textarea {
  font-family: var(--f-body); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #CDC9C0; border-radius: var(--radius);
  padding: .7rem .8rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--fire); box-shadow: 0 0 0 3px rgba(216,30,36,.12);
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='%23D81E24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
}
.field select::-ms-expand { display: none; }
.form .btn { margin-top: 1.4rem; }
.form-note { font-size: .82rem; color: var(--steel); margin-top: 1rem; }

/* --- Tips accordion --- */
.tips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.tip {
  background: var(--paper); border: 1px solid var(--line-dk); border-radius: var(--radius);
  border-left: 4px solid var(--signal); padding: 1.5rem 1.6rem;
}
.tip { display: flex; flex-direction: column; }
.tip .tip-k { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fire); }
.tip h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; color: var(--ink); margin: .3rem 0 .5rem; }
.tip p { color: #4B4F55; font-size: .95rem; }
.tip-cta { align-self: flex-start; margin-top: 1.2rem; }

/* Checklist (fire-red check markers) */
.checklist { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.checklist li { position: relative; padding-left: 1.9rem; color: #33373C; font-size: .98rem; line-height: 1.45; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .18em; width: 1.15rem; height: 1.15rem;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D81E24' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* Single centered contact card */
.contact-cards--one { grid-template-columns: minmax(0, 360px); justify-content: center; }

/* callout */
.callout {
  background: var(--ink); color: #fff; border-radius: 8px;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap;
}
.callout .c-body { flex: 1; min-width: 260px; }
.callout h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.8rem; text-transform: uppercase; }
.callout p { color: #C7CBD1; margin-top: .4rem; }

@media (max-width: 960px) {
  .breakdown, .people, .paths, .tips { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .breakdown, .people, .paths, .tips, .form-grid { grid-template-columns: 1fr; }
  .event { grid-template-columns: 70px 1fr; }
  .event .tag { grid-column: 2; justify-self: start; }
}

/* =====================================================================
   MOBILE NAV — full-screen dispatch overlay
   ===================================================================== */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  visibility: hidden;
}
.mobile-nav.open { visibility: visible; }

.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6,7,9,.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .3s ease;
}
.mobile-nav.open .mobile-nav__backdrop { opacity: 1; }

.mobile-nav__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(88vw, 420px);
  height: 100%;
  padding: 1rem var(--pad) calc(1.4rem + env(safe-area-inset-bottom));
  background: var(--nav-dark);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px -20px rgba(0,0,0,.7);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.4,0,.2,1);
}
.mobile-nav.open .mobile-nav__panel { transform: none; }

/* A thin hazard rail down the leading edge — the site's signature motif. */
.mobile-nav__panel::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 4px;
  background: repeating-linear-gradient(-45deg, var(--signal) 0 10px, var(--ink) 10px 20px);
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  margin-bottom: .6rem;
  border-bottom: 1px solid var(--line);
}
.mobile-nav__eyebrow {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fire);
}
.mobile-nav__close {
  width: 44px; height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
  transition: transform .2s ease;
}
.mobile-nav__close:hover { transform: rotate(90deg); }
.mobile-nav__close span,
.mobile-nav__close span::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: #fff;
  transform: translate(-50%,-50%) rotate(45deg);
}
.mobile-nav__close span::before { transform: translate(-50%,-50%) rotate(90deg); }

.mobile-nav__body { flex: 1; }
.mobile-nav__list { list-style: none; }
.mobile-nav__list > li {
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateX(16px);
}
.mobile-nav.open .mobile-nav__list > li {
  opacity: 1;
  transform: none;
  transition: opacity .4s ease, transform .4s cubic-bezier(.4,0,.2,1);
  transition-delay: calc(var(--i, 0) * 55ms + 120ms);
}
.mobile-nav__list > li > a,
.m-acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #E7E9EC;
  padding: .95rem 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: color .18s ease, padding-left .18s ease;
}
.mobile-nav__list > li > a:hover,
.mobile-nav__list > li > a[aria-current="page"],
.m-acc__btn:hover { color: var(--signal); padding-left: .4rem; }

/* Accordion (Ansprechpartner) */
.m-acc__caret {
  border: solid currentColor; border-width: 0 2px 2px 0;
  display: inline-block; padding: 3px;
  /* Sit the caret in the same column as the header close (X) so the two
     line up vertically. The X span is centered in its 44px-wide button
     (22px in from the panel edge); this offset matches that. */
  margin-right: 19px;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s ease;
  color: var(--steel-2);
}
.m-acc__btn[aria-expanded="true"] .m-acc__caret { transform: rotate(-135deg) translateY(0); color: var(--signal); }
.m-acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.m-acc__panel > * { min-height: 0; }
.m-acc__btn[aria-expanded="true"] + .m-acc__panel { grid-template-rows: 1fr; }
.m-acc__panel-inner { overflow: hidden; }
.m-acc__panel a {
  display: block;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 1.02rem;
  color: #C7CBD1;
  padding: .5rem 0 .5rem .9rem;
  border-left: 2px solid var(--line);
  margin-left: .1rem;
  transition: color .15s ease, border-color .15s ease;
}
.m-acc__panel a:last-child { padding-bottom: .9rem; }
.m-acc__panel a:hover,
.m-acc__panel a[aria-current="page"] { color: var(--signal); border-color: var(--signal); }

/* Footer: emergency call + membership CTA */
.mobile-nav__foot {
  margin-top: 1.4rem;
  display: grid;
  gap: .8rem;
}
.mobile-nav__call {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .85rem 1.1rem;
  border-radius: 8px;
  background: rgba(216,30,36,.12);
  border: 1px solid rgba(216,30,36,.4);
  transition: background .2s ease, border-color .2s ease;
}
.mobile-nav__call:hover { background: rgba(216,30,36,.2); border-color: var(--fire); }
.mobile-nav__call-label {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--steel-2);
}
.mobile-nav__call-num {
  font-family: var(--f-display); font-weight: 800; font-size: 1.5rem;
  letter-spacing: .05em; color: #fff;
}
.mobile-nav__cta {
  width: 100%;
  justify-content: center;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px -8px rgba(255,209,0,.5);
}
.mobile-nav__cta:hover { transform: none; }

/* Lock background scroll while the overlay is open. */
body.menu-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .mobile-nav__panel,
  .mobile-nav__backdrop,
  .mobile-nav__list > li { transition: none !important; }
  .mobile-nav__list > li { opacity: 1; transform: none; }
}
