:root {
    /* --- FARBEN & THEME --- */
    --background-color: #f4f4f9;      
    --main-color: #ffffff;            
    --secondary-color: #eeeeee;       
    --schriftfarbe: #333333;          
    --text-muted: #777777;            
    
    /* Die Linke Farben */
    --button-color: #FF0000;         /* Blau für den Button wie im Originalbild */
    --button-hover: #6F003C;
    
    /* --- NEU: CTA BANNER FARBE --- */
    --cta-banner-bg: #3255a4;        /* Das Blau aus dem Banner */
    --cta-inner-bg: #ffffff;         /* Hintergrund der inneren Karte */
    
    --input-border: #cccccc;
    --shadow-card: 0 10px 30px rgba(0,0,0,0.1); 
    --shadow-cta: 0 5px 15px rgba(0,0,0,0.15); /* Schatten für die innere CTA Karte */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--schriftfarbe);
    position: relative; 
    display: flex;
    justify-content: center; 
    align-items: center;     
    min-height: 100vh;
    padding: 20px;
}

.logo-link {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 100; 
}

.logo {
    width: 160px; 
    height: auto;
    display: block;
}

.page-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0; 
    z-index: 1;
}

/* --- HAUPT KACHEL --- */
.card {
    background-color: var(--main-color);
    width: 100%;
    max-width: 550px; /* Etwas breiter, damit der Banner gut aussieht */
    border-radius: 12px; 
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-section {
    padding: 2rem 2.5rem;
}

/* Header */
.header-section {
    text-align: center;
    padding-bottom: 1rem;
}
.header-section h1 {
    font-size: 1.8rem;
    color: var(--schriftfarbe);
    font-weight: 700;
}

/* About Text */
.about-section {
    text-align: center;
    line-height: 1.5;
    color: #555;
    font-size: 1rem;
    padding-top: 0; /* Weniger Abstand zum Header */
    padding-bottom: 2rem;
}

/* --- NEU: CTA DIVIDER SECTION (Banner Style) --- */
.cta-divider-section {
    background-color: var(--cta-banner-bg); /* Blauer Hintergrund */
    padding: 1.5rem; /* Padding um die innere Karte herum */
}

.cta-inner-card {
    background-color: var(--cta-inner-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-cta);
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
}

/* Bild links (Smartphone) */
.cta-image-left {
    flex-shrink: 0;
}
.cta-image-left img {
    width: auto;
    height: 100px; /* Feste Höhe, Breite passt sich an */
    display: block;
}

/* Text Inhalt Mitte */
.cta-content {
    flex-grow: 1; /* Nimmt den verfügbaren Platz ein */
}
.cta-content strong {
    display: block;
    font-size: 1.1rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #000;
}
.cta-content p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #333;
    margin: 0;
}

/* Bild rechts (QR-Code) */
.cta-image-right {
    flex-shrink: 0;
    display: block; /* Wichtig für den Link */
    border-radius: 8px;
    overflow: hidden; /* Für abgerundete Ecken des QR-Bildes */
}
.cta-image-right img {
    width: 80px;
    height: 80px;
    display: block;
}

/* Formular */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: var(--main-color);
    padding-top: 2.5rem;
}

.input-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: block;
    text-align: center; 
}

input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--input-border);
    border-radius: 4px;
    font-size: 1.1rem;
    text-align: center;
    transition: border-color 0.3s;
    background-color: #fff;
}

input:focus {
    outline: none;
    border-color: var(--button-color);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--button-color); 
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.2s ease-in-out;
}

.submit-btn:hover {
    background-color: var(--button-hover);
}

/* Footer / Impressum */
.footer-section {
    text-align: center;
    font-size: 0.8rem;
    color: var(--button-color);
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.footer-section a {
    color: var(--button-color);
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

/* --- MOBILE OPTIMIERUNG --- */
@media (max-width: 650px) {
    body {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 0;
    }

    .logo-link {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 20px;
        margin-top: 20px;
        align-self: center;
    }

    .logo {
        width: 140px;
    }

    .card {
        max-width: 100%;
    }

    .card-section {
        padding: 1.5rem; 
    }
    
    /* CTA auf Mobile: Stacked Layout */
    .cta-inner-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .cta-image-left img {
        height: 80px;
        margin-bottom: 1rem;
    }

    .cta-content {
        margin-bottom: 1rem;
    }
    
    .cta-image-right img {
        width: 100px;
        height: 100px;
    }
}