/* Reset & Grundlagen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-image: url('../bilder/HinterGrund/hintergrund2026_03.webp');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.container {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

/* Greeting Section */
.greeting-section {
    text-align: center;
    background: rgba(135, 206, 235, 0.85); /* Hintergrundfarbe Box Oben */
    border-radius: 12px;
    padding: 1rem; /* höhe der Box */
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.greeting-text {
    font-size: 2rem;
    font-weight: 600;
    color: #1a3a52;
    margin-bottom: 1rem;
    min-height: 2.5rem;
}

.clock {
    font-size: 1.25rem;
    color: #333333;
    /* color: #666; */
    font-family: 'Courier New', monospace;
}

/* Webcams */
.webcams-section {
    margin-bottom: 2rem;
}

.webcam-large {
    margin-bottom: 2rem;
}

.webcam-large img {
    width: 100%;
    height: auto;
    border-radius: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: block;
}

.webcams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.webcam-item img {
    width: 100%;
    height: auto;
    border-radius: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.webcam-item img:hover {
    transform: scale(2.02);
}

.webcam-item img.error {
    background-color: #f0f0f0;
    padding: 2rem;
    min-height: 250px;
}

/* Weather Section */
.weather-section {
    background: rgba(135, 206, 235, 0.85);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.weather-section h2 {
    text-align: center;
    color: #1a3a52;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.weather-warnings {
    display: flex;
    justify-content: center;
}

.weather-warnings img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}

footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .greeting-section {
        padding: 1.5rem;
    }

    .greeting-text {
        font-size: 1.2rem;
    }

    .clock {
        font-size: 1rem;
    }

    .webcams-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .weather-section {
        padding: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
