/* Pfarreien-Navigation 1.4 – optimiert für BeTheme Museum, 1200px Content-Wrap */
.pg-parishes{margin:0 0 30px;max-width:100%;font-family:inherit;clear:both}
.pg-parishes-hero{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,3fr);height:430px;min-height:0;overflow:hidden}
.pg-parishes-photo{position:relative;min-width:0;height:430px;overflow:hidden;background:#343b40;isolation:isolate}
.pg-parishes-backdrop{position:absolute;inset:-22px;width:calc(100% + 44px);height:calc(100% + 44px)!important;max-width:none!important;object-fit:cover;filter:blur(18px) brightness(.58);opacity:0;transition:opacity .3s ease;pointer-events:none;z-index:0}
.pg-parishes-image{position:absolute;inset:0;width:100%;height:100%!important;max-width:none!important;object-fit:contain;object-position:center center;opacity:0;transition:opacity .3s ease;pointer-events:none;z-index:1}
.pg-parishes-image.is-active,.pg-parishes-backdrop.is-active{opacity:1}
.pg-parishes-placeholder{position:relative;z-index:2;padding:45px 20px;color:#fff}
.pg-parishes-links{display:flex;flex-direction:column;min-width:0}
.pg-parishes-link{flex:1;display:flex;flex-direction:column;justify-content:center;gap:5px;padding:20px 32px;text-decoration:none!important;background:#f3f1f0;color:#333!important;border-bottom:1px solid #ddd;transition:background .2s,color .2s;min-height:0}
.pg-parishes-link h4,.pg-parishes-link p{margin:0;padding:0;color:inherit!important}.pg-parishes-link h4{font-family:var(--pg-footer-h4-family,inherit)!important;font-size:var(--pg-footer-h4-size,inherit)!important;font-weight:var(--pg-footer-h4-weight,inherit)!important;font-style:var(--pg-footer-h4-style,normal)!important;letter-spacing:var(--pg-footer-h4-spacing,normal)!important;text-transform:var(--pg-footer-h4-transform,none)!important;line-height:var(--pg-footer-h4-line-height,1.25)!important}.pg-parishes-link p{line-height:1.4}.pg-parishes-link p span{color:inherit!important}
.pg-parishes-link:hover,.pg-parishes-link:focus-visible,.pg-parishes-link.is-active{background:#7d776f;color:#fff!important}
.pg-parishes-subnav{background:#f2f2f2;margin-top:16px}.pg-parishes-subnav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap}.pg-parishes-subnav li{margin:0;position:relative}.pg-parishes-subnav a{display:block;padding:13px 17px;color:#333;text-decoration:none}.pg-parishes-subnav .current-menu-item>a,.pg-parishes-subnav a:hover{background:#7d776f;color:#fff}.pg-parishes-subnav .sub-menu{display:none;position:absolute;z-index:20;background:#f2f2f2;min-width:190px;box-shadow:0 5px 12px #0002}.pg-parishes-subnav li:hover>.sub-menu,.pg-parishes-subnav li:focus-within>.sub-menu{display:block}.pg-parishes-subnav .sub-menu li{width:100%}
@media(max-width:767px){.pg-parishes-hero{grid-template-columns:1fr;height:auto}.pg-parishes-photo{height:390px}.pg-parishes-links{flex-direction:row}.pg-parishes-link{padding:14px 9px;min-width:0;min-height:92px}.pg-parishes-subnav ul{display:block}.pg-parishes-subnav .sub-menu{position:static;box-shadow:none;display:block;padding-left:12px}}
@media(max-width:420px){.pg-parishes-photo{height:340px}}
@media(prefers-reduced-motion:reduce){.pg-parishes-image,.pg-parishes-backdrop{transition:none}}

/* Schutz gegen Absatz-Automatismen und feste Mindesthoehen */
.pg-parishes-links > p{display:none!important}
.pg-parishes-links > a.pg-parishes-link{min-height:0;box-sizing:border-box}

/* Nur für die Startseiten-Option; der eigentliche Header mit Logo bleibt sichtbar. */
body.pg-home-top #Subheader{display:none!important}
body.pg-home-top .pg-home-top-holder{padding:24px 0 0;clear:both}
body.pg-home-top .pg-home-top-holder>.section_wrapper{max-width:1200px;margin:0 auto;box-sizing:border-box}
@media(max-width:1230px){body.pg-home-top .pg-home-top-holder>.section_wrapper{width:calc(100% - 40px)}}
@media(max-width:767px){body.pg-home-top .pg-home-top-holder>.section_wrapper{width:calc(100% - 24px)}}

/* v2.0: Normalen MUSEUM-Header im Dokumentfluss halten, ohne BeTheme-Sticky
   oder dessen Platzhalter zu deaktivieren. Sticky-Position, Hoehe und
   Animation bleiben vollstaendig unter Kontrolle von BeTheme. */
body.pg-home-top #Header_wrapper {
  position: relative !important;
  height: auto !important;
  min-height: 0 !important;
  background: #25242b !important;
}
body.pg-home-top #Header {
  position: relative !important;
  height: auto !important;
  min-height: 0 !important;
  background: #25242b !important;
}
/* Nur den normalen Header aus dem transparenten Overlay-Modus loesen.
   Bei .is-sticky KEINE Positionierung oder Groesse ueberschreiben. */
body.pg-home-top #Header #Top_bar:not(.is-sticky) {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  background: #25242b !important;
}
body.pg-home-top #Content { position: relative; clear: both; }
body.pg-home-top .pg-home-top-holder { padding-top: 24px; }
@media (max-width: 767px) {
  body.pg-home-top .pg-home-top-holder { padding-top: 16px; }
}

/* v1.7: Startseiten-Uebersicht nutzt die komplette BeTheme-Contentbreite.
   Keine Aenderung der Pfarrei-Unterseiten. */
body.pg-home-top .pg-home-top-holder { width:100%; max-width:none; box-sizing:border-box; }
body.pg-home-top .pg-home-top-holder > .section_wrapper {
  display:block !important; float:none !important; clear:both;
  width:calc(100% - 40px) !important; max-width:1200px !important;
  margin-left:auto !important; margin-right:auto !important;
  box-sizing:border-box !important;
}
body.pg-home-top .pg-home-top-holder .pg-parishes {
  display:block !important; float:none !important; clear:both;
  width:100% !important; max-width:none !important;
  box-sizing:border-box !important;
}
body.pg-home-top .pg-home-top-holder .pg-parishes-hero {
  width:100% !important; max-width:none !important; min-width:0;
}
@media(max-width:767px) {
  body.pg-home-top .pg-home-top-holder > .section_wrapper { width:calc(100% - 24px) !important; }
}

/* v1.8: Unternavigation auch unter dem nach oben versetzten Pfarreien-Kopf. */
.pg-home-top-holder .pg-parishes-subnav {margin-top:0;}
.pg-parishes-subnav .current-menu-ancestor > a, .pg-parishes-subnav .current_page_item > a {background:#7d776f;color:#fff;}
.pg-parishes-subnav a:focus-visible {outline:2px solid #7d776f;outline-offset:-2px;}

/* v1.9: Aktive Pfarrei ist auf Pfarreiseiten kein Link. */
.pg-parishes-links > .pg-parishes-link { box-sizing:border-box; }
.pg-parishes-links > div.pg-parishes-link { cursor:default; }
.pg-parishes-links > .pg-parishes-link.is-current { background:#7d776f; color:#fff!important; }

/* v1.9: Smartphone – Bild vollflächig, Pfarreien sauber untereinander. */
@media only screen and (max-width:767px) {
  .pg-parishes .pg-parishes-hero {
    display:flex!important; flex-direction:column!important;
    height:auto!important; min-height:0!important; overflow:visible!important;
  }
  .pg-parishes .pg-parishes-photo {
    position:relative!important; display:block!important;
    width:100%!important; height:340px!important; min-height:0!important;
    flex:0 0 340px!important; overflow:hidden!important;
  }
  .pg-parishes .pg-parishes-image {
    width:100%!important; height:100%!important;
    object-fit:cover!important; object-position:center center!important;
  }
  .pg-parishes .pg-parishes-backdrop { display:none!important; }
  .pg-parishes .pg-parishes-links {
    position:static!important; display:flex!important; flex-direction:column!important;
    width:100%!important; height:auto!important; min-height:0!important;
    flex:none!important; overflow:visible!important;
  }
  .pg-parishes .pg-parishes-link {
    position:relative!important; top:auto!important; left:auto!important;
    right:auto!important; bottom:auto!important; transform:none!important;
    display:flex!important; flex-direction:column!important;
    align-items:flex-start!important; justify-content:center!important;
    flex:0 0 auto!important; width:100%!important; height:auto!important;
    min-height:76px!important; margin:0!important; padding:14px 20px!important;
    box-sizing:border-box!important; overflow:visible!important;
  }
  .pg-parishes .pg-parishes-link h4 {
    position:static!important; display:block!important;
    margin:0 0 5px!important; padding:0!important;
    line-height:1.3!important; color:inherit!important;
  }
  .pg-parishes .pg-parishes-link p {
    position:static!important; display:block!important;
    margin:0!important; padding:0!important;
    line-height:1.4!important; color:inherit!important;
  }
  .pg-parishes .pg-parishes-link.is-active,
  .pg-parishes .pg-parishes-link:hover {background:#7d776f!important;color:#fff!important;}
  .pg-parishes-subnav {clear:both!important; margin-top:15px!important;}
}

/* v2.0: Einheitliche Hintergrundfarbe auch im Sticky-Zustand.
   Keine Eingriffe in position, top, height oder header_placeholder. */
#Top_bar.is-sticky { background-color: #25242b !important; }
