.container.text-slider-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-image {
  width: 100%;
  height: 100vh; /* volle Bildschirmhöhe */
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* skaliert wie ein Background-Image */
  object-position: center; /* bleibt mittig */
  display: block;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    margin: 0;
    padding-bottom: 50px; /* Adjust based on footer height */
    word-wrap: break-word;
}

.custom-logo-link {
    display: block;
}

@media (max-width: 404px) {
  .custom-logo-link{
    display: none;
  }
}

/* Navbar styles */
.navbar-fixed-bottom, .navbar-fixed-top {
    position: fixed;
    right: 0;
    left: 0;
    z-index: 1030;
    border-width: 0 0 1px;
}

@media (min-width: 768px) {
    .navbar-fixed-bottom, .navbar-fixed-top {
        border-radius: 0;
    }
}

.navbar {
    background: transparent;
    padding: 30px 0;
    min-height: 50px;
    transition: all 0.2s ease-out;
    z-index: 3000;
}

/* Main navigation styles */
.main-navigation {
    text-align: right;
    float: right;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.main-navigation li {
    display: inline-block;
    position: relative;
}

@media (min-width: 768px) {
    .navbar-nav > li {
        float: left;
    }
}

/* Banner title styles */
.banner-title-index {
    animation: fadeInLeft 1s ease forwards;
    display: block;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 3em; /* Increase the font size for better visibility */
    text-align: center; /* Center align the title */
    transform: translate(-90%, -70%); /* Center the wrapper */
}

.banner-slideshow {
  position: relative;
  width: 100%;
  height: 50vh;
  margin-top: -10%;
}

.banner-slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.banner-slideshow .slide.active {
  opacity: 1;
}

.sidebar {
    float: right;
    width: 40%;
    box-sizing: border-box; /* Ensures padding/borders are within the 40% */
    margin-top: 5%;
    box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.5);
    margin-right: 2%;
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
}

.sidebar img {
    max-width: 100%; /* Ensures the image resizes to fit within the sidebar */
    height: auto;    /* Maintains aspect ratio */
    display: block;  /* Prevents the image from adding extra spacing */
}

.sidebar p {
    word-wrap: break-word; /* Prevents long words from overflowing */
    margin-top: 10px;      /* Adds spacing between the image and text */
}


/* Banner title styles */
.banner-title {
    animation: fadeInLeft 1s ease forwards;
    display: block;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 2em; /* Increase the font size for better visibility */
    text-align: center; /* Center align the title */
    padding: 20vh 0vh 0vh 0vh; 
    z-index:50;
}

.banner-title-index::after {
    content: "";
    display: block;
    height: 50vh; /* Set height to 50% of the viewport height */
    margin: -10% 0;
    background-image: url('cropped-cropped-Prillog_banner_ohne_Hintergrund-1.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: fadeInRight 1s ease forwards;
}

/* Text slider wrapper adjustments */
.text-slider-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    z-index: 100;
}

/* Banner button styles */
.banner-btn {
    margin-top: -1%;
    border-radius: 1px;
    text-transform: uppercase;
    display: inline-block;
    text-decoration: none;
    background-color: #F88C00; /* Original background color */
    color: #ffffff; /* Text color */
    margin: 10px;
    position: relative;
    border: 1px solid transparent; /* Initial border */
    padding: 10px 35px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border 0.3s; /* Smooth transition */
    animation: fadeInRight 1s ease forwards;
}

/* Banner button styles */
.banner-btn {
    margin-top: -1%;
    border-radius: 1px;
    text-transform: uppercase;
    display: inline-block;
    text-decoration: none;
    background-color: #F88C00; /* Original background color */
    color: #ffffff; /* Text color */
    margin: 10px;
    position: relative;
    border: 1px solid transparent; /* Initial border */
    padding: 10px 35px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border 0.3s; /* Smooth transition */
    animation: fadeInRight 1s ease forwards;
}

.init-animate.text-center.fadeInLeft{
    animation: fadeInLeft 1s ease forwards;
}

/* Animations */
@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(80px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(-180px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(80px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* General reset and box-sizing */
* {
    box-sizing: border-box;
}

.wrapper-index{
    background-image: url('cropped-BG_von_Prill_log.png');
    background-position: center;
    height:45vh;
}

@media (min-width: 1560px) {
  .wrapper-index{
      background-image: url('cropped-BG_von_Prill_log.png');
      background-position: center;
      background-size: cover;
      height:45vh;
  }
}

.wrapper-unsere-leistungen{
    background-image: url('cropped-BG_von_Prill_log.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #000000c5;
    height:30vh;
}

/* Hover effect */
.banner-btn:hover {
    background-color: transparent; /* Make background transparent */
    color: #F88C00; /* Change text color to orange */
    border: 2px solid #F88C00; /* Add orange border */
    animation: borderGrow 0.3s forwards; /* Trigger border grow animation */
}

/* Border growth animation */
@keyframes borderGrow {
    0% {
        border-width: 2px; /* Start with small border */
    }
    100% {
        border-width: 4px; /* Grow border width */
    }
}

/* Navigation items */
.main-navigation a {
    color: black; /* Set initial text color to white */
    text-decoration: none; /* Remove underline from links */
    transition: color 0.3s ease; /* Smooth transition for color change */
    padding: 10px 15px; /* Add padding for spacing around the text */
}

h1{
    display: block;
    font-size: 1.5em;
    margin-block-start: 0;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

/* Hover effect for navigation items */
.main-navigation a:hover {
    color: #F88C00; /* Change text color to orange on hover */
}

/* Spacing between navigation items */
.main-navigation li {
    margin-right: 20px; /* Add margin to the right of each item */
}

/* Remove margin from the last item */
.main-navigation li:last-child {
    margin-right: 0; /* No margin on the last item */
}

/* Optional: Styles for the active link */
.main-navigation a.active {
    font-weight: bold; /* Make the active link bold */
}

/* Additional styles to enhance navbar appearance */
.navbar {
    padding: 10px 0; /* Add padding to the navbar */
}

/* Main styles */
.main {
    font-size: 130%;
    opacity: 0.7;
    font-weight: lighter;
    width: 50%;
    padding: 50px 20px 80px 30px; /* Consolidated padding */
    margin: 5% 0 10% 2%;
    box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.219);
    float: left;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

/* Main styles */
.main_impressum {
    font-size: 130%;
    opacity: 0.7;
    font-weight: lighter;
    width: 90%;
    padding: 50px 20px 80px 30px; /* Consolidated padding */
    margin: 5% 0 10% 2%;
    box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.4);
    float: left;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

@media (max-width: 768px) {
    .main {
        font-size: 130%;
        opacity: 0.7;
        font-weight: lighter;
        width: 100%;
        padding: 50px 20px 80px 30px; /* Consolidated padding */
        margin: 5% 0 10% 2%;
        box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.4);
        float: left;
        box-sizing: border-box; /* Ensures padding doesn't affect width */
    }
    .main_impressum {
      font-size: 130%;
      opacity: 0.7;
      font-weight: lighter;
      width: 100%;
      padding: 50px 20px 80px 30px; /* Consolidated padding */
      margin: 5% 0 10% 2%;
      box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.4);
      float: left;
      box-sizing: border-box; /* Ensures padding doesn't affect width */
    }
}

/* Footer */
.site-footer{
  clear: both;
  width: 100%;
  background: #2d2d2d00;
  text-align: center;
  margin-top: -15px;
  padding: 15px;
  color:rgb(0, 0, 0);
}

/* Footer */
.site-footer-index{
  position:fixed;
  left:0;
  bottom:0;
  margin-bottom: 10px;
  width:100%;
  background:#2d2d2d00;                 /* sichtbar auf weiß */
  z-index:1000;
  text-align:center;
  color:rgb(255, 255, 255);
}

.site-footer .container{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.footer-links{
  color:rgb(0, 0, 0);
  margin-bottom:6px;
}
.footer-links a{
  color:rgb(0, 0, 0);
  text-decoration:none;
  margin:0 6px;
}
.footer-links-index a{
  color:rgb(255, 255, 255);
  text-decoration:none;
  margin:0 6px;
}
.footer-links a:hover{ color:#F88C00; }

/* Animations */
@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(80px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(-180px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(80px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar styles */
.navbar-fixed-top-index {
    position: fixed;
    right: 0;
    left: 0;
    z-index: 1030;
    background-color: transparent;
}
/* Navbar styles */
.navbar-fixed-top {
    position: fixed;
    right: 0;
    left: 0;
    z-index: 1030;
    background-color:  #2d2d2d;
}


/* Burger menu styles */
.navbar-toggle {
    display: none; /* Hide toggle by default */
    cursor: pointer; /* Change cursor to pointer */
}

.icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333; /* Color of the bars */
}

/* Navigation styles */
.main-navigation {
    display: flex; /* Flexbox for alignment */
    justify-content: flex-end; /* Align items to the right */
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Flex display for horizontal layout */
}

.main-navigation li {
    margin-left: 20px; /* Space between menu items */
}

/* From Uiverse.io by Prince4fff */ 
.card p {
    font-weight: 400;
    color: #666;
  }
  
  .card p.small {
    font-size: 100%;
  }
  
  .go-corner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 32px;
    height: 32px;
    overflow: hidden;
    top: 0;
    right: 0;
    background-color: #00838d;
    border-radius: 0 4px 0 32px;
  }
  
  .go-arrow {
    margin-top: -4px;
    margin-right: -4px;
    color: white;
    font-family: courier, sans;
  }
  
  .card1 {
    display: block;
    position: relative;
    max-width: 100%;
    background-color: #f2f8f9;
    border-radius: 4px;
    padding: 32px 24px;
    margin: 5% 5% 5% 5%;
    text-decoration: none;
    z-index: 0;
    overflow: hidden;
  }
  
  .card1:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -16px;
    right: -16px;
    background: #30615c;
    height: 32px;
    width: 32px;
    border-radius: 32px;
    transform: scale(1);
    transform-origin: 50% 50%;
    transition: transform 0.25s ease-out;
  }
  
  .card1:hover:before {
    transform: scale(21);
  }
  
  .card1:hover p {
    transition: all 0.3s ease-out;
  }
  
  .card1:hover h3 {
    transition: all 0.3s ease-out;
  }
  
  .card2 {
    display: block;
    top: 0px;
    position: relative;
    max-width: 262px;
    background-color: #f2f8f9;
    border-radius: 4px;
    padding: 32px 24px;
    margin: 12px;
    text-decoration: none;
    z-index: 0;
    overflow: hidden;
    border: 1px solid #f2f8f9;
  }
  
  .card2:hover {
    transition: all 0.2s ease-out;
    box-shadow: 0px 4px 8px rgba(38, 38, 38, 0.2);
    top: -4px;
    border: 1px solid #ccc;
    background-color: white;
  }
  
  .card2:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -16px;
    right: -16px;
    background: #00838d;
    height: 32px;
    width: 32px;
    border-radius: 32px;
    transform: scale(2);
    transform-origin: 50% 50%;
    transition: transform 0.15s ease-out;
  }
  
  .card2:hover:before {
    transform: scale(2.15);
  }
  
  .card3 {
    display: block;
    top: 0px;
    position: relative;
    max-width: 262px;
    background-color: #f2f8f9;
    border-radius: 4px;
    padding: 32px 24px;
    margin: 12px;
    text-decoration: none;
    overflow: hidden;
    border: 1px solid #f2f8f9;
  }
  
  .card3 .go-corner {
    opacity: 0.7;
  }
  
  .card3:hover {
    border: 1px solid #00838d;
    box-shadow: 0px 0px 999px 999px rgba(255, 255, 255, 0.5);
    z-index: 500;
  }
  
  .card3:hover p {
    color: #00838d;
  }
  
  .card3:hover .go-corner {
    transition: opactiy 0.3s linear;
    opacity: 1;
  }
  
  .card4 {
    display: block;
    top: 0px;
    position: relative;
    max-width: 262px;
    background-color: #fff;
    border-radius: 4px;
    padding: 32px 24px;
    margin: 12px;
    text-decoration: none;
    overflow: hidden;
    border: 1px solid #ccc;
  }
  
  .card4 .go-corner {
    background-color: #00838d;
    height: 100%;
    width: 16px;
    padding-right: 9px;
    border-radius: 0;
    transform: skew(6deg);
    margin-right: -36px;
    align-items: start;
    background-image: linear-gradient(-45deg, #8f479a 1%, #dc2a74 100%);
  }
  
  .card4 .go-arrow {
    transform: skew(-6deg);
    margin-left: -2px;
    margin-top: 9px;
    opacity: 0;
  }
  
  .card4:hover {
    border: 1px solid #cd3d73;
  }
  
  .card4 h3 {
    margin-top: 8px;
  }
  
  .card4:hover .go-corner {
    margin-right: -12px;
  }
  
  .card4:hover .go-arrow {
    opacity: 1;
  }

  .cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 2147483645;
    box-sizing: border-box;
    width: 100%;
  
    background-color: #F1F6F4;
  }
  
  .cookie-consent-banner__inner {     
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 0;
  }
  
  .cookie-consent-banner__copy { 
    margin-bottom: 16px;
  }

  
  .cookie-consent-banner__header {
    margin-bottom: 8px;
    
    font-family: "CeraPRO-Bold", sans-serif, arial;
    font-weight: normal;
    font-size: 16px;
    line-height: 24px;
  }
  
  .cookie-consent-banner__description {
    font-family: "CeraPRO-Regular", sans-serif, arial;
    font-weight: normal;
    color: #838F93;
    font-size: 16px;
    line-height: 24px;
  }
  
  .cookie-consent-banner__cta {
    box-sizing: border-box;
    display: inline-block;
    min-width: 164px;
    padding: 11px 13px;
      
    border-radius: 2px;
    
    background-color: #2CE080;
     
    color: #FFF;
    text-decoration: none;
    text-align: center;
    font-family: "CeraPRO-Regular", sans-serif, arial;
    font-weight: normal;
    font-size: 16px;
    line-height: 20px;
  }
  
  .cookie-consent-banner__cta--secondary { 
    padding: 9px 13px;
    
    border: 2px solid #3A4649;
    
    background-color: transparent;
    
    color: #2CE080;
  }
  
  .cookie-consent-banner__cta:hover {
    background-color: #20BA68;
  }
  
  .cookie-consent-banner__cta--secondary:hover {
    border-color: #838F93;
      
    background-color: transparent;
    
    color: #22C870;
  }
  
  .cookie-consent-banner__cta:last-child {
    margin-left: 16px;
  }

/* Show the burger menu on smaller screens */
@media (max-width: 768px) {
    .navbar-toggle {
        display: block; /* Show toggle button */
        float: right;
        margin: 20px;
    }

    .main-navigation {
        display: none; /* Hide the menu initially */
        flex-direction: column; /* Vertical layout for the menu */
        position: absolute; /* Positioning for overlay */
        width: 100%; /* Full width */
        top: 50px; /* Position below the navbar */
        z-index: 1000;
    }

    .main-navigation.active {
        display: flex; /* Show menu when active */
        flex-direction: column; /* Change to column layout when active */
        align-items: flex-start; /* Align items to the start */
    }
}

/* ---------- MOBILE NAVIGATION VERTIKAL ---------- */
@media (max-width: 768px) {

  /* Navbar: kompakt und mit Hintergrund */
  .navbar {
    padding: 10px 15px;
  }

  .navbar #navbar-menu.active {
    background-color: #5b7774e0; /* diese Regel wirkt nur auf das Menü selbst */
  }

  /* Burger-Icon sichtbar */
  .navbar-toggle {
    display: block;
    cursor: pointer;
  }

  .navbar-toggle .icon-bar {
    background-color: #fff;
    height: 3px;
    width: 28px;
    margin: 5px 0;
  }

  /* Navigation: anfangs unsichtbar */
  .main-navigation {
    display: none;            /* wird erst mit .active eingeblendet */
    position: absolute;
    top: 100%;                /* direkt unter der Navbar */
    right: 0;
    width: 50%;
    background-color: #2d2d2d; /* dunkler Hintergrund */
    flex-direction: column;   /* vertikale Ausrichtung */
    padding: 0;
    margin: 0;
  }

  /* Wenn die .active-Klasse gesetzt ist */
  .main-navigation.active {
    display: flex;
  }

  /* Liste vertikal & volle Breite */
  .main-navigation ul {
    flex-direction: column;
    width: 100%;
  }

  .main-navigation li {
    width: 100%;
    margin: 0;               /* keine seitlichen Abstände */
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .main-navigation a {
    display: block;
    width: 100%;
    padding: 14px 20px;
    color: black;
    text-align: right;
  }

  .main-navigation a:hover {
    background-color: #444;
    color: #F88C00;
  }
}