/* =========================================================
   FFW Westoverledingen – Mobile Navigation sauber/rot
   Desktop bleibt unverändert.
   ========================================================= */

.ffw-appnav,
.ffw-sheet-backdrop,
.ffw-sheet{ display:none; }

@media (max-width: 860px){
  :root{
    --ffw-safe-bottom: env(safe-area-inset-bottom, 0px);
    --ffw-safe-top: env(safe-area-inset-top, 0px);
    --ffw-appnav-h: 72px;
  }

  html, body{
    background:#ffffff !important;
    color:#111111 !important;
  }

  .ffw-wrap{
    max-width:1120px;
    margin:0 auto;
    padding: 16px 14px calc(var(--ffw-appnav-h) + var(--ffw-safe-bottom) + 24px) !important;
    background:#ffffff !important;
  }

  .ffw-header{
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #c00000 0%, #a30000 58%, #6f0000 100%) !important;
    color:#ffffff !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.18) !important;
  }
  .ffw-header::before{ opacity:.18; }

  .ffw-top__inner{
    padding: calc(8px + var(--ffw-safe-top)) 14px 8px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap:10px !important;
  }
  .ffw-brand__text{ display:none !important; }
  .ffw-brand__logo img,
  .ffw-brand__logo .custom-logo,
  .custom-logo-link img{ height:40px !important; width:auto !important; }

  .ffw-nav{ display:none !important; }

  .ffw-content{
    background:#ffffff !important;
    color:#111111 !important;
    padding-top: 10px !important;
  }

  .ffw-article,
  .entry-content,
  .wp-block-post-content{
    color:#111111 !important;
  }
  .entry-content a{ color:#b30000; }

  .ffw-footer{
    background:#ffffff !important;
    color:#333333 !important;
    padding-bottom: calc(var(--ffw-appnav-h) + var(--ffw-safe-bottom) + 10px);
  }
  .ffw-footer .menu a{ color:#333333 !important; }

  .ffw-appnav{ display:block; }
  .ffw-sheet-backdrop,
  .ffw-sheet{ display:block; }

  .ffw-appnav{
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 80;
    padding: 9px 10px calc(9px + var(--ffw-safe-bottom));
    background: rgba(255,255,255,.96);
    border-top: 1px solid rgba(0,0,0,.10);
    box-shadow: 0 -8px 28px rgba(0,0,0,.16);
  }
  .ffw-appnav__inner{
    display:flex;
    gap:7px;
    align-items:center;
    justify-content:space-between;
    border-radius:20px;
    padding:7px;
    background:#ffffff;
    border:1px solid rgba(179,0,0,.18);
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
  }
  .ffw-appnav__item{
    flex:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    min-height:56px;
    padding:8px 6px;
    border-radius:15px;
    color:#333333;
    text-decoration:none;
    font-size:11px;
    font-weight:800;
    line-height:1.15;
    -webkit-tap-highlight-color:transparent;
  }
  .ffw-appnav__item svg{ width:22px; height:22px; }
  .ffw-appnav__item.is-active,
  .ffw-appnav__item:active{
    background:#b30000;
    color:#ffffff;
  }

  .ffw-sheet-backdrop{
    position:fixed;
    inset:0;
    z-index:90;
    background:rgba(0,0,0,.48);
    opacity:0;
    pointer-events:none;
    transition:opacity .18s ease;
  }
  .ffw-sheet{
    position:fixed;
    left:0; right:0; bottom:0;
    z-index:100;
    transform:translateY(110%);
    transition:transform .22s ease;
    padding:10px 12px calc(12px + var(--ffw-safe-bottom));
  }
  .ffw-sheet__panel{
    background:#ffffff;
    color:#111111;
    border-radius:24px 24px 18px 18px;
    overflow:hidden;
    box-shadow:0 18px 60px rgba(0,0,0,.28);
    border:1px solid rgba(0,0,0,.10);
  }
  .ffw-sheet__grabber{
    width:46px;height:5px;border-radius:99px;background:rgba(0,0,0,.18);margin:10px auto 6px;
  }
  .ffw-sheet__head{
    display:flex;align-items:center;justify-content:space-between;gap:10px;
    padding:8px 14px 10px;border-bottom:1px solid rgba(0,0,0,.08);
  }
  .ffw-sheet__title{font-size:16px;font-weight:900;color:#111;}
  .ffw-sheet__close{
    width:42px;height:42px;border-radius:14px;display:grid;place-items:center;
    background:#b30000;border:0;color:#fff;cursor:pointer;
  }
  .ffw-sheet__close svg{width:20px;height:20px;}
  .ffw-sheet__body{padding:12px 14px 14px;}
  .ffw-sheet-menu,.ffw-sheet-menu .sub-menu{list-style:none;margin:0;padding:0;}
  .ffw-sheet-menu > li{border-radius:16px;background:#f7f7f7;border:1px solid rgba(0,0,0,.08);margin-bottom:10px;overflow:hidden;}
  .ffw-sheet-menu a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 12px;color:#111;text-decoration:none;font-weight:800;font-size:14px;}
  .ffw-sheet-menu .sub-menu{display:none;padding:0 10px 10px;}
  .ffw-sheet-menu .sub-menu li{border-radius:14px;background:#fff;border:1px solid rgba(0,0,0,.08);margin-top:8px;overflow:hidden;}
  .ffw-sheet-menu .sub-menu a{font-weight:700;font-size:13px;color:#333;}
  .ffw-subtoggle{border:0;background:#b30000;color:#fff;border-radius:12px;width:38px;height:34px;display:grid;place-items:center;cursor:pointer;}
  .ffw-subtoggle svg{width:18px;height:18px;}
  .ffw-menu-open .ffw-sheet-backdrop{opacity:1;pointer-events:auto;}
  .ffw-menu-open .ffw-sheet{transform:translateY(0);}

  body.single-post .ffw-single-content{ background:#ffffff !important; padding:20px 0 34px !important; }
  body.single-post .ffw-single-article{
    width:100% !important;max-width:100% !important;margin:0 auto !important;
    padding:22px 18px 28px !important;border-radius:22px !important;
    background:#ffffff !important;color:#111111 !important;box-shadow:0 16px 45px rgba(0,0,0,.10) !important;
  }
  body.single-post .ffw-single-title{color:#111 !important;font-size:clamp(30px,9vw,42px) !important;line-height:1.04 !important;letter-spacing:-.035em !important;}
  body.single-post .ffw-single-entry, body.single-post .entry-content{background:transparent !important;border:0 !important;color:#222 !important;font-size:17px !important;line-height:1.72 !important;padding:0 !important;}
  body.single-post .ffw-single-entry p{color:#222 !important;}
}


/* =========================================================
   v1.2.2 – Startseiten-Hero mobil hart korrigiert
   Diese Datei wird nach base.css geladen und überschreibt deshalb sicher.
   ========================================================= */
@media (max-width: 860px){
  body.home .ffw-hero,
  body.front-page .ffw-hero,
  .ffw-hero{
    min-height: 0 !important;
    height: 360px !important;
    max-height: 360px !important;
    margin: 14px 14px 18px !important;
    border-radius: 0 0 22px 22px !important;
    overflow: hidden !important;
    background-size: cover !important;
    background-position: center 62% !important;
  }

  body.home .ffw-hero__inner,
  body.front-page .ffw-hero__inner,
  .ffw-hero__inner{
    min-height: 0 !important;
    height: 360px !important;
    max-height: 360px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 28px 24px 30px !important;
    box-sizing: border-box !important;
  }

  body.home .ffw-hero__title,
  body.front-page .ffw-hero__title,
  .ffw-hero__title{
    font-size: clamp(2rem, 8.2vw, 2.65rem) !important;
    line-height: 1.06 !important;
    margin: 0 0 14px !important;
  }

  body.home .ffw-hero__sub,
  body.front-page .ffw-hero__sub,
  .ffw-hero__sub{
    font-size: 1.08rem !important;
    line-height: 1.42 !important;
    margin: 0 0 22px !important;
    max-width: 100% !important;
  }

  body.home .ffw-hero .ffw-btn,
  body.front-page .ffw-hero .ffw-btn,
  .ffw-hero .ffw-btn{
    padding: 12px 18px !important;
    border-radius: 15px !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 390px){
  body.home .ffw-hero,
  body.front-page .ffw-hero,
  .ffw-hero{
    height: 330px !important;
    max-height: 330px !important;
  }
  body.home .ffw-hero__inner,
  body.front-page .ffw-hero__inner,
  .ffw-hero__inner{
    height: 330px !important;
    max-height: 330px !important;
    padding: 24px 21px 28px !important;
  }
  body.home .ffw-hero__title,
  body.front-page .ffw-hero__title,
  .ffw-hero__title{
    font-size: clamp(1.8rem, 8vw, 2.3rem) !important;
  }
  body.home .ffw-hero__sub,
  body.front-page .ffw-hero__sub,
  .ffw-hero__sub{
    font-size: 1rem !important;
  }
}


/* =========================================================
   v1.2.3 – Startseiten-Hero NUR mobil: flaches Bild, keine Buttons/Text
   Ziel: Auf dem Handy nur ein schlanker Bild-Teaser, danach direkt Inhalt.
   ========================================================= */
@media (max-width: 860px){
  body.home .ffw-hero,
  body.front-page .ffw-hero,
  .home .ffw-hero,
  .front-page .ffw-hero{
    display: block !important;
    width: auto !important;
    min-height: 0 !important;
    height: 220px !important;
    max-height: 220px !important;
    margin: 16px 14px 28px !important;
    padding: 0 !important;
    border-radius: 0 0 20px 20px !important;
    overflow: hidden !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }

  body.home .ffw-hero__inner,
  body.front-page .ffw-hero__inner,
  .home .ffw-hero__inner,
  .front-page .ffw-hero__inner,
  body.home .ffw-hero__actions,
  body.front-page .ffw-hero__actions,
  .home .ffw-hero__actions,
  .front-page .ffw-hero__actions,
  body.home .ffw-hero__title,
  body.front-page .ffw-hero__title,
  .home .ffw-hero__title,
  .front-page .ffw-hero__title,
  body.home .ffw-hero__sub,
  body.front-page .ffw-hero__sub,
  .home .ffw-hero__sub,
  .front-page .ffw-hero__sub{
    display: none !important;
  }

  body.home .ffw-hero__overlay,
  body.front-page .ffw-hero__overlay,
  .home .ffw-hero__overlay,
  .front-page .ffw-hero__overlay{
    display: block !important;
    background: rgba(0,0,0,.18) !important;
  }
}

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