/* =============================================
   Houserocker Preisrechner v2.1
   Farben: #1e3a8a (Dunkelblau), #f59e0b (Orange/Gold)
   ============================================= */

#hr-calc-wrap {
    max-width: 680px;
    margin: 0 auto;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #1e293b;
}

/* ----- Fortschrittsbalken ----- */
#hr-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 0;
}

.hr-prog-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: default;
}

.hr-prog-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hr-prog-label {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.hr-prog-step.active .hr-prog-num {
    background: #1e3a8a;
    color: white;
}

.hr-prog-step.active .hr-prog-label {
    color: #1e3a8a;
    font-weight: 600;
}

.hr-prog-step.done .hr-prog-num {
    background: #f59e0b;
    color: white;
}

.hr-prog-step.done .hr-prog-label {
    color: #f59e0b;
}

.hr-prog-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin-bottom: 20px;
    max-width: 60px;
    transition: background 0.3s ease;
}

.hr-prog-line.done {
    background: #f59e0b;
}

/* ----- Steps ----- */
.hr-step {
    display: none;
    animation: hrFadeIn 0.35s ease;
}

.hr-step.active {
    display: block;
}

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

.hr-step-title {
    font-size: 26px;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 8px;
    text-align: center;
}

.hr-step-sub {
    font-size: 15px;
    color: #64748b;
    text-align: center;
    margin: 0 0 30px;
}

.hr-step-info {
    font-size: 13px;
    color: #64748b;
    text-align: center;
    max-width: 520px;
    margin: -16px auto 24px;
    line-height: 1.5;
}

.hr-step-info strong {
    color: #1e3a8a;
}

/* ----- Slider ----- */
.hr-slider-display {
    text-align: center;
    margin-bottom: 16px;
}

.hr-slider-display span:first-child {
    font-size: 64px;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1;
}

.hr-unit {
    font-size: 28px;
    color: #64748b;
    margin-left: 4px;
}

#hr-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #1e3a8a 0%, #1e3a8a var(--val, 15%), #e2e8f0 var(--val, 15%));
    outline: none;
    cursor: pointer;
    margin-bottom: 8px;
}

#hr-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1e3a8a;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(30,58,138,0.3);
    cursor: pointer;
}

#hr-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1e3a8a;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(30,58,138,0.3);
    cursor: pointer;
}

.hr-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 24px;
}

/* ----- Info-Box unter Slider ----- */
.hr-info-box {
    display: flex;
    gap: 16px;
    justify-content: center;
    background: #f0f5ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 30px;
}

.hr-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hr-info-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hr-info-val {
    font-size: 22px;
    font-weight: 700;
    color: #1e3a8a;
}

/* ----- Karten-Grid ----- */
.hr-card-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hr-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 16px;
    width: 180px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.hr-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 6px 20px rgba(30,58,138,0.1);
    transform: translateY(-2px);
}

.hr-card.active {
    border-color: #1e3a8a;
    background: #eff6ff;
    box-shadow: 0 4px 16px rgba(30,58,138,0.15);
}

.hr-card-icon {
    width: 60px;
    height: 40px;
    margin: 0 auto 10px;
    color: #1e3a8a;
}

.hr-card strong {
    display: block;
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 6px;
}

.hr-card p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.hr-card-price {
    font-size: 16px !important;
    font-weight: 700;
    color: #1e3a8a !important;
    margin: 4px 0 !important;
}

/* Kleine Karten (Notstrom) */
.hr-card-grid--sm {
    gap: 10px;
}

.hr-card-sm {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 12px;
    min-width: 130px;
    max-width: 200px;
    flex: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.hr-card-sm:hover {
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.hr-card-sm.active {
    border-color: #1e3a8a;
    background: #eff6ff;
}

.hr-card-sm strong {
    display: block;
    font-size: 13px;
    color: #1e293b;
    margin-bottom: 4px;
}

.hr-card-sm p {
    font-size: 11px;
    color: #64748b;
    margin: 0;
    line-height: 1.3;
}

/* ----- Toggle ----- */
.hr-toggle-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    justify-content: center;
}

.hr-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.hr-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.hr-toggle-slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 14px;
    transition: 0.3s;
}

.hr-toggle-slider:before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.hr-toggle input:checked + .hr-toggle-slider {
    background: #1e3a8a;
}

.hr-toggle input:checked + .hr-toggle-slider:before {
    transform: translateX(24px);
}

#hr-speicher-toggle-label,
#hr-wallbox-toggle-label {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

/* ----- Speicher-Grid (jetzt OHNE Preise) ----- */
.hr-speicher-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}

.hr-speicher-card {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 22px;
    cursor: pointer;
    text-align: center;
    background: white;
    transition: all 0.2s;
    min-width: 100px;
}

.hr-speicher-card:hover {
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.hr-speicher-card.active {
    border-color: #1e3a8a;
    background: #eff6ff;
}

.hr-speicher-card .s-kwh {
    font-size: 18px;
    font-weight: 700;
    color: #1e3a8a;
}

.hr-speicher-card .s-kwh-tag {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.hr-speicher-card .s-kwh-brutto {
    margin-top: 4px;
    font-size: 12px;
    color: #94a3b8;
}

.hr-notstrom-box {
    margin-top: 8px;
}

/* ----- Navigation ----- */
.hr-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.hr-nav--center {
    justify-content: center;
    gap: 16px;
}

.hr-btn-primary, .hr-btn-secondary, .hr-btn-cta {
    padding: 13px 32px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.hr-btn-primary {
    background: #1e3a8a;
    color: white;
}

.hr-btn-primary:hover {
    background: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(30,58,138,0.25);
}

.hr-btn-secondary {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
}

.hr-btn-secondary:hover {
    background: #e2e8f0;
}

.hr-btn-cta {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 13px 36px;
    font-size: 16px;
    box-shadow: 0 4px 14px rgba(245,158,11,0.3);
}

.hr-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,158,11,0.4);
}

/* ----- Hilfstext ----- */
.hr-sub-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 10px;
    text-align: center;
}

/* ----- Ergebnis ----- */
.hr-result-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
}

.hr-result-line {
    display: flex;
    justify-content: space-between;
    padding: 14px 20px;
    font-size: 15px;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}

.hr-result-line span:last-child {
    font-weight: 600;
    color: #1e293b;
}

.hr-result-total {
    display: flex;
    justify-content: space-between;
    padding: 18px 20px;
    background: #1e3a8a;
    color: white;
    font-size: 18px;
    font-weight: 700;
}

.hr-result-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: #92400e;
    margin-bottom: 24px;
}

/* ----- Responsive ----- */
@media (max-width: 520px) {
    .hr-card { width: 140px; }
    .hr-prog-label { display: none; }
    .hr-step-title { font-size: 22px; }
    .hr-slider-display span:first-child { font-size: 48px; }
    .hr-info-box { flex-direction: column; gap: 10px; }
}
