/* Kaufberater Styles - Magento Version */

/* Remixicon Font Import */

/* Kaufberater Container */
.kaufberater-container {
    width: 100%;
    margin: 2rem 0;
}

/* Collapse Header */
.kaufberater-header-collapse {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 0;
    background: transparent;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s ease;
}

.kaufberater-header-collapse:hover {
    border-bottom-color: #999;
}

.kaufberater-title {
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    flex-grow: 1;
}

.kaufberater-arrow {
    font-size: 20px;
    color: #333;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    flex-shrink: 0;
    transform: rotate(180deg);
}

.kaufberater-arrow.collapsed {
    transform: rotate(0deg);
}

.kaufberater-wrapper {
    display: none;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.kaufberater-wrapper.show {
    display: block;
}

.kaufberater-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.kaufberater-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.close-kaufberater-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.close-kaufberater-btn:hover {
    color: #333;
}

/* Progress Bar */
.progress-container {
    position: relative;
    margin: 2rem 0 4rem 0;
}

.progress-line {
    position: absolute;
    width: calc(100% - 60px);
    left: 30px;
    height: 4px;
    background: #dee2e6;
    top: 15px;
    z-index: 0;
}

.progress-fill {
    height: 100%;
    background: #9A0050;
    transition: width 0.3s ease;
}

.progress-checkpoints {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.progress-checkpoint {
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkpoint-circle {
    width: 30px;
    height: 30px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #333;
}

.checkpoint-circle i {
    font-size: 16px;
    font-family: 'remixicon' !important;
    font-style: normal;
    font-weight: normal;
}

.progress-checkpoint.active .checkpoint-circle {
    border-color: #9A0050;
    background: #9A0050;
    color: white;
}

.progress-checkpoint.completed .checkpoint-circle {
    border-color: #9A0050;
    background: #9A0050;
    color: white;
    font-weight: bold;
}

.checkpoint-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* Wizard Steps */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Option Cards Grid */
.option-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.option-card {
    background: white;
    border: 4px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    text-align: left;
    font: inherit;
    color: inherit;
}

.option-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.option-card.selected {
    border-color: #9A0050;
    box-shadow: 0 0 0 3px rgba(154, 0, 80, 0.1);
}

.option-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.option-card-body {
    padding: 1rem;
}

.option-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.option-card-subtitle {
    margin: 0.5rem 0 0 0;
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

/* Navigation */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.wizard-nav-link {
    background: none;
    border: none;
    color: #9A0050;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.wizard-nav-link:hover {
    color: #7a0040;
    text-decoration: none;
}

.wizard-nav-link.hidden {
    visibility: hidden;
}

.skip-btn {
    background: none;
    border: none;
    color: #9A0050;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
}

.skip-btn:hover {
    color: #7a0040;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .kaufberater-wrapper {
        padding: 1rem;
    }

    .kaufberater-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .kaufberater-header h2 {
        font-size: 22px;
    }

    .option-cards-grid {
        grid-template-columns: 1fr;
    }

    .progress-checkpoint {
        flex: 1;
    }

    .checkpoint-label {
        font-size: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .wizard-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .wizard-nav-link {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .option-cards-grid {
        grid-template-columns: 1fr;
    }

    .checkpoint-circle {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    .checkpoint-label {
        font-size: 9px;
    }
}
