/* hej impact Gehaltsrechner v1.0.0 */
/* Pantone Brand Colors:
   1805 C  → #9D2235  (Key-Rot)
   4146 C  → #E8D5C4  (Creme)
   668 C   → #5C5FA6  (Blau-Lila)
   4124 C  → #C4A882  (Warmbeige)
   2456 C  → #5C2D82  (Dunkelviolett)
   2455 C  → #7D4199  (Violett)
   Cool Gray 4 C → #BBBCBC
*/

:root {
    --hej-red:        #9D2235;
    --hej-red-light:  #f5e6e9;
    --hej-red-mid:    #c0455a;
    --hej-cream:      #E8D5C4;
    --hej-beige:      #C4A882;
    --hej-purple-dk:  #5C2D82;
    --hej-purple:     #7D4199;
    --hej-blue:       #5C5FA6;
    --hej-gray:       #BBBCBC;
    --hej-gray-light: #f4f4f4;
    --hej-text:       #1a1a1a;
    --hej-text-muted: #5a5a5a;
    --hej-border:     #e0e0e0;
    --hej-radius:     8px;
    --hej-radius-lg:  12px;
}

.hej-calc-wrap *,
.hej-calc-wrap *::before,
.hej-calc-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.hej-calc-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--hej-text);
    max-width: 720px;
    margin: 2rem auto;
    line-height: 1.5;
}

.hej-calc-wrap p,
.hej-calc-wrap label,
.hej-calc-wrap span {
    font-size: 15px;
}

/* --- Header --- */
.hej-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.hej-header-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--hej-red);
    flex-shrink: 0;
}

.hej-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--hej-text);
    letter-spacing: -0.01em;
}

/* --- Cards --- */
.hej-card {
    background: #fff;
    border: 1px solid var(--hej-border);
    border-radius: var(--hej-radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.hej-section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hej-red);
    margin-bottom: 1rem;
}

/* --- Base inputs --- */
.hej-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.hej-row:last-child {
    margin-bottom: 0;
}

.hej-row label {
    font-size: 14px;
    color: var(--hej-text-muted);
    min-width: 110px;
}

.hej-row input[type="number"] {
    width: 130px;
    padding: 8px 10px;
    border: 1px solid var(--hej-border);
    border-radius: var(--hej-radius);
    font-size: 15px;
    font-family: inherit;
    color: var(--hej-text);
    background: #fff;
    transition: border-color .15s;
    -moz-appearance: textfield;
}

.hej-row input[type="number"]::-webkit-inner-spin-button,
.hej-row input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.hej-row input[type="number"]:focus {
    outline: none;
    border-color: var(--hej-red);
}

.hej-unit {
    font-size: 13px;
    color: var(--hej-text-muted);
}

/* --- Divider --- */
.hej-divider {
    border: none;
    border-top: 1px solid var(--hej-border);
    margin: 1rem 0;
}

/* --- Stepper --- */
.hej-stepper-row {
    margin-bottom: 1rem;
}

.hej-stepper-row:last-child {
    margin-bottom: 0;
}

.hej-stepper-label {
    font-size: 14px;
    color: var(--hej-text-muted);
    margin-bottom: 6px;
    display: block;
}

.hej-stepper-hint {
    font-size: 12px;
    color: var(--hej-gray);
    margin-left: 6px;
}

.hej-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hej-stepper button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--hej-border);
    border-radius: var(--hej-radius);
    background: #fff;
    color: var(--hej-text);
    font-size: 18px;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background .12s, border-color .12s;
    padding: 0;
}

.hej-stepper button:hover {
    background: var(--hej-red-light);
    border-color: var(--hej-red-mid);
}

.hej-stepper-val {
    font-size: 16px;
    font-weight: 600;
    min-width: 22px;
    text-align: center;
    color: var(--hej-text);
}

/* --- Toggle items grid --- */
.hej-toggle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

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

.hej-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--hej-border);
    border-radius: var(--hej-radius);
    cursor: pointer;
    user-select: none;
    background: #fff;
    transition: background .12s, border-color .12s;
}

.hej-toggle-item:hover {
    background: var(--hej-gray-light);
}

.hej-toggle-item.active {
    border-color: var(--hej-red);
    background: var(--hej-red-light);
}

.hej-toggle-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hej-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1.5px solid var(--hej-border);
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .12s, border-color .12s;
}

.hej-toggle-item.active .hej-checkbox {
    background: var(--hej-red);
    border-color: var(--hej-red);
}

.hej-checkbox-icon {
    display: none;
    width: 11px;
    height: 8px;
    position: relative;
}

.hej-checkbox-icon::before,
.hej-checkbox-icon::after {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 1px;
}

.hej-checkbox-icon::before {
    left: 0;
    top: 5px;
    width: 5px;
    height: 2px;
    transform: rotate(45deg);
    transform-origin: right center;
}

.hej-checkbox-icon::after {
    left: 3px;
    top: 1px;
    width: 8px;
    height: 2px;
    transform: rotate(-45deg);
    transform-origin: left center;
}

.hej-toggle-item.active .hej-checkbox-icon {
    display: block;
}

.hej-toggle-label {
    font-size: 13px;
    color: var(--hej-text);
    line-height: 1.3;
}

.hej-toggle-pts {
    font-size: 12px;
    color: var(--hej-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.hej-toggle-item.active .hej-toggle-pts {
    color: var(--hej-red-mid);
    font-weight: 600;
}

/* --- Points badge --- */
.hej-pts-badge {
    display: inline-block;
    background: var(--hej-red);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    padding: 2px 9px;
    margin-left: 8px;
    vertical-align: middle;
}

/* --- Result card --- */
.hej-result-card {
    background: var(--hej-red);
    border-radius: var(--hej-radius-lg);
    padding: 1.5rem;
    margin-top: 1.25rem;
    color: #fff;
}

.hej-result-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 4px;
}

.hej-result-amount {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    line-height: 1;
}

.hej-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    padding: 6px 0;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.hej-result-row span:last-child {
    color: rgba(255,255,255,0.95);
    font-weight: 600;
}

/* --- Note --- */
.hej-note {
    font-size: 12px;
    color: var(--hej-text-muted);
    margin-top: 0.75rem;
    padding-left: 1rem;
    border-left: 2px solid var(--hej-beige);
    line-height: 1.5;
}
