/* Allgemeines Reset */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Cookie Banner Styling */
.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    font-size: 1rem;
    z-index: 9999;
    display: block; /* Banner wird angezeigt, wenn es aktiv ist */
}

.cookie-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cookie-btn:hover {
    background-color: #45a049;
}



body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #8f9a7f;
    color: #ffffff;
}

/* Gesamtes Layout */
.seitenlayout {
    min-height: 100vh; /* Der Body muss mindestens die Bildschirmhöhe einnehmen */
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: #41556b;
    padding: 10px;
    text-align: center;
    color: white;
    font-size: larger;
}

header p {
    font-size: medium;
    margin-top: -7px;
}

/* Hauptinhalt */
main {
    flex: 1; /* Der Main-Bereich nimmt den verbleibenden Platz ein */
}

.hauptteil {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 70px;
    background-color: #f5f5f5;
    color: #333;
    border-radius: 10px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.seiten {
    display: flex;
    flex-wrap: wrap; /* Damit die Bilder untereinander angeordnet werden, wenn nötig */
}

.Bilder {
    display: flex;
    flex-direction: column;
}

.Bilder img {
    border-style: solid;
    border-color: black;
    border-width: 2px;
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 8px 8px rgba(0,0,0,0.1);
}

.Einnahmen {
    margin-right: 20px;
    width: 370px;
}

.Fixkosten {
    width: 320px;
    margin-right: 70px;
    margin-top: 20px;
}

.Variabel {
    width: 350px;
    margin-right: 20px;
    margin-left: 12px;
}

.Übersicht {
    width: 220px;
    margin-top: 30px;
    margin-left: 30px;
}

/* Features */
.features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.feature {
    background-color: #e4e4e4;
    padding: 15px;
    border-radius: 8px;
}

/* Call to Action Button */
.cta {
    text-align: center;
    margin-top: 30px;
}

.cta button {
    padding: 15px 30px;
    font-size: 1rem;
    background-color: #41556b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.cta button:hover {
    background-color: #2e3c4d;
}

/* Footer */
footer {
    background-color: #41556b;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* Footer Links */
footer a {
    color: #ccc;
    text-decoration: none;
}

/* Footer Links Hover */
footer a:hover {
    text-decoration: underline;
}

/* Media Queries */
@media (max-width: 1200px) {
    .hauptteil {
        padding: 30px 40px;
    }

    .Einnahmen, .Fixkosten, .Variabel, .Übersicht {
        width: 100%; /* Bilder nehmen volle Breite ein, damit sie nebeneinander besser anordbar sind */
        margin-right: 0;
        margin-left: 0;
    }

    .cta button {
        width: 100%; /* Button auf volle Breite bei kleinen Geräten */
    }
}

@media (max-width: 768px) {
    .seiten {
        flex-direction: column; /* Bilder untereinander anordnen */
        align-items: center;
    }

    .Einnahmen, .Fixkosten, .Variabel, .Übersicht {
        width: 90%; /* Bilder etwas breiter auf Smartphones */
        margin: 10px 0;
    }

    .cta {
        padding: 10px 0;
    }

    .cta button {
        font-size: 1.2rem; /* Größerer Button auf kleineren Geräten */
        padding: 18px 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem; /* Kleinere Schriftgröße für den Header */
    }

    .cta p {
        font-size: 0.9rem; /* Etwas kleinere Schrift für die Call-to-Action-Information */
    }

    .hauptteil {
        padding: 20px 30px;
    }

    .feature {
        font-size: 0.9rem; /* Kleinere Schriftgröße für Features */
    }

    .footer p {
        font-size: 0.8rem; /* Noch kleinere Schriftgröße für den Footer */
    }
}
