/* ============================================================
   SAS-DIMAG WEB DESIGN SYSTEM
   Datei: design-system.css
   Version: 0.1
   Status: Arbeitsgrundlage

   MARKENWIRKUNG:
   technisch · hochwertig · präzise · reduziert · kontrastreich

   KONTRAST:
   Lesbarkeit hat Vorrang vor modischen Low-Contrast-Trends.
   Kein hellgrauer Fließtext auf weißem Hintergrund.
   WCAG AA ist Mindestziel.

   PROJEKTREGEL:
   Farben, Abstände, Größen und Radien möglichst nicht willkürlich
   direkt in Komponenten eintragen. Zentrale Variablen verwenden.
   ============================================================ */

:root {
    --sd-bg-main: #17191d;
    --sd-bg-surface: #202329;
    --sd-bg-elevated: #292d34;

    --sd-text-primary: #ffffff;
    --sd-text-secondary: #e4e6ea;
    --sd-text-muted: #b8bdc6;

    /* Veilchen-Akzent – Arbeitswert, später final prüfen. */
    --sd-violet: #6a52a3;
    --sd-violet-hover: #7a62b6;
    --sd-violet-dark: #513c89;

    --sd-border: #3b4048;

    --font-main: Inter, "Segoe UI", Helvetica, Arial, sans-serif;

    --font-size-body: clamp(1rem, 0.97rem + 0.12vw, 1.125rem);
    --font-size-small: 0.875rem;
    --font-size-h3: clamp(1.45rem, 1.2rem + 0.8vw, 2rem);
    --font-size-h2: clamp(2.2rem, 1.55rem + 2.4vw, 4.2rem);
    --font-size-h1: clamp(3.1rem, 1.7rem + 5.2vw, 7rem);

    --line-height-body: 1.62;
    --line-height-heading: 0.98;

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 750;

    --header-height: 84px;

    /* Hero-Höhe nach gorbel.eu:
       Desktop exakt 400 px.
       Mobile wird separat auf 470 px erhöht. */
    --hero-h: 400px;
    --page-width: 1440px;
    --text-width: 760px;
    --page-padding: clamp(20px, 4vw, 72px);
    --section-spacing: clamp(88px, 10vw, 168px);

    --space-1: 0.5rem;
    --space-2: 0.75rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-7: 4rem;
    --space-8: 6rem;

    --radius-sm: 4px;
    --radius-md: 8px;

    --transition-fast: 160ms ease;
    --transition-normal: 260ms ease;
}

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

html {
    scroll-behavior: smooth;
    background: var(--sd-bg-main);
}

body {
    margin: 0;
    font-family: var(--font-main);
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    color: var(--sd-text-secondary);
    background: var(--sd-bg-main);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

::selection {
    color: var(--sd-text-primary);
    background: var(--sd-violet);
}

:focus-visible {
    outline: 3px solid var(--sd-violet-hover);
    outline-offset: 4px;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--sd-text-primary); }

h2 {
    margin-bottom: var(--space-5);
    font-size: var(--font-size-h2);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

h3 { font-size: var(--font-size-h3); }
