/**
 * WhiteMountainMedia - Base Stylesheet
 * CI-Farben, Typografie, Reset & Grundstile
 */

/* ============================================
   CSS Custom Properties (CI-Farben & Fonts)
   ============================================ */
:root {
    /* Hauptfarben */
    --color-primary: #E4583F;
    --color-primary-dark: #c94a34;
    --color-primary-light: #eb7a67;
    
    --color-secondary: #F2A65A;
    --color-secondary-dark: #d99245;
    --color-secondary-light: #f5bb7d;
    
    /* Neutraltöne */
    --color-dark: #1A1A1A;
    --color-dark-soft: #2d2d2d;
    --color-gray: #6b6b6b;
    --color-gray-light: #a0a0a0;
    --color-light: #F7F4F1;
    --color-white: #FFFFFF;
    
    /* Akzentfarbe */
    --color-accent: #3A7D91;
    --color-accent-dark: #2d6473;
    --color-accent-light: #5199ad;
    
    /* Funktionale Farben */
    --color-success: #4CAF50;
    --color-error: #E4583F;
    --color-warning: #F2A65A;
    
    /* Schriften */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Schriftgrößen */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Abstände */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Schatten */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Übergänge */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Z-Index Ebenen */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-overlay: 400;
    --z-modal: 500;
    --z-toast: 600;
    
    /* Container */
    --container-max: 1280px;
    --container-narrow: 800px;
}

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

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

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

/* Body-Klasse für dunklen Hintergrund */
body.dark-theme {
    background-color: var(--color-dark);
    color: var(--color-light);
}

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

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

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

ul, ol {
    list-style: none;
}

table {
    border-collapse: collapse;
}

/* ============================================
   Typografie
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-dark);
}

.dark-theme h1,
.dark-theme h2,
.dark-theme h3,
.dark-theme h4,
.dark-theme h5,
.dark-theme h6 {
    color: var(--color-light);
}

h1 {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-lg);
}

h2 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-lg);
}

h3 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

h4 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
}

h5 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

h6 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

p {
    margin-bottom: var(--space-md);
}

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

/* Links */
.link {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.link:hover {
    color: var(--color-accent-dark);
}

.dark-theme .link {
    color: var(--color-secondary);
}

.dark-theme .link:hover {
    color: var(--color-secondary-light);
}

/* Text-Utilities */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-gray); }
.text-light { color: var(--color-light); }

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

.text-uppercase { text-transform: uppercase; letter-spacing: 0.05em; }
.text-capitalize { text-transform: capitalize; }

.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Lead / Intro Text */
.lead {
    font-size: var(--text-xl);
    line-height: 1.7;
    color: var(--color-gray);
}

.dark-theme .lead {
    color: var(--color-gray-light);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Primary Button */
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Secondary Button */
.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-dark);
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-dark);
    border-color: var(--color-secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Outline Button */
.btn-outline {
    background-color: transparent;
    color: var(--color-dark);
    border-color: var(--color-dark);
}

.btn-outline:hover {
    background-color: var(--color-dark);
    color: var(--color-light);
}

.dark-theme .btn-outline {
    color: var(--color-light);
    border-color: var(--color-light);
}

.dark-theme .btn-outline:hover {
    background-color: var(--color-light);
    color: var(--color-dark);
}

/* Ghost Button */
.btn-ghost {
    background-color: transparent;
    color: var(--color-primary);
    border-color: transparent;
}

.btn-ghost:hover {
    background-color: rgba(228, 88, 63, 0.1);
}

/* Button Größen */
.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--text-lg);
}

/* ============================================
   Selection
   ============================================ */
::selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ============================================
   Scrollbar (optional, WebKit)
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-light);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-light);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray);
}

/* ============================================
   Accessibility
   ============================================ */
.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;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-md);
    z-index: var(--z-toast);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-md);
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .no-print {
        display: none !important;
    }
}

/* ============================================
   Responsive Typography
   ============================================ */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    h1 {
        font-size: var(--text-4xl);
    }
    
    h2 {
        font-size: var(--text-3xl);
    }
    
    h3 {
        font-size: var(--text-2xl);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: var(--text-3xl);
    }
    
    h2 {
        font-size: var(--text-2xl);
    }
}
