/* ==========================================================================
   DESIGN TOKENS & LOKALE WEBFONTS - Michael Wipp (WippCARE) Relaunch
   100 % lokal gehostete .woff2-Schriften (Inter & Lora) im Ordner src/assets/fonts/
   -> Identisches Schriftbild auf jedem Endgerät weltweit
   -> 100 % DSGVO-konform ohne Google-Server-Kontakt & ohne Cookie-Banner
   ========================================================================== */

/* --- 1. LOKALE WEBFONT: INTER (Sans-Serif Variable 400–800) --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext-normal.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: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-normal.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;
}

/* --- 2. LOKALE WEBFONT: LORA (Editorial Serif Variable 400–700, Normal & Italic) --- */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/lora-latin-ext-normal.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: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/lora-latin-normal.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: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/lora-latin-ext-italic.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: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/lora-latin-italic.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,
[data-theme="signature"] {
  /* --- VARIANTE 1 (Default): "Signature: Marine · Royal · Berry" --- */
  --color-primary: #0f1c36;
  --color-primary-dark: #081121;
  --color-primary-mid: #172b52;
  
  --color-accent: #1d58e8;           /* Strahlendes Royalblau */
  --color-accent-hover: #1545be;
  --color-accent-soft: #e6eefc;

  --color-berry: #9b2c62;            /* Violett-Berry passend zum Studio-Portrait */
  --color-terracotta: #df5320;       /* Original WippCARE Orange */
  --color-petrol: #146c87;

  /* Sektions-Hintergründe & Verläufe */
  --color-bg: #f3f0ea;
  --color-bg-cool: #e3eaf6;
  --color-bg-warm: #efe8dc;
  --color-surface: #ffffff;
  --color-border: #d5cfc3;
  --color-border-cool: #c3d0e6;

  --hero-bg:
    radial-gradient(circle at 82% 28%, rgba(155, 44, 98, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 18% 15%, rgba(29, 88, 232, 0.12) 0%, transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f1ede4 100%);
  --band-bg: linear-gradient(90deg, #0b162c 0%, #152748 55%, #2b1838 100%);
  --master-card-bg:
    radial-gradient(circle at 90% 15%, rgba(155, 44, 98, 0.42) 0%, transparent 50%),
    linear-gradient(145deg, #0d1a33 0%, #162b52 100%);
  --dossier-lead-bg: linear-gradient(125deg, #0d1a33 0%, #1d2f5d 60%, #5b1f48 100%);
  --featured-book-bg:
    radial-gradient(circle at 18% 50%, rgba(190, 24, 93, 0.35) 0%, transparent 50%),
    linear-gradient(135deg, #121826 0%, #2b162c 60%, #16243d 100%);

  --color-text-main: #0f172a;
  --color-text-muted: #425066;
  --color-text-light: #64748b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-heading: var(--font-sans);
}

/* --- VARIANTE 2: "Warm Editorial & Kupfer (Buchverlag-Look)" --- */
[data-theme="editorial"] {
  --color-primary: #231f1d;          /* Warmes Verlags-Espresso / Anthrazit */
  --color-primary-dark: #171412;
  --color-primary-mid: #332b26;
  
  --color-accent: #b84a1b;           /* Edles Buchband-Kupfer / Terracotta */
  --color-accent-hover: #943912;
  --color-accent-soft: #fcece4;

  --color-berry: #8c3b2b;            /* Warmes Kaminrot-Kupfer */
  --color-terracotta: #c85a28;
  --color-petrol: #2b5b6c;

  --color-bg: #f6EFE2;               /* Intensives, warmes Buchpapier-Elfenbein */
  --color-bg-cool: #ece2d0;          /* Warmes Sand-Dossier statt kühlem Blau */
  --color-bg-warm: #e6d8c0;          /* Sattes Pergament */
  --color-surface: #fffdf9;
  --color-border: #d4c5ae;
  --color-border-cool: #cbb99e;

  --hero-bg:
    radial-gradient(circle at 80% 25%, rgba(200, 90, 40, 0.16) 0%, transparent 45%),
    linear-gradient(180deg, #fffdf8 0%, #efe4d0 100%);
  --band-bg: linear-gradient(90deg, #1c1613 0%, #2e231d 55%, #42261b 100%);
  --master-card-bg: linear-gradient(145deg, #1f1916 0%, #382820 100%);
  --dossier-lead-bg: linear-gradient(125deg, #211a17 0%, #3d2b22 65%, #69321c 100%);
  --featured-book-bg: linear-gradient(135deg, #1c1715 0%, #38241d 60%, #261f1b 100%);

  --color-text-main: #211d1a;
  --color-text-muted: #574c44;
  --color-text-light: #7a6d63;

  --font-heading: var(--font-serif); /* Klassische Buch-Serifen für alle Überschriften! */
}

/* --- VARIANTE 3: "Deep Petrol & Vital-Salbei (Praxis-Akademie)" --- */
[data-theme="petrol"] {
  --color-primary: #0a2e36;          /* Tiefes Wald-Petrol */
  --color-primary-dark: #051b20;
  --color-primary-mid: #11424d;
  
  --color-accent: #0d8276;           /* Kräftiges Pflege-Smaragd / Teal */
  --color-accent-hover: #09665c;
  --color-accent-soft: #daf5f0;

  --color-berry: #0f6e8c;            /* Ozean-Petrol statt Violett */
  --color-terracotta: #d96b27;       /* Warmes Bernstein-Orange */
  --color-petrol: #0d8276;

  --color-bg: #e8f1ee;               /* Frisches Salbei-Mint-Grau */
  --color-bg-cool: #d7e8e3;          /* Kühles Eukalyptus-Dossier */
  --color-bg-warm: #dfece7;
  --color-surface: #ffffff;
  --color-border: #bdd4cd;
  --color-border-cool: #acc9c0;

  --hero-bg:
    radial-gradient(circle at 82% 28%, rgba(13, 130, 118, 0.20) 0%, transparent 45%),
    radial-gradient(circle at 18% 15%, rgba(15, 110, 140, 0.14) 0%, transparent 42%),
    linear-gradient(180deg, #f7fbf9 0%, #dfece8 100%);
  --band-bg: linear-gradient(90deg, #061f24 0%, #0d3842 55%, #0c4a42 100%);
  --master-card-bg: linear-gradient(145deg, #072229 0%, #114550 100%);
  --dossier-lead-bg: linear-gradient(125deg, #072229 0%, #0f4652 60%, #0d695b 100%);
  --featured-book-bg: linear-gradient(135deg, #071f24 0%, #0f3d47 60%, #104a3e 100%);

  --color-text-main: #0a2930;
  --color-text-muted: #395a61;
  --color-text-light: #5c7f87;

  --font-heading: var(--font-sans);
}

/* ==========================================================================
   GLOBALE SKALEN (Typografie, Spacing, Radien, Schatten)
   ========================================================================== */
:root {
  --text-xs: clamp(0.75rem, 0.72rem + 0.18vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.22vw, 1.0625rem);
  --text-md: clamp(1.125rem, 1.06rem + 0.3vw, 1.225rem);
  --text-lg: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.35rem + 0.7vw, 1.875rem);
  --text-2xl: clamp(1.9rem, 1.65rem + 1.1vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.9rem + 1.5vw, 3.1rem);
  --text-display: clamp(2.5rem, 2rem + 2.2vw, 3.75rem);

  --leading-tight: 1.12;
  --leading-snug: 1.28;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-section: clamp(4rem, 3rem + 4.5vw, 6.5rem);

  --container-max: 1240px;
  --container-narrow: 880px;
  --container-padding: clamp(1.25rem, 0.75rem + 2.2vw, 2.5rem);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-subtle: 0 2px 6px rgba(15, 28, 54, 0.06);
  --shadow-card: 0 10px 30px -5px rgba(15, 28, 54, 0.09), 0 4px 10px -2px rgba(15, 28, 54, 0.04);
  --shadow-hover: 0 20px 40px -10px rgba(15, 28, 54, 0.16), 0 8px 16px -4px rgba(15, 28, 54, 0.08);
  --shadow-book: -8px 12px 24px rgba(8, 17, 33, 0.28), -2px 3px 6px rgba(8, 17, 33, 0.18);

  --transition-fast: 160ms ease;
  --transition-normal: 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
