/* Reset einige Standardbrowserstile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Grundlegende Stile */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    padding: 20px;
    margin: 0;
    padding: 0;
    height: 100vh; /* Viewport height, damit das Bild den gesamten Bildschirm ausfüllt */
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('sachs.jpg'); /* Ersetze den Pfad durch den tatsächlichen Pfad zu deinem Bild */
    background-position: center; /* Zentriert das Bild */
    background-repeat: no-repeat; /* Verhindert das Wiederholen des Bildes */
    background-size: cover; /* Skaliert das Bild, um den gesamten Hintergrund zu füllen */
    background-attachment: fixed; /* Das Hintergrundbild bleibt beim Scrollen fixiert */
        color: #fff; /* Weißer Text für den Kontrast zum Hintergrundbild */
    text-align: center;
    font-family: Arial, sans-serif;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Halbtransparenter Hintergrund für den Inhalt */
    border-radius: 10px;
    overflow: hidden;
}

/* Layout für Header, Main und Footer */
header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

header nav ul {
    list-style: none;
}

header nav ul li {
    display: inline;
    margin-right: 10px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
}

header nav ul li a:hover {
    text-decoration: underline;
}

main {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0;
}

main article {
    flex: 2;
    padding: 20px;
    background-color: #fff;
    margin-right: 20px;
}

main aside {
    flex: 1;
    padding: 20px;
    background-color: #fff;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Stile für Überschriften und Text */
h1, h2 {
    color: #333;
    margin-bottom: 10px;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.5em;
}

p {
    margin-bottom: 15px;
}

/* Responsive Design für kleinere Bildschirme */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }

    main article {
        margin-right: 0;
    }
}

/* Blasen-Container */
.bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Verhindert Scrollbalken durch Blasen, die außerhalb des Bereichs fallen */
    z-index: -1; /* Stellt sicher, dass die Blasen hinter dem Hauptinhalt liegen */
}

.bubbles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.2); /* Halbtransparente weiße Blasen */
    animation: animate 25s linear infinite; /* Animation der Blasen */
    bottom: -150px; /* Startposition unterhalb des Bildschirms */
    border-radius: 50%; /* Runde Blasen */
}

/* Zufällige Größen für die Blasen */
.bubbles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.bubbles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.bubbles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.bubbles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.bubbles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.bubbles li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.bubbles li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.bubbles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.bubbles li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.bubbles li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

/* Animation der Blasen */
@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg); /* Blasen steigen nach oben */
        opacity: 0; /* Blasen werden unsichtbar */
        border-radius: 50%;
    }
}