/* ==================================================
   Webfonts
================================================== */

/* montserrat - latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url('../fonts/montserrat/montserrat-v31-latin-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('../fonts/montserrat/montserrat-v31-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('../fonts/montserrat/montserrat-v31-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('../fonts/montserrat/montserrat-v31-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('../fonts/montserrat/montserrat-v31-latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url('../fonts/montserrat/montserrat-v31-latin-800.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 900;
  src: url('../fonts/montserrat/montserrat-v31-latin-900.woff2') format('woff2');
}

/* ==================================================
   Basis / Typografie
================================================== */

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  line-height: 30px;
  font-weight: 400;
  color: #000;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.ce_revolutionslider_text.bold,
.font_headline {
  font-family: 'Montserrat';
  font-weight: 700;
}

/* ==================================================
   Links / Underline-Hover
================================================== */

a {
  position: relative;
}

a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0.1em;
  background-color: var(--accentColor);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 300ms ease, transform 300ms ease;
}

a:hover::after,
a:focus::after {
  opacity: 1;
  transform: scaleX(1);
}

.image_container a:hover::after,
.image_container a:focus::after,
.logo a:hover::after,
.logo a:focus::after,
.pct_edit_container .__buttons__.tl_content a:hover::after,
.pct_edit_container .__buttons__.tl_content a:focus::after,
.ce_hyperlink.btn-size-large a:hover::after,
.ce_fancybox.style1 a:hover::after,
.ce_image_text_box_v2 a:hover::after,
#mmenu .mod_navigation li a:hover::after,
#mmenu .mod_navigation li a:focus::after {
  opacity: 0;
}

.ce_image_text_box_v2 .ce_headline {
  padding-bottom: 0.1em;
}

.ce_image_text_box_v2:hover .ce_headline {
  background-size: 100% 0.1em;
}

.top-link a {
  position: static;
}

.back a {
  padding-bottom: 0.1em;
}



/* ==================================================
   Burger / Smartmenu
================================================== */

.mmenu_trigger .burger {
  width: 35px;
  height: 35px;
}

.mmenu_trigger .burger .burger_lines::before {
  top: 11px;
}

.mmenu_trigger .burger .burger_lines::after {
  top: -11px;
}

/* Home */
body.home .logo a {
  background-image: url(../img/logo_markholzbau_white.svg);
}

.home .header .smartmenu .smartmenu-trigger .line,
.home .header .smartmenu .smartmenu-trigger .line::before,
.home .header .smartmenu .smartmenu-trigger .line::after {
  background: #fff;
}

/* Offcanvas */
.smartmenu-content {
  background-color: #fff;
  box-shadow: -2px 0 6px rgba(0, 0, 0, 0.06);
}

.smartmenu-content .smartmenu-close::before,
.smartmenu-content .smartmenu-close::after {
  height: 4px;
  background: #3b3c42;
}

.smartmenu-content .mod_navigation ul.level_1 {
  padding-left: 0;
}

.smartmenu-content .smartmenu-table li {
  position: relative;
}

.smartmenu-content .smartmenu-table li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 75px;
  background: var(--accentColor);
  transition: width 0.3s ease;
}

.smartmenu-content .smartmenu-table li:hover::after,
.smartmenu-content .smartmenu-table li.active::after,
.smartmenu-content .smartmenu-table li.trail::after {
  width: 100%;
}

.smartmenu-content .smartmenu-table li a {
  padding-left: 40px;
  font-size: 3rem;
  line-height: 4rem;
  font-weight: 700;
  color: #3b3c42;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.smartmenu-content .smartmenu-table li:hover > a,
.smartmenu-content .smartmenu-table li.active > a,
.smartmenu-content .smartmenu-table li.trail > a {
  color: #fff;
  border-bottom: 0;
}

/* ==================================================
   Parallax / Slider
================================================== */

div.parallax {
  position: absolute;
  bottom: -12px;
  width: 300%;
  z-index: 10;
  opacity: 0.3;
}

img.parallax {
  position: relative;
  width: 80%;
  height: auto;
  transform: translateX(65vw);
  z-index: 20;
  will-change: transform;
}

.ce_video_background .image_container {
  opacity: 0.3;
}

/* ==================================================
   Referenzen / News
================================================== */

.ce_fancybox.style1 .link_text {
  text-transform: uppercase;
  font-size: 1.2rem;
}

.ce_fancybox.style1::after {
  background-color: var(--accentColor);
}

.ce_fancybox.style2 .text a {
  color: #fff;
}

.mod_newsreader h2 {
  color: var(--accentColor);
}

.back {
  margin-top: 50px;
  text-transform: uppercase;
}

.back a::before {
  font-family: 'themify' !important;
  content: "\e629";
  margin-right: 5px;
}

.news-teaser p {
  margin-bottom: 0;
}
.mod_newslist .autogrid_row > .column {
  margin-bottom: 30px;
}

/* ==================================================
   Hoverbild / Galerie
================================================== */

.ce_hoverimage:hover .orginal-image,
.ce_hoverimage.has_focus .orginal-image {
  opacity: 0;
}

.image_container .caption {
  margin-top: 15px;
  margin-left: 7px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06rem;
  background-color: var(--accentColor);
  border-radius: inherit;
  -webkit-transform: skew(-12deg);
}

/* Galerie Overlay */
.ce_gallery .content {
  position: absolute;
  inset: 0;
  background: rgba(50, 50, 50, 0.5);
  opacity: 1;
  transition: all 0.5s ease;
}

.ce_gallery .content:hover {
  opacity: 0 !important;
}

.ce_gallery .image_container i.fa.fa-plus-circle {
  display: none;
}

/* ==================================================
   Scroll Reveals
================================================== */

.ce_scroll_reveal_words.h4 {
  line-height:1.6;
}

/* ==================================================
   Artikel
================================================== */
.artikel-abstand {
  margin-bottom: 40px;
}

/* ==================================================
   Team
================================================== */

.ce_fancybox.style2:hover a {
  position: relative;
  color: inherit;
}
.ce_fancybox.style2:hover a:hover {
  text-decoration: underline;
}
.team .ce_fancybox.style2:hover a:hover {
  text-decoration: none;
}
.team .ce_fancybox a::after {
  background-color: #fff;
}
.ce_fancybox.style2 .text {
  bottom: -10px;
}
.ce_fancybox.border-radius-5 {
  border-radius: 0px;
}
/* ==================================================
   Map (Leaflet)
================================================== */

.leaflet-tile-pane {
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
}

/* ==================================================
   Footer
================================================== */

#footer {
  background-color: var(--accentColor);
}
#footer a {
  color: rgba(255, 255, 255, 1);
}
#footer a:hover:not(.ce_hyperlink a) {
  color: rgba(255, 255, 255, 0.6);
}

#footer .mod_socials {
  display: flex;
  justify-content: center;
  gap: 5px;
}

#footer .mod_socials a i {
  background-color: #fff;
  color: #000;
  border-radius: 100%;
}

#footer .mod_socials i.fa-facebook:hover,
#footer .mod_socials i.fa-instagram:hover {
  background: #fff !important;
  color: rgba(0, 0, 0, 0.8) !important;
}

.footer-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  color: #fff;
}
/* Zweite Zeile Links etwas transparenter */
#footer .footer-links a {
  color: rgba(255, 255, 255, 0.5); /* 60% weiß */
}

/* Optional: hover oder active Effekte */
#footer .footer-links a:hover,
#footer .footer-links a:focus {
  color: rgba(255, 255, 255, 1); /* beim Hover volle weiße Farbe */
}

.footer-links {
  margin-top: 0.5rem; /* kleiner Abstand nach oben */

}
.footer-links a {
  white-space: nowrap;
}

.ce_video_background.vis-mobile .video {
  height: 400px;
}

/* ==================================================
   Grid Gallery
================================================== */

.ce_grid_gallery_start.frame-gutter.gutter-large li.grid-item {
  box-shadow: 0 0 0 15px #fff;
}

.ce_grid_gallery_start a.lightbox-link {
  background: rgba(50, 50, 50, 0.5);
  opacity: 1;
  transition: all 0.5s ease;
}

.ce_grid_gallery_start a.lightbox-link:hover {
  opacity: 0 !important;
}

.ce_grid_gallery_start .ce_grid_gallery_overlay {
  display: none;
}

/* ==================================================
   Fixes
================================================== */

.ce_video_w_teaser.has-bgimage .teaser_image {
  background-position: center center;
  background-size: cover;
}

.ce_video_w_teaser.has-bgimage .circle {
  display: none;
}


/* ==================================================
   Media Queries
================================================== */

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .ce_fancybox.style2 {
    min-height: 300px !important;
  }
}

/* Mobile */
@media (max-width: 768px) {

  .ce_video_w_teaser {
    height: auto;
    overflow: hidden;
  }

  .ce_video_w_teaser .video_teaser video {
    position: relative;
    top: auto;
    left: auto;
    transform: none;

    width: 100%;
    height: auto;

    min-width: 0;
    min-height: 0;

    object-fit: contain;
  }
.ce_video_w_teaser .h3 {
  font-size: 0.8rem!important;
}
.ce_video_w_teaser .duration {
  font-size: 0.8rem!important;
}
.ce_video_w_teaser .play-button-static {
  font-size: 11px;
  line-height: 33px;
  text-align: center;
  border-radius: 100%;
  width: 35px;
  height: 35px;
  margin-bottom: 15px;
  transition: all 1.2s ease;
}
}
@media (max-width: 767px) {
  h1 {
    font-size: 2.33rem;
    line-height: 2.66rem;
  }

  h2 {
    font-size: 1.66rem;
    line-height: 2rem;
  }

  h6 {
    font-size: 1.66rem;
  }

  .footer-line {
    gap: 0.5rem;
  }

  .ce_hyperlink.btn-size-large a {
    padding-left: 20px;
    padding-right: 20px;
  }

  .ce_fancybox.style2 .text p {
    font-size: 1rem;
  }
}

/* Desktop */
@media (min-width: 768px) {
  .smartmenu .smartmenu-trigger .line,
  .smartmenu .smartmenu-trigger .line::before,
  .smartmenu .smartmenu-trigger .line::after {
    width: 40px;
    height: 4px;
  }

  .smartmenu .smartmenu-trigger .line::before {
    margin-top: 12px;
  }

  .smartmenu .smartmenu-trigger .line::after {
    margin-top: -15px;
  }
}

/* Newslist Startseite */
@media (min-width: 768px) and (max-width: 1024px) {
  .mod_newslist .autogrid_row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .mod_newslist .autogrid_row > .column {
    float: none;
    width: 50%;
    max-width: 50%;
    box-sizing: border-box;
  }

  .mod_newslist .autogrid_row > .column:nth-child(n+3) {
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
  }

  .mod_newslist .autogrid_row > .column:nth-child(3) > * {
    width: 100%;
  }
}
/*ENDE CYBUSTYLE*/

	.team .broken-grid .column.col_6:nth-child(1) .attributes .ce_fancybox {
		float: right;
	}

	.team .ce_fancybox {
		margin: 10px 5px;
	}
	
	.team .ce_fancybox .inside .text * {
		hyphens: auto;
		-webkit-hyphens: auto;
	}
	
	.team .ce_fancybox.style2:hover, .team .ce_fancybox.style2.has_focus {
		transform: translateY(-5px);
	}
	
	.team .ce_fancybox:hover .headline_wrap {
		display: none !important;
	}
	
	.team .ce_fancybox.style2 {
		padding: 40px 40px 25px;
		min-height: 0 !important; /* überschreibt customize.css:438 */
	}
	
	.team .center {
		margin: 0 auto;
	}
	
	.team .hoch-minimal {
		width: 100%;
		height: 100%;
		max-width: 435px;
		max-height: 458px;
		aspect-ratio: 94.97 / 100;
	}
	
	.team .hoch {
		width: 100%;
		height: 100%;
		max-width: 411px;
		max-height: 513px;
		aspect-ratio: 80.11 / 100;
	}
	
	.team .quer {
		width: 100%;
		height: 100%;
		max-width: 580px;
		max-height: 387px;
		aspect-ratio: 100 / 66.72;
	}
	
	.mod_article.mw1240:not(.fullwidth) > .container {
		max-width: 1240px;
		margin: 0 auto;
	}
	
	@media screen and (min-width: 768px) and (max-width: 1320px) {
		
		.team .hoch-minimal {
			max-width: 33vw;
		}
		
		.team .hoch {
			max-width: 31vw;
		}	
		
	}
	
	@media screen and (min-width: 768px) and (max-width: 980px) {
	
		.team .ce_fancybox .inside .text {
			font-size: 1.9vw;
		}
		
	}
	
	@media screen and (max-width: 767px) {
		
		.team .column[class*="col_"]:not([class*="_m"]), .team .autogrid_grid .column:not([class*="_m"]) {
			margin-bottom: 0;
		}
		
		.team .broken-grid .column.col_6:nth-child(1) .attributes .ce_fancybox {
			float: none;
		}
		
		.team .ce_fancybox {
			margin: 0 0 20px;
		}
		
		.team .hoch-minimal, .team .hoch, .team .quer {
			max-width: 100%;
			max-height: 100%;
			aspect-ratio: 1 / 1;
		}
		
		.team .quer.links {
		  background-position:  center left;
		}
		
		.team .quer.rechts {
		  background-position:  center right;
		}
		
	}
@media only screen and (max-width: 767px) {
 
  .ce_scroll_reveal_words {
    padding:0 20px 0 20px;
  }
}