/* =========================================================
   Hehn Immobilien – Übergangsseite
   Tokens: Typo fluid 393–1440px (clamp), Farben als Variablen.
   Farben unten 1:1 durch die Werte aus Webflow ersetzen.
   ========================================================= */

@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Farben – hier Webflow-Werte eintragen */
  --color-dark: #1d2b33;
  --color-dark-soft: #2a3a43;
  --color-light: #eceeec;
  --color-paper: #ffffff;
  --color-text: #1d2b33;
  --color-text-muted: #5b6970;
  --color-on-dark: #ffffff;
  --color-on-dark-muted: rgba(255, 255, 255, 0.64);
  --color-line: rgba(29, 43, 51, 0.14);
  --color-line-on-dark: rgba(255, 255, 255, 0.18);

  /* Typo – fluid 393 → 1440px */
  --font-body: clamp(1rem, 0.953rem + 0.191vw, 1.125rem);          /* 16 → 18 */
  --font-small: clamp(0.875rem, 0.852rem + 0.096vw, 0.9375rem);    /* 14 → 15 */
  --font-h1: clamp(2.5rem, 1.374rem + 4.585vw, 5.5rem);            /* 40 → 88 */
  --font-h2: clamp(1.375rem, 1.187rem + 0.764vw, 1.875rem);        /* 22 → 30 */
  --font-contact: clamp(1.375rem, 0.953rem + 1.719vw, 2.5rem);     /* 22 → 40 */

  /* Spacing – fluid */
  --space-page: clamp(1.25rem, 0.218rem + 4.202vw, 4rem);          /* 20 → 64 */
  --space-section: clamp(3rem, 1.874rem + 4.585vw, 6rem);          /* 48 → 96 */
  --space-s: clamp(0.75rem, 0.656rem + 0.382vw, 1rem);
  --space-m: clamp(1.25rem, 1.062rem + 0.764vw, 1.75rem);

  --container-max: 1640px;
  --copy-max: 68ch;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--font-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-light);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  hyphens: auto;
  -webkit-hyphens: auto;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-page);
}

/* Link-Underline: --on/--off-Muster, transform-origin fix */
.link {
  color: inherit;
  text-decoration: none;
  position: relative;
  display: inline-block;
}
.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.12em;
  height: 1px;
  background: currentColor;
  transform: scaleX(var(--line, 1));
  transform-origin: 0% 100%;
  transition: transform 0.45s var(--ease);
}
.link--reveal { --line: 0; }
.link:hover, .link:focus-visible { --line: 0; }
.link--reveal:hover, .link--reveal:focus-visible { --line: 1; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- Header ---------- */
.site-header {
  padding-block: var(--space-m);
}
.logo {
  display: inline-block;
  color: var(--color-on-dark);
  text-decoration: none;
}
.logo img { height: clamp(2.5rem, 2.03rem + 1.91vw, 3.75rem); width: auto; }
.logo-fallback {
  font-weight: 700;
  font-size: var(--font-h2);
  letter-spacing: -0.01em;
}

/* ---------- Startseite ---------- */
.stage {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--color-dark);
  color: var(--color-on-dark);
}
.stage-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: var(--space-section);
}
.stage h1 {
  font-size: var(--font-h1);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-m);
  max-width: 14ch;
}
.stage-lead {
  color: var(--color-on-dark-muted);
  max-width: 44ch;
  margin: 0 0 var(--space-section);
}
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s) clamp(2rem, 1.06rem + 3.82vw, 4.5rem);
  font-size: var(--font-contact);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.contact .link::after { background: var(--color-line-on-dark); height: 2px; }
.contact .link:hover::after,
.contact .link:focus-visible::after { background: var(--color-on-dark); }

.site-footer {
  border-top: 1px solid var(--color-line-on-dark);
  padding-block: var(--space-m);
  font-size: var(--font-small);
  color: var(--color-on-dark-muted);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-s) var(--space-m);
}
.site-footer nav { display: flex; gap: var(--space-m); }
.site-footer a { color: var(--color-on-dark); }

/* ---------- Rechtstexte ---------- */
.legal-head {
  background: var(--color-dark);
  color: var(--color-on-dark);
}
.legal-head .site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-m);
}
.legal-head .back { font-size: var(--font-small); }
.legal-head h1 {
  font-size: var(--font-h1);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  padding-block: var(--space-section) var(--space-m);
}

.legal {
  background: var(--color-paper);
  padding-block: var(--space-section);
}
.legal-body { max-width: var(--copy-max); }
.legal h2 {
  font-size: var(--font-h2);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: var(--space-section) 0 var(--space-s);
}
.legal h2:first-child { margin-top: 0; }
.legal h3 {
  font-size: var(--font-body);
  font-weight: 700;
  margin: var(--space-m) 0 0.25em;
}
.legal p, .legal ul { margin: 0 0 1em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.35em; }
.legal a { color: var(--color-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.legal address { font-style: normal; margin: 0 0 1em; }
.legal .meta { color: var(--color-text-muted); font-size: var(--font-small); margin-top: var(--space-section); }
.legal-foot { background: var(--color-dark); }

@media (prefers-reduced-motion: reduce) {
  .link::after { transition: none; }
}
