/* Header Styles */

header {
  background: #1a1a1a;
  color: #e0e0e0;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  border-bottom: 1px solid #404040;
  position: relative;
  z-index: 100;
  transition: all 0.3s ease;
  width: 100%;
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-logo {
  height: 40px;
  max-width: 200px;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.site-title {
  font-family: 'Mukta', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: #e0e0e0;
}

/* Header Social Media Icons - Desktop */
.header-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-social-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.header-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #2E7D32;
  border-radius: 6px;
  color: #ffffff;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid #1B5E20;
}

.header-social-links a:hover {
  background: #1B5E20;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.header-social-links svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Burger Menu - Hidden on Desktop */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: #2E7D32;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1001;
}

.burger-menu:hover {
  background: #1B5E20;
}

.burger-menu span {
  display: block;
  width: 24px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: all 0.3s ease;
  transform-origin: center;
  border-radius: 5px;
}

/* Burger Animation */
.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(6.5px, 5.5px);;
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation - Nur als Overlay, nicht im normalen Flow */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  pointer-events: none;
}

.mobile-nav.active {
  pointer-events: auto;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.mobile-nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 400px;
  height: 100vh;
  padding-top: 29;
  background: #1a1a1a;
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

/* Hintergrundbild für Mobile Nav Menu - wie footer-main */
.mobile-nav-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/files/images/background.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.40;
  z-index: 0;
  pointer-events: none;
}

.mobile-nav-menu.active {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #404040;
  position: relative;
  z-index: 1;
  padding-top: 36px;

}

.mobile-nav-title {
  color: #e0e0e0;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.mobile-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 6px;
  color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-close-btn:hover {
  background: #2E7D32;
  color: white;
}

.mobile-close-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.mobile-nav-content {
  padding: 1.5rem 0;
  position: relative;
  z-index: 1;
}

/* Mobile Navigation Items */
.mobile-nav-section {
  margin-bottom: 2rem;
}

.mobile-nav-section h3 {
  color: #e0e0e0;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  padding: 0 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-item {
  margin: 0;
}

.mobile-nav-item a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #b0b0b0;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.mobile-nav-item a:hover {
  background: rgba(46, 125, 50, 0.1);
  color: #2E7D32;
  border-left-color: #2E7D32;
}

/* Mobile Social Media Grid */
.mobile-social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 1rem;
  padding: 0 1.5rem;
  margin-top: 1rem;
}

.mobile-social-grid a:nth-child(5) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 0.5rem);
}

.mobile-social-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  background: #2E7D32;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  gap: 0.5rem;
}

.mobile-social-grid a:hover {
  background: #1B5E20;
  transform: translateY(-2px);
}

.mobile-social-grid svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Desktop - Show social links, hide burger */
@media (min-width: 769px) {
  .header-social {
    display: flex;
  }
  
  .burger-menu {
    display: none;
  }
  
  .mobile-nav {
    display: none;
  }
}

/* Mobile - Hide social links, show burger */
@media (max-width: 768px) {
  .header-social {
    display: none;
  }
  
  .burger-menu {
    display: flex;
  }
  
  .mobile-nav {
    display: block;
  }
  
  .header-inner {
    padding: 0.75rem 1rem;
  }
  
  .site-logo {
    height: 52px;
    margin-bottom: -10px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0.5rem 0.75rem;
  }
  
  .site-logo {
    height: 45px;
    margin-bottom: -10px;
  }
  
  .burger-menu {
    width: 40px;
    height: 40px;
  }
  
  .mobile-nav-menu {
    width: 100%;
  }
}