/* Footer */
footer {
  background: var(--sand);
  color: var(--ink);
  padding: 40px 0;
  border-top: 1px solid rgba(46, 44, 42, 0.12);
}

.footer-wrapper {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.div-logo {
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.footer-links {
  display: flex;
  /* Gap reduziert, da die Links jetzt eigenes Padding als Touch-Fläche tragen –
     der sichtbare Abstand bleibt dadurch etwa gleich */
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  /* Padding hebt die Tap-Fläche auf ~45px Höhe (Mindest-Touch-Target 44px) */
  padding: 14px 10px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--amber);
}

/* Social-Icon-Reihe neben dem Logo, analog zu rein-campus.de */
.footer-social {
  display: flex;
  gap: 12px;
}

footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(30, 35, 33, 0.06);
  color: var(--ink);
}

footer .footer-social a:hover {
  background: var(--amber);
  color: var(--white);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Facebooks offizielles Badge (assets/facebook-icon.png) ist bereits ein
   fertiger Kreis mit fixer Markenfarbe, anders als Instagrams reines Glyph -
   passt nicht in den neutralen Kreis-Button und nimmt kein currentColor an,
   bekommt daher nur einen Transform-Hover statt des Background-Wechsels. */
footer .footer-social a.facebook-badge {
  background: none;
  transition: transform 0.2s ease;
}

footer .footer-social a.facebook-badge:hover {
  background: none;
  transform: translateY(-2px) scale(1.06);
}

/* Instagrams Glyph hat kein eigenes Badge wie Facebook - bekommt daher einen
   festen Marken-Kreis (--teal) plus die offizielle Weiß-Variante des Glyphs. */
footer .footer-social a.instagram-badge {
  background: var(--teal);
  color: var(--white);
  transition: transform 0.2s ease;
}

footer .footer-social a.instagram-badge:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px) scale(1.06);
}

.footer-social-badge {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

/* "Analyse-Einstellungen" is a <button> in .footer-links (it opens the
   consent banner), styled like its link siblings. */
.footer-links button {
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 14px 10px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.footer-links button:hover {
  color: var(--amber);
}

/* Wachsende Unterstreichung beim Hover (wie rein-campus.de/hello-learn.de);
   Position/Breite gleichen das Touch-Padding (14px 10px) der Links aus */
.footer-links a,
.footer-links button {
  background: linear-gradient(currentColor, currentColor) 10px calc(100% - 11px) / 0 1px no-repeat;
  transition: color 0.3s ease, background-size 0.25s ease;
}

.footer-links a:hover,
.footer-links button:hover {
  background-size: calc(100% - 20px) 1px;
}

/* Analytics consent banner (javascript/analytics-consent.js). */
.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  max-width: 920px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  margin: 0 auto;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner-text {
  flex: 1 1 320px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.consent-banner-text a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-banner-status {
  flex: 1 1 100%;
  margin: 0;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
}

.consent-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.consent-banner-actions button {
  flex: 1 1 auto;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--teal);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.consent-banner-actions button:hover {
  background: var(--teal-dark);
}

@media (max-width: 480px) {
  .consent-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
    max-height: calc(100vh - 16px);
    padding: 16px;
  }
}
