/* ==========================================================================
   Basis: Reset, Typografie, Layout-Grundbausteine
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--immo-ink);
  background: var(--immo-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
/* :where() haelt die Spezifitaet bei Null, damit :visited niemals
   Komponenten-Farben (Buttons, Nav etc.) ueberstimmt - sonst faellt
   z.B. ein besuchter .btn--auto-ghost-Link auf die helle Immobilien-
   Tinte zurueck, die auf dunklem Automaten-Gruen kaum lesbar ist. */
a:where(:visited) { color: inherit; }

/* Tracking/Leading bewusst pro Groesse statt eines fixen Werts: grosse
   Displayschrift braucht negatives Tracking und knappere Zeilenhoehe,
   kleinere Ueberschriften bleiben naeher an null (Apple-Typografie-
   Prinzip: beides ist groessenabhaengig, nie ein Einheitswert). */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
}
h1 { font-size: var(--step-4); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); font-weight: 700; line-height: 1.1;  letter-spacing: -0.015em; }
h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.2;  letter-spacing: -0.005em; }
h4 { line-height: 1.25; letter-spacing: 0; }
p  { margin: 0 0 1em; color: var(--immo-ink-soft); max-width: 62ch; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--immo-accent);
  margin-bottom: var(--space-2);
}

/* Sichtbarer Fokus fuer Tastaturbedienung – niemals entfernen */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--immo-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

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

@media (min-width: 61rem) {
  .container { padding-inline: var(--space-4); }
}

.section { padding-block: var(--space-6); }
.section--tight { padding-block: var(--space-5); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -3rem;
  background: var(--immo-ink);
  color: #fff;
  padding: 0.6em 1em;
  border-radius: var(--radius-s);
  z-index: 100;
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: var(--space-2); }
