/* Base Footer Styles */
.site-footer {
  background: #273b35;
  color: #fcfbf8;
  width: 100%;
  box-sizing: border-box;
}

/* Mobile Footer */
.mobile-footer {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 30px 20px;
}

/* Desktop Footer - standardmäßig ausgeblendet */
.desktop-footer {
  display: none;
}

/* Gemeinsame Styles für beide Footer */
.footer-logo img {
  height: 22px;
  margin-bottom: 24px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-info a {
  color: #fcfbf8;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.opening-hours div {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.opening-hours .day {
  color: #fcfbf8;
  font-size: 11.11px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 11.11px;
  margin-bottom: 4px;
}

.opening-hours .time {
  color: #fcfbf8;
  font-size: 13.33px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 16px;
}

.footer-navigation h3,
.regions-section h3,
.social-section h3 {
  color: white;
  font-size: 13.33px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 16px;
  margin-bottom: 16px;
}

.footer-menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-menu-list a {
  color: #fcfbf8;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 24px;
  text-decoration: none;
}

.regions-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
}

.region-tag {
  padding: 4px 8px;
  background: #081f19;
  border-radius: 4px;
  color: #fcfbf8;
  font-size: 13.33px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 16px;
  white-space: nowrap;
  flex: 0 1 auto;
}

.social-icons {
  display: flex;
  gap: 24px;
}

.social-icons img {
  width: 24px;
  height: 24px;
}

.copyright {
  margin-top: 32px;
}

.copyright p {
  color: white;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
}

.copyright a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.copyright a:hover {
  opacity: 0.8;
}

/* ============================
   MEDIA QUERIES
   ============================ */

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .mobile-footer {
    display: flex;
  }

  .desktop-footer {
    display: none;
  }
}

/* Desktop (ab 1024px) */
@media (min-width: 1024px) {
  .site-footer {
    padding: 80px 0 40px; /* Padding nur am oberen und unteren Rand */
  }

  /* Mobile Footer ausblenden */
  .mobile-footer {
    display: none;
  }

  /* Desktop Footer einblenden */
  .desktop-footer {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    width: 100%;
  }

  /* Logo Section */
  .desktop-footer .footer-logo {
    max-width: 80em;
    margin: 0 auto;
    width: 100%;
  }

  /* Grid Section */
  .desktop-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    max-width: 80em;
    margin: 0 auto;
    width: 100%;
    margin-top: 40px;
  }

  /* Copyright Section */
  .desktop-footer .copyright {
    max-width: 80em;
    margin: 40px auto 0;
    width: 100%;
  }

  /* Entfernen der alten footer-container Styles */
  .footer-container {
    padding: 0 2em; /* Nur seitliches Padding */
  }

  .site-footer .footer-navigation ul {
    gap: 3em;
  }

  .footer-menu-list .menu-item a {
    font-size: 24px;
    transition: color 0.3s ease;
  }

  .footer-menu-list .menu-item a:hover {
    color: rgba(255, 255, 255, 0.8);
  }

  .site-footer .locations-section .locations-grid {
    gap: 4em;
  }

  .site-footer .contact-button {
    padding: 12px 32px;
    transition: background-color 0.3s ease;
  }

  .site-footer .contact-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
  }

  .contact-info a:hover {
    text-decoration: underline;
  }

  #menu-rechte .menu-item a:hover,
  #menu-link .menu-item a:hover {
    text-decoration: underline;
  }
}

/* Large Desktop Styles */
@media (min-width: 1280px) {
  .footer-container {
    padding: 5em 2em;
  }

  .site-footer .locations-section .locations-grid {
    gap: 6em;
  }
}
.locations-grid .location p {
  color: #ffffff;
}
/* List */
.site-footer .footer-navigation ul {
  flex-direction: row;
  flex-wrap: wrap;
}
/* Image */
.site-footer .footer-logo img {
  margin-bottom: 0px;
}

/* Heading */
.footer-grid .footer-col h3 {
  color: #ffffff;
  font-size: 16px;
  margin-top: 0px;
  margin-bottom: 0px;
}

/* 1024px and larger screen sizes */
@media (min-width: 1024px) {
  /* Footer grid */
  .site-footer .footer-grid {
    margin-top: 0px;
  }
}

/* 1280px and larger screen sizes */
@media (min-width: 1280px) {
  /* Footer container */
  .site-footer .footer-container {
    padding-top: 0px;
    padding-bottom: 0px;
  }
}

/* Fokus-Styles für bessere Sichtbarkeit */
a:focus,
button:focus {
  outline: 2px solid #fcfbf8;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip Link für Keyboard-Navigation */
.skip-to-main-content {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1em;
  background-color: #273b35;
  color: #fcfbf8;
  text-decoration: none;
}

.skip-to-main-content:focus {
  left: 50%;
  transform: translateX(-50%);
}

/* Versteckte Elemente für Screen Reader */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Verbesserte Kontraste für Text */
.footer-menu-list a,
.contact-info a,
.region-tag {
  color: #fcfbf8;
  /* Mindestkontrastverhältnis von 4.5:1 */
}
/* Time */
.footer-grid dl .time {
  margin-left: 0px;
}
/* Day */
.footer-grid dl .day {
  padding-top: 10px;
}
/* Mobile Styles (782px and smaller) */
@media (max-width: 782px) {
  .site-footer .footer-container {
    padding: 0;
  }

  .mobile-footer {
    padding: 30px 20px;
  }

  /* Reset margins and paddings for all direct children */
  .site-footer .footer-container > * {
    margin: 0;
    padding: 0;
  }

  /* Specific spacing resets */
  .footer-logo,
  .contact-section,
  .footer-navigation,
  .regions-section,
  .social-section,
  .locations-section {
    margin: 0;
    padding: 0;
  }

  /* Time */
  .contact-section dl .time {
    margin-left: 0;
    margin-bottom: 10px;
  }

  /* Maintain only necessary gaps */
  .mobile-footer {
    gap: 40px;
  }

  /* Reset all heading margins in footer */
  .site-footer .footer-navigation h3,
  .site-footer .regions-section h3,
  .site-footer .social-section h3,
  .site-footer .locations-section h3,
  #social-heading {
    margin-top: 0;
  }

  /* Remove transform */
  .site-footer .footer-container {
    transform: none !important;
  }
}
