* {
    padding: 0; margin: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

nav {
    width: 100%;
    background-color: #4b0082;
    padding: 15px 0;
    text-align: center;
}

nav a {
    color: #f5f5f5;
    text-decoration: none;
    margin: 0 20px;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    background-color: #6a0dad;
    border-radius: 5px;
    transition: 0.3;
    padding: 0.5em;
}

.container {
    max-width: 900px;
    background-color: #f5f5f5;
    margin: 40px auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    text-align: center;
}

.containerinfo {
    max-width: 300px;
    padding: auto;
    margin: auto;
    color: blueviolet;
    background-color: lightslategray;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.container-rechner {
    width: 900px;
    background-color: #25232331;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    text-align: center;
}

#game{
    max-width: 80px;
    max-height: 80px;
    padding: 4px;
    margin: 50px;
    background-color: rgba(23, 20, 20, 0.68); 
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

h1 {
    color: #4b0082;
}

p {
    line-height: 1.6;
    color: #333;
}

#btn {  /* id="..." oder class="..." */
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #4b0082;
    color: #f5f5f5;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3;
}

#btn:hover {  /* id="..." oder class="..." */
    background-color: #6a0dad;
}

#class1 {
    background-color: #6a0dad;
    border-radius: 5px;
    transition: 0.3;
    padding: 0.5em;
}

footer {
    background-color: #4b0082;
    position: fixed;
    bottom: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #f5f5f5;
    text-align: center;
    width: 100%;
}

/* Erklärungen → ... */
/* id="c1" = #c1 */ 
/* class="c1" = .c1 */
/* 
border-radius: 5px; → Abgerundete Ecken

display: inline-block; → verhält sich wie Text, aber mit Block-Eigenschaften.

margin-top: 20px; → Abstand nach oben.

padding: 10px 20px; → Innenabstand (oben/unten 10px, links/rechts 20px).

background-color: #4b0082; → lila Hintergrund.

color: #f5f5f5; → weiße Schrift.

border-radius: 5px; → abgerundete Ecken.

text-decoration: none; → keine Unterstreichung.

transition: 0.3; → Animationseffekte laufen über 0,3 Sekunden.

line-height: 1.6; → Zeilenabstand 1,6-fach.

color: #333; → dunkelgraue Schrift.

max-width: 900px; → maximale Breite 900px.

background-color: #f5f5f5; → hellgrauer Hintergrund.

margin: 40px auto; → oben/unten 40px Abstand, links/rechts automatisch → zentriert.

padding: 30px; → Innenabstand 30px.

border-radius: 10px; → abgerundete Ecken.

box-shadow: 0 0 20px rgba(0,0,0,0.1); → leichter Schatten.

text-align: center; → Text mittig.

color: #f5f5f5; → Schriftfarbe hellgrau/weiß.

text-decoration: none; → entfernt Unterstreichung.

margin: 0 20px; → Abstand zwischen Links (links/rechts 20px).

font-weight: bold; → fettgedruckt.

transition: color 0.3s; → Farbwechsel läuft weich über 0,3 Sekunden.

width: 100%; → nimmt die gesamte Breite ein.

background-color: #4b0082; → lila Hintergrund.

padding: 15px 0; → Innenabstand oben/unten 15px, links/rechts 0.

text-align: center; → Links werden mittig ausgerichtet.

font-family → Schriftart: zuerst Arial, dann Helvetica, dann Standardschrift.

background-color: #f5f5f5; → hellgrauer Hintergrund.

display: flex; → aktiviert Flexbox-Layout.

flex-direction: column; → Elemente werden untereinander angeordnet.

align-items: center; → Inhalte horizontal zentriert.

* = Universalselektor → betrifft alle Elemente.

padding: 0; → entfernt Innenabstand.

margin: 0; → entfernt Außenabstand. → Ergebnis: Einheitlicher Startpunkt, keine Browser-Standardabstände.

nav a:hover {color: gray;} → Wenn Maus über Link → Schriftfarbe wird grau.

Reset (*) → alles auf Null.

Body → Grundlayout mit Flexbox.

Nav → Menüleiste oben, zentriert.

Links → hell, fett, mit Hover-Effekt.

Container → zentrale Box mit Schatten und Rundungen.

h1/p → Farben und Lesbarkeit.

Button → klickbarer Block mit Hover-Effekt.

Footer → Balken unten, über die ganze Breite.