/*
 Theme Name:   Bootscore Child
 Description:  Bootscore Child Theme
 Author:       Bootscore
 Author URI:   https://bootscore.me
 Template:     bootscore
 Version:      6.0.0
 Requires at least: 5.0
 Tested up to: 6.6
 Requires PHP: 7.4
 License: MIT License
 License URI: https://github.com/bootscore/bootscore-child/blob/main/LICENSE
 Text Domain:  bootscore
*/

/* 
All style editing is done via /assets/scss/_bootscore_custom.scss
*/

/* ----- Keine Silbentrennung auf der Startseite --------------- */

h1.title {
    /* F�r Safari auf iOS & macOS (hier oft noch zwingend n�tig) */
    -webkit-hyphens: none !important; 
    
    /* Der offizielle Standard f�r Chrome, Firefox, Edge */
    hyphens: none !important; 
}

/* ------------------------------------------------------------- */

/* ----- Aktive Seite in der Sidebar-Navigation deutlicher ----- */

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show, .offcanvas-body #footer-menu .nav-link.active {
    color: var(--lt-color-gray-800)!important;
    font-weight: 400!important;
}

/* ------------------------------------------------------------- */


/* =============================================
   MAP / LEAFLET
   ============================================= */
 
.leaflet-popup-content-wrapper,
.leaflet-popup-content {
  border-radius: 0 !important;
}
 
.leaflet-pane.leaflet-tile-pane {
  filter: grayscale(0.9);
}

.leaflet-popup-pane {
	z-index: 1100 !important;
}
 
.wpgb-cluster-icon span {
  background-position: 0 0;
  color: #000;
  font-family: 'Lato' !important;
  font-size: 13px !important;
  font-weight: 700;
  width: 16px;
  text-align: center;
}
 
@media (max-width: 767px) {
  .leaflet-popup.leaflet-zoom-animated {
    max-width: 280px !important;
  }
  .leaflet-popup-content {
    min-width: 250px;
    max-width: 270px !important;
  }
  /* Fix: war nested @media � jetzt korrekt im gleichen Block */
  .leaflet-popup-content .wpgb-card,
  .leaflet-popup-content .wpgb-card-wrapper {
    width: 100% !important;
    max-width: 260px !important;
  }
  .leaflet-popup-content .wpgb-card-media {
    width: 100% !important;
  }
}
 
@media (min-width: 768px) {
  .leaflet-popup-content {
    min-width: 310px !important;
  }
}
 
@media (max-width: 290px) {
  .leaflet-popup-content {
    transform: none;
    max-width: 245px !important;
  }
}
 
 
/* =============================================
   MAP FACET
   ============================================= */
 
@media (max-width: 678px) {
  .wpgb-map-facet.wpgb-map-loaded.leaflet-container.leaflet-touch.leaflet-fade-anim.leaflet-touch-zoom {
    height: 80vh;
  }
}
 
 
/* =============================================
   WP GRID BUILDER � CARDS
   ============================================= */
 
.wp-grid-builder.wpgb-grid-2.wpgb-enabled {
  display: none;
}
 
.wpgb-block-2 {
  height: auto;
  max-height: 100px;
}
 
.wpgb-block-3,
.wpgb-block-4,
.wpgb-block-5,
.wpgb-block-7,
.wpgb-block-9 {
  height: auto;
  max-height: 80px;
}
 
.wpgb-block-3 .artikel-info .col,
.wpgb-block-4 .artikel-info .col,
.wpgb-block-5 .artikel-info .col,
.wpgb-block-6 .artikel-info .col,
.wpgb-block-7 .artikel-info .col,
.wpgb-block-9 .artikel-info .col {
  margin-top: 0 !important;
}
 
.wpgb-block-3 .artikel-info .icon img,
.wpgb-block-4 .artikel-info .icon img,
.wpgb-block-5 .artikel-info .icon img,
.wpgb-block-6 .artikel-info .icon img,
.wpgb-block-7 .artikel-info .icon img,
.wpgb-block-9 .artikel-info .icon img {
  margin-top: 28px !important;
}
 
/* ok-ep */
.wpgb-post-691 .wpgb-block-9 {
  display: none !important;
}
 
.wpgb-post-163 .wpgb-block-3,
.wpgb-post-163 .wpgb-block-4,
.wpgb-post-163 .wpgb-block-5,
.wpgb-post-163 .wpgb-block-6,
.wpgb-post-163 .wpgb-block-7,
.wpgb-card-footer {
  display: none !important;
}
 
.wpgb-post-440 .wpgb-block-3,
.wpgb-post-440 .wpgb-block-4,
.wpgb-post-440 .wpgb-block-7 {
  display: none !important;
}
 
 
/* =============================================
   ARTIKEL INFO
   ============================================= */
 
.artikel-info .text-1 {
  font-weight: 500 !important;
  font-family: "Lato";
  font-size: 14px !important;
}
 
.artikel-info .text-2 {
  font-weight: 300 !important;
  font-family: "Lato";
  font-size: 14px !important;
}
 
.artikel-info .col {
  margin-top: -16px !important;
}
 
a span.more-link-artikel.text-uppercase {
  font-weight: 500;
  text-decoration: none !important;
  font-family: "Lato";
  font-size: 14px !important; /* Fix: war "148x" */
  letter-spacing: 1.2px !important;
}
 
 
/* =============================================
   CASE STUDY CARDS (hover / wrapper)
   ============================================= */
 
.wp-block-group.wrapper-content {
  position: absolute;
  bottom: 0 !important;
  padding: 20px;
  backdrop-filter: blur(1px);
  background: linear-gradient(180deg, rgba(0, 50, 62, 0) 0%, rgba(0, 0, 0, 1) 100%);
}
 
.wp-block-group.wrapper-content p {
  font-size: 16px;
}
 
.wp-block-group.wrapper-content p.btn.btn-outline {
  border: 1px solid white;
  border-radius: unset;
}
 
.wp-block-group.wrapper-content p.btn.btn-outline a {
  color: white !important;
  text-decoration: none;
  font-size: 18px !important;
}
 
.wp-block-group.wrapper-content.is-layout-constrained * {
  color: white !important;
}
 
/* Fix: Duplikat entfernt � nur diese Version behalten */
.wp-block-group.inner-content-fade {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.6s ease-in-out, max-height 0.6s ease-in-out;
}
 
.wp-block-group.position-relative.overflow-hidden:hover .wp-block-group.inner-content-fade {
  max-height: 500px;
  opacity: 1;
}
 
 
/* =============================================
   HEADER
   ============================================= */
 
header#masthead.scroll-up {
  transition: all 0.3s ease-in-out;
  transform: translateY(0px);
}
 
/* Fix: Duplikat entfernt � nur die korrekte Version */
header#masthead.scroll-down {
  transition: all 0.3s ease-in-out;
  transform: translateY(-100px);
}
 
.offcanvas-backdrop.fade.show {
  display: none !important;
}
 
.postid-163 header#masthead:not(.scroll-up.scrolled) {
  background: linear-gradient(180deg, #333333, transparent);
}
 
 
/* =============================================
   NAVIGATION / OFFCANVAS
   ============================================= */
 
div#offcanvas-navbar {
  height: 100vh;
}
 
button.btn.btn-outline-secondaryms-1.ms-md-2.nav-toggler {
  margin-right: -24px;
}
 
.lb-details {
  display: none;
}
 
 
/* =============================================
   FOOTER
   ============================================= */
 
footer#footer {
  background: #f6f6f6;
}
 
 
/* =============================================
   HOME PAGE
   ============================================= */
 
.home .wp-block-group.teaser-block.container.mt-140.pt-md-100.is-layout-constrained {
  color: white !important;
  margin-left: 3rem;
  padding-left: 0;
}
 
.home .block-defb7a4a-3b3a-48ec-a5a7-ce0de9d6c155.areoi-element.container.py-32,
.home .wp-block-group.image-long.py-32.py-lg-68.animated.o-anim-offset-5\%.position-relative.is-layout-flow.wp-block-group-is-layout-flow.hidden-animated.o-anim-ready {
  z-index: 1;
  position: relative;
}
 
.home #page .wp-block-cover__image-background.wp-image-359.size-full.has-parallax {
  background-position: 50% 80% !important;
}
 
 
/* =============================================
   VIDEO / COVER
   ============================================= */
 
video.wp-block-cover__video-background {
  transform: scale(1.0);
}
 
.wp-block-cover.video-block {
  height: 800px !important;
}
 
.video-head {
  margin-top: -80px;
}

/* ----------------------------------------------------------------------------------------------- */

/* =============================================
   Anpassung Startseitenvideo
   Erzwingt 800px Höhe für alle Geräte
   ============================================= */

/* Den Cover-Block Container auf automatische Höhe setzen */
html body.home .wp-block-cover.no-loop-cover,
html body.home .wp-block-cover.no-loop-cover.has-fixed {
    min-height: auto !important;
    height: 800px !important;
	min-height: 800px !important; /* Zusätzliche Sicherheit gegen Theme-Defaults */
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Das Video-Element zwingen, sich an der Breite zu orientieren */
.wp-block-cover.no-loop-cover video.wp-block-cover__video-background {
    position: absolute !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* Verhindert das "Aufziehen" / Beschneiden */
    top: 0;
    left: 0;
    transform: none;
}

/* Falls der Text im Video-Block absolut positioniert werden soll */
.wp-block-cover.no-loop-cover .wp-block-cover__inner-container {
    position: absolute;
    z-index: 2;
    width: 100%;
}

/* --- Speziell für 1225px und kleiner --- */
@media (max-width: 1225px) {
    
    .wp-block-cover.no-loop-cover {
        /* Hier definierst du, wie hoch der Block auf Tablets/Handys mindestens sein soll */
        /* 'auto' macht ihn oft zu flach, daher ist ein fester Wert oder vh oft besser */
        height: 60vh !important; /* 60% der Bildschirmhöhe, oder z.B. 500px */
        min-height: 400px !important; 
        overflow: hidden;
    }

    .wp-block-cover.no-loop-cover video.wp-block-cover__video-background {
        position: absolute !important;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); /* Zentriert das Video perfekt */
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* WICHTIG: Füllt die Höhe aus, schneidet Ränder ab */
    }
}

/* =============================================
   Loop ein-/ausschalten über functions.php !!!
   ============================================= */

/* ----------------------------------------------------------------------------------------------- */
 
 
/* =============================================
   MISC
   ============================================= */
 
.col-12.col-md-6.col-lg-5.offset-lg-1.casestudy_map {
  filter: grayscale(1);
}
 
.d-flex.align-items-center.justify-content-end {
  flex-wrap: wrap !important;
}
 
.my-120.strategie-container {
  margin-top: 0 !important;
}
 
.kontakt-bildunterschrift {
  margin-bottom: 0 !important;
}
 
.image-long.py-32.py-lg-68.animated.fadeInUp.o-anim-offset-5\%.position-relative {
  height: 750px !important;
}
 
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
 
footer {
  font-weight: 400;
}
 
body.error404 #masthead {
  background-color: lightgray !important;
}
 
.error-404 {
  margin-top: 100px;
}
 
 
/* =============================================
   ZITAT
   ============================================= */
 
.zitat-container {
  position: absolute;
  bottom: 0;
}
 
.zitat-container .page-template-page-templatespage-blank-php .head {
  padding-bottom: 0 !important;
  margin-top: 0 !important;
}
 
.zitat-container p.has-text-align-center.o-anim-ready.fadeIn.delay-200ms {
  margin-bottom: 0 !important;
}
 
 
/* =============================================
   SINGLE CASESTUDY
   ============================================= */
 
.single-casestudy .lable {
  hyphens: auto !important;
}
 
.single-casestudy .align-items-center {
  hyphens: auto;
}
 
h3.wpgb-block-1.text-uppercase {
  hyphens: none;
  word-break: normal;
}
 
h2.block-heading {
  font-size: calc(1.325rem + 0.9vw) !important;
  hyphens: none;
  word-break: normal;
}
 
.title.text-uppercase {
  hyphens: auto;
}
 
 
/* =============================================
   LOGOS
   ============================================= */
 
.d-td-none, .d-tl-none {
  width: 150px;
  height: auto;
}
 
 
/* =============================================
   RESPONSIVE
   ============================================= */
 
@media (max-width: 767px) {
  .wp-block-group.position-relative.overflow-hidden.is-layout-constrained img {
    min-height: 400px !important;
  }
  ul.wp-block-social-links.alignright.is-style-logos-only.is-content-justification-right.is-layout-flex.wp-container-core-social-links-is-layout-d445cf74.wp-block-social-links-is-layout-flex {
    justify-content: center !important;
    display: contents;
  }
  .teaser-h1 {
    width: 200px;
    line-height: 1;
    padding-top: 20rem !important;
  }
  .home .wp-block-cover.is-light.has-fixed.no-loop-cover {
    height:auto !important;
  }
}
 
@media (min-width: 768px) {
  p.elfgenpick-copyright {
    display: none;
  }
}
 
/* Fix: zwei @media (max-width: 500px) zusammengef�hrt */
@media (max-width: 500px) {
  .wp-grid-builder,
  .wpgb-marker-content,
  .wpgb-enabled {
    width: 70vw !important;
  }
  .block-daebfd1f-e034-4d46-842a-5784e5a94c1f {
    width: 100% !important;
    margin: 0 !important;
  }
  .d-td-none, .d-tl-none {
    width: 90px;
    height: auto;
  }
}
 
@media (max-width: 340px) {
  h2 {
    font-size: 20px !important;
  }
  h3 {
    font-size: 1rem !important; /* Fix: war "1 rem" mit Leerzeichen */
  }
  .ankaufsprofil {
    font-size: 13px;
  }
}
 
@media (max-width: 290px) {
  .wpgb-card-wrapper {
    max-width: 245px !important;
  }
  .leaflet-popup-content {
    transform: none;
    max-width: 245px !important;
  }
  h3 {
    font-size: math !important;
  }
}

.wpgb-block-1 {
    display:none !important;
}

figcaption {
    display: none;
}


/* =============================================
   Höhe der Zwischenbilder in der 
   mobilen Version (bis 677 px Breite) 
   auf 343 px reduziert
   ============================================= */

/* Bereich: 500px bis 677px */
@media (min-width: 500px) and (max-width: 900px) {
    html body .wp-block-group.image-long div.wp-block-cover,
    html body .wp-block-group.image-long div.wp-block-cover img {
        height: 344px !important;
        min-height: 344px !important;
        object-fit: cover !important;
    }
}

/* Bereich: bis 499px */
@media (max-width: 499px) {
    html body .wp-block-group.image-long div.wp-block-cover,
    html body .wp-block-group.image-long div.wp-block-cover img {
        height: 244px !important;
        min-height: 244px !important;
        object-fit: cover !important;
    }
}

/* ============================================= */

/* =============================================
   Justierung Elfi-Bild auf Startseite
   ============================================= */
   
@media (max-width: 678px) {
	.elfi img.wp-block-cover__image-background {
    object-position: 50% 55% !important;
	}
}	

@media (min-width: 679px) and (max-width: 767px) {
	.elfi img.wp-block-cover__image-background {
    object-position: 50% 60% !important;
	}
}	

@media (min-width: 768px) and (max-width: 900px) {
	.elfi img.wp-block-cover__image-background {
    object-position: 50% 50% !important;
	}
}	
	
@media (min-width: 901px) {
	.elfi img.wp-block-cover__image-background {
    object-position: 50% 42% !important;
	}
}

/* ============================================= */

/* =============================================
   Boxed Layout (1920px)
   ============================================= */

/* Greift erst, wenn der Bildschirm breiter als 1920px ist */
@media (min-width: 1921px) {

    #page {
        max-width: 1920px;
        margin: 0 auto;
        box-shadow: 0 0 30px rgba(0,0,0,0.03); /* Ganz dezenter Schatten zur Abgrenzung */
        overflow: hidden; /* Verhindert horizontales Scrollen durch �berbreite Elemente */
    }

    /* Korrektur f�r den Sticky-Header innerhalb der Box */
    header#masthead.sticky-top {
        max-width: 1920px;
        margin: 0 auto;
        left: 0;
        right: 0;
    }
}

/* ============================================= */




