/* =========================================================
   FFW Westoverledingen – Theme Styles (WOW + ruhig)
   ========================================================= */

:root{
  --ffw-bg: #ffffff;
  --ffw-text: #111;
  --ffw-muted: #e8e8e8;
  --ffw-border: rgba(0,0,0,.12);
  --ffw-shadow: rgba(0,0,0,.10);
  --ffw-red: #b30000;
  --ffw-red-dark: #7a0000;
  --ffw-max: 1120px;
}

*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0;
  background:var(--ffw-bg);
  color:var(--ffw-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height:1.65;
}

.ffw-wrap{
  max-width:var(--ffw-max);
  margin:0 auto;
  padding: 22px 18px;
}

/* Header (Rot, wow, aber sauber) */
.ffw-header{
  position:relative;
  background: linear-gradient(90deg, #c00000 0%, #a30000 55%, #6f0000 100%);
  color:#fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}

/* dezente Diagonal-Struktur wie im Screenshot */
.ffw-header::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.10) 0px,
      rgba(255,255,255,.10) 18px,
      rgba(0,0,0,.10) 18px,
      rgba(0,0,0,.10) 38px
    );
  opacity:.28;
  mix-blend-mode: overlay;
}

.ffw-top, .ffw-nav{ position:relative; z-index:1; }

.ffw-top__inner{
  max-width:var(--ffw-max);
  margin:0 auto;
  padding: 14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.ffw-brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  color:inherit;
}

.ffw-brand__logo img,
.ffw-brand__logo .custom-logo{
  height:56px;
  width:auto;
  display:block;
}

.custom-logo-link{ display:block; }
.custom-logo-link img{ height:56px; width:auto; }

.ffw-brand__text{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.ffw-brand__title{
  font-weight:800;
  letter-spacing:.2px;
  font-size: 1.05rem;
  line-height:1.1;
}

.ffw-brand__subtitle{
  font-size:.92rem;
  opacity:.92;
  line-height:1.2;
}

/* Notruf Box */
.ffw-emergency{
  display:flex;
  align-items:center;
  gap:10px;
}
.ffw-emergency__item{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 9px 10px;
  border-radius: 6px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(0,0,0,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.ffw-emergency__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
  opacity:.95;
}
.ffw-emergency__icon svg{
  display:block;
}
.ffw-emergency__label{
  font-size:.75rem;
  letter-spacing:.08em;
  opacity:.9;
}
.ffw-emergency__value{
  font-size:1.35rem;
  font-weight:900;
}

/* Button „IM NOTFALL – 110 POLIZEI“ */
.ffw-emergency__cta{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:2px;
  text-decoration:none;
  color:#fff;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.35);
  background: linear-gradient(180deg, #2f6fbf 0%, #1c4f93 100%);
  box-shadow:
    0 8px 18px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.18);
  min-width: 140px;
  text-align:center;
}
.ffw-emergency__ctaTop{
  font-size:.70rem;
  letter-spacing:.08em;
  opacity:.95;
}
.ffw-emergency__ctaBottom{
  font-size:.88rem;
  line-height:1.05;
}
.ffw-emergency__ctaBottom strong{
  font-size:1.15rem;
}
.ffw-emergency__cta:hover,
.ffw-emergency__cta:focus-visible{
  outline:none;
  transform: translateY(-1px);
  filter: brightness(1.03);
}

/* Navigation */
.ffw-nav{
  border-top: 1px solid rgba(0,0,0,.25);
  background: #2b2b2b;
}
.ffw-nav .menu{
  max-width:var(--ffw-max);
  margin:0 auto;
  padding: 4px 12px;
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap: 4px;
}
.ffw-nav .menu > li{
  position:relative;
}
.ffw-nav .menu a{
  color:#fff;
  text-decoration:none;
  display:inline-block;
  padding: 8px 12px;
  border-radius: 3px;
  transition: background .15s ease, transform .15s ease;
}
.ffw-nav .menu a:hover,
.ffw-nav .menu a:focus-visible{
  outline:none;
  background: rgba(255,255,255,.10);
}

/* Dropdowns (Unterpunkte) */
.ffw-nav .menu .sub-menu{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  margin:0;
  padding: 6px;
  list-style:none;
  min-width: 220px;
  background:#2b2b2b;
  border: 1px solid rgba(0,0,0,.25);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  z-index: 10;
}
.ffw-nav .menu .sub-menu a{
  display:block;
  padding: 8px 10px;
  white-space: nowrap;
}
.ffw-nav .menu li:hover > .sub-menu,
.ffw-nav .menu li:focus-within > .sub-menu{
  display:block;
}

/* Hero */
.ffw-hero{
  position:relative;
  min-height: 440px;
  background-color:#111;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--ffw-border);
}
.ffw-hero__overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 500px at 20% 40%, rgba(0,0,0,.22), rgba(0,0,0,.70)),
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.62));
}
.ffw-hero__inner{
  position:relative;
  max-width:var(--ffw-max);
  margin:0 auto;
  padding: 72px 18px 64px 18px;
  color:#fff;
}
.ffw-hero__title{
  margin:0 0 10px 0;
  font-size: clamp(2.0rem, 4vw, 3.1rem);
  line-height:1.05;
  font-weight: 900;
  letter-spacing: -.02em;
  text-shadow: 0 10px 40px rgba(0,0,0,.45);
}
.ffw-hero__sub{
  margin:0 0 22px 0;
  font-size: 1.08rem;
  max-width: 56ch;
  opacity:.96;
}

/* Buttons */
.ffw-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration:none;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.ffw-btn--primary{
  background: var(--ffw-red);
  color:#fff;
  box-shadow: 0 10px 22px rgba(179,0,0,.22);
}
.ffw-btn--primary:hover,
.ffw-btn--primary:focus-visible{
  outline:none;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(179,0,0,.30);
}
.ffw-btn--ghost{
  background: rgba(255,255,255,.10);
  color:#fff;
  border-color: rgba(255,255,255,.22);
}
.ffw-btn--ghost:hover,
.ffw-btn--ghost:focus-visible{
  outline:none;
  transform: translateY(-1px);
  background: rgba(255,255,255,.16);
}

.ffw-hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* Content */
.ffw-content{ padding-top: 8px; }
.ffw-article .ffw-title{ margin: 8px 0 10px; }
.entry-content > *:first-child{ margin-top: 0; }

/* CTA */
.ffw-cta{
  position:relative;
  margin-top: 26px;
  min-height: 220px;
  background-color:#111;
  background-size: cover;
  background-position: center;
  border-top: 1px solid var(--ffw-border);
}
.ffw-cta__overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.70), rgba(0,0,0,.25));
}
.ffw-cta__inner{
  position:relative;
  max-width:var(--ffw-max);
  margin:0 auto;
  padding: 46px 18px;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.ffw-cta__title{
  margin:0;
  font-size: clamp(1.4rem, 2.6vw, 2.0rem);
  font-weight: 900;
}

/* Footer */
.ffw-footer{
  background:#fff;
  border-top: 1px solid var(--ffw-border);
}
.ffw-footer__inner{
  max-width:var(--ffw-max);
  margin:0 auto;
  padding: 18px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  color:#333;
}
.ffw-footer .menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.ffw-footer .menu a{
  color:#333;
  text-decoration:none;
}
.ffw-footer .menu a:hover{ text-decoration:underline; }

/* =========================================================
   Ortsfeuerwehr-Kacheln – FINAL + MOBILE + FOKUS
   ========================================================= */

.ofw-kachel {
  background: #f6f6f6;
  border-radius: 10px;
  min-height: 140px;
  overflow: hidden;

  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);

  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    transform .15s ease;
}

.ofw-kachel:hover {
  border-color: #b30000;
  box-shadow: 0 8px 22px rgba(0,0,0,.14);
}

.ofw-kachel h2,
.ofw-kachel h3,
.ofw-kachel h4 {
  margin: 0;
  height: 100%;
}

.ofw-kachel h2 a,
.ofw-kachel h3 a,
.ofw-kachel h4 a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;
  min-height: 140px;

  padding: 20px;
  box-sizing: border-box;

  text-align: center;
  font-weight: 600;
  line-height: 1.25;

  color: inherit;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;

  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
}

.ofw-kachel a,
.ofw-kachel a:hover,
.ofw-kachel a:focus,
.ofw-kachel a:active,
.ofw-kachel a:focus-visible {
  text-decoration: none !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

.ofw-kachel:hover a,
.ofw-kachel:focus-within a {
  color: #b30000;
}

.ofw-kachel:focus-within {
  border-color: #b30000;
  box-shadow: 0 8px 22px rgba(0,0,0,.14);
}

@media (hover: none) and (pointer: coarse) {
  .ofw-kachel:hover {
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
    transform: none;
  }
}

/* Mobile header tuning */
@media (max-width: 720px){
  .ffw-top__inner{ flex-direction:column; align-items:flex-start; }
  .ffw-brand__logo img, .custom-logo-link img{ height:48px; }
  /* Hero: auf Mobil einen besseren Bildausschnitt (ohne Ränder) */
  .ffw-hero{
    min-height: 78vh;
    background-size: cover !important;
    background-position: center 75% !important;
  }
  .ffw-hero__inner{ padding-top: 54px; }
}

/* =========================================================
   FFW Westoverledingen – Fix: riesiger Scroll-/Pfeil-Button
   =========================================================
   Auf einzelnen Installationen wurde ein SVG-Pfeil ohne feste
   Größenangabe unten auf der Seite riesig dargestellt. Dieser
   Block begrenzt Theme-Icons sauber und blendet typische
   Scroll-to-top-Elemente aus, damit unten kein blauer Riesenpfeil
   mehr erscheint.
*/

/* Theme-eigene Inline-SVGs bekommen feste, kontrollierte Größen. */
.ffw-emergency__icon svg{
  width:16px !important;
  height:16px !important;
}

.ffw-appnav__item svg,
.ffw-sheet__close svg,
.ffw-subtoggle svg{
  max-width:24px !important;
  max-height:24px !important;
  flex:0 0 auto;
}

/* Typische Scroll-to-top-/Back-to-top-Ausgaben verschiedener Themes/Plugins ausblenden. */
.scroll-to-top,
.scroll-top,
.scrolltop,
.back-to-top,
.backtotop,
.to-top,
.go-top,
#scroll-top,
#scroll-to-top,
#back-to-top,
#backtotop,
button[aria-label*="top" i],
a[aria-label*="top" i],
a[href="#top"],
a[href="#page"],
a[href="#masthead"]{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}

/* Sicherheitsnetz: ein direkt in den Body gerutschtes SVG darf nie riesig werden. */
body > svg,
body > a > svg,
body > button > svg{
  width:32px !important;
  height:32px !important;
  max-width:32px !important;
  max-height:32px !important;
}


/* =========================================================
   Single Posts: Berichte & Veranstaltungen - automatischer Zurueck-Button
   ========================================================= */
.ffw-single-content{
  background:#f4f5f7;
  padding: 44px 18px 76px;
}
.ffw-single-article{
  max-width: 920px;
  margin: 0 auto;
  background:#fff;
  border-radius: 30px;
  padding: 38px;
  box-shadow: 0 24px 70px rgba(0,0,0,.10);
}
.ffw-back-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin: 0 0 26px;
  padding: 11px 17px;
  border-radius: 999px;
  background:#fff;
  border: 1px solid rgba(196,0,0,.18);
  color:#c40000;
  font-weight:900;
  line-height:1.2;
  text-decoration:none;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.ffw-back-btn:hover,
.ffw-back-btn:focus-visible{
  background:#c40000;
  color:#fff;
  outline:none;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(196,0,0,.22);
}
.ffw-back-btn--bottom{ margin: 34px 0 0; }
.ffw-single-header{ margin: 0 0 24px; }
.ffw-single-title{
  margin:0 0 10px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .98;
  font-weight: 950;
  letter-spacing: -0.05em;
}
.ffw-single-meta{
  color:#c40000;
  font-size:14px;
  font-weight:900;
}
.ffw-single-featured{
  margin: 0 0 30px;
  border-radius: 24px;
  overflow:hidden;
  background:#f1f2f4;
}
.ffw-single-featured img{
  display:block;
  width:100%;
  height:auto;
}
.ffw-single-entry{
  font-size:18px;
  line-height:1.78;
  color:#222;
}
.ffw-single-entry p{ margin: 0 0 1.15em; }
.ffw-single-entry h2,
.ffw-single-entry h3{
  margin: 1.45em 0 .55em;
  line-height:1.15;
  letter-spacing:-0.025em;
}
@media (max-width: 700px){
  .ffw-single-content{ padding: 28px 14px 58px; }
  .ffw-single-article{ border-radius: 22px; padding: 22px 18px; }
  .ffw-single-title{ font-size: clamp(30px, 9vw, 42px); }
  .ffw-single-entry{ font-size:16px; line-height:1.72; }
  .ffw-single-featured{ border-radius: 18px; }
}

/* =========================================================
   Berichte & Veranstaltungen: Jahresfilter + sauberer Feed
   ========================================================= */
.ffw-berichte-page-body .entry-content > .wp-block-latest-posts,
.ffw-berichte-page-body .entry-content > .wp-block-query,
.ffw-berichte-page-body .entry-content .ffw-berichte-feed,
.ffw-berichte-page-body .entry-content .ffw-feed-posts{
  display:none !important;
}
.ffw-berichte-archive{max-width:900px;margin:38px auto 92px;padding:0 18px;}
.ffw-year-filter{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:0 0 34px;}
.ffw-year-filter__btn{display:inline-flex;align-items:center;justify-content:center;min-width:92px;padding:12px 20px;border-radius:999px;background:#fff;color:#111;text-decoration:none;font-weight:950;box-shadow:0 12px 32px rgba(0,0,0,.08);border:1px solid rgba(0,0,0,.06);transition:transform .2s ease,background .2s ease,color .2s ease,box-shadow .2s ease;}
.ffw-year-filter__btn:hover,.ffw-year-filter__btn:focus-visible,.ffw-year-filter__btn.is-active{background:#c40000;color:#fff;outline:none;transform:translateY(-2px);box-shadow:0 18px 42px rgba(196,0,0,.20);}
.ffw-berichte-feed-auto{display:flex;flex-direction:column;gap:34px;}
.ffw-bericht-card{background:#fff;border-radius:30px;overflow:hidden;box-shadow:0 24px 70px rgba(0,0,0,.10);transition:transform .25s ease,box-shadow .25s ease;}
.ffw-bericht-card:hover{transform:translateY(-5px);box-shadow:0 30px 75px rgba(0,0,0,.16);}
.ffw-bericht-image{display:block;background:#f1f2f4;text-decoration:none;}
.ffw-bericht-image img{display:block;width:100%;height:auto;}
.ffw-bericht-body{padding:28px 34px 34px;}
.ffw-bericht-date{margin:0 0 9px;color:#c40000;font-size:14px;font-weight:950;}
.ffw-bericht-title{margin:0 0 12px;font-size:clamp(26px,3vw,38px);line-height:1.08;font-weight:950;letter-spacing:-0.04em;}
.ffw-bericht-title a{color:#111;text-decoration:none;}
.ffw-bericht-title a:hover{color:#c40000;}
.ffw-bericht-excerpt{margin:0 0 22px;font-size:17px;line-height:1.7;color:#555;}
.ffw-bericht-more{display:inline-flex;align-items:center;padding:11px 17px;border-radius:999px;background:#c40000;color:#fff;text-decoration:none;font-weight:900;box-shadow:0 12px 28px rgba(196,0,0,.18);}
.ffw-bericht-more:hover,.ffw-bericht-more:focus-visible{background:#970000;color:#fff;outline:none;}
.ffw-berichte-empty{background:#fff;border-radius:28px;padding:30px;box-shadow:0 20px 60px rgba(0,0,0,.08);color:#555;font-weight:700;}
@media (max-width:700px){.ffw-berichte-archive{margin:30px auto 74px;padding:0 14px;}.ffw-year-filter{justify-content:flex-start;gap:10px;margin-bottom:26px;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px;}.ffw-year-filter__btn{min-width:82px;padding:10px 16px;flex:0 0 auto;}.ffw-berichte-feed-auto{gap:26px;}.ffw-bericht-card{border-radius:22px;}.ffw-bericht-body{padding:22px 20px 26px;}.ffw-bericht-excerpt{font-size:16px;}}

/* =========================================================
   v1.2.1 – Startseite Hero mobil schlanker
   ========================================================= */
@media (max-width: 720px){
  body.home .ffw-hero,
  body.front-page .ffw-hero,
  .ffw-hero{
    min-height: 430px !important;
    height: auto !important;
    margin: 14px 14px 18px !important;
    border-radius: 0 0 22px 22px;
    overflow: hidden;
    background-size: cover !important;
    background-position: center center !important;
  }

  body.home .ffw-hero__overlay,
  body.front-page .ffw-hero__overlay,
  .ffw-hero__overlay{
    background:
      linear-gradient(180deg, rgba(0,0,0,.30), rgba(0,0,0,.54)),
      radial-gradient(900px 430px at 22% 28%, rgba(0,0,0,.12), rgba(0,0,0,.55)) !important;
  }

  body.home .ffw-hero__inner,
  body.front-page .ffw-hero__inner,
  .ffw-hero__inner{
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px 26px 36px !important;
    box-sizing: border-box;
  }

  body.home .ffw-hero__title,
  body.front-page .ffw-hero__title,
  .ffw-hero__title{
    font-size: clamp(2.05rem, 10vw, 3.05rem) !important;
    line-height: 1.08 !important;
    margin-bottom: 16px !important;
  }

  body.home .ffw-hero__sub,
  body.front-page .ffw-hero__sub,
  .ffw-hero__sub{
    font-size: 1.24rem !important;
    line-height: 1.45 !important;
    margin-bottom: 28px !important;
    max-width: 100% !important;
  }

  body.home .ffw-hero__actions,
  body.front-page .ffw-hero__actions,
  .ffw-hero__actions{
    gap: 10px !important;
  }

  body.home .ffw-hero .ffw-btn,
  body.front-page .ffw-hero .ffw-btn,
  .ffw-hero .ffw-btn{
    padding: 14px 22px !important;
    border-radius: 16px !important;
    font-size: 1.05rem !important;
  }
}

@media (max-width: 390px){
  body.home .ffw-hero,
  body.front-page .ffw-hero,
  .ffw-hero{
    min-height: 390px !important;
  }

  body.home .ffw-hero__inner,
  body.front-page .ffw-hero__inner,
  .ffw-hero__inner{
    min-height: 390px;
    padding: 28px 22px 32px !important;
  }

  body.home .ffw-hero__title,
  body.front-page .ffw-hero__title,
  .ffw-hero__title{
    font-size: clamp(1.85rem, 9vw, 2.55rem) !important;
  }

  body.home .ffw-hero__sub,
  body.front-page .ffw-hero__sub,
  .ffw-hero__sub{
    font-size: 1.08rem !important;
  }
}
