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

  /* Theme Colors */
  --color-1-primary: #007cba; /* Beispiel Hauptfarbe - kann angepasst werden */
  --color-2-secondary: #6c757d; /* Beispiel Akzentfarbe - kann angepasst werden */
  --color-3-text: #333333; /* Textfarbe */
  --color-4-background: #ffffff; /* Hintergrundfarbe */
}

/* Fixed Position Icons / Deko-Elemente */
.fixed-icon,
.absolute-icon {
  z-index: 999;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.3s ease;
}

.fixed-icon {
  position: fixed;
}

.absolute-icon {
  position: absolute;
}

.fixed-icon img,
.absolute-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0 !important;
}

.fixed-icon-top-right,
.absolute-icon-top-right {
  top: var(--icon-offset-top, 10%);
  right: var(--icon-offset-right, 5%);
}

.fixed-icon-bottom-left,
.absolute-icon-bottom-left {
  bottom: var(--icon-offset-bottom, 10%);
  left: var(--icon-offset-left, 5%);
}

/* Responsive Anpassungen für Icons */
@media (max-width: 768px) {
  .fixed-icon,
  .absolute-icon {
    width: calc(var(--icon-size, 200px) * 0.7) !important;
    height: calc(var(--icon-size, 200px) * 0.7) !important;
  }
  
  .fixed-icon-top-right,
  .absolute-icon-top-right {
    top: calc(var(--icon-offset-top, 10%) + 2%);
    right: calc(var(--icon-offset-right, 5%) + 2%);
  }
  
  .fixed-icon-bottom-left,
  .absolute-icon-bottom-left {
    bottom: calc(var(--icon-offset-bottom, 10%) + 2%);
    left: calc(var(--icon-offset-left, 5%) + 2%);
  }
}

/* Extended Bootstrap Padding Utilities */
.pt-6 {
  padding-top: 8rem !important; /* Very large top padding */
}

.pb-6 {
  padding-bottom: 8rem !important; /* Very large bottom padding */
}

.py-6 {
  padding-top: 8rem !important;
  padding-bottom: 8rem !important;
}

/* Remove rounded corners from all images */
img {
  border-radius: 0 !important;
}

/* Override Bootstrap rounded classes */
.rounded,
.rounded-1,
.rounded-2,
.rounded-3,
.rounded-4,
.rounded-5,
.rounded-circle,
.rounded-pill,
.rounded-top,
.rounded-end,
.rounded-bottom,
.rounded-start {
  border-radius: 0 !important;
}

body {
  margin: 0;
  padding: 0;
  padding-top: 118px; /* Platz für die fixe Navigation auf Desktop */
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  background: #ffffff !important;
  color: var(--color-3-text);
}

/* Responsive Padding für die fixe Navigation */
@media (max-width: 991.98px) {
  body {
    padding-top: 80px; /* Mehr Platz für mobile Navigation */
  }
}

@media (max-width: 575.98px) {
  body {
    padding-top: 75px; /* Optimiert für kleine mobile Geräte */
  }
}

/* Header Three Columns - Remove top margin from col-md-4 */
.header-three-columns .col-md-4 {
  margin-top: 0 !important;
}

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

/* Halb-Halb Section Styles */
.halb-halb-section {
  overflow: hidden;
}

.halb-halb-section .row {
  min-height: 50vh;
}

.halb-halb-column {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s ease;
}

.halb-halb-content-wrapper {
  margin: 0 auto;
  padding: 3rem 2rem;
  width: 100%;
}

.halb-halb-title {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  line-height: 1.2;
}

.halb-halb-content {
  font-size: 1.1rem;
  line-height: 1.6;
}

.halb-halb-content p:last-child {
  margin-bottom: 0;
}

/* Responsive Anpassungen */
@media (max-width: 1400px) {
  .halb-halb-content-wrapper {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 991.98px) {
  .halb-halb-section .row {
    min-height: auto;
  }

  .halb-halb-content-wrapper {
    padding: 2rem 1.5rem;
  }

  .halb-halb-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .halb-halb-content-wrapper {
    padding: 1.5rem 1rem;
  }

  .halb-halb-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .halb-halb-content {
    font-size: 1rem;
  }
}

/* Testimonial Component Styles */
.testimonial-section {
  position: relative;
}

.testimonial-content {
  position: relative;
}

.testimonial-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.testimonial-quote {
  font-size: 1.25rem;
  line-height: 1.6;
  font-style: italic;
  position: relative;
  margin: 0 0 2rem 0;
  padding: 0;
  border: none;
}

.testimonial-quote::before {
  content: '«';
  font-size: 4rem;
  font-family: serif;
  position: absolute;
  top: -1rem;
  left: -2rem;
  color: var(--color-2-secondary, #ccc);
  line-height: 1;
}

.testimonial-quote::after {
  content: '»';
  font-size: 4rem;
  font-family: serif;
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  color: var(--color-2-secondary, #ccc);
  line-height: 1;
}

.testimonial-author {
  border-top: 1px solid var(--color-4-background, #eee);
  padding-top: 1.5rem;
}

.author-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--color-1-primary, #333);
}

.author-function {
  font-size: 0.95rem;
  color: var(--color-3-text, #666);
  opacity: 0.8;
}

/* Responsive Anpassungen für Testimonial */
@media (max-width: 991.98px) {
  .testimonial-title {
    font-size: 1.75rem;
  }

  .testimonial-quote {
    font-size: 1.1rem;
  }

  .testimonial-quote::before,
  .testimonial-quote::after {
    font-size: 3rem;
  }

  .testimonial-quote::before {
    top: -0.5rem;
    left: -1.5rem;
  }

  .testimonial-quote::after {
    bottom: -1.5rem;
    right: -1.5rem;
  }
}

@media (max-width: 575.98px) {
  .testimonial-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .testimonial-quote {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .testimonial-quote::before,
  .testimonial-quote::after {
    font-size: 2.5rem;
  }

  .testimonial-quote::before {
    top: -0.25rem;
    left: -1rem;
  }

  .testimonial-quote::after {
    bottom: -1rem;
    right: -1rem;
  }

  .testimonial-author {
    padding-top: 1rem;
  }
}

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

.sevida-blue {
  color: #0090d0;
}

/* 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: transparent;
  padding: 0 1rem 2rem 0;
  border-top: none !important;
}

.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 {
  font-size: 1rem; /* 16px */
  color: white!important;
  font-weight: 300;
  padding-bottom: 0.5rem;
}

.footer h1, .footer h2, .footer h3, .footer h4, .footer h5, .footer h6 {
  font-weight: 300;
  padding-bottom: 0.5rem;
  color: white!important;
}

/* ===== 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;
  }
}

/* Portfolio Section Styles */
.portfolio-section .portfolio-card {
  border: none;
  border-radius: 0; /* Keine abgerundeten Ecken */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

.portfolio-section .portfolio-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.portfolio-section .portfolio-card .card-body {
  background-color: #fff;
  color: #333;
  border-radius: 0; /* Keine abgerundeten Ecken */
}

.portfolio-section .portfolio-card .card-text {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

.portfolio-section .portfolio-tags .badge {
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem;
}

.portfolio-section .portfolio-logo img {
  object-fit: contain;
}

.portfolio-section .portfolio-image img {
  height: 250px; /* Erhöhte Höhe für besseres Bildverhältnis (ähnlich 16:9) */
  object-fit: cover;
  width: 100%;
  border-radius: 0; /* Keine abgerundeten Ecken */
}

/* Portfolio Single Page Styles */
.portfolio-header {
  background-color: #f8f9fa;
}

.portfolio-header .portfolio-title {
  color: #333;
  font-weight: 600;
  margin-bottom: 1rem;
}

.portfolio-header .portfolio-tags .badge {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

.portfolio-header .lead {
  color: #666;
  font-size: 1.1rem;
}

/* Title-Text Component with Image Styles */
.title-text .title-text-image {
  margin-bottom: 1rem;
}

.title-text .title-text-content {
  padding: 1rem 0;
}

/* Two-line title styles */
.title-text-first-line {
  font-size: 1.8rem;
  display: block;
  line-height: 1.1;
  color: #000000 !important; /* First line black */
}

.title-text-second-line {
  font-size: 1.4rem;
  display: block;
  line-height: 1.1;
  color: #006638 !important; /* Second line green */
}

/* Responsive spacing for title-text with image */
@media (max-width: 768px) {
  .title-text .title-text-image {
    margin-bottom: 2rem;
  }

  .title-text .title-text-content {
    text-align: center !important;
  }
  
  /* Responsive font sizes for two-line titles */
  .title-text-first-line {
    font-size: 1.8rem;
  }
  
  .title-text-second-line {
    font-size: 1.4rem;
  }
}

/* Video Section Styles */
.video-section .video-wrapper {
  position: relative;
  background: #000;
  border-radius: 0;
  overflow: hidden;
}

.video-section .video-embed-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-section .video-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-section video {
  display: block;
  max-width: 100%;
  height: auto;
}

.video-section .video-description {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

.video-section .video-description h1,
.video-section .video-description h2,
.video-section .video-description h3,
.video-section .video-description h4,
.video-section .video-description h5,
.video-section .video-description h6 {
  color: #333;
  margin-bottom: 1rem;
}

/* Responsive video adjustments */
@media (max-width: 768px) {
  .video-section .video-embed-container {
    padding-bottom: 75%; /* Adjust aspect ratio for mobile if needed */
  }
}

/* Portfolio Section Styles */
.portfolio-section {
  background-color: #f8f9fa;
}

.portfolio-card {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 0;
  overflow: hidden;
}

.portfolio-card:hover {
  /* transform: translateY(-5px); */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  height: 250px; /* Erhöhte Höhe für besseres Bildverhältnis */
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none; /* Kein Zoom-Effekt */
}

/* Zoom-Effekt entfernt */

.portfolio-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

.portfolio-logo img {
  object-fit: contain;
}

.portfolio-tags .badge {
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem;
}

.portfolio-card .btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1.5rem;
}

.portfolio-card .btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

/* Single Portfolio Styles */
.portfolio-header {
  background-color: #f8f9fa;
}

.portfolio-title {
  color: #333;
  font-weight: 600;
  margin-bottom: 1rem;
}

.portfolio-featured-image {
  max-height: 400px;
  overflow: hidden;
  border-radius: 0;
}

.portfolio-featured-image img {
  object-fit: cover;
  height: 400px;
}

.portfolio-content {
  background-color: #fff;
}

/* Responsive Portfolio Styles */
@media (max-width: 768px) {
  .portfolio-image {
    height: 150px;
  }

  .portfolio-logo {
    min-height: 50px;
  }

  .portfolio-logo img {
    max-height: 50px !important;
    max-width: 100px !important;
  }

  .portfolio-featured-image,
  .portfolio-featured-image img {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .portfolio-section .col-md-6 {
    margin-bottom: 1rem;
  }

  .portfolio-image {
    height: 120px;
  }

  .portfolio-featured-image,
  .portfolio-featured-image img {
    height: 200px;
  }
}

/* Image Tabs Component */
.tab-color-background {
  background-color: var(--color-1-primary);
  transition: all 0.3s ease;
  min-height: 120px;
}

.tab-color-background[data-bg-color] {
  background-color: attr(data-bg-color);
}

.tab-image-wrapper:hover .tab-color-background {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.tab-image-wrapper.active .tab-color-background {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.image-tab-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent 60%, rgba(0,0,0,0.7));
}

.tab-image {
  width: 100%;
  height: auto;
}

/* Full Page Mega Menu Styles */
.fullpage-mega-menu-bar {
  background: white;
  z-index: 1050;
  transition: box-shadow 0.3s ease; /* Nur box-shadow animieren, nicht die gesamte Bar */
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  min-height: 70px; /* Feste Mindesthöhe für die Navigation Bar */
  width: 100%; /* Sicherstellen dass Navigation volle Breite hat */
  box-sizing: border-box; /* Padding wird in Breite eingerechnet */
}

.fullpage-mega-menu-bar .container {
  min-height: 70px; /* Gleiche Höhe für den Container */
  display: flex;
  align-items: center;
  transition: none; /* Keine Transition für den Container */
}

.fullpage-mega-menu-bar .navbar-brand {
  transition: none; /* Logo soll nicht animiert werden */
}

.fullpage-mega-menu-bar .navbar-brand img {
  transition: none; /* Logo-Bild soll nicht animiert werden */
}

/* Body-Kompensation für Scrollbar-Verschiebung */
body.mega-menu-open {
  overflow: hidden;
}

/* Mega Menu aktiv - keine Transitions für Navigation */
body.mega-menu-open .fullpage-mega-menu-bar,
body.mega-menu-open .fullpage-mega-menu-bar *,
body.mega-menu-open .fullpage-mega-menu-bar .container,
body.mega-menu-open .fullpage-mega-menu-bar .navbar-brand,
body.mega-menu-open .fullpage-mega-menu-bar img {
  transition: none !important;
}

.mega-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem 1rem; /* Gleiche Padding wie Close Button */
  transition: transform 0.3s ease;
  height: 48px; /* Feste Höhe */
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px; /* Mindestbreite für Konsistenz */
}

.mega-menu-toggle:hover {
  transform: scale(1.05);
}

.hamburger-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.hamburger-default {
  display: flex;
  flex-direction: column;
  width: 30px;
  height: 24px;
  justify-content: space-between;
}

.hamburger-default span {
  height: 3px;
  background: #333;
  border-radius: 0;
  transition: all 0.3s ease;
}

.hamburger-default.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-default.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-default.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Overlay */
.fullpage-mega-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  z-index: 1049;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.fullpage-mega-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mega-menu-content {
  height: 100%;
  padding-top: 100px;
}

/* Menu Sections */
.mega-menu-section {
  text-align: left; /* Alles links orientiert */
  padding: 2rem 1rem;
  border-radius: 0;
  /* Hover-Effekt entfernt */
}

.mega-menu-icon {
  width: 80px;
  height: 80px;
  margin: 0 0 1rem 0; /* Links orientiert - margin-left: 0 */
  border: 2px solid #e9ecef;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* Hover-Effekt nur auf Icon, nicht auf Section */
.mega-menu-icon:hover {
  border-color: var(--color-1-primary);
  background: rgba(0, 123, 186, 0.05);
}

.mega-menu-icon img {
  max-width: 50px;
  max-height: 50px;
  object-fit: contain;
}

.default-icon {
  color: var(--color-1-primary);
}

.mega-menu-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.mega-menu-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mega-menu-title a:hover {
  color: var(--color-1-primary);
}

.mega-menu-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
  font-style: italic;
}

.mega-menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  position: relative;
}

.mega-menu-links li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem; /* Einrückung für Unterpunkte */
  position: relative;
  border-left: 3px solid var(--color-1-primary); /* Blauer vertikaler Strich */
  padding-left: 1rem; /* Abstand vom blauen Strich */
  margin-left: 0.5rem; /* Platz für den Strich */
}

.mega-menu-links a {
  color: #666;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
  display: block;
  padding: 0.25rem 0;
}

.mega-menu-links a:hover {
  color: var(--color-1-primary);
  text-decoration: underline;
}

.mega-menu-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #666;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.3s ease;
  padding: 1rem;
}

.mega-menu-close:hover {
  color: var(--color-1-primary);
}

.mega-menu-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem 1rem; /* Gleiche Padding wie Toggle Button */
  font-size: 1rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  border-left: 1px solid #e9ecef;
  margin-left: 1rem;
  height: 48px; /* Gleiche Höhe wie Toggle Button */
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px; /* Gleiche Mindestbreite */
}

.mega-menu-close-btn:hover {
  color: var(--color-1-primary);
}

/* Responsive Mega Menu */
@media (max-width: 991.98px) {
  .mega-menu-content {
    padding-top: 120px;
  }
  
  .mega-menu-section {
    padding: 1.5rem 1rem;
    text-align: center; /* Auf Mobile wieder zentriert */
  }
  
  .mega-menu-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem; /* Auf Mobile wieder zentriert */
  }
  
  .mega-menu-icon img {
    max-width: 35px;
    max-height: 35px;
  }
  
  .mega-menu-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .mega-menu-content {
    padding-top: 100px;
  }
  
  .mega-menu-section {
    padding: 1rem;
  }
  
  .mega-menu-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0.75rem;
  }
  
  .mega-menu-icon img {
    max-width: 25px;
    max-height: 25px;
  }
  
  .mega-menu-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  .mega-menu-subtitle {
    font-size: 0.9rem;
  }
  
  .mega-menu-links a {
    font-size: 0.9rem;
  }
}

/* Custom Typography and Button Styles */
h2 {
	font-size: 40px!important;
}

h3 {
	font-weight:500!important;
	font-size: 14px!important;
}

.btn-primary {
  display: inline-block;
	background: transparent!important;
	color: black!important;
  font-weight: 700!important;
  font-size: 16px;
  text-transform: uppercase;
  background: transparent;
  border: none;
  border-bottom: 3px solid #0090d0;
  padding: 0.1em 0;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
	background: transparent!important;
	color: black!important;
}

p {
	line-height: 1.7;
}

.portfolio-item .btn-primary {
	background: #0090d0!important;
	color: white!important;
	text-align:left;
	  border-bottom: 3px solid white!important;
	  padding: 0.1em 0;
}

/* Portfolio Button Area */
.portfolio-button-area {
  margin-top: 0; /* Kein Abstand zum card-body */
}

.portfolio-button-area .btn {
  border: none;
  background: transparent !important;
  color: white !important;
  font-weight: 600;
}

/* Custom Button Klasse - wie btn-primary aber mit transparentem Hintergrund */
.btn-primary-transparent {
  display: inline-block;
  background: transparent !important;
  color: white !important;
  font-weight: 700 !important;
  font-size: 16px;
  text-transform: uppercase;
  text-align: left;
  border: none;
  border-radius: 0 !important;
  border-bottom: 3px solid rgba(255, 255, 255, 1) !important;
  padding: 0.1em 0;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary-transparent:hover {
  background: transparent !important;
  color: white !important;
  text-decoration: none;
  border-bottom: 3px solid rgba(255, 255, 255, 1) !important;
}

/* Teaser Section Styles */
.teaser-section {
  position: relative;
}

.teaser-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
  border-radius: 0;
}

.teaser-link {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

.teaser-link:hover {
  color: inherit;
  text-decoration: none;
}

.teaser-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.teaser-icon {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
}

.teaser-icon-img {
  max-width: 60px;
  max-height: 60px;
  object-fit: contain;
}

/* Image Text Side by Side - Title Image Styles */
.title-image {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.title-image-display {
  display: block;
  height: auto;
  border-radius: 0 !important;
}

/* Responsive title image sizing */
@media (max-width: 768px) {
  .title-image {
    justify-content: center;
  }
  
  .title-image-display {
    max-width: 150px !important;
  }
}

@media (max-width: 576px) {
  .title-image-display {
    max-width: 120px !important;
  }
}

.teaser-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-1-primary, #333);
  line-height: 1.3;
}

.teaser-text {
  font-size: 0.9rem;
  color: var(--color-3-text, #666);
  line-height: 1.5;
  flex-grow: 1;
}

/* Responsive Adjustments for Teaser */
@media (min-width: 768px) {
  .teaser-section .col-md-4 {
    max-width: 33.333333%;
  }
}

@media (min-width: 992px) {
  .teaser-section .col-lg-2 {
    flex: 0 0 auto;
    width: 16.666667%; /* 6 Spalten */
  }
}

@media (max-width: 767.98px) {
  .teaser-item {
    padding: 1.5rem 1rem;
  }
  
  .teaser-icon {
    height: 70px;
    margin-bottom: 0.75rem;
  }
  
  .teaser-icon-img {
    max-width: 50px;
    max-height: 50px;
  }
  
  .teaser-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .teaser-text {
    font-size: 0.85rem;
  }
}