/* ============================================================
   socialri.de – Design Tokens
   Klar, hell, markengetreu · Blau / Orange / Lila auf #F5F5F5
   ============================================================ */

:root {
    /* ---------- Markenfarben ---------- */
    --color-black:   #000000;
    --color-white:   #FFFFFF;

    /* ---------- Akzent-Paare (hell + dunkel) ---------- */
    --color-blue:       #A5C8D8;
    --color-blue-ink:   #10252F;
    --color-orange:     #E49A4D;
    --color-orange-ink: #452523;
    --color-lilac:      #CCB0EB;
    --color-lilac-ink:  #1F1738;

    /* ---------- Semantische Akzente ---------- */
    --color-primary:   #10252F;   /* dunkles Blau – primäre Marke */
    --color-primary-2: #A5C8D8;
    --color-primary-3: #E49A4D;
    --color-accent:    #E49A4D;   /* Orange – warmer Akzent */
    --color-highlight: #CCB0EB;   /* helles Lila – Aufmerksamkeit */
    --color-success:   #2E9E6B;
    --color-danger:    #D64545;

    /* ---------- Rückwärtskompatible Aliase ---------- */
    --color-pink:    #E49A4D;   /* Orange */
    --color-yellow:  #CCB0EB;   /* helles Lila */
    --color-purple:  #CCB0EB;   /* helles Lila */
    --color-indigo:  #10252F;   /* dunkles Blau */

    /* ---------- Neutrale Skala ---------- */
    --color-ink:       #000000;
    --color-text:      #000000;
    --color-text-2:    rgba(0, 0, 0, 0.72);
    --color-text-soft: rgba(0, 0, 0, 0.55);
    --color-muted:     rgba(0, 0, 0, 0.38);

    --color-bg:        #F5F5F5;   /* helles Neutralgrau */
    --color-bg-2:      #ECECEC;   /* Sekundär */
    --color-bg-3:      #FFFFFF;   /* Karten */
    --color-bg-dark:   #10252F;   /* dunkle Sektion (Blau) */

    /* ---------- Pastell-Tints ---------- */
    --color-bg-cream:  #E8F1F5;   /* blau */
    --color-bg-mint:   #EAF4EC;   /* grün (Erfolg) */
    --color-bg-sky:    #E8F1F5;   /* blau */
    --color-bg-blush:  #F7EBDD;   /* orange */
    --color-bg-lilac:  #F0EAF8;   /* lila */

    --color-line:      rgba(0, 0, 0, 0.08);
    --color-line-2:    rgba(0, 0, 0, 0.14);
    --color-line-3:    rgba(0, 0, 0, 0.28);

    /* ---------- Soft Glass ---------- */
    --glass-bg:         rgba(255, 255, 255, 0.72);
    --glass-bg-strong:  rgba(255, 255, 255, 0.90);
    --glass-bg-soft:    rgba(255, 255, 255, 0.50);
    --glass-bg-dark:    rgba(16, 37, 47, 0.55);
    --glass-border:     rgba(0, 0, 0, 0.05);
    --glass-border-dk:  rgba(0, 0, 0, 0.08);
    --glass-blur:       16px;
    --glass-blur-lg:    28px;
    --glass-shadow:     0 1px 2px rgba(0, 0, 0, 0.04),
                        0 10px 28px -14px rgba(0, 0, 0, 0.12);
    --glass-shadow-lg:  0 2px 6px rgba(0, 0, 0, 0.05),
                        0 20px 48px -20px rgba(0, 0, 0, 0.18);

    /* ---------- Typografie ---------- */
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

    --font-weight-regular: 400;
    --font-weight-medium:  500;
    --font-weight-semi:    600;
    --font-weight-bold:    700;
    --font-weight-black:   800;

    --font-size-xs:    0.75rem;
    --font-size-sm:    0.875rem;
    --font-size-base:  1rem;
    --font-size-lg:    1.125rem;
    --font-size-xl:    1.25rem;
    --font-size-2xl:   1.5rem;
    --font-size-3xl:   2rem;
    --font-size-4xl:   2.75rem;
    --font-size-5xl:   4rem;
    --font-size-6xl:   5.5rem;

    --line-height-tight:  1.05;
    --line-height-snug:   1.2;
    --line-height-base:   1.55;
    --line-height-loose:  1.75;

    --letter-tight:   -0.015em;
    --letter-tighter: -0.03em;
    --letter-display: -0.04em;
    --letter-wide:    0.04em;
    --letter-wider:   0.10em;

    /* ---------- Spacing ---------- */
    --space-0:  0;
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.5rem;
    --space-6:  2rem;
    --space-7:  3rem;
    --space-8:  4rem;
    --space-9:  6rem;
    --space-10: 8rem;

    /* ---------- Radien ---------- */
    --radius-sm:   10px;
    --radius-md:   16px;
    --radius-lg:   20px;
    --radius-xl:   28px;
    --radius-2xl:  36px;
    --radius-pill: 999px;

    /* ---------- Linien ---------- */
    --line-1: 1px;
    --line-2: 2px;
    --line-3: 3px;

    /* ---------- Layout ---------- */
    --container-max: 1280px;
    --container-narrow: 960px;
    --reading-max:   720px;
    --header-h:      64px;

    /* Seitenrand: ~20px Phone, skaliert auf 32px Desktop + Notch-Safe-Area */
    --page-gutter: clamp(1.25rem, 4.2vw, 2rem);
    --page-pad-left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
    --page-pad-right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
    --section-y: clamp(2.5rem, 6.5vw, 6rem);
    --section-y-sm: clamp(1.5rem, 4vw, 4rem);
    --block-y: clamp(1.35rem, 4vw, 3rem);
    --card-pad: clamp(1.15rem, 2.8vw, 2rem);
    --stack-gap: clamp(0.75rem, 2.2vw, 1.5rem);

    /* ---------- Easing & Timing ---------- */
    --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
    --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 150ms;
    --duration:      220ms;
    --duration-slow: 380ms;
}

/* Selbst gehostetes Display-Font (Carvello – ein Schnitt) */
@font-face {
    font-family: 'Carvello';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Carvello-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Carvello';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Carvello-Regular_Italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Carvello';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Carvello-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Carvello';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/Carvello-Regular.woff2') format('woff2');
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background: var(--color-bg);
    font-weight: var(--font-weight-regular);
    margin: 0;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--color-highlight);
    color: var(--color-ink);
}
