/**
 * ╔═══════════════════════════════════════════════════════════════════════════════╗
 * ║  KOMPONENTEN STYLES - Header, Footer, Navigation                              ║
 * ║  Version: 1.0                                                                 ║
 * ╠═══════════════════════════════════════════════════════════════════════════════╣
 * ║                                                                               ║
 * ║  Diese Datei enthält alle Styles für die gemeinsamen Komponenten.            ║
 * ║  Änderungen hier betreffen ALLE Seiten!                                      ║
 * ║                                                                               ║
 * ╚═══════════════════════════════════════════════════════════════════════════════╝
 */

/* =============================================================================
   CSS VARIABLEN
   ============================================================================= */
:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #0ea5e9;
  --accent-dark: #0284c7;
  --accent-glow: rgba(14, 165, 233, 0.2);
  --text: #0f172a;
  --text-light: #475569;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.1);
}

/* =============================================================================
   SKIP LINK (Accessibility)
   ============================================================================= */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  z-index: 10000;
  transition: top 0.3s ease;
}

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

/* =============================================================================
   HEADER
   ============================================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .header__inner {
    height: 80px;
    padding: 0 32px;
  }
}

@media (min-width: 1024px) {
  .header__inner {
    height: 84px;
    padding: 0 40px;
  }
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
}

.header__logo img {
  height: 44px;
  width: auto;
}

@media (min-width: 768px) {
  .header__logo img {
    height: 48px;
  }
}

@media (min-width: 1024px) {
  .header__logo img {
    height: 52px;
  }
}

/* Navigation */
.header__nav {
  display: none;
  align-items: center;
  gap: 0;
}

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

.header__link {
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header__link:hover,
.header__link.active {
  color: var(--accent);
}

/* Dropdown */
.header__dropdown {
  position: relative;
}

.header__dropdown-trigger {
  cursor: pointer;
}

.header__dropdown-trigger svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

.header__dropdown:hover .header__dropdown-trigger svg {
  transform: rotate(180deg);
}

.header__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12);
  padding: 12px 0;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  border: 1px solid var(--border);
}

.header__dropdown:hover .header__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.header__dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: #fff;
}

.header__dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.header__dropdown-link:hover {
  background: var(--bg-alt);
  color: var(--accent);
}

.header__dropdown-link svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.header__dropdown-link span {
  display: flex;
  flex-direction: column;
}

.header__dropdown-link small {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Mega Menu */
.header__mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
  padding: 24px;
  min-width: 600px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  border: 1px solid var(--border);
}

.header__mega:hover .header__mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.header__mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.header__mega-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.header__mega-link {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header__mega-link:hover {
  color: var(--accent);
}

.header__mega-link--more {
  color: var(--accent);
  font-weight: 600;
  margin-top: 8px;
}

/* CTA Button */
.header__cta {
  display: none;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

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

.header__cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

/* Mobile Toggle */
.header__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  gap: 6px;
}

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

.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.header__toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.header__toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =============================================================================
   MOBILE NAVIGATION
   ============================================================================= */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 100px 24px 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.mobile-nav__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.mobile-nav__link {
  display: block;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav__link:hover {
  color: #fff;
  background: rgba(14, 165, 233, 0.2);
  border-color: rgba(14, 165, 233, 0.4);
}

.mobile-nav__cta {
  display: block;
  margin-top: 24px;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  text-align: center;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-nav__cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* Body lock when menu is open */
body.menu-open {
  overflow: hidden;
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.site-footer {
  background: var(--primary);
  color: white;
  padding: 64px 24px 32px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  
  .footer__brand {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
  
  .footer__brand {
    grid-column: span 1;
  }
}

/* Brand Column */
.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 20px;
}

.footer__logo img {
  height: 40px;
  width: auto;
}

.footer__description {
  color: #94A3B8;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94A3B8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer__contact-link:hover {
  color: var(--accent);
}

/* Footer Columns */
.footer__column {
  min-width: 0;
}

.footer__title {
  color: white;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__link--highlight {
  color: var(--accent) !important;
  font-weight: 500;
}

/* Trust Badges */
.footer__trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 28px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.12);
  border-bottom: 1px solid rgba(226, 232, 240, 0.12);
  margin-bottom: 28px;
}

@media (max-width: 640px) {
  .footer__trust {
    gap: 14px;
    padding: 22px 0;
  }
}

@media (min-width: 768px) {
  .footer__trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 32px 0;
  }
}

.footer__trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 8px 12px;
  text-align: left;
}

.footer__stars {
  display: flex;
  gap: 2px;
}

.footer__stars svg {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.15));
}

.footer__trust-item > svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.footer__trust-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.footer__trust-value {
  color: white;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.footer__trust-label {
  color: rgba(148, 163, 184, 0.85);
  font-size: 12px;
  line-height: 1.2;
  margin: 0;
}

@media (min-width: 768px) {
  .footer__trust-item {
    padding: 10px 24px;
  }

  .footer__trust-item:not(:first-child) {
    border-left: 1px solid rgba(226, 232, 240, 0.10);
  }

  .footer__trust-value {
    font-size: 16px;
  }
}

/* Bottom Footer */
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

@media (max-width: 640px) {
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

.footer__copyright {
  color: #64748B;
  font-size: 13px;
}

.footer__copyright p {
  margin: 0 0 4px 0;
}

.footer__copyright p:last-child {
  margin-bottom: 0;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  color: #64748B;
  transition: color 0.3s ease;
}

.footer__social a:hover {
  color: var(--accent);
}





