/* Erklärfilm Kostenkalkulator - Styles */
/* Pure CSS - Keine Dependencies! */
/* Signalfarbe: Android Blau #2196F3 */

.erklarfilm-calculator {
    max-width: 900px;
    margin: 0.6em auto 2em;
    padding: 4em;
    background: #fff;
    border-radius: 1em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .erklarfilm-calculator {
        padding: 20px;
        margin: 20px auto;
    }
}

/* Title */
.calculator-title {
    text-align: center;
    color: #333;
    font-size: 32px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .calculator-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
}

/* Section Title */
.section-title {
    /* font-size: 24px; */
    /* color: #333; */
    margin-top: 2em;
    margin-bottom: 1em;
    padding-bottom: 10px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 20px;
        margin-top: 30px;
    }
}

/* Price Display (Sticky) */
.price-display-sticky {
    position: sticky;
    top: 20px;
    background: linear-gradient(135deg, #2196F3, #42A5F5);
    color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    z-index: 100;
}

.price-label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: #fff;
    opacity: 0.9;
}

.price-amount {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    transition: transform 0.2s ease;
}

.price-amount.updating {
    animation: priceUpdate 0.6s ease;
}

@keyframes priceUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.price-vat-hint {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 4px;
    font-weight: 400;
}

/* Form Groups */
.form-group {
    margin-bottom: 30px;
}

/* Duration Slider */
.slider-container {
    padding: 10px 0;
}

.duration-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, #e0e0e0 0%, #2196F3 0%);
    outline: none;
    transition: background 0.3s ease;
}

.duration-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2196F3;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.duration-slider::-webkit-slider-thumb:hover {
    background: #1976D2;
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.duration-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2196F3;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.duration-slider::-moz-range-thumb:hover {
    background: #1976D2;
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.slider-value {
    margin-top: 15px;
    text-align: center;
}

.duration-display {
    display: inline-block;
    font-size: 20px;
    font-weight: 600;
    color: #2196F3;
    padding: 8px 20px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 20px;
}

@media (max-width: 768px) {
    .duration-slider {
        height: 10px;
    }
    
    .duration-slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }
    
    .duration-slider::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }
    
    .duration-display {
        font-size: 18px;
    }
}

/* Form Row (für nebeneinander liegende Felder) */
.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1 1 300px;
    min-width: 250px;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        flex: 1 1 100%;
    }
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 1em;
    font-size: 1em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Style Options (Cards) */
.style-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

@media (max-width: 768px) {
    .style-options {
        grid-template-columns: 1fr;
    }
}

.style-card {
    position: relative;
    padding: 20px;
    border: 3px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    display: block;
}

.style-card:hover {
    border-color: #2196F3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.style-card.selected {
    border-color: #000;
    border-width: 2px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.style-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.style-image-wrapper {
    margin: 0 auto 10px;
    position: relative;
}

.style-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.style-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
    border: 2px dashed #ccc;
}

.placeholder-icon {
    font-size: 40px;
}

.style-card.selected .style-image,
.style-card.selected .style-placeholder {
    /* filter: brightness(1.2); */
}

.style-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.style-card.selected .style-label {
    color: #333;
    font-weight: 700;
}

/* Radio & Checkbox Groups */
.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
    flex: 1 1 auto;
    min-width: 200px;
}

@media (max-width: 768px) {
    .radio-group label,
    .checkbox-group label {
        flex: 1 1 100%;
    }
}

.radio-group label:hover,
.checkbox-group label:hover {
    border-color: #2196F3;
    background: rgba(33, 150, 243, 0.03);
}

/* Blaue Umrandung wenn Radio-Button ausgewählt ist */
.radio-group label:has(input[type="radio"]:checked),
.checkbox-group label:has(input[type="checkbox"]:checked) {
    border-color: #2196F3;
    border-width: 2px;
    background: rgba(33, 150, 243, 0.05);
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #2196F3;
    flex-shrink: 0;
}

/* Custom Radio Button Styling für bessere Kontrolle */
.radio-group input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    background: #fff;
    transition: all 0.2s ease;
}

.radio-group input[type="radio"]:hover {
    border-color: #2196F3;
}

.radio-group input[type="radio"]:checked {
    border-color: #2196F3;
    background: #fff;
}

.radio-group input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2196F3;
}

/* Toggle Switch für Datenschutz (Android-Style) */
.checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    padding: 0 !important;
    border: none !important;
    gap: 15px;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 52px;
    height: 32px;
    background: #ccc;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 0;
}

.checkbox-label input[type="checkbox"]:checked {
    background: #2196F3;
}

.checkbox-label input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.checkbox-label input[type="checkbox"]:checked::before {
    left: 22px;
}

.privacy-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    flex: 1;
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn .arrow {
    font-size: 18px;
}

.btn-primary {
    background: #2196F3;
    color: #fff !important;
}

.btn-primary:hover:not(:disabled) {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover:not(:disabled) {
    background: #e0e0e0;
}


/* Messages */
.success-message {
    text-align: center;
    padding: 60px 40px;
}

.success-message h2 {
    color: #333;
    font-size: 36px;
    margin-bottom: 20px;
}

.success-message p {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.success-message .success-price {
    font-size: 24px;
    color: #333;
    margin-top: 30px;
}

.success-message .success-price strong {
    color: #2196F3;
}

.success-message .vat-hint {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

.error-message {
    padding: 15px 20px;
    background: #ffebee;
    border-left: 4px solid #f44336;
    border-radius: 4px;
    color: #c62828;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Calculator Form */
.calculator-form {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Submit Button Styling */
.btn-submit {
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    margin: 30px auto 0;
    font-size: 18px;
    padding: 16px 40px;
}

/* Editor Placeholder (Backend) */
.erklarfilm-calculator-editor-placeholder {
    padding: 40px;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 8px;
    text-align: center;
}

