/* --- VARIABLES & RESET --- */
:root {
    --primary-green: #2E7D32; /* Vertrauen, Natur */
    --dark-green: #1B5E20;
    --light-green: #E8F5E9;
    --cta-orange: #FF6D00; /* Dringlichkeit, Kontrast */
    --cta-hover: #E65100;
    --text-dark: #333333;
    --text-grey: #666666;
    --bg-creme: #FAFAF5; /* Wärmer als reines Weiß, gut für Augen 40+ */
    --white: #FFFFFF;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --border-radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Klassisch, gut lesbar */
    background-color: var(--bg-creme);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 18px; /* Größere Schrift für Zielgruppe 40+ */
    -webkit-font-smoothing: antialiased;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

h1 { font-size: 2rem; } /* Mobile H1 */
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }

.highlight { color: var(--cta-orange); }
.center { text-align: center; }

/* --- BUTTONS (Touch Target min 44px) --- */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    min-height: 50px; /* Mobile Friendly */
}

.btn-cta {
    background-color: var(--cta-orange);
    color: white;
    width: 100%; /* Mobile full width */
}

.btn-cta:hover {
    background-color: var(--cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 109, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 109, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 109, 0, 0); }
}

/* --- LAYOUT UTILITIES --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.section-spacer { padding: 60px 0; }
.bg-white { background-color: var(--white); }

/* --- HEADER --- */
header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo { font-weight: 800; font-size: 1.2rem; color: var(--dark-green); text-decoration: none; }
.header-phone { display: none; } /* Versteckt auf Mobile */

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1523348837708-15d4a09cfac2?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0 60px 0;
    text-align: center;
}

.hero h1 { color: white; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }

.trust-badges {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.9;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* --- FORM SECTION (High Priority) --- */
.calculator-card {
    background: white;
    padding: 30px;
    padding-top: 90px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: -40px; /* Overlap effect */
    position: relative;
    z-index: 10;
    
}

.form-step { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: bold; color: var(--dark-green); }

.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-option {
    border: 2px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}
.radio-option:hover, .radio-option.selected {
    border-color: var(--primary-green);
    background-color: var(--light-green);
}
.radio-option input { margin-right: 15px; transform: scale(1.3); }

input[type="text"], input[type="email"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

/* --- PROBLEM / SOLUTION --- */
.pain-points {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}
.pain-card {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--cta-orange);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.pain-icon { font-size: 2rem; margin-bottom: 10px; display: block; }

/* --- PRICING --- */
.pricing-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}
.price-card {
    background: white;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    position: relative;
}
.price-card.popular {
    border: 2px solid var(--primary-green);
    transform: scale(1.02);
    box-shadow: var(--shadow);
}
.badge-popular {
    background: var(--cta-orange);
    color: white;
    padding: 5px 15px;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}
.price { font-size: 2.5rem; font-weight: 800; color: var(--dark-green); margin: 15px 0; }
.price span { font-size: 1rem; color: var(--text-grey); font-weight: 400; }
.features-list { list-style: none; margin-bottom: 25px; text-align: left; }
.features-list li { margin-bottom: 10px; padding-left: 25px; position: relative; }
.features-list li::before {
    content: "✓";
    color: var(--primary-green);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* --- SOCIAL PROOF --- */
.testimonial-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}
.review-card {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-style: italic;
}
.stars { color: #FFC107; letter-spacing: 2px; }
.reviewer { margin-top: 15px; font-weight: bold; font-style: normal; font-size: 0.9rem; }

/* --- FAQ --- */
.faq-item {
    background: white;
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
}
.faq-question {
    padding: 20px;
    font-weight: bold;
    cursor: pointer;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--primary-green); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
    background: var(--light-green);
}
.faq-item.active .faq-answer { padding: 20px; max-height: 200px; }
.faq-item.active .faq-question::after { content: '-'; }

/* --- FOOTER --- */
footer {
    background: #222;
    color: #ccc;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}
footer a { color: white; text-decoration: underline; }

/* --- DESKTOP MEDIA QUERIES (Min Width 768px) --- */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    .header-phone { display: block; font-weight: bold; color: var(--dark-green); }
    .btn-cta { width: auto; min-width: 300px; }
    
    .pain-points, .pricing-grid, .testimonial-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero { padding: 120px 0 100px 0; }
    .calculator-card { width: 70%; margin: -60px auto 0 auto; }
    
    .radio-group { flex-direction: row; }
    .radio-option { flex: 1; justify-content: center; }
}

/* --- UTILS --- */
.hidden { display: none; }
.fade-in { animation: fadeIn 0.5s ease-in; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- NEUE CHECK24 STYLE CARDS (Mobile First) --- */

/* Scroll Container für Mobile Swipe */
.results-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 10px 5px 30px 5px; /* Platz für Schatten */
    -webkit-overflow-scrolling: touch; /* Smooth scroll iOS */
}

/* Einzelne Karte */
.result-card {
    min-width: 85vw; /* Karte nimmt 85% der Breite ein, nächste blitzt hervor */
    scroll-snap-align: center;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

/* Desktop Anpassung */
@media (min-width: 768px) {
    .results-scroll-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow-x: visible;
        gap: 20px;
    }
    .result-card {
        min-width: auto;
    }
    .swipe-hint { display: none; }
}

/* Highlight Karte (Mitte) */
.highlight-card {
    border: 2px solid var(--primary-green);
    background-color: #fcffff;
    order: -1; /* Auf Mobile ggf. nach vorne sortieren wenn gewünscht, sonst weglassen */
}
@media (min-width: 768px) {
    .highlight-card { transform: scale(1.05); z-index: 5; order: initial; }
}

/* Badge Preis-Tipp */
.badge-tip {
    background: var(--cta-orange);
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Typografie in Karte */
.tariff-name { font-size: 1.2rem; font-weight: bold; color: var(--text-dark); margin-bottom: 5px; text-align: center; }
.tariff-price { font-size: 2.2rem; font-weight: 800; color: var(--primary-green); text-align: center; }
.tariff-period { font-size: 0.8rem; color: #888; text-align: center; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; }

/* Feature Liste */
.feature-list { list-style: none; padding: 0; margin-bottom: 20px; font-size: 0.9rem; flex-grow: 1; }
.feature-list li { margin-bottom: 8px; padding-left: 24px; position: relative; line-height: 1.4; }
.feature-list li::before { content: "✓"; color: var(--primary-green); font-weight: bold; position: absolute; left: 0; }
.feature-list li.missing { color: #aaa; text-decoration: none; }
.feature-list li.missing::before { content: "–"; color: #ccc; }

/* Buttons */
.btn-select { width: 100%; margin-top: auto; padding: 12px; border-radius: 8px; }
.btn-outline { background: transparent; border: 2px solid var(--primary-green); color: var(--primary-green); }
.btn-outline:hover { background: var(--light-green); }

/* Swipe Hinweis */
.swipe-hint { text-align: center; font-size: 0.8rem; color: #999; margin-top: -10px; }

/* Checkmark für Radio Buttons */
.checkmark {
    width: 20px; height: 20px; border: 2px solid #ccc; border-radius: 50%; margin-right: 10px;
    position: relative;
}
.radio-option.selected .checkmark { border-color: var(--primary-green); }
.radio-option.selected .checkmark::after {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 10px; height: 10px; background: var(--primary-green); border-radius: 50%;
}
.radio-option input { display: none; } /* Standard Radio verstecken */

/* Yes/No Group Styling */
.yes-no-group { flex-direction: row; }
.yes-no-group .radio-option { flex: 1; justify-content: center; }

/* Success Header */
.success-header {
    background: #e8f5e9; border: 1px solid #c8e6c9; color: #2e7d32;
    padding: 15px; border-radius: 8px; margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px; font-size: 0.9rem;
    position: relative;
}
.success-icon { font-size: 1.5rem; }
.settings-trigger {
    position: absolute; right: 10px; top: 10px;
    font-size: 1.5rem; cursor: pointer; background: white;
    width: 35px; height: 35px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.settings-trigger:hover { transform: rotate(90deg); }

/* Loading Animation */
.spinner {
    width: 50px; height: 50px; border: 5px solid #f3f3f3; border-top: 5px solid var(--cta-orange);
    border-radius: 50%; margin: 0 auto; animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Modal Styles */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 2000;
    display: none; /* Standardmäßig ausgeblendet */
    justify-content: center; align-items: center;
}

/* Diese Klasse wird per JS hinzugefügt um es anzuzeigen */
.modal-overlay.open {
    display: flex; 
}
.modal-content {
    background: white; width: 90%; max-width: 500px;
    border-radius: 12px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.modal-header {
    background: var(--light-green); padding: 15px 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.close-modal { font-size: 2rem; cursor: pointer; line-height: 1; }
.modal-body { padding: 20px; }
.setting-group { margin-bottom: 20px; }
.setting-group label { font-weight: bold; display: block; margin-bottom: 5px; }
.small-hint { font-size: 0.75rem; color: #888; margin-top: 5px; }
input[type="range"] { width: 100%; margin: 10px 0; }
select { width: 100%; padding: 10px; border-radius: 6px; border: 1px solid #ccc; font-size: 1rem; }

/* --- INFO & LEGAL MODALS --- */

/* Spezieller Content Container für Text-Modals (breiter, scrollbar) */
.modal-content.legal-modal {
    max-width: 800px;
    height: 90vh; /* Nimmt 90% der Höhe ein */
    display: flex;
    flex-direction: column;
}

.modal-body.legal-body {
    overflow-y: auto; /* Scrollbar für den Text */
    padding: 20px 30px;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: left;
}

/* Typografie in den Legal Modals */
.legal-body h3 { margin-top: 30px; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.legal-body h4 { margin-top: 20px; color: var(--primary-green); }
.legal-body p { margin-bottom: 15px; }
.legal-body ul { margin-bottom: 15px; padding-left: 20px; }

/* Kontakt-Karte im Modal */
.contact-card {
    text-align: center;
    padding: 20px;
    background: var(--light-green);
    border-radius: 8px;
    margin-top: 20px;
}
.contact-card a { color: var(--primary-green); font-weight: bold; }

/* Helper um den Content im HTML zu verstecken */
.hidden-content { display: none; }