/* ===== GRUNDEINSTELLUNGEN & VARIABLEN ===== */
:root {
    --primary-color: #007bff; /* Blauton als Hauptfarbe */
    --secondary-color: #6c757d; /* Grauton für Sekundäres */
    --background-light: #f8f9fa; /* Heller Hintergrund */
    --text-color: #333;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --base-font-size: 16px; /* Basis-Schriftgröße */
    --line-height: 1.7;
    --container-width: 1140px;
    --border-radius: 5px;
    --transition-speed: 0.3s;
}

/* Reset & Basis */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Sanftes Scrollen bei Anker-Links */
    font-size: var(--base-font-size); /* Basis für REM-Einheiten */
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: var(--line-height);
    background-color: #fff;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; color: var(--secondary-color); }
h4 { font-size: 1.2rem; color: var(--text-color); margin-top: 1rem;}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: #0056b3; /* Dunkleres Blau beim Hover */
    text-decoration: underline;
}

ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

ul li {
    padding-left: 1.5em;
    position: relative;
    margin-bottom: 0.5rem;
}

/* Benutzerdefinierte Listenpunkte */
.features ul li::before,
.offer-item ul li::before {
    content: '✔';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}
.offer-item h4 + ul li::before { content: ''; display: none; }
.offer-item h4 + ul li { padding-left: 0; }


img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

blockquote {
    font-style: italic;
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    border-left: 4px solid var(--primary-color);
    color: var(--secondary-color);
}

/* ===== LAYOUT ===== */
.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

section {
    padding: 60px 0;
}

section:nth-of-type(odd) {
    background-color: var(--background-light);
}

/* Grid Layout */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }

.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    margin-left: 25px;
    padding-left: 0;
}
.main-nav ul li::before { content: ''; }

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    padding: 5px 0;
    position: relative;
    transition: color var(--transition-speed) ease;
}

.main-nav ul li a:hover,
.main-nav ul li a:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a:focus::after { width: 100%; }

/* ===== HERO SECTION ===== */
.hero-section {
    background-color: var(--background-light);
    text-align: center;
    padding: 80px 0;
}

.hero-section h1 { color: var(--primary-color); }

.intro {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
}
.intro-secondary {
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.features {
    margin: 2.5rem auto;
    max-width: 500px;
    text-align: left;
}
.features h2 {
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.5rem;
}
.features ul { margin-top: 1rem; }

.highlight-box {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.highlight-box h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    margin: 5px;
}
.btn:disabled { /* Style für deaktivierten Button während Senden */
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-primary { background-color: var(--primary-color); color: #fff; }
.btn-primary:hover:not(:disabled) {
    background-color: #0056b3;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.cta-buttons { margin-top: 1.5rem; }

/* ===== ABOUT SECTION ===== */
.about-section .grid-layout { align-items: flex-start; }
.about-image img { box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* ===== OFFER SECTION ===== */
.offer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 2rem;
}

.offer-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.offer-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* ===== CONTACT SECTION ===== */
.contact-section { background-color: var(--background-light); }

#contact-form {
    max-width: 600px;
    margin: 2rem auto 0 auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.privacy-notice {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}
.privacy-notice a { color: var(--primary-color); }
.privacy-notice a:hover { text-decoration: underline; }

#contact-form button[type="submit"] {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* STATUSMELDUNGEN FORMULAR */
.form-status-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    display: none; /* Standardmäßig ausgeblendet */
    font-weight: 600;
}
.form-status-message.visible { /* Klasse zum Einblenden (kann auch direkt 'block' sein) */
    display: block;
}
.form-status-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.form-status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.form-status-message.loading { /* Optional für "Sende..." */
     background-color: #e2e3e5;
     color: #383d41;
     border: 1px solid #d6d8db;
}


.contact-direct {
    text-align: center;
    margin-top: 2.5rem;
    color: var(--secondary-color);
}
.contact-direct span a {
    color: var(--primary-color);
    font-weight: 600;
}
.contact-direct span a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.site-footer {
    background-color: #333;
    color: #ccc;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}
.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.site-footer p { margin-bottom: 0.5rem; }
.footer-nav a {
    color: #ccc;
    text-decoration: none;
    margin: 0 10px;
    transition: color var(--transition-speed) ease;
}
.footer-nav a:hover { color: #fff; text-decoration: underline; }

/* ===== VISUELLE EFFEKTE (FADE-IN) ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    section { padding: 80px 0; }
    .hero-section { padding: 100px 0; }
    .grid-layout { grid-template-columns: repeat(2, 1fr); gap: 50px; }
    .about-image { order: 1; }
    .about-text { order: 0; }
    .offer-grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer .container { flex-direction: row; justify-content: space-between; }
    .site-footer p { margin-bottom: 0; }
}

@media (min-width: 992px) { h1 { font-size: 3.5rem; } }

@media (max-width: 767px) {
    .main-nav { flex-direction: column; }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 1rem; /* Abstand zum Logo */
        /* display: none; // Für Burger-Menü Toggle */
    }
    /* .main-nav ul.active { display: flex; } */
    .main-nav ul li { margin: 10px 0; margin-left: 0; }
    /* Optional: Burger-Icon hinzufügen */
    /* .menu-toggle { display: block; ... } */
}

/* Accessibility: Fokus-Stile */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
  box-shadow: none; /* Überschreibt ggf. Browser-Defaults oder :focus-styles */
}
/* Speziell für Inputs/Textarea, da der Browser-Default oft gut ist */
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color); /* Behält den Border-Fokus bei */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); /* Behält den Shadow-Fokus bei */
    outline: none; /* Entfernt die zweite Outline, wenn Shadow + Border ausreichen */
}

/* ===== MOBILE NAVIGATION & HAMBURGER MENU ===== */

.menu-toggle {
    display: none; /* Standardmäßig auf Desktop versteckt */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px; /* Klickfläche vergrößern */
    margin-left: auto; /* Nach rechts schieben, wenn im Flex-Container */
    z-index: 1010; /* Über dem Menü, falls es überlappt */
}

/* Visuelles Styling für das Icon (3 Striche) */
.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    display: block;
    background-color: var(--primary-color); /* Farbe der Striche */
    height: 3px; /* Dicke der Striche */
    width: 25px; /* Breite der Striche */
    border-radius: 3px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.menu-toggle-icon::before {
    transform: translateY(-8px); /* Abstand oberer Strich */
}

.menu-toggle-icon::after {
    transform: translateY(5px); /* Abstand unterer Strich (+3px Höhe) */
}


/* Mobile Ansicht (z.B. unter 768px) */
@media (max-width: 767px) {
    .main-nav {
        display: flex; /* Sicherstellen, dass es ein Flex-Container ist */
        flex-direction: row; /* Sicherstellen, dass Elemente nebeneinander sind (Standard) */
        justify-content: space-between; /* Schiebt Logo nach links, Button nach rechts */
        align-items: center; /* Zentriert beide Elemente vertikal */
        position: relative; /* Beibehalten für das Dropdown-Menü */
    }


    .menu-toggle {
        display: block; /* Beibehalten: Hamburger auf Mobile anzeigen */
    }

    .main-nav ul {
        display: none; /* Menüliste standardmäßig verstecken */
        flex-direction: column;
        width: 100%;
        position: absolute; /* Aus dem normalen Fluss nehmen */
        top: 100%; /* Direkt unter dem Header beginnen */
        left: 0;
        background-color: #fff; /* Hintergrund für das aufklappende Menü */
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        padding: 1rem 0;
        margin-top: 0; /* Kein Abstand mehr nach oben */
        z-index: 1000; /* Stellt sicher, dass es über dem Inhalt liegt */
    }

    .main-nav ul.active {
        display: flex; /* Menü anzeigen, wenn Klasse 'active' gesetzt ist */
    }

    .main-nav ul li {
        margin: 0; /* Kein horizontaler Abstand */
        width: 100%;
        text-align: center;
    }

    .main-nav ul li a {
        padding: 1rem; /* Größere Klickfläche */
        display: block; /* Nimmt ganze Breite ein */
        border-bottom: 1px solid #eee; /* Trennlinien */
    }
     .main-nav ul li:last-child a {
        border-bottom: none;
    }
    .main-nav ul li a::after {
         display: none; /* Unterstrich-Animation hier nicht nötig */
    }

    /* Optional: Animation für Hamburger -> X */
    .menu-toggle.active .menu-toggle-icon {
        background-color: transparent; /* Mittleren Strich ausblenden */
    }
    .menu-toggle.active .menu-toggle-icon::before {
        transform: translateY(0px) rotate(45deg);
    }
    .menu-toggle.active .menu-toggle-icon::after {
        transform: translateY(-3px) rotate(-45deg); /* Korrigierter Abstand */
    }
}

/* Sicherstellen, dass Desktop-Ansicht weiterhin funktioniert */
@media (min-width: 768px) {
    .main-nav ul {
        display: flex !important; /* Wichtig, um display:none zu überschreiben */
        flex-direction: row;
        position: static; /* Zurück zum normalen Fluss */
        width: auto;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        margin-top: 0; /* Reset */
        order: initial; /* Reset */
    }
    .main-nav ul li {
         margin-left: 25px; /* Usprünglicher Abstand */
         width: auto;
         text-align: left;
    }
     .main-nav ul li a {
         padding: 5px 0; /* Ursprüngliches Padding */
         display: inline; /* Ursprüngliches Display */
         border-bottom: none; /* Reset */
    }
    .menu-toggle {
        display: none; /* Hamburger auf Desktop verstecken */
    }
}