:root {
    --primary-color: #0056b3; /* Dunkelblau für Akzente */
    --secondary-color: #f8f9fa; /* Helles Grau für Hintergründe */
    --text-color: #343a40; /* Dunkler Text */
    --light-text-color: #6c757d; /* Hellerer Text für Details */
    --header-bg: #ffffff;
    --footer-bg: #212529; /* Dunkles Grau für Footer */
    --border-color: #e9ecef; /* Dezente Rahmen */
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

header {
    background-color: var(--header-bg);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    box-shadow: 0 2px 5px var(--shadow-light);
}

header h1 {
    margin: 0 0 20px 0; /* Mehr Abstand nach unten */
    color: var(--primary-color);
    font-size: 2.8em; /* Etwas größer */
    font-weight: 700;
    letter-spacing: -0.5px; /* Leichter Letter-Spacing für Eleganz */
    text-shadow: 1px 1px 2px var(--shadow-light); /* Subtiler Schatten */
}

/* .header-image wurde entfernt */

nav {
    background-color: var(--primary-color);
    border-radius: 8px; /* Etwas größere Rundung */
    margin-top: 25px; /* Mehr Abstand zum Titel */
    box-shadow: 0 2px 8px var(--shadow-medium); /* Dezenter Schatten für die Navigation */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li a {
    display: block;
    color: white;
    text-align: center;
    padding: 15px 25px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 600;
}

nav ul li a:hover {
    background-color: #004085; /* Dunklerer Blauton */
    transform: translateY(-2px);
    border-radius: 5px; /* Rundung auch beim Hover */
}

main {
    padding: 0; /* Entfernt das Padding, da Sektionen ihr eigenes Padding haben */
}

.hero-section {
    background: url('../images/banner.jpg') no-repeat center center/cover;
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px var(--shadow-medium);
    position: relative; /* Für das Overlay */
    overflow: hidden; /* Stellt sicher, dass das Bild nicht überläuft */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparente dunkle Überlagerung */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2; /* Stellt sicher, dass der Inhalt über dem Overlay liegt */
}

.hero-section h2 {
    font-size: 3em;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-section .tagline {
    font-size: 1.3em;
    margin-bottom: 20px; /* Etwas weniger Abstand zum Telefon */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-phone {
    font-size: 1.8em; /* Große Schrift für die Telefonnummer */
    font-weight: 700;
    color: white; /* Weiße Schriftfarbe */
    margin-top: 20px;
    margin-bottom: 30px; /* Abstand nach unten */
}

.hero-phone a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-phone a:hover {
    color: #e0e0e0; /* Leichter Hover-Effekt */
}

.hero-phone i {
    margin-right: 10px;
    color: #28a745; /* Grünes Icon */
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 5px;
}

.btn-primary {
    background-color: #28a745; /* Grüner Button für CTA */
    color: white;
    border: 2px solid #28a745;
}

.btn-primary:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.content-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Abstand zwischen den Spalten */
    padding: 0 20px; /* Padding für die gesamte Sektion */
}

.main-content {
    flex: 3;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-light);
    min-width: 60%; /* Mindestbreite für den Inhalt */
}

.sidebar {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-light);
    min-width: 250px; /* Mindestbreite für die Sidebar */
}

.sidebar h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.4em;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.facebook-widget {
    text-align: center;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--secondary-color);
}

.facebook-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 5px;
}

.facebook-button {
    background-color: #1877f2; /* Facebook Blau */
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none; /* Für den Fall, dass es ein Link ist */
}

.facebook-button:hover {
    background-color: #166fe5;
    transform: translateY(-1px);
}

footer {
    background-color: var(--footer-bg);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    box-shadow: 0 -2px 5px var(--shadow-light);
}

footer p {
    margin: 5px 0;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 8px var(--shadow-light);
    border-radius: 8px;
    overflow: hidden; /* Für abgerundete Ecken der Tabelle */
}

table th, table td {
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    text-align: left;
}

table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}

table tr:hover {
    background-color: #e9e9e9;
}

.address-block {
    background-color: #e9f7ef; /* Helle grüne Hintergrundfarbe */
    border-left: 5px solid #28a745; /* Grüner Rand */
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 5px var(--shadow-light);
}

.address-block p {
    margin: 5px 0;
    font-size: 1.1em;
}

.address-block i {
    margin-right: 10px;
    color: var(--primary-color);
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.benefits-list li {
    background-color: var(--secondary-color);
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px var(--shadow-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefits-list li i {
    color: var(--primary-color);
    font-size: 1.2em;
}

.benefits-list li {
    font-weight: normal; /* Stellt sicher, dass der gesamte Text nicht fett ist */
}

.benefits-list li strong {
    font-weight: bold; /* Macht nur den hervorgehobenen Teil fett */
}

.impressum-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.impressum-details h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 1.2em;
}

.impressum-details p {
    margin-bottom: 8px;
}

.content-image {
    max-width: 100%;
    height: auto;
    display: block; /* Zentriert das Bild */
    margin: 30px auto; /* Abstand oben/unten und zentriert */
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-light);
}

/* Responsive Design */
@media (max-width: 992px) {
    .content-section {
        flex-direction: column;
        padding: 0;
    }

    .main-content, .sidebar {
        margin-bottom: 20px;
        min-width: unset;
    }

    .hero-section {
        padding: 60px 20px;
    }

    .hero-section h2 {
        font-size: 2.5em;
    }

    .hero-section .tagline {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li a {
        padding: 10px 15px;
    }

    .main-content, .sidebar {
        padding: 20px;
    }

    .hero-section {
        padding: 40px 15px;
    }

    .hero-section h2 {
        font-size: 2em;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }

    header h1 {
        font-size: 1.8em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .hero-section h2 {
        font-size: 1.8em;
    }

    .hero-section .tagline {
        font-size: 1em;
    }
}
