/* ==========================================================================
   Feuerwehr-Website – Grundlagen & Komponenten
   --------------------------------------------------------------------------
   Basis-Stile (Tokens, Typografie, Raster, Komponenten). Das Figma-Design
   in figma.css baut darauf auf und überschreibt Werte gezielt.
     .ffsv-section  = Abschnitt in voller Breite (Hintergrund)
     .ffsv-inner    = Inhaltsbreite (1470px)
   ========================================================================== */

/* ---------- 0. Schrift – selbst gehostet (DSGVO), Roboto Variable Font, auf lateinische Zeichen reduziert ---------- */
@font-face { font-family: "Roboto"; src: url("fonts/roboto-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("fonts/roboto-latin-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

/* ---------- 1. Tokens ---------- */
:root {
  /* Farben */
  --ffsv-red:        #DA0021;  /* Color Brand/FW Red        */
  --ffsv-red-dark:   #B3001B;  /* neu: Hover/Active          */
  --ffsv-red-soft:   #FF757A;  /* Color Brand/Color          */
  --ffsv-black:      #241D19;  /* Color Brand/FW Black       */
  --ffsv-ink:        #000000;  /* Color Neutral/black        */
  --ffsv-white:      #FFFFFF;
  --ffsv-sand:       #F5EFE6;  /* FW Background 2            */
  --ffsv-sand-dark:  #E9DFD0;  /* neu: Linien/Rahmen auf Sand */
  --ffsv-rose:       #FEEEE8;  /* FW Canvas Red 1            */
  --ffsv-yellow:     #FFE500;  /* neu: aus dem Logo (Flamme)  */
  --ffsv-muted:      #6B625C;  /* neu: Sekundärtext (AA auf weiß & sand) */

  /* Schrift */
  --ffsv-font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Fluid Typography – clamp(min, preferred, max), 360px → 1470px */

  /* Zeilenhöhen – einheitenlos (skalieren mit der Schriftgröße) */
  --lh-tight: 1.08;
  --lh-head:  1.18;
  --lh-snug:  1.35;
  --lh-body:  1.6;

  /* Fluid Spacing */

  /* Form */
  --radius-s: 8px;
  --radius:   16px;
  --radius-l: 24px;
  --radius-pill: 999px;
  --border-box: 3px solid var(--ffsv-sand);
  --shadow: 0 1px 2px rgb(36 29 25 / .06), 0 8px 24px rgb(36 29 25 / .08);
  --shadow-lift: 0 2px 4px rgb(36 29 25 / .08), 0 16px 40px rgb(36 29 25 / .14);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- 2. Basis ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--ffsv-font);
  color: var(--ffsv-black);
  background: var(--ffsv-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ffsv-red); }
:focus-visible { outline: 3px solid var(--ffsv-red); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--ffsv-black); color: #fff; padding: .75rem 1rem; border-radius: var(--radius-s); }
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- 3. Typografie ---------- */
h1, h2, h3, h4, h5, h6, .t-h3, .t-h4, .t-h5 {
  margin: 0 0 .5em;
  font-style: italic;
  text-wrap: balance;
  color: var(--ffsv-black);
}
.t-overline{ font-size: var(--fs-caption); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--ffsv-red); margin: 0 0 var(--sp-2xs); font-style: normal; }
.t-muted   { color: var(--ffsv-muted); }
.t-red     { color: var(--ffsv-red); }

/* ---------- 4. Layout ---------- */
.ffsv-section { position: relative; padding-block: var(--sp-xl); }
.ffsv-section--tight { padding-block: var(--sp-l); }
.ffsv-section--sand { background: var(--ffsv-sand); }
.ffsv-inner { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.ffsv-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--sp-s); }
.ffsv-head h2, .ffsv-head p { margin-bottom: 0; }

.grid { display: grid; gap: var(--sp-m); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 1025px) {  .grid--3.grid--fixed { grid-template-columns: repeat(3, 1fr); } }
.split { display: grid; gap: var(--sp-l); align-items: center; }
@media (min-width: 1025px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--7-5 { grid-template-columns: 7fr 5fr; }
  .split--5-7 { grid-template-columns: 5fr 7fr; }
  .split--top { align-items: start; }
}
.stack > * + * { margin-top: var(--sp-s); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-xs); align-items: center; }

/* ---------- 5. Buttons ---------- */
.btn {
  --_bg: var(--ffsv-red); --_fg: #fff; --_bd: var(--ffsv-red);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  
  font: 700 var(--fs-btn)/1.15 var(--ffsv-font);
  color: var(--_fg); background: var(--_bg); border: 2px solid var(--_bd);
  border-radius: var(--radius-pill); text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { --_bg: var(--ffsv-red-dark); --_bd: var(--ffsv-red-dark); color: var(--_fg); transform: translateY(-1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--dark    { --_bg: var(--ffsv-black); --_bd: var(--ffsv-black); }
.btn--dark:hover { --_bg: var(--ffsv-red); --_bd: var(--ffsv-red); }
.btn--white   { --_bg: #fff; --_fg: var(--ffsv-red); --_bd: #fff; }
.btn--white:hover { --_bg: var(--ffsv-black); --_fg: #fff; --_bd: var(--ffsv-black); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--ffsv-red); text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 6. Badges / Chips ---------- */
.badge { display: inline-flex; align-items: center; gap: .4em; padding: .3em .75em; border-radius: var(--radius-pill); font-size: var(--fs-caption); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--ffsv-rose); color: var(--ffsv-red); line-height: 1.2; }
.badge--einsatz { background: var(--ffsv-red); color: #fff; }
.badge--uebung { background: var(--ffsv-black); color: #fff; }
.badge--veranstaltung { background: var(--ffsv-yellow); color: var(--ffsv-black); }
.badge--diverses { background: var(--ffsv-sand-dark); color: var(--ffsv-black); }
.badge--jahresbericht { background: #fff; color: var(--ffsv-black); box-shadow: inset 0 0 0 1px var(--ffsv-sand-dark); }
.chips { display: flex; gap: var(--sp-2xs); flex-wrap: wrap; }
.chip { min-height: 44px; display: inline-flex; align-items: center; padding: .5em 1.1em; border-radius: var(--radius-pill); border: 2px solid var(--ffsv-sand-dark); background: #fff; font: 600 var(--fs-small)/1 var(--ffsv-font); color: var(--ffsv-black); text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--ffsv-black); color: var(--ffsv-black); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--ffsv-black); border-color: var(--ffsv-black); color: #fff; }

/* ---------- 7. Header (Theme Builder: Header) ---------- */
.ffsv-topbar { color: #fff; }
.ffsv-topbar .ffsv-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-s); }
.ffsv-topbar a { color: #fff; text-decoration: none; }
.ffsv-topbar a:hover { color: var(--ffsv-red-soft); }
.ffsv-notruf { display: flex; align-items: center; }
.ffsv-notruf a { display: inline-flex; gap: .5em; font-weight: 700; text-transform: uppercase; }
.ffsv-notruf b { color: var(--ffsv-red-soft); letter-spacing: 0; }
.ffsv-topbar__meta { display: flex; gap: var(--sp-s); align-items: center; font-weight: 700; text-transform: uppercase; }
.ffsv-topbar__meta svg { width: 16px; height: 16px; display: inline; vertical-align: -3px; margin-right: .35em; }

.ffsv-header { background: var(--ffsv-sand); position: sticky; top: 0; z-index: 50; transition: box-shadow .2s var(--ease); }
.ffsv-header.is-stuck { box-shadow: 0 6px 20px rgb(36 29 25 / .10); }
.ffsv-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-s); background: #fff; border-radius: var(--radius-pill); }
.ffsv-menu { display: flex; list-style: none; margin: 0; padding: 0; }
.ffsv-menu > li { position: relative; }
.ffsv-menu > li > a, .ffsv-menu > li > button { display: inline-flex; align-items: center; gap: .35em; padding: 0; border: 0; background: none; cursor: pointer; font: italic 800 var(--fs-h6)/1 var(--ffsv-font); color: var(--ffsv-black); text-decoration: none; }
.ffsv-menu > li > a:hover, .ffsv-menu > li > button:hover, .ffsv-menu > li > [aria-current="page"], .ffsv-menu > li.is-current > button { color: var(--ffsv-red); }
.ffsv-menu > li > [aria-current="page"] { text-decoration-thickness: 3px; text-underline-offset: .35em; }
.ffsv-menu button svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.ffsv-menu button[aria-expanded="true"] svg { transform: rotate(180deg); }
.ffsv-sub { position: absolute; top: calc(100% + 14px); left: -1.25rem; min-width: 250px; list-style: none; margin: 0; padding: .6rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lift); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s var(--ease); }
.ffsv-sub::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.ffsv-menu li:hover > .ffsv-sub, .ffsv-menu li:focus-within > .ffsv-sub, .ffsv-menu button[aria-expanded="true"] + .ffsv-sub { opacity: 1; visibility: visible; transform: none; }
.ffsv-sub a { display: flex; align-items: center; justify-content: space-between; padding: .7rem .9rem; border-radius: var(--radius-s); font-weight: 600; text-decoration: none; }
.ffsv-sub a:hover, .ffsv-sub a[aria-current="page"] { background: var(--ffsv-rose); color: var(--ffsv-red); }
.ffsv-header .ffsv-burger { display: none; }

/* Mobile-Menü (Off-Canvas) */
.ffsv-offcanvas { position: fixed; inset: 0; z-index: 100; display: none; }
.ffsv-offcanvas.is-open { display: block; }
.ffsv-offcanvas__backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / .45); }
.ffsv-offcanvas__panel { position: absolute; overflow-y: auto; display: flex; flex-direction: column; }
@keyframes slide-in { from { transform: translateX(100%); } }
.ffsv-offcanvas__top { display: flex; justify-content: space-between; align-items: center; }
.ffsv-offcanvas nav ul { list-style: none; margin: 0; padding: 0; }
.ffsv-offcanvas nav > ul > li > a, .ffsv-offcanvas summary { display: flex; justify-content: space-between; align-items: center; text-decoration: none; cursor: pointer; list-style: none; }
.ffsv-offcanvas summary::-webkit-details-marker { display: none; }
.ffsv-offcanvas summary::after { font-style: normal; font-weight: 400; font-size: 1.4em; color: var(--ffsv-red); }
.ffsv-offcanvas details a { font-weight: 600; text-decoration: none; }
.ffsv-offcanvas__notruf { display: grid; }
.ffsv-offcanvas__notruf a { color: #fff; text-decoration: none; font-weight: 700; text-transform: uppercase; }
.ffsv-offcanvas__notruf b { margin-top: .2em; }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-pill); border: 0; background: #fff; color: var(--ffsv-black); cursor: pointer; }
.icon-btn svg { width: 24px; height: 24px; }

@media (max-width: 1100px) {
  .ffsv-nav { display: none; }
  .ffsv-header .ffsv-burger { display: inline-grid; margin-left: auto; }
  .ffsv-header__cta { display: none; }
}
@media (max-width: 600px) {
  .ffsv-topbar__meta { display: none; }
  .ffsv-notruf { width: 100%; justify-content: space-between; }
}

/* ---------- 8. Hero ---------- */

/* Seitentitel (Theme Builder: Seitentitel-Template) */
.ffsv-pagehead p { margin: 0; }
.ffsv-pagehead--image { position: relative; isolation: isolate; background: var(--ffsv-black); }
.ffsv-pagehead--image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(20 14 11 / .85), rgb(20 14 11 / .35)); }
.ffsv-pagehead--image h1 { color: #fff; }
.ffsv-pagehead--image p, .ffsv-pagehead--image .ffsv-breadcrumbs, .ffsv-pagehead--image .ffsv-breadcrumbs a { color: rgb(255 255 255 / .85); }
.ffsv-breadcrumbs { text-transform: uppercase; }
.ffsv-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
.ffsv-breadcrumbs li + li::before { margin-right: .4em; color: var(--ffsv-red); font-weight: 700; }
.ffsv-breadcrumbs a { text-decoration: none; }
.ffsv-breadcrumbs a:hover { color: var(--ffsv-red); }

/* ---------- 9. Karten (JetEngine Listing Items) ---------- */
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: var(--border-box); border-radius: var(--radius-box); overflow: hidden; transition: border-color .2s var(--ease), background-color .2s var(--ease); height: 100%; }
.card:hover { border-color: var(--ffsv-red); }
.card:hover .card__body { background: var(--ffsv-rose); }
.card__body { transition: background-color .2s var(--ease); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ffsv-sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; color: var(--ffsv-muted); }
.card__title { margin: 0; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* ganze Karte klickbar */
.card__foot { margin-top: auto; }

/* Fahrzeug-Karte */
.vehicle__code { font: italic 900 var(--fs-h4)/1 var(--ffsv-font); margin: 0; }

/* Personen-Karte */
.person { text-align: left; }
.person .card__media img { object-position: 50% 20%; }
.person__rank { font-weight: 700; color: var(--ffsv-red); text-transform: uppercase; }
.person__name { margin: 0; }
.person__placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--ffsv-sand), var(--ffsv-sand-dark)); color: var(--ffsv-black); font: italic 900 var(--fs-h3)/1 var(--ffsv-font); opacity: .9; }

/* Horizontal-Scroller (Mobile: wischen) */

/* ---------- 10. Inhaltsblöcke ---------- */
.feature { border-radius: var(--radius-box); padding: var(--sp-l); background: var(--ffsv-sand); height: 100%; display: flex; flex-direction: column; gap: var(--sp-xs); }
.feature--red { background: var(--ffsv-red); color: #fff; }
.feature--red :is(h2,h3,h4) { color: #fff; }
.feature .btn { align-self: flex-start; margin-top: auto; }

.media-rounded { border-radius: var(--radius-l); overflow: hidden; }
.media-rounded img { object-fit: cover; }
  

.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp-s); align-items: center; }
.logos a { display: grid; place-items: center; aspect-ratio: 16/7; padding: var(--sp-s); background: #fff; border-radius: var(--radius-box); border: var(--border-box); transition: border-color .2s, background-color .2s; }
.logos a:hover { border-color: var(--ffsv-red); background: var(--ffsv-rose); }
.logos img { filter: grayscale(1); opacity: .8; transition: .2s; }
.logos a:hover img { filter: none; opacity: 1; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-s); }
.stat b { display: block; font: italic 900 var(--fs-h1)/1 var(--ffsv-font); color: var(--ffsv-red); }
.stat span { font-size: var(--fs-small); font-weight: 600; }

/* Detail / Fließtext (Beitrag, Fachbereich, Wissen) */
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.3em; }
.prose img, .prose figure { max-width: 100%; border-radius: var(--radius); margin: var(--sp-m) 0; }
.prose figcaption { font-size: var(--fs-caption); color: var(--ffsv-muted); margin-top: .5em; }
.prose blockquote { margin: var(--sp-m) 0; padding-left: var(--sp-s); border-left: 4px solid var(--ffsv-red); font-size: var(--fs-lead); font-style: italic; }

.facts { border-radius: var(--radius-box); display: grid; }
.facts dl { margin: 0; display: grid; gap: var(--sp-xs); }
.facts dt { font-weight: 700; text-transform: uppercase; color: var(--ffsv-red); }
.facts dd { margin: 0; }
@media (min-width: 1025px) { .sticky { position: sticky; top: 140px; } }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: var(--sp-xs); }
.gallery a { display: block; aspect-ratio: 4/3; border-radius: var(--radius-s); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery a:hover img { transform: scale(1.05); }

/* Timeline (Geschichte) */

/* Pagination */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: var(--sp-l); flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-pill); text-decoration: none; font-weight: 700; border: 2px solid var(--ffsv-sand-dark); padding: 0 .9rem; }
.pagination [aria-current] { background: var(--ffsv-black); color: #fff; border-color: var(--ffsv-black); }

/* ---------- 11. Formulare ---------- */
.form { display: grid; gap: var(--sp-s); }
.form__row { display: grid; gap: var(--sp-s); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--fs-small); font-weight: 700; }
.field label .req { color: var(--ffsv-red); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ffsv-black); box-shadow: 0 0 0 4px rgb(218 0 33 / .15); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--fs-small); }
.check input { width: 22px; height: 22px; accent-color: var(--ffsv-red); flex: none; margin-top: .15em; }
.form__note { color: var(--ffsv-muted); }

.tabs { flex-wrap: wrap; }
.tabs button { cursor: pointer; }

.bank { display: grid; }
.bank dl { margin: 0; display: grid; gap: var(--sp-xs); }
.bank dd { margin: 0; word-break: break-word; }
.copy { display: inline-flex; gap: .4em; align-items: center; border: 0; border-radius: var(--radius-pill); font: 600 var(--fs-caption)/1 var(--ffsv-font); cursor: pointer; margin-top: .4rem; }

/* ---------- 12. Footer (Theme Builder: Footer) ---------- */
.ffsv-footer h2 { font-size: var(--fs-h6); margin-bottom: var(--sp-xs); }
.ffsv-footer ul { list-style: none; margin: 0; padding: 0; display: grid; }
.ffsv-footer a { text-decoration: none; }
.ffsv-footer a:hover { text-decoration: underline; }
.ffsv-footer dl { margin: 0; display: grid; }
.ffsv-footer dd { margin: 0; color: var(--ffsv-red); }
.ffsv-footer ol { margin: 0; padding-left: 1.2em; display: grid; gap: .35rem; }
.ffsv-footer ol li::marker { color: var(--ffsv-red); font-weight: 800; }
.ffsv-footer__bottom { color: #fff; }
.ffsv-footer__bottom .ffsv-inner { display: flex; flex-wrap: wrap; align-items: center; }
.ffsv-footer__bottom ul { display: flex; flex-wrap: wrap; }
.ffsv-footer__bottom a { color: #fff; }
.ffsv-footer__bottom a:hover { color: var(--ffsv-red-soft); }
.social { display: flex; gap: .5rem; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ffsv-black); color: #fff; }
.social a:hover { background: var(--ffsv-red); color: #fff; }
.social svg { width: 20px; height: 20px; }

/* ---------- 13. Utilities ---------- */
 .mb-0 { margin-bottom: 0 !important; }
.mt-s { margin-top: var(--sp-s); } .mt-m { margin-top: var(--sp-m); } .mt-l { margin-top: var(--sp-l); }
 

/* ---------- 14. Startseite (Bento-Raster wie bestehend) ---------- */
.home-hero { background: var(--ffsv-sand); }
.home-hero img { width: 100%; max-width: 1920px; margin-inline: auto; object-fit: cover; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.bento > * { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .bento .c-6 { grid-column: span 6; }
}
@media (min-width: 1025px) {
  .bento .l-4 { grid-column: span 4; }
  .bento .l-8 { grid-column: span 8; }
  .bento .l-6 { grid-column: span 6; }
}
.box { position: relative; background: var(--ffsv-sand); border: var(--border-box); border-radius: var(--radius-box); display: flex; flex-direction: column; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.box--white { background: #fff; }
.box--red { background: var(--ffsv-red); border-color: var(--ffsv-red); color: #fff; }
.box--red :is(h2,h3,a) { color: #fff; }
.box--red:hover { background: var(--ffsv-black); border-color: var(--ffsv-black); }
.box__title { margin: 0; }
.box__text { margin: 0; }
.box .btn { align-self: flex-start; }
.box--media { padding: 0; gap: 0; display: grid; grid-template-columns: 1fr; overflow: hidden; }
.box--media > img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.box--media > div, .box--media > .box-media__text { display: flex; flex-direction: column; }
@media (min-width: 768px) { .box--media { grid-template-columns: 1fr 1fr; position: relative; } .box--media > img { position: absolute; inset: 0 auto 0 0; aspect-ratio: auto; } .box--media > div, .box--media > .box-media__text { grid-column: 2; } }
.notrufnr a { text-decoration: none; padding-bottom: var(--sp-s); border-bottom: 2px solid var(--ffsv-sand-dark); }
.notrufnr a:last-child { border-bottom: 0; padding-bottom: 0; }
.notrufnr span { display: inline-flex; align-items: center; font-weight: 700; }
.notrufnr span svg { width: 22px; height: 22px; color: var(--ffsv-red); }
.notrufnr b { color: var(--ffsv-red); }
.notrufnr a:hover b { color: var(--ffsv-black); }
.w5 { list-style: none; margin: 0; padding: 0; display: grid; font-weight: 600; counter-reset: w; }
.w5 li { counter-increment: w; display: flex; gap: .6em; }
.mini { position: relative; display: flex; flex-direction: column; justify-content: center; gap: .35rem; min-height: 130px; padding: clamp(22px, 16px + 1vw, 30px) clamp(22px, 16px + 1.4vw, 35px); background: #fff; border: var(--border-box); border-radius: var(--radius-box); transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.mini:hover { border-color: var(--ffsv-red); background: var(--ffsv-rose); }
.mini time { font-size: var(--fs-small); }
.mini a { font: italic 900 var(--fs-h6)/1.3 var(--ffsv-font); text-decoration: none; }
.mini a::after { content: ""; position: absolute; inset: 0; }
.mini .badge { align-self: flex-start; }
.sponsor-row { display: grid; grid-template-columns: 1fr; align-items: stretch; }
.sponsor-row .box { justify-content: center; }
.sponsor-row .logos a { aspect-ratio: auto; min-height: 120px; height: 100%; }
.divider { border: 0; border-top: 3px solid var(--ffsv-sand); margin: 0; }
@media (max-width: 767px) { .mini { min-height: 0; } }

/* ---------- 15. Unterseiten ---------- */
.ph { background: #FFF6BF; color: var(--ffsv-black); padding: 0 .25em; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.empty { text-align: center; padding: var(--sp-xl) var(--sp-s); border: 3px dashed var(--ffsv-sand-dark); border-radius: var(--radius-box); }
.empty p { margin-inline: auto; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-s); }
.prevnext a { display: grid; gap: .25rem; padding: var(--sp-s); border: var(--border-box); border-radius: var(--radius-box); text-decoration: none; }
.prevnext a:hover { border-color: var(--ffsv-red); background: var(--ffsv-rose); color: inherit; }
.prevnext a[rel="next"] { text-align: right; }
.prevnext span { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .08em; color: var(--ffsv-muted); font-weight: 700; }
.prevnext b { font: italic 800 var(--fs-h6)/1.3 var(--ffsv-font); }
@media (max-width: 560px) { .prevnext { grid-template-columns: 1fr; } .prevnext a[rel="next"] { text-align: left; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-s); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: s; }
.steps li { counter-increment: s; border: var(--border-box); border-radius: var(--radius-box); padding: var(--sp-m); background: #fff; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ffsv-red); color: #fff; font: italic 900 var(--fs-h5)/1 var(--ffsv-font); margin-bottom: var(--sp-s); }
.steps h3 { font-size: var(--fs-h5); margin-bottom: .3em; }
.steps p { margin: 0; font-size: var(--fs-small); color: var(--ffsv-muted); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist li::before { content: "✓"; flex: none; width: 1.6em; height: 1.6em; display: grid; place-items: center; border-radius: 50%; background: var(--ffsv-red); color: #fff; font-weight: 900; font-size: .85em; margin-top: .15em; }
.group-title { display: flex; gap: var(--sp-xs); }
.group-title h2 { margin: 0; }
.group-title span { color: var(--ffsv-muted); font-weight: 600; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
@media (max-width: 420px) { .team-grid { grid-template-columns: 1fr 1fr; } }
.profile { display: grid; align-items: start; }
@media (min-width: 768px) { .profile { grid-template-columns: minmax(220px, 4fr) 8fr; } }
.profile__img { border-radius: var(--radius-box); overflow: hidden; }
.profile__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.contact-list { display: grid; }
.contact-item { display: flex; align-items: flex-start; text-decoration: none; }
.contact-item__icon { flex: none; display: grid; place-items: center; }
.contact-item span { display: block; font-size: var(--fs-caption); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ffsv-muted); }
.map { position: relative; display: block; overflow: hidden; }
.map img { width: 100%; object-fit: cover; }
.map .btn { position: absolute; }
.login { max-width: 460px; margin-inline: auto; }
.legal h2 { font-size: var(--fs-h3); margin-top: 1.6em; scroll-margin-top: 140px; }
.legal h3 { font-size: var(--fs-h5); margin-top: 1.2em; }
.split > *, .bento > *, .grid > * { min-width: 0; }
.person--nophoto .card__media { aspect-ratio: 3 / 2; }

/* =====================================================================
   16. WordPress / Block-Theme / JetEngine
   ===================================================================== */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.ffsv-site-main > *, .ffsv-site-main .entry-content > * { margin-block: 0; }
.wp-block-group.ffsv-inner { padding-inline: var(--gutter); }
.ffsv-site-header { position: sticky; top: 0; z-index: 50; }
.ffsv-site-header .ffsv-header { position: relative; }
.admin-bar .ffsv-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ffsv-site-header { top: 0; position: relative; } }
.ffsv-header .ffsv-inner { display: flex; align-items: center; }
.ffsv-logo { display: block; flex: none; }
.ffsv-logo img { width: 100%; height: auto; }
.ffsv-logo--sm { width: 160px; }
.ffsv-topbar__meta .ffsv-icon { width: 16px; height: 16px; }
.ffsv-icon { width: 1.15em; height: 1.15em; flex: none; }
.btn .ffsv-icon { width: 1.15em; height: 1.15em; }
.icon-btn .ffsv-icon { width: 24px; height: 24px; }
.ffsv-menu button .ffsv-icon { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.ffsv-menu button[aria-expanded="true"] .ffsv-icon { transform: rotate(180deg); }
.ffsv-menu .ffsv-menu-verwaltung > a { color: var(--ffsv-red); }
.ffsv-offcanvas .t-small { display: inline-flex; gap: .4em; align-items: center; }
.notrufnr span .ffsv-icon { width: 22px; height: 22px; color: var(--ffsv-red); }
.ffsv-pagehead--image > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.ffsv-pagehead .badge { vertical-align: 2px; }
.ffsv-pagehead--image .ffsv-breadcrumbs li > span { color: rgb(255 255 255 / .85); }
.home-hero img { display: block; }
.badge--online { background: #E3F4E8; color: #11592B; }
.badge--wartet { background: #FFF1C2; color: #7A4B00; }
.mini time { color: var(--ffsv-muted); }
.person__placeholder { font-size: var(--fs-h4); text-align: center; padding: 1rem; line-height: 1.1; }
.card .person__placeholder { font-size: var(--fs-h5); }
.person .person__placeholder { font-size: var(--fs-h3); }
.profile__img .person__placeholder { height: 100%; font-size: var(--fs-display); }
.media-rounded { margin: 0; }
figure.media-rounded figcaption { margin-top: .5rem; }
.ranks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem var(--sp-s); font-size: var(--fs-small); }
.ranks dt { font-weight: 800; } .ranks dd { margin: 0; }
details > summary.link-arrow { cursor: pointer; list-style: none; }
details > summary.link-arrow::-webkit-details-marker { display: none; }
.edit-actions { padding: var(--sp-s); border: 3px dashed var(--ffsv-sand-dark); border-radius: var(--radius-box); margin-bottom: var(--sp-m); }
.share { margin-top: var(--sp-l); }
.logos > a, .logos > span { display: grid; place-items: center; aspect-ratio: 16/7; padding: var(--sp-s); background: #fff; border-radius: var(--radius-box); border: var(--border-box); }
.logos img { max-height: 70px; width: auto; height: auto; object-fit: contain; }
.sponsor-row > .logos { align-self: stretch; }
.map__ph { display: block; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--ffsv-sand), var(--ffsv-sand-dark)); }
.bank h3 { margin: 0; }

/* Galerie + Lightbox */
.gallery button { display: block; aspect-ratio: 4/3; border-radius: var(--radius-s); overflow: hidden; padding: 0; border: 0; cursor: zoom-in; background: var(--ffsv-sand); }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery button:hover img { transform: scale(1.05); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; }
.lightbox::backdrop { background: rgb(0 0 0 / .85); }
.lightbox__img { display: block; max-width: 100%; max-height: calc(94vh - 64px); margin: 0 auto; border-radius: var(--radius-s); }
.lightbox__bar { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; padding-top: .6rem; }
.lightbox__count { color: #fff; margin-right: auto; font-size: var(--fs-small); }

/* JetEngine Listing-Grid → CSS-Grid */
.jet-listing-grid__items { width: 100% !important; display: grid !important; grid-template-columns: repeat(var(--ffsv-cols, 3), minmax(0, 1fr)); margin: 0 !important; }
.jet-listing-grid__items.grid-col-desk-4 { --ffsv-cols: 4; }
.jet-listing-grid__items.grid-col-desk-3 { --ffsv-cols: 3; }
.jet-listing-grid__items.grid-col-desk-2 { --ffsv-cols: 2; }
.jet-listing-grid__items.grid-col-desk-1 { --ffsv-cols: 1; }
@media (max-width: 1024px) { .jet-listing-grid__items.grid-col-tablet-2 { --ffsv-cols: 2; } .jet-listing-grid__items.grid-col-tablet-1 { --ffsv-cols: 1; } }
@media (max-width: 767px) { .jet-listing-grid__items.grid-col-mobile-1 { --ffsv-cols: 1; } .jet-listing-grid__items.grid-col-mobile-2 { --ffsv-cols: 2; } }
.jet-listing-grid__item { width: auto !important; max-width: none !important; padding: 0 !important; display: flex; }
.jet-listing-grid__item > * { width: 100%; }
.jet-listing-grid__item .jet-listing-dynamic-field, .jet-listing-grid__item .wp-block-group { width: 100%; }
.jet-listing-not-found { padding: var(--sp-l); border: 3px dashed var(--ffsv-sand-dark); border-radius: var(--radius-box); text-align: center; color: var(--ffsv-muted); }

/* JetSmartFilters als Chips */
.filterbar { display: flex; flex-wrap: wrap; gap: var(--sp-s); align-items: center; justify-content: space-between; margin-bottom: var(--sp-m); }
.ffsv-chips fieldset, .ffsv-chips .jet-radio-list-wrapper fieldset { flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.ffsv-chips .jet-filter-row { margin: 0 !important; padding: 0 !important; }
.ffsv-chips .jet-radio-list__item, .ffsv-chips .jet-checkboxes-list__item { display: block; margin: 0; cursor: pointer; }
.ffsv-chips .jet-radio-list__input, .ffsv-chips .jet-checkboxes-list__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ffsv-chips .jet-radio-list__button, .ffsv-chips .jet-checkboxes-list__button { display: inline-flex; align-items: center; padding: .5em 1.1em; background: #fff; color: var(--ffsv-black); transition: background-color .15s, border-color .15s, color .15s; }
.ffsv-chips .jet-radio-list__decorator, .ffsv-chips .jet-checkboxes-list__decorator { display: none !important; }
.ffsv-chips .jet-radio-list__input:focus-visible + .jet-radio-list__button { outline: 3px solid var(--ffsv-red); outline-offset: 2px; }
.ffsv-chips .jet-radio-list__label { font: inherit; color: inherit; }
.ffsv-select select, .jet-select__control { padding: .5rem 2.2rem .5rem 1rem; font: 600 var(--fs-small)/1.2 var(--ffsv-font); background-color: #fff; color: var(--ffsv-black); }
.jet-filters-pagination { display: flex; gap: .4rem; justify-content: center; margin-top: var(--sp-l); flex-wrap: wrap; }
.jet-filters-pagination__item { list-style: none; }
.jet-filters-pagination__link { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-pill); font-weight: 700; border: 2px solid var(--ffsv-sand-dark); padding: 0 .9rem; cursor: pointer; background: #fff; }
.jet-filters-pagination__current .jet-filters-pagination__link { background: var(--ffsv-black); color: #fff; border-color: var(--ffsv-black); }
.jet-filter-label { font-weight: 700; font-size: var(--fs-small); margin-bottom: .4rem; }

/* JetFormBuilder an das Design anpassen */
.jet-form-builder { display: grid; }
.jet-form-builder-row { margin: 0 !important; padding: 0 !important; }
.jet-form-builder input:focus, .jet-form-builder select:focus, .jet-form-builder textarea:focus { outline: none; border-color: var(--ffsv-black); box-shadow: 0 0 0 4px rgb(218 0 33 / .15); }
.jet-form-builder__action-button, .jet-form-builder__submit { --_bg: var(--ffsv-red); display: inline-flex; align-items: center; justify-content: center; font: 700 var(--fs-btn)/1.1 var(--ffsv-font); color: #fff; background: var(--_bg); border: 0; border-radius: var(--radius-pill); cursor: pointer; }
.jet-form-builder__action-button:hover, .jet-form-builder__submit:hover { --_bg: var(--ffsv-red-dark); }
.jet-form-builder-file-upload__files { display: flex; flex-wrap: wrap; gap: .5rem; }
.jet-form-builder-file-upload__file { width: 96px; height: 96px; border-radius: var(--radius-s); overflow: hidden; position: relative; }
.jet-form-builder-messages-wrap .jet-form-builder-message { padding: var(--sp-s); border-radius: var(--radius-box); font-weight: 600; }
.jet-form-builder-message--success { background: #E7F6EC; color: #11592B; }
.jet-form-builder-message--error { background: var(--ffsv-rose); color: var(--ffsv-red-dark); }
.jet-form-builder .wp-block-heading { font-size: var(--fs-h5); margin: var(--sp-s) 0 0; padding-top: var(--sp-s); border-top: 3px solid var(--ffsv-sand); }
.jet-form-builder .wp-block-columns { gap: var(--sp-s); margin: 0; }
.jet-form-builder .wp-block-column > * { margin: 0; }
.wp-editor-wrap, .jet-form-builder .wysiwyg-field { border-radius: var(--radius-s); }

/* Hinweise */
.ffsv-alert { padding: var(--sp-s) var(--sp-m); border-radius: var(--radius-box); background: var(--ffsv-rose); color: var(--ffsv-red-dark); font-weight: 600; margin: 0 0 var(--sp-s); }
.ffsv-alert--ok { background: #E7F6EC; color: #11592B; }
.ffsv-alert--warn { background: #FFF1C2; color: #6B4200; }
.ffsv-note { padding: var(--sp-s) var(--sp-m); border-radius: var(--radius-box); background: var(--ffsv-sand); border-left: 4px solid var(--ffsv-red); margin-bottom: var(--sp-m); font-size: var(--fs-small); }

/* Anmeldung */
.login-form form { display: grid; gap: var(--sp-s); }
.login-form p { margin: 0; max-width: none; }
.login-form label { display: block; font-weight: 700; font-size: var(--fs-small); margin-bottom: .35rem; }
.login-form .login-remember label { display: inline-flex; gap: .5rem; align-items: center; font-weight: 400; }
.login-form input[type="submit"] { min-height: 52px; padding: .8em 2em; font: 700 var(--fs-btn)/1 var(--ffsv-font); color: #fff; background: var(--ffsv-red); border: 0; border-radius: var(--radius-pill); cursor: pointer; }
.login-form input[type="submit"]:hover { background: var(--ffsv-red-dark); }
.jet-form-builder-row { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: .35rem; width: 100%; }
.jet-form-builder-row > * { width: 100% !important; max-width: 100% !important; flex: none !important; }
.jet-form-builder__label { width: 100% !important; }
.jet-form-builder .wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.jet-form-builder .wp-block-column { min-width: 0; }
.wp-editor-container textarea, .jet-form-builder .wp-editor-area { min-height: 220px; }
.gallery-title { margin-top: var(--sp-m); }

img.media-rounded, .media-rounded img { width: 100%; height: auto; border-radius: var(--radius); }

/* Wartungsmodus */
.wartung-hinweis { background: #FFE500; color: var(--ffsv-black); text-align: center; padding: .55rem var(--gutter); font-weight: 700; font-size: var(--fs-small); display: flex; justify-content: center; align-items: center; gap: .5rem; flex-wrap: wrap; }
.wartung-hinweis a { color: var(--ffsv-red-dark); }
.wartung-page { background: var(--ffsv-sand); min-height: 100vh; display: flex; flex-direction: column; }
.wartung { flex: 1; display: grid; place-items: center; padding: var(--sp-xl) var(--gutter); }
.wartung__card { width: 100%; max-width: 760px; background: #fff; border: var(--border-box); border-radius: var(--radius-box); padding: var(--sp-l); display: grid; gap: var(--sp-xs); }
.wartung__logo { width: clamp(180px, 140px + 10vw, 260px); margin-bottom: var(--sp-s); }
.wartung h1 { font-size: var(--fs-h1); margin: 0; }
.wartung__text p { font-size: var(--fs-lead); line-height: 1.5; }
.wartung__bis { display: flex; gap: .5rem; align-items: center; color: var(--ffsv-muted); margin: 0; }
.wartung__notruf { margin-top: var(--sp-m); padding-top: var(--sp-m); border-top: 3px solid var(--ffsv-sand); }
.wartung-preview { background: var(--ffsv-black); color: #fff; padding: .6rem var(--gutter); text-align: center; font-size: var(--fs-small); }
.wartung-preview a { color: var(--ffsv-red-soft); }

/* Logo ohne Bild: Kurzname als Schriftzug */
.ffsv-logo__text { display: block; font: italic 900 clamp(1.15rem, 1rem + .6vw, 1.6rem)/1.05 var(--ffsv-font, "Roboto", sans-serif); color: var(--ffsv-black, #241D19); text-transform: uppercase; letter-spacing: -.01em; border-left: 6px solid var(--ffsv-red, #DA0021); padding-left: .5em; }
.ffsv-logo { text-decoration: none; }
