body {
    margin: 0;
    padding: 0;
    background: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: #333;
}

#configurator-container {
    width: 100%;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.configurator-header h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

#steps-container {
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
}

/* ===== GESTAPELTE STEPS ===== */
.step-section {
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    animation: stepFadeIn 0.35s ease-out;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-section:last-child {
    border-bottom: none;
}

.step-section:first-child {
    padding-top: 0;
}

/* Header eines Steps (klickbar für Navigation zurück) */
.step-section-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    cursor: default;
    user-select: none;
}

.step-section-header .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #007bff;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.step-section-header .step-label {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.step-section-header .step-selected-value {
    flex-basis: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.step-section-header .step-selected-value::before {
    content: '';
}

/* Badge-Wrapper: span wird zum Badge */
.step-section.step-completed .step-section-header .step-selected-value {
    display: block;
    background: #28a745;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    width: 80%;
    margin: 0 auto;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    animation: badgePopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

@keyframes badgePopIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hover-Effekt für abgeschlossene Badges */
.step-section.step-completed .step-section-header .step-selected-value:hover {
    background: #2eba50;
    transform: scale(1.03);
    box-shadow: 0 4px 18px rgba(40, 167, 69, 0.5);
    border-radius: 8px;
    cursor: pointer;
}

/* Aktiver Step */
.step-section.step-active .step-section-header .step-number {
    background: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.step-section.step-active .step-section-content {
    display: block;
}

/* Abgeschlossener Step */
.step-section.step-completed {
    opacity: 0.65;
    cursor: pointer;
    padding: 0;
    margin-bottom: 10px;
    border-bottom: none;
}

.step-section.step-completed:hover {
    opacity: 0.85;
}

.step-section.step-completed .step-section-header {
    cursor: pointer;
    padding: 0;
    margin-bottom: 0;
}

/* Verstecke den Titel im abgeschlossenen Step (steht jetzt im Badge) */
.step-section.step-completed .step-title {
    display: none;
}

.step-section.step-completed .step-section-header .step-number {
    background: #28a745;
}

.step-section.step-completed .step-section-content {
    display: none;
}

/* Badge-Stil wird oben definiert */

/* Content area */
.step-section-content {
    padding: 0.5rem 0 0.5rem 0;
}

.step-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0rem;
    border: 0px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-card.completed {
    border-left-color: #28a745;
    opacity: 0.7;
}

.step-card.active {
    border-left-color: #ffffff;
    box-shadow: 0 0px 0px rgba(0,0,0,0.1);
    transform: translateX(0);
    opacity: 1;
}

.step-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem !important;
}

.step-title {
    color: #333;
    font-weight: 600;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-label {
    font-weight: 500;
    color: #555;
    margin-bottom: 0.5rem;
    display: block;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(60, 60, 60, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f5f5f5;
}

.radio-option:hover {
    border-color: rgba(60, 60, 60, 0.3);
    background: #eeeeee;
}

.radio-option.selected {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

/* NEU: Verstecke Radio-Buttons */
.radio-option input[type="radio"] {
    display: none;
}

/* NEU: Label nimmt volle Breite */
.radio-option label {
    cursor: pointer;
    margin: 0;
    width: 100%;
    display: block;
}

/* ✅ GEÄNDERT: Label mit Bild Layout - Bild und Text nebeneinander */
.radio-label-with-image {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    width: 100% !important;
    cursor: pointer;
    flex-direction: row !important;
}

/* ✅ KORRIGIERT: Thumbnail Styling mit wichtigen Flags */
.option-thumbnail {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0 !important;
    background: rgba(255, 255, 255, 0.1);
    display: block !important;
}

/* ✅ KORRIGIERT: Text-Container */
.option-text {
    flex: 1 !important;
    min-width: 0 !important;
    text-align: left !important;
    display: block !important;
}

/* ✅ NEU: Bootstrap-Overrides */
.option-text strong {
    display: block !important;
    margin-bottom: 0.25rem;
}

.option-text small {
    display: block !important;
    margin-top: 0.25rem;
}

.input-group-custom {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.input-group-custom input {
    flex: 1;
}

.input-group-custom .input-group-text {
    min-width: 50px;
}

.option-group-container.multiple-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    grid-auto-rows: min-content;
    width: 100%;
}

.option-group-container.many-inputs {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.price-card {
    background: linear-gradient(135deg, #b0b0b0 0%, #505050 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.price-header h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.price-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.price-label {
    font-size: 1.1rem;
}

.price-value {
    font-size: 2.5rem;
    font-weight: bold;
}

.price-delivery {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
}

.btn-step-submit {
    background: #007bff;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-step-submit:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* ENTFERNT: btn-outline-secondary - verwende btn-secondary statt */

.btn-secondary {
    background: #6c757d;
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
    text-align: center;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #5a6268;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108,117,125,0.3);
}

/* Button-Container ohne Debug-Hintergrund */
.d-flex.justify-content-between {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 2rem !important;
    padding: 1rem 0 !important;
    border-top: 1px solid rgba(255,255,255,0.2);
}

#progress-bar {
    font-size: 1rem;
    font-weight: 600;
}

.step-header small {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.progress {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.option-price {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    /* ...existing code... */
}

.progress-bar {
    border-radius: 15px;
    transition: width 0.3s ease;
}

#progress-text {
    font-weight: 600;
    font-size: 0.9em;
}

/* ===== VERSAND & LIEFEROPTIONEN ===== */
.delivery-option, .shipping-option {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
    /* Bootstrap-Konflikte vermeiden */
    border-top: 2px solid #e9ecef !important;
    border-bottom: 2px solid #e9ecef !important;
    box-shadow: none !important;
}

.delivery-option:hover {
    border-color: #28a745 !important;
    background-color: #f8f9fa;
}

.delivery-option.selected {
    border-color: #ffffff !important;
    background-color: #ff8000;
}

.shipping-option:hover {
    border-color: #007bff !important;
    background-color: #f8f9fa;
}

.shipping-option.selected {
    border-color: #ffffff !important;
    background-color: #ff8000;
}

/* Bootstrap d-flex Konflikte vermeiden */
.delivery-option .d-flex,
.shipping-option .d-flex {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== PREISZUSAMMENFASSUNG ===== */
#price-breakdown .d-flex {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    margin: 0 !important;
    padding: 4px 0 !important;
}

#price-breakdown hr {
    margin: 8px 0 !important;
    border-top: 1px solid #dee2e6 !important;
}

#price-breakdown .border {
    border-top: none !important;
}

/* ===== BADGES & LABELS ===== */
.rush-badge {
    background-color: #ffc107;
    color: #000;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: bold;
    margin-left: 6px;
}

.delivery-option small,
.shipping-option small {
    line-height: 1.2;
    margin-top: 2px;
}

/* ===== INPUT-FELDER ABSTÄNDE ===== */
.input-option {
    margin-bottom: 15px !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .delivery-option, .shipping-option {
        min-height: 40px;
        padding: 6px 10px;
    }
    
    .input-option {
        margin-bottom: 12px !important;
    }
}

/* ✅ NEU: Preis-Anzeige in Cross-Sell Optionen */
.option-price {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.95em;
    box-shadow: 0 2px 4px rgba(46, 125, 50, 0.1);
    border: 1px solid #a5d6a7;
}

.radio-option:hover .option-price {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    transform: scale(1.05);
    transition: all 0.2s ease;
}
