@charset "UTF-8";

/* CSS Document */

@media all {

    body {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 120%;
        color: #038BD2;
        text-align: center;
        background: #D0EAF6;
    }

    h1 {
        font-size: 120%;
    }

    #logo {
        background: #FFED00;
    }

    #topmenu {
        background: #ffffa0;
    }

    #topmenu ul {
        margin: 2% 0;
        padding: 0;
        list-style: none;
        line-height: normal;
        text-align: center;
    }

    #topmenu li {
        display: inline;
    }

    #topmenu a {
        height: 56px;
        padding: 10px 20px 10px 20px;
        letter-spacing: 1px;
        text-decoration: none;
        text-transform: uppercase;
        font-size: 80%;
        font-weight: bold;
        border: none;
        color: #008AD1;
    }

    #topmenu a:hover {
        color: #004d8d;
    }

    #logo {
        text-align: center;
    }

    .clear {
        clear: both;
    }

    #computer {
        background: #FFED00;
    }

    #kameras {
        background: #9BCD9B;
    }

    #aktionen {
        background: #FFED00;
    }

    #produkte {
        background: #FFED00;
    }

    #news {
        background: #EEB422;
    }

    #computer,
    #aktionen {
        color: #008AD1;
        background: #FFED00;
    }

    #kameras,
    #news {
        color: #FFED00;
        background: #008AD1;
    }

    /* #alles soll 75% breit sein und sich automatisch am Bildschirm zentrieren */
    #alles {
        text-align: left;
        background: #ffffa0;
        overflow: hidden;
        width: 75%;
        margin: 0 auto;
    }

    /* Anpassung der Bilder - Rahmen und Hover-Effekte */
    img {
        max-width: 100%;
        height: auto;
        border: 3px solid #008AD1;  /* Rahmen um die Bilder */
        border-radius: 10px;         /* Abgerundete Ecken */
        padding: 5px;                /* Abstand zum Rand des Rahmens */
        margin: 10px 0;              /* Abstand zwischen den Bildern */
        box-sizing: border-box;     /* Damit der Rahmen das Layout nicht bricht */
        transition: transform 0.3s ease, box-shadow 0.3s ease; /* Übergangseffekte */
    }

    /* Hover-Effekt auf die Bilder: Skalierung und Schatten */
    img:hover {
        transform: scale(1.05);  /* Bilder vergrößern sich leicht beim Hover */
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);  /* Schatten um das Bild */
    }

    footer {
        font-size: 90%;
        padding: 0.1% 0;
        background: #ffffa0;
    }

    /* Flexbox für Produktauswahl */
    #produkte {
        display: flex;
        justify-content: space-between;
        padding: 20px;
        box-sizing: border-box;
    }

    #angebote {
        display: flex;
        justify-content: space-between;
        padding: 20px;
        box-sizing: border-box;
    }

    #computer {
        width: 48%;
        padding: 10px;
        background-color: #FFED00;
        border-radius: 10px;
        text-align: center;
    }

    #kameras {
        width: 48%;
        padding: 10px;
        background-color: #9BCD9B;
        border-radius: 10px;
        text-align: center;
    }

    #aktionen,
    #news {
        width: 48%;
        padding: 20px;
        border-radius: 10px;
    }

}


@media screen and (max-width: 700px) {

    #produkte,
    #computer,
    #kameras,
    #angebote,
    #aktionen,
    #news {
        flex-direction: column;
        width: 100%;
    }

    #topmenu li {
        display: block;
        margin-bottom: 10px;
    }

    img {
        max-width: 100%;
        margin: 10px 0;
    }
}