:root {
  --bs-body-font-size: 1.2rem;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  color: #333333;
}

/* Global heading font weight override */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500 !important;
}

.title-text p,
.title-text li,
.title-text h1,
.title-text h2,
.title-text h3 {
	color:#333333;
}

/* Increased margin-bottom for headings in text-center title-text sections */
.text-center .title-text h1,
.text-center .title-text h2,
.text-center .title-text h3,
.title-text .text-center h1,
.title-text .text-center h2,
.title-text .text-center h3 {
	margin-bottom: 1.25rem;
}

/* Specific spacing for subtitle headings */
.text-center .title-text h2 + h3,
.text-center .title-text h1 + h2,
.title-text .text-center h2 + h3,
.title-text .text-center h1 + h2 {
	margin-bottom: 1.5rem;
}

.home .hero-image-img {
	padding-bottom:3rem;
}

.bg-cover {
    background-size: cover;
  }
  
  .bg-center {
    background-position: center;
  }
  section.position-relative img {
    display: block;
    width: 100%;
    height: auto;
  }


  section.hero-image img {
    min-height: 400px;
    object-fit: cover;
    width: 100%;
  }

  .card-body.bg-black {
    background-color: #000;
  }
  .card-body p {
    color: #fff;
    margin-bottom: 0;
  }
  .teaser-image {
    background-size: cover;
    background-position: center;
    min-height: 300px;
  }
  
  .teaser-image .overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    min-height: 100%;
    width: 100%;
  }

  .teaser-image {
    position: relative;
    overflow: hidden;
  }
  
  .teaser-image img {
    display: block;
    width: 100%;
    height: auto;
  }
  
  .home .teaser-image h2 {
	  font-size:3.1rem;
	  padding-left:40px;
	  padding-bottom:20px;
  }
  
  .home .teaser-image {
	  min-height:500px;
  }
  
  .home .col:first-child .teaser-image {
	  overflow:visible;
  }
  
  .home .col:first-child .teaser-image:after {
	  width:240px;
	  height:140px;
	  background:url(../img/Element.png) bottom center no-repeat;
	  background-size:100% auto;
	  content:'';
	  position:absolute;
	  right:-139px;
	  bottom:-30px;
	  z-index:999;
  }
  
  .home .container.py-5 > h2 {
	font-size:3.1rem;
	color:#333333;
  }
  
  .gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
    z-index: 2;
  }
  .teaser-image {
    cursor: pointer;
  }

  .teaser-count-2 .teaser-image {
    min-height: 400px;
  }
  .teaser-count-3 .teaser-image,
  .teaser-count-4 .teaser-image {
    min-height: 300px;
  }
  
    
  body {
    color: #333333;
  }
  
  h1, h2, .headline {
    font-weight: 500;
    color: #333333;
  }


/* NAVIGATION */

.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  .navbar-nav .nav-link {
    font-size: 1.2rem;
    color: #333333;
  }
  
  .navbar-nav.gap-5 {
    gap: 3rem;
  }

  /* Hamburger navigation styling */
  .navbar-toggler {
    background-color: transparent !important;
    border: none !important;
    padding: 0.25rem 0.5rem !important;
  }
  
  .navbar-toggler:focus {
    box-shadow: none !important;
    background-color: transparent !important;
  }
  
  /* Default hamburger icon (dark) */
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }
  
  /* White hamburger icon when mega slider is active and navbar is transparent */
  .has-mega-slider .navbar.bg-transparent .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }

  /* Mobile dropdown menu always white background - only for mobile */
  @media (max-width: 991.98px) {
    .navbar-collapse {
      background-color: white !important;
      margin-top: 0.5rem !important;
      padding: 1rem !important;
    }
    
    /* Ensure nav links in mobile menu are always dark gray */
    .navbar-collapse .nav-link {
      color: #333333 !important;
    }
  }

  .hero-right {
    padding: 3rem;
	padding-left:5.3rem;
  }

/* Accordion */

.accordion-button img {
  height: 33px;
  width: auto;
}

.accordion-button span {
  flex: 1;
  text-align: left;
}

.accordion .accordion-body {
  background-color: #f9f9f9;
  padding: 1rem;
  border-top: 1px solid #ddd;
}

.accordion .accordion-item {
  border: none;
  border-bottom: 1px solid #ccc;
}


  /* Hero Section */

  .rechts-img {
    bottom: -60px; /* nach Bedarf anpassen */
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    max-width: none;
    z-index: 1;
  }

  @media (max-width: 768px) {
    .rechts-img {
      width: 30%;
      bottom: -20px;
      left: 90%;
    }
  }
  
  @media (max-width: 480px) {
    .rechts-img {
      width: 30%;
      bottom: -20px;
      left: 90%;
    }
  }
  

/* MASONRY */



  .masonry-grid {
    column-count: 3;
    column-gap: 1rem;
  }
  
  .masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
  
  .masonry-item img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .masonry-text {
    color: white;
    padding: 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    font-family: 'Montserrat', Arial, sans-serif !important;
  }

  /* Basis: 1 Spalte */
.masonry-sizer,
.masonry-item {
  width: 100%;
}

/* ab 576px: 2 Spalten */
@media (min-width: 576px) {
  .masonry-sizer,
  .masonry-item {
    width: 50%;
  }
}

/* ab 992px: 3 Spalten */
@media (min-width: 992px) {
  .masonry-sizer,
  .masonry-item {
    width: 33.3333%;
  }
}


  .masonry-grid {
    display: flex;
    margin-left: -1rem; /* Abstand zwischen den Spalten */
    width: auto;
  }

  
  .masonry-item {
    padding-left: 1rem;
    box-sizing: border-box;
  }
  
  .form-wrapper input,
.form-wrapper textarea {
  max-width: 400px;
  margin: 0.5rem;
  font-family: 'Montserrat', Arial, sans-serif !important;
}


.masonry-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
}


/* Strefen */
.style-white-on-black {
  background-color: #000;
  color: #fff;
  margin-bottom:5rem;
}

.docked-image {
margin-bottom: 5rem;
}

.docked-image .container{
	position:relative;
}

.docked-image-right .container:after {
	position:absolute;
	top:-3rem;
	height:calc(100% + 6rem);
	width:100vw;
	background: white;
	left:100%;
	content:'';
	z-index:1;
}

.docked-image-left .container:before {
	position:absolute;
	top:-3rem;
	height:calc(100% + 6rem);
	width:100vw;
	background: white;
	right:100%;
	content:'';
	z-index:1;
}


.style-white-on-black .btn {
	font-size:1.35rem;
	font-weight:600;
	padding-left:0px;
	padding-bottom:0px;
    font-family: 'Montserrat', Arial, sans-serif !important;
}

.style-white-on-black .btn span {
	color:#e30a18;
	font-size:1.8rem;
	position:relative;
	bottom:-3px;
} 

.style-white-on-black .btn:hover {
	color:#fff;
	opacity:0.8;
}

.docked-image-left img.bar-image-left {
	position:absolute;
	bottom:calc(-3rem - 20px);
	z-index:2;
	width:200px;
	max-width:100%;
	left:-3rem;
}
.docked-image-right img.bar-image-right {
	position:absolute;
	bottom:calc(-3rem - 20px);
	z-index:2;
	width:200px;
	max-width:100%;
	right:-3rem;
}

.style-white-on-black h2 {
	font-size:3.1rem;
    font-family: 'Montserrat', Arial, sans-serif !important;
}

.style-white-on-black p {
	font-size:1.32rem;
	color:#cccccc;
    font-family: 'Montserrat', Arial, sans-serif !important;
}

.style-white-on-black h2,
.style-white-on-black a {
  color: #fff;
}

.style-black-on-grey {
  background-color: #eee;
  color: #000;
}

.style-black-on-grey h2,
.style-black-on-grey p,
.style-black-on-grey a {
  color: #333333;
  font-family: 'Montserrat', Arial, sans-serif !important;
}
/* ENDE Strefen */

/* EVENTS */
.events-table-title {
    padding: 1.75rem 1.8rem 1.8rem 7rem;
    background:linear-gradient(to bottom, #e52327 0%, #7a000a 100%);
    color: #fff;
	font-size:3.1rem;
	position:relative;
    font-family: 'Montserrat', Arial, sans-serif !important;
}

.events-table-title:before {
  position: absolute;
  width: 100vw;
  height: 100%;
  left: 100%;
  top:0;
  background:linear-gradient(to bottom, #e52327 0%, #7a000a 100%);
  content: ''; 
}

.events-table-title:after {
	  width:190px;
	  height:115px;
	  background:url(../img/Element.png) bottom center no-repeat;
	  background-size:100% auto;
	  content:'';
	  position:absolute;
	  left:-50px;
	  bottom:-20px;
	  z-index:999;
}

.events-table .btn {
	font-size: 1.35rem;
	font-weight: 600;
	padding-left: 0px;
	padding-bottom: 0px;
	margin-left:5.5em;
    font-family: 'Montserrat', Arial, sans-serif !important;
}

.events-table .btn:hover {
	opacity:0.9;
}

.events-table .btn span {
  color: #e30a18;
  font-size: 1.8rem;
  position: relative;
  bottom: -3px;
  padding-right:10px;
}


.table-responsive {
  padding-left: 7rem;
  padding-top:1rem;
}

.table-responsive td {
	border-bottom-width:2px;
	padding-top:2rem;
	padding-bottom:1rem;
}

.table-responsive td strong {
	font-size:1.7em;
	font-weight:600;
}

.table-responsive td small {
	font-size:1.1em;
}


.table-responsive td .btn {
	font-size: 1rem;
	font-weight: 600;
	padding-left: 0px;
	padding-bottom: 0px;
    font-family: 'Montserrat', Arial, sans-serif !important;
}

.table-responsive td .btn span {
	font-size:1.5rem;
	bottom:-2px;
	position:relative;
	padding-left:5px;
}


.style-white-on-red-gradient {
  background:linear-gradient(to bottom, #e52327 0%, #7a000a 100%);
  color: #fff;
}


.style-white-on-red-gradient h2,
.style-white-on-red-gradient h3,
.style-white-on-red-gradient p,
.style-white-on-red-gradient a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif !important;
}

.style-white-on-red-gradient .btn {
  background-color: #fff;
  color: #990000;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif !important;
}

.style-white-on-red-gradient .btn:hover {
  background-color: #f2f2f2;
}

.btn-text {
  color: white;
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif !important;
}

.bg-gradient-red {
  background: linear-gradient(to bottom, #e52327, #7a000a);
}
.gradient-teaser p {
  margin-bottom:0;
  font-family: 'Montserrat', Arial, sans-serif !important;
}

.teaser-image {
  background-size: cover;
  background-position: center;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  z-index: 2;
}

.gradient-card-image {
  border-bottom: 4px solid white;
}


/* footer */

.footer-top {
	height: 87px;

}

.footer-top:after {
	position:absolute;
	width:100vw;
	height:100%;
	left:50%;
	content:'';
}

.footer-top > img {
	height: 68px;
	bottom:-12px;
	margin-left:-30px;
}
.news-section .btn {
	font-size:1.35rem;
	font-weight:600;
	padding-left:0px;
	padding-bottom:0px;
    font-family: 'Montserrat', Arial, sans-serif !important;
}
.news-section .btn span {
	color:#e30a18;
	font-size:1.8rem;
	position:relative;
	bottom:-3px;
} 

.news-section .btn{
	color:#333333;
    font-family: 'Montserrat', Arial, sans-serif !important;
}

.news-section .btn:hover{
	color:#333333;
	opacity:0.8;
}

.card-body small,
.card-body p {
  font-size: 0.95rem;
  font-family: 'Montserrat', Arial, sans-serif !important;
}



.mitarbeiter-section .card-body p,
.mitarbeiter-section .card-body a {
	color:#333333;
    font-family: 'Montserrat', Arial, sans-serif !important;
}



.image-tab-overlay {
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.6);
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.tab-image-wrapper.active .image-tab-overlay {
  display: none;
}

.navbar-brand {
  position: static;
  display: block;
  align-items: unset;
  min-height: unset;
  height: unset;
  width: unset;
}

.logo-default,
.logo-scrolled {
  position: static;
  max-height: 30px;
  width: auto;
}

.navbar-brand img {
  max-height: 30px;
  width: auto;
  position: static;
}

.navbar {
  background: transparent!important;
}

.image-row-image-div {
  align-content: center;
  height: 230px;; 
}

.image-tab {
  overflow: hidden;
}

.image-tab-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* dunkler Overlay */
}

.tab-title {
  background: transparent; /* oder rgba(0, 0, 0, 0.4) für leicht dunklen Balken */
  text-align: center;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif !important;
}

.tab-title h3 {
  font-size: 1.5rem; /* anpassen nach Bedarf */
  font-weight: 500;
  padding-left: 20px; 
  font-family: 'Montserrat', Arial, sans-serif !important;
  text-align: left;
  color: #333333;
}

/* Mega Slider specific styles */
.mega-slider-image-wrapper {
  width: 100vw;
  position: relative;
  overflow: hidden;
  height: auto;
  /* Default mobile height - higher than before */
  height: 60vh;
  min-height: 400px;
}
.mega-slider-img {
  width: 100vw;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 992px) {
  .mega-slider-image-wrapper {
    height: 100vh;
    aspect-ratio: unset;
    min-height: unset;
  }
  .mega-slider-img {
    height: 100vh;
    width: 100vw;
  }
}

/* Mobile mega slider equal height enhancement */
@media (max-width: 991.98px) {
  .mega-slider-image-wrapper {
    height: 60vh !important;
    min-height: 450px !important;
  }
  .mega-slider-img {
    height: 100% !important;
    object-fit: cover !important;
  }
}

/* Hide carousel controls if only one slide */
#megaSlider .carousel-control-prev,
#megaSlider .carousel-control-next {
  filter: drop-shadow(0 0 4px #000);
}

/* CPT Loop Block Overlay Styles */
.cpt-loop-img-overlay-wrapper {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.cpt-loop-img {
  display: block;
  width: 100%;
  height: auto;
  transition: filter 0.4s ease-out;
}
.cpt-loop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  transition: opacity 0.4s ease-out;
  z-index: 3;
}
.cpt-loop-img-overlay-wrapper:hover .cpt-loop-overlay {
  opacity: 1;
}
.cpt-loop-overlay-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif !important;
}
.cpt-loop-overlay-desc {
  font-size: 1rem;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif !important;
}

/* Equal Height CPT Loop Block Styles */
.cpt-loop-equal-height {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.cpt-loop-equal-height .cpt-loop-col {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.cpt-loop-equal-height .cpt-loop-link {
  flex: 1;
  display: flex !important;
  flex-direction: column;
  height: 100%;
}

.cpt-loop-equal-height .cpt-loop-img-overlay-wrapper {
  flex: 1;
  display: flex !important;
  flex-direction: column;
  min-height: 300px; /* Mindesthöhe für konsistente Darstellung */
  position: relative;
}

.cpt-loop-equal-height .cpt-loop-img-overlay-wrapper > div:first-child {
  flex: 1;
  min-height: 200px; /* Mindesthöhe für Bildbereich */
}

/* Force equal height for all columns in a row regardless of content */
.cpt-loop-equal-height::after {
  content: "";
  flex: 1 0 100%;
  height: 0;
  order: 999;
}

/* Equal Height Manual Loop Block Styles */
.manual-loop-equal-height {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.manual-loop-equal-height > div {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.manual-loop-equal-height .cpt-loop-img-overlay-wrapper {
  flex: 1;
  display: flex !important;
  flex-direction: column;
  height: 100%;
}

.manual-loop-equal-height .ratio {
  flex: 1;
  min-height: 250px; /* Mindesthöhe für konsistente Darstellung */
}

/* Enhanced Equal Heights for Mixed Column Widths */
.cpt-loop-equal-height .cpt-loop-col,
.manual-loop-equal-height > div {
  align-items: stretch;
}

/* Ensure all tiles in a row have equal height regardless of Bootstrap column width */
@media (min-width: 768px) {
  .cpt-loop-equal-height .cpt-loop-col .cpt-loop-img-overlay-wrapper,
  .manual-loop-equal-height > div .cpt-loop-img-overlay-wrapper {
    min-height: 350px;
  }
  
  /* Larger columns (col-md-6, col-md-8, col-md-12) get more minimum height */
  .cpt-loop-equal-height .col-md-6 .cpt-loop-img-overlay-wrapper,
  .cpt-loop-equal-height .col-md-8 .cpt-loop-img-overlay-wrapper,
  .cpt-loop-equal-height .col-md-12 .cpt-loop-img-overlay-wrapper,
  .manual-loop-equal-height .col-md-6 .cpt-loop-img-overlay-wrapper,
  .manual-loop-equal-height .col-md-8 .cpt-loop-img-overlay-wrapper,
  .manual-loop-equal-height .col-md-12 .cpt-loop-img-overlay-wrapper {
    min-height: 400px;
  }
}

/* Flexbox optimization for perfect equal heights */
.cpt-loop-equal-height,
.manual-loop-equal-height {
  align-items: stretch !important;
}

.cpt-loop-equal-height .cpt-loop-col,
.manual-loop-equal-height > div {
  height: auto;
  min-height: 100%;
}

/* Configurable Height Settings */

/* Small height setting */
.tile-height-small .cpt-loop-img-overlay-wrapper,
.tile-height-small .ratio {
  height: 250px !important;
  min-height: 250px !important;
  max-height: 250px !important;
}

/* Remove extra height for wider columns in small height setting */
.tile-height-small .col-md-6 .cpt-loop-img-overlay-wrapper,
.tile-height-small .col-md-6 .ratio,
.tile-height-small .col-md-8 .cpt-loop-img-overlay-wrapper,
.tile-height-small .col-md-8 .ratio,
.tile-height-small .col-md-12 .cpt-loop-img-overlay-wrapper,
.tile-height-small .col-md-12 .ratio {
  height: 250px !important;
  min-height: 250px !important;
  max-height: 250px !important;
}

/* Force image dimensions for small height */
.tile-height-small .cpt-loop-img-overlay-wrapper img,
.tile-height-small .ratio img {
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Override aspect ratio for small height - use more rectangular format */
.tile-height-small [style*="aspect-ratio:4/3"],
.tile-height-small [style*="aspect-ratio"] {
  aspect-ratio: 16/9 !important;
}

/* Medium height setting (default) */
.tile-height-medium .cpt-loop-img-overlay-wrapper,
.tile-height-medium .ratio {
  height: 350px !important;
  min-height: 350px !important;
  max-height: 350px !important;
}

/* Keep same height for wider columns in medium height setting */
.tile-height-medium .col-md-6 .cpt-loop-img-overlay-wrapper,
.tile-height-medium .col-md-6 .ratio,
.tile-height-medium .col-md-8 .cpt-loop-img-overlay-wrapper,
.tile-height-medium .col-md-8 .ratio,
.tile-height-medium .col-md-12 .cpt-loop-img-overlay-wrapper,
.tile-height-medium .col-md-12 .ratio {
  height: 350px !important;
  min-height: 350px !important;
  max-height: 350px !important;
}

/* Force image dimensions for medium height */
.tile-height-medium .cpt-loop-img-overlay-wrapper img,
.tile-height-medium .ratio img {
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Keep default aspect ratio for medium height */
.tile-height-medium [style*="aspect-ratio"] {
  aspect-ratio: 4/3 !important;
}

/* Large height setting */
.tile-height-large .cpt-loop-img-overlay-wrapper,
.tile-height-large .ratio {
  height: 450px !important;
  min-height: 450px !important;
  max-height: 450px !important;
}

/* Keep same height for wider columns in large height setting */
.tile-height-large .col-md-6 .cpt-loop-img-overlay-wrapper,
.tile-height-large .col-md-6 .ratio,
.tile-height-large .col-md-8 .cpt-loop-img-overlay-wrapper,
.tile-height-large .col-md-8 .ratio,
.tile-height-large .col-md-12 .cpt-loop-img-overlay-wrapper,
.tile-height-large .col-md-12 .ratio {
  height: 450px !important;
  min-height: 450px !important;
  max-height: 450px !important;
}

/* Force image dimensions for large height */
.tile-height-large .cpt-loop-img-overlay-wrapper img,
.tile-height-large .ratio img {
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Use more square format for large height */
.tile-height-large [style*="aspect-ratio:4/3"],
.tile-height-large [style*="aspect-ratio"] {
  aspect-ratio: 3/2 !important;
}

/* Extra large height setting */
.tile-height-extra-large .cpt-loop-img-overlay-wrapper,
.tile-height-extra-large .ratio {
  height: 550px !important;
  min-height: 550px !important;
  max-height: 550px !important;
}

/* Keep same height for wider columns in extra large height setting */
.tile-height-extra-large .col-md-6 .cpt-loop-img-overlay-wrapper,
.tile-height-extra-large .col-md-6 .ratio,
.tile-height-extra-large .col-md-8 .cpt-loop-img-overlay-wrapper,
.tile-height-extra-large .col-md-8 .ratio,
.tile-height-extra-large .col-md-12 .cpt-loop-img-overlay-wrapper,
.tile-height-extra-large .col-md-12 .ratio {
  height: 550px !important;
  min-height: 550px !important;
  max-height: 550px !important;
}

/* Force image dimensions for extra large height */
.tile-height-extra-large .cpt-loop-img-overlay-wrapper img,
.tile-height-extra-large .ratio img {
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Use more square format for extra large height */
.tile-height-extra-large [style*="aspect-ratio:4/3"],
.tile-height-extra-large [style*="aspect-ratio"] {
  aspect-ratio: 1/1 !important;
}

/* Auto height setting - removes height restrictions and aspect ratio */
.tile-height-auto .cpt-loop-img-overlay-wrapper,
.tile-height-auto .ratio {
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
}

.tile-height-auto .cpt-loop-img-overlay-wrapper img,
.tile-height-auto .ratio img {
  height: auto !important;
  object-fit: initial !important;
}

.tile-height-auto [style*="aspect-ratio"] {
  aspect-ratio: auto !important;
  height: auto !important;
}

/* Additional fixes for height settings - Override any conflicting Bootstrap or theme styles */

/* Target specific image wrapper elements more precisely */
.tile-height-small .cpt-loop-card .ratio,
.tile-height-small .manual-loop-card .ratio,
.tile-height-small .cpt-loop-card .cpt-loop-img-overlay-wrapper,
.tile-height-small .manual-loop-card .cpt-loop-img-overlay-wrapper {
  height: 250px !important;
  overflow: hidden !important;
}

.tile-height-small .col-md-6 .cpt-loop-card .ratio,
.tile-height-small .col-md-6 .manual-loop-card .ratio,
.tile-height-small .col-md-8 .cpt-loop-card .ratio,
.tile-height-small .col-md-8 .manual-loop-card .ratio,
.tile-height-small .col-md-12 .cpt-loop-card .ratio,
.tile-height-small .col-md-12 .manual-loop-card .ratio {
  height: 280px !important;
  overflow: hidden !important;
}

/* Force all images in small height containers to fit properly */
.tile-height-small img {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Medium height additional specificity */
.tile-height-medium .cpt-loop-card .ratio,
.tile-height-medium .manual-loop-card .ratio,
.tile-height-medium .cpt-loop-card .cpt-loop-img-overlay-wrapper,
.tile-height-medium .manual-loop-card .cpt-loop-img-overlay-wrapper {
  height: 350px !important;
  overflow: hidden !important;
}

.tile-height-medium .col-md-6 .cpt-loop-card .ratio,
.tile-height-medium .col-md-6 .manual-loop-card .ratio,
.tile-height-medium .col-md-8 .cpt-loop-card .ratio,
.tile-height-medium .col-md-8 .manual-loop-card .ratio,
.tile-height-medium .col-md-12 .cpt-loop-card .ratio,
.tile-height-medium .col-md-12 .manual-loop-card .ratio {
  height: 400px !important;
  overflow: hidden !important;
}

/* Large height additional specificity */
.tile-height-large .cpt-loop-card .ratio,
.tile-height-large .manual-loop-card .ratio,
.tile-height-large .cpt-loop-card .cpt-loop-img-overlay-wrapper,
.tile-height-large .manual-loop-card .cpt-loop-img-overlay-wrapper {
  height: 450px !important;
  overflow: hidden !important;
}

.tile-height-large .col-md-6 .cpt-loop-card .ratio,
.tile-height-large .col-md-6 .manual-loop-card .ratio,
.tile-height-large .col-md-8 .cpt-loop-card .ratio,
.tile-height-large .col-md-8 .manual-loop-card .ratio,
.tile-height-large .col-md-12 .cpt-loop-card .ratio,
.tile-height-large .col-md-12 .manual-loop-card .ratio {
  height: 500px !important;
  overflow: hidden !important;
}

/* Extra large height additional specificity */
.tile-height-extra-large .cpt-loop-card .ratio,
.tile-height-extra-large .manual-loop-card .ratio,
.tile-height-extra-large .cpt-loop-card .cpt-loop-img-overlay-wrapper,
.tile-height-extra-large .manual-loop-card .cpt-loop-img-overlay-wrapper {
  height: 550px !important;
  overflow: hidden !important;
}

.tile-height-extra-large .col-md-6 .cpt-loop-card .ratio,
.tile-height-extra-large .col-md-6 .manual-loop-card .ratio,
.tile-height-extra-large .col-md-8 .cpt-loop-card .ratio,
.tile-height-extra-large .col-md-8 .manual-loop-card .ratio,
.tile-height-extra-large .col-md-12 .cpt-loop-card .ratio,
.tile-height-extra-large .col-md-12 .manual-loop-card .ratio {
  height: 600px !important;
  overflow: hidden !important;
}

/* CPT Loop Block specific image container rules */
.cpt-loop-image-container {
  aspect-ratio: 4/3;
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* Image positioning for main and hover images */
.cpt-loop-img-main,
.cpt-loop-img-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.4s ease-out;
}

.cpt-loop-img-main {
  opacity: 1;
  z-index: 1;
}

.cpt-loop-img-hover {
  opacity: 0;
  z-index: 2;
}

/* Hover effects - only when hover image exists */
.cpt-loop-img-overlay-wrapper.has-hover-image:hover .cpt-loop-img-main {
  opacity: 0;
}

.cpt-loop-img-overlay-wrapper.has-hover-image:hover .cpt-loop-img-hover {
  opacity: 1;
}

/* Height-specific overrides for CPT Loop image containers */
.tile-height-small .cpt-loop-image-container {
  aspect-ratio: 16/9 !important;
}

.tile-height-medium .cpt-loop-image-container {
  aspect-ratio: 4/3 !important;
}

.tile-height-large .cpt-loop-image-container {
  aspect-ratio: 3/2 !important;
}

.tile-height-extra-large .cpt-loop-image-container {
  aspect-ratio: 1/1 !important;
}

.tile-height-auto .cpt-loop-image-container {
  aspect-ratio: auto !important;
  height: auto !important;
}

/* Image Text Side by Side - Square Images */
.image-square-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1; /* Perfect square */
  overflow: hidden;
  border-radius: 0; /* No rounded corners */
}

.image-square {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#mainNavbar.bg-white {
  background: #fff !important;
}
#mainNavbar.bg-transparent {
  background: transparent !important;
}

.nav-link.active {
  font-weight: 600;
  color: #333333 !important;
}

/* Custom Primary Button Styling */
.btn-primary {
  background-color: #333333;
  border-color: #333333;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-weight: 500;
  border-radius: 0;
}

.btn-primary:hover {
  background-color: #222222;
  border-color: #222222;
}

.btn-primary:focus, .btn-primary.focus {
  box-shadow: 0 0 0 0.2rem rgba(51, 51, 51, 0.5);
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
  background-color: #111111;
  border-color: #111111;
}

/* Schwarzer Verlauf für Slider-Overlay, damit das Menü besser sichtbar ist */
.slider-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px; /* Verlauf geht weiter nach unten */
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.0) 100%);
}

/* Form Section Component */
.form-section h2 {
  color: #333333;
  font-weight: 500;
}

/* Ninja Forms styling within form section */
.form-section .nf-form-cont {
  margin: 0;
}

.form-section .nf-field-container {
  margin-bottom: 1.5rem;
}

.form-section .ninja-forms-field {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 0.75rem;
  font-size: 1rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-section .ninja-forms-field:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-section .nf-field-label label {
  font-weight: 500;
  color: #333333;
  margin-bottom: 0.5rem;
}

/* Hero Image Static Component */
.hero-image-static {
  margin: 0;
  padding: 0;
}

.hero-image-static .hero-image {
  object-position: center center;
}

/* Ensure proper aspect ratio and covering on mobile */
@media (max-width: 768px) {
  .hero-image-static {
    min-height: 50vh;
  }
  
  .hero-image-static .hero-image {
    object-position: center center;
  }
}

/* Object-fit fallback for older browsers */
.hero-image-static .hero-image {
  object-fit: cover;
  object-position: center;
}

/* Remove any margin from first hero image */
.hero-image-static:first-child {
  margin-top: 0 !important;
}

/* Mega Slider Scroll Down Indicator */
.scroll-down-indicator {
  animation: bounce 2s infinite;
}

.scroll-down-btn {
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem;
}

.scroll-down-btn:hover {
  opacity: 1 !important;
  transform: translateY(-2px);
}

.scroll-down-btn:hover .scroll-arrow {
  transform: translateY(2px);
}

.scroll-arrow {
  transition: transform 0.3s ease;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-8px) translateX(-50%);
  }
  60% {
    transform: translateY(-4px) translateX(-50%);
  }
}

/* Hide scroll indicator on mobile to avoid interference */
@media (max-width: 768px) {
  .scroll-down-indicator {
    display: none !important;
  }
}

.footer a, .footer p {
	color: #333333;
	font-size: 1rem;
}

/* ===== TITLE TWO IMAGES ELEMENT ===== */
.title-two-images {
  background: #ffffff;
}

.title-two-images__title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 2rem;
  line-height: 1.3;
}

.title-two-images__image-wrapper {
  position: relative;
  overflow: hidden;
}

.title-two-images__image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.title-two-images__link {
  display: block;
  text-decoration: none;
}

.title-two-images__text {
  text-align: left;
}

.title-two-images__text p {
  color: #666666;
  font-size: 1rem;
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .title-two-images__title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  .title-two-images__title {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
  }
}