/*
Theme Name: wprbn Theme
Theme URI: https://brinkbaeumer.de
Author: Ralf Brinkbäumer
Description: Custom Theme für brinkbaeumer.de – private Homepage und Fotografie-Portfolio
Version: 1.0.0
License: Private
Text Domain: wprbn
*/

/* Google Fonts werden dynamisch via wprbn_enqueue_typography_fonts() geladen */

/* ── Farb-Tokens: Light ─────────────────────────────────────────────────── */

[data-theme="light"] {
  --bg-primary:    #f5f2ec;
  --bg-secondary:  #e8e4db;
  --bg-tertiary:   #eeebe4;
  --border:        #dedad2;
  --border-strong: #c8c4bc;
  --text-primary:  #1a1a18;
  --text-muted:    #6b6860;
  --text-subtle:   #9a9690;
  --cta-bg:        #1a1a18;
  --cta-text:      #f5f2ec;
}

/* ── Farb-Tokens: Dark ──────────────────────────────────────────────────── */

[data-theme="dark"] {
  --bg-primary:    #0d1117;
  --bg-secondary:  #1a2535;
  --bg-tertiary:   #111827;
  --border:        #1e2530;
  --border-strong: #2a3545;
  --text-primary:  #e8e8e8;
  --text-muted:    #4a5568;
  --text-subtle:   #2d3748;
  --cta-bg:        #e8e8e8;
  --cta-text:      #0d1117;
}

/* ── Globale Design-Tokens ──────────────────────────────────────────────── */

:root {
  /* Basis-Fonts (Fallback, werden durch Dashboard überschrieben) */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Fluid-Typografie-Größen (Basis) */
  --text-xs:   clamp(0.625rem,  1vw,   0.6875rem);
  --text-sm:   clamp(0.75rem,   1.5vw, 0.875rem);
  --text-base: clamp(0.875rem,  2vw,   1rem);
  --text-lg:   clamp(1rem,      2.5vw, 1.125rem);
  --text-xl:   clamp(1.125rem,  3vw,   1.5rem);
  --text-hero: clamp(2rem,      5vw,   3rem);

  /* Spacing */
  --space-xs:  clamp(0.5rem,  1vw,  0.75rem);
  --space-sm:  clamp(0.75rem, 2vw,  1rem);
  --space-md:  clamp(1rem,    3vw,  2rem);
  --space-lg:  clamp(1.5rem,  4vw,  3rem);
  --space-xl:  clamp(2rem,    6vw,  5rem);
  --space-2xl: clamp(3rem,    8vw,  7rem);

  /* Layout */
  --container-max:    1200px;
  --container-narrow: 720px;
  --header-height:    70px;
  --gallery-gap:      2px;

  /* Sonstiges */
  --transition: 0.2s ease;
  --radius:     0;
}

/* ── CSS Reset (unlayered – höchste Priorität als Basis) ────────────────── */

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

input, textarea, select { font: inherit; }

/* ── Basis-Typografie in @layer base
   Wird von @layer typography in main.css überschrieben ─────────────────── */

@layer base {
  body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.65;
    transition: background-color var(--transition), color var(--transition);
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-primary);
  }

  h1 { font-size: var(--text-hero); }
  h2 { font-size: var(--text-xl); }
  h3 { font-size: var(--text-lg); }

  p {
    margin-bottom: 1em;
    &:last-child { margin-bottom: 0; }
  }

  .eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
  }
}
