/* ============================================================
   BASE.CSS - CSS-Variablen, Reset, Utility-Klassen, Buttons
   ============================================================ */

/* === CSS-VARIABLEN === */
:root {
    /* Teal-Palette */
    --teal-50:  #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    --teal-950: #042f2e;

    /* Gray-Palette */
    --gray-50:  #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semantische Farben */
    --color-primary:       var(--teal-600);
    --color-primary-hover: var(--teal-700);
    --color-primary-light: var(--teal-500);
    --color-bg:            #ffffff;
    --color-bg-alt:        var(--teal-50);
    --color-text:          var(--gray-800);
    --color-text-muted:    var(--gray-500);
    --color-border:        var(--gray-200);

    /* Typografie */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --fs-xs:   0.75rem;
    --fs-sm:   0.875rem;
    --fs-base: 1rem;
    --fs-lg:   1.125rem;
    --fs-xl:   1.25rem;
    --fs-2xl:  1.5rem;
    --fs-3xl:  1.875rem;
    --fs-4xl:  2.25rem;
    --fs-5xl:  3rem;
    --fs-6xl:  3.75rem;

    /* Abstände */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.25rem;
    --sp-6: 1.5rem;
    --sp-8: 2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --sp-20: 5rem;
    --sp-24: 6rem;

    /* Radien */
    --r-sm:   0.375rem;
    --r-md:   0.5rem;
    --r-lg:   0.75rem;
    --r-xl:   1rem;
    --r-2xl:  1.5rem;
    --r-full: 9999px;

    /* Schatten */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
    list-style: none;
}

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

/* === LAYOUT-UTILITIES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-6);
}

.section {
    padding: var(--sp-24) 0;
}

.section--alt {
    background: var(--color-bg-alt);
}

.section--dark {
    background: var(--teal-900);
    color: white;
}

.section__header {
    text-align: center;
    margin-bottom: var(--sp-12);
}

.section__tag {
    display: inline-block;
    background: var(--teal-100);
    color: var(--teal-700);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: var(--sp-1) var(--sp-4);
    border-radius: var(--r-full);
    margin-bottom: var(--sp-4);
}

.section--dark .section__tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--teal-200);
}

.section__title {
    font-size: var(--fs-4xl);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.15;
    margin-bottom: var(--sp-4);
}

.section--dark .section__title {
    color: white;
}

.section__subtitle {
    font-size: var(--fs-lg);
    color: var(--color-text-muted);
    max-width: 620px;
    margin: 0 auto;
}

.section--dark .section__subtitle {
    color: var(--teal-200);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: 0.75rem 1.625rem;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: var(--fs-base);
    line-height: 1;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.btn--primary {
    background: var(--teal-700);
    color: white;
    box-shadow: 0 1px 3px rgba(15, 118, 110, 0.3);
}

.btn--primary:hover {
    background: var(--teal-800);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.35);
}

.btn--outline {
    background: transparent;
    color: var(--teal-700);
    border: 2px solid var(--teal-500);
}

.btn--outline:hover {
    background: var(--teal-50);
    border-color: var(--teal-700);
}

.btn--ghost-white {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn--ghost-white:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn--lg {
    padding: 1rem 2.25rem;
    font-size: var(--fs-lg);
    border-radius: var(--r-lg);
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: var(--fs-sm);
}

/* === BADGE === */
.badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: var(--r-full);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge--green  { background: #d1fae5; color: #065f46; }
.badge--teal   { background: var(--teal-100); color: var(--teal-800); }
.badge--orange { background: #ffedd5; color: #9a3412; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .section { padding: var(--sp-16) 0; }
    .section__title { font-size: var(--fs-3xl); }
    .container { padding: 0 var(--sp-4); }
}

@media (max-width: 480px) {
    .section__title { font-size: var(--fs-2xl); }
}

/* Nur für Screenreader sichtbar (Lighthouse-konform) */
.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;
}
