/* === RECHNER PRO — State of the Art === */

/* Wizard Steps */
.wizard-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    position: relative;
}
.wizard-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    position: relative;
    cursor: pointer;
    transition: all .2s;
}
.wizard-step .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-300);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: all .2s;
}
.wizard-step.active .step-num { background: var(--primary); }
.wizard-step.active { color: var(--primary); }
.wizard-step.done .step-num { background: var(--green); }
.wizard-step.done { color: var(--green); }
.wizard-step::after {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--gray-300);
    margin-left: 8px;
}
.wizard-step:last-child::after { display: none; }
.wizard-step.done::after { background: var(--green); }

/* Wizard Panels */
.wizard-panel { display: none; }
.wizard-panel.active { display: block; }

/* Range Slider */
.range-group {
    margin-bottom: 28px;
}
.range-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.range-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}
.range-hint {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 400;
    margin-top: 2px;
}
.range-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    min-width: 80px;
    text-align: right;
}
.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--primary) 0%, var(--primary) var(--val, 50%), var(--gray-300) var(--val, 50%));
    outline: none;
    cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
    cursor: pointer;
    transition: transform .15s;
}
.range-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
    cursor: pointer;
}
.range-marks {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 11px;
    color: var(--gray-500);
}

/* Quick Presets */
.quick-presets {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.preset-btn {
    padding: 6px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: var(--white);
    color: var(--gray-700);
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.preset-btn:hover, .preset-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

/* Select Buttons (Radio-Style) */
.select-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.select-btn {
    flex: 1;
    min-width: 120px;
    padding: 14px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    transition: all .15s;
    text-align: center;
    font-family: inherit;
}
.select-btn:hover { border-color: var(--primary); }
.select-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
}
.select-btn .sb-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    display: block;
}
.select-btn .sb-desc {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
    display: block;
}

/* Live Result Preview */
.live-preview {
    background: var(--gray-50);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.live-preview .lp-item {
    text-align: center;
}
.live-preview .lp-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}
.live-preview .lp-label {
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* Wizard Buttons */
.wizard-btns {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    gap: 12px;
}
.btn-back {
    padding: 12px 24px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}
.btn-back:hover { border-color: var(--primary); color: var(--primary); }
.btn-next {
    padding: 12px 32px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
    margin-left: auto;
}
.btn-next:hover { background: var(--primary-dark); }

/* === ERGEBNIS-DASHBOARD === */
.result-dashboard {
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 32px;
    margin-top: 8px;
}
.result-dashboard h2 {
    text-align: center;
    font-size: 18px;
    color: var(--gray-500);
    font-weight: 500;
    margin-bottom: 4px;
}
.rd-hero {
    text-align: center;
    margin-bottom: 24px;
}
.rd-hero .rd-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}
.rd-hero .rd-sub {
    font-size: 14px;
    color: var(--gray-500);
}

/* Visual Bar */
.rd-bar {
    height: 32px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    margin: 20px 0 8px;
    background: var(--gray-100);
}
.rd-bar-segment {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--white);
    transition: width .5s ease;
    min-width: 30px;
}
.rd-bar-eigen { background: var(--gray-500); }
.rd-bar-zulagen { background: var(--green); }
.rd-bar-rendite { background: var(--primary); }

.rd-bar-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.rd-bar-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-700);
}
.rd-bar-legend .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Result Grid */
.rd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}
.rd-card {
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}
.rd-card .rd-card-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
}
.rd-card .rd-card-val.green { color: var(--green); }
.rd-card .rd-card-val.primary { color: var(--primary); }
.rd-card .rd-card-label {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* Comparison Toggle */
.comparison-toggle {
    display: flex;
    justify-content: center;
    margin: 24px 0 16px;
    gap: 0;
}
.comp-btn {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}
.comp-btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.comp-btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.comp-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Comparison Side-by-Side */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}
.comp-col {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}
.comp-col h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--gray-700);
}
.comp-col .comp-val {
    font-size: 28px;
    font-weight: 800;
}
.comp-col .comp-sub {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}
.comp-col.highlight {
    background: var(--primary-light);
    border: 2px solid var(--primary);
}
.comp-col.highlight .comp-val { color: var(--primary); }
.comp-diff {
    text-align: center;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--green);
}

/* Responsive */
@media (max-width: 768px) {
    .wizard-steps { flex-wrap: wrap; gap: 4px; }
    .wizard-step { padding: 8px 12px; font-size: 12px; }
    .wizard-step::after { width: 20px; }
    .rd-hero .rd-amount { font-size: 36px; }
    .rd-grid { grid-template-columns: 1fr 1fr; }
    .comparison-grid { grid-template-columns: 1fr; }
    .select-btns { flex-direction: column; }
    .select-btn { min-width: auto; }
    .live-preview { flex-direction: column; gap: 8px; }
    .live-preview .lp-item { width: 100%; display: flex; justify-content: space-between; }
    .range-value { font-size: 18px; }
    .result-dashboard { padding: 20px 16px; }
    .rd-card .rd-card-val { font-size: 18px; }
}
@media (max-width: 400px) {
    .rd-grid { grid-template-columns: 1fr; }
    .quick-presets { justify-content: center; }
}
