/**
 * Header Premium Design V3 - Revolutionary Edition
 * 
 * Features:
 * ✨ Announcement Bar with animations
 * 🎨 Split-Layout Design (Brand | Navigation | CTA)
 * 💎 Advanced Glassmorphism Effects
 * 🎭 Micro-Interactions & Hover States
 * 📱 Premium Mobile Side-Panel
 * ⚡ Performance Optimized
 * ♿ WCAG 2.1 AA Accessibility
 * 
 * @package BeautyConcept
 * @version 3.0.0
 */

/* ==========================================================================
   CSS CUSTOM PROPERTIES - DESIGN SYSTEM
   ========================================================================== */

:root {
  /* === COLOR PALETTE === */
  
  /* Rose/Pink Shades */
  --color-rose-50: #fff1f2;
  --color-rose-100: #ffe4e6;
  --color-rose-200: #fecdd3;
  --color-rose-300: #fda4af;
  --color-rose-400: #fb7185;
  --color-rose-500: #f43f5e;
  --color-rose-600: #e11d48;
  --color-rose-700: #be123c;
  --color-rose-800: #9f1239;
  --color-rose-900: #881337;
  --color-rose-950: #4c0519;
  
  /* Neutral Grays */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  
  /* === GRADIENTS === */
  --gradient-primary: linear-gradient(135deg, var(--color-rose-900) 0%, var(--color-rose-700) 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(136, 19, 55, 0.03) 0%, rgba(190, 18, 60, 0.03) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  --gradient-shimmer: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  
  /* === SHADOWS - LAYERED DEPTH === */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.03), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(136, 19, 55, 0.05), 0 2px 4px -2px rgba(136, 19, 55, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(136, 19, 55, 0.08), 0 4px 6px -4px rgba(136, 19, 55, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(136, 19, 55, 0.1), 0 8px 10px -6px rgba(136, 19, 55, 0.08);
  --shadow-2xl: 0 25px 50px -12px rgba(136, 19, 55, 0.15);
  --shadow-glass: 0 8px 32px 0 rgba(136, 19, 55, 0.08);
  --shadow-glow: 0 0 20px rgba(136, 19, 55, 0.15);
  
  /* === SPACING - GOLDEN RATIO SCALE === */
  --space-xs: 0.5rem;     /* 8px */
  --space-sm: 0.75rem;    /* 12px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.618rem;   /* ~26px */
  --space-xl: 2.618rem;   /* ~42px */
  --space-2xl: 4.236rem;  /* ~68px */
  --space-3xl: 6.854rem;  /* ~110px */
  
  /* === BORDER RADIUS === */
  --radius-xs: 0.25rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
  
  /* === BLUR EFFECTS === */
  --blur-sm: 4px;
  --blur-md: 8px;
  --blur-lg: 12px;
  --blur-xl: 16px;
  --blur-2xl: 24px;
  --blur-3xl: 40px;
  
  /* === TIMING FUNCTIONS === */
  --ease-linear: linear;
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* === HEADER SPECIFIC === */
  --header-height-mobile: 70px;
  --header-height-tablet: 80px;
  --header-height-desktop: 90px;
  --announcement-bar-height: 40px;
}

/* ==========================================================================
   ANNOUNCEMENT BAR - TOP STRIP
   ========================================================================== */

.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  
  /* Design */
  background: var(--gradient-primary);
  color: white;
  
  /* Size */
  height: var(--announcement-bar-height);
  
  /* Animation */
  transform: translateY(0);
  transition: transform 0.3s var(--ease-smooth);
}

.announcement-bar.hidden {
  transform: translateY(-100%);
}

.announcement-bar__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.announcement-bar__content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.announcement-bar__link,
.announcement-bar__text-only {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  
  color: white;
  text-decoration: none;
  
  transition: all 0.3s var(--ease-smooth);
}

.announcement-bar__link:hover {
  transform: translateX(4px);
}

.announcement-bar__icon {
  display: flex;
  align-items: center;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.announcement-bar__arrow {
  transition: transform 0.3s var(--ease-smooth);
}

.announcement-bar__link:hover .announcement-bar__arrow {
  transform: translateX(4px);
}

.announcement-bar__close {
  /* Reset */
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  
  /* Design */
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s var(--ease-smooth);
}

.announcement-bar__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Push down content when announcement bar is visible */
body:has(.announcement-bar) .site-header {
  top: var(--announcement-bar-height);
}

/* ==========================================================================
   HEADER - MAIN CONTAINER
   ========================================================================== */

.site-header {
  /* Position */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  
  /* Glassmorphism Effect */
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(var(--blur-xl)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-xl)) saturate(180%);
  
  /* Border & Shadow */
  border-bottom: 1px solid rgba(136, 19, 55, 0.06);
  box-shadow: var(--shadow-sm);
  
  /* Transitions */
  transition: all 0.4s var(--ease-smooth);
  
  /* Prevent collapse */
  will-change: transform, background-color, box-shadow;
}

/* Enhanced Scrolled State */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(var(--blur-2xl)) saturate(200%);
  -webkit-backdrop-filter: blur(var(--blur-2xl)) saturate(200%);
  
  border-bottom-color: rgba(136, 19, 55, 0.1);
  box-shadow: var(--shadow-lg);
}

/* Subtle Shine Effect */
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  
  background: var(--gradient-shimmer);
  
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
  pointer-events: none;
}

.site-header.scrolled::before {
  animation: shine 8s ease-in-out infinite;
  opacity: 0.3;
}

@keyframes shine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* ==========================================================================
   HEADER GRID - SPLIT LAYOUT
   ========================================================================== */

.header-wrapper {
  position: relative;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-xl);
  
  min-height: var(--header-height-mobile);
  
  position: relative;
}

@media (min-width: 768px) {
  .header-grid {
    min-height: var(--header-height-tablet);
  }
}

@media (min-width: 1024px) {
  .header-grid {
    min-height: var(--header-height-desktop);
    gap: var(--space-2xl);
  }
}

/* ==========================================================================
   HEADER LEFT - BRAND & CONTACT
   ========================================================================== */

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-shrink: 0;
}

/* --- Site Branding --- */

.site-branding {
  position: relative;
  z-index: 1001;
}

.custom-logo-link {
  display: block;
  position: relative;
  
  transition: all 0.3s var(--ease-smooth);
}

/* Premium Glow Effect */
.custom-logo-link::after {
  content: '';
  position: absolute;
  inset: -12px;
  
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  
  opacity: 0;
  filter: blur(24px);
  
  transition: opacity 0.4s var(--ease-smooth);
  z-index: -1;
  pointer-events: none;
}

.custom-logo-link:hover::after {
  opacity: 0.2;
}

.custom-logo-link:hover {
  transform: scale(1.03) translateY(-2px);
}

.custom-logo {
  display: block;
  max-height: 50px;
  width: auto;
  
  transition: filter 0.3s var(--ease-smooth);
}

@media (min-width: 768px) {
  .custom-logo {
    max-height: 60px;
  }
}

@media (min-width: 1024px) {
  .custom-logo {
    max-height: 70px;
  }
}

.custom-logo-link:hover .custom-logo {
  filter: brightness(1.05) contrast(1.05);
}

/* --- Site Title (Fallback) --- */

.site-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.site-title {
  margin: 0;
  
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.site-title a {
  color: var(--color-gray-900);
  text-decoration: none;
  
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
  transition: all 0.3s var(--ease-smooth);
  position: relative;
}

/* Animated Underline */
.site-title a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  
  width: 0;
  height: 2px;
  
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  
  transition: width 0.4s var(--ease-smooth);
}

.site-title a:hover::after {
  width: 100%;
}

.site-description {
  margin: 0;
  
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  
  color: var(--color-gray-600);
  opacity: 0.8;
}

/* Hide on mobile */
@media (max-width: 767px) {
  .site-description {
    display: none;
  }
}

/* --- Header Contact --- */

.header-contact {
  display: none;
}

@media (min-width: 1024px) {
  .header-contact {
    display: flex;
  }
}

.header-contact__phone {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  
  padding: var(--space-sm) var(--space-md);
  
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-700);
  text-decoration: none;
  
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  
  transition: all 0.3s var(--ease-smooth);
}

.header-contact__phone:hover {
  background: white;
  border-color: var(--color-rose-300);
  color: var(--color-rose-900);
  
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.header-contact__icon {
  display: flex;
  color: var(--color-rose-700);
  transition: transform 0.3s var(--ease-bounce);
}

.header-contact__phone:hover .header-contact__icon {
  transform: rotate(12deg) scale(1.1);
}

/* ==========================================================================
   HEADER CENTER - NAVIGATION
   ========================================================================== */

.header-navigation {
  display: none;
  justify-content: center;
  flex: 1;
}

@media (min-width: 1024px) {
  .header-navigation {
    display: flex;
  }
}

/* --- Navigation Menu --- */

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  position: relative;
}

/* Menu Links */
.nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  
  padding: var(--space-sm) var(--space-md);
  
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  
  color: var(--color-gray-700);
  text-decoration: none;
  
  border-radius: var(--radius-md);
  
  position: relative;
  transition: all 0.3s var(--ease-smooth);
}

/* Hover State */
.nav-menu > li > a:hover {
  color: var(--color-rose-900);
  background: var(--color-rose-50);
}

/* Underline Animation */
.nav-menu > li > a::before {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  
  width: 0;
  height: 2px;
  
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  
  transform: translateX(-50%);
  transition: width 0.4s var(--ease-smooth);
}

.nav-menu > li > a:hover::before {
  width: calc(100% - var(--space-lg));
}

/* Active State */
.nav-menu .current-menu-item > a,
.nav-menu .current-menu-ancestor > a {
  color: var(--color-rose-900);
  font-weight: 600;
  background: var(--color-rose-50);
}

.nav-menu .current-menu-item > a::before {
  width: calc(100% - var(--space-lg));
}

/* Dropdown Indicator */
.nav-menu .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  
  width: 0;
  height: 0;
  
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  
  margin-left: 4px;
  
  transition: transform 0.3s var(--ease-smooth);
}

.nav-menu .menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* --- Dropdown Submenu --- */

.nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  
  min-width: 220px;
  
  list-style: none;
  margin: 0;
  padding: var(--space-sm);
  
  /* Glassmorphism */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(var(--blur-xl)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-xl)) saturate(180%);
  
  border: 1px solid rgba(136, 19, 55, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  
  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  
  transition: all 0.3s var(--ease-smooth);
  z-index: 100;
}

.nav-menu .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-menu .sub-menu li {
  margin: 0;
}

.nav-menu .sub-menu a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-700);
  text-decoration: none;
  
  border-radius: var(--radius-sm);
  
  transition: all 0.2s var(--ease-smooth);
}

.nav-menu .sub-menu a:hover {
  color: var(--color-rose-900);
  background: var(--color-rose-50);
  transform: translateX(4px);
}

/* ==========================================================================
   HEADER RIGHT - CTA & MOBILE TOGGLE
   ========================================================================== */

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

/* --- CTA Button --- */

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .header-cta {
    display: block;
  }
}

.btn {
  /* Reset */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  
  /* Spacing */
  padding: var(--space-sm) var(--space-lg);
  
  /* Typography */
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  
  /* Design */
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  
  /* Transitions */
  transition: all 0.3s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(136, 19, 55, 0.25);
}

/* Shine Effect */
.btn-primary::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: left 0.6s var(--ease-smooth);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(136, 19, 55, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(136, 19, 55, 0.25);
}

/* Icon Animation */
.btn-icon {
  display: flex;
  transition: transform 0.3s var(--ease-bounce);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* Block Button */
.btn-block {
  width: 100%;
}

/* ==========================================================================
   MOBILE MENU TOGGLE
   ========================================================================== */

.mobile-menu-toggle {
  /* Reset */
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  
  /* Size */
  width: 44px;
  height: 44px;
  
  /* Design */
  display: flex;
  align-items: center;
  justify-content: center;
  
  border-radius: var(--radius-md);
  
  transition: all 0.3s var(--ease-smooth);
  position: relative;
  z-index: 1002;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle:hover {
  background: var(--color-gray-100);
}

.mobile-menu-toggle__inner {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  height: 18px;
  position: relative;
}

.mobile-menu-toggle__line {
  display: block;
  width: 100%;
  height: 2px;
  
  background: var(--color-gray-700);
  border-radius: var(--radius-full);
  
  transition: all 0.3s var(--ease-smooth);
  transform-origin: center;
}

/* Active (X) State */
.mobile-menu-toggle.active .mobile-menu-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .mobile-menu-toggle__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active .mobile-menu-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   MOBILE MENU - SIDE PANEL
   ========================================================================== */

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  
  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  
  transition: all 0.3s var(--ease-smooth);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* --- Backdrop --- */

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  
  cursor: pointer;
  
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
}

.mobile-menu.active .mobile-menu__backdrop {
  opacity: 1;
}

/* --- Panel --- */

.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  
  width: 100%;
  max-width: 380px;
  
  display: flex;
  flex-direction: column;
  
  /* Glassmorphism */
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(var(--blur-2xl)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-2xl)) saturate(180%);
  
  box-shadow: var(--shadow-2xl);
  
  /* Animation */
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-smooth);
}

.mobile-menu.active .mobile-menu__panel {
  transform: translateX(0);
}

/* --- Header --- */

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  
  padding: var(--space-lg);
  
  border-bottom: 1px solid rgba(136, 19, 55, 0.08);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  
  flex-shrink: 0;
}

.mobile-menu__logo {
  max-width: 150px;
}

.mobile-menu__logo-img {
  display: block;
  max-height: 50px;
  width: auto;
}

.mobile-menu__logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gray-900);
}

.mobile-menu__close {
  /* Reset */
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  
  /* Size */
  width: 44px;
  height: 44px;
  
  /* Design */
  display: flex;
  align-items: center;
  justify-content: center;
  
  color: var(--color-gray-700);
  background: var(--color-gray-100);
  border-radius: var(--radius-md);
  
  transition: all 0.3s var(--ease-smooth);
}

.mobile-menu__close:hover {
  background: var(--color-gray-200);
  color: var(--color-rose-900);
  transform: rotate(90deg);
}

.mobile-menu__close-icon {
  display: flex;
}

/* --- Content --- */

.mobile-menu__content {
  flex: 1;
  padding: var(--space-lg);
  
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  
  /* Custom Scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(136, 19, 55, 0.2) transparent;
}

.mobile-menu__content::-webkit-scrollbar {
  width: 6px;
}

.mobile-menu__content::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-menu__content::-webkit-scrollbar-thumb {
  background: rgba(136, 19, 55, 0.2);
  border-radius: var(--radius-full);
}

.mobile-menu__content::-webkit-scrollbar-thumb:hover {
  background: rgba(136, 19, 55, 0.3);
}

/* Mobile Navigation Menu */

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.mobile-nav-menu > li {
  /* Animation stagger effect */
  opacity: 0;
  transform: translateX(20px);
  animation: slideIn 0.4s var(--ease-smooth) forwards;
}

.mobile-menu.active .mobile-nav-menu > li {
  animation: slideIn 0.4s var(--ease-smooth) forwards;
}

/* Stagger delays */
.mobile-nav-menu > li:nth-child(1) { animation-delay: 0.05s; }
.mobile-nav-menu > li:nth-child(2) { animation-delay: 0.1s; }
.mobile-nav-menu > li:nth-child(3) { animation-delay: 0.15s; }
.mobile-nav-menu > li:nth-child(4) { animation-delay: 0.2s; }
.mobile-nav-menu > li:nth-child(5) { animation-delay: 0.25s; }
.mobile-nav-menu > li:nth-child(6) { animation-delay: 0.3s; }

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-nav-menu > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  
  padding: var(--space-md) var(--space-lg);
  
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-gray-800);
  text-decoration: none;
  
  background: white;
  border: 1px solid rgba(136, 19, 55, 0.08);
  border-radius: var(--radius-lg);
  
  transition: all 0.3s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

/* Gradient Background on Hover */
.mobile-nav-menu > li > a::before {
  content: '';
  position: absolute;
  inset: 0;
  
  background: var(--gradient-subtle);
  
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
}

.mobile-nav-menu > li > a:hover {
  color: var(--color-rose-900);
  border-color: rgba(136, 19, 55, 0.2);
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.mobile-nav-menu > li > a:hover::before {
  opacity: 1;
}

/* Active Indicator */
.mobile-nav-menu .current-menu-item > a {
  color: var(--color-rose-900);
  border-color: rgba(136, 19, 55, 0.2);
  font-weight: 600;
}

.mobile-nav-menu .current-menu-item > a::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  
  width: 4px;
  height: 60%;
  
  background: var(--gradient-primary);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

/* --- Footer --- */

.mobile-menu__footer {
  padding: var(--space-lg);
  
  border-top: 1px solid rgba(136, 19, 55, 0.08);
  background: linear-gradient(to top, rgba(255, 255, 255, 0.5), transparent);
  
  flex-shrink: 0;
  
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.mobile-menu__cta {
  width: 100%;
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
}

/* Contact Items */

.mobile-menu__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mobile-menu__contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  
  padding: var(--space-sm) var(--space-md);
  
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-700);
  text-decoration: none;
  
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
  
  transition: all 0.3s var(--ease-smooth);
}

.mobile-menu__contact-item:hover {
  background: var(--color-rose-50);
  color: var(--color-rose-900);
  transform: translateX(4px);
}

.mobile-menu__contact-icon {
  font-size: 1.125rem;
}

/* ==========================================================================
   BODY LOCK - PREVENT SCROLL WHEN MENU OPEN
   ========================================================================== */

body.mobile-menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100vh;
}

/* ==========================================================================
   ACCESSIBILITY - SCREEN READER ONLY
   ========================================================================== */

.screen-reader-text {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  
  padding: var(--space-sm) var(--space-md);
  
  background: var(--color-rose-900);
  color: white;
  text-decoration: none;
  
  z-index: 100000;
  transition: top 0.3s var(--ease-smooth);
}

.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  .announcement-bar,
  .mobile-menu,
  .mobile-menu-toggle,
  .header-cta {
    display: none !important;
  }
  
  .site-header {
    position: static;
    background: white;
    border-bottom: 1px solid #000;
    box-shadow: none;
  }
}

/* ==========================================================================
   HIGH CONTRAST MODE
   ========================================================================== */

@media (prefers-contrast: high) {
  .site-header {
    background: white;
    border-bottom: 2px solid var(--color-gray-900);
  }
  
  .nav-menu > li > a,
  .mobile-nav-menu > li > a {
    border: 2px solid var(--color-gray-900);
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .mobile-menu__panel {
    transition: none;
  }
}

/**
 * MOBILE MENU FIXES
 * 
 * Fixes:
 * 1. Hamburger Menu Positionierung (rechts statt Mitte)
 * 2. Mobile Menu Panel Hintergrund anpassbar
 * 3. Menu nicht auf Header begrenzt (full viewport)
 * 
 * Füge diese Styles zu header-premium-v3.css hinzu
 * ODER erstelle separate CSS-Datei
 */

/* ==========================================================================
   FIX 1: HAMBURGER MENU POSITION - RECHTS STATT MITTE
   ========================================================================== */

.header-grid {
  /* Stelle sicher dass Grid korrekt funktioniert */
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-xl);
}

.header-right {
  /* Wichtig: Rechts ausrichten */
  display: flex;
  align-items: center;
  justify-content: flex-end; /* ← FIX: Rechts ausrichten */
  gap: var(--space-md);
  flex-shrink: 0;
  margin-left: auto; /* ← FIX: Zusätzliche Sicherheit */
}

/* Mobile Menu Toggle sicherstellen dass es rechts ist */
.mobile-menu-toggle {
  margin-left: auto; /* ← FIX: Immer ganz rechts */
}

@media (max-width: 767px) {
  .header-grid {
    /* Mobile: 2 Spalten (Logo | Toggle) */
    grid-template-columns: 1fr auto;
  }
  
  /* Navigation verstecken auf Mobile */
  .header-navigation {
    display: none;
  }
  
  /* CTA verstecken auf Mobile */
  .header-cta {
    display: none;
  }
}

/* ==========================================================================
   FIX 2: MOBILE MENU NICHT AUF HEADER BEGRENZT
   ========================================================================== */

/* KRITISCH: Stelle sicher dass Container Mobile Menu nicht begrenzen */
#page,
.site,
.site-header,
.header-wrapper,
.container {
  /* Erlaube overflow für Mobile Menu */
  overflow: visible !important;
}

/* Mobile Menu MUSS über allem sein */
.mobile-menu {
  position: fixed !important; /* ← WICHTIG: fixed, nicht absolute */
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 9999 !important; /* ← Höchster z-index */
  
  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  
  transition: all 0.3s var(--ease-smooth);
}

.mobile-menu.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Mobile Menu Panel */
.mobile-menu__panel {
  position: absolute !important; /* Relativ zum fixed parent */
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  
  width: 100%;
  max-width: 380px;
  
  /* Animation */
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-smooth);
  
  /* Volle Höhe garantieren */
  min-height: 100vh !important;
  height: 100% !important;
}

.mobile-menu.active .mobile-menu__panel {
  transform: translateX(0) !important;
}

/* ==========================================================================
   FIX 3: MOBILE MENU HINTERGRUND ANPASSBAR
   ========================================================================== */

/* 
   OPTION A: Weißer Hintergrund (Standard)
   Kommentiere aus was du NICHT willst
*/
.mobile-menu__panel {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(var(--blur-2xl)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-2xl)) saturate(180%);
}

/* 
   OPTION B: Rose/Pink Hintergrund
   Entferne Kommentar um zu aktivieren
*/

/*
.mobile-menu__panel {
  background: linear-gradient(135deg, rgba(136, 19, 55, 0.95) 0%, rgba(190, 18, 60, 0.95) 100%);
  backdrop-filter: blur(var(--blur-2xl)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-2xl)) saturate(180%);
}

.mobile-menu__header {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav-menu > li > a {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav-menu > li > a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.mobile-menu__close {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}
*/

/* 
   OPTION C: Dunkler Hintergrund
   Entferne Kommentar um zu aktivieren
*/

/*
.mobile-menu__panel {
  background: rgba(17, 24, 39, 0.98);
  backdrop-filter: blur(var(--blur-2xl)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-2xl)) saturate(180%);
}

.mobile-menu__header {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-menu > li > a {
  color: white;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-menu > li > a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu__close {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.mobile-menu__logo-text {
  color: white;
}

.mobile-menu__contact-item {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}
*/

/* 
   OPTION D: Custom Farbe
   Passe die Werte nach deinen Wünschen an
*/
/*
.mobile-menu__panel {
  background: rgba(DEINE_R, DEINE_G, DEINE_B, 0.98);
  backdrop-filter: blur(var(--blur-2xl)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-2xl)) saturate(180%);
}
*/

/* ==========================================================================
   FIX 4: BODY SCROLL LOCK VERBESSERN
   ========================================================================== */

/* Verhindere Scrollen wenn Menu offen */
body.mobile-menu-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100vh !important;
  
  /* iOS Fix */
  -webkit-overflow-scrolling: auto !important;
}

/* ==========================================================================
   FIX 5: Z-INDEX HIERARCHIE SICHERSTELLEN
   ========================================================================== */

/* Z-Index Hierarchie:
   1. Announcement Bar: 1001
   2. Site Header: 1000
   3. Mobile Toggle (Active): 1002
   4. Mobile Menu: 9999
*/

.announcement-bar {
  z-index: 1001;
}

.site-header {
  z-index: 1000;
}

.mobile-menu-toggle {
  z-index: 1002; /* Über Header, aber unter Menu */
}

.mobile-menu {
  z-index: 9999; /* Über allem */
}

/* ==========================================================================
   FIX 6: RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet: Verstecke Desktop-Nav, zeige Mobile-Toggle */
@media (min-width: 768px) and (max-width: 1023px) {
  .header-navigation {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Desktop: Verstecke Mobile Menu komplett */
@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ==========================================================================
   DEBUGGING (Optional - Entferne nach Testing)
   ========================================================================== */

/* Aktiviere diese Styles um Menu-Probleme zu debuggen */
/*
.mobile-menu {
  background: rgba(255, 0, 0, 0.1) !important;
}

.mobile-menu__panel {
  background: rgba(0, 255, 0, 0.9) !important;
}

.mobile-menu.active {
  outline: 3px solid red;
}
*/

/* === TABLET FIX === */

/* Tablet: 768-1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Desktop-Nav verstecken */
  .header-navigation {
    display: none !important;
  }
  
  /* Mobile Toggle zeigen */
  .mobile-menu-toggle {
    display: flex !important;
  }
  
  /* Mobile Menu verfügbar machen */
  .mobile-menu {
    display: block !important;
    position: fixed !important;
    z-index: 9999 !important;
  }
}

/* Mobile Menu Grundzustand (alle Breakpoints) */
.mobile-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/**
 * TABLET FIX - Mobile Menu funktioniert nicht auf Tablet
 * 
 * Problem: Menu öffnet nicht auf Tablets (768px - 1023px)
 * Ursache: CSS display:none oder z-index Konflikte
 * 
 * Füge diesen Code zu deiner CSS hinzu
 */

/* ==========================================================================
   KRITISCHER FIX: TABLET BREAKPOINT (768px - 1023px)
   ========================================================================== */

/* 
   Das Problem: 
   - Desktop Navigation wird ab 1024px gezeigt
   - Mobile Menu wird erst ab 1024px versteckt
   - Dazwischen (Tablet) gibt es Konflikte
*/

/* LÖSUNG: Explizite Tablet-Regeln */

/* Tablet: Verstecke Desktop Navigation */
@media (min-width: 768px) and (max-width: 1023px) {
  .header-navigation {
    display: none !important; /* Desktop-Nav verstecken */
  }
  
  /* Zeige Mobile Toggle */
  .mobile-menu-toggle {
    display: flex !important; /* Toggle zeigen */
  }
  
  /* Mobile Menu MUSS funktionieren */
  .mobile-menu {
    display: block !important; /* Nicht verstecken! */
    position: fixed !important;
    z-index: 9999 !important;
  }
  
  /* CTA kann optional versteckt werden für mehr Platz */
  .header-cta {
    display: none; /* Optional: Verstecke CTA auf Tablet */
  }
}

/* Desktop: Normale Regeln */
@media (min-width: 1024px) {
  .header-navigation {
    display: flex !important; /* Desktop-Nav zeigen */
  }
  
  .mobile-menu-toggle {
    display: none !important; /* Toggle verstecken */
  }
  
  .mobile-menu {
    display: none !important; /* Menu komplett weg */
  }
  
  .header-cta {
    display: block !important; /* CTA zeigen */
  }
}

/* Mobile: Normale Regeln */
@media (max-width: 767px) {
  .header-navigation {
    display: none !important; /* Desktop-Nav verstecken */
  }
  
  .mobile-menu-toggle {
    display: flex !important; /* Toggle zeigen */
  }
  
  .mobile-menu {
    display: block !important; /* Menu verfügbar */
    position: fixed !important;
    z-index: 9999 !important;
  }
  
  .header-cta {
    display: none; /* CTA verstecken auf Mobile */
  }
}

/* ==========================================================================
   ZUSÄTZLICHER FIX: Z-INDEX HIERARCHIE FÜR ALLE BREAKPOINTS
   ========================================================================== */

/* Stelle sicher dass Mobile Menu IMMER den höchsten z-index hat */
.mobile-menu {
  z-index: 9999 !important;
}

.mobile-menu__backdrop {
  z-index: 1 !important; /* Relativ zum Parent */
}

.mobile-menu__panel {
  z-index: 2 !important; /* Über Backdrop */
}

/* Header niedriger als Menu */
.site-header {
  z-index: 1000 !important;
}

/* Toggle muss klickbar bleiben, aber unter Menu */
.mobile-menu-toggle {
  z-index: 1002 !important;
}

/* Wenn Menu offen, Toggle noch höher (für X-Animation) */
.mobile-menu.active ~ .site-header .mobile-menu-toggle {
  z-index: 10000 !important;
}

/* ==========================================================================
   FIX: MOBILE MENU SICHTBARKEIT
   ========================================================================== */

/* Grundzustand: Versteckt aber im DOM */
.mobile-menu {
  /* NICHT display:none verwenden! */
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Aktiv: Sichtbar */
.mobile-menu.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Panel Animation */
.mobile-menu__panel {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active .mobile-menu__panel {
  transform: translateX(0) !important;
}

/* ==========================================================================
   DEBUG MODE (Optional - zum Testen)
   ========================================================================== */

/* 
   Aktiviere diese Styles um zu sehen was auf Tablet passiert
   Kommentiere aus wenn alles funktioniert
*/

/*
@media (min-width: 768px) and (max-width: 1023px) {
  .mobile-menu {
    outline: 3px solid red !important;
  }
  
  .mobile-menu-toggle {
    outline: 3px solid blue !important;
  }
  
  .header-navigation {
    outline: 3px solid green !important;
  }
}
*/

/* ==========================================================================
   ALTERNATIVE: FALLS PROBLEM WEITERHIN BESTEHT
   ========================================================================== */

/* Wenn das Problem weiterhin besteht, nutze diese Fallback-Lösung */

/* Option 1: Zeige Desktop-Nav auch auf Tablet */
/*
@media (min-width: 768px) {
  .header-navigation {
    display: flex !important;
  }
  
  .mobile-menu-toggle {
    display: none !important;
  }
  
  .mobile-menu {
    display: none !important;
  }
}
*/

/* Option 2: Mobile Menu überall außer Desktop */
/*
@media (max-width: 1023px) {
  .header-navigation {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
  }
  
  .mobile-menu {
    display: block !important;
    position: fixed !important;
    z-index: 9999 !important;
  }
}

@media (min-width: 1024px) {
  .header-navigation {
    display: flex !important;
  }
  
  .mobile-menu-toggle {
    display: none !important;
  }
  
  .mobile-menu {
    display: none !important;
  }
}
*/

/* ==========================================================================
   GRID LAYOUT ANPASSUNGEN FÜR TABLET
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1023px) {
  .header-grid {
    /* Tablet: Logo | Toggle (ggf. mit CTA) */
    grid-template-columns: auto 1fr auto;
    gap: var(--space-lg);
  }
  
  /* Logo nimmt minimalen Platz */
  .header-left {
    flex-shrink: 0;
  }
  
  /* Mitte ist leer (Navigation versteckt) */
  .header-navigation {
    display: none;
  }
  
  /* Rechts: Toggle (und optional CTA) */
  .header-right {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
  }
}

/* ==========================================================================
   TOUCH-OPTIMIERUNG FÜR TABLET
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1023px) {
  /* Größerer Touch-Target */
  .mobile-menu-toggle {
    width: 48px;
    height: 48px;
  }
  
  /* Panel nimmt mehr Platz auf Tablet */
  .mobile-menu__panel {
    max-width: 420px; /* Breiter auf Tablet */
  }
}

/* ==========================================================================
   JAVASCRIPT HELPER CLASSES
   ========================================================================== */

/* Fallback falls JavaScript nicht lädt */
html.no-js .mobile-menu {
  /* Zeige als normales Dropdown ohne Animation */
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Wenn Menu offen sollte, Page nicht scrollen */
body.mobile-menu-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
}

/* ==========================================================================
   BROWSER-SPEZIFISCHE FIXES
   ========================================================================== */

/* Safari iPad Fix */
@supports (-webkit-touch-callout: none) {
  @media (min-width: 768px) and (max-width: 1023px) {
    .mobile-menu {
      -webkit-transform: translate3d(0, 0, 0);
    }
    
    .mobile-menu__panel {
      -webkit-transform: translate3d(100%, 0, 0);
      -webkit-backface-visibility: hidden;
    }
    
    .mobile-menu.active .mobile-menu__panel {
      -webkit-transform: translate3d(0, 0, 0);
    }
  }
}

/* ==========================================================================
   PERFORMANCE OPTIMIERUNG
   ========================================================================== */

/* GPU Acceleration für smooth Animations auf Tablet */
.mobile-menu,
.mobile-menu__panel,
.mobile-menu__backdrop {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Cleanup nach Animation */
.mobile-menu.active {
  will-change: auto;
}

/**
 * COMPLETE MOBILE MENU LAYOUT FIX
 * 
 * Probleme behoben:
 * 1. Panel auf rechte Hälfte begrenzt (Tablet + Mobile Landscape)
 * 2. CTA Button am unteren Rand abgeschnitten
 * 3. Flexbox Layout funktioniert nicht korrekt
 * 
 * Diese Lösung ist ROBUST und überschreibt alle vorherigen Regeln
 */

/* ==========================================================================
   KRITISCHER FIX: MOBILE MENU CONTAINER & PANEL
   ========================================================================== */

/* Mobile Menu Container - MUSS FIXED SEIN */
.mobile-menu {
  /* Position */
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  
  /* Z-Index */
  z-index: 9999 !important;
  
  /* Sichtbarkeit */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  
  /* Transitions */
  transition: opacity 0.3s ease, visibility 0.3s ease;
  
  /* WICHTIG: Display Block, nicht None! */
  display: block !important;
}

.mobile-menu.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* ==========================================================================
   FIX: MOBILE MENU PANEL - BREITE & POSITION
   ========================================================================== */

/* Panel - Grundeinstellungen (Mobile) */
.mobile-menu__panel {
  /* Position - ABSOLUTE zum fixed Parent */
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important; /* WICHTIG: left nicht setzen */
  
  /* Breite - Mobile */
  width: 100% !important;
  max-width: 380px !important;
  
  /* Höhe - VOLLE Viewport-Höhe */
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  
  /* Flexbox Layout */
  display: flex !important;
  flex-direction: column !important;
  
  /* Background */
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  
  /* Shadow */
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  
  /* Animation */
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Overflow */
  overflow: hidden !important;
}

/* Panel Active State */
.mobile-menu.active .mobile-menu__panel {
  transform: translateX(0) !important;
}

/* ==========================================================================
   TABLET & LANDSCAPE: PANEL BREITER
   ========================================================================== */

/* Tablet Portrait (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .mobile-menu__panel {
    max-width: 480px !important; /* 60% von 768px */
  }
}

/* Mobile Landscape (480px - 767px) UND Höhe < 500px */
@media (min-width: 480px) and (max-width: 767px) and (max-height: 500px) {
  .mobile-menu__panel {
    max-width: 400px !important; /* Breiter im Landscape */
  }
}

/* Große Tablets (iPad Pro etc.) */
@media (min-width: 821px) and (max-width: 1023px) {
  .mobile-menu__panel {
    max-width: 520px !important;
  }
}

/* ==========================================================================
   FIX: FLEXBOX LAYOUT - HEADER, CONTENT, FOOTER
   ========================================================================== */

/* Panel Content Wrapper - 3-teiliges Layout */
.mobile-menu__panel {
  /* Wiederholung für Clarity */
  display: flex !important;
  flex-direction: column !important;
}

/* Header - Fixed Height */
.mobile-menu__header {
  /* Flexbox */
  flex-shrink: 0 !important; /* Nimmt nur nötigen Platz */
  
  /* Layout */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  
  /* Spacing */
  padding: 1.5rem !important;
  
  /* Height */
  min-height: 70px;
  max-height: 80px;
  
  /* Border */
  border-bottom: 1px solid rgba(136, 19, 55, 0.08);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
}

/* Content - Flexible, Scrollable */
.mobile-menu__content {
  /* Flexbox - Nimmt verfügbaren Platz */
  flex: 1 1 auto !important;
  
  /* Scrolling */
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  
  /* Spacing */
  padding: 1.5rem !important;
  padding-bottom: 2rem !important; /* Extra Platz unten */
  
  /* Custom Scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(136, 19, 55, 0.2) transparent;
}

.mobile-menu__content::-webkit-scrollbar {
  width: 6px;
}

.mobile-menu__content::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-menu__content::-webkit-scrollbar-thumb {
  background: rgba(136, 19, 55, 0.2);
  border-radius: 10px;
}

/* Footer - Fixed Height, No Grow */
.mobile-menu__footer {
  /* Flexbox - Nimmt nur nötigen Platz */
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  
  /* Layout */
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  
  /* Spacing */
  padding: 1.5rem !important;
  
  /* Max Height - Verhindert zu großen Footer */
  max-height: 250px !important; /* Fixed Height statt vh */
  
  /* Scrolling falls zu viel Content */
  overflow-y: auto !important;
  overflow-x: hidden !important;
  
  /* Border */
  border-top: 1px solid rgba(136, 19, 55, 0.08);
  background: linear-gradient(to top, rgba(255, 255, 255, 0.5), transparent);
}

/* Tablet: Footer etwas größer */
@media (min-width: 768px) and (max-width: 1023px) {
  .mobile-menu__footer {
    padding: 2rem !important;
    max-height: 280px !important;
  }
}

/* Mobile Landscape: Footer kompakter */
@media (max-height: 500px) {
  .mobile-menu__header {
    padding: 1rem !important;
    min-height: 60px;
  }
  
  .mobile-menu__content {
    padding: 1rem !important;
  }
  
  .mobile-menu__footer {
    padding: 1rem !important;
    max-height: 180px !important;
    gap: 0.5rem !important;
  }
}

/* ==========================================================================
   FIX: CTA BUTTON - VOLLE BREITE, SICHTBAR
   ========================================================================== */

.mobile-menu__cta {
  /* Wichtig: Volle Breite, keine Margins */
  width: 100% !important;
  margin: 0 !important;
  
  /* Spacing */
  padding: 1rem 2rem !important;
  
  /* Typography */
  font-size: 1rem !important;
  font-weight: 600 !important;
  text-align: center;
  text-decoration: none;
  
  /* Design */
  background: linear-gradient(135deg, #881337 0%, #be123c 100%);
  color: white;
  
  border: none;
  border-radius: 1rem;
  
  box-shadow: 0 4px 12px rgba(136, 19, 55, 0.3);
  
  /* Display */
  display: flex !important;
  align-items: center;
  justify-content: center;
  
  /* Transitions */
  transition: all 0.3s ease;
  cursor: pointer;
  
  /* Verhindert Textoverflow */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tablet: Größerer CTA */
@media (min-width: 768px) and (max-width: 1023px) {
  .mobile-menu__cta {
    padding: 1.25rem 2.5rem !important;
    font-size: 1.0625rem !important;
  }
}

/* CTA Hover/Active States */
.mobile-menu__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(136, 19, 55, 0.4);
}

.mobile-menu__cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(136, 19, 55, 0.3);
}

/* ==========================================================================
   FIX: CONTACT INFO - KOMPAKT
   ========================================================================== */

.mobile-menu__contact {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  
  /* Nicht zu groß werden lassen */
  max-width: 100%;
}

/* Tablet: Horizontal Layout */
@media (min-width: 768px) and (max-width: 1023px) {
  .mobile-menu__contact {
    flex-direction: row !important;
    gap: 0.75rem !important;
  }
}

/* Landscape: Horizontal wenn Platz */
@media (max-height: 500px) {
  .mobile-menu__contact {
    flex-direction: row !important;
    gap: 0.5rem !important;
  }
}

.mobile-menu__contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  
  padding: 0.75rem 1rem;
  
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  
  background: #f9fafb;
  border-radius: 0.75rem;
  
  transition: all 0.3s ease;
  
  /* Verhindert zu breite Items */
  flex: 1;
  min-width: 0; /* Wichtig für flex */
  overflow: hidden;
}

.mobile-menu__contact-item:hover {
  background: #fdf2f4;
  color: #881337;
}

/* ==========================================================================
   FIX: MENU ITEMS - KOMPAKTE SPACING
   ========================================================================== */

.mobile-nav-menu {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* Kompakt */
}

.mobile-nav-menu > li {
  margin: 0 !important;
}

.mobile-nav-menu > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  
  padding: 1rem 1.25rem;
  
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  
  background: white;
  border: 1px solid rgba(136, 19, 55, 0.08);
  border-radius: 1rem;
  
  transition: all 0.3s ease;
}

.mobile-nav-menu > li > a:hover,
.mobile-nav-menu .current-menu-item > a {
  color: #881337;
  border-color: rgba(136, 19, 55, 0.15);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(136, 19, 55, 0.08);
}

/* Tablet: Größere Touch Targets */
@media (min-width: 768px) and (max-width: 1023px) {
  .mobile-nav-menu > li > a {
    padding: 1.25rem 1.5rem;
    font-size: 1.0625rem;
  }
}

/* ==========================================================================
   FIX: BACKDROP
   ========================================================================== */

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  
  cursor: pointer;
  
  opacity: 0;
  transition: opacity 0.3s ease;
  
  z-index: 1; /* Unter Panel */
}

.mobile-menu.active .mobile-menu__backdrop {
  opacity: 1;
}

/* ==========================================================================
   FIX: BODY SCROLL LOCK
   ========================================================================== */

body.mobile-menu-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100vh !important;
  
  /* iOS Fix */
  -webkit-overflow-scrolling: auto !important;
}

/* ==========================================================================
   FIX: Z-INDEX HIERARCHIE
   ========================================================================== */

.mobile-menu {
  z-index: 9999 !important;
}

.mobile-menu__backdrop {
  z-index: 1;
}

.mobile-menu__panel {
  z-index: 2;
}

.mobile-menu-toggle {
  z-index: 10000 !important; /* Über allem für X-Animation */
}

.site-header {
  z-index: 1000 !important;
}

/* ==========================================================================
   FIX: LOGO IN MOBILE MENU HEADER
   ========================================================================== */

.mobile-menu__logo {
  max-width: 150px;
  flex-shrink: 0;
}

.mobile-menu__logo-img {
  display: block;
  max-height: 50px;
  width: auto;
}

.mobile-menu__logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

/* ==========================================================================
   FIX: CLOSE BUTTON
   ========================================================================== */

.mobile-menu__close {
  /* Reset */
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  
  /* Size */
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  
  /* Design */
  display: flex;
  align-items: center;
  justify-content: center;
  
  color: #374151;
  background: #f3f4f6;
  border-radius: 0.75rem;
  
  transition: all 0.3s ease;
}

.mobile-menu__close:hover {
  background: #e5e7eb;
  color: #881337;
  transform: rotate(90deg);
}

/* ==========================================================================
   DEBUGGING (Aktiviere zum Testen)
   ========================================================================== */

/* Entferne Kommentar um Layout visuell zu debuggen */
/*
.mobile-menu__panel {
  outline: 3px solid red !important;
}

.mobile-menu__header {
  outline: 2px solid blue !important;
}

.mobile-menu__content {
  outline: 2px solid green !important;
}

.mobile-menu__footer {
  outline: 2px solid orange !important;
}

.mobile-menu__cta {
  outline: 2px solid purple !important;
}
*/

/* ==========================================================================
   BROWSER COMPATIBILITY
   ========================================================================== */

/* Safari Fix */
@supports (-webkit-touch-callout: none) {
  .mobile-menu__panel {
    -webkit-transform: translate3d(100%, 0, 0);
    -webkit-backface-visibility: hidden;
  }
  
  .mobile-menu.active .mobile-menu__panel {
    -webkit-transform: translate3d(0, 0, 0);
  }
}

/* IE11 Fallback (Graceful Degradation) */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .mobile-menu__panel {
    background: rgba(255, 255, 255, 0.98);
  }
}

/* ==========================================================================
   PERFORMANCE OPTIMIZATION
   ========================================================================== */

.mobile-menu,
.mobile-menu__panel,
.mobile-menu__backdrop {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.mobile-menu.active {
  will-change: auto;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}
