/* ========================================================================
   Randori-Pro · Colors & Type
   Source: CI Foundation Document v3.1 (Mai 2026)
   ======================================================================== */

/* ── Schriften ─────────────────────────────────────────────────────────────
   Liegen unter public/fonts/ und kommen von unserem eigenen Server. Früher
   holte ein @import sie von fonts.googleapis.com — damit ging die IP-Adresse
   jedes Besuchers an Google, ohne Einwilligung (LG München, 20.01.2022), und
   der Browser musste dreimal hintereinander nachfragen, bevor Text erschien.

   Nur latin und latin-ext. Alle Familien stehen unter der SIL Open Font
   License, die das Selbst-Ausliefern erlaubt.

   Nicht per Hand ergänzen — scripts/schriften-holen.mjs erneut laufen lassen.
   ─────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/jakarta-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/jakarta-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/source-serif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/source-serif-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/source-serif-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/source-serif-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ── Corporate Anker · drei Rot-Stufen ─────────────── */
  --rp-rot-anker:   #6D1723;  /* Brand-Anker, Titel, Markenfläche */
  --rp-rot-mid:     #AA1A1D;  /* Header, Borders, sekundärer Anker */
  --rp-rot-akzent:  #DC0D1D;  /* CTAs, Highlights, Energy */

  /* Kompat-Aliase auf die alten Namen */
  --rp-weinrot:      var(--rp-rot-anker);
  --rp-weinrot-deep: #4f1019;
  --rp-hellrot:      var(--rp-rot-akzent);

  /* ── Bühne · Hauptflächen ──────────────────────────── */
  --rp-white:        #ffffff;  /* Page-Default */
  --rp-beige:        #D4C9B5;  /* Hintergrund warm, Sekundärfläche */
  --rp-beige-deep:   #ede4d2;  /* tiefe Sekundärfläche */

  /* ── Body-Text & Hervorhebung ──────────────────────── */
  --rp-grau-7012:    #575E62;  /* Default-Body-Farbe (RAL 7012) */
  --rp-tiefschwarz:  #1A1414;  /* Zusatz: Hervorhebung, dunkles Layout */

  /* ── Sekundäre Neutrals ────────────────────────────── */
  --rp-grau-muted:   #8A8E91;  /* Captions, Meta */
  --rp-warmgrau:     #6B6360;  /* legacy alias */

  /* ── Bühne · ergänzende Töne (Entscheidung offen) ──── */
  --rp-greige:       #D5CFC2;  /* provisorisch */
  --rp-grau:         #8E8E8E;  /* Equipment-Bezug, provisorisch */

  /* ── Borders ──────────────────────────────────────── */
  --rp-border:       #D4C9B5;  /* warm border = Beige */
  --rp-border-soft:  #E8E5DD;

  /* ── Sepia palette (image treatment) ──────────────── */
  --rp-sepia-hi:     #D6CCB5;
  --rp-sepia-mid:    #918878;
  --rp-sepia-shadow: #2D2E27;

  /* ── Funktional ────────────────────────────────────── */
  --rp-success:      #2E5E3E;  /* Tannengrün */
  --rp-warning:      #B45F0E;  /* Bernstein  */
  --rp-info:         #2E587D;  /* Stahlblau  */
  --rp-error:        var(--rp-rot-akzent);

  /* ── Pending state ─────────────────────────────────── */
  --rp-pending-bg:     #fff7e6;
  --rp-pending-border: #d4a74a;

  /* ── Semantic foreground / background aliases ──────── */
  --fg-1:        var(--rp-grau-7012);     /* default body */
  --fg-strong:   var(--rp-tiefschwarz);   /* strong, em, prominent */
  --fg-2:        var(--rp-grau-muted);    /* meta, secondary */
  --fg-muted:    var(--rp-grau-muted);    /* alias */
  --fg-anchor:   var(--rp-rot-anker);     /* brand anchor */
  --fg-accent:   var(--rp-rot-akzent);    /* CTA / accent */
  --bg-1:        var(--rp-white);         /* page default */
  --bg-2:        var(--rp-beige);         /* warm secondary */
  --bg-3:        var(--rp-beige-deep);    /* deeper secondary */
  --bg-card:     var(--rp-white);
  --bg-dark:     var(--rp-tiefschwarz);
  --line:        var(--rp-border-soft);
  --line-warm:   var(--rp-border);

  /* ── Typography families ───────────────────────────── */
  --font-display: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif:   "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* ── Type scale (modular 1.250) ────────────────────── */
  --fs-display-l: 56px;  /* Hero, Eventnamen     · Geist 300 */
  --fs-display-m: 38px;  /* Section title         · Geist 350 */
  --fs-display-s: 28px;  /* Sub-headline          · Geist 500 */
  --fs-pull:      32px;  /* Markenversprechen     · Source Serif */
  --fs-body-l:    20px;  /* Lede                  · PJS 400 */
  --fs-body-r:    17px;  /* Standard body         · PJS 400 */
  --fs-body-s:    14px;  /* Caption / meta        · PJS 400 */
  --fs-eyebrow:   12px;  /* Uppercase eyebrows    · PJS 600  */

  /* ── Spacing · 8px grid ────────────────────────────── */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  48px;
  --sp-8:  64px;
  --sp-9:  96px;

  /* ── Radii ─────────────────────────────────────────── */
  --r-button: 4px;
  --r-input:  4px;
  --r-card:   2px;
  --r-pill:   999px;

  /* ── Shadows · sparingly used ──────────────────────── */
  --shadow-sm: 0 1px 2px rgba(26, 20, 20, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 20, 20, 0.08);
  --shadow-lg: 0 12px 32px rgba(26, 20, 20, 0.10);

  /* ── Motion ────────────────────────────────────────── */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast:   140ms;
  --dur-normal: 220ms;
}

/* ========================================================================
   Semantic typography roles
   ======================================================================== */

.rp-h1, h1.rp {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--fg-anchor);
  margin: 0 0 var(--sp-4);
}

.rp-h2, h2.rp {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg-anchor);
  margin: 0 0 var(--sp-4);
}

.rp-h3, h3.rp {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fg-strong);
  margin: 0 0 var(--sp-3);
}

.rp-eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-anchor);
}

.rp-pull, blockquote.rp {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-pull);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--fg-anchor);
  border-left: 3px solid var(--fg-anchor);
  padding-left: var(--sp-4);
  margin: var(--sp-6) 0;
}

.rp-lede {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 400;
  color: var(--fg-strong);
}

.rp-body {
  font-family: var(--font-body);
  font-size: var(--fs-body-r);
  line-height: 1.65;
  color: var(--fg-1);
}

.rp-meta {
  font-family: var(--font-body);
  font-size: var(--fs-body-s);
  color: var(--fg-2);
}

.rp-mono { font-family: var(--font-mono); font-size: 0.85rem; }

.rp-kanji {
  font-family: var(--font-display);
  color: var(--fg-anchor);
  font-weight: 400;
}

/* ========================================================================
   Body-Text-Regel (v3.1)
   Default Body in RAL 7012; Tiefschwarz nur für Hervorhebungen oder dunkle
   Layouts. Auf Beige-Flächen Body-Text in Tiefschwarz setzen, sonst zu weich.
   ======================================================================== */

.rp-on-beige { background: var(--bg-2); color: var(--fg-strong); }
.rp-on-beige .rp-body { color: var(--fg-strong); }
.rp-on-dark { background: var(--bg-dark); color: var(--rp-white); }
.rp-on-dark .rp-body { color: var(--rp-white); }
