/* ==========================================================================
   Plapperegg Design System — colors_and_type.css
   Drop this file in and the design tokens are available globally.
   Pair with Google Fonts: Quicksand & Nunito.
   ========================================================================== */

/* Brand typography — modern, fresh pairing.
   Bricolage Grotesque = display / headlines (variable grotesque with character).
   Plus Jakarta Sans = body (friendly modern geometric sans).
   Both loaded from Google Fonts.
   Legacy TTFs (Caviar Dreams, Source Sans Pro) remain in fonts/ as historical reference. */
/* Schriften selbst gehostet (Oktober 2026): kein Abruf bei Google mehr, schneller
   und datenschutzfreundlicher. Nunito und Source Sans 3 als variable WOFF2, nur
   Latein + Latein-Erweiterung, Gewichte 400–700. Lizenz: SIL OFL (assets/fonts/OFL-*.txt).
   Bricolage Grotesque / Plus Jakarta Sans werden auf keiner Seite genutzt
   (alle Seiten tragen body.fonts-ruhig) und nicht mehr geladen. */
@font-face{font-family:'Nunito';font-style:normal;font-weight:400 700;font-display:swap;src:url('assets/fonts/nunito-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Nunito';font-style:normal;font-weight:400 700;font-display:swap;src:url('assets/fonts/nunito-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 Sans 3';font-style:normal;font-weight:400 700;font-display:swap;src:url('assets/fonts/source-sans-3-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:400 700;font-display:swap;src:url('assets/fonts/source-sans-3-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}

:root {
  /* ----- Brand pastel palette (from the colour PDF) ----- */
  --c-coral:    #f08168;
  --c-pink:     #f1a8c5;
  --c-green:    #c7d181;
  --c-teal:     #6dc3bf;
  --c-lavender: #a09ccd;
  --c-yellow:   #fbc13e;
  --c-peach:    #fadfd1;

  /* ----- Soft tints (20% over warm paper) — for backgrounds ----- */
  --c-coral-soft:    color-mix(in oklab, var(--c-coral)    22%, var(--c-paper));
  --c-pink-soft:     color-mix(in oklab, var(--c-pink)     22%, var(--c-paper));
  --c-green-soft:    color-mix(in oklab, var(--c-green)    22%, var(--c-paper));
  --c-teal-soft:     color-mix(in oklab, var(--c-teal)     22%, var(--c-paper));
  --c-lavender-soft: color-mix(in oklab, var(--c-lavender) 22%, var(--c-paper));
  --c-yellow-soft:   color-mix(in oklab, var(--c-yellow)   22%, var(--c-paper));
  --c-peach-soft:    color-mix(in oklab, var(--c-peach)    50%, var(--c-paper));

  /* ----- Hover / press shifts (darken in oklch space) ----- */
  --c-coral-hover:    color-mix(in oklab, var(--c-coral)    92%, black);
  --c-pink-hover:     color-mix(in oklab, var(--c-pink)     92%, black);
  --c-green-hover:    color-mix(in oklab, var(--c-green)    92%, black);
  --c-teal-hover:     color-mix(in oklab, var(--c-teal)     92%, black);
  --c-lavender-hover: color-mix(in oklab, var(--c-lavender) 92%, black);
  --c-yellow-hover:   color-mix(in oklab, var(--c-yellow)   92%, black);

  /* ----- Brand neutrals ----- */
  --c-ink:      #263677;  /* official Plapperegg deep navy — primary text on light surfaces */
  --c-ink-2:    #2b2b33;  /* warm near-black — for body copy when navy reads too coloured */
  --c-mute:     #7a7480;
  --c-line:     #ece4dc;
  --c-paper:    #fffaf5;
  --c-paper-2:  #ffffff;

  /* ----- Semantic ----- */
  --c-fg-1: var(--c-ink);
  --c-fg-2: var(--c-mute);
  --c-bg-1: var(--c-paper);
  --c-bg-2: var(--c-paper-2);
  --c-accent: var(--c-lavender);
  /* Akzent-Linkfarbe: dunkleres Teal für WCAG-AA (≥4,5:1 auf Papier und den
     hellen Getönt-Flächen). Teal-Charakter bleibt erhalten. */
  --c-link:   #277572;
  --c-link-hover: color-mix(in oklab, var(--c-lavender) 45%, var(--c-ink));
  --c-focus-ring: color-mix(in oklab, var(--c-lavender) 60%, transparent);

  /* ----- Type ----- */
  --ff-display: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-body:    'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-display: clamp(2.5rem, 4vw + 1rem, 3.5rem);
  --fs-h1:      clamp(2rem, 2.5vw + 1rem, 2.5rem);
  --fs-h2:      1.875rem;
  --fs-h3:      1.375rem;
  --fs-lede:    1.125rem;
  --fs-body:    1rem;
  --fs-sm:      0.875rem;
  --fs-cap:     0.75rem;

  --lh-display: 1.05;
  --lh-tight:   1.2;
  --lh-snug:    1.35;
  --lh-body:    1.6;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semi:    600;
  --fw-bold:    700;

  /* ----- Spacing (4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 96) ----- */
  --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-sm:   8px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-pill: 999px;

  /* ----- Shadows ----- */
  --sh-1: 0 2px 6px rgba(43, 43, 51, .06);
  --sh-2: 0 8px 24px rgba(43, 43, 51, .08);
  --sh-3: 0 16px 48px rgba(43, 43, 51, .12);
  /* tinted soft shadows — pass the pastel HEX as the colour */
  --sh-lavender: 0 12px 32px color-mix(in oklab, var(--c-lavender) 35%, transparent);
  --sh-coral:    0 12px 32px color-mix(in oklab, var(--c-coral)    32%, transparent);
  --sh-teal:     0 12px 32px color-mix(in oklab, var(--c-teal)     32%, transparent);

  /* ----- Motion ----- */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 140ms;
  --t-base: 220ms;
  --t-slow: 360ms;

  /* ----- Layout ----- */
  --content-max: 1120px;
  --prose-max:    880px;
}

/* --------------------------------------------------------------------------
   Element resets — semantic mappings for h1/h2/p/a so a fresh HTML page
   adopts Plapperegg styling automatically.
   -------------------------------------------------------------------------- */

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

body {
  margin: 0;
  background: var(--c-bg-1);
  color: var(--c-fg-1);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: var(--fw-bold);
  color: var(--c-fg-1);
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1);      line-height: var(--lh-display); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2);      line-height: var(--lh-tight);   font-weight: var(--fw-semi); }
h3 { font-size: var(--fs-h3);      line-height: var(--lh-snug);    font-weight: var(--fw-semi); }
h4 { font-size: 1.125rem;          line-height: var(--lh-snug);    font-weight: var(--fw-semi); }

.display {
  font-family: var(--ff-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: -0.015em;
}

.lede {
  font-size: var(--fs-lede);
  line-height: var(--lh-snug);
  font-weight: var(--fw-semi);
  color: var(--c-fg-1);
}

p { margin: 0 0 var(--sp-4); text-wrap: pretty; }

small, .small { font-size: var(--fs-sm); color: var(--c-fg-2); }

.caption {
  font-size: var(--fs-cap);
  font-weight: var(--fw-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-fg-2);
}

a {
  color: var(--c-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color var(--t-fast) var(--ease-out);
}
a:hover { color: var(--c-link-hover); }

:focus-visible {
  outline: 3px solid var(--c-focus-ring);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* --------------------------------------------------------------------------
   A handful of utilities that are too small to be components but show up
   in nearly every Plapperegg layout.
   -------------------------------------------------------------------------- */

.plpg-container { max-width: var(--content-max); margin-inline: auto; padding-inline: var(--sp-5); }
.plpg-prose     { max-width: var(--prose-max);   margin-inline: auto; }

/* Einziger kanonischer Screenreader-Only-Helper (visually hidden, bleibt
   fokussierbar/vorlesbar). Nicht duplizieren — projektweit diese Klasse nutzen. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}

.plpg-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--c-lavender-soft);
  color: var(--c-ink);
  font-family: var(--ff-display);
  font-weight: var(--fw-semi);
  font-size: var(--fs-sm);
}
