/* =========================================================
   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; }
  /* Logo oben, Text darunter (mobil) */
  .ffw-brand{ flex-direction:column; align-items:flex-start; gap:8px; }
  .ffw-brand__logo img, .custom-logo-link img{ height:48px; }
  .ffw-emergency{ width:100%; flex-wrap:wrap; }
  .ffw-emergency__cta{ width:100%; }
  .ffw-hero{ min-height: 380px; }
  .ffw-hero__inner{ padding-top: 54px; }
}

