/* ═══════════════════════════════════════════════════════════════════
   MERKABA CODEX LUX — Basis-Stil (Schrift + Reset + Spacing)
   Version 1.0 · 24. Mai 2026
   ERGAENZT codexlux-vars.css (Farben) — diese beiden zusammen sind
   die EINZIGE Quelle der Wahrheit fuer das visuelle System.
   ═══════════════════════════════════════════════════════════════════

   ENTSCHEIDUNG 24.05.2026 (Jeremia):
   - Georgia (serif) fuer Titel + Headings + Logo
   - Segoe UI (sans-serif) fuer Fliesstext + UI
   - Konsistenz ueber ALLE Seiten (kein Mischen mehr pro Register)
   ═══════════════════════════════════════════════════════════════════ */

@import url('codexlux-vars.css');

:root {

  /* ─── SCHRIFT-FAMILIEN (Doppel-Schrift, kanonisch) ─── */
  --font-heading: Georgia, 'Times New Roman', 'Source Serif Pro', serif;
  --font-body:    'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'SF Mono', Consolas, 'Roboto Mono', monospace;

  /* ─── SCHRIFT-GROESSEN (mobile-first, vh-skaliert) ─── */
  --fs-h1:    clamp(2rem, 5vw, 3.5rem);     /* Hero, Hauptueberschrift */
  --fs-h2:    clamp(1.5rem, 3.5vw, 2.5rem); /* Sektionstitel */
  --fs-h3:    clamp(1.2rem, 2.5vw, 1.75rem);/* Unterabschnitt */
  --fs-h4:    clamp(1.05rem, 2vw, 1.35rem); /* Karten-Titel */
  --fs-body:  clamp(1rem, 1.5vw, 1.125rem); /* Fliesstext */
  --fs-small: 0.875rem;                     /* Metadaten, Labels */
  --fs-tiny:  0.75rem;                      /* Footnote, Caption */

  /* ─── ZEILENHOEHEN (Lesbarkeit zuerst) ─── */
  --lh-tight:   1.2;   /* Headings */
  --lh-normal:  1.55;  /* Fliesstext (Optimum fuer Bildschirm) */
  --lh-relaxed: 1.75;  /* Sehr langer Text, Meditation */

  /* ─── BUCHSTABEN-ABSTAND ─── */
  --ls-heading: -0.01em;  /* leicht enger fuer Georgia */
  --ls-body:    0;        /* Segoe UI normal */
  --ls-small:   0.02em;   /* Labels leicht weiter */

  /* ─── SPACING-SYSTEM (8-Punkt-Raster) ─── */
  --sp-1:  0.25rem;   /*  4px */
  --sp-2:  0.5rem;    /*  8px */
  --sp-3:  0.75rem;   /* 12px */
  --sp-4:  1rem;      /* 16px */
  --sp-5:  1.5rem;    /* 24px */
  --sp-6:  2rem;      /* 32px */
  --sp-7:  3rem;      /* 48px */
  --sp-8:  4rem;      /* 64px */
  --sp-9:  6rem;      /* 96px */

  /* ─── CONTAINER-BREITEN ─── */
  --cw-narrow: 42rem;   /* 672px — Lesetext, Meditation */
  --cw-medium: 64rem;   /* 1024px — Register-Seite */
  --cw-wide:   80rem;   /* 1280px — Hub-Seite */
  --cw-full:   100%;    /* Hero, Galerie */

  /* ─── BORDER-RADIUS ─── */
  --br-sm: 4px;
  --br-md: 8px;
  --br-lg: 16px;
  --br-pill: 999px;

  /* ─── SCHATTEN (subtil, dunkler Hintergrund) ─── */
  --shadow-soft: 0 2px 12px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 24px var(--gold-glow);

  /* ─── ANIMATIONS-TIMING ─── */
  --tx-quick:  150ms cubic-bezier(0.4, 0, 0.2, 1);
  --tx-smooth: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --tx-slow:   600ms cubic-bezier(0.4, 0, 0.2, 1);

  /* ─── Z-INDEX-SKALA ─── */
  --z-base:    1;
  --z-card:    10;
  --z-sticky:  50;
  --z-nav:     100;
  --z-overlay: 500;
  --z-modal:   1000;
  --z-tooltip: 2000;
}

/* ═══════════════════════════════════════════════════════════════════
   BASE RESET (minimal, additiv — bricht keine bestehenden Seiten)
   ═══════════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════════════
   TYPOGRAFIE (Georgia fuer Headings, Segoe UI fuer Text)
   ═══════════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6,
.heading {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-heading);
  color: var(--text);
  margin: 0 0 var(--sp-4);
}

h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: var(--fs-h4); }

p, li, dd, blockquote {
  font-family: var(--font-body);
  margin: 0 0 var(--sp-4);
}

small, .small, .meta {
  font-size: var(--fs-small);
  letter-spacing: var(--ls-small);
  color: var(--muted);
}

code, kbd, pre, samp {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

/* ═══════════════════════════════════════════════════════════════════
   LINKS & INTERAKTIVE ELEMENTE
   ═══════════════════════════════════════════════════════════════════ */

a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--tx-quick), border-color var(--tx-quick);
}
a:hover, a:focus-visible {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}
a:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════════════════
   CONTAINER-UTILS
   ═══════════════════════════════════════════════════════════════════ */

.cw-narrow { max-width: var(--cw-narrow); margin-inline: auto; padding-inline: var(--sp-4); }
.cw-medium { max-width: var(--cw-medium); margin-inline: auto; padding-inline: var(--sp-4); }
.cw-wide   { max-width: var(--cw-wide);   margin-inline: auto; padding-inline: var(--sp-4); }

/* ═══════════════════════════════════════════════════════════════════
   ACCESSIBILITY (reduce-motion, hoher Kontrast, sr-only)
   ═══════════════════════════════════════════════════════════════════ */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   HOW TO USE — in jedem HTML im <head>:
   ───────────────────────────────────────────────────────────────────
   <link rel="stylesheet" href="codex-base.css">
   (Pfad relativ anpassen je nach Ordnertiefe.
    codex-base.css importiert codexlux-vars.css automatisch.)
   ═══════════════════════════════════════════════════════════════════ */

/* Feld-Medien (Qigong-Übersichts-Pose je Feld) — Medaillon, nicht volle Breite — 24.06. */
.feld-media{width:100%;max-width:360px;margin:10px auto 26px;border-radius:22px;overflow:hidden;box-shadow:0 14px 48px rgba(0,0,0,.45);border:1px solid rgba(255,255,255,.09);background:#000}
.feld-media video{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover}
