/* Shell styles — site-footer (premium) */

.site-footer--premium {
  --footer-bg: #050a10;
  --footer-accent: #00b4d8;
  --footer-accent-soft: rgba(0, 180, 216, 0.42);
  --footer-accent-glow: rgba(0, 132, 180, 0.55);
  --footer-text: rgba(255, 255, 255, 0.92);
  --footer-text-muted: rgba(255, 255, 255, 0.58);
  --footer-border: rgba(255, 255, 255, 0.08);
  --footer-glass: rgba(8, 18, 32, 0.72);
  color: var(--footer-text);
  background-color: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  isolation: isolate;
}

/* Premium footer: kein Load-Blur — stabil wie Premium-Header */
body.is-loading .site-footer--premium,
body.is-ready .site-footer--premium,
.site-footer--premium {
  opacity: 1;
  transform: none;
  filter: none;
  will-change: auto;
}

/* ── Background layers ── */
.site-footer__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.site-footer__bg-image {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: clamp(14rem, 42vw, 22rem);
  background-image: var(--footer-bg-url);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  opacity: 0.95;
  transform: translate3d(0, 0, 0) scale(1.02);
  animation: footer-bg-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}

.site-footer__bg-glow {
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0, 180, 216, 0.22) 0%, transparent 68%),
    radial-gradient(ellipse 40% 35% at 18% 88%, rgba(0, 132, 180, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 35% 30% at 82% 90%, rgba(0, 132, 180, 0.12) 0%, transparent 72%);
  animation: footer-glow-pulse 6s ease-in-out infinite;
}

.site-footer__bg-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 10, 16, 0.72) 0%, rgba(5, 10, 16, 0.88) 22%, rgba(5, 10, 16, 0.35) 72%, transparent 100%),
    linear-gradient(90deg, var(--footer-bg) 0%, transparent 12%, transparent 88%, var(--footer-bg) 100%);
}

@keyframes footer-bg-drift {
  0% { transform: translate3d(-1.2%, 0, 0) scale(1.03); }
  100% { transform: translate3d(1.2%, -1.5%, 0) scale(1.06); }
}

@keyframes footer-glow-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* ── Layout ── */
.site-footer__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 1024px) {
  .site-footer__layout {
    grid-template-columns: minmax(0, 0.95fr) 1px minmax(0, 1.55fr);
    gap: 0 3.5rem;
    align-items: start;
  }
}

.site-footer__divider {
  display: none;
  width: 1px;
  align-self: stretch;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.14) 18%,
    rgba(0, 180, 216, 0.28) 50%,
    rgba(255, 255, 255, 0.1) 82%,
    transparent 100%
  );
}

@media (min-width: 1024px) {
  .site-footer__divider {
    display: block;
  }
}

/* ── Brand column ── */
.site-footer__logo {
  display: inline-flex;
  margin-bottom: 1.75rem;
  transition: opacity 220ms ease, transform 220ms ease;
}

.site-footer__logo:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.site-footer__logo-img {
  display: block;
  width: auto;
  height: clamp(2rem, 4vw, 2.5rem);
}

.site-footer__tagline {
  margin: 0 0 2rem;
  max-width: 26rem;
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 300;
  color: var(--footer-text-muted);
}

.site-footer__contact-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-bottom: 2rem;
}

.site-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.site-footer__icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(0, 180, 216, 0.35);
  background: rgba(0, 20, 40, 0.65);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 18px rgba(0, 180, 216, 0.12);
  transition:
    border-color 260ms ease,
    box-shadow 260ms ease,
    transform 260ms ease;
}

.site-footer__icon-box .material-symbols-outlined {
  font-size: 1.15rem;
  color: var(--footer-accent);
}

.site-footer__contact-item:hover .site-footer__icon-box {
  border-color: rgba(0, 180, 216, 0.65);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 24px rgba(0, 180, 216, 0.28);
  transform: translateY(-1px);
}

.site-footer__contact-label {
  margin: 0 0 0.2rem;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--footer-text);
}

.site-footer__contact-value {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 300;
  color: var(--footer-text-muted);
}

.site-footer__link {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition:
    color 220ms ease,
    background-size 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: var(--footer-text);
  background-size: 100% 1px;
}

/* ── Social ── */
.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.site-footer__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 14, 28, 0.55);
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition:
    color 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms ease;
}

.site-footer__social-btn .material-symbols-outlined {
  font-size: 1.05rem;
}

.site-footer__social-btn:hover,
.site-footer__social-btn:focus-visible {
  color: #fff;
  border-color: rgba(0, 180, 216, 0.55);
  background: rgba(0, 30, 55, 0.75);
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.22);
  transform: translateY(-2px);
}

.site-footer__social-btn--placeholder {
  cursor: default;
  opacity: 0.55;
  pointer-events: none;
}

/* ── Navigation grid ── */
.site-footer__nav-area {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.site-footer__nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .site-footer__nav-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1.25rem;
  }
}

.site-footer__nav-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.site-footer__nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(0, 180, 216, 0.4);
  background: rgba(0, 18, 36, 0.7);
  box-shadow: 0 0 16px rgba(0, 180, 216, 0.18);
  animation: footer-icon-glow 4.5s ease-in-out infinite;
}

.site-footer__nav-icon .material-symbols-outlined {
  font-size: 1rem;
  color: var(--footer-accent);
}

.site-footer__nav-col:nth-child(2) .site-footer__nav-icon { animation-delay: 0.6s; }
.site-footer__nav-col:nth-child(3) .site-footer__nav-icon { animation-delay: 1.2s; }

@keyframes footer-icon-glow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(0, 180, 216, 0.14);
    border-color: rgba(0, 180, 216, 0.32);
  }
  50% {
    box-shadow: 0 0 22px rgba(0, 180, 216, 0.34);
    border-color: rgba(0, 180, 216, 0.58);
  }
}

.site-footer__nav-title {
  margin: 0;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--footer-text);
}

.site-footer__nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.site-footer__nav-link {
  display: inline-block;
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.4;
  color: var(--footer-text-muted);
  text-decoration: none;
  background-image: linear-gradient(var(--footer-accent), var(--footer-accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition:
    color 220ms ease,
    background-size 260ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms ease;
}

.site-footer__nav-link:hover,
.site-footer__nav-link:focus-visible {
  color: var(--footer-text);
  background-size: 100% 1px;
  transform: translateX(2px);
}

.site-footer__nav-link--muted {
  cursor: default;
  color: rgba(255, 255, 255, 0.38);
}

.site-footer__nav-link--muted:hover {
  color: rgba(255, 255, 255, 0.38);
  background-size: 0;
  transform: none;
}

.site-footer__nav-link--button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.site-footer__nav-note {
  font-size: var(--fs-micro);
  opacity: 0.75;
}

/* ── CTA box — rotating border glow ── */
@property --cta-border-angle {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.site-footer__cta-glow {
  --cta-speed: 14s;
  --cta-radius: 1.125rem;
  --cta-border-w: 1.5px;

  position: relative;
  border-radius: var(--cta-radius);

  /* The conic gradient IS the border — it shows only in the padding gap */
  padding: var(--cta-border-w);
  background: conic-gradient(
    from calc(var(--cta-border-angle) * 1deg),
    rgba(0, 80, 120, 0.35)   0%,
    rgba(0, 120, 170, 0.55) 28%,
    rgba(0, 180, 216, 0.82) 42%,
    rgba(160, 235, 255, 1)  50%,
    rgba(0, 180, 216, 0.82) 58%,
    rgba(0, 120, 170, 0.55) 72%,
    rgba(0, 80, 120, 0.35) 100%
  );
  animation: footer-cta-border-spin var(--cta-speed) linear infinite;

  /* Soft outer halo — follows border-radius naturally */
  box-shadow:
    0 0 20px rgba(0, 180, 216, 0.14),
    0 0 48px rgba(0, 180, 216, 0.06);
  transition: box-shadow 0.5s ease;
}

/* Blurred ghost behind the element — amplifies the glow without affecting interior */
.site-footer__cta-glow::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: calc(var(--cta-radius) + 10px);
  pointer-events: none;
  background: conic-gradient(
    from calc(var(--cta-border-angle) * 1deg),
    transparent 0%,
    transparent 32%,
    rgba(0, 180, 216, 0.22) 42%,
    rgba(120, 220, 255, 0.35) 50%,
    rgba(0, 180, 216, 0.22) 58%,
    transparent 68%,
    transparent 100%
  );
  filter: blur(18px);
}

.site-footer__cta-glow:hover,
.site-footer__cta-glow:focus-within {
  box-shadow:
    0 0 30px rgba(0, 180, 216, 0.32),
    0 0 72px rgba(0, 180, 216, 0.14),
    0 0 120px rgba(0, 180, 216, 0.06);
}

.site-footer__cta-glow:hover::before,
.site-footer__cta-glow:focus-within::before {
  filter: blur(24px);
  opacity: 1.4; /* clamped to 1 by browser — just ensures max */
}

@keyframes footer-cta-border-spin {
  to { --cta-border-angle: 360; }
}

.site-footer__cta-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem 1.5rem;
  padding: 1.35rem 1.5rem;
  border-radius: calc(var(--cta-radius) - var(--cta-border-w));
  /* Solid dark fill — covers the center, leaving only the padding-gap as border */
  background: rgb(5, 12, 24);
}

.site-footer__cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 180, 216, 0.45);
  background: rgba(0, 22, 42, 0.65);
  box-shadow: 0 0 24px rgba(0, 180, 216, 0.18);
}

.site-footer__cta-icon .material-symbols-outlined {
  font-size: 1.45rem;
  color: var(--footer-accent);
}

.site-footer__cta-title {
  margin: 0;
  font-size: var(--fs-body-lg);
  font-weight: 700;
  color: var(--footer-text);
}

.site-footer__cta-sub {
  margin: 0.15rem 0 0;
  font-size: var(--fs-body);
  font-weight: 300;
  color: var(--footer-text-muted);
}

.site-footer__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  background: #fff;
  color: #050a10;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.12);
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms ease,
    background-color 220ms ease;
}

.site-footer__cta-btn .material-symbols-outlined {
  font-size: 1.1rem;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-footer__cta-btn:hover,
.site-footer__cta-btn:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 12px 36px rgba(255, 255, 255, 0.2),
    0 0 32px rgba(0, 180, 216, 0.25);
}

.site-footer__cta-btn:hover .material-symbols-outlined,
.site-footer__cta-btn:focus-visible .material-symbols-outlined {
  transform: translateX(3px);
}

@media (max-width: 767px) {
  .site-footer__cta-inner {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .site-footer__cta-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* ── Bottom bar ── */
.site-footer__bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .site-footer__bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.site-footer__copyright {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: 300;
  color: var(--footer-text-muted);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 0.85rem;
}

.site-footer__legal-link {
  font-size: var(--fs-body);
  font-weight: 300;
  color: var(--footer-text-muted);
  text-decoration: none;
  transition: color 220ms ease;
}

.site-footer__legal-link:hover,
.site-footer__legal-link:focus-visible {
  color: var(--footer-text);
}

.site-footer__legal-link--button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.site-footer__legal-sep {
  color: rgba(255, 255, 255, 0.22);
  user-select: none;
}

/* ── Scroll reveal ── */
.site-footer__reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 680ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.site-footer--visible .site-footer__reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .site-footer__bg-image,
  .site-footer__bg-glow,
  .site-footer__nav-icon,
  .site-footer__cta-glow {
    animation: none !important;
  }

  .site-footer__cta-glow {
    background: rgba(0, 100, 150, 0.45);
  }

  .site-footer__reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-footer__cta-btn:hover,
  .site-footer__cta-btn:focus-visible,
  .site-footer__social-btn:hover,
  .site-footer__social-btn:focus-visible,
  .site-footer__nav-link:hover,
  .site-footer__nav-link:focus-visible {
    transform: none;
  }
}
