/* Webers Advanced Maps - InfoWindow & Lightbox Styles */
#top .gm-style .marker-infowindow {
    width: 200px;
    font-family: sans-serif;
    text-align: left;
    margin-top: 20px;
    gap: 3px 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-areas:
        "A A" 
        "B B"
        "C C" 
        "D D"
        "E E"
        "F F";
}

#main .gm-style img[src*=".svg"] { width: 140px; overflow: visible !important; }
#top .gm-style .gm-style-iw-d { overflow: hidden !important; }
#top .gm-style .gm-style-iw.gm-style-iw-c[aria-labelledby] .gm-style-iw-chr { position: absolute;top:0;right:0; }

#top .gm-style .map-logo img {
  width: calc(100% - 40px);
  object-fit: contain;
  float: left;
  object-position: left;
}

#top .gm-style .marker-infowindow .map-logo { grid-area: A; }
#top .gm-style .marker-infowindow .name { grid-area: B; }
#top .gm-style .marker-infowindow .zusatz { grid-area: C; } 
#top .gm-style .marker-infowindow .address { grid-area: D; }
#top .gm-style .marker-infowindow .ratings { grid-area: E; }
#top .gm-style .marker-infowindow .bottom-actions { grid-area: F; }

/* Spezielle Logik für Weber Webdesign (Name/Zusatz ausblenden wenn gewünscht) */
#top .marker-infowindow.weber-webdesign .name,
#top .marker-infowindow.loc-weber-webdesign .name, /* Falls Slug generiert wird */
#top .marker-infowindow .zusatz.empty {
    display: none;
}

/* Der schicke Glas-Effekt */
#top .gm-style .gm-style-iw-c {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(4px);
    padding: 10px 10px 5px !important;
    max-width: 260px !important;
}

#top .gm-style .name { margin-top: 3px; font-size: 14px; line-height: 1.5em; font-weight: 600; color: #222; }
#top .gm-style .zusatz { font-size: 14px; line-height: 1.5em; font-weight: 400; color: #222; }
#top .gm-style .address { font-size: 14px; line-height: 1.5em; font-weight: 500; color: #444; }

#top .gm-style .bottom-actions {
  display: flex !important;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  padding-top: 0px;
  flex-wrap: nowrap;
  align-items: center;
  
}

#top .gm-style .marker-infowindow .avia-button-center.mbut1 {
  position: relative;
  display: inline-block;
  left: 0 !important;
  transform: none !important;
}


#top .gm-style .marker-infowindow .mbut1 .avia-button {
  padding: 5px 8px !important;
  min-width: 90px;
  background-color: #2d5c88 !important;
  font-size: 1.1em !important;
  line-height: 1.1em !important;
  color: #fff !important;
  border: 2px solid #2d5c88 !important;
  transition: all .5s ease-in-out;
  margin-top: 0 !important;
}

#top .gm-style .marker-infowindow .avia-button-center.mbut1 .avia_button_icon::before{
  font-size: 20px;
  top:1px;
}


#top .gm-style .mbut1 .avia-button:hover {
  box-shadow: 0 3px 8px rgba(0,0,0,.4) !important;
}

#top .gm-style .bottom-actions a { font-size: 15px; color: #1a73e8; text-decoration: none; }
#top .gm-style .google-routenplaner svg { height: 24px; width: 24px !important; opacity: .7; }
#top .gm-style .bottom-actions .google-maps-link svg,#top .gm-style .bottom-actions .google-routenplaner svg{transition:.7s}
#top .gm-style .bottom-actions .google-maps-link:hover svg,#top .gm-style .bottom-actions .google-routenplaner:hover svg{filter:drop-shadow(1px 1px 1px #333);transform:scale(1.05);transform-origin:bottom left;transition:.7s}
#top .gm-style .bottom-actions .google-routenplaner:hover svg{transform-origin:bottom right}
#top .gm-ui-hover-effect{position:absolute!important;right:0;top:0;opacity:.5;transition:.7s;display:block!important;width:34px!important;height:34px!important}
#top .gm-style .gm-style-iw-c:hover .gm-ui-hover-effect{opacity:1;transform:rotate(90deg)}
#top .gm-style .gm-ui-hover-effect>span{margin:5px!important}

/* Animationen  optional: drehen des logo bei mouseenter karte
.gm-style:hover .gm-style-iw-d img { animation: 5s linear roundy; }
@keyframes roundy { to { transform: rotateY(360deg); } }
*/

/* Magnific Popup Anpassungen */
.mfp-content .mfp-close {
    background: rgba(0,0,0,.5) !important;
    border-radius: 100px;
    transition: .3s;
}
.mfp-content .mfp-close:hover { transform: scale(.9) rotate(90deg); }

body .brlbs-cmpnt-container.brlbs-cmpnt-content-blocker .brlbs-cmpnt-cb-thumbnail {
  background-size: cover;
  background-repeat: no-repeat;
  object-fit: cover !important;
}


body .brlbs-cmpnt-container.brlbs-cmpnt-content-blocker .brlbs-cmpnt-cb-preset-b .brlbs-cmpnt-cb-main {
  width: 90% !important;
  left: 5% !important;
  background: rgba(255,255,255,0.8);
  font-size: 18px;
  line-height: 1.5em;
  row-gap: 50px !important;
  justify-content: center !important;
  margin: 5% 0 !important;
}

body#top .brlbs-cmpnt-container.brlbs-cmpnt-content-blocker .brlbs-cmpnt-cb-preset-b .brlbs-cmpnt-cb-content {
  flex-basis: unset !important;
}

body#top .brlbs-cmpnt-container.brlbs-cmpnt-content-blocker .brlbs-cmpnt-cb-preset-b .brlbs-cmpnt-cb-buttons {
  flex-basis: unset !important;
}

#top .gm-style .karte-zeigen svg {
  width: 66px;
}