@charset "UTF-8";
/* ======= Navigation – Baseline ======= */


.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2vw;
  border-bottom: 1.5px solid #ebe4d7;
  background: #fff;
  position: relative;
  z-index: 100;
}
.logo {
  display: flex;
  cursor: pointer;
  padding: 0;
}
.logo img {
  height: 40px !important;
  width: auto !important;
  object-fit: contain;
  display: block;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: all 0.2s;
}
.nav-list > li {
  position: relative;
  padding: 0.5rem 0;
}
.nav-list a, .nav-list .dropbtn {
  display: block;
  color: var(--color-dark);
  background: none;
  text-align: center;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s;
}
.nav-list a.active, .nav-list .dropbtn.active {
  font-weight: 700;
}
.nav-list a:hover, .nav-list .dropbtn:hover, .nav-list .dropdown.open > .dropbtn {
  color: var(--color-secondary);
  background: none;
}
.dropdown {
  position: relative;
}
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  min-width: 200px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
  z-index: 20;
  border-radius: 10px;
  border: 1px solid #e9e5da;
  text-align: left;
  padding: 0.5em 0;
}
.dropdown-content a {
  color: var(--color-dark);
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 400;
  border-bottom: 1px solid #f4f1ea;
  background: none;
  border-radius: 0;
  transition: color 0.15s, background 0.13s;
  letter-spacing: 0.01em;
}
.dropdown-content a:last-child {
  border-bottom: none;
}
.dropdown-content a:hover, .dropdown-content a:focus {
  color: var(--color-secondary);
  background: #faf8f4;
  font-weight: 500;
  outline: none;
}
.dropbtn::after {
  content: "▼";
  font-size: 0.68em;
  margin-left: 0.5em;
  color: var(--color-secondary);
}
.language-switch {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  font-size: 0.9rem;
}
.language-switch strong {
  font-weight: 700;
}
.language-switch a {
  text-decoration: none;
  color: inherit;
  font-weight: normal;
  font-size: 0.9rem;
}
/* =========== MOBILE: max 900px =========== */
@media (max-width: 900px) {
  .topnav {
    flex-wrap: wrap;
    padding: 0.5rem 2vw;
  }
  .topnav .icon {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    margin: 0 1rem;
  }
  .hamburger {
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
  }
  .hamburger span {
    display: block;
    height: 4px;
    width: 100%;
    background: var(--color-dark);
    border-radius: 2px;
    transition: 0.3s;
  }
  /* Hamburger animiertes X */
  .topnav.open .hamburger span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .topnav.open .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .topnav.open .hamburger span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 0;
    background: var(--color-beige);
    border-bottom: 1.5px solid #ebe4d7;
    position: absolute;
    left: 50%;
    right: auto;
    top: 100%;
    width: 94vw;
    max-width: 250px;
    transform: translateX(-50%);
    display: none;
    z-index: 110;
    box-shadow: 0 12px 28px 0 rgba(0, 0, 0, 0.08);
    border-radius: 16px;
  }
  .topnav.open .nav-list {
    display: flex;
    animation: navFade 0.2s;
  }
  .nav-list > li {
    border-bottom: 1px solid #f4f1ea;
    width: 100%;
    padding: 0;
  }
  .nav-list > li:last-child {
    border-bottom: none;
    justify-content: center !important;
    align-content: center !important;
    text-align: center !important;
  }
  .mitte-btn {
    width: auto;
  }
  .nav-list a, .nav-list .dropbtn {
    width: 100%;
    padding: 0.5rem 1.5rem;
    text-align: left;
  }
  .nav-list .language-switch {
    padding: 1rem 1.5rem;
  }
  /* Submenu: auf Mobile immer sichtbar */
  .dropdown-content {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    position: static;
    box-shadow: none;
    background: none;
    min-width: 0;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
  }
  .dropdown-content a {
    font-size: 1rem;
    padding: 0.3rem 2rem;
    background: #faf8f4;
    border: none;
  }
  .dropbtn::after {
    display: none;
  }
  /* Contact button: full width, big, margin! */
  .nav-list .contact-button {
    display: block;
    width: 80%;
    margin: 1.1rem auto 0.5rem auto;
    padding: 1em 0;
    text-align: center;
    border-radius: 20px 20px 0 20px;
    border: 2px solid var(--color-dark);
    border-bottom-width: 4px;
    background: #fffbe8;
    color: var(--color-dark) !important;
    font-weight: 700;
    font-size: 1.08rem;
    box-shadow: 0 2px 14px 0 rgba(0, 0, 0, 0.06);
    transition: background 0.18s, color 0.18s;
  }
  .nav-list .contact-button:hover {
    background: #fff3c1;
    color: var(--color-secondary) !important;
  }
  .nav-list .language-switch {
    justify-content: center;
    padding: 0;
    width: 100%;
    margin-top: 0;
    font-size: 1.07em;
    letter-spacing: 0.02em;
    background: none;
  }
  .nav-list .language-switch a, .nav-list .language-switch strong {
    padding: 0 0.55em;
    font-size: 1em;
  }
  .nav-list a, .nav-list .dropbtn {
    width: auto;
  }
}
/* =========== DESKTOP: ab 901px =========== */
@media (min-width: 901px) {
  .nav-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    position: static;
    left: auto;
    right: auto;
    top: auto;
    width: auto;
    max-width: none;
    transform: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    z-index: 1;
  }
  .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
    border: 1px solid #e9e5da;
    padding: 0.5em 0;
    z-index: 20;
  }
  .dropdown:hover .dropdown-content, .dropdown:focus-within .dropdown-content {
    display: block;
  }
  .dropdown-content a {
    font-size: 0.97rem;
    padding: 11px 20px;
    background: none;
  }
  .dropbtn::after {
    display: inline-block;
  }
  .topnav .icon {
    display: none;
  }
}
/* Animation für Menü */
@keyframes navFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}