:root {
    --ea-primary: #2c3e50;
    --ea-secondary: #27ae60;
    --ea-accent: #3498db;
    --ea-light: #f8f9fa;
    --ea-dark: #23282d;
    --ea-border: #ddd;
    --ea-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ea-ankauf-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.ea-ankauf-header {
    text-align: center;
    margin-bottom: 40px;
}

.ea-ankauf-header h1 {
    color: var(--ea-primary);
    font-size: 32px;
    margin-bottom: 10px;
}

.ea-ankauf-header p {
    color: #666;
    font-size: 18px;
}

.ea-steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 0;
    list-style: none;
    position: relative;
}

.ea-steps-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--ea-border);
    z-index: 0;
}

.ea-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ea-step-number {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 3px solid var(--ea-border);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.ea-step.active .ea-step-number {
    background: var(--ea-secondary);
    border-color: var(--ea-secondary);
    color: #fff;
}

.ea-step.completed .ea-step-number {
    background: var(--ea-secondary);
    border-color: var(--ea-secondary);
    color: #fff;
}

.ea-step-label {
    font-size: 14px;
    color: #666;
}

.ea-step.active .ea-step-label {
    color: var(--ea-primary);
    font-weight: 600;
}

.ea-form-section {
    display: none;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--ea-shadow);
    margin-bottom: 20px;
}

.ea-form-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.ea-form-section h2 {
    color: var(--ea-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--ea-light);
}

.ea-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.ea-category-card {
    background: var(--ea-light);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.ea-category-card:hover {
    border-color: var(--ea-accent);
    transform: translateY(-3px);
}

.ea-category-card.selected {
    border-color: var(--ea-secondary);
    background: #e8f5e9;
}

.ea-category-card i {
    font-size: 32px;
    color: var(--ea-primary);
    margin-bottom: 10px;
    display: block;
}

.ea-category-card span {
    font-weight: 500;
    color: var(--ea-dark);
}

.ea-select-wrapper {
    margin-bottom: 20px;
}

.ea-select-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--ea-dark);
}

.ea-select-wrapper select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--ea-border);
    border-radius: 6px;
    font-size: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
}

.ea-select-wrapper select:focus {
    outline: none;
    border-color: var(--ea-accent);
}

.ea-condition-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.ea-condition-option {
    background: #fff;
    border: 2px solid #e8ecf1;
    border-radius: 12px;
    padding: 20px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.ea-condition-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: transparent;
    transition: background 0.3s;
}

.ea-condition-option:nth-child(1)::before { background: #27ae60; }
.ea-condition-option:nth-child(2)::before { background: #2ecc71; }
.ea-condition-option:nth-child(3)::before { background: #f39c12; }
.ea-condition-option:nth-child(4)::before { background: #e67e22; }
.ea-condition-option:nth-child(5)::before { background: #e74c3c; }

.ea-condition-option::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 50%;
    transition: all 0.3s;
}

.ea-condition-option:hover {
    border-color: var(--ea-accent);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.ea-condition-option.selected {
    border-color: var(--ea-secondary);
    background: linear-gradient(135deg, #f0fff4 0%, #e8f5e9 100%);
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.15);
}

.ea-condition-option.selected::after {
    background: var(--ea-secondary);
    border-color: var(--ea-secondary);
    box-shadow: inset 0 0 0 3px #fff;
}

.ea-condition-option h4 {
    margin: 0;
    color: var(--ea-dark);
    font-size: 17px;
    font-weight: 600;
}

.ea-condition-option p {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.4;
}

.ea-condition-content {
    flex: 1;
    padding-right: 40px;
}

.ea-condition-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.ea-condition-option:nth-child(1) .ea-condition-icon {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
}

.ea-condition-option:nth-child(2) .ea-condition-icon {
    background: linear-gradient(135deg, #2ecc71 0%, #58d68d 100%);
    color: #fff;
}

.ea-condition-option:nth-child(3) .ea-condition-icon {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    color: #fff;
}

.ea-condition-option:nth-child(4) .ea-condition-icon {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    color: #fff;
}

.ea-condition-option:nth-child(5) .ea-condition-icon {
    background: linear-gradient(135deg, #e74c3c 0%, #ec7063 100%);
    color: #fff;
}

.ea-questions-section h3 {
    color: var(--ea-primary);
    font-size: 18px;
    margin: 30px 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8ecf1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ea-questions-section h3::before {
    content: '\f059';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--ea-accent);
}

.ea-question-group {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 2px solid #e8ecf1;
    transition: all 0.3s ease;
}

.ea-question-group:hover {
    border-color: #d0d7de;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.ea-question-group > label {
    display: block;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--ea-dark);
    font-size: 15px;
    line-height: 1.5;
}

.ea-radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ea-radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: var(--ea-light);
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.ea-radio-option:hover {
    border-color: var(--ea-accent);
    background: #f0f7ff;
}

.ea-radio-option:has(input:checked) {
    border-color: var(--ea-secondary);
    background: linear-gradient(135deg, #f0fff4 0%, #e8f5e9 100%);
}

.ea-radio-option input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--ea-secondary);
}

.ea-question-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8ecf1;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.ea-question-group select:hover {
    border-color: var(--ea-accent);
}

.ea-question-group select:focus {
    outline: none;
    border-color: var(--ea-accent);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.ea-variant-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

.ea-color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ea-color-option {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #e8ecf1;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ea-color-option:hover {
    transform: scale(1.1);
    border-color: var(--ea-accent);
}

.ea-color-option.selected {
    border-color: var(--ea-secondary);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.3);
}

.ea-color-option.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.ea-color-option[data-color="schwarz"],
.ea-color-option[data-color="black"] { background: linear-gradient(135deg, #2c3e50 0%, #000 100%); }
.ea-color-option[data-color="weiß"],
.ea-color-option[data-color="white"] { background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%); }
.ea-color-option[data-color="silber"],
.ea-color-option[data-color="silver"] { background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%); }
.ea-color-option[data-color="gold"] { background: linear-gradient(135deg, #ffd700 0%, #daa520 100%); }
.ea-color-option[data-color="blau"],
.ea-color-option[data-color="blue"] { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); }
.ea-color-option[data-color="rot"],
.ea-color-option[data-color="red"] { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
.ea-color-option[data-color="grün"],
.ea-color-option[data-color="green"] { background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%); }
.ea-color-option[data-color="rosa"],
.ea-color-option[data-color="pink"] { background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%); }
.ea-color-option[data-color="lila"],
.ea-color-option[data-color="purple"] { background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); }
.ea-color-option[data-color="grau"],
.ea-color-option[data-color="gray"] { background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%); }
.ea-color-option[data-color="titanium"],
.ea-color-option[data-color="titan"] { background: linear-gradient(135deg, #878681 0%, #53524c 100%); }

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

.ea-upload-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e8ecf1;
}

.ea-upload-section h3 {
    color: var(--ea-primary);
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ea-upload-section h3::before {
    content: '\f030';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--ea-accent);
}

.ea-upload-hint {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 20px;
}

.ea-upload-area {
    border: 3px dashed #d0d7de;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.ea-upload-area:hover,
.ea-upload-area.dragover {
    border-color: var(--ea-accent);
    background: #f0f7ff;
}

.ea-upload-placeholder i {
    font-size: 48px;
    color: var(--ea-accent);
    margin-bottom: 15px;
}

.ea-upload-placeholder p {
    font-size: 16px;
    color: var(--ea-dark);
    margin-bottom: 8px;
    font-weight: 500;
}

.ea-upload-placeholder span {
    font-size: 13px;
    color: #95a5a6;
}

.ea-upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.ea-preview-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ea-preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.ea-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 28px;
    height: 28px;
    background: rgba(231, 76, 60, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s;
}

.ea-preview-remove:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.ea-price-display {
    background: linear-gradient(135deg, var(--ea-secondary) 0%, #2ecc71 100%);
    color: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin: 30px 0;
}

.ea-price-display h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 400;
}

.ea-price-display .price {
    font-size: 48px;
    font-weight: 700;
}

.ea-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.ea-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--ea-dark);
}

.ea-form-group label .required {
    color: #e74c3c;
}

.ea-form-group input,
.ea-form-group select,
.ea-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--ea-border);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.ea-form-group input:focus,
.ea-form-group select:focus,
.ea-form-group textarea:focus {
    outline: none;
    border-color: var(--ea-accent);
}

.ea-payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.ea-payment-option {
    background: var(--ea-light);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.ea-payment-option:hover {
    border-color: var(--ea-accent);
}

.ea-payment-option.selected {
    border-color: var(--ea-secondary);
    background: #e8f5e9;
}

.ea-payment-option i {
    font-size: 36px;
    margin-bottom: 10px;
    display: block;
}

.ea-payment-option.paypal i { color: #003087; }
.ea-payment-option.bank i { color: var(--ea-primary); }

.ea-payment-details {
    display: none;
    background: var(--ea-light);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.ea-payment-details.active {
    display: block;
}

.ea-btn-row {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.ea-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ea-btn-back {
    background: #fff;
    border: 2px solid var(--ea-border);
    color: var(--ea-dark);
}

.ea-btn-back:hover {
    background: var(--ea-light);
}

.ea-btn-next {
    background: var(--ea-accent);
    color: #fff;
}

.ea-btn-next:hover {
    background: #2980b9;
}

.ea-btn-submit {
    background: var(--ea-secondary);
    color: #fff;
    flex: 1;
}

.ea-btn-submit:hover {
    background: #219a52;
}

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

.ea-summary {
    background: var(--ea-light);
    padding: 25px;
    border-radius: 8px;
}

.ea-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--ea-border);
}

.ea-summary-row:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 18px;
}

.ea-success-message {
    text-align: center;
    padding: 50px 30px;
}

.ea-success-message i {
    font-size: 80px;
    color: var(--ea-secondary);
    margin-bottom: 20px;
}

.ea-success-message h2 {
    color: var(--ea-primary);
    margin-bottom: 15px;
}

.ea-success-message .request-number {
    background: var(--ea-light);
    padding: 15px 30px;
    border-radius: 6px;
    display: inline-block;
    font-size: 24px;
    font-weight: 700;
    color: var(--ea-secondary);
    margin: 20px 0;
}

.ea-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.ea-loading.active {
    display: block;
}

.ea-spinner {
    border: 4px solid var(--ea-light);
    border-top: 4px solid var(--ea-accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ea-error-message {
    background: #ffebee;
    border: 1px solid #e57373;
    color: #c62828;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .ea-form-row {
        grid-template-columns: 1fr;
    }
    
    .ea-payment-options {
        grid-template-columns: 1fr;
    }
    
    .ea-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ea-steps-indicator {
        flex-wrap: wrap;
    }
    
    .ea-step {
        flex: 0 0 33.33%;
        margin-bottom: 10px;
    }
    
    .ea-btn-row {
        flex-direction: column-reverse;
    }
    
    .ea-btn {
        width: 100%;
        justify-content: center;
    }
}
