/* ==========================================================================
   SW360 — Footer (Spaciaz-Stil: weiße, abgerundete Karte über dunklem Grund/Bild)
   Logo + Claim | zwei Link-Spalten | Kontakt (unterstrichen) + Social,
   Trennlinie, Copyright, „Nach oben"-Kreis. JSON-LD im Template.
   Schriften vom Theme — KEIN font-family. Links: color:inherit (Safari-Blau-Fix).
   ========================================================================== */
.sw360-ft {
  --sw-green: var(--primary, #3bdc77);
  --sw-cyan: var(--tertiary, #5dc1cb);
  --sw-ink: var(--dark, #252634);
  --sw-muted: #6b7178;
  --sw-line: #e4e4e0;
  --sw-cw: 1730px;
  --sw-px: clamp(20px, 4vw, 30px);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 7vh, 90px) 0 clamp(28px, 4vh, 56px);
}
.sw360-ft *, .sw360-ft *::before, .sw360-ft *::after { box-sizing: border-box; }

/* Hintergrundbild + dunkler Schleier (optional). Überstand oben/unten für Parallax. */
.sw360-ft__bg { position: absolute; left: 0; right: 0; top: -20%; height: 140%; z-index: 0; background-size: cover; background-position: center; will-change: transform; }
.sw360-ft__bg-ov { position: absolute; inset: 0; z-index: 0; background: var(--sw-ink); opacity: .55; }

.sw360-ft__inner {
  position: relative; z-index: 1;
  width: min(100% - 2 * var(--sw-px), var(--sw-cw));
  margin-inline: auto;
}
.sw360-ft__inner--max     { --sw-cw: 100%; }
.sw360-ft__inner--wide    { --sw-cw: 1360px; }
.sw360-ft__inner--default { --sw-cw: 1140px; }

/* ---- Weiße Karte ---- */
.sw360-ft__card {
  position: relative; z-index: 1;
  background: #fff;
  color: var(--sw-ink);
  border-radius: clamp(24px, 3vw, 44px);
  padding: clamp(32px, 4vw, 64px) clamp(28px, 4vw, 64px) clamp(26px, 3vw, 44px);
  box-shadow: 0 30px 80px rgba(37, 38, 52, 0.18);
}

/* ---- Riesen-Wortmarke als Milchglas hinter der Karte (Spaciaz-Look) ----
   Die Wortmarke maskiert eine backdrop-filter-Ebene -> nur die Buchstaben-Form
   wird zu Glas und verschwimmt das Hintergrundbild. Ragt oben hinter der Karte
   hervor (translateY = peek). */
.sw360-ft--mark { padding-top: clamp(120px, 16vw, 250px); }
.sw360-ft__mark {
  position: absolute; left: 50%; top: 0; z-index: 0;
  width: var(--wm-w, 96%);
  aspect-ratio: 6721 / 2017;
  transform: translate(-50%, calc(-1 * var(--wm-peek, 38%)));
  pointer-events: none;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center top; mask-position: center top;
  -webkit-mask-size: contain; mask-size: contain;
  background: rgba(255, 255, 255, var(--wm-tint, 0.12));
  -webkit-backdrop-filter: blur(var(--wm-blur, 10px)) saturate(1.1);
  backdrop-filter: blur(var(--wm-blur, 10px)) saturate(1.1);
}
/* Kein backdrop-filter-Support -> etwas kräftigerer weisser Schimmer als Fallback */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sw360-ft__mark { background: rgba(255, 255, 255, calc(var(--wm-tint, 0.12) + 0.06)); }
}
/* Auf kleinen Screens die Riesen-Wortmarke ausblenden (Desktop-Flourish) */
@media (max-width: 680px) {
  .sw360-ft__mark { display: none; }
  .sw360-ft--mark { padding-top: clamp(40px, 7vh, 90px); }
}

/* ==========================================================================
   OBERER BEREICH
   ========================================================================== */
.sw360-ft__top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 0.9fr 1.25fr;  /* Marke | Sitemap | Rechtliches | Kontakt */
  gap: clamp(26px, 3.4vw, 60px);
  align-items: start;
}

/* Marke */
.sw360-ft__brand { display: flex; flex-direction: column; align-items: flex-start; }
.sw360-ft__logo { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.sw360-ft__logo { color: var(--sw-ink); }
/* Feste Höhe (nicht nur max-height) + Spezifität -> auch SVG-Uploads/stale Cache sicher sichtbar */
.sw360-ft .sw360-ft__logo img { height: clamp(28px, 3vw, 42px); width: auto; max-width: 100%; display: block; }
.sw360-ft .sw360-ft__logosvg { display: block; height: clamp(26px, 3vw, 40px); width: auto; }
.sw360-ft__wordmark { font-weight: 800; font-size: clamp(1.5rem, 2vw, 1.9rem); letter-spacing: -0.02em; color: var(--sw-ink); }
.sw360-ft__wordmark span { color: var(--sw-green); }
.sw360-ft__tagline { margin: clamp(16px, 2.4vw, 28px) 0 0; max-width: 34ch; color: var(--sw-muted); line-height: 1.55; }
.sw360-ft__badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: clamp(14px, 1.8vw, 22px);
  padding: 7px 15px 7px 12px;
  border: 1px solid color-mix(in srgb, var(--sw-green) 45%, transparent);
  border-radius: var(--radius-pill, 999px);
  font-size: 0.82rem; font-weight: 600; color: var(--sw-ink); line-height: 1;
}
.sw360-ft__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sw-green); flex: 0 0 auto; }

/* Spalten (Sitemap / Rechtliches / Kontakt) – linke Trennlinie wie bei Spaciaz */
.sw360-ft__col { padding-left: clamp(18px, 2vw, 34px); border-left: 1px solid var(--sw-line); display: flex; flex-direction: column; gap: clamp(11px, 1.3vw, 16px); }
.sw360-ft__coltitle { margin: 0 0 clamp(4px, 0.6vw, 8px); color: var(--sw-muted); letter-spacing: 0.12em; }
.sw360-ft__links { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(11px, 1.3vw, 16px); }
.sw360-ft__link { text-decoration: none; color: var(--sw-ink); font-weight: 600; transition: color .2s ease; }
.sw360-ft__link:hover, .sw360-ft__link:focus-visible { color: var(--sw-green); }

/* Kontakt-Spalte */
.sw360-ft__cline { margin: 0; color: var(--sw-muted); line-height: 1.5; }
.sw360-ft__clink { text-decoration: none; color: var(--sw-ink); font-weight: 600; transition: color .2s ease; }
.sw360-ft__clink:hover, .sw360-ft__clink:focus-visible { color: var(--sw-green); }
.sw360-ft__cmuted { font-size: 0.92rem; opacity: 0.85; }
.sw360-ft__social { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: clamp(6px, 0.8vw, 12px); }
.sw360-ft__social a { color: var(--sw-muted); text-decoration: none; font-size: 0.92rem; transition: color .2s ease; }
.sw360-ft__social a:hover { color: var(--sw-green); }
.sw360-ft__social a:not(:last-child)::after { content: "·"; margin: 0 .55em; color: var(--sw-line); }

/* ==========================================================================
   TRENNER + UNTERER BEREICH
   ========================================================================== */
.sw360-ft__divider { height: 1px; background: var(--sw-line); margin: clamp(28px, 4vw, 56px) 0 clamp(18px, 2vw, 26px); }
.sw360-ft__bottom { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(10px, 1.4vw, 14px); text-align: center; }
.sw360-ft__copy { margin: 0; color: var(--sw-muted); font-size: 0.92rem; letter-spacing: 0.1em; }
.sw360-ft__copy strong { color: var(--sw-ink); font-weight: 700; }

/* „Erstellt von MANEGE ZWEI"-Badge (Link auf manege-zwei.de mit UTM) */
.sw360-ft__madeby {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--sw-muted);
  font-size: 0.8rem; line-height: 1;
  transition: color .2s ease;
}
.sw360-ft__madeby:hover { color: var(--sw-ink); }
.sw360-ft__madeby-tx { letter-spacing: 0.01em; }
.sw360-ft__madeby-logo { display: inline-flex; align-items: center; opacity: .92; transition: opacity .2s ease; }
.sw360-ft__madeby:hover .sw360-ft__madeby-logo { opacity: 1; }
.sw360-ft__madeby-logo svg { height: 15px; width: auto; display: block; }

/* ==========================================================================
   „NACH OBEN"-BUTTON
   ========================================================================== */
/* Fixiert/schwebend: immer sichtbar (ab etwas Scroll), klebt am Viewport.
   Wird per JS an <body> gehängt -> Farb-Fallbacks nötig (Modul-Variablen fehlen dort). */
.sw360-ft__totop {
  position: fixed; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 40px); z-index: 90;
  width: clamp(48px, 5vw, 58px); height: clamp(48px, 5vw, 58px);
  display: grid; place-items: center;
  border: 0; cursor: pointer; appearance: none; -webkit-appearance: none;
  border-radius: 50%; background: var(--sw-green, #3bdc77); color: var(--sw-ink, #252634);
  box-shadow: 0 12px 30px rgba(37, 38, 52, 0.28);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, box-shadow .2s ease;
}
.sw360-ft__totop svg { width: 42%; height: 42%; }
.sw360-ft__totop.is-show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sw360-ft__totop.is-show:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(37, 38, 52, 0.32); }
@media (prefers-reduced-motion: reduce) { .sw360-ft__totop { transition: opacity .2s ease; } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .sw360-ft__top { grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 40px); }
  .sw360-ft__brand { grid-column: 1 / -1; }
  .sw360-ft__col { padding-left: 0; border-left: 0; }
  .sw360-ft__tagline { max-width: none; }
}
@media (max-width: 560px) {
  .sw360-ft__top { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ENTRANCE
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .sw360-ft__card { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
  .sw360-ft.is-in .sw360-ft__card { opacity: 1; transform: none; }
}
