﻿/* Footer - Premium Design (Glas, Pill-Labels, Light-Theme) */

footer.site-footer {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 0;
  padding: 3.5rem 0 2rem;
  clear: both;
  overflow: hidden;
  color: #cbd5e1;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(2, 6, 23, 0.92) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px) saturate(1.05);
  -webkit-backdrop-filter: blur(24px) saturate(1.05);
}

footer.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(58rem, 92%);
  height: 12rem;
  transform: translate(-50%, -55%);
  background: radial-gradient(circle, rgba(96, 165, 250, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

footer.site-footer .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-content {
  position: relative;
  z-index: 1;
}

/* Grid: Marke + drei Informationsspalten */
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr) minmax(0, 1.15fr) minmax(0, 1.1fr);
  gap: 2.5rem 2.75rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Spaltenueberschriften als Pill-Label */
footer.site-footer .footer-column h3 {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1.1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* Links */
footer.site-footer .footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

footer.site-footer .footer-column ul li {
  margin: 0;
}

footer.site-footer .footer-column ul li a {
  display: inline-block;
  color: #94a3b8;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

footer.site-footer .footer-column ul li a:hover {
  color: #f8fafc;
  transform: translateX(3px);
}

/* Markenbereich */
.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: #f8fafc;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.footer-brand-logo:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-brand-logo img {
  height: 2.25rem;
  width: auto;
  margin: 0;
  filter: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.footer-brand-logo:hover img {
  filter: none;
  opacity: 0.88;
}

.footer-brand-description {
  max-width: 34ch;
  margin: 0 0 1rem;
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  opacity: 0.85;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-admin-link:hover {
  background: none;
  border: 0;
  color: #cbd5e1;
  opacity: 1;
  text-decoration: none;
}

.footer-admin-link i {
  font-size: 0.7rem;
  opacity: 0.9;
}

/* Öffnungszeiten */
.footer-opening-list {
  display: flex;
  flex-direction: column;
}

footer.site-footer .opening-day {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-size: 0.88rem;
}

footer.site-footer .opening-day:last-of-type {
  border-bottom: none;
}

footer.site-footer .day-label {
  color: #94a3b8;
  font-weight: 500;
}

footer.site-footer .day-time {
  color: #e2e8f0;
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

footer.site-footer .opening-note {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 0.9rem !important;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-size: 0.73rem;
  line-height: 1.4;
}

footer.site-footer .opening-note em {
  font-style: normal;
}

/* Kontakt */
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

footer.site-footer .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.55;
}

footer.site-footer .contact-item i {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  width: 1.1rem;
  height: auto;
  flex-shrink: 0;
  padding-top: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #93c5fd;
  font-size: 0.82rem;
  line-height: 1.55;
}

footer.site-footer .contact-item > div {
  padding-top: 0;
}

footer.site-footer .contact-item a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer.site-footer .contact-item a:hover {
  color: #f8fafc;
}

/* Untere Leiste */
.footer-bottom {
  padding-top: 1.75rem;
  border-top: none;
}

.footer-copyright {
  text-align: center;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.6;
}

.footer-copyright p {
  margin: 0.15rem 0;
  color: inherit;
  font-size: inherit;
}

.footer-copyright a {
  color: #94a3b8;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.footer-copyright a:hover {
  color: #e2e8f0;
}

/* ── Light Theme ── */
:root[data-theme='light'] footer.site-footer {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-top-color: rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 -24px 48px -40px rgba(15, 23, 42, 0.24);
  color: #334155;
}

:root[data-theme='light'] footer.site-footer::before {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
}

:root[data-theme='light'] .footer-grid {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme='light'] footer.site-footer .footer-column h3 {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
}

:root[data-theme='light'] footer.site-footer .footer-column ul li a {
  color: #475569;
}

:root[data-theme='light'] footer.site-footer .footer-column ul li a:hover {
  color: #0f172a;
}

:root[data-theme='light'] .footer-brand-logo,
:root[data-theme='light'] .footer-brand-logo:hover {
  color: #0f172a;
}

:root[data-theme='light'] .footer-brand-logo img {
  filter: none;
}

:root[data-theme='light'] .footer-brand-description {
  color: #64748b;
}

:root[data-theme='light'] .footer-admin-link {
  color: #94a3b8;
  opacity: 1;
}

:root[data-theme='light'] .footer-admin-link:hover {
  color: #475569;
}

:root[data-theme='light'] footer.site-footer .opening-day {
  border-bottom-color: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

:root[data-theme='light'] footer.site-footer .day-label {
  color: #64748b;
}

:root[data-theme='light'] footer.site-footer .day-time {
  color: #0f172a;
}

:root[data-theme='light'] footer.site-footer .opening-note {
  border-color: rgba(15, 23, 42, 0.07);
  background: rgba(15, 23, 42, 0.03);
  color: #64748b;
}

:root[data-theme='light'] footer.site-footer .contact-item {
  color: #334155;
}

:root[data-theme='light'] footer.site-footer .contact-item i {
  border: 0;
  background: none;
  color: #2563eb;
}

:root[data-theme='light'] footer.site-footer .contact-item a {
  color: #334155;
}

:root[data-theme='light'] footer.site-footer .contact-item a:hover {
  color: #2563eb;
}

:root[data-theme='light'] .footer-copyright {
  color: #64748b;
}

:root[data-theme='light'] .footer-copyright a {
  color: #2563eb;
}

:root[data-theme='light'] .footer-copyright a:hover {
  color: #1d4ed8;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 2.25rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  footer.site-footer {
    padding: 2.5rem 0 1.75rem;
  }

  footer.site-footer .container {
    padding: 0 1.25rem;
  }

  .footer-grid {
    gap: 1.75rem;
    padding-bottom: 1.75rem;
  }

  .footer-brand-logo {
    font-size: 1.2rem;
  }

  .footer-brand-logo img {
    height: 2rem;
  }

  .footer-copyright {
    font-size: 0.72rem;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  footer.site-footer .opening-day {
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  footer.site-footer .footer-column ul li a:hover {
    transform: none;
  }
}
