/**
 * Frontend CSS für LohiBW Beitragsrechner
 * Datei: assets/css/frontend.css
 */

.lohibw-beitragsrechner {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rechner-container {
    background: #fff;
    border: 1px solid #bbbbbb;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rechner-title {
    color: #333333;
    font-size: 28px;
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 3px solid #ffee00;
}

.rechner-info {
    color: #666;
    margin-bottom: 30px;
}

.rechner-section {
    display: none;
    margin-bottom: 30px;
}

.rechner-section.active {
    display: block;
}

.rechner-section h3 {
    color: #333333;
    font-size: 20px;
    margin-bottom: 20px;
    padding: 10px;
    background: #f9f9f9;
    border-left: 4px solid #ffee00;
    border-radius: 0 4px 4px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 15px;
    border: 1px solid #bbbbbb;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group label:hover {
    background: #f9f9f9;
    border-color: #ffee00;
}

.form-group input[type="radio"]:checked + span,
.form-group input[type="checkbox"]:checked + span {
    font-weight: 600;
}

.form-group input[type="radio"]:checked ~ label,
.form-group input[type="checkbox"]:checked ~ label {
    background: #fffacd;
    border-color: #ffee00;
    box-shadow: 0 0 0 2px rgba(255, 238, 0, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: center;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #bbbbbb;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #ffee00;
    box-shadow: 0 0 0 3px rgba(255, 238, 0, 0.1);
}

.info-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-left: 3px solid #bbbbbb;
    border-radius: 0 4px 4px 0;
}

.rechner-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #bbbbbb;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

.btn-primary {
    background: #ffee00;
    color: #333333;
}

.btn-primary:hover {
    background: #333333;
    color: #ffee00;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-secondary {
    background: #bbbbbb;
    color: #333333;
}

.btn-secondary:hover {
    background: #333333;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#rechner-ergebnis {
    margin-top: 30px;
}

.ergebnis-box {
    background: #f9f9f9;
    border: 2px solid #ffee00;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
}

.ergebnis-details {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #bbbbbb;
}

.ergebnis-details p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ergebnis-details p span {
    font-weight: 600;
    color: #333;
}

.ergebnis-summen {
    font-size: 18px;
}

.jahresbeitrag, .gesamtkosten {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.gesamtkosten {
    background: #fffacd;
    border-color: #ffee00;
    font-weight: bold;
    margin-top: 15px;
}

.jahres-summe, .gesamt-summe {
    color: #333333;
    font-size: 24px;
    font-weight: bold;
    background: #ffee00;
    padding: 8px 15px;
    border-radius: 4px;
}

.gesamt-summe {
    font-size: 28px;
    padding: 10px 20px;
}

/* Disclaimer Styling */
.disclaimer {
    margin: 20px 0;
    padding: 15px;
    background: #fffbf0;
    border: 1px solid #f0e68c;
    border-radius: 4px;
}

.disclaimer p {
    margin: 0;
    color: #8b7355;
    line-height: 1.4;
}

.disclaimer small {
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lohibw-beitragsrechner {
        padding: 10px;
    }
    
    .rechner-container {
        padding: 20px;
    }
    
    .rechner-title {
        font-size: 24px;
    }
    
    .rechner-section h3 {
        font-size: 18px;
    }
    
    .form-group label {
        padding: 12px;
    }
    
    .form-control {
        padding: 10px;
        font-size: 14px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .rechner-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .jahres-summe, .gesamt-summe {
        font-size: 20px;
        padding: 6px 12px;
    }
    
    .gesamt-summe {
        font-size: 24px;
        padding: 8px 16px;
    }
}

/* Print Styles */
@media print {
    .lohibw-beitragsrechner {
        max-width: none;
        padding: 0;
    }
    
    .rechner-container {
        border: none;
        box-shadow: none;
        padding: 0;
    }
    
    .rechner-navigation,
    #btn-neu {
        display: none !important;
    }
    
    .ergebnis-box {
        border: 2px solid #000;
        background: #f9f9f9;
    }
}