/*
 * wisнblower - Base Component CSS
 * Reset, Typography, Variables, Container & Layout Fundamentals
 */

/* ===== CSS-VARIABLEN ===== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #2ecc71;
    --purple-color: #9c27b0;
    --blue-color: #3498db;
    --focus-color: #ffffff;
    --focus-outline: 3px solid #ffffff;
}

/* ===== RESET & BASIS-STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

body {
    color: var(--dark-color);
    line-height: 1.6;
    position: relative;
    background-color: transparent;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HINTERGRUNDBILD FÜR ALLE SEITEN ===== */
html {
    background: url('../wbpics/image_1746355811436-desktop.webp') no-repeat center center fixed;
    background-size: cover;
    min-height: 100%;
}

/* Mobile: kleineres Bild */
@media (max-width: 768px) {
    html {
        background-image: url('../wbpics/image_1746355811436-mobile.webp');
    }
}

/* Fallback für Browser ohne WebP */
@supports not (background-image: url('*.webp')) {
    html {
        background-image: url('../wbpics/image_1746355811436.jpeg');
    }
}

@media (min-width: 769px) and (min-height: 600px) {
    html {
        overflow-y: scroll;
    }
}

@media (max-width: 768px), (max-height: 599px) {
    html {
        overflow-y: auto !important;
    }
}

html:after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 32, 39, 0.3), rgba(32, 58, 67, 0.25), rgba(44, 83, 100, 0.2));
    z-index: -98;
}

/* ===== ACCESSIBILITY ===== */
h1, h2, h3, p, a, footer {
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

*:focus {
    outline: var(--focus-outline);
    outline-offset: 2px;
}

.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: 1em;
    background-color: var(--light-color);
    color: var(--dark-color);
    text-decoration: none;
    opacity: 0;
}

.skip-to-content:focus {
    left: 0;
    opacity: 1;
}

/* ===== LAYOUT-CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: clamp(1.2rem, 3vw, 1.5rem);
    color: white;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
}

h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 300;
}

h3 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: white;
    font-weight: 300;
}

p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
}

li {
    margin-bottom: 0.5rem;
}

/* ===== MAIN CONTENT LAYOUT ===== */
.main-content {
    padding-top: 1rem;
    padding-bottom: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

body.home-page .main-content {
    justify-content: center;
}

/* ===== ACCESSIBILITY OPTIMIERUNGEN ===== */
@media (forced-colors: active) {
    .btn-universe, .btn-forget {
        border: 2px solid transparent;
    }
    
    .btn-universe:disabled, .btn-forget:disabled {
        opacity: 0.5;
    }
    
    .apps-toggle, .lang-switch, .app-card, .sound-toggle {
        border: 2px solid transparent;
    }
}

@media (prefers-reduced-motion: reduce) {
    .star-small, .star-medium, .star-large, .seed, .shooting-star {
        animation: none;
    }
    
    .btn:hover, .app-card:hover, .apps-toggle:hover, .sound-toggle:hover {
        transform: none;
    }
    
    .app-card::before {
        display: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}