/* design-tokens.css — Shared Design Tokens
 * Farben, Typografie, Spacing, Schatten, Radien
 * Wird von allen CRM/Admin-Projekten importiert
 * ================================================ */


/* === FONTS (Self-hosted, DSGVO-konform) === */

/* Inter latin-ext (Umlaute, Sonderzeichen) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/oneflow_sys/assets/fonts/inter-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;
}

/* Inter latin (Grundzeichen) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/oneflow_sys/assets/fonts/inter-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;
}


/* === DESIGN TOKENS === */

:root {
    /* Primary */
    --crm-primary: #2563eb;
    --crm-primary-dark: #1d4ed8;
    --crm-primary-light: rgba(37, 99, 235, .08);
    --crm-on-primary: #ffffff;
    --crm-primary-text: #2563eb;

    /* Surfaces */
    --crm-surface: #ffffff;
    --crm-surface-2: #f8fafc;

    /* Borders */
    --crm-border: #e2e8f0;

    /* Text */
    --crm-text: #1e293b;
    --crm-text-muted: #64748b;

    /* Semantic */
    --crm-danger: #ef4444;
    --crm-warning: #f59e0b;
    --crm-success: #22c55e;

    /* Shape */
    --crm-radius: 6px;

    /* Elevation */
    --crm-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .05);

    /* Layout */
    --crm-header-h: 56px;

    /* Spacing Scale */
    --crm-space-1: 0.25rem;
    --crm-space-2: 0.5rem;
    --crm-space-3: 0.75rem;
    --crm-space-4: 1rem;
    --crm-space-6: 1.5rem;
    --crm-space-8: 2rem;
}


/* === RESET === */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--crm-text);
    background: var(--crm-surface-2);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--crm-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    font-family: inherit;
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

ul, ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}
