/* --- START OF FILE style.css --- */

/* Verhindert horizontales Scrollen/Zoomen auf der gesamten Seite */
html,
body {
    overflow-x: hidden;
}

/* Universelles Box-Sizing für ein intuitiveres Layout-Modell */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    color: #333;
    background-color: #f9f9f9;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-weight: bold;
}

.btn-primary {
    background-color: #3575ff;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-back1 {
    background-color: #b5ff8a;
    color: white;
    font-size: 1.2em;
    padding: 15px 30px;
    z-index: 5000;
}


.btn-cta {
    background-color: #ff4757;
    color: white;
    font-size: 1.2em;
    padding: 15px 30px;
    z-index: 5000;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

.user-nav .btn {
    margin-left: 10px;
    padding: 8px 15px;
    font-size: 0.9em;
}





/* Hero Section Container */
.hero-section {
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
    padding: 20px; /* Reduzieren wir das Padding hier... */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px; /* Geben wir der Section eine feste Mindesthöhe */
    z-index: 1; 
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('hero-background.png') no-repeat center center/cover;
    filter: brightness(80%) blur(4px);
    z-index: 2;
}

/* WICHTIG: .hero-content wird zum Positions-Container */
.hero-content {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 10px;
    position: relative; /* Ändert nichts, aber stellt es sicher */
    z-index: 3;
    max-width: 900px; 
    width: 90%;
    /* NEU: Wir geben dem Container eine stabile Mindesthöhe */
    min-height: 280px; 
    display: flex;
    flex-direction: column;
    justify-content: center; /* Zentriert alles vertikal */
    align-items: center;
}

/* WICHTIG: Die H1 wird jetzt anders gestyled */
.hero-content h1 {
    font-size: 2.8em; 
    font-weight: bold;
    margin: 0; /* Entfernt Standard-Margin */
    line-height: 1.3;
    /* Animation bleibt gleich */
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.hero-content h1.is-hiding {
    opacity: 0;
    transform: translateY(15px);
}

/* H2 wird ebenfalls angepasst */
.hero-content h2 {
    font-size: 1.5em;
    font-weight: normal;
    margin: 1em 0; /* Wir steuern den Abstand jetzt präziser */
    max-width: 700px; /* Verhindert, dass die H2 zu breit wird */
}


/* /* /* /* /* /* /* /* /* /* /* /* /* /* 



/* Sections General */
section {
    padding: 60px 50px;
    text-align: center;
}

section h3 {
    font-size: 2em;
    margin-bottom: 40px;
}

/* Categories Section */
.category-boxes {
    display: flex;
    justify-content: space-around;
    gap: 30px;
}

.category-box {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex-basis: 30%;
}

.category-box h4 {
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 15px;
}

.icon-placeholder {
    font-size: 1.2em;
    color: #6c757d;
}

/* Agents Section */
.agents-section {
    background-color: #343a40;
    color: white;
    overflow-x: hidden; /* DIESE ZEILE IST DIE LÖSUNG */
}

.agents-text {
    flex: 1;
}

.agents-text h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

/* Testimonials Section */
.testimonials {
    display: flex;
    justify-content: space-around;
    gap: 30px;
}

.testimonial {
    background-color: #ffffff;
    padding: 20px;
    border-left: 5px solid #007bff;
    flex-basis: 45%;
    text-align: left;
}

.testimonial blockquote {
    margin: 0;
    font-style: italic;
}

.testimonial cite {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

/* Blog Section */
.blog-posts {
    display: flex;
    justify-content: space-around;
    gap: 30px;
}

.blog-post {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex-basis: 45%;
    text-align: left;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease-out;
    box-sizing: border-box; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.modal-content .btn-primary {
    display: block; 
    width: 80%;
    padding: 12px;
    font-size: 1.1em;
    margin: 20px auto 0 auto;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .main-header {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* ANGEPASST */
    .hero-section {
        padding: 20px;
        min-height: 650px; /* Etwas weniger Höhe auf Mobilgeräten */
    }

    /* ANGEPASST */
    .hero-content h1 {
        font-size: 1.8em; /* Kleinere Schrift für Mobilgeräte */
    }
    
    /* ANGEPASST */
    .hero-content h2 {
        font-size: 1.2em;
        line-height: 1.4;
    }
    
    section {
        padding: 40px 20px;
    }

    .modal-content {
        padding: 20px;
    }

    .category-boxes,
    .testimonials,
    .blog-posts {
        flex-direction: column;
        gap: 20px;
    }

    .category-box,
    .testimonial,
    .blog-post {
        flex-basis: auto; 
        width: 100%;
    }

    .agents-content {
        flex-direction: column;
        text-align: center;
    }

    .agents-text h2 {
        font-size: 2em;
    }
    
    .static-page-container {
        padding: 30px 20px;
    }
}

.subtext-cta {
    font-size: 0.9em;
    font-style: italic;
    margin-top: 15px;
    opacity: 0.8;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

/* Styling für das Accordion */
.accordion {
    margin-top: 20px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #f7f7f7;
    cursor: pointer;
    font-size: 0.95em;
    user-select: none;
}

.accordion-icon {
    font-size: 1.5em;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion.is-open .accordion-content {
    max-height: 150px;
    padding: 15px;
    border-top: 1px solid #ddd;
}

.accordion.is-open .accordion-icon {
    transform: rotate(45deg);
}

/* Styling für die vertrauensbildende Notiz */
.form-trust-note {
    display: flex;
    align-items: center;
    background-color: #f0f4f8;
    color: #4a5568;
    padding: 12px 15px;
    border-radius: 5px;
    margin-top: 25px;
    margin-bottom: 25px;
    border-left: 4px solid #4299e1;
}

.trust-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-right: 12px;
    color: #4299e1;
}

.trust-text {
    font-size: 0.9em;
    line-height: 1.5;
}

/* Container for static content pages (like Privacy Policy, Imprint etc.) */
.static-page-container {
    max-width: 960px;
    margin: 40px auto;
    padding: 30px 50px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: left;
}

.static-page-container h2 {
    text-align: center;
    font-size: 2.2em;
    color: #333;
    margin-bottom: 20px;
}

.static-page-container h3 {
    font-size: 1.6em;
    color: #343a40;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 8px;
}

.static-page-container p, 
.static-page-container li {
    line-height: 1.7;
    color: #495057;
}

.static-page-container a {
    color: #007bff;
}

.static-page-container a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.static-page-container strong {
    color: #343a40;
}

