/* ================================================= */
/* 1. Globale Stile & RTL-Anpassungen (Dark Mode)  */
/* ================================================= */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a; /* Dunkler Hintergrund */
    color: #f0f0f0;
    line-height: 1.6;
}

header {
    background-color: #000;
    padding: 15px 5%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center; /* Logo zentrieren */
}

.logo {
    max-height: 60px;
}

/* ================================================= */
/* 2. Hauptlayout (Desktop) - HIER IST DIE WICHTIGE ÄNDERUNG! */
/* ================================================= */
.hero-section {
    display: flex; /* WICHTIG: Flexbox aktivieren */
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px 5%;
    flex-direction: row; /* Zwingt den Inhalt auf den Desktop nach LINKS und das Formular nach RECHTS */
}

.content-container {
    flex: 2; /* Nimmt mehr Platz ein als das Formular */
    min-width: 300px;
    order: 1; /* Inhalt zuerst */
    padding-right: 40px; /* Standardmäßig für LTR, wird für RTL angepasst */
}

/* RTL-Anpassung: Padding für den Inhalt */
[dir="rtl"] .content-container {
    padding-right: 0;
    padding-left: 40px;
}

.main-headline {
    color: #FFD700;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.sub-headline {
    color: #bbb;
    font-size: 1.2em;
    margin-bottom: 30px;
}

.media-placeholder {
    min-height: 350px;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

/* ================================================= */
/* 3. USP-Sektion (Bilder und Text) - HIER SIND AUCH WICHTIGE ÄNDERUNGEN! */
/* ================================================= */
.usp-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center; /* Zentriert die USP-Elemente */
}

.usp-item {
    flex-basis: calc(33.33% - 20px); /* 3er-Teilung mit 20px Gap, flex-basis reduziert */
    max-width: 300px; /* Begrenzt die maximale Breite jeder USP-Box */
    padding: 0;
    line-height: 1.4;
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* USP BILDER */
.usp-full-image {
    width: 100%;
    height: 140px; /* ETWAS HÖHER GEMACHT, damit der Text besser sitzt */
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

/* USP TEXTE */
.usp-item p {
    font-size: 0.85em; /* ETWAS KLEINER GEMACHT */
    color: #f0f0f0;
    padding: 10px; /* Padding ringsum */
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    align-items: center; /* Vertikal zentrieren */
    justify-content: center; /* Horizontal zentrieren */
    flex-grow: 1;
    min-height: 60px; /* MINDESTHÖHE für den Textbereich */
}

/* ================================================= */
/* 4. CTA Formular (Soll ZULETZT kommen)           */
/* ================================================= */
.cta-form-container {
    flex: 1;
    min-width: 280px;
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: fit-content;
    order: 2; /* Formular zuletzt */
}

.cta-form-container h2 {
    color: #FFD700;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4em;
}

form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #444;
    background-color: #333;
    color: #f0f0f0;
    border-radius: 4px;
    box-sizing: border-box;
}

.cta-button {
    width: 100%;
    padding: 15px;
    background-color: #FFD700;
    color:#1a1a1a;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #d8892d;
}

/* WhatsApp QR-Code */
.qr-code-block {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.qr-code-block h3 {
    font-size: 1.1em;
    color: #FFD700;
    margin-bottom: 15px;
}

.qr-image {
    max-width: 150px;
    height: auto;
    border: 5px solid #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.qr-image:hover {
    transform: scale(1.05);
}

.qr-hint {
    font-size: 0.85em;
    color: #5cb85c;
    margin-top: 10px;
}

/* ================================================= */
/* 5. Footer                                       */
/* ================================================= */
footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #333;
    font-size: 0.8em;
    color: #777;
}

/* ================================================= */
/* 6. Media Query für Mobile (Layout stapeln)      */
/* ================================================= */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column; /* Stapelt Inhalt (oben) und Formular (unten) */
    }

    .content-container {
        padding-right: 0;
        padding-left: 0;
        margin-bottom: 30px;
    }

    .main-headline {
        font-size: 2em;
    }

    .cta-form-container {
        width: 100%;
        min-width: unset;
        margin-bottom: 30px;
    }

    .usp-item {
        flex-basis: 100%; /* USPs nehmen volle Breite ein */
        max-width: 400px; /* Optional: maximale Breite für USP-Elemente auf Mobil */
    }

    .usp-full-image {
        height: 150px;
    }

    .usp-item p {
        font-size: 0.9em; /* Auf Mobil wieder etwas größer machen */
        min-height: 50px; /* Mindesthöhe anpassen */
    }
}

