/*
 Theme Name:   Divi Child
 Theme URI:    http://elegantthemes.com/
 Description:  Divi Child Theme
 Author:       ElegantThemes
 Author URI:   http://elegantthemes.com
 Template:     Divi
 Version:      0.1.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags: responsive-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, featured-images, full-width-template, post-formats, rtl-language-support, theme-options, threaded-comments, translation-ready
 Text Domain:  divi-child-theme
*/

html, body, #page-container {
  overflow-x: clip !important;
}

/* ==== Verluafender Farbübergang ====
 * -------------------------------------------- */

#main-content { background-color: transparent !important; }

#bg-transition-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  transition: background-color 0.8s linear;
}


/* ==== Horizontal Scroll Kacheln verkleiner ====
 * -------------------------------------------- */
/* Tablet */
/* Tablet */
@media (max-width: 980px) {
  .dipl_horizontal_scrolling_card_wrapper {
    width: 60vw !important;
    min-width: 60vw !important;
    margin-right: 30px !important;
  }
  .dipl_horizontal_scrolling_card_inner {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Smartphone */
@media (max-width: 767px) {
  .dipl_horizontal_scrolling_card_wrapper {
    width: 78vw !important;
    min-width: 78vw !important;
    margin-right: 20px !important;
  }
  .dipl_horizontal_scrolling_card .layout2 .dipl_horizontal_scrolling_card_wrapper {
    min-height: 0 !important;
    height: 380px !important;
  }
  .dipl_horizontal_scrolling_card_inner {
    width: 100% !important;
    min-width: 0 !important;
    height: 380px !important;
  }
  .dipl_horizontal_scrolling_card_item,
  .dipl-sticky-cards-scroller,
  .dipl-sticky-cards-wrapper,
  .dipl-sticky-cards-inner {
    height: 380px !important;
    max-height: 380px !important;
  }
  .dipl_horizontal_scrolling_card_title {
    font-size: 24px !important;
  }
}

.produkt-bild img {
  width: 100% !important;
  max-width: clamp(160px, 45vw, 300px) !important;
  height: clamp(100px, 25vw, 180px) !important;
  object-fit: cover;
}



/* CTA Sektion Bild nach hinten schieben zwecks Vorhangeffekt
#bg-transition-layer {
	z-index: -20 !important;
}*/
.footer-reveal.et_pb_sticky {
  top: 0 !important;
  height: 100lvh !important;
}

#bg-transition-layer {
  z-index: -5 !important;
}

.data-footer-reveal.et_pb_sticky {
  top: 0 !important;
  height: 100lvh !important;
}

body {
  background-color: #eef2f2;
}


/* HOME: Strich bei den USPs, der mitfährt */
.usp-line {
  position: absolute;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: rgba(245, 245, 245, .18);
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
}
.usp-line__fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--usp-p, 0%);
  background: #e8433f;
  border-radius: 2px;
}
.usp-line__fill::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #e8453c;
  box-shadow: 0 0 0 6px rgba(232, 69, 60, .2);
}
@media (max-width: 980px) {
  .usp-line { display: none; }
}



/* FOOTER damit der Button im CTA auch beim Drüberfahrewn des Footers funktioniert*/
#page-container #main-content {
  position: relative;
  z-index: 1;
}


html body footer.et-l--footer .et_pb_section.et_pb_section_0_tb_footer { z-index: -10 !important; }

html body footer.et-l--footer .et_pb_section[data-sticky-placeholder-id] {
  pointer-events: none !important;
}

/* Reihenfolge Kalender und Überschrift auf Smartphone umgkehren */
@media (max-width: 980px) {
  .kontaktbuchung { order: 2; }
  .kontaktinfo { order: 1; }
}

/* Footer AUsrichtung mobil*/
/* Querformat und große Phones: Allgemeines + Services nebeneinander, Adresse darunter */
@media (max-width: 767px) {
  .et_pb_row_2_tb_footer { flex-wrap: wrap-reverse; row-gap: 40px; }
  .et_pb_row_2_tb_footer .et_pb_column_2_tb_footer { flex: 0 0 100%; }
  .et_pb_row_2_tb_footer .et_pb_column_4_tb_footer,
  .et_pb_row_2_tb_footer .et_pb_column_5_tb_footer { flex: 0 0 calc(50% - 2.75%); }
}

/* Smartphone hochkant: alles untereinander, Services zuerst */
@media (max-width: 479px) {
  .et_pb_row_2_tb_footer { flex-direction: column !important; flex-wrap: nowrap !important; }
  .et_pb_row_2_tb_footer > .et_pb_column { width: 100% !important; flex: 0 0 auto !important; }
  .et_pb_column_4_tb_footer { order: 1; }  /* Services */
  .et_pb_column_5_tb_footer { order: 2; }  /* Allgemeines */
  .et_pb_column_2_tb_footer { order: 3; }  /* Webdesign Agentur, Adresse, Absatz */
}

/* Referenzen - Stacking der Projektsektionen */
.stack-card { position: sticky; top: 96px; }
.referenzprojekt-1 { z-index: 5; }
.referenzprojekt-2 { z-index: 6; }

#page-container { overflow-y: visible !important; }

/* Footer, dass das CTA Bild nicht flackert*/
.data-footer-reveal { min-height: 100svh; }


/* Produkte - es schiebt sich die zweite Sektion über den Hero 
.hero-reveal{position:sticky!important;top:0;z-index:0!important;min-height:calc(100vh - 96px)}
.hero-reveal ~ .et_pb_section{position:relative;z-index:5!important}
.hero-over{background:#fff}
@media(max-width:767px){.hero-reveal{position:relative!important;min-height:0}}*/