/* Theme2 Navigation – Header und Sprachumschalter */

.dl-header {
  padding: 0;
  overflow-x: clip;
  overflow-y: visible;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background-color: var(--color-background);
}

.dl-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-background);
  gap: 8px;
  flex-wrap: wrap;
}


.dl-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: var(--dl-text);
  gap: 2px;
}

.dl-logo__full {
  height: 60px;
  width: auto;
  display: block;
}

.dl-logo__claim {
  font-size: 0.75rem;
  color: var(--dl-muted);
}

.dl-logo__icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  box-shadow: var(--dl-shadow-soft);
}

.dl-logo__text {
  display: flex;
  flex-direction: column;
}

.dl-logo__brand {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dl-logo__title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.base-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Navigation-Links Container im Header */
.dl-header-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* Navigation-Links im Header kompakter */
.dl-header-nav-links .dl-footer__link {
  font-size: 0.85rem;
  padding: 6px 10px;
  white-space: nowrap;
  margin: 0;
}

.base-mobile-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  gap: 5px;
}

.base-mobile-nav-toggle-line {
  width: 24px;
  height: 2px;
  background: var(--dl-text);
  transition: all 0.3s ease;
  border-radius: 1px;
}

.base-mobile-nav-toggle.active .base-mobile-nav-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.base-mobile-nav-toggle.active .base-mobile-nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.base-mobile-nav-toggle.active .base-mobile-nav-toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.base-header-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-background);
  flex-direction: column;
  align-items: flex-start;
  padding: 80px 20px 20px 20px;
  z-index: 999;
  overflow-y: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  gap: 20px;
}

.base-header-nav.open {
  display: flex;
}

.base-nav-link {
  font-family: var(--font-family-primary);
  font-size: 18px;
  line-height: 1.8;
  text-decoration: none;
  color: var(--color-text);
  padding: 12px 0;
  border-radius: 0;
  transition: all 0.3s ease;
  font-weight: 400;
  letter-spacing: 0.6px;
  white-space: nowrap;
  width: 100%;
  border-bottom: 1px solid var(--color-border);
}

.base-nav-link:hover {
  text-decoration: none;
  color: var(--color-primary);
  background-color: transparent;
}

/* User-Initial-Indikator (briefing/navigation.md 004.006) */
.base-header-user-avatar {
  display: none;
  align-items: center;
}

.base-header-user-avatar-visible {
  display: flex;
}

.base-header-user-avatar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 50%;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.base-header-user-avatar-link:hover {
  border-color: var(--color-primary-dark);
  box-shadow: 0 1px 4px var(--color-card-shadow);
}

.base-header-user-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-lang-switcher {
  display: inline-flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.dl-lang-switcher__btn {
  border: 0;
  background: transparent;
  padding: 4px 10px;
  font-size: 0.78rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--dl-text-soft);
  text-decoration: none;
}

.dl-lang-switcher__btn--active {
  background: var(--dl-bg-active);
  color: var(--dl-text);
  font-weight: 600;
}

@media (max-width: 768px) {
  .dl-header__inner {
    flex-direction: row;
    gap: 10px;
  }

  .dl-logo__claim {
    display: none;
  }
}
