/* Frontend CSS für DW Bestattungsrechner */

.dw-bskr-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Schritt-Navigation */
.dw-bskr-steps-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    overflow-x: auto;
}

.dw-bskr-step-btn {
    background: none;
    border: none;
    padding: 15px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
    text-align: center;
    position: relative;
}

.dw-bskr-step-btn:hover:not(:disabled) {
    background: #e9ecef;
}

.dw-bskr-step-btn.active {
    background: #007cba;
    color: white;
}

.dw-bskr-step-btn.completed {
    background: #28a745;
    color: white;
}

.dw-bskr-step-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.step-number {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #dee2e6;
    color: #495057;
    line-height: 30px;
    margin: 0 auto 5px;
    font-weight: bold;
}

.dw-bskr-step-btn.active .step-number,
.dw-bskr-step-btn.completed .step-number {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.step-title {
    display: block;
    font-size: 12px;
    font-weight: 500;
}

/* Schritt-Inhalte */
.dw-bskr-steps-content {
    min-height: 400px;
    margin-bottom: 30px;
}

.dw-bskr-step-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.dw-bskr-step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dw-bskr-step-header {
    text-align: center;
    margin-bottom: 30px;
}

.dw-bskr-step-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.dw-bskr-step-header p {
    color: #666;
    font-size: 16px;
}

/* Schritt 1: Begrüßung */
.dw-bskr-welcome {
    text-align: center;
    padding: 40px 20px;
}

.welcome-content {
    max-width: 600px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

/* Schritt 2: Optionen-Grid */
.dw-bskr-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.dw-bskr-option-card {
    position: relative;
}

.dw-bskr-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dw-bskr-option-card label {
    display: block;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
}

.dw-bskr-option-card label:hover {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}

.dw-bskr-option-card input:checked + label {
    border-color: #007cba;
    background: #f8f9ff;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.2);
}

.option-image {
    margin-bottom: 15px;
    text-align: center;
}

.option-image img {
    max-width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.option-content h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.option-content p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.option-prices {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-internal {
    font-weight: bold;
    color: #007cba;
    font-size: 16px;
}

/* Schritt 3: Slider */
.dw-bskr-sliders {
    margin-top: 30px;
}

.dw-bskr-slider-group {
    margin-bottom: 40px;
}

.dw-bskr-slider-group h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.dw-bskr-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    position: relative;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 124, 186, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-nav-btn:hover {
    background: rgba(0, 124, 186, 1);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav-btn.prev {
    left: -20px;
}

.slider-nav-btn.next {
    right: -20px;
}

.slider-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.slider-item {
    flex: 0 0 250px;
    position: relative;
}

.slider-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.slider-item label {
    display: block;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
    height: 100%;
}

.slider-item label:hover {
    border-color: #007cba;
}

.slider-item input:checked + label {
    border-color: #007cba;
    background: #f8f9ff;
}

.slider-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.slider-item h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
}

.slider-item p {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.slider-item .price {
    font-weight: bold;
    color: #007cba;
    font-size: 14px;
}

/* Schritt 4: Sections */
.dw-bskr-step4-sections {
    margin-top: 30px;
}

.section-group {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.section-group h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
}

.section-group h4 {
    margin: 15px 0 10px 0;
    color: #555;
    font-size: 14px;
}

.transport-options {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.transport-choice {
    flex: 1;
}

.transport-choice input[type="radio"] {
    margin-right: 8px;
}

.transport-extras label {
    display: block;
    margin-bottom: 10px;
}

.transport-extras input[type="checkbox"] {
    margin-right: 8px;
}

.aufbahrung-options label,
.moderation-options label {
    display: block;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.aufbahrung-options label:hover,
.moderation-options label:hover {
    background: #f8f9ff;
    border-color: #007cba;
}

.aufbahrung-options input:checked + label,
.moderation-options input:checked + label {
    background: #f8f9ff;
    border-color: #007cba;
}

/* Schritt 5: Zusatzleistungen */
.dw-bskr-additional-services {
    margin-top: 30px;
}

.service-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: #f8f9ff;
    border-color: #007cba;
}

.service-item input[type="checkbox"] {
    margin-right: 15px;
    transform: scale(1.2);
}

.service-content {
    flex: 1;
}

.service-content h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.service-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.service-price {
    font-weight: bold;
    color: #007cba;
    font-size: 16px;
}

/* Schritt 6: Kontaktformular */
.dw-bskr-contact-form {
    max-width: 600px;
    margin: 30px auto 0;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-field {
    flex: 1;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-field input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.privacy-consent {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

.privacy-consent label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.privacy-consent input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    transform: scale(1.2);
}

/* Schritt 7: Preisübersicht */
.dw-bskr-price-overview {
    margin-top: 30px;
}

.price-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
}

.price-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.price-item:last-child {
    border-bottom: none;
}

.price-item-title {
    flex: 1;
    color: #333;
}

.price-item-amount {
    font-weight: bold;
    color: #007cba;
}

.total-internal,
.total-external {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: right;
}

.price-actions {
    text-align: center;
    margin-top: 40px;
}

/* Buttons */
.dw-bskr-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.dw-bskr-btn-primary {
    background: #007cba;
    color: white;
}

.dw-bskr-btn-primary:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.dw-bskr-btn-secondary {
    background: #6c757d;
    color: white;
}

.dw-bskr-btn-secondary:hover {
    background: #545b62;
}

/* Navigation */
.dw-bskr-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
}

/* Loading/Error States */
.dw-bskr-loading {
    text-align: center;
    padding: 40px;
}

.dw-bskr-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.dw-bskr-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

/* Abhängigkeits-spezifische Styles */
.dependency-hidden {
    display: none !important;
}

.dependency-required .required-indicator {
    color: #d63384;
    font-weight: bold;
}

.dependency-required input.error,
.dependency-required select.error {
    border-color: #d63384;
    box-shadow: 0 0 0 0.2rem rgba(214, 51, 132, 0.25);
}

/* Smooth transitions für show/hide */
.dw-bskr-option,
.dw-bskr-slider-group {
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.dw-bskr-option.dependency-hidden,
.dw-bskr-slider-group.dependency-hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dw-bskr-wrapper {
        padding: 10px;
    }
    
    .dw-bskr-steps-nav {
        flex-direction: column;
        gap: 5px;
    }
    
    .dw-bskr-step-btn {
        flex: none;
        min-width: auto;
    }
    
    .dw-bskr-options-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .transport-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .dw-bskr-slider {
        flex-direction: column;
        align-items: center;
        padding: 10px 40px;
    }
    
    .slider-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .slider-item {
        flex: 0 0 200px;
    }
}

/* E-Mail-Validierung */
.mx-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.email-validation-message {
    margin-top: 5px;
    font-size: 12px;
    color: #dc3545;
}
