/* =========================================================================
   Fusszeile "Landschaft" (seit 10.11.2026, alle Seiten)
   Idee aus "Meadow Rise Footer" (21st.dev), neu gebaut in Vanilla und auf
   ClosingHub umgemünzt: lila Bergkämme statt grüner Wiese, darüber eine
   riesige, blasse Wortmarke, die von den Kämmen verdeckt wird. Der vorderste
   Kamm läuft in den tiefvioletten Boden aus, auf dem die Links stehen.
   Alle Klassen tragen das Präfix chf-. Tokens wie in start-hell.css.
   ========================================================================= */

.chf {
  --chf-boden: #1A0B3F;
  --chf-text: #E9E2FB;
  --chf-leise: #B5A6DC;
  --chf-linie: rgba(233, 226, 251, .14);
  --chf-akzent: var(--accent, #6C2BF2);
  --chf-akzent-hover: var(--accent-hover, #5A20D8);
  --chf-land: clamp(250px, 37vw, 540px);
  --chf-ease: cubic-bezier(.16, 1, .3, 1);

  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 0;
  overflow: hidden;
  /* Seit 10.11.2026 ohne Ecken und ohne Seitenkanten (Tobias). */
  background: var(--chf-boden);
  color: var(--chf-text);
  font-size: 14.5px;
}

/* Szene: ein Canvas über Himmel, Kopf und den oberen Teil des Bodens. */
.chf-szene { position: absolute; inset: 0 0 auto; z-index: 0; pointer-events: none; }
.chf-szene canvas { display: block; width: 100%; height: 100%; }

/* Innen so breit wie die Seite (--maxw aus start-hell.css), Flaeche randlos. */
.chf-kopf-innen, .chf-boden-innen { box-sizing: border-box; max-width: calc(var(--maxw, 1440px) + 2 * clamp(24px, 4vw, 64px)); margin-inline: auto; }

/* ---------- Kopf: Satz und Knopf über dem Land ---------- */
.chf-kopf { position: relative; z-index: 1; }
.chf-kopf-innen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  column-gap: 64px;
  align-items: end;
  padding: clamp(64px, 7vw, 104px) clamp(24px, 4vw, 64px) 0;
}
.chf-titel {
  margin: 0;
  font-family: Outfit, sans-serif;
  font-weight: 500;
  font-size: clamp(40px, 4.6vw, 66px);
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--ink, #17102B);
}
.chf-zeile { display: block; white-space: nowrap; }
/* Wörter steigen aus einer Maske. Unten Luft für Unterlängen. */
.chf-w { display: inline-block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; vertical-align: top; }
.chf-w > span { display: inline-block; transform: translateY(108%); transition: transform 900ms var(--chf-ease) calc(var(--d, 0) * 1ms); }
.chf-an .chf-w > span { transform: none; }
/* Akzent: violett und von links eingeschrieben. */
.chf-akzent > span { color: var(--chf-akzent); clip-path: inset(-10% 100% -20% 0); transition: transform 900ms var(--chf-ease) calc(var(--d, 0) * 1ms), clip-path 1100ms cubic-bezier(.65, 0, .35, 1) calc((var(--d, 0) + 160) * 1ms); }
.chf-an .chf-akzent > span { clip-path: inset(-10% -4% -20% 0); }

.chf-seite { padding-bottom: 6px; }
.chf-sub { margin: 0 0 24px; font-size: 18px; line-height: 1.45; color: var(--ink-2, #4B4459); }

/* Knopf im Stil von btn-primaer: 10px Radius, Pfeil tauscht, Kreis füllt vom Zeiger aus. */
.chf-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 14px 0 22px;
  border-radius: var(--r-knopf, 10px);
  background: var(--chf-akzent);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(23, 16, 43, .16), 0 14px 30px -14px rgba(108, 43, 242, .55);
}
.chf-cta::before {
  content: "";
  position: absolute;
  left: var(--mx, 50%);
  top: var(--my, 50%);
  z-index: -1;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: var(--chf-akzent-hover);
  transform: scale(0);
  transition: transform 500ms var(--chf-ease);
}
.chf-cta:hover::before, .chf-cta:focus-visible::before { transform: scale(1); }
.chf-cta:focus-visible { outline: 2px solid var(--chf-akzent); outline-offset: 3px; }
.chf-pfeil { position: relative; display: inline-grid; width: 28px; height: 28px; border-radius: 7px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.chf-pfeil svg { grid-area: 1 / 1; place-self: center; width: 16px; height: 16px; transition: transform 420ms var(--chf-ease); }
.chf-pfeil svg + svg { transform: translateX(-28px); }
.chf-cta:hover .chf-pfeil svg:first-child { transform: translateX(28px); }
.chf-cta:hover .chf-pfeil svg + svg { transform: none; }

/* Platz für Wortmarke und Kämme, gemalt im Canvas. */
.chf-land { height: var(--chf-land); }

/* ---------- Boden: Links auf dem dunklen Grund ---------- */
.chf-boden-innen { position: relative; z-index: 1; padding: 8px clamp(24px, 4vw, 64px) 36px; }
.chf-strich { display: block; height: 1px; margin-bottom: 44px; background: linear-gradient(90deg, rgba(233, 226, 251, 0), rgba(233, 226, 251, .28) 20%, rgba(233, 226, 251, .28) 80%, rgba(233, 226, 251, 0)); transform: scaleX(0); transition: transform 1400ms var(--chf-ease) 900ms; }
.chf-an .chf-strich { transform: none; }

.chf-raster { display: grid; grid-template-columns: 1.3fr repeat(5, minmax(0, 1fr)); gap: 36px 24px; }

.chf-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.chf-logo-mark { display: flex; align-items: center; }
.chf-logo-mark i { display: block; width: 24px; height: 24px; border-radius: 999px; background: var(--chf-akzent); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.chf-logo-mark i + i { background: var(--accent-soft, #C0A5FB); margin-left: -9px; }
.chf-logo-type { font-family: Outfit, sans-serif; font-weight: 600; font-size: 20px; letter-spacing: -.035em; }
.chf-logo-type b { font-weight: 600; color: var(--accent-soft, #C0A5FB); }
.chf-marke p { margin: 14px 0 0; max-width: 250px; font-size: 14px; line-height: 1.55; color: var(--chf-leise); }

.chf-made { margin-top: 22px; }
.chf-made-kachel { display: inline-flex; flex-direction: column; gap: 2px; padding: 14px 18px; border: 1px solid var(--chf-linie); border-radius: 12px; background: rgba(255, 255, 255, .05); }
.chf-made-zeile { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--chf-leise); }
.chf-flagge { width: 28px; height: 18px; flex: none; border-radius: 3px; }
.chf-made-kachel strong { font-family: Outfit, sans-serif; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.chf-made-text { margin-top: 10px; font-size: 13px; color: var(--chf-leise); }
.chf-app { display: flex; margin-top: 18px; }
.chf-app a { display: inline-flex; border-radius: 8px; }
.chf-app img { display: block; height: 40px; width: auto; }

.chf-spalte h2 { margin: 0 0 12px; font-family: Manrope, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.chf-spalte a { display: flex; align-items: center; gap: 8px; padding: 5px 0; color: var(--chf-text); text-decoration: none; transition: color 160ms var(--chf-ease); }
.chf-spalte a:hover { color: #fff; }
.chf-spalte a:hover span { background-size: 100% 1px; }
.chf-spalte a span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 350ms var(--chf-ease); }
.chf-spalte svg { width: 15px; height: 15px; flex: none; color: color-mix(in srgb, var(--f, var(--accent-soft)) 45%, #fff); }

.chf-unten { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--chf-linie); font-size: 13.5px; }
.chf-recht { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.chf-recht a, .chf-recht button { padding: 0; border: 0; background: none; font: inherit; color: var(--chf-leise); text-decoration: none; cursor: pointer; }
.chf-recht a:hover, .chf-recht button:hover { color: #fff; }
.chf-rechts { display: flex; align-items: center; gap: 10px; }
.chf-sozial { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--chf-linie); border-radius: var(--r-knopf, 10px); color: var(--chf-text); background: rgba(255, 255, 255, .04); transition: color 160ms, border-color 160ms, background-color 160ms; }
.chf-sozial:hover { color: #fff; border-color: rgba(233, 226, 251, .32); background: rgba(255, 255, 255, .08); }
.chf-sozial svg { width: 16px; height: 16px; }
.chf-mail { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--chf-linie); border-radius: var(--r-knopf, 10px); background: rgba(255, 255, 255, .04); font-weight: 500; color: #fff; text-decoration: none; }
.chf-mail:hover { border-color: rgba(233, 226, 251, .32); }
.chf-mail svg { width: 15px; height: 15px; color: var(--chf-leise); }
.chf-copy { width: 100%; margin: 0; color: var(--chf-leise); opacity: .8; }

/* Einzelteile steigen gestaffelt auf. */
.chf-r { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--chf-ease) calc(var(--d, 0) * 1ms), transform 900ms var(--chf-ease) calc(var(--d, 0) * 1ms); }
.chf-an .chf-r { opacity: 1; transform: none; }

/* ---------- Schmale Fenster ---------- */
@media (max-width: 1100px) {
  .chf-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chf-marke { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .chf-kopf-innen { grid-template-columns: 1fr; row-gap: 24px; }
}
@media (max-width: 620px) {
  .chf { --chf-land: clamp(250px, 72vw, 320px); width: calc(100% - 16px); border-radius: 24px 24px 0 0; }
  .chf-kopf-innen { padding: 56px 20px 0; }
  .chf-titel { font-size: clamp(34px, 9.6vw, 40px); }
  .chf-sub { font-size: 16.5px; margin-bottom: 20px; }
  .chf-cta { width: 100%; justify-content: space-between; }
  .chf-boden-innen { padding: 4px 20px 28px; }
  .chf-strich { margin-bottom: 32px; }
  .chf-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .chf-unten { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .chf-w > span, .chf-r, .chf-strich, .chf-akzent > span { transition: none !important; }
  .chf-cta::before, .chf-pfeil svg { transition: none; }
}

/* New logo (16.11.2026): the whole lockup is one image, the designer's file.
   Mark and lettering stay in the markup: next to the lettering the mark is
   hidden, the lettering element carries the image and scales with its font
   size. A mark that stands alone shows the new mark. */
.logo > .logo-mark, .chf-logo > .chf-logo-mark { display: none !important; }
.logo-type, .chf-logo-type {
  display: inline-block; flex: none; height: 1.24em; aspect-ratio: 1000 / 151.59;
  background: url(/assets/logo/closinghub-lockup.svg?v=2) left center / contain no-repeat;
  color: transparent !important; overflow: hidden; white-space: nowrap; user-select: none;
}
.logo-type b, .chf-logo-type b { color: transparent !important; }
/* On dark ground the lettering is white. */
.footer-brand .logo-type, body.startseite .site-head:not(.is-stuck) .logo-type, .chf-logo-type {
  background-image: url(/assets/logo/closinghub-lockup-dunkel.svg?v=2);
}
.logo-mark i, .chf-logo-mark i {
  width: auto !important; aspect-ratio: 400 / 284.55; border-radius: 0 !important; border: 0 !important; box-shadow: none !important;
  background: url(/assets/logo/closinghub-mark.svg?v=2) center / contain no-repeat !important;
}
.logo-mark i + i, .chf-logo-mark i + i { display: none !important; }
.vg-preis-wir .logo-mark i { background: url(/assets/logo/closinghub-mark-weiss.svg?v=2) center / contain no-repeat !important; }
