/**
 * navigation.css - Navigation und Header-Styles
 * Hauptnavigation und Footer-Navigation
 */

/* Header */
.navigation-header {
  width: 100%;
  height: 116px;
  background-color: var(--color-nav-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  position: relative;
  max-width: 100%;
}

/* Mobile Navigation - Header-Höhe bleibt fix bei 116px gemäß ui-header.mdc Regel 005 */

/* Logo */
.navigation-logo-link {
  display: block;
  height: 100%;
}

.navigation-logo {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Navigation */
.navigation-main {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 130;
  flex: 1;
  margin: 0 auto;
}

.navigation-main-list {
  display: flex;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navigation-main-item {
  display: block;
}

.navigation-main-link {
  color: var(--color-nav-text);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-small);
  font-family: var(--font-family-primary);
  padding: 10px 12px;
  display: block;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 6px;
}

.navigation-main-link:hover {
  color: var(--color-nav-hover);
  background-color: var(--color-accent-blue-08);
}

.navigation-main-link-active {
  color: var(--color-nav-active);
}

/* Hamburger-Menü (Mobile) */
.navigation-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 130;
}

.navigation-hamburger-line {
  width: 30px;
  height: 3px;
  background-color: var(--color-nav-text);
  transition: all 0.3s ease;
}

/* Hamburger Animation beim Öffnen */
.navigation-hamburger-open .navigation-hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.navigation-hamburger-open .navigation-hamburger-line:nth-child(2) {
  opacity: 0;
}

.navigation-hamburger-open .navigation-hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Desktop - Navigation sichtbar */
@media (min-width: 769px) {
  .navigation-main {
    position: relative !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    flex-direction: row !important;
    background-color: transparent !important;
    box-shadow: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .navigation-hamburger {
    display: none !important;
  }
}

/* Tablet-specific Header Height */
@media (min-width: 577px) and (max-width: 768px) {
  .navigation-main {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg-primary);
    flex-direction: column;
    justify-content: center;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -4px 0 20px var(--color-black-1);
  }
  
  .navigation-main-open {
    right: 0;
  }
  
  .navigation-main-list {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .navigation-main-link {
    font-size: var(--font-size-h4);
    padding: 15px 20px;
  }
  
  .language-switcher-item {
    border-left: none;
    margin-left: 0;
    padding-left: 0;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-white-2);
    justify-content: center;
  }
  
  .navigation-hamburger {
    display: flex;
  }
}

/* Mobile-specific Header Height */
@media (max-width: 576px) {
  .navigation-main {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg-primary);
    flex-direction: column;
    justify-content: center;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -4px 0 20px var(--color-black-1);
  }
  
  .navigation-main-open {
    right: 0;
  }
  
  .navigation-main-list {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .navigation-main-link {
    font-size: var(--font-size-h4);
    padding: 15px 20px;
  }
  
  .language-switcher-item {
    border-left: none;
    margin-left: 0;
    padding-left: 0;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-white-2);
    justify-content: center;
  }
  
  .navigation-hamburger {
    display: flex;
  }
}

/* Footer Navigation */
.navigation-footer {
  background-color: var(--color-nav-bg);
  padding: 30px 24px;
  text-align: center;
  min-height: 80px;
}

.navigation-footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
  flex-wrap: wrap;
}

.navigation-footer-link {
  color: var(--color-nav-text);
  text-decoration: none;
  text-transform: uppercase;
  font-size: var(--font-size-tiny);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-family-primary);
  transition: color 0.3s ease;
}

.navigation-footer-link:hover {
  color: var(--color-nav-hover);
}

.navigation-footer-copyright {
  color: var(--color-text-secondary);
  font-size: var(--font-size-tiny);
  font-family: var(--font-family-primary);
  margin-top: 10px;
}

@media (max-width: 576px) {
  .navigation-footer-links {
    flex-direction: column;
    gap: 10px;
  }
  
  .navigation-footer-link {
    font-size: var(--font-size-small);
  }
}

/* Language Switcher */
.language-switcher-item {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid var(--color-white-2);
}

.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.language-switcher-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.language-switcher-button:hover {
    background: var(--color-accent-blue-05);
}

.language-flag {
    width: 32px;
    height: 24px;
    display: block;
    border-radius: 2px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.language-switcher-button:hover .language-flag {
    transform: scale(1.1);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    min-width: 180px;
    padding: 8px 0;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-switcher-button[aria-expanded="true"] + .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--color-text-primary);
    font-size: var(--font-size-small);
    font-weight: 500;
    transition: all 0.2s ease;
}

.language-dropdown-item:hover {
    background: var(--color-bg-hover);
    color: var(--color-primary);
}

.language-label {
    flex: 1;
}
