/* Responsive Navigation Fixes */

/* Header Base Styles */
header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 246, 248, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Container responsive improvements */
header .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  gap: 1rem;
}

/* Logo optimization */
header .logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.75rem;
  color: var(--text-dunkel);
  text-decoration: none;
}

header .logo-link img {
  height: 3.5rem;
  width: auto;
  flex-shrink: 0;
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
}

.desktop-nav a {
  color: var(--text-hell);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.desktop-nav a:hover {
  color: var(--text-dunkel);
  background: var(--zartgrau);
}

/* Action buttons area */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* CTA Button */
.header-cta {
  display: flex;
  min-width: 140px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9999px;
  height: 2.75rem;
  padding: 0 1.5rem;
  background: linear-gradient(to right, var(--gold-start), var(--gold-end));
  color: var(--text-dunkel);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.header-cta:hover {
  transform: scale(1.05);
}

.header-cta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hamburger Button */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.hamburger-btn:hover {
  background: var(--zartgrau);
}

.hamburger-btn span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--text-dunkel);
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

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

/* Desktop Breakpoint */
@media (min-width: 769px) {
  .desktop-nav {
    display: flex !important;
  }
  
  .hamburger-btn {
    display: none !important;
  }
  
  header .container {
    padding: 1rem 2.5rem;
    gap: 2rem;
  }
  
  .desktop-nav {
    gap: 2rem;
  }
  
  .desktop-nav a {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
}

/* Tablet Breakpoint */
@media (min-width: 640px) and (max-width: 768px) {
  .desktop-nav {
    display: none !important;
  }
  
  .hamburger-btn {
    display: flex !important;
  }
  
  header .container {
    padding: 0.75rem 1.5rem;
  }
  
  .header-cta {
    min-width: 120px;
    font-size: 0.8rem;
    padding: 0 1.25rem;
  }
}

/* Mobile Breakpoint */
@media (max-width: 639px) {
  .desktop-nav {
    display: none !important;
  }
  
  .hamburger-btn {
    display: flex !important;
  }
  
  header .container {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }
  
  .header-cta {
    min-width: 100px;
    font-size: 0.75rem;
    padding: 0 1rem;
    height: 2.5rem;
  }
  
  .header-cta span {
    font-size: 0.75rem;
  }
  
  header .logo-link img {
    height: 3rem;
  }
}

/* Very small screens */
@media (max-width: 375px) {
  header .container {
    padding: 0.5rem 0.75rem;
    gap: 0.25rem;
  }
  
  .header-cta {
    min-width: 80px;
    font-size: 0.7rem;
    padding: 0 0.75rem;
    height: 2.25rem;
  }
  
  .hamburger-btn {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  header .logo-link img {
    height: 2.5rem;
  }
}

/* Footer Responsive Fixes */
footer {
  background: var(--rosa-start);
  color: var(--bordeaux-start);
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Footer Grid */
footer .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

footer h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--bordeaux-start);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul li {
  padding: 0.25rem 0;
}

footer ul li a {
  color: var(--bordeaux-start);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

footer ul li a:hover {
  color: var(--bordeaux-end);
}

/* Footer bottom section */
footer .footer-bottom {
  border-top: 1px solid var(--bordeaux-start);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer .footer-bottom p {
  font-size: 0.875rem;
  color: var(--bordeaux-end);
  margin: 0;
}

footer .social-links {
  display: flex;
  gap: 1rem;
}

footer .social-links a {
  color: var(--bordeaux-start);
  transition: color 0.2s ease;
}

footer .social-links a:hover {
  color: var(--bordeaux-end);
}

/* Footer Mobile Responsiveness */
@media (max-width: 768px) {
  footer .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  footer .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  footer .container {
    padding: 1.5rem 0.75rem;
  }
  
  footer .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  footer h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  footer ul li {
    padding: 0.375rem 0;
  }
  
  footer ul li a {
    font-size: 0.875rem;
    padding: 0.25rem;
    display: inline-block;
  }
}

/* Ensure no blue underlines override theme colors */
footer a {
  text-decoration: none !important;
  color: var(--bordeaux-start) !important;
}

footer a:hover {
  color: var(--bordeaux-end) !important;
  text-decoration: none !important;
}

nav a {
  text-decoration: none !important;
}

nav a:hover {
  text-decoration: none !important;
}

/* Fix button and link spacing issues */
.btn, .button, a[role="button"] {
  text-decoration: none !important;
}

.btn:hover, .button:hover, a[role="button"]:hover {
  text-decoration: none !important;
}