.site-footer {
  padding: 5.5rem 0 4.75rem;
  margin-top: 24px;
  border-top: 2px solid rgb(255 255 255 / 8%);
  background: linear-gradient(340deg, #1c7fa1 0%, #10002b 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.9fr 1.05fr;
  gap: 3.25rem;
  align-items: start;
}

.footer-col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col:nth-child(2),
.footer-col:nth-child(3),
.footer-col:nth-child(4) {
  padding-left: 2rem;
}

.footer-col:nth-child(2)::before,
.footer-col:nth-child(3)::before,
.footer-col:nth-child(4)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  bottom: 0.15rem;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(244, 231, 186, 0),
    rgba(244, 231, 186, 0.45),
    rgba(244, 231, 186, 0)
  );
}

.footer-brand {
  margin-bottom: 0.2rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.65rem, 2vw, 2rem);
  letter-spacing: 0.045em;
}

.footer-heading {
  margin: 0 0 0.35rem;
  color: #f4e7ba;
  font-size: 0.94rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  color: var(--muted);
}

.footer-col a {
  width: fit-content;
  color: #e5eaf5;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover {
  opacity: 0.8;
}

.footer-consent-link {
  display: inline;
  width: fit-content;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #e5eaf5;
  font: inherit;
  font-weight: 600;
  line-height: inherit;
  letter-spacing: 0.01em;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.footer-consent-link:hover {
  opacity: 0.8;
}

.footer-consent-link:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 4px;
}

.legal-card .footer-consent-link {
  width: auto;
  color: var(--accent2);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.consent-dialog {
  width: min(42rem, calc(100% - 2rem));
  max-height: min(44rem, calc(100dvh - 2rem));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: var(--radius);
  background: #111a2f;
  color: var(--text);
  box-shadow: 0 24px 80px rgb(0 0 0 / 60%);
}

.consent-dialog::backdrop {
  background: rgb(3 8 20 / 78%);
  backdrop-filter: blur(5px);
}

.consent-dialog__inner {
  padding: clamp(1.4rem, 4vw, 2.25rem);
}

.consent-dialog__eyebrow {
  margin-bottom: 0.45rem;
  color: #f4e7ba;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.consent-dialog__title {
  margin-bottom: 0.9rem;
  font-size: clamp(1.55rem, 4vw, 2.05rem);
}

.consent-dialog__intro {
  color: #d7dcea;
}

.consent-dialog__option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1rem;
  align-items: center;
  margin: 1.2rem 0;
  padding: 1rem;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 14px;
  background: rgb(255 255 255 / 4%);
}

.consent-dialog__option strong,
.consent-dialog__option small {
  display: block;
}

.consent-dialog__option small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.consent-dialog__required {
  color: #f4e7ba;
  font-size: 0.86rem;
  font-weight: 700;
}

.consent-dialog__toggle {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--accent2);
}

.consent-dialog__links {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.consent-dialog__links a {
  color: #e5eaf5;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.consent-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.consent-dialog__actions .btn {
  flex: 1 1 11rem;
}

.consent-dialog__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 999px;
  background: rgb(255 255 255 / 5%);
  color: var(--text);
  cursor: pointer;
}

.consent-dialog[data-first-visit="true"] .consent-dialog__close {
  display: none;
}

.consent-status {
  min-height: 1.5rem;
  margin: 0.8rem 0 0;
  color: var(--accent2);
  font-size: 0.9rem;
}

.footer-col--booking .small {
  max-width: 15rem;
}

.footer-booking-btn,
.footer-col .footer-booking-btn {
  display: inline-flex;
  color: #08121f;
  text-align: center;
}

/* 641px – 900px */
@media (min-width: 641px) and (max-width: 900px) {
  .site-footer {
    padding: 4.75rem 0 4.25rem;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
    grid-template-areas:
      "brand kontakt"
      "recht booking";
    gap: 2.2rem 2rem;
  }

  .footer-col {
    gap: 0.9rem;
  }

  .footer-col:nth-child(1) {
    grid-area: brand;
    padding-right: 1rem;
  }

  .footer-col:nth-child(2) {
    grid-area: kontakt;
    padding-left: 1.4rem;
  }

  .footer-col:nth-child(3) {
    grid-area: recht;
    padding-left: 1.4rem;
  }

  .footer-col:nth-child(4) {
    grid-area: booking;
    padding-left: 1.4rem;
  }

  .footer-col:nth-child(2)::before,
  .footer-col:nth-child(3)::before,
  .footer-col:nth-child(4)::before {
    top: 0.2rem;
    bottom: 0.2rem;
    background: linear-gradient(
      180deg,
      rgba(244, 231, 186, 0),
      rgba(244, 231, 186, 0.55),
      rgba(244, 231, 186, 0)
    );
  }

  .footer-brand {
    font-size: 1.7rem;
  }

  .footer-heading {
    margin-bottom: 0.15rem;
    font-size: 0.96rem;
    letter-spacing: 0.2em;
  }

  .footer-links {
    gap: 0.7rem;
  }
}

/* 640px and below */
@media (max-width: 640px) {
  .site-footer {
    padding: 4.5rem 0 4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0;
  }

  .footer-col {
    width: min(100%, 24rem);
    align-items: center;
    gap: 0.85rem;
    padding: 1.4rem 0;
    text-align: center;
  }

  .footer-col:nth-child(2),
  .footer-col:nth-child(3),
  .footer-col:nth-child(4) {
    padding-left: 0;
  }

  .footer-col:nth-child(2)::before,
  .footer-col:nth-child(3)::before,
  .footer-col:nth-child(4)::before {
    display: none;
  }

  .footer-col + .footer-col::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    width: min(7rem, 28vw);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
      90deg,
      rgba(244, 231, 186, 0),
      rgba(244, 231, 186, 0.65),
      rgba(244, 231, 186, 0)
    );
  }

  .footer-brand {
    font-size: 1.85rem;
    letter-spacing: 0.04em;
  }

  .footer-heading {
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
    letter-spacing: 0.22em;
  }

  .footer-links {
    align-items: center;
    gap: 0.8rem;
  }

  .footer-col a {
    width: auto;
    display: inline-block;
    padding: 0.1rem 0;
  }

  .footer-consent-link {
    width: auto;
    padding: 0.1rem 0;
    text-align: center;
  }

  .footer-col--booking {
    align-items: center;
  }

  .footer-booking-btn,
  .footer-col .footer-booking-btn {
    padding-inline: 1.2rem;
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
  }

  .footer-col a:hover {
    transform: none;
  }
}
