
/* ==============================================
   BASE STYLES
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap');

* {
  font-family: "Montserrat", sans-serif;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 5rem;
  @media (max-width: 460px) {
    padding: 0 3rem 0 2.8rem;
  }
}


/* ==============================================
   ANIMATIONS
   ============================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ==============================================
   NAVIGATION
   ============================================== */

.topnav {
  position: sticky;
  top: 20px;
  left: 0;
  display: flex;
  align-items: center;
  height: 50px;
  z-index: 1000;
  padding-left: 10px;
}

.icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 101;
  width: 28px;
  height: 22px;
  @media (max-width: 400px) {
    width: 18px;
    height: 14px;
  }
}

.icon span {
  height: 3px;
  width: 100%;
  background-color: black;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
  @media (max-width: 400px) {
    height: 2px;
  }
}

.icon.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.icon.open span:nth-child(2) {
  opacity: 0;
}

.icon.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

#navLinks {
  display: none;
  position: absolute;
  left: 10px;
  top: 60px;
  background-color: white;
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  min-width: 180px;
  animation: fadeIn 0.3s ease;
}

#navLinks a {
  padding: 12px 18px;
  text-decoration: none;
  color: #222;
  display: block;
  transition: background 0.2s ease, padding-left 0.2s ease;
}

#navLinks a:hover {
  background-color: #f7f7f7;
  padding-left: 24px;
}

.navWeAre {
  display: none !important;
  @media (min-width: 960px) {
    display: block !important;
  }
}

.navWeArePhone {
  display: none !important;
  @media (max-width: 959px) {
    display: block !important;
  }
}

.dropdown-wrapper {
  position: relative;
  display: block;
}

.dropdown-wrapper:before {
  content: "";
  position: absolute;
  top: 0;
  right: -10px;
  width: 15px;
  height: 100%;
  background: transparent;
  z-index: 1001;
  @media (max-width: 959px) {
    display: none;
  }
}

.dropdown-trigger {
  padding: 12px 18px;
  text-decoration: none;
  color: #222;
  display: block;
  transition: background 0.2s ease, padding-left 0.2s ease;
  position: relative;
}

.dropdown-trigger:after {
  content: " ▶";
  font-size: 0.8em;
  margin-left: 8px;
  color: #888;
  @media (max-width: 959px) {
    display: none;
  }
}

.dropdown-submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background-color: white;
  min-width: 180px;
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  z-index: 1002;
  margin-left: -1px;
  @media (max-width: 959px) {
    display: none !important;
  }
}

.dropdown-submenu a {
  color: #222;
  padding: 12px 18px;
  text-decoration: none;
  display: block;
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.dropdown-submenu a:hover {
  background-color: #f7f7f7;
  padding-left: 24px;
}

.dropdown-wrapper:hover .dropdown-submenu {
  display: block;
  animation: fadeIn 0.3s ease;
  @media (max-width: 959px) {
    display: none !important;
  }
}

.dropdown-wrapper:hover .dropdown-trigger {
  background-color: #f7f7f7;
  padding-left: 24px;
}



/* ==============================================
   HEADER
   ============================================== */

.topHeader {
  padding: 3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.topHeaderSide {
  display: flex;
  align-items: center;
}

.logoMini {
  width: 15rem;
  max-height: 50px;
  display: block;
  @media (min-width: 1200px) {
    width: 18rem;
    max-height: 60px;
  }
  @media (min-width: 1400px) {
    width: 20rem;
    max-height: 65px;
  }
  @media (max-width: 600px) {
    display: none;
  }
}


/* ==============================================
   HERO SECTION
   ============================================== */

.head {
  display: flex;
  justify-content: space-between;
  margin-top: 10rem;
  margin-left: auto;
  margin-right: auto;
  gap: 12rem;
  width: 90%;
  @media (max-width: 1900px) {
    width: 100%;
  }
  @media (max-width: 1200px) {
    gap: 3rem;
  }
  @media (max-width: 1100px) {
    flex-wrap: wrap;
  }
  @media (max-width: 600px) {
    display: block;
  }
}

.head .side:last-child {
  @media (max-width: 1100px) {
    order: -1;
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

.heading {
  font-size: 3rem;
  font-weight: 1000;
  color: #61927E;
  margin-bottom: 0;
  margin-top: 8rem;
  line-height: 0.8;
  @media (max-width: 1900px) {
    margin-top: 7rem;
  }
  @media (max-width: 1500px) {
    margin-top: 6rem;
  }
  @media (max-width: 1400px) {
    margin-top: 3rem;
  }
  @media (max-width: 1100px) {
    margin-top: 1rem;
  }
  @media (max-width: 650px) {
    font-size: 1.7rem;
  }
}

.headingText {
  margin: 0 0 2rem 0;
  text-align: justify;
}

.boxImageHead {
  width: 50vh;
  height: auto;
  @media (max-width: 1100px) {
    width: 90vw;
    height: 200px;
    object-fit: cover;
  }
  @media (max-width: 600px) {
    display: none;
  }
}


/* ==============================================
   PROJEKTE SECTION
   ============================================== */

.cards {
  margin-bottom: 10rem;
}

.cardsHeader {
  margin-top: 10rem;
  font-size: 2rem;
  font-weight: 1000;
  color: #61927E;
  margin-bottom: 0;
  text-align: center;
}

.cardsSubHeader {
  font-size: 1.2rem;
  color: #333;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
}

.main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  grid-auto-rows: 1fr;
  @media (min-width: 960px) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.box {
  text-align: justify;
  hyphens: auto;
  border-radius: 5px;
  padding: 3rem 2rem;
  background-color: rgb(236, 236, 236);
  max-width: 600px;
  margin: auto;
}

.boxTextHeader {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 1000;
  color: #61927E;
  margin: 0.1rem 0 2rem 0;
}

.boxImage {
  padding: 0 2rem;
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  @media (max-width: 1400px) {
    padding: 0 1rem;
  }
  @media (max-width: 1200px) {
    padding: 0 0.2rem;
  }
  @media (max-width: 960px) {
    padding: 0 1rem;
  }
}



/* ==============================================
   PROJEKTE SECTION FÜR BAGGERUNGEN
   ============================================== */

.cards2 {
  margin-bottom: 3rem;
}

.cardsHeader2 {
  margin-top: 10rem;
  font-size: 2rem;
  font-weight: 1000;
  color: #61927E;
  margin-bottom: 0;
  text-align: center;
}

.cardsSubHeader2 {
  font-size: 1.2rem;
  color: #333;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
}

.main2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  grid-auto-rows: 1fr;
  max-width: 900px;
  margin: 0 auto;

  @media (min-width: 960px) {
    grid-template-columns: repeat(2, 1fr);
  }
}

.box2 {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 5px;
  background-color: rgb(236, 236, 236);
  transition: transform 0.3s ease;
  
  @media (max-width: 959px) {
    max-width: 600px;
    margin: 0 auto;
  }
}
.box2:hover {
  transform: scale(1.03);
}


.boxTextHeader2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 1000;
  color: #61927E;
  margin: 0.1rem 0 2rem 0;
}

.boxImage2 {
  padding: 0 2rem;
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  @media (max-width: 1400px) {
    padding: 0 1rem;
  }
  @media (max-width: 1200px) {
    padding: 0 0.2rem;
  }
  @media (max-width: 960px) {
    padding: 0 1rem;
  }
}


/* ==============================================
   GALLERY SECTION
   ============================================== */

.gallery {
  margin-top: 5rem;
}

.galleryContainer {
  margin: auto;
  max-width: 1000px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.galleryImage {
  width: calc(25% - 7.5px);
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform .2s ease;
}

.galleryImage:hover {
  transform: scale(1.03);
}

@media (max-width: 767px) {
  .galleryImage {
    width: calc(50% - 5px);
  }
}


/* ==============================================
   LIGHTBOX
   ============================================== */

.lightbox {
  display: none;                 /* Wichtig! Standard: unsichtbar */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,.9);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;                 /* Aktiv: anzeigen */
}

.lightboxImage {
  max-width: 90%;
  max-height: 90%;
  display: block;
  margin: auto;
  border-radius: 4px;
  transition: transform .3s ease;
}

.closeButton {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
  transition: .3s ease;
}

.closeButton:hover {
  color: #bbb;
}



/* ==============================================
   BUTTONS
   ============================================== */

.buttonMain {
  margin-top: 3rem;
  display: block;
}
.button {
  font-size: 1.2rem;
  background-color: #61927E;
  color: white;
  border: none;
  height: 2em;
  width: auto;
  padding: 0 1rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  @media (max-width: 500px) {
    font-size: 1rem;
  }
  @media (max-width: 400px) {
    height: 3em;
  }
}
.button:hover {
  background-color: #1db750;
}


.buttonMain2 {
  margin-top: 3rem;
  display: block;
  text-align: center;
}
.button2 {
  font-size: 1.2rem;
  background-color: #61927E;
  color: white;
  border: none;
  height: 2em;
  width: auto;
  padding: 0 1rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  @media (max-width: 500px) {
    font-size: 1rem;
  }
  @media (max-width: 400px) {
    height: 3em;
  }
}

.button2:hover {
  background-color: #1db750;
}


/* ==============================================
   FOOTER
   ============================================== */

footer {
  width: 100%;
  margin-top: 100px;
  padding: 20px;
  border-top: #61927E 2px solid;
  background-color: white;
  @media (max-width: 800px) {
    padding: 20px 15px;
    margin-top: 50px;
    text-align: center;
  }
  @media (max-width: 600px) {
    padding: 25px 10px 15px;
    margin-top: 100px;
  }
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin: 0 auto;
  @media (max-width: 800px) {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  @media (max-width: 480px) {
    gap: 25px;
  }
  @media (min-width: 801px) and (max-width: 1024px) {
    gap: 30px;
  }
}

.footer-logo-div {
  display: flex;
  align-items: center;
  flex: 1;
  @media (max-width: 800px) {
    order: 1;
    width: 100%;
    justify-content: center;
  }
}

.logoFooter {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  @media (max-width: 800px) {
    max-width: 200px;
    margin: 0 auto;
  }
  @media (max-width: 480px) {
    max-width: 150px;
  }
  @media (min-width: 801px) and (max-width: 1024px) {
    max-width: 250px;
  }
}

.footer-column {
  flex: 0 0 auto;
  text-align: right;
  @media (max-width: 800px) {
    order: 2;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.footer-column h3 {
  color: #61927E;
  font-size: 1.1rem;
  margin-bottom: 15px;
  font-weight: bold;
  @media (max-width: 800px) {
    font-size: 1.5rem;
    text-align: center;
  }
  @media (max-width: 480px) {
    font-size: 0.95rem;
  }
}

.footer-column ul {
  padding-left: 0;
  list-style: none;
  @media (max-width: 800px) {
    text-align: center;
    display: inline-block;
  }
}

.footer-column ul li {
  margin-bottom: 5px;
  @media (max-width: 800px) {
    text-align: center;
  }
}

.footer-column ul li a {
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  @media (max-width: 800px) {
    font-size: 0.9rem;
  }
  @media (max-width: 480px) {
    font-size: 0.85rem;
  }
}

.footer-column ul li a:hover {
  color: #61927E;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #aaa;
  margin: 30px auto 0;
  color: #666;
  font-size: 0.9rem;
  max-width: 800px;
  @media (max-width: 800px) {
    margin-top: 25px;
    padding-top: 15px;
    font-size: 0.85rem;
  }
  @media (max-width: 480px) {
    font-size: 0.8rem;
  }
}