/* ═══════════════════════════════════════════════════
   BASE.CSS — Design Tokens, Reset, Typography
   KI Telefon Agent · Rebuild 2026
   Ported from onoffice-demo/css/style.css
   ═══════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
    /* Colors */
    --color-gold: #b39a3d;
    --color-gold-light: #d4b86a;
    --color-gold-bg: rgba(179, 154, 61, 0.08);
    --color-gold-border: rgba(179, 154, 61, 0.2);
    --color-dark: #0f172a;
    --color-slate: #64748b;
    --color-light: #f8fafc;
    --color-white: #ffffff;
    --color-onoffice: #003366;
    --color-border: rgba(0, 0, 0, 0.06);
    --color-border-hover: rgba(179, 154, 61, 0.3);
    --color-success: #16a34a;
    --color-error: #dc2626;

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 5rem 5%;
    --section-padding-sm: 3rem 5%;
    --container-max: 960px;
    --container-wide: 1200px;
    --container-narrow: 720px;

    /* Borders & Shadows */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.25rem;
    --radius-full: 9999px;
    --shadow-subtle: 0 1px 10px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 12px 30px rgba(0, 0, 0, 0.06);
    --shadow-elevated: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-gold: 0 4px 20px rgba(179, 154, 61, 0.15);
    --shadow-gold-hover: 0 8px 30px rgba(179, 154, 61, 0.25);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-smooth: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Z-index layers */
    --z-nav: 100;
    --z-modal: 200;
    --z-cookie: 300;
    --z-toast: 400;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
    list-style: none;
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
}

h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

h4 {
    font-size: 1rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
    color: var(--color-slate);
    line-height: 1.7;
}

p:last-child {
    margin-bottom: 0;
}

strong {
    color: var(--color-dark);
    font-weight: 600;
}

small {
    font-size: 0.85rem;
}

/* ─── Utility Classes ─── */
.text-gold {
    color: var(--color-gold);
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ─── Focus Styles (Accessibility) ─── */
:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* ─── Selection ─── */
::selection {
    background: rgba(179, 154, 61, 0.2);
    color: var(--color-dark);
}
