/* ============================================================
   FFConnect — Components
   Header · Footer · Hero · Stats · Cards · Timeline · Module
   ============================================================ */

/* ===================== HEADER (sticky) ===================== */
.site-header { position: sticky; top: 0; z-index: var(--z-header); }

/* Top-Bar (Kontakt/Adresse) — collapsed beim Scrollen */
.topbar {
  background: var(--c-black);
  color: var(--c-on-dark-mut);
  font-size: var(--fs-sm);
  overflow: hidden;
  max-height: 44px;
  transition: max-height var(--t-base), opacity var(--t-base);
}
.site-header.is-scrolled .topbar { max-height: 0; opacity: 0; }
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 44px; gap: var(--sp-4);
}
.topbar__contact { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.topbar__contact a, .topbar__contact span { display: inline-flex; align-items: center; gap: 0.4em; }
.topbar__contact a:hover { color: #fff; }
.topbar__contact .ic { width: 14px; height: 14px; opacity: 0.7; }
.topbar__note { display: inline-flex; align-items: center; gap: 0.4em; white-space: nowrap; }

/* Nav-Bar */
.navbar {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); min-height: 72px;
}

/* Wortmarke / Emblem-Platzhalter */
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); }
.brand__mark {
  position: relative;
  width: 44px; height: 44px;
  background: var(--c-red);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  color: #fff; font-weight: var(--fw-heavy); font-size: 1.15rem;
  letter-spacing: -0.04em;
  flex-shrink: 0;
  overflow: hidden;
}
.brand__mark::after {  /* dezente diagonale Akzent-Ecke */
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 5px;
  background: var(--stripe-yellow);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: var(--fw-heavy); font-size: 1.02rem; letter-spacing: var(--ls-tight); }
.brand__sub {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--c-muted); font-weight: var(--fw-bold);
}

/* Hauptnav */
.mainnav { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }
.mainnav a {
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-sm);
  font-weight: var(--fw-semi);
  font-size: var(--fs-base);
  color: var(--c-ink-2);
  transition: background var(--t-fast), color var(--t-fast);
  position: relative;
}
.mainnav a:hover { background: var(--c-surface-2); color: var(--c-ink); }
.mainnav a[aria-current="page"] { color: var(--c-red); }
.mainnav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: -1px;
  height: 3px; background: var(--c-red); border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: var(--sp-3); }

/* Burger */
.navtoggle {
  display: none;
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  align-items: center; justify-content: center;
}
.navtoggle:hover { background: var(--c-surface-2); }
.navtoggle .bars { position: relative; width: 22px; height: 2px; background: var(--c-ink); transition: background var(--t-fast); }
.navtoggle .bars::before, .navtoggle .bars::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--c-ink);
  transition: transform var(--t-base), top var(--t-base);
}
.navtoggle .bars::before { top: -7px; }
.navtoggle .bars::after { top: 7px; }
.navtoggle[aria-expanded="true"] .bars { background: transparent; }
.navtoggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.navtoggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

/* Mobile-Panel */
.mobile-panel {
  display: none;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
}
.mobile-panel a {
  display: block; padding: 0.95rem var(--gutter);
  font-weight: var(--fw-bold); font-size: var(--fs-lg);
  border-top: 1px solid var(--c-line);
}
.mobile-panel a[aria-current="page"] { color: var(--c-red); }
.mobile-panel .mp-contact { padding: var(--sp-4) var(--gutter); color: var(--c-muted); font-size: var(--fs-sm); display: grid; gap: 0.4rem; border-top: 1px solid var(--c-line); }

@media (max-width: 940px) {
  .mainnav { display: none; }
  .navtoggle { display: flex; }
  .topbar__contact .addr-long { display: none; }
}
@media (max-width: 520px) {
  .btn--emergency .lbl { display: none; }
  .topbar__note { display: none; }
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  background: var(--c-black);
  color: var(--c-on-dark);
  overflow: hidden;
}
.hero::before {  /* abstrahierte Geometrie — Schlauchwicklung/Streifen, sehr dezent */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 85% -10%, rgba(200,16,46,0.28), transparent 55%),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.022) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid; gap: var(--sp-7);
  padding-block: clamp(3rem, 2rem + 6vw, 6.5rem);
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}
.hero__eyebrow { color: var(--c-yellow); }
.hero__eyebrow::before { background: var(--c-yellow); }
.hero__title {
  font-size: var(--fs-display);
  font-weight: var(--fw-heavy);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tighter);
  margin-top: var(--sp-4);
  text-wrap: balance;
}
.hero__lead {
  font-size: var(--fs-lg);
  color: var(--c-on-dark-mut);
  margin-top: var(--sp-5);
  max-width: 46ch;
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-7); }
.hero__media { position: relative; }
.hero__media .asset { aspect-ratio: 4/3.4; min-height: 320px; }

/* Notruf-Servicekarte im Hero */
.emergency-card {
  display: inline-flex; align-items: stretch; gap: 0;
  border-radius: var(--r-md); overflow: hidden;
  background: var(--c-dark-surface);
  border: 1px solid var(--c-dark-line);
  margin-top: var(--sp-6);
}
.emergency-card__stripe { width: 6px; background: var(--stripe-red); }
.emergency-card__body { padding: var(--sp-3) var(--sp-5) var(--sp-3) var(--sp-4); display: flex; align-items: center; gap: var(--sp-4); }
.emergency-card__num { font-family: var(--font-mono); font-size: 2rem; font-weight: var(--fw-heavy); color: #fff; line-height: 1; }
.emergency-card__txt { font-size: var(--fs-sm); color: var(--c-on-dark-mut); }
.emergency-card__txt strong { color: #fff; display: block; font-size: var(--fs-base); }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media .asset { aspect-ratio: 16/9; min-height: 0; }
}

/* ===================== STATUS-STREIFEN ===================== */
.statusbar {
  background: var(--c-surface-2);
  border-bottom: 1px solid var(--c-line);
}
.statusbar__inner {
  display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap;
  padding-block: var(--sp-3); font-size: var(--fs-sm);
}
.statusbar__live { display: inline-flex; align-items: center; gap: 0.5em; font-weight: var(--fw-bold); color: var(--c-ink); }
.statusbar__live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-ok); }
.statusbar__item { color: var(--c-muted); }
.statusbar__item strong { color: var(--c-ink); font-weight: var(--fw-bold); }
.statusbar__sep { width: 1px; height: 16px; background: var(--c-line-2); }

/* ===================== KENNZAHLEN / STATS ===================== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.stat { padding: var(--sp-2) 0; }
.stat__num {
  font-size: var(--fs-counter);
  font-weight: var(--fw-heavy);
  line-height: 1; letter-spacing: var(--ls-tighter);
  font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 0.1em;
}
.stat__suffix { font-size: 0.5em; color: var(--c-red); font-weight: var(--fw-black); }
.section--dark .stat__suffix { color: var(--c-yellow); }
.stat__label { font-size: var(--fs-sm); color: var(--c-muted); margin-top: var(--sp-2); font-weight: var(--fw-semi); }
.section--dark .stat__label { color: var(--c-on-dark-mut); }
.stat + .stat { position: relative; }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6) var(--sp-5); }
}

/* ===================== GRID-HELFER ===================== */
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--members { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ===================== CARD (Basis) ===================== */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-rest);
  overflow: hidden;
  transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
  display: flex; flex-direction: column;
}
a.card, .card--link { cursor: pointer; }
a.card:hover, .card--link:hover { box-shadow: var(--sh-hover); transform: translateY(-3px); border-color: var(--c-line-2); }
.card__media { position: relative; }
.card__media .asset { border-radius: 0; min-height: 0; }
.card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.card__meta { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; font-size: var(--fs-sm); color: var(--c-muted); }
.card__title { font-size: var(--fs-h4); font-weight: var(--fw-black); line-height: var(--lh-snug); letter-spacing: var(--ls-tight); text-wrap: balance; }
.card__title a:hover { color: var(--c-red); }
.card__text { color: var(--c-muted); font-size: var(--fs-base); }
.card__foot { margin-top: auto; padding-top: var(--sp-2); }

@media (prefers-reduced-motion: reduce) {
  a.card:hover, .card--link:hover { transform: none; }
}

/* ===================== EINSATZ-CARD ===================== */
.op-card .card__body { gap: var(--sp-3); }
.op-card__date {
  font-family: var(--font-mono); font-size: var(--fs-sm);
  color: var(--c-muted); font-weight: var(--fw-bold);
  display: flex; align-items: center; gap: 0.5em;
}
.op-card__addr { display: flex; align-items: flex-start; gap: 0.45em; color: var(--c-muted); font-size: var(--fs-sm); }
.op-card__addr .ic { width: 15px; height: 15px; flex-shrink: 0; margin-top: 0.15em; }

/* ===================== TIMELINE (Einsätze) ===================== */
.timeline { position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 2px;
  background: var(--c-line);
}
.tl-item { position: relative; padding-left: 52px; padding-bottom: var(--sp-6); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item__node {
  position: absolute; left: 8px; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--c-surface); border: 3px solid var(--c-red);
  z-index: 1;
}
.tl-item__node--tech { border-color: var(--c-tech); }
.tl-item__node--hazmat { border-color: var(--c-hazmat); }
.tl-item__node--drill { border-color: var(--c-drill); }
.tl-item__node--misc { border-color: var(--c-misc); }
.tl-card {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-md); box-shadow: var(--sh-rest);
  padding: var(--sp-4) var(--sp-5);
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
a.tl-card:hover { box-shadow: var(--sh-hover); border-color: var(--c-line-2); }
.tl-card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.tl-card__date { font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--c-muted); }
.tl-card__title { font-size: var(--fs-h4); font-weight: var(--fw-black); margin-top: var(--sp-2); letter-spacing: var(--ls-tight); }
.tl-card__addr { color: var(--c-muted); font-size: var(--fs-sm); margin-top: 0.3rem; display: flex; align-items: center; gap: 0.4em; }
.tl-month {
  position: relative; padding-left: 52px; margin-bottom: var(--sp-5);
  font-size: var(--fs-sm); font-weight: var(--fw-heavy); text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow); color: var(--c-ink);
}

/* ===================== MITGLIEDER-CARD ===================== */
.member {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); box-shadow: var(--sh-rest);
  transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
}
.member:hover { box-shadow: var(--sh-hover); transform: translateY(-3px); border-color: var(--c-line-2); }
.member__link {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 2px; padding: var(--sp-6) var(--sp-4); color: inherit; text-decoration: none;
}
.member__link:focus-visible { outline: none; }
.member:has(.member__link:focus-visible) { box-shadow: var(--sh-focus); }
.member__avatar {
  position: relative; width: 88px; height: 88px; border-radius: 50%;
  margin-bottom: var(--sp-4); flex-shrink: 0; overflow: visible;
  background: var(--c-surface-3);
  box-shadow: var(--sh-avatar);
}
.member__avatar img,
.member__avatar .avatar-init {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
}
.member__as {
  position: absolute; right: -3px; bottom: -3px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-ink); color: #fff;
  display: grid; place-items: center; border: 3px solid var(--c-surface);
}
.member__as .ic { width: 14px; height: 14px; }
.member__name {
  font-weight: var(--fw-black); font-size: var(--fs-base);
  letter-spacing: var(--ls-tight); color: var(--c-ink); line-height: 1.25;
}
.member__rank {
  margin-top: 4px; font-size: 0.74rem; font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: var(--c-red);
}
.member__role { font-size: var(--fs-sm); color: var(--c-muted); margin-top: 1px; }
@media (prefers-reduced-motion: reduce) { .member:hover { transform: none; } }

/* Initialen-Avatar (Fallback ohne Foto) */
.avatar-init {
  display: grid; place-items: center;
  background: var(--ac, var(--c-ink)); color: #fff;
  font-weight: var(--fw-heavy); letter-spacing: 0; line-height: 1;
  font-size: 1.55rem;
}

/* Kommando-Karte (prominenter, mit Kontakt) */
.cmd-card {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); box-shadow: var(--sh-rest);
  padding: var(--sp-6); padding-left: calc(var(--sp-6) + 4px);
  display: flex; gap: var(--sp-5); align-items: flex-start;
  position: relative; overflow: hidden;
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.cmd-card:hover { box-shadow: var(--sh-hover); transform: translateY(-2px); }
.cmd-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c-red); }
.cmd-card__avatar {
  width: 96px; height: 96px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: var(--c-surface-3); box-shadow: var(--sh-ring);
}
.cmd-card__avatar img,
.cmd-card__avatar .avatar-init { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.cmd-card__avatar .avatar-init { font-size: 1.95rem; }
.cmd-card__body { flex: 1; min-width: 0; }
.cmd-card__func { color: var(--c-red); font-weight: var(--fw-black); font-size: 0.74rem; text-transform: uppercase; letter-spacing: var(--ls-eyebrow); }
.cmd-card__name { font-size: var(--fs-h4); font-weight: var(--fw-heavy); margin-top: 0.2rem; letter-spacing: var(--ls-tight); }
.cmd-card__name a { color: inherit; text-decoration: none; }
.cmd-card__name a:hover { color: var(--c-red); }
.cmd-card__rank { color: var(--c-ink-2); font-size: var(--fs-sm); font-weight: var(--fw-semi); margin-top: 0.15rem; }
.cmd-card__since { color: var(--c-muted); font-size: var(--fs-sm); margin-top: 0.3rem; }
.cmd-card__contact { margin-top: var(--sp-4); display: grid; gap: 0.4rem; font-size: var(--fs-sm); }
.cmd-card__contact a { display: inline-flex; align-items: center; gap: 0.5em; color: var(--c-ink-2); font-weight: var(--fw-semi); }
.cmd-card__contact a:hover { color: var(--c-red); }
.cmd-card__contact .ic { width: 15px; height: 15px; color: var(--c-muted); }
@media (max-width: 480px) { .cmd-card { flex-direction: column; align-items: center; text-align: center; } .cmd-card__contact { justify-items: center; } }

/* ===================== MITGLIEDER-PROFIL (Detailseite) ===================== */
.member-profile {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); box-shadow: var(--sh-rest);
  padding: var(--sp-7); padding-left: calc(var(--sp-7) + 4px);
  position: relative; overflow: hidden;
}
.member-profile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c-red); }
.member-profile__head { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-7); align-items: center; }
.member-profile__avatar {
  position: relative; width: 148px; height: 148px; border-radius: 50%;
  flex-shrink: 0; background: var(--c-surface-3);
  box-shadow: var(--sh-avatar-lg);
}
.member-profile__avatar img,
.member-profile__avatar .avatar-init { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.member-profile__avatar .avatar-init { font-size: 2.9rem; }
.member-profile__as {
  position: absolute; right: 2px; bottom: 2px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-ink); color: #fff; display: grid; place-items: center; border: 4px solid var(--c-surface);
}
.member-profile__as .ic { width: 20px; height: 20px; }
.member-profile__func { color: var(--c-red); font-weight: var(--fw-black); font-size: 0.78rem; text-transform: uppercase; letter-spacing: var(--ls-eyebrow); }
.member-profile__name { font-size: var(--fs-h2); font-weight: var(--fw-heavy); letter-spacing: var(--ls-tighter); margin: 0.2rem 0 0; line-height: 1.1; }
.member-profile__tags { margin-top: var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.member-facts {
  margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--c-line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--sp-4) var(--sp-6);
}
.member-fact { display: flex; flex-direction: column; gap: 4px; }
.member-fact__label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: var(--c-muted); font-weight: var(--fw-bold); display: inline-flex; align-items: center; gap: 0.5em; }
.member-fact__label .ic { width: 14px; height: 14px; color: var(--c-muted-2); }
.member-fact__value { font-size: var(--fs-base); color: var(--c-ink); font-weight: var(--fw-semi); }

.member-contact { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--c-line); display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.member-contact a {
  display: inline-flex; align-items: center; gap: 0.55em; font-weight: var(--fw-semi);
  color: var(--c-ink-2); text-decoration: none; padding: 0.6rem 1rem;
  border: 1px solid var(--c-line); border-radius: var(--r-pill); background: var(--c-surface);
  transition: border-color var(--t-base), color var(--t-base);
}
.member-contact a:hover { border-color: var(--c-red); color: var(--c-red); }
.member-contact .ic { width: 16px; height: 16px; }

@media (max-width: 640px) {
  .member-profile { padding: var(--sp-6); padding-top: calc(var(--sp-6) + 4px); }
  .member-profile::before { width: 100%; height: 4px; bottom: auto; }
  .member-profile__head { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: var(--sp-5); }
}

/* ===================== FAHRZEUG-CARD ===================== */
.vehicle .card__media .asset { aspect-ratio: 16/10; }
.vehicle__callsign { font-family: var(--font-mono); font-weight: var(--fw-heavy); font-size: var(--fs-h4); letter-spacing: var(--ls-tight); }
.vehicle__type { color: var(--c-muted); font-size: var(--fs-sm); font-weight: var(--fw-semi); }
.vehicle__specs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3) var(--sp-4); margin-top: var(--sp-2); padding-top: var(--sp-4); border-top: 1px solid var(--c-line); }
.spec { display: flex; flex-direction: column; gap: 1px; }
.spec__k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-muted); font-weight: var(--fw-bold); }
.spec__v { font-weight: var(--fw-bold); font-size: var(--fs-base); }
.spec__v.mono { font-family: var(--font-mono); }
.vehicle__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-1); }

/* ===================== TERMIN / EVENT ===================== */
.event {
  display: flex; gap: var(--sp-5); align-items: stretch;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); box-shadow: var(--sh-rest); overflow: hidden;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
a.event:hover { box-shadow: var(--sh-hover); border-color: var(--c-line-2); }
.event__date {
  flex-shrink: 0; width: 92px;
  background: var(--c-black); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--sp-4) var(--sp-2); text-align: center;
}
.event__dow { font-size: var(--fs-sm); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-on-dark-mut); }
.event__day { font-size: 2.1rem; font-weight: var(--fw-heavy); line-height: 1; font-variant-numeric: tabular-nums; }
.event__mon { font-size: var(--fs-sm); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.12em; color: var(--c-yellow); }
.event__body { padding: var(--sp-4) var(--sp-5) var(--sp-4) 0; display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; justify-content: center; }
.event__title { font-size: var(--fs-h4); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); }
.event__meta { display: flex; flex-wrap: wrap; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--c-muted); }
.event__meta span { display: inline-flex; align-items: center; gap: 0.4em; }
.event__meta .ic { width: 15px; height: 15px; }
@media (max-width: 480px) { .event__date { width: 76px; } .event__body { padding-right: var(--sp-4); } }

/* ===================== NEWS-CARD ===================== */
.news .card__media .asset { aspect-ratio: 16/10; }
.news__cat { font-size: var(--fs-eyebrow); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-red); }
.news__date { color: var(--c-muted-2); font-size: var(--fs-sm); }

/* Magazin-Feature (großer erster Post) */
.news-feature { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0; }
.news-feature .asset { border-radius: 0; height: 100%; min-height: 320px; }
.news-feature__body { padding: var(--sp-7); display: flex; flex-direction: column; justify-content: center; gap: var(--sp-3); }
.news-feature__title { font-size: var(--fs-h2); font-weight: var(--fw-heavy); letter-spacing: var(--ls-tight); line-height: var(--lh-tight); text-wrap: balance; }
@media (max-width: 760px) { .news-feature { grid-template-columns: 1fr; } .news-feature .asset { min-height: 220px; } .news-feature__body { padding: var(--sp-5); } }

/* ===================== CTA-BAND ===================== */
.cta-band {
  position: relative; background: var(--c-red); color: #fff;
  border-radius: var(--r-lg); overflow: hidden;
  padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 20px);
  pointer-events: none;
}
.cta-band__inner { position: relative; max-width: 56ch; }
.cta-band__title { font-size: var(--fs-h2); font-weight: var(--fw-heavy); letter-spacing: var(--ls-tight); line-height: var(--lh-tight); text-wrap: balance; }
.cta-band__text { font-size: var(--fs-lg); margin-top: var(--sp-4); color: rgba(255,255,255,0.9); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.cta-band .btn--primary { background: #fff; color: var(--c-red); }
.cta-band .btn--primary:hover { background: var(--c-yellow); color: var(--c-black); }
.cta-band .btn--on-dark { border-color: rgba(255,255,255,0.5); }

/* ===================== PAGE-HEAD (kleine Hero für Unterseiten) ===================== */
.page-head { background: var(--c-black); color: var(--c-on-dark); position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(100% 90% at 90% -20%, rgba(200,16,46,0.25), transparent 55%),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 22px);
}
.page-head__inner { position: relative; padding-block: clamp(2.5rem, 2rem + 4vw, 5rem); }
.page-head__title { font-size: var(--fs-h1); font-weight: var(--fw-heavy); line-height: var(--lh-tight); letter-spacing: var(--ls-tighter); margin-top: var(--sp-3); text-wrap: balance; max-width: 20ch; }
.page-head__lead { font-size: var(--fs-lg); color: var(--c-on-dark-mut); margin-top: var(--sp-4); max-width: 56ch; text-wrap: pretty; }
.page-head__stats { display: flex; flex-wrap: wrap; gap: var(--sp-7); margin-top: var(--sp-7); }
.page-head .eyebrow { color: var(--c-yellow); }
.page-head .eyebrow::before { background: var(--c-yellow); }

/* Breadcrumb */
.crumbs { display: flex; align-items: center; gap: 0.5em; font-size: var(--fs-sm); color: var(--c-muted); flex-wrap: wrap; }
.crumbs a:hover { color: var(--c-red); }
.crumbs .sep { opacity: 0.5; }
.page-head .crumbs { color: var(--c-on-dark-mut); margin-bottom: var(--sp-4); }
.page-head .crumbs a:hover { color: #fff; }
.page-head__tags { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.tag--on-dark { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.18); font-weight: var(--fw-semi); }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--c-black); color: var(--c-on-dark-mut); position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--stripe-yellow); }
.footer__grid {
  display: grid; gap: var(--sp-7);
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  padding-block: var(--sp-9);
}
.footer__brand .brand__name, .footer__brand .brand__sub { color: #fff; }
.footer__brand .brand__sub { color: var(--c-on-dark-mut); }
.footer__about { margin-top: var(--sp-4); font-size: var(--fs-sm); max-width: 36ch; line-height: 1.6; }
.footer__col h3 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: #fff; font-weight: var(--fw-bold); margin-bottom: var(--sp-4); }
.footer__links { display: grid; gap: var(--sp-3); }
.footer__links a { font-size: var(--fs-base); }
.footer__links a:hover { color: #fff; }
.footer__contact { display: grid; gap: var(--sp-3); font-size: var(--fs-base); }
.footer__contact a, .footer__contact span { display: flex; align-items: flex-start; gap: 0.6em; }
.footer__contact a:hover { color: #fff; }
.footer__contact .ic { width: 16px; height: 16px; flex-shrink: 0; margin-top: 0.2em; color: var(--c-on-dark-mut); }

/* Notfall-Box im Footer */
.footer__emergency {
  background: var(--c-dark-surface); border: 1px solid var(--c-dark-line);
  border-radius: var(--r-md); padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.footer__emergency .lbl { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.08em; font-weight: var(--fw-bold); color: var(--c-on-dark-mut); }
.footer__emergency .num { font-family: var(--font-mono); font-size: 2.4rem; font-weight: var(--fw-heavy); color: #fff; line-height: 1; }
.footer__emergency .txt { font-size: var(--fs-sm); }

.footer__bottom { border-top: 1px solid var(--c-dark-line); padding-block: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; justify-content: space-between; font-size: var(--fs-sm); }
.footer__legal { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.footer__legal a:hover { color: #fff; }

@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ===================== INFO-BOX / ABBREVIATIONS ===================== */
.infobox { background: var(--c-surface-2); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--sp-6); }
.abbr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-4); }
.abbr { display: flex; gap: var(--sp-3); align-items: baseline; }
.abbr__code { font-family: var(--font-mono); font-weight: var(--fw-heavy); color: var(--c-red); flex-shrink: 0; min-width: 4.5em; }
.abbr__def { font-size: var(--fs-base); }
.abbr__def small { display: block; color: var(--c-muted); font-size: var(--fs-sm); }

/* ===================== ANFAHRT / MINI-MAP ===================== */
.map-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; background: var(--c-surface); }
.map-row .asset { min-height: 100%; border-radius: 0; }
.map-row__body { padding: var(--sp-7); display: flex; flex-direction: column; gap: var(--sp-4); justify-content: center; }
@media (max-width: 760px) { .map-row { grid-template-columns: 1fr; } .map-row .asset { min-height: 220px; } }

/* ===================== SPEC-TABELLE (Fahrzeug-Detail) ===================== */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: var(--sp-3) 0; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.spec-table th { font-weight: var(--fw-bold); color: var(--c-muted); font-size: var(--fs-sm); width: 40%; text-transform: uppercase; letter-spacing: 0.04em; }
.spec-table td { font-weight: var(--fw-semi); }
.spec-table td.mono { font-family: var(--font-mono); }

/* ===================== ARTICLE BODY (News/Bericht) ===================== */
.prose { font-size: var(--fs-lg); line-height: 1.7; color: var(--c-ink-2); }
.prose > * + * { margin-top: var(--sp-5); }
.prose h2 { font-size: var(--fs-h3); font-weight: var(--fw-heavy); color: var(--c-ink); margin-top: var(--sp-7); }
.prose h3 { font-size: var(--fs-h4); font-weight: var(--fw-bold); color: var(--c-ink); margin-top: var(--sp-6); }
.prose p { text-wrap: pretty; }
.prose strong { font-weight: var(--fw-bold); color: var(--c-ink); }
.prose blockquote { border-left: 4px solid var(--c-red); padding-left: var(--sp-5); font-style: italic; color: var(--c-muted); }
.prose ul { display: grid; gap: var(--sp-2); }
.prose ul li { position: relative; padding-left: 1.5em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; background: var(--c-red); border-radius: 2px; }

/* Meta-Block (Einsatz-Detail) */
.meta-block { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--sp-5); padding: var(--sp-6); background: var(--c-surface-2); border-radius: var(--r-lg); border: 1px solid var(--c-line); }
.meta-block .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-muted); font-weight: var(--fw-bold); }
.meta-block .v { font-size: var(--fs-h4); font-weight: var(--fw-heavy); margin-top: 0.2rem; letter-spacing: var(--ls-tight); }
.meta-block .v.mono { font-family: var(--font-mono); }
.meta-block .v.sm { font-size: var(--fs-base); font-weight: var(--fw-bold); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--sp-3); }
.gallery .asset { aspect-ratio: 4/3; }
.gallery img, .gallery a { display: block; width: 100%; height: 100%; border-radius: var(--r-md); object-fit: cover; aspect-ratio: 4/3; }

/* Detail-Media (Single-Hero-Bild) */
.single__media { border-radius: var(--r-lg); overflow: hidden; margin: 0; }
.single__media img { display: block; width: 100%; height: auto; }

/* ===================== HIGHLIGHT-BANNER (Termine) ===================== */
.highlight {
  position: relative; overflow: hidden;
  background: var(--c-black); color: var(--c-on-dark);
  border-radius: var(--r-lg); display: grid; grid-template-columns: 1fr 1fr;
}
.highlight::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(110% 90% at 90% -10%, rgba(200,16,46,0.3), transparent 55%);
  pointer-events: none;
}
.highlight .asset { border-radius: 0; min-height: 280px; }
.highlight__body { position: relative; padding: clamp(2rem,1.5rem+2vw,3.5rem); display: flex; flex-direction: column; gap: var(--sp-3); justify-content: center; }
.highlight__date { display: inline-flex; align-items: baseline; gap: 0.4em; font-family: var(--font-mono); font-weight: var(--fw-heavy); color: var(--c-yellow); font-size: var(--fs-lg); }
.highlight__title { font-size: var(--fs-h2); font-weight: var(--fw-heavy); letter-spacing: var(--ls-tight); line-height: var(--lh-tight); text-wrap: balance; }
@media (max-width: 760px) { .highlight { grid-template-columns: 1fr; } .highlight .asset { min-height: 200px; order: -1; } }

/* ===================== KALENDER ===================== */
.cal { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-rest); }
.cal__head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--c-line); }
.cal__title { font-size: var(--fs-h4); font-weight: var(--fw-heavy); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__dow { text-align: center; padding: var(--sp-3) 0; font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--c-muted); border-bottom: 1px solid var(--c-line); text-transform: uppercase; letter-spacing: 0.04em; }
.cal__cell { min-height: 84px; padding: var(--sp-2); border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); display: flex; flex-direction: column; gap: 4px; }
.cal__cell:nth-child(7n) { border-right: 0; }
.cal__cell.is-out { background: var(--c-surface-2); color: var(--c-muted-2); }
.cal__num { font-size: var(--fs-sm); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.cal__ev { font-size: 0.7rem; font-weight: var(--fw-bold); padding: 2px 5px; border-radius: 4px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal__ev--public { background: var(--c-brand-bg); color: var(--c-brand); }
.cal__ev--intern { background: var(--c-drill-bg); color: var(--c-drill); }
@media (max-width: 560px) { .cal__cell { min-height: 56px; } .cal__ev { display: none; } .cal__cell.has-ev .cal__num::after { content: "•"; color: var(--c-red); margin-left: 3px; } }

.intern-flag { display: inline-flex; align-items: center; gap: 0.35em; font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--c-muted); }
.intern-flag .ic { width: 14px; height: 14px; }

/* ===================== ARCHIV-MAGAZIN-LAYOUT ===================== */
/* Page-Head mit Hero-Bild (Archiv-Kopf) */
.page-head--media .page-head__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--sp-8); align-items: center; }
.page-head__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/10; box-shadow: var(--sh-elevated); }
.page-head__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-head__media .asset { width: 100%; height: 100%; min-height: 0; border-radius: 0; }
@media (max-width: 880px) { .page-head--media .page-head__inner { grid-template-columns: 1fr; } .page-head__media { display: none; } }

/* Sidebar + Main */
.archive-layout { display: grid; grid-template-columns: 264px 1fr; gap: var(--sp-7); align-items: start; }
@media (max-width: 880px) { .archive-layout { grid-template-columns: 1fr; } }

/* Filter-Karte */
.filter-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--sh-rest); position: sticky; top: var(--sp-5); }
.filter-card__title { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-muted); font-weight: var(--fw-bold); margin-bottom: var(--sp-4); }
.filter-list { display: grid; gap: 2px; }
.filter-list a { display: flex; align-items: center; gap: 0.65em; padding: 0.6rem 0.7rem; border-radius: var(--r-md); color: var(--c-ink-2); font-weight: var(--fw-semi); font-size: var(--fs-sm); transition: background var(--t-base), color var(--t-base); }
.filter-list a:hover { background: var(--c-surface-2); }
.filter-list a.is-active { background: var(--c-red); color: #fff; }
.filter-list a .ic { width: 16px; height: 16px; flex-shrink: 0; color: var(--c-red); }
.filter-list a.is-active .ic { color: #fff; }
.filter-list__label { flex: 1; min-width: 0; }
.filter-list__count { background: var(--c-surface-2); color: var(--c-muted); font-size: 0.72rem; font-weight: var(--fw-bold); padding: 0.1em 0.55em; border-radius: var(--r-pill); }
.filter-list a.is-active .filter-list__count { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* Featured-Eintrag (grosse Karte) */
.feature { display: grid; grid-template-columns: 1fr 1fr; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-rest); }
.feature__media { position: relative; min-height: 280px; }
.feature__media img, .feature__media .asset { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; min-height: 0; border-radius: 0; }
.feature__body { padding: var(--sp-7); display: flex; flex-direction: column; gap: var(--sp-4); }
.feature__title { font-size: var(--fs-h3); font-weight: var(--fw-black); letter-spacing: var(--ls-tight); line-height: var(--lh-tight); text-wrap: balance; }
.feature__title a:hover { color: var(--c-red); }
.feature__text { color: var(--c-muted); }
.feature__meta { display: grid; gap: var(--sp-3); margin-top: auto; }
.feature__meta .row { display: flex; align-items: center; gap: 0.6em; color: var(--c-ink-2); font-size: var(--fs-sm); font-weight: var(--fw-semi); }
.feature__meta .ic { width: 16px; height: 16px; color: var(--c-red); flex-shrink: 0; }
.feature__meta .mono { font-family: var(--font-mono); }
@media (max-width: 620px) { .feature { grid-template-columns: 1fr; } .feature__media { min-height: 200px; } }

/* Typ-Badge ueber dem Card-Bild */
.card__media { display: block; aspect-ratio: 16/10; overflow: hidden; }
.card__media .card__tag { position: absolute; top: var(--sp-3); left: var(--sp-3); z-index: 2; box-shadow: var(--sh-rest); }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-base); }
.card__media .asset { width: 100%; height: 100%; aspect-ratio: auto; }
.card:hover .card__media img { transform: scale(1.04); }

/* Stats-Leiste mit Icon-Kacheln */
.stats--icon { gap: var(--sp-6); }
.stats--icon .stat { display: flex; align-items: center; gap: var(--sp-4); padding: 0; }
.stats--icon .stat + .stat::before { display: none; }
.stat__icon { width: 52px; height: 52px; border-radius: var(--r-md); background: rgba(200, 16, 46, 0.16); color: var(--c-red); display: grid; place-items: center; flex-shrink: 0; }
.stat__icon .ic { width: 24px; height: 24px; }
.stat__body { display: flex; flex-direction: column; }

/* ===================== TERMIN-DATUMS-BLOCK (Feature-Placeholder) ===================== */
.feature-date-block { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); }
.feature-date-block__day { font-size: 3.5rem; font-weight: var(--fw-heavy); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.feature-date-block__mon { font-size: var(--fs-sm); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.12em; color: var(--c-yellow); }
