: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 */
.fixed-icon {
  position: fixed;
  z-index: 999;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.3s ease;
}

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

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

.fixed-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 {
    width: calc(var(--icon-size, 80px) * 0.7) !important;
    height: calc(var(--icon-size, 80px) * 0.7) !important;
  }
  
  .fixed-icon-top-right {
    top: calc(var(--icon-offset-top, 10%) + 2%);
    right: calc(var(--icon-offset-right, 5%) + 2%);
  }
  
  .fixed-icon-bottom-left {
    bottom: calc(var(--icon-offset-bottom, 10%) + 2%);
    left: calc(var(--icon-offset-left, 5%) + 2%);
  }
}

/* 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: 70px; /* 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 */
  }
  
  /* Smaller logo on mobile */
  .logo-default,
  .logo-scrolled {
    max-height: 24px !important;
  }
  
  .navbar-brand img {
    max-height: 24px !important;
  }
  
  /* Larger hamburger icon */
  .navbar-toggler-icon {
    width: 30px;
    height: 30px;
    background-size: 100% 100%;
  }
}

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

@media (max-width: 991.98px) {
  h1, h2, h3, h4, h5, h6 {
    font-style: normal !important;
  }
  
  /* Reduce heading sizes on mobile */
  h1, .h1 {
    font-size: 2rem !important;
  }
  
  h2, .h2 {
    font-size: 1.75rem !important;
  }
  
  h3, .h3 {
    font-size: 1.5rem !important;
  }
  
  h4, .h4 {
    font-size: 1.25rem !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;
  transition: all 0.3s ease;
  padding: 0 2rem;
}

.halb-halb-content-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 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 {
    max-width: 500px;
    padding: 1.75rem 2rem;
  }
}

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

  .halb-halb-column {
    padding: 0 1.5rem;
  }

  .halb-halb-content-wrapper {
    max-width: 100%;
    padding: 1.5rem 1.5rem;
  }

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

@media (max-width: 575.98px) {
  .halb-halb-column {
    padding: 0 1rem;
  }

  .halb-halb-content-wrapper {
    padding: 1rem 1rem;
  }

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

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

/* Full-width backgrounds using pseudo-elements */
.halb-halb-section {
  overflow-x: hidden;
  position: relative;
  z-index: 0;
}

.halb-halb-section .row {
  position: relative;
  z-index: 1;
}

.halb-halb-column {
  position: relative;
  z-index: 1;
}

.halb-halb-column::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  width: 100vw;
  z-index: -1;
  background-color: var(--halb-bg-color, transparent);
}

.halb-halb-column-left::before {
  right: 0;
}

.halb-halb-column-right::before {
  left: 0;
}

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

.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,
  .navbar-nav .nav-link-dynamic {
    font-size: 1rem;
    color: #333333;
    font-family: var(--font-family-heading);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: border-color 0.3s ease;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .navbar-nav .nav-item.dropdown .nav-link,
  .navbar-nav .nav-item.dropdown .nav-link-dynamic {
    padding-right: 32px !important;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    border-bottom-color: var(--color-primary);
  }
  
  .navbar-nav .nav-link:focus,
  .navbar-nav .nav-link:focus-visible {
    outline: none;
    border-bottom-color: transparent;
    box-shadow: none;
  }

  .navbar-nav .dropdown-toggle {
    font-size: 1rem;
    width: 30px;
    height: 100%;
    position: absolute;
    top: 0;
    right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    margin-top: -2px;
    pointer-events: none;
  }

  .navbar-nav.gap-5 {
    gap: 3rem;
  }

  .navbar-nav .dropdown-toggle::after {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    border: none;
    margin: 0;
    content: '';
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000000' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1rem;
    transition: var(--bs-accordion-btn-icon-transition);
  }

  /* 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 0 !important;
    }

    /* Ensure nav links in mobile menu are always dark gray */
    .navbar-collapse .nav-link {
      color: #333333 !important;
      padding-left: 0 !important;
      margin-bottom: 8px !important;
      border-bottom: 0 !important;
      padding-top: 0 !important;
      font-family: 'Krona One', sans-serif !important;
      text-transform: uppercase;
    }

    .navbar-nav {
      border-top: 1px solid #e3e3e3;
      padding-top: 1rem;
    }

    .navbar-nav .dropdown-toggle {
      pointer-events: all;
      height: 43px;
      right: 8px;
    }

    .navbar-nav .dropdown-toggle.show::after {
      transform: rotate(180deg);
    }

    .navbar-nav .dropdown-toggle {
      --bs-accordion-color: var(--bs-body-color);
      --bs-accordion-bg: var(--bs-body-bg);
      --bs-accordion-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-radius 0.15s ease;
      --bs-accordion-border-color: var(--bs-border-color);
      --bs-accordion-border-width: var(--bs-border-width);
      --bs-accordion-border-radius: var(--bs-border-radius);
      --bs-accordion-inner-border-radius: calc(var(--bs-border-radius) - (var(--bs-border-width)));
      --bs-accordion-btn-padding-x: 1.25rem;
      --bs-accordion-btn-padding-y: 1rem;
      --bs-accordion-btn-color: var(--bs-body-color);
      --bs-accordion-btn-bg: var(--bs-accordion-bg);
      --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23212529' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
      --bs-accordion-btn-icon-width: 1.25rem;
      --bs-accordion-btn-icon-transform: rotate(-180deg);
      --bs-accordion-btn-icon-transition: transform 0.2s ease-in-out;
      --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23052c65' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
      --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
      --bs-accordion-body-padding-x: 1.25rem;
      --bs-accordion-body-padding-y: 1rem;
      --bs-accordion-active-color: var(--bs-primary-text-emphasis);
      --bs-accordion-active-bg: var(--bs-primary-bg-subtle);
    }

    .navbar-nav .dropdown-toggle::after {
      flex-shrink: 0;
      width: 1.75rem;
      height: 1.75rem;
      border: none;
      margin: 0;
      content: '';
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f9d616' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
      background-repeat: no-repeat;
      background-size: 1.75rem;
      transition: var(--bs-accordion-btn-icon-transition);
      margin-bottom: 10px !important;
    }
    
    /* Mobile dropdown styling */
    .navbar-nav .dropdown-menu {
      position: static !important;
      float: none;
      border: none !important;
      box-shadow: none !important;
      padding-left: 1rem;
      background-color: #fff;
    }
    
    /* Mobile dropdown items */
    .navbar-nav .dropdown-menu .dropdown-item {
      padding: 0.5rem 15px !important;
      background-color: #fff !important;
      margin: 0 !important;
      border: none !important;
      border-bottom: 1px solid #999 !important;
      display: block !important;
    }
    
    .navbar-nav .nav-item {
      border-bottom: 1px solid #e3e3e3;
    }

    .navbar-nav .dropdown-menu .dropdown-item:last-child {
      border-bottom: none !important;
    }
    
    .navbar-nav .dropdown-menu .dropdown-item.active {
      background-color: #F9D616 !important;
      color: #fff !important;
      font-weight: 600;
    }
  }

  /* Dropdown hover behavior - desktop only */
  @media (min-width: 992px) {
    .navbar-nav .dropdown:hover > .dropdown-menu {
      display: block;
    }
    
    .navbar-nav .dropdown-menu {
      margin-top: 0;
      padding: 0.5rem 0 0 0 !important;
      border-radius: 0 !important;
      border: none !important;
      box-shadow: none !important;
      background-color: #fff;
      left: 0 !important;
      min-width: 200px;
    }

    .navbar-nav .dropdown-menu .dropdown-item {
      padding: 0.5rem 15px !important;
      background-color: #fff !important;
      margin: 0 !important;
      border: none !important;
      border-bottom: 1px solid #999 !important;
      display: block !important;
    }

    .navbar-nav .dropdown-menu .dropdown-item:last-child {
      border-bottom: none !important;
    }

    .navbar-nav .dropdown-menu .dropdown-item:hover {
      background-color: #fff !important;
      color: #333 !important;
    }
    
    .navbar-nav .dropdown-menu .dropdown-item:focus {
      outline: none;
      background-color: #fff !important;
    }

    .navbar-nav .dropdown-menu .dropdown-item.active {
      background-color: #F9D616 !important;
      color: #fff !important;
      font-weight: 600;
    }
  }

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

/* Fix: prevent word-breaks in main navigation and reduce gap for mid-sized viewports */
@media (min-width: 992px) and (max-width: 1399px) {
  .navbar-nav {
    display: flex;
    flex-wrap: wrap; /* allow whole items to wrap to next line */
    align-items: center;
    gap: 0 !important; /* no spacing between items for this breakpoint */
  }

  .navbar-nav .nav-link,
  .navbar-nav .nav-link-dynamic {
    white-space: nowrap; /* prevent splitting words inside a single link */
    padding-left: 8px !important; /* reduce horizontal padding */
    font-size: 15px !important; /* reduce font size */
  }

  .navbar-nav .nav-item.dropdown .nav-link,
  .navbar-nav .nav-item.dropdown .nav-link-dynamic {
    padding-right: 23px !important;
  }

  .navbar-nav .dropdown-toggle {
    right: -2px;
  }

  .logo-default,
  .logo-scrolled {
    max-height: 32px !important; /* smaller logo for mid-sized viewports */
  }

  .navbar-brand img {
    max-height: 32px !important; /* fallback for logo sizing */
  }
}

/* Image Text Side By Side - Image Display Modes */
.image-aspect-container {
  position: relative;
  overflow: hidden;
}

.image-aspect-container img {
  width: 100%;
  height: 100%;
}

.image-cover {
  object-fit: cover;
}

.image-contain {
  object-fit: contain;
}

.image-stretch {
  object-fit: fill;
}

.image-normal {
  object-fit: none;
}

/* Image alignment for non-full-width images */
.image-text-side-by-side .itsbs-image-column.order-md-2:not(.image-full-width) .image-display-container {
  margin-left: auto;
  margin-right: 0;
}

.image-text-side-by-side .itsbs-image-column:not(.order-md-2):not(.image-full-width) .image-display-container {
  margin-left: 0;
  margin-right: auto;
}

/* Full-width image columns */
@media (min-width: 992px) {
  .image-text-side-by-side .itsbs-image-column.image-full-width {
    margin-left: calc(-50vw + 50%);
    margin-right: 0;
    width: 50vw;
    max-width: none;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .image-text-side-by-side .itsbs-image-column.image-full-width.order-md-2 {
    margin-left: 0;
    margin-right: calc(-50vw + 50%);
  }
  
  /* Right-aligned images (order-md-2) align to right */
  .image-text-side-by-side .itsbs-image-column.image-full-width.order-md-2 img {
    object-position: right center;
  }
  
  /* Left-aligned images (no order-md-2) align to left */
  .image-text-side-by-side .itsbs-image-column.image-full-width:not(.order-md-2) img {
    object-position: left center;
  }
  
  .image-text-side-by-side .itsbs-image-column.image-full-width img,
  .image-text-side-by-side .itsbs-image-column.image-full-width .image-display-container {
    width: 100%;
    max-width: none;
    height: 100%;
  }
  
  .image-text-side-by-side .itsbs-image-column.image-full-width .image-aspect-container {
    height: 100%;
  }
}

@media (max-width: 767px) {
  .image-text-side-by-side .itsbs-image-column.image-full-width {
    padding-block: 1rem 0.25rem !important;
  }
}

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

/* Masonry Lightbox */
.masonry-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.masonry-lightbox.active {
  display: flex;
}

.masonry-lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.masonry-lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.masonry-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 10001;
}

.masonry-lightbox-close::before {
  content: "×";
}

.masonry-lightbox-prev,
.masonry-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid white;
  color: white;
  font-size: 30px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.masonry-lightbox-prev:hover,
.masonry-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.masonry-lightbox-prev {
  left: 20px;
}

.masonry-lightbox-next {
  right: 20px;
}

.masonry-lightbox-caption {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  color: white;
  text-align: center;
  font-size: 14px;
  padding: 10px;
}

/* Masonry Filter Buttons */
.masonry-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.masonry-filter-btn {
  padding: 8px 20px;
  background: #f0f0f0;
  border: 2px solid transparent;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  font-weight: 500;
}

.masonry-filter-btn:hover {
  background: #e0e0e0;
}

.masonry-filter-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Masonry item cursor */
.masonry-item.has-image:not(.has-link) img {
  cursor: pointer;
}

.masonry-item.has-image:not(.has-link) img:hover {
  opacity: 0.9;
}

/* Strefen */
.style-white-on-black {
  background-color: #000;
  /* color: #fff; - Removed: Use inline style or theme colors instead */
  margin-bottom:5rem;
}

.docked-image {
margin-bottom: 5rem;
overflow: hidden; /* Verhindert horizontalen Scroll */
max-height: 190px;
}

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

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

.docked-image-left .container:before {
  position:absolute;
  top:-3rem;
  height:calc(100% + 6rem);
  width:50vw; /* Nur 50% Viewport statt 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; - Removed: Let inline styles control text color */
  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; - Removed: Let inline styles control text color */
    font-family: 'Montserrat', Arial, sans-serif !important;
}

/* Removed hardcoded colors - use inline styles instead
.style-white-on-black h2,
.style-white-on-black a {
  color: #fff;
}
*/

/* Colored Bar - inherit color from container when custom color is set */
.docked-image .container[style*="color"] h2,
.docked-image .container[style*="color"] h3,
.docked-image .container[style*="color"] p,
.docked-image .container[style*="color"] a {
  color: inherit !important;
}

/* Font helper classes for colored-bar */
.font-primary {
  font-family: var(--font-family-primary) !important;
}

.font-secondary {
  font-family: var(--font-family-heading) !important;
}

.colored-bar-pretitle {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.docked-image .colored-bar-pretitle,
.download-links .colored-bar-pretitle {
  font-size: 30px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-style: italic;
  font-weight: 300;
  color: var(--color-primary);
  margin-bottom: 0.5rem !important;
}

.pretitle-span {
  font-size: 1.7rem;
}

.docked-image .colored-bar-title,
.download-links .colored-bar-title {
  margin-bottom: 1.5rem !important;
  padding: 0 !important;
  font-size: 40px !important;
  font-family: 'Krona One', Arial, sans-serif;
  font-weight: normal;
}

.colored-bar-title {
  margin-bottom: 1.5rem !important;
  padding: 0 !important;
  font-size: 3.5rem !important;
}

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

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

.style-black-on-grey h2 {
  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 list grid layout */
.events-list {
  padding: 0;
}

.event-row {
  border-bottom: 2px solid #dee2e6;
}

.event-row:last-child {
  border-bottom: none;
}

.event-title {
  font-size: 1.7em;
  font-weight: 600;
}

.event-subtitle {
  font-size: 1.1em;
}

.event-date-location {
  font-size: 1.1em;
}

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

.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;
}

/* Desktop: add spacing like table cells */
@media (min-width: 768px) {
  .event-row {
    padding-top: 2rem !important;
    padding-bottom: 1rem !important;
  }
}

/* Mobile: compact spacing and full-width button */
@media (max-width: 767.98px) {
  .events-table-title {
    padding: 1.5rem 1rem;
    font-size: 2rem;
  }
  
  .events-table-title:after {
    width: 120px;
    height: 72px;
    left: -30px;
    bottom: -10px;
  }
  
  .event-row {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  
  .event-title {
    font-size: 1.25rem;
  }
  
  .event-subtitle,
  .event-date-location {
    font-size: 0.95rem;
  }
  
  .event-row .btn {
    width: auto;
    text-align: center;
  }
}

/* Legacy table styles (kept for compatibility) */
.table-responsive {
  padding: 0;
}

.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-overlay .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 - Preview Read More Button */
.news-section-read-more {
  position: relative;
  overflow: hidden;
}

.news-section-read-more-link {
  font-size: 1.35rem;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.news-section-read-more-link:hover {
  opacity: 0.8;
}

/* Legacy styles kept for backward compatibility */
.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: 45px;
  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;
}

/* Hero Image Natural Height - ensure overlay matches image size */
.hero-image-static .position-relative {
  display: inline-block;
  width: 100%;
  line-height: 0;
}

.hero-image-static .position-relative .hero-overlay-content {
  line-height: normal;
  padding: 2rem;
  box-sizing: border-box;
}

.hero-image-static .position-relative .hero-overlay-content .display-4 {
  font-size: clamp(1.5rem, 4vw, 3.5rem) !important;
}

.hero-image-static .position-relative .hero-overlay-content .lead {
  font-size: clamp(1rem, 2vw, 1.5rem) !important;
}

/* Hero Overlay - responsive scaling on mobile */
@media (max-width: 991.98px) {
  .hero-overlay-content .display-4 {
    font-size: 2.5rem !important;
  }
  
  .hero-overlay-content .lead {
    font-size: 1.25rem !important;
  }
  
  .hero-overlay-content img[style*="max-width"] {
    max-width: 150px !important;
  }
}

@media (max-width: 767.98px) {
  .hero-overlay-content .display-4 {
    font-size: 2rem !important;
  }
  
  .hero-overlay-content .lead {
    font-size: 1.1rem !important;
  }
  
  .hero-overlay-content img[style*="max-width"] {
    max-width: 120px !important;
  }
}

@media (max-width: 575.98px) {
  .hero-overlay-content .display-4 {
    font-size: 1.5rem !important;
  }
  
  .hero-overlay-content .lead {
    font-size: 1rem !important;
  }
  
  .hero-overlay-content img[style*="max-width"] {
    max-width: 100px !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;
}

/* Footer Background Image */
.footer.footer-has-background {
  background-position: right center !important;
  background-repeat: no-repeat !important;
  background-size: auto 100% !important;
}

@media (max-width: 991px) {
  .footer.footer-has-background {
    background-image: none !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 {
  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;
}

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

/* 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;
  overflow-y: auto;
}

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

.mega-menu-content {
  min-height: 100%;
  padding-top: 100px;
  padding-bottom: 20rem;
}

/* 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: left; /* Left aligned on mobile */
  }
  
  .mega-menu-icon {
    width: 40px;
    height: 40px;
    margin: 0; /* Remove auto margins */
  }
  
  .mega-menu-icon img {
    max-width: 25px;
    max-height: 25px;
  }
  
  .mega-menu-title {
    font-size: 1.25rem;
  }
  
  .mega-menu-links li {
    margin-bottom: 0;
  }

  /* Mobile horizontal layout using grid: icon left, body (title + submenus) on right */
  .mega-menu-section {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 0.75rem;
    align-items: start;
  }

  .mega-menu-icon {
    grid-column: 1;
    width: 48px;
    height: 48px;
    margin: 0;
  }

  .mega-menu-body {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 0.25rem; /* tight spacing between title and submenu */
  }

  .mega-menu-title {
    margin: 0;
    text-align: left;
  }

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

  .mega-menu-links li {
    margin-bottom: 0.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 STYLES - DESKTOP
   Typography/colors controlled via ACF Advanced Theme Design
   ======================================== */
@media (min-width: 992px) {
  /* Layout adjustments only - typography via ACF */
  body {
    hyphens: auto !important;
  }
  
  /* Spacing adjustments */
  h2, .header-landing h1 {
    margin-bottom: 0 !important;
    margin-top: 30px !important;
  }
  
  .header-landing h2, 
  h1 + h2, 
  h2 + h3, 
  .unterseite h1+h2 {
    margin-bottom: 60px !important;
  }
  
  .title-text-content h1+h2, 
  .title-text-content h2+h3, 
  .title-text-content h1+h2 {
    margin-top: 0 !important;
    margin-bottom: 40px !important;
  }
  
  p {
    line-height: 1.7 !important;
  }
  
  body p,
  body li {
    line-height: 1.45 !important;
  }
  
  .portfolio-item .btn-primary {
    background: #0090d0 !important;
    color: white !important;
    text-align: left !important;
    border-bottom: 3px solid white !important;
    padding: 0.1em 0 !important;
  }
  
  /* Docked Image */
  .docked-image h2 {
    font-size: 40px !important;
    /* color: white !important; - Removed: Use inline styles for color control */
    padding-bottom: 20px !important;
    padding-top: 20px !important;
  }
  
  .docked-image h3 {
    font-size: 40px !important;
    /* color: white !important; - Removed: Use inline styles for color control */
    padding-bottom: 20px !important;
    padding-top: 20px !important;
  }
  
  .docked-image p {
    /* color: white !important; - Removed: Use inline styles for color control */
    font-size: 26px !important;
  }
  
  .docked-image > .container h3 {
    text-transform: uppercase !important;
  }
  
  .docked-image p strong {
    font-weight: 600 !important;
  }
  
  .py-5.docked-image.docked-image-left {
    margin-top: 40px !important;
  }
  
  .docked-image p {
    font-size: 20px !important;
  }
  
  .docked-image h3 {
    font-size: 1.5rem !important;
    padding-top: 40px !important;
  }
  
  /* Team */
  .team-info-box .team-name {
    font-size: 30px !important;
  }
  
  .team-description-box .team-description p {
    color: white !important;
  }
  
  .team-position {
    color: #0090D0 !important;
  }
  
  .team-contact a {
    color: #333333 !important;
    text-decoration: none !important;
  }
  
  .team-description-box {
    background: transparent linear-gradient(180deg, #009FE3 0%, #1D71B8 100%) 0% 0% no-repeat padding-box !important;
  }
  
  /* Accordions */
  .accordion-button span {
    font-size: 30px !important;
    font-style: normal !important;
    text-transform: uppercase !important;
  }
  
  .accordion-button:focus {
    box-shadow: none !important;
  }
  
  .accordion-button:not(.collapsed) {
    box-shadow: none !important;
  }
  
  .accordion-button {
    background: transparent !important;
  }
  
  .accordion-body {
    background: transparent !important;
  }
  
  .accordion-button .text-muted {
    color: var(--color-1-primary) !important;
  }
  
  .accordion-button .d-flex .text-muted {
    color: var(--color-1-primary) !important;
  }
  
  .accordion-button:not(.collapsed) .text-muted {
    color: var(--color-1-primary) !important;
  }
  
  .accordion-button::after {
    background-image: none !important;
    background-color: var(--color-1-primary) !important;
    mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
    -webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
    mask-size: contain !important;
    -webkit-mask-size: contain !important;
    mask-repeat: no-repeat !important;
    -webkit-mask-repeat: no-repeat !important;
  }
  
  .accordion-button:not(.collapsed) span {
    color: var(--color-3-text) !important;
    font-style: normal !important;
  }
  
  .accordion-buttons > .btn {
    padding: 0 !important;
    font-size: 16px !important;
  }
  
  .accordion-buttons > .btn > .me-1 {
    display: none !important;
  }
  
  .accordion .accordion-header span {
    font-size: 1.5rem !important;
  }
  
  .accordion .accordion-button {
    gap: 0 !important;
    padding-left: 0 !important;
  }
  
  .accordion-body p strong {
    font-weight: 600 !important;
  }
  
  .accordion-button:after {
    scale: 1.5 !important;
  }
  
  .accordion-button > div:first-of-type {
    display: none !important;
  }
  
  /* Footer */
  .footer-column strong {
    font-weight: 700 !important;
  }
  
  .footer .row.gy-4 > div:last-of-type {
    justify-content: flex-end !important;
  }
  
  /* Teaser */
  .teaser-title {
    text-transform: uppercase !important;
  }
  
  .gradient-teaser {
    background-color: none !important;
    background: transparent linear-gradient(180deg, #009FE3 0%, #1D71B8 100%) 0% 0% no-repeat padding-box !important;
  }
  
  .gradient-teaser h2 {
    font-size: 30px !important;
    color: white !important;
    margin-top: 0 !important;
    font-size: 24px !important;
    transition: all .3s ease-out !important;
  }
  
  .gradient-teaser:hover h2 {
    padding-left: 20px !important;
  }
  
  /* Sections */
  .section-h2 h2 {
    font-size: 50px !important;
  }
  
  .py-5 > .container > h2 {
    font-size: 2rem !important;
    margin-bottom: 20px !important;
  }
  
  .container.pt-5.pb-5 {
    padding: 10px 0 10px 0 !important;
  }
  
  /* Tabs */
  .tab-image-wrapper {
    opacity: 0.5 !important;
  }
  
  .tab-image-wrapper.active,
  .tab-image-wrapper:hover {
    opacity: 1 !important;
  }
  
  #imageTab h3 {
    font-size: 1.5rem !important;
    text-transform: uppercase !important;
  }
  
  .tab-color-background {
    min-height: 85px !important;
    background: transparent linear-gradient(180deg, #009FE3 0%, #1D71B8 100%) 0% 0% no-repeat padding-box !important;
  }
  
  .tab-image-wrapper.active .tab-color-background,
  .tab-image-wrapper:hover .tab-color-background {
    transform: none !important;
    box-shadow: none !important;
  }
  
  /* Navbar */
  .navbar-brand img {
    max-height: 48px !important;
  }
  
  .hamburger-icon {
    width: 50px !important;
    height: 50px !important;
  }
  
  .mega-menu-toggle {
    padding: 0 !important;
  }
}

/* Navbar adjustments for mid-sized viewports (992-1399px) */
@media (min-width: 992px) and (max-width: 1399px) {
  .navbar-brand img,
  .logo-default,
  .logo-scrolled {
    max-height: 32px !important;
  }
}
  
  /* Startseite */
  .teaser-icon-img {
    max-width: 90px !important;
    max-height: 68px !important;
  }
  
  .card-body p {
    font-family: inherit !important;
  }
  
  .portfolio-tags > small.text-uppercase {
    border-top: solid 1px black !important;
    padding-top: 10px !important;
  }
  
  /* Fullscreen-Menu */
  .mega-menu-icon {
    width: 100px !important;
    height: 80px !important;
    border: none !important;
  }
  
  .mega-menu-icon:hover {
    border-color: none !important;
    background: none !important;
  }
  
  .mega-menu-icon img {
    max-width: 90px !important;
    max-height: 90px !important;
  }
  
  .mega-menu-title {
    text-transform: uppercase !important;
  }
  
  .mega-menu-links {
    border-left: solid 1px var(--color-1-primary) !important;
  }
  
  .mega-menu-links li {
    border-left: 0 !important;
  }
  
  /* Links */
  p a {
    color: inherit !important;
    text-decoration: none !important;
    border-bottom: solid 1px var(--color-1-primary) !important;
    font-weight: 600 !important;
  }
  
  /* Titel & Two Images */
  .title-two-images h2 {
    font-size: 2rem !important;
  }
  
  /* Icon bei Hauptseiten kleiner */
  section.title-text.pt-5.pb-5.unterseite .col-md-4 > .title-text-image > img {
    max-width: 50% !important;
  }
  
  /* Portfolio Filter */
  .portfolio-filters {
    margin-bottom: 0 !important;
  }
  
  .portfolio-tag-filters {
    margin-bottom: 20px !important;
  }
  
  .btn-group > .btn:not(:last-child):not(.dropdown-toggle),
  .btn-group > .btn:nth-child(n+3), 
  .btn-group > :not(.btn-check) + .btn {
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 20px !important;
    border-top-left-radius: 20px !important;
    background-color: #6c757d !important;
  }
  
  /* Fachkurse */
  .events-table .btn.btn-primary {
    font-family: inherit !important;
    font-size: 16px !important;
  }
  
  .events-table strong {
    font-style: italic !important;
  }
  
  /* Datenschutz (News) - Colors now set dynamically via ACF */
  
  .news-section .card-body .text-danger.fs-4 {
    color: white !important;
  }
  
  .card-body small {
    font-family: inherit !important;
  }
  
  /* Portfolio Detail */
  .single-portfolio h1 {
    font-size: 55px !important;
  }
  
  .single-portfolio .title-text-content p strong {
    font-size: 2rem !important;
    font-style: italic !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    color: var(--color-1-primary) !important;
  }
  
  .single-portfolio .title-text-content > h2 {
    color: var(--color-1-primary) !important;
    text-transform: none !important;
  }
  
  /* Halb-Halb */
  .halb-halb-content {
    margin-top: 40px !important;
  }
  
  .halb-halb-content strong {
    font-weight: 600 !important;
  }
  
  h2.halb-halb-title {
    font-size: 2.5rem !important;
    color: var(--color-1-primary) !important;
    margin-bottom: 20px !important;
  }
  
  /* Kundenfeedback */
  .testimonial-title {
    color: #0090D0 !important;
    font-size: 30px !important;
  }
  
  .testimonial-quote:after, 
  .testimonial-quote:before {
    display: none !important;
  }
  
  .author-name {
    font-weight: 300 !important;
  }


/* ========================================
   MOBILE HEADING OPTIMIERUNG
   ======================================== */
@media (max-width: 991.98px) {
  h1 {
    font-size: 2rem !important;
  }
  
  h2 {
    font-size: 1.75rem !important;
  }
  
  h3 {
    font-size: 1.25rem !important;
  }
  
  h4 {
    font-size: 1.1rem !important;
  }
  
  h5 {
    font-size: 1rem !important;
  }
  
  h6 {
    font-size: 0.9rem !important;
  }
  
  /* Colored bar title - override desktop size */
  .colored-bar-title {
    font-size: 2rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  /* Colored bar pretitle - smaller on mobile */
  .colored-bar-pretitle {
    font-size: 1.4rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Pretitle span - smaller on mobile */
  .pretitle-span {
    font-size: 1.2rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

@media (max-width: 767.98px) {
  .hero-image-static {
    min-height: 0 !important;
  }
}

@media (max-width: 575.98px) {
  h1 {
    font-size: 1.75rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
  }
  
  h3 {
    font-size: 1.1rem !important;
  }
  
  h4 {
    font-size: 1rem !important;
  }
  
  h5 {
    font-size: 0.9rem !important;
  }
  
  h6 {
    font-size: 0.85rem !important;
  }
  
  /* Colored bar title - even smaller on tiny screens */
  .colored-bar-title {
    font-size: 1.75rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  /* Colored bar pretitle - even smaller on tiny screens */
  .colored-bar-pretitle {
    font-size: 1.2rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Pretitle span - even smaller on tiny screens */
  .pretitle-span {
    font-size: 1rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Docked image - adjust transform on mobile */
  .docked-image {
    max-height: none !important;
    overflow: visible !important;
  }
  
  .docked-image > .container > .row {
    transform: translateY(56px) !important;
  }
  
  /* Footer - force left alignment on mobile */
  .footer .row.gy-4 > div {
    justify-content: flex-start !important;
  }
  
  /* Tabs - smaller text and padding on mobile */
  #imageTab h3 {
    font-size: 0.75rem !important;
  }
  
  .tab-color-background {
    min-height: 60px !important;
  }
  
  .tab-title h3 {
    padding-left: 0 !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;
	font-weight:300!important;
}

.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: flex-start;
  text-align: left;
  height: 100%;
  pointer-events: none;
}

.teaser-lottie {
  padding: 1rem;
}

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

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

/* Teaser Variante 2: Text auf farbigem Hintergrund */
.teaser-color-background {
  min-height: 250px !important;
  max-height: 250px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.teaser-color-background .p-4 {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  overflow: hidden !important;
}

.teaser-color-background .teaser-content {
  align-items: flex-start !important;
  text-align: left !important;
  height: auto !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  width: 100% !important;
  max-width: 100% !important;
}

.teaser-color-background h2,
.teaser-color-background .h4,
.teaser-color-background .teaser-text,
.teaser-color-background .btn-text {
  text-align: left !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  max-width: 100% !important;
  -webkit-hyphens: auto !important;
  -ms-hyphens: auto !important;
  hyphens: auto !important;
  -webkit-hyphenate-limit-chars: 6 3 2 !important;
  hyphenate-limit-chars: 6 3 2 !important;
}

/* ========================================
   CUSTOM STYLES - DESKTOP (continuation)
   Component-specific styling - typography via ACF
   ======================================== */
@media (min-width: 992px) {
  /* Component spacing and layout only */
  
  .portfolio-item .btn-primary {
    background: #0090d0!important;
    color: white!important;
    text-align: left;
    border-bottom: 3px solid white!important;
    padding: 0.1em 0;
  }
  
  .docked-image h3 {
    font-size: 40px!important;
    /* color: white!important; - Removed: Use inline styles for color control */
    padding-bottom: 20px;
    padding-top: 20px;
  }
  
  .docked-image h2 {
    font-size: 40px!important;
    /* color: white!important; - Removed: Use inline styles for color control */
    padding-bottom: 20px;
    padding-top: 20px;
  }
  
  .docked-image p {
    /* color: white!important; - Removed: Use inline styles for color control */
    font-size: 26px!important;
  }
  
  .team-info-box .team-name {
    font-size: 30px!important;
  }
  
  .accordion-button span {
    font-size: 30px;
    font-weight: 500;
    font-style: italic;
  }
  
  .footer-column strong {
    font-weight: 700;
  }
  
  .teaser-title {
    text-transform: uppercase;
  }
  
  .gradient-teaser h2 {
    color: white!important;
  }
  
  .team-description-box .team-description p {
    color: white!important;
  }
  
  .team-position {
    color: #0090D0!important;
  }
  
  .accordion-button:focus {
    box-shadow: none;
  }
  
  .accordion-button {
    background: transparent!important;
  }
  
  .accordion-body {
    background: transparent!important;
  }
  
  .accordion-button .text-muted {
    color: #0090D0!important;
  }
  
  .tab-image-wrapper {
    opacity: 0.5;
  }
  
  /* Navbar */
  .navbar-brand img {
    max-height: 48px;
  }
  
  .hamburger-icon {
    width: 50px;
    height: 50px;
  }
  
  .mega-menu-toggle {
    padding: 0;
  }
}

/* Navbar adjustments for mid-sized viewports (992-1399px) - override */
@media (min-width: 992px) and (max-width: 1399px) {
  .navbar-brand img,
  .logo-default,
  .logo-scrolled {
    max-height: 32px !important;
  }
}
  
  /* Startseite */
  .teaser-icon-img {
    max-width: 90px;
    max-height: 68px;
  }
  
  .card-body p {
    font-family: inherit !important;
  }
  
  .portfolio-tags > small.text-uppercase {
    border-top: solid 1px black;
    padding-top: 10px;
  }
  
  /* Fullscreen-Menu */
  .mega-menu-icon {
    width: 100px;
    height: 80px;
    border: none;
  }
  
  .mega-menu-icon:hover {
    border-color: none;
    background: none;
  }
  
  .mega-menu-icon img {
    max-width: 90px;
    max-height: 90px;
  }
  
  .mega-menu-title {
    text-transform: uppercase;
  }
  
  .mega-menu-links {
    border-left: solid 1px var(--color-1-primary);
  }
  
  .mega-menu-links li {
    border-left: 0;
  }
  
  /* Buttons - specific states only */
  .btn-primary:active,
  .btn-primary:focus {
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    border-bottom: 2px solid #0090d0 !important;
  }
  
  .btn-primary-transparent {
    border-bottom: 2px solid rgba(255, 255, 255, 1) !important;
  }
  
  .btn-primary-transparent:hover {
    border-bottom: 2px solid rgba(255, 255, 255, 1) !important;
  }
  
  /* Links */
  p a {
    color: inherit !important;
    text-decoration: none;
    border-bottom: solid 1px var(--color-1-primary);
    font-weight: 600;
  }
  
  /* Team */
  .team-contact a {
    color: #333333;
    text-decoration: none;
  }
  
  .team-description-box {
    background: transparent linear-gradient(180deg, #009FE3 0%, #1D71B8 100%) 0% 0% no-repeat padding-box;
  }
  
  /* Accordions */
  .accordion-buttons > .btn {
    padding: 0 !important;
    font-size: 16px !important;
  }
  
  .accordion-buttons > .btn > .me-1 {
    display: none;
  }
  
  .accordion .accordion-header span {
    font-size: 1.5rem !important;
  }
  
  .accordion .accordion-button {
    gap: 0 !important;
    padding-left: 0 !important;
  }
  
  .accordion-body p strong {
    font-weight: 600;
  }
  
  .accordion-button:after {
    scale: 1.5;
  }
  
  .accordion-button > div:first-of-type {
    display: none !important;
  }

  @media (max-width: 991.98px) {
    .accordion-button.accordion-button:after {
      background-color: transparent !important;
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f9d616' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
    }
  }
  
  /* Titel & Two Images */
  .title-two-images h2 {
    font-size: 2rem !important;
  }
  
  /* Icon bei Hauptseiten kleiner */
  section.title-text.pt-5.pb-5.unterseite .col-md-4 > .title-text-image > img {
    max-width: 50%;
  }
  
  /* Farbiger Balken mit Text (Docked Image) */
  
  .docked-image > .container h3 {
    text-transform: uppercase;
  }
  
  .docked-image p strong {
    font-weight: 600;
  }
  
  /* Footer */
  .footer .row.gy-4 > div:last-of-type {
    justify-content: flex-end;
  }
  
  /* Tabs */
  #imageTab h3 {
    font-size: 1.5rem !important;
    text-transform: uppercase !important;
  }
  
  .tab-color-background {
    min-height: 85px;
    background: transparent linear-gradient(180deg, #009FE3 0%, #1D71B8 100%) 0% 0% no-repeat padding-box;
  }
  
  .tab-image-wrapper.active .tab-color-background,
  .tab-image-wrapper:hover .tab-color-background {
    transform: none;
    box-shadow: none;
  }
  
  .tab-image-wrapper.active,
  .tab-image-wrapper:hover {
    opacity: 1;
  }
  
  /* Portfolio Filter */
  .portfolio-filters {
    margin-bottom: 0 !important;
  }
  
  .portfolio-tag-filters {
    margin-bottom: 20px !important;
  }
  
  .btn-group > .btn:not(:last-child):not(.dropdown-toggle),
  .btn-group > .btn:nth-child(n+3), .btn-group > :not(.btn-check) + .btn {
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 20px;
    border-top-left-radius: 20px;
    background-color: #6c757d;
  }
  
  /* Teaser */
  .gradient-teaser {
    background-color: none;
    background: transparent linear-gradient(180deg, #009FE3 0%, #1D71B8 100%) 0% 0% no-repeat padding-box;
  }
  
  .gradient-teaser h2 {
    margin-top: 0 !important;
    font-size: 24px !important;
    transition: all .3s ease-out;
  }
  
  .gradient-teaser:hover h2 {
    padding-left: 20px !important;
  }
  
  .container.pt-5.pb-5 {
    padding: 10px 0 10px 0 !important;
  }
  
  /* Docked Image */
  .py-5.docked-image.docked-image-left {
    margin-top: 40px;
  }
  
  .docked-image p {
    font-size: 20px !important;
  }
  
  .docked-image h3 {
    font-size: 1.5rem !important;
    padding-top: 40px;
  }
  
  /* Bereichstitel H2 */
  .py-5 > .container > h2 {
    font-size: 2rem !important;
    margin-bottom: 20px !important;
  }
  
  /* Fachkurse */
  .events-table .btn.btn-primary {
    font-family: inherit !important;
    font-size: 16px !important;
  }
  
  .events-table strong {
    font-style: italic;
  }
  
  /* Datenschutz (News) - Colors now set dynamically via ACF */
  
  .news-section .card-body .text-danger.fs-4 {
    color: white !important;
  }
  
  .card-body small {
    font-family: inherit !important;
  }
  
  /* JOBS */
  .accordion-button span {
    font-weight: 700;
    text-transform: uppercase;
  }
  
  /* Portfolio Detail */
  .single-portfolio h1 {
    font-size: 55px !important;
  }
  
  .single-portfolio .title-text-content p strong {
    font-size: 2rem;
    font-style: italic;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-1-primary);
  }
  
  .single-portfolio .title-text-content > h2 {
    color: var(--color-1-primary) !important;
    text-transform: none !important;
  }
  
  .halb-halb-content {
    margin-top: 40px;
  }
  
  .halb-halb-content strong {
    font-weight: 600;
  }
  
  h2.halb-halb-title {
    font-size: 2.5rem !important;
    color: var(--color-1-primary) !important;
    margin-bottom: 20px;
  }
  
  /* Kundenfeedback */
  .testimonial-title {
    color: #0090D0!important;
    font-size: 30px!important;
  }
  
  .testimonial-quote:after, .testimonial-quote:before {
    display: none!important;
  }
  
  .author-name {
    font-weight: 300!important;
  }


/* ========================================
   MOBILE SPECIFIC (max-width: 767.98px)
   ======================================== */
@media (max-width: 767.98px) {
  .hero-image-static {
    min-height: 0;
  }
}

.teaser-title {
  font-size: 1.1rem;
  font-weight: 500;
  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: 0;
  }
  
  .teaser-icon {
    height: 70px;
    margin-bottom: 0;
  }
  
  .teaser-icon-img {
    max-width: 50px;
    max-height: 50px;
  }
  
  .teaser-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .teaser-item h4,
  .teaser-item .teaser-title {
    font-size: 1rem;
  }
  
  .teaser-text {
    font-size: 16px;
  }
}
/* Icon Title Text List Component */
.icon-title-text-list {
  background-color: #fff;
}

.icon-title-text-item {
  margin-bottom: 2rem;
}

.icon-title-text-item:last-child {
  margin-bottom: 0;
}

.icon-title-text-item .icon-column {
  flex: 0 0 auto;
  padding-right: 1.5rem;
}

.icon-title-text-item .content-column {
  flex: 1 1 auto;
}

.icon-number-circle {
  width: 50px;
  height: 50px;
  background-color: #F9D616;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: #000;
  flex-shrink: 0;
}

.icon-title-text-item .item-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  margin-top: 0;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

.icon-title-text-item .item-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.icon-title-text-item .item-text p {
  margin-bottom: 0.5rem;
}

.icon-title-text-item .item-text p:last-child {
  margin-bottom: 0;
}
/* Numbered Icon Text List Component */
.numbered-icon-text-list {
  position: relative;
}

.nitl-item {
  position: relative;
}

.nitl-icon {
  width: 60px;
  height: 60px;
  background-color: #F9D616;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nitl-icon-number {
  font-family: var(--font-family-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  line-height: 1;
}

.nitl-title {
  font-family: var(--font-family-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nitl-text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #333;
}

.nitl-text p {
  margin-bottom: 0.75rem;
}

.nitl-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .nitl-icon {
    width: 50px;
    height: 50px;
  }
  
  .nitl-icon-number {
    font-size: 1.5rem;
  }
  
  .nitl-title {
    font-size: 1.5rem;
  }
  
  .nitl-text {
    font-size: 1rem;
  }
}

/* Title-Text Number Badge */
.title-text-number-badge {
  width: 50px;
  height: 50px;
  background-color: transparent;
  border: 4px solid #F9D616;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  line-height: 1;
}

@media (max-width: 767.98px) {
  .title-text-number-badge {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    font-size: 1.5rem;
    flex-shrink: 0;
  }
}

/* Impressionen Section Styles */
.impressionen h2 {
  font-size: 1.5rem; /* 24px */
  color: var(--color-1-primary);
  font-style: italic;
}

.impressionen h3 {
  font-size: 1.875rem; /* 30px */
  color: #000;
}

/* ========================================
   LOGO BAR COMPONENT
   Horizontal scrolling logo strip with optional links
   Works across all post types
   ======================================== */

.logo-bar {
  background-color: #ffffff;
  overflow-x: hidden;
}

.logo-bar-scroll-container {
  padding-left: 0;
  padding-right: 0;
}

.logo-bar-wrapper {
  width: 100%;
}

.logo-bar-scrollable {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Scrollbalken ausblenden für autoscroll */
.logo-bar-autoscroll {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.logo-bar-autoscroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Normal scrollbar styling (wenn kein autoscroll) */
.logo-bar-scrollable:not(.logo-bar-autoscroll)::-webkit-scrollbar {
  height: 8px;
}

.logo-bar-scrollable:not(.logo-bar-autoscroll)::-webkit-scrollbar-track {
  background: transparent;
}

.logo-bar-scrollable:not(.logo-bar-autoscroll)::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.logo-bar-scrollable:not(.logo-bar-autoscroll)::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.logo-bar-row {
  margin: 0 auto;
  flex-wrap: nowrap;
  min-width: 100%;
}

.logo-bar-scrollable .logo-bar-row {
  flex-wrap: nowrap;
  width: max-content;
}

/* Logo centering when fewer than 4 logos */
.logo-bar-centered .logo-bar-row {
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
}

.logo-bar-item {
  flex: 0 0 auto;
  padding: 0.5rem;
}

.logo-bar-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 80px;
  position: relative;
  background: transparent;
  border-radius: 0;
  padding: 1rem;
}

.logo-bar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo-bar-link:hover {
  transform: scale(1.05);
}

.logo-bar-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: filter 0.3s ease, opacity 0.3s ease;
  border-radius: 0 !important;
}

/* Grayscale Effect */
.logo-bar-grayscale .logo-bar-image {
  filter: grayscale(100%);
  opacity: 0.7;
}

.logo-bar-grayscale .logo-bar-link:hover .logo-bar-image,
.logo-bar-grayscale .logo-bar-image:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .logo-bar-item {
    min-width: 50%;
  }
  
  .logo-bar-image-wrapper {
    height: 60px;
    padding: 0.75rem;
  }
}

@media (min-width: 768px) {
  .logo-bar-item {
    min-width: 25%;
  }
}

/* Smooth scrolling for touch devices */
@media (hover: none) {
  .logo-bar-scrollable {
    scroll-snap-type: x proximity;
  }
  
  .logo-bar-item {
    scroll-snap-align: start;
  }
}

/* ============================================
   Image Strip with Icons Component
   ============================================ */

.image-strip-icons-section {
  margin-top: 5rem;
  margin-bottom: 5rem;
  overflow: visible;
}

.image-strip-background {
  width: 100%;
  position: relative;
  /* Flexbox centering applied via inline class */
}

.image-strip-icons-section .container {
  margin-top: 0;
  z-index: 2;
}

/* Icons positioning - absolute positioning for proper overlap */
.icon-strip-icons {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10;
}

.icon-strip-icons-top {
  top: 0;
  transform: translateY(-50%);
}

.icon-strip-icons-bottom {
  bottom: 0;
  transform: translateY(50%);
}

/* Individual icon styling */
.icon-strip-icon {
  max-width: 80px;
  max-height: 80px;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
  background: transparent;
  padding: 0;
  border-radius: 0 !important;
  box-shadow: none;
}

.icon-strip-icon-link {
  display: block;
  text-decoration: none;
}

.icon-strip-icon-link:hover .icon-strip-icon {
  transform: scale(1.1);
}

/* Title styling - centered on background image */
.icon-strip-title {
  font-weight: 600;
  margin: 0;
  margin-top: 0 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .icon-strip-icon {
    max-width: 60px;
    max-height: 60px;
  }
  
  .icon-strip-icons-top,
  .icon-strip-icons-bottom {
    gap: 0.75rem !important;
  }
  
  .icon-strip-title {
    font-size: 1.5rem !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .icon-strip-icon {
    max-width: 70px;
    max-height: 70px;
  }
}
/* ========================================
   Download Links Component
   ======================================== */

.download-links {
  position: relative;
}

.download-links-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.download-links-subtitle {
  color: #6c757d;
  font-size: 1rem;
  line-height: 1.6;
}

.download-links-list {
  margin: 0;
  padding: 0;
}

.download-link-item {
  padding-bottom: 0.5rem;
  padding-top: 0.5rem;
  border-bottom: 1.5px solid rgba(0,0,0,0.05);
}

.download-link-item:last-child {
  margin-bottom: 0;
}

.download-link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
}

.download-link-title {
  font-weight: 500;
  color: #212529;
  font-family: 'Krona One', Arial, sans-serif;
}

.download-link-btn {
  white-space: nowrap;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  background-color: transparent !important;
  border: none !important;
  border-bottom: 3px solid var(--color-primary) !important;
  border-radius: 0 !important;
  color: #333333 !important;
  font-weight: 600;
}

.download-link-btn:hover,
.download-link-btn:focus,
.download-link-btn:active {
  background-color: transparent !important;
  border: none !important;
  border-bottom: 3px solid var(--color-primary) !important;
  color: #333333 !important;
  transform: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .download-link-row {
    padding: 0.25rem 0;
  }
  
  .download-link-title {
    font-size: 0.9rem;
  }
  
  .download-link-btn {
    font-size: 0.75rem;
  }
}
