/* ============================================================
   base.css — Reset, Schrift (@font-face self-hosted), Basis-Typo
   DSGVO: Schriften self-hosted (KEIN Google-CDN, LG München 2022).
   Hinweis: WOFF2-Binärdateien gehören nach /assets/fonts/ (siehe README).
   Solange sie fehlen, greifen die hochwertigen Fallbacks (Georgia / system-ui).
   ============================================================ */

/* --- Self-hosted Schriften (font-display: swap) --- */
@font-face {
  font-family: "Playfair Display";
  font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/playfair-display-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("../fonts/playfair-display-latin-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Smooth-Scroll-Wrapper (lenis-init.js setzt .lenis-Klassen) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--bordeaux); text-decoration: none; }
a:hover { color: var(--bordeaux-deep); }

button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select { font: inherit; color: inherit; }

ul, ol { list-style: none; padding: 0; }

/* --- Headings: Playfair, DE-Komposita-sicher (Anti-Fehler A) --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-head);
  hyphens: none;            /* keine Trennung der Komposita */
  -webkit-hyphens: none;
  letter-spacing: -.01em;
  color: var(--ink-900);
}
h2 { font-size: var(--fs-h2); line-height: var(--lh-head); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { max-width: var(--maxw-text); }

/* Marke nie umbrechen */
.brand-name { white-space: nowrap; }

/* --- Sichtbarer Fokus (Gold-Leitmotiv, a11y) --- */
:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
:focus:not(:focus-visible) { outline: none; }

/* --- Hilfsklassen --- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(-120%);
  top: .5rem; z-index: 999;
  background: var(--ink-900); color: var(--paper);
  padding: .65rem 1.1rem; border-radius: var(--r-pill);
  transition: transform var(--dur-1) var(--ease-out);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); color: var(--paper); }

::selection { background: var(--gold-soft); color: var(--ink-900); }
