/* Grundsätzlich: Körper hat keinen Rand und einen Hintergrund */

body {
    margin: 0px;
    background-color: #DDEEF4;
}


/* Main: zentriert, mit Schatten, etwas padding und abgerundeten Ecken */

main {
    background: #B0B0B0;
    margin: 20px auto;
    padding: 20px;
    width: 80%;
    border-radius: 10px;
    box-shadow: 0 0 20px #0003;
}


/* Hauptüberschrift im Main: zentriert, etwas kleiner, mit Unterstrich */

main h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5em;
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
}


/* Section: kleiner Bereich für Inhalt, mit Hintergrund, Schatten und etwas Abstand */

main section {
    background: #E0E0E0;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px #0002;
    width: 40%;
}


/* Sections werden abwechselnd links und rechts geschwommen */

main section:nth-child(odd) {
    float: left;
    clear: left;
}

main section:nth-child(even) {
    float: right;
    clear: right;
}


/* Abschnittsüberschrift etwas kleiner und etwas Abstand zum Inhalt */

main section h3 {
    margin-bottom: 15px;
    color: #000;
    font-size: 1.2em;
}


/* Text im Abschnitt mit normalen Zeilenabständen und kleinerer Typographie */

main section p {
    margin: 0;
    color: #000;
    font-size: 1em;
    line-height: 1.4;
}


/* Responsive: bei kleinerer Ansicht wird das Layout untereinander gestapelt */

@media (max-width: 768px) {
    main section {
        float: none;
        width: 100%;
    }
}


/* Footer: etwas Abstand zum Inhalt, zentriert, mit Hintergrund */

footer {
    clear: both;
    margin-top: 20px;
    padding: 20px;
    text-align: center;
    background: darkgray;
}