/**
 * Footer nonsenso (analyse.md, Footer)
 *
 * Dunkel (Klasse theme-dunkel im Snippet), auf allen Seiten gleich.
 * Desktop: links Anfrage mit Button, rechts Kontakt, darunter rechtliche Links.
 * Mobil (unter 768 px): alles untereinander, Button volle Breite.
 * Abstände aus dem Screenshot 09_nonsenso_impressum gemessen.
 * Nur Tokens aus tokens.css verwenden, keine festen Werte.
 *
 * Aufbau:
 *  1. Rahmen
 *  2. Anfrage
 *  3. Kontakt
 *  4. Rechtliche Links
 *  5. Ab 768 px
 */


/* 1. Rahmen ------------------------------------------------------------ */

.site-footer {
  padding-block: var(--space-xl);
}

/* Ziel der Sprungmarke „Kontakt“: Fokus per Skript, kein Rahmen um den
 * ganzen Footer. Die Links darin behalten ihren Fokusrahmen. */
.site-footer:focus,
.site-footer:focus-visible {
  outline: none;
}


/* 2. Anfrage -----------------------------------------------------------
 * Text in H2-Gestaltung, Button darunter
 */

.site-footer__anfrage-text {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-h2);
  line-height: var(--line-height-h2);
  letter-spacing: var(--tracking-heading);
  text-wrap: balance;
  -webkit-hyphens: var(--hyphens-heading);
  hyphens: var(--hyphens-heading);
}

.site-footer__anfrage .button {
  width: 100%;
  margin-top: var(--space-xl);
}


/* 3. Kontakt ------------------------------------------------------------ */

.site-footer__kontakt {
  margin-top: var(--space-l);
}

.site-footer__kontakt h2 {
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
}

.site-footer__kontakt address {
  margin-top: var(--space-m);
  font-style: normal;
}


/* 4. Rechtliche Links --------------------------------------------------- */

.site-footer__rechtliches {
  margin-top: var(--space-2xl);
}

.site-footer__rechtliches ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  padding: 0;
  list-style: none;
  font-size: var(--font-size-text-xs);
}


/* 5. Ab 768 px: Anfrage links (8 Spalten), Kontakt rechts ------------------ */

@media (min-width: 48em) {
  .site-footer__anfrage {
    grid-column: 1 / span 8;
  }

  .site-footer__anfrage .button {
    width: auto;
  }

  .site-footer__kontakt {
    grid-column: 9 / -1;
    margin-top: 0;
  }
}
