@font-face {
  font-family: 'Open Sans';
  src: url('../schriften/OpenSans-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ------------------- */
/* Logo-Container      */
/* ------------------- */
.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  margin-right: 8rem;
}

.logo-image {
  max-height: 50px;
  width: auto;
  height: auto;
  display: block;
}

/* --------------------------- */
/* Navigation & Menüleisten    */
/* --------------------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  margin: 0;
  height: 50px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  background-color: var(--primary);
}

.nav-right {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  align-items: center;
  gap: 4rem;
  border-radius: 6px;
  background-color: var(--primary);
  padding: 0 1rem;
  height: 50px;
  position: relative;
  flex-grow: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  flex-grow: 1;
  height: 100%;
}

.nav-links > a,
.nav-item-dropdown > a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  position: relative;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  height: 100%;
  user-select: none;
  line-height: 1.3;
}

.nav-links > a:hover,
.nav-item-dropdown > a:hover {
  background-color: rgba(179, 86, 129, 0.3);
}

/* --------------------------- */
/* Dropdown-Menüs              */
/* --------------------------- */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary);
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: none;
  min-width: 160px;
  z-index: 1000;
  flex-direction: column;
  padding: 0.5rem 0;
}

.dropdown a {
  padding: 0.5rem 1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
  display: block;
  line-height: 1.3;
}

.dropdown a:hover {
  background-color: rgba(179, 86, 129, 0.4);
}

.nav-item-dropdown:hover .dropdown {
  display: flex;
}

.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

/* Pfeile */
.nav-arrow-wrapper {
  display: inline-block;
  position: relative;
  width: 10px;
  height: 10px;
  margin-left: 0.4rem;
}

.nav-arrow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
}

.default-arrow {
  opacity: 1;
}

.hover-arrow {
  opacity: 0;
}

.nav-link-with-icon:hover .default-arrow {
  opacity: 0;
}

.nav-link-with-icon:hover .hover-arrow {
  opacity: 1;
}

/* --------------------------- */
/* Termin Button – Desktop     */
/* --------------------------- */
.termin-container {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin-left: auto;
  display: flex;
  align-items: center;
  height: 50px;
}

header .termin-button {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #b8b4b4;
  color: #fff;
  border: 2px solid #b8b4b4;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 1rem;
  line-height: 1;
  position: absolute;
  top: 8px; /* ⬅️ Kleiner Abstand zum oberen Bildschirmrand */
  right: 12%;
  margin: 0;
  z-index: 10001;
}

.termin-button:hover {
  background-color: #b35681;
  border-color: #b35681;
  color: #fff;
}


/* Ausnahme: Button auf index.html soll eigene Position behalten */
#indexTerminButton {
  right: 1.5rem !important;
}


@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
  }

  .logo {
    margin-right: auto;
    padding-left: 0.5rem;
  }

  .logo-image {
    max-height: 30px;
  }

  .nav-right {
    height: auto;
    flex-wrap: wrap;
    padding: 0.5rem 1rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin-top: 0.5rem;
  }

  .nav-links > a,
  .nav-item-dropdown > a {
    padding: 0.8rem 1rem;
    border-radius: 0;
  }

  .nav-item-dropdown:hover .dropdown {
    position: static;
    box-shadow: none;
    background-color: transparent;
    display: none;
  }

  /* ✅ Hamburger sichtbar und links ausgerichtet */
 /* Standard-Hamburger für mobile Ansicht (z.B. index.html) */
.hamburger {
  display: block;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  position: absolute;
 
  right: 1rem; /* Default für index.html */
  z-index: 10001;
}

/* Für alle anderen Seiten außer index.html */
body:not(#page-index) .hamburger {
  right: 3rem; /* Mehr Abstand rechts – wirkt wie von links eingerückt */
}


  /* ✅ Termin-Button im Header ausblenden */
  header .termin-container {
    display: none;
  }

  /* ✅ Drawer-Grundlayout – feste Breite & korrekt rechts ausgerichtet */
  #mobileDrawer {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background-color: var(--primary);
    padding: 1rem 0;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
    transform: translateX(10px); /* Optionaler Effekt */
    transition: transform 0.3s ease;
  }

  #mobileDrawer.open {
    display: flex;
    transform: translateX(0); /* Vollständig sichtbar */
  }

  #mobileDrawer a {
    display: block;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    color: var(--white);
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  #mobileDrawer .drawer-content {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  /* ✅ Termin-Button unter den Links zentriert */
  #mobileDrawer .termin-container {
    display: flex;
    justify-content: center;
    padding: 2rem 1.5rem 0;
  }

  #mobileDrawer .termin-button {
    all: unset;
    width: 66%;
    padding: 0.75rem 1rem;
    height: 45px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    background-color: #b8b4b4;
    border: 2px solid #b8b4b4;
    border-radius: 8px;
    color: white;
    text-align: center;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  #mobileDrawer .termin-button:hover {
    background-color: #b35681;
    border-color: #b35681;
  }
}