


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "karol-sans", sans-serif;
  font-weight: 300;
  font-style: normal;
}

body {
  color: #333;
  line-height: 1.6;
  background-color: #fbfaf6;
}

header {
  position: relative;
  overflow: hidden;
}


/* Header and navigation */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5rem 2rem;
  background: transparent;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 100%;
}

.menu-toggle {
  display: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 3rem;
  align-items: center;
}

.nav-links li {
  list-style: none;
}


.nav-links a {
  text-decoration: none;
  color: #fbfaf6;
  font-size: 2.6rem;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
  top: 48px;
}

.nav-links a:hover {
  color: #cfdd7b;
}

.nav-logo {
  position: relative;
}

.nav-logo img {
  position: relative;
  top: -44px;
  height: 380px;
  width: auto;
  display: block;
}

.hero{
  max-height: 1080px;
}


.hero img {
  width: 100vw;
  height: 100vh;
  display: block;
}

.hero .section-arrow{
  width: 50px;
  height: 50px;
  margin: 2rem auto 0;
  background: url("img/arrowheader.svg") center / contain no-repeat;
  background-size: contain;
  cursor: pointer;
  transition: background 0.3s ease;
  position: relative;
  top: -20rem;
}

.section {
  padding: 4rem 5rem;
  margin: auto;
}

.section.light {
  background: #fbfaf6;
}

.section h2 {
  text-align: center;
  color: #40637D;
  margin-bottom: 1.4rem;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}


.section p {
  text-align: center;
  color: #40637D;
  font-size: 23px;
  line-height:28px;

}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  padding-top: 4rem;
}

.gallery img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.image-center {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.image-center img {
  width: 100%;
  border-radius: 5px;
}

.image-center img {
  object-fit: cover;
  border-radius: 5px;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.about img {
  height: 600px;
  object-fit: cover;
  border-radius: 15px;
  order: 2;
}

.about > div {
  order: 1;
}

table {
  width: 100%;
  border-collapse: collapse; /* Verhindert doppelte Rahmenlinien */
}

th, td {
  padding: 12px;             /* Innenabstand für bessere Lesbarkeit */
  color: #40637D;
  line-height: 15px;
}


/* Entfernt die unterste Trennlinie, damit sie nicht doppelt wirkt */
tr:last-child td {
  border-bottom: none;
}

#preise{
  height: auto;
  background-color: #CFDD7B;
  align-items: center;
}

#preise > div {
  width: min(100%, 560px);
  margin: 0 auto;
}

#preise h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#preise td {
  padding: 4px 0;
  font-size: 23px;
  line-height: 1.35;
}

#preise td:last-child {
  text-align: right;
}

.contact {
  text-align: center;
  margin-bottom: 2rem;
}
.contact-info p {
 color: #fbfaf6;
}

.contact a {
  color: #40637D;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

#kontakt {
  background: url('img/Endbild.jpg') center/cover no-repeat;
  background-size: cover;
  color: #fbfaf6;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  max-width: none;
  margin-top: 3rem;
  width: 100%;
}

#kontakt h2 {
  color: #fbfaf6;
}

#kontakt > * {
  position: relative;
  z-index: 2;
}

#kontakt a {
  color: #fbfaf6;
  text-decoration: underline;
}
footer {
  background-color: #40637D;
  color: #fbfaf6;
  text-align: center;
  padding: 2rem 2rem;
  font-size: 0.8rem;
  position: relative;
}

.footer-content .section-arrow {
  margin-top: 15rem;
  margin-right: -25rem;
  background: url(img/arrowheader.svg) center / contain no-repeat;
  transform: matrix(-1, 0, 0, -1, 0, 0);
}
.footer-content .section-arrow:hover {
  margin-right: -25rem;
  background: url('img/Komponente\ 5\ –\ 1.svg') center/contain no-repeat;
  transform: matrix(-1, 0, 0, -1, 0, 0);
}

footer h2 {
  margin-bottom: 1rem;
}

.section::after {
  content: '';
  display: none;
  width: 40px;
  height: 40px;
  margin: 2rem auto 0;
  background: url('img/Komponente\ 6\ –\ 2.svg') center/contain no-repeat; 
  background-size: contain;
  cursor: pointer;
  transition: background 0.3s ease;
}

.section:hover::after {
  background: url('img/Komponente\ 5\ –\ 1.svg') center/contain no-repeat;
}

.section-arrow {
  width: 50px;
  height: 50px;
  margin: 2rem auto 0;
  background: url('img/Komponente\ 6\ –\ 2.svg') center/contain no-repeat;
  background-size: contain;
  cursor: pointer;
  transition: background 0.3s ease;
}

.section-arrow:hover {
  background: url('img/Komponente\ 5\ –\ 1.svg') center/contain no-repeat;
}

#kontakt::after {
  display: none;
}


@media(min-width: 1920px) {

  .hero .section-arrow{
  width: 50px;
  height: 50px;
  margin: 2rem auto 0;
  background: url("img/arrowheader.svg") center / contain no-repeat;
  background-size: contain;
  cursor: pointer;
  transition: background 0.3s ease;
  position: relative;
  top: -35rem;
}

  #leistungen p{
    padding: 0 40rem;
  }

}

@media (max-width: 1365px) {
  .navbar {
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0.5rem;
    left: 0;
    transform: none;
  }

  .nav-links.open a:active{
    background: #cfdd7b;
  }

  .logo-mobile {
    position: relative;
    width: auto;
  }

  .hero picture {
    display: block;
    width: 100%;
  }

  .hero{
  max-height: 100vh;
}

  .hero img{
    display: block;
    height: 100vh;
    width: 100vw;
  }

  .nav-links {
    position: absolute;
    top: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    margin: 0;
    background: transparent;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 15;
  }


  .nav-links a {
    font-size: 1.8rem;
    letter-spacing: 1.5px;
    color: #fbfaf6;
    text-align: center;
  }

  .nav-logo {
    position: absolute;
    left: 2rem;
    top: 45%;
    transform: translateY(-150%);
    z-index: 18;
  }

  .nav-logo img {
    height: 15rem;
    width: auto;
    top: 3rem;
  }


  .hero .section-arrow{
  width: 40px;
  height: 40px;
  margin: 2rem auto 0;
  background: url("img/arrowheader.svg") center / contain no-repeat;
  background-size: contain;
  cursor: pointer;
  transition: background 0.3s ease;
  position: relative;
  top: -25rem;
}

.hero .section-arrow:hover {
  background: url('img/Komponente\ 5\ –\ 1.svg') center/contain no-repeat;
}

  .menu-toggle {
    display: block;
    position: absolute;
    top: 4rem;
    right: 2.5rem;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    border-radius: 0;
    cursor: pointer;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
  }

  .menu-toggle span {
    display: block;
    width: 22px;
    height: 3px;
    background: #fbfaf6;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .menu-toggle:hover span {
    background: #cfdd7b;
  }

  .menu-toggle span:nth-child(1) {
    transform-origin: top left;
  }

  .menu-toggle span:nth-child(2) {
    margin: 5px 0;
  }

  .menu-toggle span:nth-child(3) {
    transform-origin: bottom left;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links li {
    width: auto;
  }

  .nav-links img{
    transform: translateX(-150%);
    top: 20rem;
  }

  .nav-links a {
    color: #fbfaf6;
    font-size: 1.5rem;
  }


  .section {
    padding: 2rem 1rem;
    width: 100%;
    overflow: hidden;
  }

  th,
  td {
    padding: 12px 0;
    font-size: 16px;
  }

  .about {
    align-items: center;
    display:block;
  }


  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .gallery img {
    width: 100%;
    height: auto;
    border-radius: 5px;
  }

  .footer-content .section-arrow {
  margin-top: 15rem;
  margin-right: -10rem;
  background: url(img/arrowheader.svg) center / contain no-repeat;
  transform: matrix(-1, 0, 0, -1, 0, 0);
}
.footer-content .section-arrow:hover {
  margin-right: -10rem;
  background: url('img/Komponente\ 5\ –\ 1.svg') center/contain no-repeat;
  transform: matrix(-1, 0, 0, -1, 0, 0);
}

  .image-center img {
    width: 100%;
    order: 2;
    border-radius: 5px;
}
.about img {
  width: 100%;
  height: auto;
    order: 2;
    border-radius: 5px;
}


  .image-center,
  .about {
    grid-template-columns: 1fr;
  }

  @media (min-width: 320px){
      .hero .section-arrow{
  width: 40px;
  height: 40px;
  margin: 2rem auto 0;
  background: url("img/arrowheader.svg") center / contain no-repeat;
  background-size: contain;
  cursor: pointer;
  transition: background 0.3s ease;
  position: relative;
  top: -10rem;
}
      .hero img{
      display: block;
      height: 100vh;
      width: 100vw;
    }
      .nav-links img {
        transform: translateX(-130%);
        top: 20rem;
    }
  }
  @media (min-width: 360px){
    .footer-content .section-arrow {
    margin-top: 10rem;
    margin-right: 7rem;
    background: url(img/arrowheader.svg) center / contain no-repeat;
    transform: matrix(-1, 0, 0, -1, 0, 0);
  }
  .footer-content .section-arrow:hover {
    margin-top: 10rem;
    margin-right: 7rem;
   background: url('img/Komponente\ 5\ –\ 1.svg') center/contain no-repeat;
    transform: matrix(-1, 0, 0, -1, 0, 0);
  } 

    .nav-links img {
        transform: translateX(-140%);
        top: 20rem;
    }
  }
   @media (min-width: 540px){
    .nav-links img {
        transform: translateX(-180%);
        top: 20rem;
    }
  }
     @media (min-width: 530px){
    .nav-links img {
        transform: translateX(-30%);
        top: 20rem;
    }
  }
     @media (min-width: 712px){
       .nav-links img {
         transform: translateX(-20%);
         top: 20rem;
    }
  }
     @media (min-width: 650px) {
        .nav-links img {
            transform: translateX(-195%);
            top: 20rem;
        }
    }
  
    @media (min-width: 414px){
       .nav-links img {
        transform: translateX(-150%);
        top: 20rem;
    }
  }
   @media (min-width: 412px){
    .nav-links img {
        transform: translateX(-145%);
        top: 20rem;
    }
  }
  @media (min-width: 425px){
      .nav-links img {
        transform: translateX(-145%);
        top: 20rem;
    }
  }
    @media (min-width: 500px){
      .nav-links img {
        transform: translateX(-170%);
        top: 20rem;
    }
  }
      @media (min-width: 690px) {
        .nav-links img {
            transform: translateX(-205%);
            top: 20rem;
        }
    }
  @media (min-width: 712px) {
        .nav-links img {
            transform: translateX(-205%);
            top: 20rem;
        }
    }
      @media (min-width: 768px) {
        .nav-links img {
            transform: translateX(-215%);
            top: 20rem;
        }
      }
   @media (min-width: 820px){
          .nav-links img {
            transform: translateX(-230%);
            top: 20rem;
        }
    }
    @media (min-width: 1024px){
      .menu-toggle {
        display: block;
        position: absolute;
        top: 4rem;
        right: 6.5rem;
        width: 44px;
        height: 44px;
        border: none;
        background: transparent;
        border-radius: 0;
        cursor: pointer;
        z-index: 20;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
    }
            .nav-links img {
            transform: translateX(-280%);
            top: 20rem;
        }
  }
}

