/* ============================================================
   Luruper Schleife — base styles
   Tokens kommen aus ./tokens.css (Clash Display / Nippo /
   Archivo + sage/grey + Signal-Akzente). Diese Datei: Reset,
   Header, Section-Scaffold, Grundrisse-Explorer, Kontakt, Footer.
   Das Scene-/Hero-/Stage-Layout liegt in layout.css (lädt danach).
   Signal-Akzente (pink/acid) sind hier direkt eingearbeitet.
   ============================================================ */

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 56px;
}
@media (max-width: 760px) {
  .wrap {
    padding: 0 24px;
  }
}

/* ---------- HEADER ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent; /* durchgehend transparent */
  --icon-color: #fff;
  --text-color: #fff; /* default: über dunkel/Video */
}
.site-head.on-light {
  --icon-color: var(--green);
  --text-color: #000;
} /* über hellen Sections */
.site-head.on-signal {
  --icon-color: var(--accent);
  --text-color: #000;
} /* signal-Sections: heller Grund, Artefakt im Akzent */
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}
.brand {
  display: flex;
  align-items: center;
}
.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}
.brand-logo .lg-icon {
  fill: var(--icon-color);
  transition: fill 0.3s ease;
}
.brand-logo .lg-text path {
  fill: var(--text-color);
  transition: fill 0.3s ease;
}
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-color);
  padding: 6px 0;
  position: relative;
  transition: color 0.3s ease;
}
.nav a.cta {
  background: var(--accent);
  color: #fff;
  padding: 16px 32px;
  line-height: 1;
}
.nav a.cta:hover {
  background: var(--accent-press);
}
.nav a:not(.cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: currentColor;
  transition: width 0.2s ease;
}
.nav a:not(.cta):hover::after,
.nav a.active:not(.cta)::after {
  width: 100%;
}
.nav-toggle {
  display: none; /* eingeblendet ab ≤1024px */
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-right: -10px; /* optisch bündig zur Kante, größere Trefferfläche */
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 24px;
  height: 2px;
  background: currentColor;
  transform: translateX(-50%);
  transition:
    transform 0.28s ease,
    opacity 0.2s ease,
    background 0.3s ease;
}
.nav-toggle__bars {
  top: 50%;
  margin-top: -1px;
}
.nav-toggle__bars::before {
  top: -7px;
}
.nav-toggle__bars::after {
  top: 7px;
}
.nav-toggle.open .nav-toggle__bars {
  background: transparent;
}
.nav-toggle.open .nav-toggle__bars::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}
.nav-toggle.open .nav-toggle__bars::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
}
@media (max-width: 1024px) {
  .nav {
    gap: 0;
  }
  .nav .link,
  .nav .expose-cta {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .site-head .wrap {
    height: 74px;
  }
}

/* ---------- MOBILE NAV — Fullscreen-Takeover (≤1024px) ---------- */
/* Panel liegt UNTER dem Header (z-index 40), damit Logo + Toggle oben bleiben. */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 28px 40px;
  background: var(--ink);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0s linear 0.4s;
}
.mnav.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0s;
}
.mnav__inner {
  display: flex;
  flex-direction: column;
  gap: 44px;
  width: 100%;
  max-width: 480px;
}
.mnav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mnav-list li {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.mnav-list a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 20px 0;
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(26px, 6vw, 40px);
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}
.mnav-idx {
  flex-shrink: 0;
  font-family: var(--font-num);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent-2);
}
.mnav-label {
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mnav-list a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 16px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.mnav-list a:hover,
.mnav-list a:focus-visible {
  color: #fff;
}
.mnav-list a:hover .mnav-label,
.mnav-list a:focus-visible .mnav-label {
  transform: translateX(10px);
}
.mnav-list a:hover::before,
.mnav-list a:focus-visible::before {
  width: 24px;
}
.mnav-foot {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mnav-cta {
  width: 100%;
  justify-content: center;
  padding: 20px 26px;
  font-size: 16px;
}
.mnav-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.mnav-meta a {
  color: rgba(255, 255, 255, 0.8);
}
.mnav-meta a:hover {
  color: #fff;
}
/* Header-Ton erzwingen, solange das Ink-Panel offen ist */
.site-head.menu-open,
.site-head.menu-open.on-light,
.site-head.menu-open.on-signal {
  --icon-color: #fff;
  --text-color: #fff;
}
/* Staggered Reveal der Punkte + Foot */
.mnav-list li,
.mnav-foot {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mnav.open .mnav-list li,
.mnav.open .mnav-foot {
  opacity: 1;
  transform: translateY(0);
}
.mnav.open .mnav-list li:nth-child(1) {
  transition-delay: 0.08s;
}
.mnav.open .mnav-list li:nth-child(2) {
  transition-delay: 0.14s;
}
.mnav.open .mnav-list li:nth-child(3) {
  transition-delay: 0.2s;
}
.mnav.open .mnav-list li:nth-child(4) {
  transition-delay: 0.26s;
}
.mnav.open .mnav-foot {
  transition-delay: 0.32s;
}
@media (prefers-reduced-motion: reduce) {
  .mnav,
  .mnav.open,
  .mnav-list li,
  .mnav.open .mnav-list li,
  .mnav-foot,
  .mnav.open .mnav-foot {
    transition-duration: 0.001s;
    transition-delay: 0s;
    transform: none;
  }
}

/* ---------- SECTION SCAFFOLD ---------- */
section {
  position: relative;
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-press);
  letter-spacing: 0.02em;
  margin: 0 0 14px;
}
.sec-pad {
  padding: 110px 0;
}
@media (max-width: 760px) {
  .sec-pad {
    padding: 72px 0;
  }
}

/* shared headings (used by Grundrisse) */
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 20px;
}
.body-lg {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 18px;
}

/* ---------- ACID MARKER (inline highlights) ---------- */
mark.acid {
  background: var(--accent-2);
  color: var(--ink);
  padding: 0 0.14em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.kv .v mark.acid,
.kfield .v mark.acid {
  font-weight: 700;
}

/* ---------- GEBÄUDETEILE ---------- */
.grund {
  background: #eeeeee;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.filters.floors {
  margin-bottom: 22px;
}
.fbtn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  background: #fff;
  color: var(--fg-2);
  border: 1px solid var(--line-strong);
  padding: 9px 18px;
  transition: all 0.15s ease;
}
.fbtn:hover {
  border-color: var(--accent);
}
.fbtn.on {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.filters.floors .fbtn {
  font-weight: 400;
  font-size: 13px;
  padding: 7px 15px;
}
.filters.floors .fbtn.on {
  background: var(--ink);
  border-color: var(--ink);
} /* floors stay ink */

.fl-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 2px 14px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 0;
}
#sumCount {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
#sumArea {
  font-family: var(--font-num);
  font-size: 22px;
  color: var(--ink);
}

.legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--fg-2);
}
.legend i {
  width: 11px;
  height: 11px;
  display: inline-block;
}

.geb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.geb-card {
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.geb-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.geb-card.open {
  box-shadow: var(--shadow-card);
  transform: none;
}
.geb-main {
  padding: 26px 26px 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.geb-main:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}
.geb-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 6px;
}
.geb-num {
  font-family: var(--font-num);
  font-size: 14px;
  color: var(--accent-press);
  letter-spacing: 0.02em;
  border: 1px solid var(--line-strong);
  padding: 4px 9px;
  line-height: 1;
  white-space: nowrap;
}
.geb-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.08;
  color: var(--ink);
  margin: 0;
}
.geb-tag {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--green);
  font-weight: 700;
  margin: 0 0 16px;
}
.geb-note {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-3);
  margin: 0 0 20px;
  flex: 1;
}
.geb-bar {
  display: flex;
  height: 12px;
  width: 100%;
  overflow: hidden;
  background: #eeeeee;
  margin-bottom: 12px;
}
.geb-bar i {
  height: 100%;
  display: block;
}
.geb-figs {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: auto;
}
.geb-splits {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--fg-3);
}
.geb-splits b {
  font-family: var(--font-num);
  font-weight: 400;
  color: var(--ink);
  font-size: 13px;
}
.geb-total {
  font-family: var(--font-num);
  font-size: 22px;
  color: var(--ink);
  white-space: nowrap;
}
.geb-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.geb-feats span {
  font-family: var(--font-body);
  font-size: 11.5px;
  color: var(--fg-2);
  background: var(--green-tint);
  padding: 5px 10px;
  line-height: 1;
}
@media (max-width: 820px) {
  .geb-grid {
    grid-template-columns: 1fr;
  }
}

/* Klick-Detail in der Kachel: Galerie + Kontakt-CTA */
.geb-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}
.geb-card.open .geb-detail {
  grid-template-rows: 1fr;
}
.geb-detail-inner {
  overflow: hidden;
  padding: 0 26px;
}
.geb-card.open .geb-detail-inner {
  padding: 0 26px 24px;
}
.geb-gallery {
  position: relative;
  background: var(--green-tint);
  aspect-ratio: 760/560;
  overflow: hidden;
}
.geb-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.geb-swiper {
  width: 100%;
  height: 100%;
}
.geb-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}
.geb-swiper .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.65;
}
.geb-swiper .swiper-pagination-bullet-active {
  background: var(--green);
  opacity: 1;
}
.geb-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.geb-cta {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.geb-cta.mail {
  background: var(--accent);
  color: #fff;
}
.geb-cta.mail:hover {
  background: var(--green-press);
}
.geb-cta.tel {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--font-num);
  font-weight: 400;
}
.geb-cta.tel:hover {
  border-color: var(--accent);
}

/* Cursorfolgendes Vorschaubild (nur hover-fähige Geräte) */
.geb-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  pointer-events: none;
  width: 300px;
  height: 221px;
  background: var(--bg-2);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.9);
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform, opacity;
}
.geb-preview.on {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
}
.geb-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (hover: none) {
  .geb-preview {
    display: none;
  }
}

.fl-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin: 16px 0 0;
  padding: 14px 2px 0;
  border-top: 2px solid var(--ink);
}
.ft-lead {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.ft-num {
  font-family: var(--font-num);
  font-size: 22px;
  color: var(--ink);
}
.ft-split {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fg-2);
}
.note {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--fg-3);
  margin: 14px 0 0;
}

/* ---------- LAGEPLAN ---------- */
.lk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
}
.lk-stage {
  position: relative;
  aspect-ratio: 1987/1048;
  background: #0d0d0e;
  overflow: hidden;
}
.lk-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lk-stage svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.lk-zone {
  fill: rgba(251, 70, 133, 0);
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill 0.15s ease;
  outline: none;
}
.lk-zone:focus-visible,
.lk-zone.hovered {
  fill: rgba(251, 70, 133, 0.38);
  stroke: #fff;
  stroke-dasharray: none;
  stroke-width: 2;
}
.lk-zone.selected {
  fill: rgba(251, 70, 133, 0.5);
  stroke: #fff;
  stroke-dasharray: none;
  stroke-width: 2.5;
}
@media (prefers-reduced-motion: reduce) {
  .lk-zone {
    transition: none;
  }
}
.lk-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  display: none;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
  max-width: 240px;
}
.lk-tooltip strong {
  font-family: var(--font-num);
  color: var(--accent-press);
}

.lk-panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 26px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lk-empty {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fg-3);
  line-height: 1.55;
  margin: 0;
}
.lk-unit + .lk-unit {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.lk-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 4px;
}
.lk-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
}
.lk-num {
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--accent-press);
  letter-spacing: 0.02em;
  border: 1px solid var(--line-strong);
  padding: 3px 8px;
  line-height: 1;
  white-space: nowrap;
}
.lk-tag {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--green);
  font-weight: 700;
  margin: 0 0 14px;
}
.lk-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 13px;
}
.lk-table td {
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg-2);
}
.lk-table td:last-child {
  text-align: right;
  font-family: var(--font-num);
  color: var(--ink);
}
.lk-table tr.total td {
  border-bottom: none;
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
  padding-top: 8px;
}
.lk-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.lk-feats span {
  font-family: var(--font-body);
  font-size: 11.5px;
  color: var(--fg-2);
  background: var(--green-tint);
  padding: 5px 10px;
  line-height: 1;
}
.lk-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.lk-gallery {
  position: relative;
  margin-top: 18px;
  background: var(--green-tint);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.lk-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lk-swiper {
  width: 100%;
  height: 100%;
}
.lk-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}
.lk-swiper .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.65;
}
.lk-swiper .swiper-pagination-bullet-active {
  background: var(--green);
  opacity: 1;
}
@media (max-width: 900px) {
  .lk-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- KONTAKT ---------- */
.kontakt {
  background: #fff;
}
.kontakt-panel {
  background: var(--green);
  color: #fff;
  padding: 72px 64px;
  position: relative;
  overflow: hidden;
}
.kontakt-panel .inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
}
.kontakt-panel .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}
.kontakt-panel h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.04;
  margin: 0 0 28px;
  color: #fff;
}
.kfield {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}
.kfield .k {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.kfield .v {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  text-align: right;
}
.kbtn {
  margin-top: 32px;
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  background: var(--accent-2);
  color: var(--ink);
  border: none;
  padding: 17px 38px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.18s ease;
}
.kbtn:hover {
  background: var(--accent-2-press);
  color: var(--ink);
}
.kontakt-panel .ghost-mark {
  position: absolute;
  right: -60px;
  bottom: -120px;
  width: 360px;
  height: auto;
  opacity: 0.12;
  transform: rotate(-90deg);
  z-index: 1;
}
@media (max-width: 760px) {
  .kontakt-panel {
    padding: 48px 28px;
  }
  .kontakt-panel .ghost-mark {
    display: none;
  }
}

/* ---------- FOOTER ---------- */
/* ---------- FOOT-WORDMARK (fit-to-width Schriftzug, nur ≥1024px) ----------
   Technik: Roman Komarov / piccalilli — Text skaliert per container-query-units
   + registrierter Custom-Property über atan2()/tan() exakt auf Containerbreite,
   ganz ohne JS-Magiezahl. Sichtbar erst ab Desktop. */
@property --fit-cap {
  syntax: "<length>";
  initial-value: 0px;
  inherits: true;
}
.foot-wordmark {
  display: none;
}
@media (min-width: 1024px) {
  .foot-wordmark {
    display: block;
    background: #fff; /* nahtlos an die Kontakt-Sektion */
    padding-bottom: clamp(8px, 1.2vw, 20px);
    z-index: 1;
    position: relative;
  }
  .foot-wordmark .wrap {
    max-width: none; /* volle Viewport-Breite, aus dem 1920er-Wrap gelöst */
    padding-inline: 0;
    margin-inline: 0;
  }
}
.foot-wordmark .fit {
  --fit-cap: initial; /* Sentinel: unregistriert überschreiben */
  display: flex;
  container-type: inline-size;
  line-height: 0.82;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: normal; /* neutral halten: neg. Spacing verfälscht die Messung → Clipping */
  color: var(--ink);
}
.foot-wordmark .fit__ref {
  visibility: hidden; /* Referenzkopie: reserviert Basisbreite */
}
.foot-wordmark .fit__box {
  --fit-cap: 100cqi;
  --fit-space: var(--fit-cap);
  flex-grow: 1;
  container-type: inline-size;
  text-align: center;
}
.foot-wordmark .fit__text {
  --fit-cap: 100cqi;
  --fit-ratio: tan(atan2(var(--fit-space), var(--fit-space) - var(--fit-cap)));
  display: block;
  inline-size: var(--fit-space);
  white-space: nowrap;
  /* --fit-safety < 1: skaliert einen Hauch unter die volle Breite, damit
     Sub-Pixel-Rundung / Glyph-Übergang die Kante nie anschneidet. */
  font-size: clamp(1em, 1em * var(--fit-ratio) * var(--fit-safety, 0.98), 30vw);
  transform: translateY(50px);
  mix-blend-mode: multiply;
}

.foot {
  background: #1e1e1e;
  color: #fff;
  padding: 56px 0 40px;
}
.foot .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.foot img {
  height: 56px;
  filter: brightness(0) invert(1);
}
.foot .col {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}
.foot .col strong {
  color: #fff;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}
.foot .legal {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: 36px;
  padding-top: 20px;
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
