/* Allgemeine Stile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    
    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;
  }
  
  .wrapper .nav-links{
    display: inline-flex;
  }
  .nav-links li{
    list-style: none;
  }
  .nav-links li a{
    color: #003e6f;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    padding: 9px 15px;
    
    transition: all 0.3s ease;
  }
/* Tastaturfokus für Dropdown-Links */
  .nav-links .drop-menu li a:focus {
    outline: 2px solid #003e6f;
    background: rgba(190, 216, 250, 0.3); 
}

  .nav-links .mobile-item{
    display: none;
  }
  .nav-links .drop-menu{
    position: absolute;
    background: rgb(255, 255, 255);
    width: 210px;
    line-height: 45px;
    top: 100%;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .nav-links li:hover .drop-menu,
  .nav-links li:focus-within .drop-menu {
    
    top: 70px;
    opacity: 1;
    visibility: visible;
    z-index: 1;
  }

  /* Menü-Interaktionen */
.nav-links .desktop-item:focus,
.nav-links .mobile-item:focus {
    outline: 2px solid #003e6f;
    background: rgba(190, 216, 250, 0.8);
}

  .drop-menu li a{
    width: 100%;
    display: block;
    padding: 0 0 0 15px;
    font-weight: 400;
    border-radius: 0px;
  }
  
  .wrapper .btn{
    color: #003e6f;
    font-size: 20px;
    cursor: pointer;
    display: none;
  }
  .wrapper .btn.close-btn{
    position: absolute;
    right: 30px;
    top: 10px;
  }
  nav input{
    display: none;
  }


.logo img{
    height: 50px;
   
}

/* 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: 0 150px 20px 150px;
}

.card {
    outline: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    padding: 11rem 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: #003e6f;
    z-index: 1;
}

.card:focus {
    border: 2px solid #003e6f;
    box-shadow: 0 0 5px #003e6f;
}


.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    height: auto;
    margin: 1rem 0rem;
    
}

/* Footer */
footer {
    text-align: center;
    background: #003e6f;
    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;
}

.contact-info {
    text-align: center;
    padding: 20px 0;
}


/* Kartenfarben */
.card:nth-child(1) {
    background-color: rgba(253, 252, 205, 0.8); /* Gelb */
}
.card:nth-child(2) {
    background-color: rgba(254, 212, 187, 0.8); /* Rosé */
    margin-bottom: 60px;
}
.card:nth-child(3) {
    background-color: rgba(190, 216, 250, 0.8); /* Blau */
}
.card:nth-child(4) {
    background-color: rgba(250, 250, 250, 0.8); /* Weiß */
    margin-bottom: 60px;
}
.card:nth-child(5) {
    background-color: rgba(210, 254, 211, 0.8); /* Grün */
}

/* Responsives Design */

@media (max-width: 1024px) {

    .wrapper .btn{
        display: block;
      }
      .wrapper .nav-links{
        position: fixed;
        height: 100vh;
        width: 100%;
        max-width: 350px;
        top: 0;
        left: -100%;
        color: #003e6f;
        background:rgba(190, 216, 250);
        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: 0px 40px;
      }
      .nav-links li{
        margin: 15px 10px;
      }
      .nav-links li a{
        padding: 0 20px;
        display: block;
        font-size: 20px;
      }
      .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: 90%;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 20px;
        padding: 20px;
    }

    .card img {
        width: 30%;
    }

    .logo img {
      height: 40px;
  }

    /* Kartenfarben */
.card:nth-child(1) {
    background-color: rgba(253, 252, 205, 0.8); /* Gelb */
}
.card:nth-child(2) {
    background-color: rgba(254, 212, 187, 0.8); /* Rosé */
    margin-left: 60px;
    margin-bottom: 0px !important;
}
.card:nth-child(3) {
    background-color: rgba(190, 216, 250, 0.8); /* Blau */
}
.card:nth-child(4) {
    background-color: rgba(250, 250, 250, 0.8); /* Weiß */
    margin-left: 70px;
    margin-bottom: 0px !important;
}
.card:nth-child(5) {
    background-color: rgba(210, 254, 211, 0.8); /* Grün */
}

}


@media (max-width: 768px) {

  
  .logo img {
    height: 30px;
}

    .cards-container {
        margin-top: 80px;
    }

    .card {
        flex-direction: column;
        width: 100%;
    }

    .background {
        min-height: 100%;
    }

    .card img{
        width: 70%;
    }

     /* Kartenfarben */
.card:nth-child(1) {
    background-color: rgba(253, 252, 205, 0.8); /* Gelb */
}
.card:nth-child(2) {
    background-color: rgba(254, 212, 187, 0.8); /* Rosé */
    margin-left: 0px;
    margin-bottom: 0px !important;
}
.card:nth-child(3) {
    background-color: rgba(190, 216, 250, 0.8); /* Blau */
}
.card:nth-child(4) {
    background-color: rgba(250, 250, 250, 0.8); /* Weiß */
    margin-left: 0px;
    margin-bottom: 0px !important;
}
.card:nth-child(5) {
    background-color: rgba(210, 254, 211, 0.8); /* Grün */
}
}






