/* Globale Einstellungen */
*, *::before, *::after {
    box-sizing: border-box; /* Verhindert, dass Padding die Breite der Elemente verfälscht */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100dvh; /* 100dvh ist ideal für Mobilgeräte (berücksichtigt die Adressleiste) */
}

/* Header */
header {
    background-color: #f8f9fa;
    width: 100%; /* Sichert ab, dass der Header immer exakt die volle Breite nutzt */
    padding: 15px 5%; /* Gleicher Abstand links und rechts */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eeeeee;
    flex-wrap: wrap; 
    gap: 15px; 
}

header h1 {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    max-width: 100%; /* Verhindert, dass der Container den Screen sprengt */
}

.header-logo {
    max-height: 50px; /* Logo-Höhe flexibel gemacht */
    width: auto;  
    max-width: 100%; /* Bild skaliert auf kleinen Bildschirmen automatisch mit */
    height: auto;
    display: block;
    flex-shrink: 0; /* Verhindert das Zusammenstauchen im Flex-Container */
}

/* --- Schwarzer Store Button --- */
.store-button {
    text-decoration: none;
    background-color: #000000;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    white-space: nowrap; /* Verhindert ungewollte Zeilenumbrüche im Button */
}

.store-button:hover {
    background-color: #333333;
}

/* Main & Slider */
main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 5%; /* Padding auf Mobile optimiert */
    width: 100%;
}

.slider-container {
    max-width: 1024px;
    position: relative;
    margin: auto;
    width: 100%;
}

.slide {
    display: none;
    width: 100%;
    text-align: center; /* Hält die Bilder sauber in der Mitte */
}

.slide img {
    width: 100%;
    max-width: 1024px;
    max-height: 65vh; /* Das Bild nutzt bis zu 65% der Bildschirmhöhe -> minimiert den Weißraum */
    object-fit: contain; /* Bild wird immer im korrekten Seitenverhältnis und vollständig angezeigt */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Slider Buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 0 4px 4px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.4);
    text-decoration: none;
}

.next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Animation */
.fade {
    animation-name: fade;
    animation-duration: 1.2s;
}

@keyframes fade {
    from {opacity: .5} 
    to {opacity: 1}
}

/* --- Footer Links & Rechts Layout --- */
footer {
    background-color: #333333;
    color: #ffffff;
    padding: 20px 5%;
    width: 100%; /* Sichert Symmetrie im Footer */
    margin-top: auto;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap; /* Hilft, falls die Links auf dem Handy zu lang sind */
    gap: 10px;
}

footer p {
    margin: 0;
}

/* --- Links wie normalen Text aussehen lassen --- */
.footer-link {
    color: #ffffff; 
    text-decoration: none; 
    cursor: default; 
}

.footer-link:hover {
    text-decoration: none; 
}

/* --- Mobile Optimierungen --- */
@media (max-width: 600px) {
    header {
        justify-content: space-between; /* Schiebt Logo nach links und Button nach rechts */
        flex-wrap: nowrap; /* Zwingt beide Elemente in dieselbe Zeile */
    }
    footer {
        flex-direction: column; /* Stapelt die Footer-Inhalte auf dem Handy untereinander */
        text-align: center;
        justify-content: center;
    }
}