.site-footer {
  position: relative;
  isolation: isolate;
  color: var(--oscar-white);
  background: var(--oscar-dark);
  font-family: var(--font-subline, Arial, sans-serif);
}

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

.site-footer__inner {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns:
    10rem
    minmax(0, 1.6fr)
    minmax(0, 1fr)
    minmax(0, 1fr)
    auto;
  align-items: start;
  gap: clamp(1.25rem, 2.5vw, 3rem);

  padding-block: 0 2rem;
}

.site-footer__column {
  min-width: 0;
  padding-top: 3rem;
}

.site-footer__heading {
  margin: 0 0 0.8rem;
  color: inherit;
  font-family: var(--font-headline, Arial, sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
}

.site-footer a:not(.button) {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.25rem;
}

.site-footer a:not(.button):hover {
  text-decoration: underline;
}

.site-footer__brand-copy {
  margin: 0;
  color: var(--oscar-cyan);
  font-size: 0.85rem;
  line-height: 1.7;
}

.site-footer .site-footer__link {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding-block: 0.15rem;

  color: rgb(255 255 255 / 85%);
  font-size: 0.85rem;
  line-height: 1.4;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0;

  font-size: 0.8rem;
  line-height: 1.6;
}

.site-footer__legal a {
  padding-block: 0.2rem;
}

.site-footer__legal a + a {
  position: relative;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
}

.site-footer__legal a + a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;

  width: 1.5px;
  height: 0.75rem;
  border-radius: 2px;
  background: rgb(255 255 255 / 61%);
  transform: translateY(-50%);
}

.site-footer__actions {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 3rem;
}

.site-footer .button {
  gap: 0.4rem;
  margin: 0;
  white-space: nowrap;
}

.site-footer .button svg {
  display: block;
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
}

.site-footer a:focus-visible {
  outline: 2px solid var(--oscar-white);
  outline-offset: 4px;
}

/* Akzentlinie */
.site-footer > .hero__accent {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;

  width: 100%;
  height: 1rem;
  overflow: hidden;
  background: var(--oscar-yellow);
  pointer-events: none;
}

/* Logo */
.site-footer .site-footer__logo {
  display: block;
  justify-self: start;

  width: 100%;
  max-width: 10rem;
  margin: 0;
  padding: 0;

  border-radius: 0 0 1rem 1rem;
  background: var(--oscar-dark);
  filter: drop-shadow(0 2px 4px rgb(255 255 255 / 9%));
  clip-path: inset(0 -20px -20px -20px);
}

.site-footer__logo svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8803.02 / 7846.64;
}

.site-footer .button--primary:hover,
.site-footer .button--primary:focus-visible {
  background-color: #ffbf28;
  box-shadow: 0 0.2rem 0.3rem rgb(249 175 7 / 20%);
  transform: translateY(-1px);
}

.site-footer .button--secondary:hover,
.site-footer .button--secondary:focus-visible {
  background-color: #17dfed;
  box-shadow: 0 0.2rem 0.3rem rgb(8 201 216 / 22%);
  transform: translateY(-1px);
}

/* Tablet */
@media (max-width: 1200px) {
  .site-footer__inner {
    grid-template-columns:
      7rem
      minmax(0, 1.4fr)
      minmax(0, 1fr)
      minmax(0, 1fr)
      auto;
    gap: 1.25rem;
  }

  .site-footer .button {
    min-height: 2rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .site-footer .button svg {
    flex: 0 0 0.85rem;
    width: 0.85rem;
    height: 0.85rem;
  }

  .site-footer__actions {
    flex-direction: column;
    align-self: start;
    gap: 0.5rem;
  }

  .site-footer .site-footer__link {
    padding-block: 0.1rem;
    line-height: 1.3;
  }
}

/* Mobil */
@media (max-width: 800px) {
  .site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo logo"
      "faq actions"
      "brand brand";
    align-items: start;
    gap: 1.5rem 1rem;
    padding-bottom: 2rem;
  }

  /* Logo bleibt auch unter 430 px sichtbar */
  .site-footer .site-footer__logo {
    grid-area: logo;
    display: block;
    justify-self: start;
    width: 7rem;
  }

  .site-footer__column {
    padding-top: 0;
  }

  /* Leistungen komplett ausblenden */
  .site-footer [aria-labelledby="footer-services"] {
    display: none;
  }

  /* FAQ links */
  .site-footer [aria-labelledby="footer-information"] {
    grid-area: faq;
  }

  /* Buttons rechts daneben */
  .site-footer__actions {
    grid-area: actions;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: start;
    justify-self: end;
    gap: 0.75rem;
    padding: 0;
  }

  .site-footer .button svg {
    flex: 0 0 0.85rem;
    width: 0.85rem;
    height: 0.85rem;
  }

  .site-footer__actions {
    flex-direction: column;
    align-self: start;
    gap: 0.5rem;
  }

  /* Marke, Impressum und Datenschutz unten */
  .site-footer__brand {
    grid-area: brand;
  }

  .site-footer .site-footer__link {
    padding-block: 0.1rem;
    min-height: 0;
    line-height: 1.3;
  }
}

@media (min-width: 470px) and (max-width: 800px) {
  .site-footer__inner {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr)
      auto;

    grid-template-areas:
      "logo logo logo"
      "services faq actions"
      "brand brand brand";

    column-gap: 0.75rem;
  }

  .site-footer [aria-labelledby="footer-services"] {
    display: block;
    grid-area: services;
  }
}

/* Reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
  .site-footer > .hero__accent::before {
    animation: none;
  }

  .site-footer .button {
    transition: none;
  }
}