/*
Theme Name: Enfold Child
Description: A <a href='http://codex.wordpress.org/Child_Themes'>Child Theme</a> for the Enfold Wordpress Theme. If you plan to do a lot of file modifications we recommend to use this Theme instead of the original Theme. Updating will be much easier then.
Version: 1.0
Author: Kriesi
Author URI: http://www.kriesi.at
Template: enfold
*/



/*Add your own styles here:*/

/* ==========================================================================
   FFW Beilstein – Startseite (Gegenentwurf)
   Ans Ende der style.css im Enfold-Child-Theme einfügen
   (alternativ: Enfold > Allgemeines Styling > Quick CSS).

   Alle Regeln gelten nur innerhalb von Abschnitten mit der Klasse
   .ffb-section. Andere Seiten der Website bleiben unverändert.

   Farben nach RAL, wie an den Fahrzeugen:
   RAL 3000 Feuerrot, RAL 7016 Anthrazitgrau, RAL 9005 Tiefschwarz
   ========================================================================== */

#top .ffb-section {
  --ffb-rot: #AF2B1E;            /* RAL 3000, nur Buttons, Linien, Markierungen */
  --ffb-rot-dunkel: #8E2217;     /* Hover */
  --ffb-anthrazit: #383E42;      /* RAL 7016, dunkle Bühnen */
  --ffb-anthrazit-2: #2F3437;    /* Karten auf Anthrazit */
  --ffb-schwarz: #0A0A0A;        /* RAL 9005, Footer */
  --ffb-hell: #F1F1EE;           /* heller Grund */
  --ffb-weiss: #FFFFFF;
  --ffb-text: #1F2326;
  --ffb-text-2: #555C61;         /* Nebentext auf hell, ca. 6:1 */
  --ffb-text-dunkel-2: #C9CDD0;  /* Nebentext auf dunkel, ca. 6,5:1 */
  --ffb-linie: #D9DBD8;
  --ffb-linie-dunkel: rgba(255, 255, 255, .18);

  --ffb-font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --ffb-font-text: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
  --ffb-abstand: clamp(48px, 3.5vw + 34px, 96px);
  --ffb-burg-hoehe: clamp(56px, 8vw, 120px);

  /* Bilder: Pfade hier anpassen */
  --ffb-hero-bild: url("/wp-content/uploads/ffb/hero-quer.webp");
  --ffb-hero-bild-mobil: url("/wp-content/uploads/ffb/hero-hoch.webp");

  position: relative;
  border: 0;
  background: var(--ffb-weiss);
  color: var(--ffb-text);
  font-family: var(--ffb-font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ---------- Enfold-Vorgaben zurücksetzen ---------- */
#top .ffb-section .container { max-width: 1280px; }
#top .ffb-section .content,
#top .ffb-section .entry-content-wrapper { padding-top: 0; padding-bottom: 0; }
#top .ffb-section .avia_codeblock_section,
#top .ffb-section .avia_codeblock { margin: 0; padding: 0; }
#top .ffb-section h1,
#top .ffb-section h2,
#top .ffb-section h3 {
  margin: 0;
  color: inherit;
  font-family: var(--ffb-font-head);
  letter-spacing: 0;
  text-transform: none;
}
#top .ffb-section p { margin: 0; }
#top .ffb-section a { color: inherit; }
#top .ffb-section ul,
#top .ffb-section ol { margin: 0; padding: 0; list-style: none; }
#top .ffb-section figure { margin: 0; }
#top .ffb-section img { display: block; width: 100%; height: auto; border-radius: 0; }
#top .ffb-section a:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

/* ---------- Bausteine ---------- */
#top .ffb-section .ffb-wrap { padding: var(--ffb-abstand) 0; }

#top .ffb-section .ffb-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: clamp(24px, 2.5vw, 40px);
}
#top .ffb-section .ffb-h2 {
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-weight: 700;
  line-height: 1.02;
}
#top .ffb-section .ffb-more {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--ffb-rot);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
#top .ffb-section .ffb-more:hover { text-decoration-thickness: 3px; }

#top .ffb-section .ffb-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
#top .ffb-section .ffb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 30px;
  border: 2px solid transparent;
  border-radius: 2px;
  font-family: var(--ffb-font-head);
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
#top .ffb-section .ffb-btn--primary { background: var(--ffb-rot); color: #fff; }
#top .ffb-section .ffb-btn--primary:hover { background: var(--ffb-rot-dunkel); }
#top .ffb-section .ffb-btn--ghost { border-color: #fff; color: #fff; }
#top .ffb-section .ffb-btn--ghost:hover { background: #fff; color: var(--ffb-schwarz); }

/* ---------- 1 Hero ---------- */
#top .ffb-hero {
  background: var(--ffb-schwarz) var(--ffb-hero-bild) center 40% / cover no-repeat;
  color: #fff;
}
#top .ffb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(10, 10, 10, .9) 0%,
    rgba(10, 10, 10, .6) 38%,
    rgba(10, 10, 10, .12) 72%,
    rgba(10, 10, 10, .45) 100%);
}
#top .ffb-hero .container { position: relative; z-index: 1; }
#top .ffb-hero .ffb-hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 88vh;
  min-height: 88svh;
  max-width: 62rem;
  padding: 160px 0 clamp(56px, 6vw, 96px);
}
#top .ffb-hero .ffb-hero__title { font-weight: 400; }
#top .ffb-hero .ffb-hero__kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-family: var(--ffb-font-text);
  font-size: clamp(1rem, .9rem + .4vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
}
#top .ffb-hero .ffb-hero__kicker::before {
  content: "";
  flex: none;
  width: 48px;
  height: 4px;
  background: var(--ffb-rot);
}
#top .ffb-hero .ffb-hero__claim {
  display: block;
  font-family: var(--ffb-font-head);
  font-size: clamp(3.4rem, 1.5rem + 7.2vw, 8.25rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.005em;
}
#top .ffb-hero .ffb-hero__claim span { display: block; }
#top .ffb-hero .ffb-buttons { margin-top: clamp(28px, 3vw, 44px); }

/* ---------- 2 Zahlenleiste ---------- */
#top .ffb-stats-section { background: var(--ffb-anthrazit); color: #fff; }
#top .ffb-stats-section .ffb-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(16px, 3vw, 48px);
  padding: clamp(36px, 4vw, 56px) 0;
}
#top .ffb-stats-section .ffb-stat { padding-top: 16px; border-top: 3px solid var(--ffb-rot); }
#top .ffb-stats-section .ffb-stat__num {
  display: block;
  font-family: var(--ffb-font-head);
  font-size: clamp(2.6rem, 1.8rem + 2.6vw, 4.25rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
#top .ffb-stats-section .ffb-stat__label {
  display: block;
  margin-top: 8px;
  color: var(--ffb-text-dunkel-2);
  font-size: .9375rem;
  line-height: 1.35;
}

/* ---------- 3 Einsätze + Termine ---------- */
#top .ffb-einsaetze { background: var(--ffb-hell); }
#top .ffb-einsaetze .ffb-split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
}
#top .ffb-section .ffb-incidents {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
#top .ffb-section .ffb-incident a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--ffb-linie);
  background: var(--ffb-weiss);
  text-decoration: none;
}
#top .ffb-section .ffb-incident a:hover { border-color: var(--ffb-anthrazit); }
#top .ffb-section .ffb-code {
  display: inline-block;
  min-width: 46px;
  padding: 5px 8px 3px;
  border-bottom: 3px solid var(--ffb-rot);
  background: var(--ffb-anthrazit);
  color: #fff;
  font-family: var(--ffb-font-head);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}
#top .ffb-section .ffb-incident .ffb-code { align-self: flex-start; margin-bottom: 12px; }
#top .ffb-section .ffb-incident__date,
#top .ffb-section .ffb-incident__place { color: var(--ffb-text-2); font-size: .9375rem; }
#top .ffb-section .ffb-incident__title {
  color: var(--ffb-text);
  font-family: var(--ffb-font-head);
  font-size: 1.4375rem;
  font-weight: 600;
  line-height: 1.12;
}
#top .ffb-section .ffb-incident__place { margin-top: auto; padding-top: 6px; }

#top .ffb-section .ffb-dates li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--ffb-linie);
}
#top .ffb-section .ffb-dates li:last-child { border-bottom: 1px solid var(--ffb-linie); }
#top .ffb-section .ffb-date__day {
  display: block;
  font-family: var(--ffb-font-head);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
#top .ffb-section .ffb-date__month { display: block; color: var(--ffb-text-2); font-size: .875rem; }
#top .ffb-section .ffb-date__title { display: block; font-weight: 600; line-height: 1.3; text-decoration: none; }
#top .ffb-section .ffb-date__title:hover { text-decoration: underline; text-decoration-color: var(--ffb-rot); }
#top .ffb-section .ffb-date__time { display: block; color: var(--ffb-text-2); font-size: .9375rem; }
#top .ffb-section .ffb-dates-ersatz {
  padding: 18px 20px;
  border-left: 3px solid var(--ffb-rot);
  background: var(--ffb-weiss);
}

/* ---------- 4 Aktuelles (blendet sich ohne Beiträge selbst aus) ---------- */
#top .ffb-news { background: var(--ffb-weiss); }
#top .ffb-news:not(:has(.ffb-block)) { display: none; }
#top .ffb-news .ffb-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
}
#top .ffb-news .ffb-post a { display: block; text-decoration: none; }
#top .ffb-news .ffb-post img,
#top .ffb-news .ffb-post__noimg {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--ffb-hell);
}
#top .ffb-news .ffb-post__date { display: block; margin-top: 14px; color: var(--ffb-text-2); font-size: .9375rem; }
#top .ffb-news .ffb-post__title {
  display: block;
  margin-top: 4px;
  font-family: var(--ffb-font-head);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.15;
}
#top .ffb-news .ffb-post a:hover .ffb-post__title {
  text-decoration: underline;
  text-decoration-color: var(--ffb-rot);
  text-underline-offset: 4px;
}

/* ---------- 5 Mehr als ein Ehrenamt ---------- */
#top .ffb-ehrenamt { background: var(--ffb-anthrazit); color: #fff; }
#top .ffb-ehrenamt .ffb-triad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
}
#top .ffb-ehrenamt .ffb-triad img { aspect-ratio: 3 / 4; object-fit: cover; }
#top .ffb-ehrenamt .ffb-triad figcaption {
  margin-top: 16px;
  font-family: var(--ffb-font-head);
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
}

/* ---------- 6 Abteilungen ---------- */
#top .ffb-abteilungen { background: var(--ffb-hell); }
#top .ffb-abteilungen .ffb-depts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
#top .ffb-abteilungen .ffb-dept img { aspect-ratio: 4 / 5; object-fit: cover; }
#top .ffb-abteilungen .ffb-dept h3 {
  margin-top: 16px;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
}
#top .ffb-abteilungen .ffb-dept p { margin-top: 4px; color: var(--ffb-text-2); font-size: .9375rem; line-height: 1.4; }

/* ---------- 7 Mitmachen mit Burg-Silhouette ----------
   Die Burg ist ein Platzhalter. Ersetzen durch die Silhouette aus dem Logo:
   SVG-Pfad hier einsetzen, Füllfarbe %23383E42 (= Anthrazit) beibehalten. */
#top .ffb-mitmachen { background: var(--ffb-anthrazit); color: #fff; }
#top .ffb-mitmachen::before {
  content: "";
  display: block;
  height: var(--ffb-burg-hoehe);
  background: var(--ffb-hell) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2400 120'%3E%3Cpath fill='%23383E42' d='M0 120v-4c500-2 800-36 1120-40V52h20v-6h8v6h18V14h6V8h8v6h8V8h8v6h6v38h48V38l22-14 22 14v22h26v16c180 4 480 38 1080 40v4z'/%3E%3C/svg%3E") center bottom / auto 100% no-repeat;
}
#top .ffb-mitmachen .ffb-join {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  padding-top: clamp(24px, 3vw, 48px);
}
#top .ffb-mitmachen .ffb-join__lead {
  max-width: 36rem;
  margin-top: 16px;
  color: var(--ffb-text-dunkel-2);
  font-size: 1.1875rem;
}
#top .ffb-mitmachen .ffb-steps { counter-reset: ffb-schritt; margin-top: 32px; }
#top .ffb-mitmachen .ffb-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--ffb-linie-dunkel);
  counter-increment: ffb-schritt;
}
#top .ffb-mitmachen .ffb-steps li::before {
  content: counter(ffb-schritt);
  align-self: start;
  justify-self: start;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--ffb-rot);
  font-family: var(--ffb-font-head);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
#top .ffb-mitmachen .ffb-steps strong {
  display: block;
  font-family: var(--ffb-font-head);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.15;
}
#top .ffb-mitmachen .ffb-steps span { display: block; margin-top: 2px; color: var(--ffb-text-dunkel-2); }
#top .ffb-mitmachen .ffb-contact { padding: 24px; background: var(--ffb-anthrazit-2); }
#top .ffb-mitmachen .ffb-contact img { max-width: 240px; aspect-ratio: 1 / 1; object-fit: cover; }
#top .ffb-mitmachen .ffb-contact__role { margin-top: 20px; color: var(--ffb-text-dunkel-2); font-size: .9375rem; }
#top .ffb-mitmachen .ffb-contact__name { font-family: var(--ffb-font-head); font-size: 1.75rem; font-weight: 600; line-height: 1.15; }
#top .ffb-mitmachen .ffb-contact .ffb-btn { margin-top: 20px; }

/* ---------- 8 Footer ---------- */
#top .ffb-footer { background: var(--ffb-schwarz); color: #fff; }
#top .ffb-footer .ffb-footer__inner { padding-bottom: 0; }
#top .ffb-footer .ffb-notruf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ffb-linie-dunkel);
}
#top .ffb-footer .ffb-notruf__label { font-family: var(--ffb-font-head); font-size: 1.5rem; font-weight: 600; }
#top .ffb-footer .ffb-notruf__nr {
  font-family: var(--ffb-font-head);
  font-size: clamp(3rem, 2rem + 3vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: underline;
  text-decoration-color: var(--ffb-rot);
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
}
#top .ffb-footer .ffb-notruf__hint { color: var(--ffb-text-dunkel-2); }
#top .ffb-footer .ffb-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding: 32px 0;
}
#top .ffb-footer h2 { margin-bottom: 10px; font-size: 1.25rem; font-weight: 600; }
#top .ffb-footer .ffb-footer__cols p,
#top .ffb-footer .ffb-footer__cols li { color: var(--ffb-text-dunkel-2); font-size: .9375rem; line-height: 1.7; }
#top .ffb-footer .ffb-footer__cols a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .35);
  text-underline-offset: 3px;
}
#top .ffb-footer .ffb-footer__cols a:hover { text-decoration-color: var(--ffb-rot); }
#top .ffb-footer .ffb-incidents-short a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
#top .ffb-footer .ffb-incidents-short li + li { margin-top: 6px; }
#top .ffb-footer .ffb-incidents-short .ffb-code { min-width: 40px; font-size: 1rem; border-bottom-width: 2px; }
#top .ffb-footer .ffb-footer__legal {
  padding: 20px 0 32px;
  border-top: 1px solid var(--ffb-linie-dunkel);
  color: #8E959A;
  font-size: .875rem;
}

/* ---------- Tablet (Enfold: bis 989 px) ---------- */
@media (max-width: 989px) {
  #top .ffb-einsaetze .ffb-split,
  #top .ffb-mitmachen .ffb-join { grid-template-columns: 1fr; }
  #top .ffb-abteilungen .ffb-depts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #top .ffb-footer .ffb-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Mobil (Enfold: bis 767 px) ---------- */
@media (max-width: 767px) {
  #top .ffb-hero { background-image: var(--ffb-hero-bild-mobil); background-position: center; }
  #top .ffb-hero .ffb-hero__inner { min-height: 80vh; min-height: 80svh; padding-top: 120px; }
  #top .ffb-hero .ffb-buttons .ffb-btn { flex: 1 1 100%; }

  #top .ffb-stats-section .ffb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }

  #top .ffb-section .ffb-incidents { grid-template-columns: 1fr; gap: 10px; }
  #top .ffb-section .ffb-incident a {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    row-gap: 2px;
    padding: 14px 16px;
  }
  #top .ffb-section .ffb-incident .ffb-code { grid-row: 1 / span 3; margin-bottom: 0; }
  #top .ffb-section .ffb-incident__place { padding-top: 0; }

  #top .ffb-news .ffb-posts { grid-template-columns: 1fr; gap: 0; }
  #top .ffb-news .ffb-post a {
    display: grid;
    grid-template-columns: 96px 1fr;
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 2px 14px;
    padding: 14px 0;
    border-top: 1px solid var(--ffb-linie);
  }
  #top .ffb-news .ffb-post img,
  #top .ffb-news .ffb-post__noimg { aspect-ratio: 1 / 1; grid-row: 1 / span 2; }
  #top .ffb-news .ffb-post__date { margin-top: 0; }
  #top .ffb-news .ffb-post__title { font-size: 1.25rem; }

  #top .ffb-ehrenamt .ffb-triad { grid-template-columns: 1fr; gap: 28px; }
  #top .ffb-ehrenamt .ffb-triad img { aspect-ratio: 3 / 2; }

  /* Abteilungen: wischbare Reihe */
  #top .ffb-abteilungen .ffb-depts {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 72%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }
  #top .ffb-abteilungen .ffb-dept { scroll-snap-align: start; }

  #top .ffb-mitmachen .ffb-contact img { max-width: 160px; }
  #top .ffb-section .ffb-contact .ffb-btn { width: 100%; }

  #top .ffb-footer .ffb-footer__cols { grid-template-columns: 1fr; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  #top .ffb-section * { transition: none !important; scroll-behavior: auto !important; }
}