/* Heller Lauritsen — Brand tokens & shared styles */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=DM+Sans:wght@400;500&display=swap');

:root {
  /* Palette */
  --navy: #0E1B2C;
  --navy-deep: #08111C;
  --gold: #C9A961;
  --gold-soft: rgba(201, 169, 97, 0.5);
  --gold-line: rgba(201, 169, 97, 0.35);
  --bone: #F5F1E8;
  --cream: #FAF7F0;
  --ink-1: #2A2A2A;
  --ink-2: #3A3A3A;
  --ink-3: #555555;
  --paper-rule: rgba(42, 42, 42, 0.18);
  --paper-rule-soft: rgba(42, 42, 42, 0.10);
  --night-rule: rgba(245, 241, 232, 0.14);
  --night-rule-soft: rgba(245, 241, 232, 0.08);
  --white-soft: rgba(245, 241, 232, 0.78);

  /* Type */
  --font-display: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
  --font-ui: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Letterspacing scales */
  --ls-headline: -0.008em;
  --ls-caps-tight: 0.18em;
  --ls-caps-mid: 0.32em;
  --ls-caps-wide: 0.42em;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ───────── primitives ───────── */

.cap {
  font-family: var(--font-ui);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-caps-mid);
  font-size: 11px;
  line-height: 1;
}
.cap-tight { letter-spacing: var(--ls-caps-tight); }
.cap-wide  { letter-spacing: var(--ls-caps-wide); }

.serif {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--ls-headline);
}
.serif-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.rule-gold {
  height: 0;
  border: 0;
  border-top: 0.5px solid var(--gold);
  margin: 0;
}
.rule-paper {
  height: 0;
  border: 0;
  border-top: 1px solid var(--paper-rule);
  margin: 0;
}

/* CTA — outline gold, both light & dark */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 26px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: var(--font-ui);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-caps-mid);
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}
.cta:hover { background: var(--gold); color: var(--navy); }
.cta .arrow { font-family: var(--font-display); font-style: italic; font-size: 16px; letter-spacing: 0; }

/* ───────── nav ───────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  background: var(--navy);
  border-bottom: 1px solid var(--night-rule-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  color: var(--bone);
}
.nav-left { display: flex; align-items: center; gap: 18px; }
.nav-mark {
  width: 36px; height: 36px;
  border: 0.8px solid var(--gold);
  position: relative;
}
.nav-mark .h, .nav-mark .l {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1;
}
.nav-mark .h { color: var(--gold); transform: translateX(-3px); }
.nav-mark .l { color: var(--bone); opacity: 0.92; transform: translateX(3px); }
.nav-wordmark {
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: 0.28em;
  font-size: 14px;
  color: var(--bone);
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  color: var(--bone);
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-caps-tight);
  font-size: 11px;
  opacity: 0.78;
  transition: opacity 150ms ease, color 150ms ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { color: var(--gold); opacity: 1; }

/* ───────── footer ───────── */

.footer {
  background: var(--navy-deep);
  color: var(--bone);
  padding: 38px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--night-rule-soft);
}
.footer .left, .footer .right {
  font-family: var(--font-ui);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-caps-tight);
  font-size: 10px;
  opacity: 0.4;
}
.footer .right a { color: inherit; text-decoration: none; margin-left: 24px; }

/* ───────── shared section atoms ───────── */

.section-marker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-ui);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-caps-wide);
  font-size: 11px;
  color: var(--gold);
}
.section-marker::before, .section-marker::after {
  content: '';
  width: 28px;
  height: 0.5px;
  background: var(--gold);
  opacity: 0.7;
}

.eyebrow-gold {
  font-family: var(--font-ui);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-caps-wide);
  font-size: 11px;
  color: var(--gold);
}

.body-paper {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}
.body-night {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: var(--white-soft);
}

.h-display-xl {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: var(--ls-headline);
}
.h-display-l {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 46px;
  line-height: 1.15;
  letter-spacing: var(--ls-headline);
}
.h-display-m {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: var(--ls-headline);
}

/* numbering — large italic */
.numeral {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  font-size: 38px;
  line-height: 1;
}

/* ─────────────────────────────────────────────────────────────
   MOBILE OVERRIDES — alle inline-style Layouts werden hier
   für Viewport ≤ 880px responsive umgebogen.
   Aggressive attribute-selectors weil JSX inline-styles nutzt.
   ───────────────────────────────────────────────────────────── */

@media (max-width: 880px) {
  /* Body: kein min-width, horizontal scroll vermeiden */
  html, body { overflow-x: hidden !important; }

  /* ─── Sections: Padding aggressiv reduzieren ─── */
  section[style] {
    padding: 64px 22px !important;
  }

  /* Erste Section (Hero) bekommt etwas mehr top */
  section:first-of-type[style] {
    padding-top: 80px !important;
  }

  /* ─── Header / NavBar ─── */
  header[style] {
    padding: 0 22px !important;
    height: auto !important;
    min-height: 64px;
    flex-wrap: wrap !important;
    gap: 12px 16px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  header nav {
    gap: 18px !important;
    flex-wrap: wrap !important;
    width: 100%;
    justify-content: flex-start !important;
  }
  header nav a {
    font-size: 10px !important;
    letter-spacing: 0.14em !important;
  }

  /* ─── Footer 4-cols → 1-col ─── */
  footer[style] {
    padding: 36px 22px !important;
  }
  footer > div[style*="1.4fr"],
  footer > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  /* Footer-Bottom-Bar (Disclaimer + Copyright) auch stacken */
  footer [style*="justify-content: space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  /* ─── Container max-width ─── */
  /* Stay implicit at 100% via section padding */

  /* ─── Hero-Villa-Illustration verstecken (zu groß für Mobile) ─── */
  div[aria-hidden="true"][style*="width: 620px"],
  div[aria-hidden="true"][style*="width:620px"] {
    display: none !important;
  }
  /* Hairline-Grid-Background dezenter machen */
  div[aria-hidden="true"][style*="background-size: 160px"] {
    background-size: 80px 100% !important;
    opacity: 0.7;
  }

  /* ─── Grid-Layouts: alle multi-col → single col ─── */
  div[style*="repeat(4, 1fr)"],
  div[style*="repeat(3, 1fr)"],
  div[style*="repeat(2, 1fr)"],
  div[style*="grid-template-columns: 1fr 1.3fr"],
  div[style*="grid-template-columns:'1fr 1.3fr'"],
  div[style*="grid-template-columns: 1fr 1.4fr"],
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="1fr 1fr"],
  div[style*="200px 1fr"],
  div[style*="120px 1fr 200px"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* ─── KV-grid (Impressum/Datenschutz) ─── */
  div[style*="200px 1fr"][style*="grid"] {
    grid-template-columns: 1fr !important;
    gap: 4px 0 !important;
    padding: 14px 0 !important;
  }

  /* ─── Vergleichstabelle: 1.2fr 1fr 1fr → stacked ─── */
  div[style*="1.2fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Tabellen-Cells bekommen Top-Border statt Right-Border auf Mobile */
  div[style*="1.2fr 1fr 1fr"] > div[style] {
    border-right: 0 !important;
    border-top: 0.5px solid rgba(42,42,42,0.15) !important;
    padding: 14px 18px !important;
  }

  /* ─── Headline-Skalierung ─── */
  h1[style] { font-size: 34px !important; line-height: 1.18 !important; }
  h2[style] { font-size: 26px !important; line-height: 1.22 !important; }
  h3[style] { font-size: 21px !important; line-height: 1.28 !important; }

  /* Body-text auf Mobile minimal kleiner */
  p[style] { font-size: 14.5px !important; line-height: 1.7 !important; }

  /* Italic-Quotes nicht zu groß */
  p[style*="font-style"][style*="font-size: 26"],
  p[style*="font-style"][style*="font-size: 24"],
  p[style*="font-style"][style*="font-size: 22"] {
    font-size: 18px !important;
  }

  /* ─── Hero-Tagline-Caption oberhalb des H1 (Palma · Hannover · Vaduz) ─── */
  div[style*="letter-spacing: 0.42em"] {
    letter-spacing: 0.28em !important;
    font-size: 9.5px !important;
  }

  /* ─── Footer-Wordmark auf Mobile kleiner ─── */
  footer div[style*="letter-spacing: 0.30em"] {
    font-size: 16px !important;
    letter-spacing: 0.22em !important;
  }

  /* ─── Anfrage-Form: Form-Container Padding reduzieren ─── */
  form[style] {
    padding: 36px 22px !important;
  }
  /* Chips kleiner + flexibler */
  form label[style*="letter-spacing"] {
    font-size: 12.5px !important;
    padding: 9px 14px !important;
  }

  /* ─── Submit-Button ─── */
  button[type="submit"][style] {
    padding: 16px 20px !important;
    font-size: 11px !important;
    letter-spacing: 0.22em !important;
  }

  /* ─── Founder-Bild: aspect bleibt 4:3 aber max-height limitieren ─── */
  div[style*="aspect-ratio: '4 / 3'"],
  div[style*="aspect-ratio:'4 / 3'"] {
    max-height: 480px;
  }

  /* ─── Cal.com Embed: minimale Höhe + scroll ─── */
  #hl-cal-inline,
  .calendly-inline-widget {
    min-height: 700px !important;
    height: 700px !important;
  }

  /* ─── CTA-Buttons / Links auf Mobile ─── */
  a[style*="letter-spacing: 0.32em"] {
    letter-spacing: 0.22em !important;
    font-size: 10.5px !important;
    padding: 14px 20px !important;
  }

  /* ─── Editorial Marker bleiben aber kleiner ─── */
  span[style*="letter-spacing: 0.42em"] {
    letter-spacing: 0.28em !important;
    font-size: 10px !important;
  }

  /* ─── Bullets in Datenschutz ─── */
  ul[style*="paddingLeft"] { padding-left: 18px !important; }

  /* ─── Bio-Portrait-Block (Über uns) ─── */
  article[style] {
    padding: 0 !important;
  }

  /* ─── Quote Strip (Mandat / Anmerkung) ─── */
  div[style*="200px 1fr"] > div:first-child {
    margin-bottom: 8px !important;
  }
}

/* Sehr kleine Phones (≤ 480px) — extra Tightening */
@media (max-width: 480px) {
  section[style] {
    padding: 56px 18px !important;
  }
  h1[style] { font-size: 30px !important; }
  h2[style] { font-size: 23px !important; }
  form[style] {
    padding: 28px 18px !important;
  }
  header[style] {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  footer[style] {
    padding: 32px 18px !important;
  }
}
