/* ---------------------------------------- */
/* GLOBAL */
/* ---------------------------------------- */
body {
  background: #f2ebe3;
  font-family: "Inter", sans-serif;
  color: #1e1e1e;
}

.nav-link {
  font-weight: 500;
  font-size: 15px;
}

.btn-contact {
  background: black;
  color: #fff;
  padding: 10px 26px;
  border-radius: 32px;
  font-weight: 600;
}

/* ---------------------------------------- */
/* NAVBAR */
/* ---------------------------------------- */
.navbar {
  padding: 26px 48px;
  position: relative;
  z-index: 99999;
  background: transparent;
}

.navbar-toggler-icon {
  display: none !important;
}

.navbar-brand img,
.custom-toggler {
  position: relative;
  z-index: 100000 !important;
}

/* Hamburger Icon */
.custom-toggler {
  border: none;
  background: none;
}

.custom-toggler .toggler-icon {
  width: 28px;
  height: 3px;
  background: #000;
  display: block;
  position: relative;
  transition: 0.3s ease;
}

.custom-toggler .toggler-icon::before,
.custom-toggler .toggler-icon::after {
  content: "";
  width: 28px;
  height: 3px;
  background: #000;
  position: absolute;
  left: 0;
  transition: 0.3s ease;
}

.custom-toggler .toggler-icon::before {
  top: -8px;
}

.custom-toggler .toggler-icon::after {
  top: 8px;
}

/* Hamburger → X */
.custom-toggler.open .toggler-icon {
  background: transparent;
}

.custom-toggler.open .toggler-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.custom-toggler.open .toggler-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Desktop Nav */
.desktop-nav .nav-link {
  font-size: 16px;
  font-weight: 500;
  color: #1e1e1e;
}

.desktop-nav .btn-contact {
  padding: 10px 22px;
}

/* ---------------------------------------- */
/* MOBILE MENU (final, bereinigt) */
/* ---------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #f2ebe3;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
  z-index: 9998;
  padding-top: 140px;
  text-align: center;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-links li {
  margin: 18px 0;
}

.mobile-links a {
  text-decoration: none;
  color: #1e1e1e;
  font-size: 26px;
  font-weight: 600;
}

@media (max-width: 992px) {
  .mobile-links {
    margin-top: 100px !important;
  }
}

/* ---------------------------------------- */
/* HERO SECTION */
/* ---------------------------------------- */
.hero {
  position: relative;
  padding: 60px 48px 80px;
}

.hero h1 {
  font-family: "Fraunces", serif;
  font-size: 84px;
  font-weight: 700;
  line-height: 0.98;
  max-width: 600px;
}

.hero p {
  font-size: 22px;
  line-height: 1.45;
  max-width: 600px;
  margin-bottom: 32px;
}

.hero .btn-primary {
  background: #4a8df0;
  border-radius: 14px;
  font-size: 18px;
  padding: 16px 34px;
  font-weight: 600;
  border: none;
}

.hero-illustration {
  position: absolute;
  right: 80px;
  bottom: -30px;
  z-index: 10;
}

.hero-illustration img {
  width: 240px;
  height: auto;
}

@media (max-width: 992px) {
  .hero {
    padding-bottom: 160px;
  }

  .hero-illustration {
    right: 30%;
    transform: translateX(50%);
    bottom: -20px;
  }

  .hero-illustration img {
    width: 170px;
  }
}

/* ---------------------------------------- */
/* NEXT SECTION */
/* ---------------------------------------- */
.next-section {
  background: #ece6dd;
  padding: 120px 48px;
  margin-top: -40px;
  border-radius: 32px;
  min-height: 400px;
}

/* ---------------------------------------- */
/* FAQ SECTION */
/* ---------------------------------------- */
.faq-section {
  background: #ffffff;
  padding: 60px 48px;
  border-radius: 32px;
  margin-top: 80px;
}

.faq-title {
  font-family: "Fraunces", serif;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 32px;
}

.accordion-item {
  border: none;
  margin-bottom: 18px;
  border-radius: 22px;
  overflow: hidden;
}

.accordion-button {
  background: #e8e0d5;
  border-radius: 22px !important;
  padding: 22px 26px;
  font-size: 20px;
  font-weight: 600;
  color: #1e1e1e;
  border: 2px solid #00000020;
}

.accordion-button:not(.collapsed) {
  background: #e8e0d5;
  box-shadow: none;
}

.accordion-body {
  background: #f8f5f0;
  padding: 24px 26px;
  font-size: 18px;
}

/* FAQ Mascot */
.faq-mascot-container {
  position: relative;
  width: 100%;
  height: 200px;
  margin-bottom: -60px;
  z-index: 5;
}

.faq-mascot {
  position: absolute;
  left: 300px;
  bottom: -40px;
  width: 250px;
}

@media (max-width: 992px) {
  .faq-mascot-container {
    height: 160px;
    margin-bottom: -70px;
  }

  .faq-mascot {
    right: 50%;
    transform: translateX(50%);
    width: 150px;
    bottom: -10px;
  }
}

@media (max-width: 600px) {
  .faq-mascot-container {
    height: 220px;
    margin-bottom: -85px;
  }

  .faq-mascot {
    width: 200px;
    right: 100%;
    transform: translateX(-100%);
    bottom: -6px;
  }
}

/* ---------------------------------------- */
/* FOOTER */
/* ---------------------------------------- */
.deba-footer {
  background: #ece6dd;
  padding: 60px 40px;
  border-radius: 32px 32px 0 0;
  margin-top: 80px;
}

.footer-logo {
  height: 80px;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.footer-link {
  color: #1e1e1e;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.footer-link:hover {
  opacity: 0.6;
}

.footer-social .social-icon {
  margin-left: 16px;
  font-size: 26px;
  color: #1e1e1e;
  transition: opacity 0.25s ease;
}

.footer-social .social-icon:hover {
  opacity: 0.6;
}

.footer-bottom {
  margin-top: 30px;
  font-size: 15px;
  color: #2d2d2d;
  opacity: 0.8;
}

@media (max-width: 992px) {
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  .footer-social .social-icon {
    margin: 0 12px;
  }

  .footer-logo {
    height: 70px;
  }
}

/* ---------------------------------------- */
/* CONTACT SECTION */
/* ---------------------------------------- */
.contact-section {
  background: white;
  padding: 80px 48px;
  border-radius: 32px;
  margin-top: 80px;
  text-align: center;
}

.contact-title {
  font-family: "Fraunces", serif;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-subtitle {
  font-size: 20px;
  max-width: 600px;
  margin: 0 auto 40px;
  color: #333;
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
}

.contact-input {
  background: #f8f5f0;
  border: 2px solid #00000020;
  border-radius: 18px;
  padding: 14px 18px;
  font-size: 18px;
}

.contact-input:focus {
  border-color: #4a8df0;
  box-shadow: 0 0 0 4px rgba(74, 141, 240, 0.2);
}

.contact-button {
  background: #4a8df0;
  border: none;
  padding: 16px 40px;
  font-size: 20px;
  border-radius: 16px;
  margin-top: 10px;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.contact-button:hover {
  transform: translateY(-3px);
}

/* ---------------------------------------- */
/* ABOUT SECTION */
/* ---------------------------------------- */
.about-section {
  background: white;
  padding: 20px 48px;
  border-radius: 32px;
  margin-top: -40px;
  min-height: 380px;
}

.about-title {
  font-family: "Fraunces", serif;
  font-size: 58px;
  font-weight: 700;
  margin-bottom: 26px;
}

.about-text {
  font-size: 20px;
  line-height: 1.55;
  max-width: 620px;
  margin-bottom: 28px;
  color: #333;
}

.about-list {
  list-style: none;
  padding: 0;
}

.about-list li {
  font-size: 20px;
  margin-bottom: 10px;
  position: relative;
  padding-left: 26px;
}

.about-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 26px;
}

.about-illustration {
  width: 260px;
  margin-top: 40px;
}

@media (max-width: 992px) {
  .about-section {
    padding: 80px 24px;
    text-align: center;
  }

  .about-title {
    font-size: 42px;
  }

  .about-illustration {
    width: 200px;
    margin-top: 20px;
  }

  .about-list li {
    font-size: 18px;
  }
}

/* ---------------------------------------- */
/* SERVICES SECTION */
/* ---------------------------------------- */
.services-section {
  background: #ffffff;
  padding: 70px 50px;
  border-radius: 32px;
  margin-top: 80px;
}

.services-title {
  font-family: "Fraunces", serif;
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
}

.service-card {
  background: #f8f5f0;
  padding: 32px;
  border-radius: 24px;
  border: 2px solid #00000015;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.08);
}

.service-icon {
  height: 64px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 17px;
  line-height: 1.45;
  color: #333;
  flex-grow: 1;
}

@media (max-width: 992px) {
  .services-section {
    padding: 50px 28px;
  }

  .service-card {
    padding: 28px;
  }

  .service-icon {
    height: 52px;
  }
}

/* ---------------------------------------- */
/* PROJECTS SECTION */
/* ---------------------------------------- */
.projects-section {
  background: #ffffff;
  padding: 80px 50px;
  border-radius: 32px;
  margin-top: 80px;
}

.projects-title {
  font-family: "Fraunces", serif;
  font-size: 48px;
  text-align: center;
  margin-bottom: 50px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.project-box {
  position: relative;
  border-radius: 26px;
  background: #f8f5f0;
  border: 2px solid #00000015;
}

.project-box img {
  width: 100%;
  border-radius: 26px;
}

.project-box.wide {
  grid-column: span 2;
}

/* Spacing variants */
.top-left {
  margin-top: 0;
}
.top-right {
  margin-top: 40px;
}
.bottom-left {
  margin-top: 20px;
}
.bottom-right {
  margin-top: -10px;
}

/* Nummerierung */
.project-number {
  position: absolute;
  top: -16px;
  left: -16px;
  background: #fff;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 20px;
  border-radius: 14px;
  border: 2px solid #00000020;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.project-box:nth-child(2) .project-number {
  right: -16px;
  left: auto;
}

.project-box.wide .project-number {
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
}

.project-box.small.bottom-left .project-number,
.project-box.small.bottom-right .project-number {
  top: auto;
  bottom: -16px;
}

.project-box.small.bottom-right .project-number {
  left: auto;
  right: -16px;
}

.project-box.small.top-right .project-number {
  left: auto;
  right: -16px;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-box.wide {
    grid-column: span 1;
  }

  .project-number {
    top: -10px !important;
    left: -10px !important;
    right: auto !important;
  }
}

/* Placeholder */
.projects-placeholder {
  text-align: center;
  padding: 80px 40px;
  background: #f8f5f0;
  border-radius: 32px;
  border: 2px solid #00000015;
  margin-top: 40px;
}

.projects-mascot {
  width: 180px;
  margin-bottom: 28px;
}

.projects-text {
  font-size: 22px;
  font-weight: 500;
  color: #333;
  line-height: 1.45;
}

/* ---------------------------------------- */
/* LEGAL BOTTOM SHEET (final version) */
/* ---------------------------------------- */
.legal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 99997;
}

.legal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.legal-sheet {
  position: fixed;
  left: 0;
  bottom: -100%;
  width: 100%;
  max-height: 85vh;
  background: #ece6dd;
  border-radius: 32px 32px 0 0;
  padding: 24px;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.15);
  transition: bottom 0.35s ease;
  z-index: 99998;
  overflow-y: auto;
}

.legal-sheet.open {
  bottom: 0;
}

.legal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 2px solid #00000015;
}

#legalClose {
  font-size: 26px;
  cursor: pointer;
}

#legalTitle {
  font-family: "Fraunces", serif;
  font-size: 32px;
  font-weight: 700;
}

.legal-content {
  font-size: 18px;
  line-height: 1.55;
  color: #333;
  padding-bottom: 60px;
}

@media (max-width: 600px) {
  .legal-sheet {
    padding: 20px;
    border-radius: 22px 22px 0 0;
  }

  #legalTitle {
    font-size: 26px;
  }

  .legal-content {
    font-size: 16px;
  }
}
