/* ===========================================
   CSU GLASMORPHISM NAVIGATION DESIGN
   =========================================== */

/* CSS Variables für CSU Glasmorphism */
:root {
  /* CSU Colors - WCAG AAA Optimiert */
  --csu-blue: #0080c8;
  --csu-blue-dark: #004d7a;  /* Dunkler für besseren Kontrast */
  --csu-blue-light: #4da6d9;
  --csu-green: #8ba312;      /* Dunkler für besseren Kontrast */
  --csu-green-dark: #6b7a0e;
  
  /* High Contrast Colors */
  --text-primary: #1a1a1a;   /* Fast schwarz für maximale Lesbarkeit */
  --text-secondary: #2d2d2d;   /* Dunkelgrau für sekundären Text */
  --text-accent: #004d7a;     /* Dunkelblau für Akzente */
  
  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-bg-strong: rgba(255, 255, 255, 0.2);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --glass-blur: blur(20px);
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Header mit Glasmorphism */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, 
    rgba(0, 128, 200, 0.18) 0%, 
    rgba(162, 197, 22, 0.08) 100%);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(0, 128, 200, 0.12) 0%, 
    rgba(162, 197, 22, 0.08) 100%);
  z-index: -1;
}

.header__content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header-tonne-lane {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1200;
  overflow: visible;
}

.header-tonne {
  position: absolute;
  top: -2px;
  left: -120px;
  width: 50px;
  height: auto;
  opacity: 0;
  transform: translateX(0);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.24));
  will-change: transform, opacity;
}

.header-tonne.is-gliding {
  animation: header-tonne-glide 7.4s linear forwards;
}

@keyframes header-tonne-glide {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  5% {
    opacity: 1;
    transform: translateX(60px);
  }
  95% {
    opacity: 1;
    transform: translateX(calc(100vw + 120px));
  }
  100% {
    opacity: 0;
    transform: translateX(calc(100vw + 200px));
  }
}

/* Logo Design */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
  transition: var(--transition-smooth);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(0, 128, 200, 0.08) 100%);
  border: 2px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 20px rgba(0, 128, 200, 0.15), 
              0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Keine Unterstreichung beim Hover/Klick - Text-Dekoration entfernen */
.nav__logo:hover,
.nav__logo:active,
.nav__logo:focus {
  text-decoration: none !important;
}

/* Text-Kinder des Logos sollen niemals unterstrichen werden */
.nav__logo-text-container,
.nav__logo-text,
.nav__logo-subtitle {
  text-decoration: none !important;
}

.nav__logo:hover .nav__logo-text-container,
.nav__logo:hover .nav__logo-text,
.nav__logo:hover .nav__logo-subtitle,
.nav__logo:active .nav__logo-text-container,
.nav__logo:active .nav__logo-text,
.nav__logo:active .nav__logo-subtitle {
  text-decoration: none !important;
}

.nav__logo:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(0, 128, 200, 0.1) 100%);
  box-shadow: 0 12px 40px rgba(0, 128, 200, 0.3), 
              0 0 0 1px rgba(0, 0, 0, 0.08);
}

.nav__logo-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: var(--transition-smooth);
}

.nav__logo:hover .nav__logo-image {
  transform: scale(1.1) rotate(5deg);
}

.nav__logo-text-container {
  display: flex;
  flex-direction: column;
}

.nav__logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  text-shadow: 
    1px 1px 0 #000000,
    -1px -1px 0 #000000,
    1px -1px 0 #000000,
    -1px 1px 0 #000000,
    0 1px 0 #000000,
    0 -1px 0 #000000,
    1px 0 0 #000000,
    -1px 0 0 #000000;
  letter-spacing: -0.01em;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.nav__logo-subtitle {
  font-size: 0.8rem;
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 
    1px 1px 0 #004d7a,
    -1px -1px 0 #004d7a,
    1px -1px 0 #004d7a,
    -1px 1px 0 #004d7a,
    0 1px 0 #004d7a,
    0 -1px 0 #004d7a,
    1px 0 0 #004d7a,
    -1px 0 0 #004d7a;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Navigation Container */
.nav__container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__item {
  position: relative;
}

/* Navigation Links */
.nav__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(0, 128, 200, 0.05) 100%);
  border: 2px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(15px);
  box-shadow: 0 2px 12px rgba(0, 128, 200, 0.1);
}

.nav__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: var(--transition-smooth);
}

.nav__link:hover::before {
  left: 100%;
}

.nav__link:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(0, 128, 200, 0.08) 100%);
  color: var(--text-accent);
  box-shadow: 0 8px 25px rgba(0, 128, 200, 0.3);
  border-color: rgba(0, 128, 200, 0.3);
}

/* CSU Icons */
.nav__icon {
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: var(--transition-smooth);
}

.nav__icon--home {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23004d7a'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
}

.nav__icon--success {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23004d7a'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
}

.nav__icon--projects {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23004d7a'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/svg%3E");
}

.nav__icon--contact {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23004d7a'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

.nav__icon--gelbe-tonne {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004d7a' stroke-width='1.5'%3E%3Crect x='6' y='8' width='12' height='12' rx='1' fill='%23FFD700' stroke='%23004d7a' stroke-width='1.5'/%3E%3Crect x='5' y='6' width='14' height='3' rx='1.5' fill='%23FFD700' stroke='%23004d7a' stroke-width='1.5'/%3E%3Cpath d='M8 6 L10 4 M16 6 L14 4' stroke='%23004d7a' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='9' y1='10' x2='9' y2='18' stroke='%23004d7a' stroke-width='1'/%3E%3Cline x1='15' y1='10' x2='15' y2='18' stroke='%23004d7a' stroke-width='1'/%3E%3Ccircle cx='18' cy='20' r='1.5' fill='%23004d7a'/%3E%3C/svg%3E");
}

.nav__icon--ankerzentrum {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23004d7a'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}

.nav__icon--autobahn {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23004d7a'%3E%3Cpath d='M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.22.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8l-2.08-5.99zM6.5 16c-.83 0-1.5-.67-1.5-1.5S5.67 13 6.5 13s1.5.67 1.5 1.5S7.33 16 6.5 16zm11 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zM5 11l1.5-4.5h11L19 11H5z'/%3E%3C/svg%3E");
}

.nav__link:hover .nav__icon {
  transform: scale(1.1);
  filter: brightness(0) saturate(100%) invert(30%) sepia(100%) saturate(1000%) hue-rotate(200deg) brightness(80%) contrast(120%);
}

.nav__text {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav__link {
  white-space: nowrap;
}

/* Dropdown Menu */
.nav__item--dropdown:hover .nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(0, 128, 200, 0.08) 100%);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 128, 200, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition-smooth);
  list-style: none;
  margin: 0;
  padding: 1.25rem;
  z-index: 1001;
  pointer-events: none;
}

.nav__item--dropdown:hover .nav__submenu,
.nav__item--dropdown.active .nav__submenu {
  pointer-events: auto;
}

.nav__submenu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 20px;
  width: 16px;
  height: 16px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-bottom: none;
  border-right: none;
  transform: rotate(45deg);
}

.nav__subitem {
  margin: 0;
}

.nav__sublink {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--csu-blue-dark);
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 15px;
  transition: var(--transition-smooth);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  pointer-events: auto;
}

  .nav__sublink {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #004d7a;
    font-weight: 700;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 128, 200, 0.3);
    -webkit-tap-highlight-color: rgba(0, 128, 200, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    cursor: pointer;
    pointer-events: auto !important;
    position: relative;
    z-index: 100;
    user-select: none;
    -webkit-user-select: none;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .nav__sublink:active {
    background: rgba(255, 255, 255, 1);
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  }
  
  .nav__sublink:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 128, 200, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .nav__sublink:focus {
    outline: 2px solid var(--csu-blue);
    outline-offset: 2px;
  }

.nav__sublink:hover {
  background: rgba(162, 197, 22, 0.1);
  color: var(--csu-green);
  transform: translateX(5px);
}

.nav__sublink:focus {
  outline: 2px solid var(--csu-blue);
  outline-offset: 2px;
}

/* Submenu Icons */
.nav__subicon {
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.8;
  transition: var(--transition-smooth);
}

.nav__subicon--gelbe-tonne {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230080c8'%3E%3Cpath d='M19 7h-3V6a2 2 0 0 0-2-2H10a2 2 0 0 0-2 2v1H5a1 1 0 0 0-1 1v11a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V8a1 1 0 0 0-1-1zM10 6h4v1h-4V6zm8 13a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V9h2v1a1 1 0 0 0 2 0V9h4v1a1 1 0 0 0 2 0V9h2v10z'/%3E%3C/svg%3E");
}

.nav__subicon--ankerzentrum {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230080c8'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}

.nav__subicon--autobahn {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230080c8'%3E%3Cpath d='M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.22.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8l-2.08-5.99zM6.5 16c-.83 0-1.5-.67-1.5-1.5S5.67 13 6.5 13s1.5.67 1.5 1.5S7.33 16 6.5 16zm11 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zM5 11l1.5-4.5h11L19 11H5z'/%3E%3C/svg%3E");
}

.nav__subicon--impressum {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230080c8'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}

.nav__subicon--datenschutz {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230080c8'%3E%3Cpath d='M12,1L3,5V11C3,16.55 6.84,21.74 12,23C17.16,21.74 21,16.55 21,11V5L12,1M12,7C13.4,7 14.8,8.6 14.8,10V11.5C15.4,11.5 16,12.1 16,12.7V16.2C16,16.8 15.4,17.3 14.8,17.3H9.2C8.6,17.3 8,16.8 8,16.2V12.6C8,12.1 8.6,11.5 9.2,11.5V10C9.2,8.6 10.6,7 12,7M12,8.2C11.2,8.2 10.5,8.7 10.5,10V11.5H13.5V10C13.5,8.7 12.8,8.2 12,8.2Z'/%3E%3C/svg%3E");
}

.nav__arrow {
  font-size: 0.8rem;
  transition: var(--transition-smooth);
}

.nav__item--dropdown:hover .nav__arrow {
  transform: rotate(180deg);
}

/* Mobile Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  position: relative;
}

.nav__toggle.active {
  background: rgba(0, 128, 200, 0.1);
  border-color: rgba(0, 128, 200, 0.3);
}

.nav__toggle:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.05);
}

.nav__toggle-line {
  width: 24px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}

.nav__toggle.active .nav__toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: var(--csu-blue);
}

.nav__toggle.active .nav__toggle-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__toggle.active .nav__toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: var(--csu-blue);
}

.nav__toggle:hover .nav__toggle-line {
  background: var(--csu-blue);
}

/* Background Variations */
/* Blue Background - Standard für Startseite */
body.blue-background .nav__logo-text {
  color: #ffffff;
  text-shadow: 
    2px 2px 0 #000000,
    -2px -2px 0 #000000,
    2px -2px 0 #000000,
    -2px 2px 0 #000000,
    0 2px 0 #000000,
    0 -2px 0 #000000,
    2px 0 0 #000000,
    -2px 0 0 #000000;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

body.blue-background .nav__logo-subtitle {
  color: #ffffff;
  text-shadow: 
    1px 1px 0 #004d7a,
    -1px -1px 0 #004d7a,
    1px -1px 0 #004d7a,
    -1px 1px 0 #004d7a,
    0 1px 0 #004d7a,
    0 -1px 0 #004d7a,
    1px 0 0 #004d7a,
    -1px 0 0 #004d7a;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

body.white-background .header {
  background: linear-gradient(135deg, 
    rgba(0, 128, 200, 0.18) 0%, 
    rgba(162, 197, 22, 0.08) 100%);
}

body.white-background .nav__logo {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(0, 128, 200, 0.05) 100%);
  border: 2px solid rgba(255, 255, 255, 0.95);
}

body.white-background .nav__logo-text {
  color: #ffffff;
  text-shadow: 
    2px 2px 0 #000000,
    -2px -2px 0 #000000,
    2px -2px 0 #000000,
    -2px 2px 0 #000000,
    0 2px 0 #000000,
    0 -2px 0 #000000,
    2px 0 0 #000000,
    -2px 0 0 #000000;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

body.white-background .nav__logo-subtitle {
  color: #ffffff;
  text-shadow: 
    1px 1px 0 #004d7a,
    -1px -1px 0 #004d7a,
    1px -1px 0 #004d7a,
    -1px 1px 0 #004d7a,
    0 1px 0 #004d7a,
    0 -1px 0 #004d7a,
    1px 0 0 #004d7a,
    -1px 0 0 #004d7a;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

body.white-background .nav__link {
  color: var(--text-primary);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(0, 128, 200, 0.05) 100%);
  border: 2px solid rgba(0, 0, 0, 0.1);
}

body.white-background .nav__link:hover {
  color: var(--text-accent);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(0, 128, 200, 0.08) 100%);
}

body.yellow-background .header {
  background: linear-gradient(135deg, 
    rgba(249, 200, 70, 0.18) 0%, 
    rgba(162, 197, 22, 0.08) 100%);
}

body.yellow-background .nav__logo {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(249, 200, 70, 0.05) 100%);
  border: 2px solid rgba(255, 255, 255, 0.95);
}

body.yellow-background .nav__logo-text {
  color: #ffffff;
  text-shadow: 
    2px 2px 0 #000000,
    -2px -2px 0 #000000,
    2px -2px 0 #000000,
    -2px 2px 0 #000000,
    0 2px 0 #000000,
    0 -2px 0 #000000,
    2px 0 0 #000000,
    -2px 0 0 #000000;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

body.yellow-background .nav__logo-subtitle {
  color: #ffffff;
  text-shadow: 
    1px 1px 0 #004d7a,
    -1px -1px 0 #004d7a,
    1px -1px 0 #004d7a,
    -1px 1px 0 #004d7a,
    0 1px 0 #004d7a,
    0 -1px 0 #004d7a,
    1px 0 0 #004d7a,
    -1px 0 0 #004d7a;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

body.yellow-background .nav__link {
  color: var(--text-primary);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(249, 200, 70, 0.05) 100%);
  border: 2px solid rgba(0, 0, 0, 0.1);
}

body.yellow-background .nav__link:hover {
  color: var(--text-accent);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(249, 200, 70, 0.08) 100%);
}

body.purple-background .header {
  background: linear-gradient(135deg, 
    rgba(111, 66, 193, 0.18) 0%, 
    rgba(162, 197, 22, 0.08) 100%);
}

body.purple-background .nav__logo {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(111, 66, 193, 0.05) 100%);
  border: 2px solid rgba(255, 255, 255, 0.95);
}

body.purple-background .nav__logo-text {
  color: #ffffff;
  text-shadow: 
    2px 2px 0 #000000,
    -2px -2px 0 #000000,
    2px -2px 0 #000000,
    -2px 2px 0 #000000,
    0 2px 0 #000000,
    0 -2px 0 #000000,
    2px 0 0 #000000,
    -2px 0 0 #000000;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

body.purple-background .nav__logo-subtitle {
  color: #ffffff;
  text-shadow: 
    1px 1px 0 #004d7a,
    -1px -1px 0 #004d7a,
    1px -1px 0 #004d7a,
    -1px 1px 0 #004d7a,
    0 1px 0 #004d7a,
    0 -1px 0 #004d7a,
    1px 0 0 #004d7a,
    -1px 0 0 #004d7a;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

body.purple-background .nav__link {
  color: var(--text-primary);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(111, 66, 193, 0.05) 100%);
  border: 2px solid rgba(0, 0, 0, 0.1);
}

body.purple-background .nav__link:hover {
  color: var(--text-accent);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(111, 66, 193, 0.08) 100%);
}

/* ===========================================
   MOBILE NAVIGATION OPTIMIZATION
   =========================================== */

/* Früherer Breakpoint für Burger-Menü - 1024px */
/* Aktiviert bei kleineren Bildschirmen, um Platzprobleme zu vermeiden */
@media (max-width: 1024px) {
  .nav__container {
    width: 100%;
    justify-content: space-between;
  }
  
  /* Menü wird standardmäßig versteckt bei 1024px */
  .nav__menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    transform: translateY(-100%);
    width: 100%;
    background: linear-gradient(135deg, 
      rgba(255, 255, 255, 0.98) 0%, 
      rgba(255, 255, 255, 0.95) 50%,
      rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(40px) saturate(1.5);
    -webkit-backdrop-filter: blur(40px) saturate(1.5);
    flex-direction: column;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
      0 25px 80px rgba(0, 0, 0, 0.15),
      0 0 0 1px rgba(255, 255, 255, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: none;
  }
  
  .nav__menu.active,
  .nav__menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    display: flex;
  }
  
  .nav__toggle {
    display: flex;
    padding: 0.5rem;
    border-radius: 8px;
  }
}

/* Tablet Breakpoint - 768px */
@media (max-width: 768px) {
  .header__content {
    padding: 0 1rem;
    height: 70px;
  }
  
  .nav__logo {
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
  }
  
  .nav__logo-image {
    width: 32px;
    height: 32px;
  }
  
  .nav__logo-text {
    font-size: 1.1rem;
  }
  
  .nav__logo-subtitle {
    font-size: 0.8rem;
  }
  
  .nav__container {
    width: 100%;
    justify-content: space-between;
  }
  
  .nav__menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    transform: translateY(-100%);
    width: 100%;
    background: linear-gradient(135deg, 
      rgba(255, 255, 255, 0.98) 0%, 
      rgba(255, 255, 255, 0.95) 50%,
      rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(40px) saturate(1.5);
    -webkit-backdrop-filter: blur(40px) saturate(1.5);
    flex-direction: column;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
    border-radius: var(--radius-2xl);
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
      0 25px 80px rgba(0, 0, 0, 0.15),
      0 0 0 1px rgba(255, 255, 255, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .nav__menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav__item {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .nav__link {
    width: 100%;
    justify-content: flex-start;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-xl);
    font-size: 1.55rem;
    min-height: 52px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, 
      rgba(0, 128, 200, 0.65) 0%, 
      rgba(255, 255, 255, 0.8) 50%,
      rgba(0, 128, 200, 0.6) 100%) !important;
    border: 1px solid rgba(0, 128, 200, 0.7) !important;
    backdrop-filter: blur(15px) saturate(1.1);
    -webkit-backdrop-filter: blur(15px) saturate(1.1);
    color: #000000 !important;
    font-weight: 700;
    -webkit-text-stroke: 0.3px rgba(255, 255, 255, 1);
    text-stroke: 0.3px rgba(255, 255, 255, 1);
    text-shadow: 
      0 1px 2px rgba(255, 255, 255, 0.8),
      0 0 1px rgba(255, 255, 255, 0.5);
    box-shadow: 
      0 4px 15px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
    -webkit-tap-highlight-color: rgba(0, 128, 200, 0.3);
    user-select: none;
    -webkit-user-select: none;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
    text-rendering: geometricPrecision;
    transform: translateZ(0);
    will-change: transform;
  }
  
  .nav__link:hover {
    background: linear-gradient(135deg, 
      rgba(0, 128, 200, 0.75) 0%, 
      rgba(255, 255, 255, 0.9) 50%,
      rgba(0, 128, 200, 0.7) 100%) !important;
    border: 1px solid rgba(0, 128, 200, 0.8) !important;
    color: #000000 !important;
    -webkit-text-stroke: 0.3px rgba(255, 255, 255, 1);
    text-stroke: 0.3px rgba(255, 255, 255, 1);
    text-shadow: 
      0 1px 2px rgba(255, 255, 255, 0.8),
      0 0 1px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px) translateZ(0);
    box-shadow: 
      0 8px 25px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }
  
  .nav__link:active {
    transform: translateY(0);
    transition: all 0.1s ease;
  }
  
  /* Überschreibe body-spezifische Styles für Mobile-Menü */
  body.blue-background .nav__link,
  body.yellow-background .nav__link,
  body.white-background .nav__link,
  body.purple-background .nav__link {
    background: linear-gradient(135deg, 
      rgba(0, 128, 200, 0.65) 0%, 
      rgba(255, 255, 255, 0.8) 50%,
      rgba(0, 128, 200, 0.6) 100%) !important;
    border: 1px solid rgba(0, 128, 200, 0.7) !important;
    color: #000000 !important;
    -webkit-text-stroke: 0.3px rgba(255, 255, 255, 1) !important;
    text-stroke: 0.3px rgba(255, 255, 255, 1) !important;
    text-shadow: 
      0 1px 2px rgba(255, 255, 255, 0.8),
      0 0 1px rgba(255, 255, 255, 0.5) !important;
    -webkit-font-smoothing: subpixel-antialiased !important;
    -moz-osx-font-smoothing: auto !important;
    text-rendering: geometricPrecision !important;
    transform: translateZ(0) !important;
  }
  
  body.blue-background .nav__link:hover,
  body.yellow-background .nav__link:hover,
  body.white-background .nav__link:hover,
  body.purple-background .nav__link:hover {
    background: linear-gradient(135deg, 
      rgba(0, 128, 200, 0.75) 0%, 
      rgba(255, 255, 255, 0.9) 50%,
      rgba(0, 128, 200, 0.7) 100%) !important;
    border: 1px solid rgba(0, 128, 200, 0.8) !important;
    color: #000000 !important;
    -webkit-text-stroke: 0.3px rgba(255, 255, 255, 1) !important;
    text-stroke: 0.3px rgba(255, 255, 255, 1) !important;
    text-shadow: 
      0 1px 2px rgba(255, 255, 255, 0.8),
      0 0 1px rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px) translateZ(0) !important;
  }

  .nav__icon {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  }
  
  .nav__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 1rem;
    display: none;
    pointer-events: auto;
    z-index: 100;
    position: relative;
  }
  
  .nav__item--dropdown.active .nav__submenu {
    display: block;
    pointer-events: auto;
  }
  
  .nav__submenu::before {
    display: none;
  }
  
  /* Sicherstellen, dass Sublinks auf Mobile klickbar sind */
  .nav__submenu .nav__sublink {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 101 !important;
    position: relative !important;
    -webkit-tap-highlight-color: rgba(0, 128, 200, 0.4) !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
  }
  
  .nav__toggle {
    display: flex;
    padding: 0.5rem;
    border-radius: 8px;
  }
}

/* Mobile Breakpoint - 480px */
@media (max-width: 480px) {
  .header__content {
    padding: 0 0.75rem;
    height: 65px;
  }
  
  .nav__logo {
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
  }
  
  .nav__logo-image {
    width: 28px;
    height: 28px;
  }
  
  .nav__logo-text {
    font-size: 1rem;
  }
  
  .nav__logo-subtitle {
    font-size: 0.75rem;
  }
  
  .nav__menu {
    top: 65px;
    padding: 1rem;
    max-height: calc(100vh - 65px);
  }
  
  .nav__link {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    min-height: 44px;
  }
  
  .nav__icon {
    width: 18px;
    height: 18px;
    margin-right: 0.6rem;
  }
  
  .nav__toggle {
    padding: 0.4rem;
  }
  
  .nav__toggle-line {
    width: 20px;
    height: 2px;
  }
}

/* Ultra Mobile Breakpoint - 320px */
@media (max-width: 320px) {
  .header__content {
    padding: 0 0.5rem;
    height: 60px;
  }
  
  .nav__logo {
    gap: 0.3rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
  }
  
  .nav__logo-image {
    width: 24px;
    height: 24px;
  }
  
  .nav__logo-text {
    font-size: 0.9rem;
  }
  
  .nav__logo-subtitle {
    font-size: 0.7rem;
  }
  
  .nav__menu {
    top: 60px;
    padding: 0.75rem;
    max-height: calc(100vh - 60px);
  }
  
  .nav__link {
    padding: 0.75rem 0.875rem;
    font-size: 0.9rem;
    min-height: 40px;
  }
  
  .nav__icon {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
  }
  
  .nav__toggle {
    padding: 0.3rem;
  }
  
  .nav__toggle-line {
    width: 18px;
    height: 2px;
  }
}

/* Animations */
@keyframes glassFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.nav__logo {
  animation: glassFloat 6s ease-in-out infinite;
}

.nav__link {
  animation: glassFloat 8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.1s);
}

/* Logo Color Variations */
body.white-background .nav__logo-image {
  filter: hue-rotate(0deg) saturate(1.2) brightness(0.8);
}

body.yellow-background .nav__logo-image {
  filter: hue-rotate(0deg) saturate(1.2) brightness(0.8);
}

/* Scroll Effect */
.header.scrolled {
  background: rgba(0, 128, 200, 0.25);
  backdrop-filter: blur(25px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
