/* ──────────────────────────────────────────────────────────────────────────
   main.css – Variablen, Reset, Basis-Styles
   ────────────────────────────────────────────────────────────────────────── */

:root {
    /* Farbpalette */
    --color-primary:     #1A1A2E;
    --color-primary-dark:#0D0D1F;
    --color-accent:      #00B4D8;
    --color-accent-2:    #E63946;
    --color-bg:          #F8F9FA;
    --color-bg-card:     #FFFFFF;
    --color-text:        #1A1A2E;
    --color-text-muted:  #6C757D;
    --color-border:      #E9ECEF;

    --color-prog:        #00B4D8;
    --color-rent:        #2EC4B6;
    --color-print:       #FF9F1C;

    /* Typografie */
    --font-heading: 'Sora', system-ui, -apple-system, sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, monospace;

    /* Layout */
    --max-width: 1280px;
    --section-gap: 6rem;
    --radius-card: 12px;
    --radius-btn: 8px;

    --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
    --shadow-md: 0 8px 24px rgba(26, 26, 46, 0.08);
    --shadow-lg: 0 16px 48px rgba(26, 26, 46, 0.12);

    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary); }
ul, ol { list-style: none; }

/* Typografie */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.05;
    color: var(--color-text);
    letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.5rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.75rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); letter-spacing: -0.02em; }
h4 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { color: var(--color-text-muted); }
p strong { color: var(--color-text); }

/* Layout-Helfer */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}
@media (max-width: 640px) {
    .container { padding: 0 1rem; }
}

section { padding: var(--section-gap) 0; }
@media (max-width: 768px) {
    :root { --section-gap: 4rem; }
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 { margin-bottom: 0.75rem; }
.section-title p { max-width: 600px; margin: 0 auto; }

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

/* Tag/Eyebrow */
.eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Scroll-Reveal Animationen */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1), transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* Skip Link für Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
}
.skip-link:focus { top: 0; }
