/* Allgemeine Stile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: Poppins;
    src: url(../fonts/Poppins-Light.ttf);
	
}

body {
    font-family: Poppins;
    
    background-color: #f0f4f8;
}
 
/*Navigation*/

nav{
    position: fixed;
    z-index: 99;
    width: 100%;
    padding-top: 30px;
    background: rgba(253, 254, 254, 0.9);
  }
  nav .wrapper{
    position: relative;
    max-width: 1000px;
    height: 70px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    padding: 30px 0px 50px 0px;
  }
  
  .wrapper .nav-links{
    display: inline-flex;
  }
  .nav-links li{
    list-style: none;
  }
  .nav-links li a{
    color: #126350;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    padding: 9px 15px;
    
    transition: all 0.3s ease;
  }


  

  /* Menü-Interaktionen */
.nav-links .desktop-item:focus,
.nav-links .mobile-item:focus {
    outline: 2px solid #126350;
    background: rgba(170, 171, 174, 0.8);
}

  
  .wrapper .btn{
    color: #126350;
    font-size: 20px;
    cursor: pointer;
    display: none;
  }
  .wrapper .btn.close-btn{
    position: absolute;
    right: 30px;
    top: 10px;
    color: #fff;
  }
  nav input{
    display: none;
  }


.logo img{
    height: 100px;
    padding: 10px 0px 10px 0px;
   
}

h1{
  font-size: 1.7rem;
  color: #126350;
  margin-left: 40px ;
  margin-top: 40px;
  text-align: center;
}

h2{
  font-size: 1.3rem;
  }

   h3{
  font-size: 1.3rem;
  }
  
  p{
  font-size: 1.2rem;
  }

/* Hintergrund */
.background {
    position: relative; 
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
   
    min-height: 90vh; 
    display: flex;
    flex-direction: column;
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 90%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 1;
    pointer-events: none; 
}

.background-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out; 
}

.background-slider img:first-child {
    opacity: 1; /* Zeige das erste Bild beim Start */
}


.cards-container {
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40rem 1rem 1rem 25rem;
  }

.card {
    outline: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 1rem 1rem 1rem;
    border-radius: 5px;
    text-align: start;
    width: 20%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: #f3f6f6;
    z-index: 1;
}

.card:focus {
    border: 2px solid #126350;
    box-shadow: 0 0 5px #126350;
}


.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    height: auto;
    margin: 1rem 0rem;
    
}

/* Transport Sektion */
.transport-section {
  display: flex;
  flex-direction: row;
  padding: 50px 20px 20px 20px;
}

.transport-text{
  max-width: 50%;
  margin-left: 40px;
}

.transport-text h2{
  font-size: 1.5rem;
  margin-bottom: 20px;
}


.transport-image {
  width: 50%;
  margin: 10px;
  position: relative;
}

.Zertifikat{
  margin-top: 30px;
  display: flex;
  text-align: center;
}

.Zertifikat img{
width: 35%;
}

.slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.slides-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.slide.active {
  display: block;
}

.prev-slide, .next-slide {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1;
}

.prev-slide {
  left: 0;
}

.next-slide {
  right: 0;
}

.prev-slide:hover, .next-slide:hover {
  background-color: rgba(0, 0, 0, 0.8);
}


/* Historie Sektion */
.historie-section {
  display: flex;
  flex-direction: row-reverse;
  padding: 50px 20px 20px 20px;
  background-color: #12635045;
}

.historie-image {
   width: 50%;
  margin: 10px;
  position: relative; 
}

.historie-text {
  width: 50%;
  margin: 10px;
  padding: 20px;
}

/* Aktuelles Sektion */

.aktuelles-section {
  display: flex;
  flex-direction: row;
  padding: 50px 20px 20px 20px;
}

.aktuelles-text{
  width: 40%;
  margin-left: 40px;
}

.aktuelles-text h2{
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.aktuelles-image{
  width: 50%;
}

.aktuelles-image img{
  width: 100%;
}

button{
  border: none;
  margin-top: 10px;
}

button a{
  text-decoration: none;
  font-size: 1.2rem;
  color: #126350;
}

/* Kontakt Sektion */

#kontakt {
  background: url('../images/start_home.jpg') no-repeat center bottom;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
}

#kontakt::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.7); /* Weißer Schleier über Bild */
  z-index: 0;
}

#kontakt > * {
  position: relative;
  z-index: 1;
}


.kontakt-section {
  display: flex;
  flex-direction: column;
  background-color: #f9f9f9;
  padding: 3rem 1rem;
}

.kontakt-wrapper {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.kontakt-image {
  flex: 1 1 40%;
}

.kontakt-image img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.kontakt-info {
  flex: 1 1 55%;
}

.kontakt-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.kontakt-details h3 {
  margin-bottom: 0.25rem;
}

.karte {
  margin-top: 2rem;
}

.karte img {
  width: 50%;
  max-width: 500px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.impressum {
  padding: 130px 50px 50px 80px;
  background-color: #12635045;
  color: #333;
  line-height: 1.6;
}

.impressum h1{
  color: #333;   
  font-size: 1.7rem ;
}
.impressum h2 {
  color: #333;
  margin-top: 1.3em;
  font-size: 1.3rem;
}

.impressum h3 {
  color: #333;
  margin-top: 1.2em;
  font-size: 1.2rem;
}

.impressum h4 {
  color: #333;
  margin-top: 1.1em;
  font-size: 1.1rem;
}

.impressum a {
  color: #000000;
  text-decoration: underline;
}

.impressum p {
  color: #000000;
  font-size: 1.1rem;
}

.impressum a:focus-visible {
  outline: 3px solid #126350;
  outline-offset: 4px;
  background-color: rgba(190, 216, 250, 0.2);
  border-radius: 4px;
}




/* Footer */
footer {
    text-align: center;
    background: #126350;
    color: white;
    padding: 1rem 0;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
}

.footer-links a{
    list-style: none;
    text-decoration: none;
    color: #fff;
}



/* Kartenfarben */
.card:nth-child(1) {
    background-color:#576b66;
}
.card:nth-child(2) {
    background-color:#576b66;
   
}
.card:nth-child(3) {
    background-color:#576b66;
}
.card:nth-child(4) {
    background-color: #576b66;
    
}

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #333;
  color: #fff;
  padding: 5px;
  border-radius: 10%;
  cursor: pointer;
  display: none;
}

.scroll-to-top i {
  font-size: 20px;
}

.scroll-to-top:hover {
  background-color: #444;
}

/* Responsives Design */
@media (max-width: 1024px) {

  .transport-text h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.aktuelles-text h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

  h2{
  font-size: 1.4rem;
  }

   h3{
  font-size: 1.3rem;
  }
  
  p{
  font-size: 1.2rem;
  }

  .wrapper .btn{
      display: block;
    }
    .wrapper .nav-links{
      position: fixed;
      height: 100vh;
      width: 100%;
      max-width: 350px;
      top: 0;
      left: -100%;
      color: #fff;
      background:#576b66;
      display: block;
      padding: 50px 10px;
      line-height: 50px;
      overflow-y: auto;
      box-shadow: 0px 15px 15px rgba(0,0,0,0.18);
      transition: all 0.3s ease;
    }
    /* custom scroll bar */
    ::-webkit-scrollbar {
      width: 10px;
    }
    ::-webkit-scrollbar-track {
      background: #242526;
    }
    ::-webkit-scrollbar-thumb {
      background: #3A3B3C;
    }
    #menu-btn:checked ~ .nav-links{
      left: 0%;
    }
    #menu-btn:checked ~ .btn.menu-btn{
      display: none;
    }
    #close-btn:checked ~ .btn.menu-btn{
      display: block;
    }

    nav{
      padding-top: 0px;
    }

    nav .wrapper{
      padding: 50px 40px;
    }
    .nav-links li{
      margin: 15px 10px;
    }
    .nav-links li a{
      padding: 0 20px;
      display: block;
      font-size: 20px;
      color: #fff;
    }
    .nav-links .drop-menu{
      position: static;
      opacity: 1;
      top: 65px;
      visibility: visible;
      padding-left: 20px;
      width: 100%;
      max-height: 0px;
      overflow: hidden;
      box-shadow: none;
      transition: all 0.3s ease;
    }

    #showDrop:checked ~ .drop-menu{
      max-height: 100%;
    }

    #showDrop2:checked ~ .drop-menu{
      max-height: 100%;
    }
    .nav-links .desktop-item{
      display: none;
    }
    .nav-links .mobile-item{
      display: block;
      color: #003e6f;
      font-size: 20px;
      font-weight: 500;
      padding-left: 20px;
      cursor: pointer;
      border-radius: 5px;
      transition: all 0.3s ease;
    }
    .nav-links .mobile-item:hover{
      background: rgb(254, 254, 254);
    }
    .drop-menu li{
      margin: 0;
    }
    .drop-menu li a{
      border-radius: 5px;
      font-size: 18px;
    }
  
  .background::before {
      height: 100%; /* Passen sich dynamisch an */
  }

  .cards-container {
      flex-direction: column;
      align-items: center;
      margin-top: 90px;
     
      padding: 20px;
  }

  .card {
      width: 75%;
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 20px;
      padding: 20px;
  }

  .card img {
      width: 50%;
  }

  .logo img {
    height: 100px;
    padding: 10px 0px 10px 0px;
}

  /* Kartenfarben */
.card:nth-child(1) {
  background-color: #576b66;
}
.card:nth-child(2) {
  background-color: #576b66;
  
  
}
.card:nth-child(3) {
  background-color: #576b66;
}
.card:nth-child(4) {
  background-color:#576b66;
  
  
}
.card:nth-child(5) {
  background-color: #576b66;
}

.slider{
  height: 300px;
}

}



@media (max-width: 768px) {

  h1{
    font-size: 1.1rem;
    color: #126350;
    margin-top: 40px;
    margin-left: 0px;
    padding-left: 10px;
    padding-right: 10px;
    text-align:start;
  }

  h2{
  font-size: 1rem;
  }

   h3{
  font-size: 1rem;
  }
  
  p{
  font-size: 0.9rem;
  }
  .logo img {
    height: 85px;
    padding: 15px 0px;
}

nav .wrapper{
  padding: 35px 40px;
}

    .cards-container {
        margin-top: 80px;
    }

    .card {
        flex-direction: column;
        width: 80%;
    }

    .background {
        min-height: 100%;
    }

    .card img{
        width: 70%;
    }

     .impressum {
    padding: 100px 20px 30px 20px;
  }
  .impressum h1 {
    font-size: 1.5rem;
  }
  .impressum h2 {
    font-size: 1.2rem;
  }
  .impressum h3 {
    font-size: 1.1rem;
  }
  .impressum p {
    font-size: 1rem;
  }

  .impressum ul li{
    padding-left: 30px;
  }

     /* Kartenfarben */
.card:nth-child(1) {
    background-color:#576b66;
}
.card:nth-child(2) {
    background-color:#576b66;
    margin-left: 0px;
    margin-bottom: 0px !important;
}
.card:nth-child(3) {
    background-color: #576b66;
}
.card:nth-child(4) {
    background-color: #576b66;
    margin-left: 0px;
    margin-bottom: 0px !important;
}

.slider{
  height: 200px;
}

  .prev-slide, .next-slide {
    font-size: 18px;
  }

 .transport-section {
    flex-direction: column;
  }
  .transport-image {
    width: 100%;
    margin: 0px;
    
  }
  .transport-text {
    max-width: 100%;
    margin: 10px;
  }

  .transport-text h2{
    font-size: 1rem;
  }

  .transport-text p{
    font-size: 0.9rem;
  }

  .aktuelles-section {
    flex-direction: column;
  }

  .aktuelles-text{
   width: 100%;
    margin: 10px;
}

.aktuelles-text h2{
  font-size: 1rem;
  margin-bottom: 20px;
}

.aktuelles-text p{
  font-size: 0.9rem;
  
}

.aktuelles-image{
  width: 100%;
    margin: 0px;
}

.aktuelles-image img{
  width: 100%;
}

  .historie-section {
    flex-direction: column;
  }
  .historie-image {
    width: 100%;
    margin: 0px;
  }
  .historie-text {
    width: 100%;
    margin: 10px;
    padding: 0px;
  }

  .historie-text h2{
  font-size: 1rem;
  margin-bottom: 20px;
}

.historie-text p{
  font-size: 0.9rem;
  
}
  
  .kontakt-wrapper {
    flex-direction: column;
  }

  .kontakt-details {
    grid-template-columns: 1fr;
  }

  .karte img {
    width: 40%;
    margin-bottom: 20px;
  }

}












