/* =================================================================
   MOBILE BOTTOM TAB NAVIGATION
   Spielmannszug Rhede 2025 - Modern & Touch-Friendly
   ================================================================= */

/* === HEADER (Minimal auf Mobile) === */
.header {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  height: var(--header-height-mobile);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-4);
  overflow: visible; /* Ermöglicht Logo-Überlappung */
}

.header__logo {
  height: 70px;
  width: auto;
  transition: transform var(--transition-fast);
  position: relative;
  z-index: 10;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  margin-bottom: -15px; /* Logo ragt nach unten über Header hinaus */
  margin-top: 20px; /* Logo sitzt sicher im Header, ragt nicht oben heraus */
}

.header__logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

/* Optional: Scroll-Animation für Header */
.header.scrolled {
  box-shadow: var(--shadow-md);
}

/* === BOTTOM NAVIGATION === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-gray-200);
  z-index: var(--z-fixed);
  height: var(--bottom-nav-height);
  padding: var(--space-2) 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.bottom-nav__container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-2);
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: var(--space-1);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  color: var(--color-gray-500);
  text-decoration: none;
  position: relative;
}

.bottom-nav__item:hover,
.bottom-nav__item:focus {
  color: var(--color-primary);
  background-color: var(--color-primary-pale);
  text-decoration: none;
  transform: translateY(-2px);
}

.bottom-nav__item.active {
  color: var(--color-primary);
  background-color: var(--color-primary-pale);
}

.bottom-nav__item.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.bottom-nav__icon {
  font-size: 1.25rem;
  margin-bottom: var(--space-1);
  transition: transform var(--transition-fast);
}

.bottom-nav__item:hover .bottom-nav__icon,
.bottom-nav__item.active .bottom-nav__icon {
  transform: scale(1.1);
}

.bottom-nav__label {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

/* Badge für "Mehr" Menü */
.bottom-nav__badge {
  position: absolute;
  top: var(--space-1);
  right: var(--space-2);
  background: var(--color-error);
  color: var(--color-white);
  font-size: 0.625rem;
  font-weight: var(--font-bold);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  animation: bounce-in 0.3s ease-out forwards;
}

@keyframes bounce-in {
  0% {
    transform: scale(0);
  }
  80% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* === OVERLAY MENU FÜR "MEHR" === */
.overlay-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  backdrop-filter: blur(4px);
}

.overlay-menu.active {
  opacity: 1;
  visibility: visible;
}

.overlay-menu__content {
  position: absolute;
  bottom: var(--bottom-nav-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-6) var(--space-4) var(--space-8);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
  max-height: 60vh;
  overflow-y: auto;
}

.overlay-menu.active .overlay-menu__content {
  transform: translateY(0);
}

.overlay-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-gray-200);
}

.overlay-menu__title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-primary);
}

.overlay-menu__close {
  background: var(--color-gray-100);
  border: none;
  border-radius: var(--radius-full);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-600);
  transition: all var(--transition-fast);
}

.overlay-menu__close:hover {
  background: var(--color-gray-200);
  color: var(--color-gray-800);
}

.overlay-menu__list {
  display: grid;
  gap: var(--space-2);
}

.overlay-menu__item {
  display: flex;
  align-items: center;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  color: var(--color-gray-700);
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.overlay-menu__item:hover,
.overlay-menu__item:focus {
  background: var(--color-primary-pale);
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
  text-decoration: none;
}

.overlay-menu__item-icon {
  font-size: 1.25rem;
  margin-right: var(--space-4);
  color: var(--color-primary);
  width: 24px;
}

.overlay-menu__item-content {
  flex: 1;
}

.overlay-menu__item-title {
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
}

.overlay-menu__item-desc {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  line-height: 1.3;
}

/* === SOCIAL LINKS IN OVERLAY === */
.overlay-menu__socials {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-gray-200);
}

.overlay-menu__socials-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-gray-600);
  margin-bottom: var(--space-3);
}

.overlay-menu__socials-list {
  display: flex;
  gap: var(--space-4);
}

.overlay-menu__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  color: var(--color-white);
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.overlay-menu__social:hover {
  transform: scale(1.1);
  text-decoration: none;
  color: var(--color-white);
}

.overlay-menu__social--facebook {
  background: #1877f2;
}

.overlay-menu__social--instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.overlay-menu__social--email {
  background: var(--color-gray-600);
}

/* === DESKTOP ANPASSUNGEN === */
@media (min-width: 768px) {
  /* Bottom Navigation ausblenden */
  .bottom-nav {
    display: none;
  }
  
  /* Header erweitern für Desktop */
  .header {
    height: var(--header-height-desktop);
    padding: 0 var(--space-8);
    justify-content: space-between;
  }
  
  .header__logo {
    height: 125px;
    margin-top: 50px; /* Logo sitzt sicher im Header */
  }
  
  /* Desktop Navigation */
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
  }
  
  .desktop-nav__item {
    color: var(--color-gray-600);
    text-decoration: none;
    font-weight: var(--font-medium);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
  }
  
  .desktop-nav__item:hover,
  .desktop-nav__item.active {
    color: var(--color-primary);
    background: var(--color-primary-pale);
    text-decoration: none;
  }
  
  /* Main Content Padding anpassen */
  .main-content {
    padding-top: var(--header-height-desktop);
    padding-bottom: 0;
  }
}

/* Mobile Content Padding */
@media (max-width: 767px) {
  .main-content {
    padding-top: var(--header-height-mobile);
  }
}