/* =========================================================
   PREMIUM SYSTEM – Spacing + Elite Typography (add-on)
   Lädt NACH /css/premium-typography.css
   Ziel: ruhige Boutique-Anmutung durch konsistente Abstände (8px)
   und Editorial-Typografie – ohne Textänderung.
   ========================================================= */

/* ===== Boutique Spacing Scale (8px-System) ===== */
:root{
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;
}

/* ===== Section Rhythm ===== */
.section{
  padding: var(--space-6) 0;
}

.hero{
  padding: var(--space-7) 0 var(--space-5);
}

/* große Trenner / Linien brauchen Luft */
.rule{
  margin: var(--space-6) 0;
}

/* ===== Cards (wenn vorhanden) ===== */
.card{
  padding: var(--space-5);
}

/* ===== Textabstände (kontrolliert, nicht aufgeblasen) ===== */
.section p,
.card p{
  margin: 0 0 var(--space-3);
}

.section h2,
.section h3,
.card h2,
.card h3{
  margin-bottom: var(--space-2);
}

/* ===== Elite Typography Override (ohne Layout-Farbänderungen) ===== */
html{
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}

body{
  letter-spacing: -0.005em;
}

/* Lesebreite editorial (nur in Content-Bereichen) */
.section p,
.section .lead,
.card p,
.card .lead,
.note{
  max-width: 60ch;
}

/* Headline Spannung (Serif bleibt aus premium-typography.css) */
h1{
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.03;
  margin-bottom: var(--space-3);
}

.section h2,
.card h2{
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.14;
}

/* Lead: ruhiger, institutioneller */
.lead{
  line-height: 1.85;
  letter-spacing: -0.004em;
  color: rgba(17,17,17,.82);
}

/* Fließtext: Premium-Luft */
.section p,
.card p{
  font-size: 17px;
  line-height: 1.95;
  letter-spacing: -0.002em;
}

/* Letzter Absatz sauber */
.section p:last-child,
.card p:last-child{
  margin-bottom: 0;
}

/* Kleine Texte */
.note{
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0;
  color: rgba(17,17,17,.62);
}

/* Silbentrennung nur in Fließtextbereichen */
.section p,
.card p,
.lead{
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: normal;
}

/* Responsive Feinschliff */
@media (max-width: 768px){
  .hero{ padding: calc(var(--space-7) - var(--space-2)) 0 var(--space-4); }
  .section{ padding: var(--space-5) 0; }
  .card{ padding: var(--space-4); }
  .section p, .card p{ font-size: 16.5px; line-height: 1.9; }
}
