/* =========================================
   FARB-VARIABLEN (Frosch Corporate Design)
   ========================================= */
:root {
    --frosch-green: #009036;
    --frosch-dark-green: #006b29;
    --bg-color: #ffffff;
    --text-color: #333333;
}

/* =========================================
   GRUNDSTRUKTUR & LAYOUT
   ========================================= */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #eef2ef;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    background-color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden; 
}

/* =========================================
   HEADER & BILDER
   ========================================= */
.top-bar {
    background-color: #ffffff;
    padding: 25px 70px; 
    display: flex;
    justify-content: flex-start; 
    align-items: center;
}

.frosch-logo {
    max-height: 85px; 
    width: auto;
}

.header-image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* =========================================
   HAUPTINHALT & TEXTE
   ========================================= */
.main-content {
    flex: 1;
    padding-bottom: 40px;
}

.headline-green {
    color: var(--frosch-green);
    font-weight: 700;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =========================================
   PREISKARTEN
   ========================================= */
.prize-wrapper {
    position: relative;
    height: 100%;
    cursor: pointer;
}

.prize-card {
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid #e6f4ea;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden; 
}

.prize-wrapper:hover .prize-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 144, 54, 0.08);
    border-color: var(--frosch-green);
}

.prize-badge {
    position: absolute;
    top: -12px;
    left: -12px;
    background-color: var(--frosch-green);
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.prize-badge.badge-red {
    background-color: #da291c; 
}

/* Bildbereich oben - Angepasst an Format 2:1 (800x400) */
.prize-image {
    width: 100%;
    aspect-ratio: 2 / 1; 
    height: auto; 
    object-fit: cover; /* <-- HIER GEÄNDERT: 'cover' füllt die Ränder perfekt aus */
    display: block;
    background-color: transparent; /* Verhindert durchblitzende Hintergründe */
    border-bottom: 1px solid #e6f4ea;
}

/* Textbereich unten */
.prize-content {
    padding: 15px 30px 15px 15px; 
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    
    /* FIX: Hält die Headline immer strikt oben direkt unter dem Bild fest! */
    justify-content: flex-start; 
    align-items: center;
}

.prize-content h6 {
    font-size: 1rem;
    line-height: 1.3;
    text-align: center;
    margin: 0;
    margin-top: 5px; /* Konstanter Abstand zum Bild */
}

/* Das kleine Info-Icon unten rechts */
.info-icon {
    position: absolute;
    right: 15px;
    bottom: 12px;
    color: var(--frosch-green);
    font-size: 1.2rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.prize-wrapper:hover .info-icon {
    opacity: 1;
}

/* Aufklapp-Text */
.collapse-text {
    font-size: 0.85rem;
    color: #555;
    margin-top: 15px; 
    padding-top: 10px;
    border-top: 1px solid #eee;
    text-align: center;
    width: 100%;
    line-height: 1.4;
}

/* =========================================
   FORMULAR-BOX (Gefixt!)
   ========================================= */
.custom-form-container {
    background: #f8fcf9;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #e6f4ea;
    box-shadow: 0 10px 30px rgba(0, 144, 54, 0.05);
    margin-top: 20px;
    
    /* FIX: Das Formular wird jetzt wieder schön kompakt dargestellt */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.custom-form-container label {
    font-weight: 600;
    color: var(--frosch-dark-green);
}

.form-headline {
    color: var(--frosch-dark-green);
}

.form-checkbox-label {
    font-weight: normal !important;
    color: #555 !important;
}

.frosch-link {
    color: var(--frosch-green);
    text-decoration: none;
    font-weight: bold;
}

.frosch-link:hover {
    text-decoration: underline;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-frosch-submit {
    background-color: var(--frosch-green);
    color: #ffffff;
    border-radius: 25px;
    padding: 12px 30px;
    border: none;
    font-weight: bold;
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-frosch-submit:hover {
    background-color: var(--frosch-dark-green);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 144, 54, 0.3);
}

/* =========================================
   SYSTEM-MELDUNGEN & MODALS
   ========================================= */
.alert {
    border-radius: 15px;
    border: none;
}
.alert-success {
    background-color: #e6f4ea;
    color: var(--frosch-dark-green);
    border-left: 5px solid var(--frosch-green);
}

.custom-modal-content {
    border-radius: 15px;
    overflow: hidden;
}

/* =========================================
   WELLE & FOOTER
   ========================================= */
.frosch-footer {
    background-image: url('welle_footer.svg');
    background-size: 100% auto; 
    background-position: bottom center; 
    background-repeat: no-repeat;
    background-color: #ffffff; 
    padding-top: 12vw; 
    padding-bottom: 30px;
    margin-top: 60px;
    color: #ffffff; 
}

.footer-links a {
    color: #ffffff; 
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: opacity 0.2s;
}
.footer-links a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.social-icon svg {
    fill: #ffffff; 
    width: 30px;
    height: 30px;
    margin-left: 15px;
    transition: transform 0.2s ease;
}
.social-icon:hover svg {
    transform: scale(1.15); 
}

/* =========================================
   MOBILE ANPASSUNGEN (Smartphones)
   ========================================= */
@media (max-width: 768px) {
    .frosch-footer {
        padding-top: 60px; 
        background-size: cover; 
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .footer-links a, 
    .social-icon svg {
        margin: 0 10px;
    }
    .custom-form-container {
        padding: 25px; 
    }

    .top-bar {
        padding: 15px 20px; 
        justify-content: flex-start; 
    }

    .frosch-logo {
        max-height: 65px; 
    }

    .prize-image {
        height: auto; 
    }

    .prize-content {
        padding: 15px 30px 15px 15px; 
        justify-content: flex-start;
    }

    .mobile-slider {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-top: 20px; 
        padding-bottom: 20px;
        padding-left: 15px; 
        scroll-behavior: smooth;
        -ms-overflow-style: none; 
        scrollbar-width: none; 
    }
    .mobile-slider::-webkit-scrollbar {
        display: none; 
    }
    .mobile-slider > .col-md-4 {
        flex: 0 0 calc(100% - 15px);
        max-width: calc(100% - 15px);
        scroll-snap-align: center;
        margin-right: 15px;
    }

    .slider-btn {
        position: absolute;
        top: 40%;
        transform: translateY(-50%);
        background: rgba(0, 144, 54, 0.8); 
        color: white;
        border: none;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        cursor: pointer;
    }
    .slider-btn:active {
        background: var(--frosch-dark-green);
    }
    .slider-btn.prev-btn { left: 0px; }
    .slider-btn.next-btn { right: 0px; }
}

/* =========================================
   RECHTSTEXTE (Impressum, Datenschutz, etc.)
   ========================================= */
.impressum-box {
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid #e6f4ea;
    box-shadow: 0 10px 30px rgba(0, 144, 54, 0.05);
    padding: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
    color: #555;
    line-height: 1.6;
}

.impressum-box h3 {
    color: var(--frosch-dark-green);
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 10px;
}

.impressum-box h3:first-of-type {
    margin-top: 0;
}

.impressum-box a {
    color: var(--frosch-green);
    text-decoration: none;
    font-weight: bold;
}

.impressum-box a:hover {
    text-decoration: underline;
}

/* Anpassung für mobile Endgeräte (Smartphone) */
@media (max-width: 768px) {
    .impressum-box {
        padding: 25px;
    }
}
