/* Grundlegende Stile und Reset */
body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

h1, h2, h3 {
    color: #007bff; /* Eine Akzentfarbe */
    margin-bottom: 0.5em;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    margin-bottom: 1em;
    padding-left: 20px;
}

/* Header */
header {
    background-color: #f8f9fa; /* Hellgrauer Hintergrund (leicht silber) */
    color: #333; /* Textfarbe im Header auf Dunkelgrau geändert für besseren Kontrast */
    padding: 1em 20px;
    text-align: center;
}

header .logo {
    margin-bottom: 1em;
}

header .logo a {
    display: inline-block;
}

header .logo img {
    max-height: 80px;
    margin: 0 auto;
}

header h1 {
    color: #007bff; /* Akzentfarbe für die Hauptüberschrift im Header */
    margin-top: 0;
    font-size: 2em;
}

header p {
    margin-bottom: 0.5em;
}

header p a {
    color: #333; /* Linkfarbe im Header auf Dunkelgrau geändert für besseren Kontrast */
}

header .subheadline {
    font-size: 1.2em;
    color: #6c757d; /* Etwas hellere Farbe für die Subheadline */
}

header .button-container {
    margin-top: 1.5em;
}

/* Hauptinhalt */
main {
    padding: 20px;
    max-width: 960px;
    margin: 20px auto;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

main article {
    padding: 1em 0;
}

main article h2 {
    margin-top: 1.5em;
    border-bottom: 2px solid #ccc;
    padding-bottom: 0.3em;
}

main article h3 {
    margin-top: 1em;
}

main article ul, main article ol {
    margin-top: 0.5em;
}

/* Button */
.button {
    display: inline-block;
    padding: 12px 24px; /* Etwas größerer Button */
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em; /* Etwas größere Schrift */
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: 1em; /* Abstand zum Text darüber */
}

.button:hover {
    background-color: #0056b3;
    text-decoration: none;
}

.button.primary {
    font-weight: bold;
    background-color: #28a745; /* Grüne Farbe für den primären Button */
}

.button.primary:hover {
    background-color: #1e7e34;
}

/* Vergleichsangebot-Bereich */
.comparison-offer {
    background-color: #e9ecef; /* Hellgrauer Hintergrund für den Bereich */
    padding: 20px;
    margin: 20px 0; /* Abstand nach oben und unten */
    border-radius: 8px;
    text-align: center;
}

.comparison-offer p {
    font-size: 1.1em;
    color: #495057;
    margin-bottom: 0.5em;
}

/* Rechner-Bereich */
main .calculator-section {
    background-color: #f9f9f9; /* Hellgrauer Hintergrund */
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px; /* Abgerundete Ecken */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
    text-align: center; /* Zentriert den Inhalt */
}

main .calculator-section h2 {
    color: #007bff; /* Blaue Farbe für die Überschrift */
    margin-bottom: 15px;
}

main .calculator-section p {
    font-size: 1.1em;
    color: #555;
}

/* Footer */
footer {
    background-color: #343a40;
    color: #ccc;
    padding: 1em 20px;
    text-align: center;
    font-size: 0.9em;
}

footer nav ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1em;
}

footer nav ul li {
    display: inline;
    margin: 0 10px;
}

footer nav ul li a {
    color: #ccc;
    text-decoration: none;
}

footer nav ul li a:hover {
    color: white;
    text-decoration: underline;
}

/* 404 Seite */
main article.error-404 {
    text-align: center;
    padding: 3em 0;
}

main article.error-404 h1 {
    font-size: 3em;
    margin-bottom: 1em;
    color: #dc3545; /* Rote Farbe für Fehler */
}

main article.error-404 p {
    font-size: 1.2em;
    margin-bottom: 1.5em;
}

/* Responsive Design (kleinere Bildschirme) */
@media (max-width: 768px) {
    header {
        padding: 1em 10px;
    }

    header h1 {
        font-size: 1.7em;
    }

    header .subheadline {
        font-size: 1em;
    }

    main {
        padding: 15px;
        margin: 15px auto;
    }

    footer {
        padding: 1em 10px;
    }

    footer nav ul li {
        display: block;
        margin: 5px 0;
    }
}