/* ═══════════════════════════════════════════════════════════════
   Wortlvst · Base
   Fonts, Reset, globale Typografie, A11y-Helfer, Utilities.
   Keine Komponenten- oder Layout-Regeln.
   ═══════════════════════════════════════════════════════════════ */

/* ── Selbst gehostete Fonts (DSGVO: keine Third-Party-Requests) ── */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/playfair-display-normal-500-700.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/playfair-display-italic-500-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-normal-100-900.woff2") format("woff2");
}

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

html {
  color-scheme: dark;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100dvh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* [hidden] muss jede display-Deklaration einer Komponente schlagen. */
[hidden] {
  display: none !important;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

a {
  color: var(--color-rose-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

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

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: var(--leading-tight);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--color-rose-deep);
  color: var(--color-text);
}

/* ── Fokus: sichtbar, konsistent, nur bei Tastatur ── */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── A11y-Helfer ── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.6em 1.1em;
  background: var(--color-rose);
  color: var(--color-on-rose);
  font-weight: 600;
  border-radius: var(--radius-pill);
  transform: translateY(-300%);
}

.skip-link:focus {
  transform: none;
}

/* ── SVG-Sprite & Icons ── */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── Utilities ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.u-serif {
  font-family: var(--font-display);
  font-weight: 600;
}

.u-serif-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

.u-accent {
  color: var(--color-rose);
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-rose);
  margin-bottom: var(--space-3);
}

/* ── Scroll-Reveal (Progressive Enhancement) ──
   Ohne JS bleibt alles sichtbar; .reveal wird erst durch JS scharfgeschaltet. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── NoScript-Hinweis ── */
.noscript-note {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 300;
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-line-strong);
  text-align: center;
  font-size: var(--text-sm);
}
