/* ===== Public footer — Sencha Signal ===== */
/* Loaded after styles.css + public-chrome.css; overrides only footer selectors. */

.site-footer {
  --footer-surface: #141c2c;
  --footer-surface-deep: #0d1420;
  --footer-ink: rgba(246, 243, 235, 0.94);
  --footer-ink-muted: rgba(183, 196, 214, 0.9);
  --footer-ink-label: rgba(126, 196, 255, 0.8);
  --footer-line: rgba(246, 243, 235, 0.1);
  --footer-glow: rgba(47, 155, 255, 0.12);

  margin-top: var(--space-10, 40px);
  background:
    radial-gradient(ellipse 70% 50% at 8% 0%, var(--footer-glow), transparent 55%),
    linear-gradient(
      180deg,
      #152033 0%,
      var(--footer-surface) 28%,
      var(--footer-surface-deep) 100%
    );
  border-top: 1px solid var(--footer-line);
  color: var(--footer-ink-muted);
  box-shadow: none;
}

/* News ticker — keep separators; softer hub strip */
.footer-news-ticker {
  border-bottom: 1px solid var(--footer-line);
  background:
    linear-gradient(90deg, rgba(47, 155, 255, 0.07), transparent 22%, transparent 78%, rgba(47, 155, 255, 0.05)),
    rgba(0, 0, 0, 0.16);
}

.footer-news-ticker-item {
  font-size: var(--font-size-sm, 0.875rem);
  color: var(--footer-ink-muted);
  transition: color 150ms ease-out;
}

a.footer-news-ticker-item:hover,
a.footer-news-ticker-item:focus-visible {
  color: var(--accent, #2f9bff);
}

.footer-news-ticker-sep {
  color: rgba(47, 155, 255, 0.4);
  font-weight: 600;
}

.footer-news-ticker-viewport {
  padding-left: clamp(12px, 4vw, 24px);
}

.footer-shell {
  padding: clamp(40px, 5vw, 56px) 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2.1fr);
  gap: clamp(32px, 4vw, 52px);
  padding-bottom: clamp(32px, 4vw, 44px);
  align-items: start;
}

/* ----- Brand / community hub ----- */
.footer-brand-block .footer-brand-logo {
  display: inline-flex;
  align-items: center;
}

.footer-brand-block .logo-img {
  height: 42px;
  max-width: 240px;
  width: auto;
}

.footer-brand-block .footer-tag {
  color: var(--footer-ink-muted);
  margin-top: 12px;
  max-width: 30ch;
  line-height: 1.65;
  font-size: var(--font-size-sm, 0.875rem);
}

.footer-brand-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 20px;
}

.footer-made-in-germany {
  display: block;
  height: 34px;
  width: auto;
  max-width: 190px;
  border-radius: 8px;
  opacity: 0.92;
}

.footer-trustpilot {
  margin-top: 0;
  max-width: 280px;
  min-height: 52px;
}

.footer-trustpilot .trustpilot-widget a {
  color: var(--accent, #2f9bff);
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-brand-block .footer-brand-socials {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.footer-brand-block .footer-brand-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--footer-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--footer-ink-muted);
  text-decoration: none;
  transition:
    color 150ms ease-out,
    background 150ms ease-out,
    border-color 150ms ease-out,
    transform 150ms ease-out;
}

.footer-brand-block .footer-brand-social:hover,
.footer-brand-block .footer-brand-social:focus-visible {
  color: var(--text, #f5f7f6);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  outline: none;
}

.footer-brand-block .footer-brand-social:focus-visible {
  box-shadow: 0 0 0 2px var(--footer-surface-deep), 0 0 0 4px rgba(47, 155, 255, 0.45);
}

.footer-brand-block .footer-brand-social-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

/* ----- Link columns ----- */
.footer-links-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 0.95fr);
  gap: clamp(22px, 3vw, 36px);
  align-items: start;
}

.footer-links-grid .footer-col-title,
.footer-col-title {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  text-transform: none;
  color: var(--footer-ink-label);
  line-height: 1.3;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-col-links a,
.footer-links-grid a {
  display: block;
  color: var(--footer-ink-muted);
  font-size: 0.875rem;
  margin-bottom: 8px;
  line-height: 1.45;
  text-decoration: none;
  transition: color 150ms ease-out;
}

.footer-col-links a:last-child,
.footer-links-grid .footer-col-links a:last-child {
  margin-bottom: 0;
}

.footer-col-links a:hover,
.footer-col-links a:focus-visible,
.footer-links-grid a:hover,
.footer-links-grid a:focus-visible {
  color: var(--accent, #2f9bff);
}

.footer-col-links a:focus-visible,
.footer-links-grid a:focus-visible {
  outline: 2px solid rgba(47, 155, 255, 0.55);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-link-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  align-items: start;
}

.footer-legal-nav {
  display: flex;
  flex-direction: column;
}

.footer-links-grid .footer-legal-nav a {
  display: block;
}

/* ----- Bottom bar ----- */
.footer-bar {
  border-top: 1px solid var(--footer-line);
  padding: 18px 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  color: rgba(183, 196, 214, 0.55);
  font-size: 0.78rem;
}

.footer-copy {
  max-width: 36ch;
  line-height: 1.45;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.footer-legal-links a {
  color: rgba(183, 196, 214, 0.55);
  text-decoration: none;
  transition: color 150ms ease-out;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  color: var(--accent, #2f9bff);
}

.footer-legal-links a:focus-visible {
  outline: 2px solid rgba(47, 155, 255, 0.55);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Soften Widerruf FAB shadow only — keep red + position */
.gts-widerruf-fab {
  box-shadow: 0 2px 8px rgba(229, 57, 53, 0.22);
}

.gts-widerruf-fab:hover,
.gts-widerruf-fab:focus-visible {
  box-shadow: 0 3px 12px rgba(198, 40, 40, 0.28);
}

/* ----- Responsive ----- */
@media (max-width: 1100px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-brand-block .footer-tag {
    max-width: 44ch;
  }

  .footer-brand-meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
  }

  .footer-links-grid {
    grid-template-columns: 1fr 1.4fr 0.9fr;
  }
}

@media (max-width: 860px) {
  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }

  .footer-col--legal {
    grid-column: 1 / -1;
  }

  .footer-col--legal .footer-col-links,
  .footer-col--legal .footer-legal-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }

  .footer-col--legal .footer-col-links a,
  .footer-col--legal .footer-legal-nav a {
    margin-bottom: 8px;
  }
}

@media (max-width: 640px) {
  .footer-brand-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-col--legal {
    grid-column: auto;
  }

  .footer-col--legal .footer-col-links,
  .footer-col--legal .footer-legal-nav {
    display: flex;
    flex-direction: column;
  }

  .footer-link-split {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-brand-block .footer-brand-social {
    transition: none;
  }

  .footer-brand-block .footer-brand-social:hover,
  .footer-brand-block .footer-brand-social:focus-visible {
    transform: none;
  }
}
