/* Grundlegendes Reset und Box-Sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styling */
header {
    background-color: #222;
    color: #fff;
    padding: 10px 0;
}

.header-links {
    text-align: center;
}

.header-links a {
    color: #bbb; /* Angepasste Linkfarbe für besseren Kontrast */
    text-decoration: underline; /* Hinzugefügt: Unterstreichung */
    margin: 0 10px;
    font-size: 0.9rem;
}

.header-links a:hover {
    color: #fff;
}

.separator {
    color: #555;
    margin: 0 5px;
}

/* Main Content Styling */
main {
    padding: 20px 0;
}

h1, h2, h3 {
    color: #0056b3;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5rem;
    margin-top: 0;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

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

li {
    margin-bottom: 8px;
}

a {
    color: #004494; /* Angepasste Linkfarbe für besseren Kontrast */
    text-decoration: underline; /* Hinzugefügt: Unterstreichung */
}

a:hover {
    text-decoration: underline;
}

strong {
    font-weight: bold;
}

/* Styling für den Auto-Wahl-Container */
.auto-wahl-container {
    margin-top: 40px; /* Oberer Abstand */
    margin-bottom: 40px; /* Unterer Abstand */
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
    text-align: center;
}

.auto-wahl-container h2 { /* Geändert von h3 zu h2 */
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.75rem;
}

.auto-wahl-optionen {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.auto-wahl-optionen label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
    color: #555;
}

.auto-wahl-optionen input[type="radio"] {
    width: 16px;
    height: 16px;
}

/* Styling für den Vergleichsrechner-Button */
.vergleichsrechner-button {
    background-color: #198754; /* Dunkelgrün */
    color: white;
    border: none;
    padding: 12px 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.vergleichsrechner-button:hover {
    background-color: #14532d; /* Noch dunkleres Grün */
}

/* Tabellen Styling */
.table-container {
    overflow-x: auto; /* Ermöglicht horizontales Scrollen auf kleinen Bildschirmen */
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    background-color: #fff;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #f0f0f0;
    font-weight: bold;
}

/* Footer Styling */
footer {
    background-color: #222;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-links a {
    color: #bbb; /* Angepasste Linkfarbe für besseren Kontrast */
    text-decoration: underline; /* Hinzugefügt: Unterstreichung */
    margin: 0 15px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links p {
    margin: 0;
}

/* Spezieller Stil für den Rechner-Platzhalter */
.calculator-placeholder {
    background-color: #e9ecef;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}

.calculator-placeholder p {
    margin-bottom: 10px;
}

.calculator-placeholder button {
    background-color: #0056b3; /* Dunkleres Blau für besseren Kontrast */
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calculator-placeholder button:hover {
    background-color: #003d82; /* Noch dunkleres Blau */
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .header-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .separator {
        display: none;
    }

    .header-links a {
        margin: 5px 0;
    }

    .footer-links {
        flex-direction: column;
    }

    .footer-links a {
        margin: 5px 0;
    }
}

@media (max-width: 600px) {
    .auto-wahl-optionen {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}