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

/* Basis Stile */
body {
    font-family: Arial Black, sans-serif;
    background-color: #fff;
    color: #000;
    width: 100%;
    max-width: 446px; /* Maximalbreite für größere Bildschirme */
    margin: 0 auto; /* Zentrieren auf größeren Bildschirmen */
    padding: 0 10px; /* Etwas Abstand an den Rändern auf kleinen Geräten */
    margin-top: 60px;
}
/* Marquee - responsive */
.marquee-container {
    margin-top: 10px;
    height: 20px;
    width: 100%;
    border-radius: 4px;
    position: relative; 
    overflow: hidden; 
}

.marquee {
    position: absolute;
    animation: marquee-animation 20s linear infinite;
    white-space: nowrap;
}

.marquee img {
    height: 18px;
    max-width: 100%; /* Bild responsive machen */
}

@keyframes marquee-animation {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}



/* Main Container - responsive */
.container {
    margin-top: 4px;
    height: auto; /* Automatische Höhe */
    min-height: 400px; /* Mindesthöhe */
    width: 100%;
    max-width: 424px; /* Maximalbreite */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid #000;
    border-radius: 4px;
    padding: 10px;
    background-color: #fff;
    margin-left: auto;
    margin-right: auto;
}

/* Canvas responsive machen */
#pixelCanvas {
    width: 100% !important;
    height: auto !important;
    max-width: 404px; /* Container-Breite minus Padding */
    border: 0px solid #ccc;
    border-radius: 4px;
}

/* Media Queries für verschiedene Bildschirmgrößen */

/* Sehr kleine Handys (iPhone SE etc.) */
@media (max-width: 375px) {
    body {
        padding: 0 5px;
    }
}

/* Mittelgroße Handys */
@media (max-width: 414px) {
    .header-menu {
        justify-content: space-around;
    }
    
    .header-menu-container {
        width: 35%;
    }
    
    .clock-container {
        flex-direction: column;
        align-items: flex-end;
    }
    
    #date {
        margin-right: 0;
        margin-bottom: 2px;
    }
}

/* Kleine Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    body {
        max-width: 600px;
    }
    
    .container {
        max-width: 580px;
    }
    
    .info {
        max-width: 600px;
    }
    
    #pixelCanvas {
        max-width: 560px;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    body {
        padding: 20px 0;
    }
    
    .container {
        max-width: 424px;
    }
}

/* Hochformat/Landscape Anpassungen */
@media (orientation: landscape) and (max-height: 500px) {
    .container {
        min-height: 300px;
    }
    
    .header-menu {
        min-height: 20px;
    }
    
    .marquee-container {
        margin-top: 5px;
    }
}

/* Sehr große Bildschirme */
@media (min-width: 1600px) {
    body {
        max-width: 446px;
        padding: 40px 0;
    }
}

/* Touch Device Optimierungen */
@media (hover: none) and (pointer: coarse) {
    .header-icon-container {
        min-width: 30px;
        min-height: 30px;
    }
    
    .icon-links-container img {
        min-width: 24px;
        min-height: 24px;
    }
    
    /* Größere Touch Targets */
    button, .header-icon-container, .icon-links-container img {
        min-height: 44px;
        min-width: 44px;
    }
}