:root {
  --primary: #cd1a1d;
  --primary-dark: #a81518;
}

.footer {
  background: #eef1f6;
  color: #0a1628;
  padding: 3rem 0 2rem;
  /* Keep footer layout stable when Tailwind base loads on Platform pages */
  box-sizing: border-box;
}

.footer *,
.footer *::before,
.footer *::after {
  box-sizing: border-box;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2.5rem 3rem;
  align-items: start;
}

.footer-brand .logo {
  color: var(--primary);
  display: block;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #475569;
  max-width: 28rem;
  margin: 0;
}

.footer-preisvergleich-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  max-width: 100%;
  padding: 0.85rem 1.1rem 0.85rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 10px 28px rgba(205, 26, 29, 0.28);
  color: #fff;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.footer-preisvergleich-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(205, 26, 29, 0.34);
  color: #fff;
}

.footer-preisvergleich-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.footer-preisvergleich-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
}

.footer-preisvergleich-btn-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.footer-preisvergleich-btn-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  text-align: left;
}

.footer-preisvergleich-btn-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.footer-preisvergleich-btn-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}

.footer-preisvergleich-btn-arrow {
  flex-shrink: 0;
  margin-left: 0.15rem;
  font-size: 1rem;
  font-weight: 800;
  opacity: 0.9;
  transition: transform 0.22s ease;
}

.footer-preisvergleich-btn:hover .footer-preisvergleich-btn-arrow {
  transform: translateX(3px);
}

@media (max-width: 480px) {
  .footer-preisvergleich-btn {
    width: 100%;
  }
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  justify-self: end;
  width: 100%;
  max-width: 22rem;
}

.footer-nav--legal-only {
  grid-template-columns: 1fr;
  max-width: 11rem;
}

.footer-nav-heading {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.footer-nav-list a {
  display: inline-block;
  position: relative;
  padding: 0.4rem 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.15rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.footer-nav-list a:hover {
  color: var(--primary);
}

.footer-nav-list a:hover::after {
  transform: scaleX(1);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(10, 22, 40, 0.65);
  margin: 0;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(10, 22, 40, 0.12);
}

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

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  color: #0a1628;
  background: rgba(10, 22, 40, 0.06);
  transition: color 0.2s, background 0.2s, transform 0.2s;
  text-decoration: none;
}

.footer-social-link:hover {
  color: var(--primary);
  background: rgba(205, 26, 29, 0.1);
  transform: translateY(-1px);
}

.footer-social-link--whatsapp:hover {
  color: #25d366;
  background: rgba(37, 211, 102, 0.12);
}

.footer-social-link svg {
  width: 1.15rem;
  height: 1.15rem;
}

@media (max-width: 960px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-nav {
    justify-self: start;
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2rem;
  }

  .footer-bottom {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    padding: 0 0.85rem;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }
}
