/* ========================= */
/* PK-Konfigurator Basis */
.pk-configurator {
    font-family: "Times New Roman", Times, serif;
    font-size: 20px;
    color: #222;
    width: 100%;
    max-width: none;
    line-height: 1.35;
}

/* ========================= */
/* Blöcke */
.pk-step {
    margin-bottom: 22px;
}

/* Überschriften */
.pk-step-title {
    font-family: Arial, sans-serif;
    font-weight: 600;
    margin-top: 50px;
    margin-bottom: 12px; /* mehr Abstand zur Tabelle / Content */
    padding: 0;
    line-height: 1.25;
}

/* Blog-Links unter Überschrift */
.pk-step-link {
    display: block;
    margin-top: 2px;
    margin-bottom: 6px;
}

.pk-step-link a {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #6b5ca5;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pk-step-link a:hover {
    text-decoration: underline;
}

/* ========================= */
/* Auswahlzeilen */
.pk-budget-item {
    display: grid;
    grid-template-columns: auto 180px 120px; /* Name | Input | Wert */
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #e6e6e6;
    min-height: 42px;
    gap: 8px;
    position: relative; /* für Tooltip */
}

.pk-budget-item.no-border {
    border-bottom: none;
}

.pk-budget-item label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pk-budget-item span {
    line-height: 1.3;
    margin: 0;
    padding: 0;
}

/* ========================= */
/* Glow-Checkbox */
.pk-configurator input[type="checkbox"],
.pk-configurator input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #6b5ca5;
    background: #fff;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.pk-configurator input[type="checkbox"]:checked::before,
.pk-configurator input[type="radio"]:checked::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    background: #6b5ca5;
    transform: translate(-50%, -50%);
}

.pk-configurator input[type="checkbox"]:hover,
.pk-configurator input[type="radio"]:hover {
    border-color: #8c73c9;
}

/* ========================= */
/* Prozent-Spalte Input */
.pk-budget-item input.pk-percent {
    width: 180px; /* größer für Placeholder */
    padding: 6px 8px;
    font-size: 14px;
    text-align: left; /* linksbündig */
    border: 1px solid #ccc;
    border-radius: 3px;

    /* Pfeile entfernen */
    -moz-appearance: textfield;
    -webkit-appearance: none;
    appearance: none;
}

.pk-budget-item input.pk-percent::-webkit-outer-spin-button,
.pk-budget-item input.pk-percent::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Entlastung Input unsichtbar */
.pk-budget-item.entlastung input.pk-percent {
    visibility: hidden;
    pointer-events: none;
}

/* ========================= */
/* Tooltip für Pflegesachleistung */
.pk-budget-item.sachleistung .tooltip {
    display: inline-block;
    position: absolute; /* über dem Input-Feld */
    top: -28px;
    left: 0;
    font-size: 14px;
    color: #fff;
    background-color: #6b5ca5;
    padding: 4px 6px;
    border-radius: 4px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.pk-budget-item.sachleistung:hover .tooltip,
.pk-budget-item.sachleistung input.pk-percent:focus + .tooltip {
    visibility: visible;
    opacity: 1;
}

/* ========================= */
/* Budgetwerte */
.pk-budget-value {
    font-size: 13px;
    color: #8a8a8a;
    text-align: right;
    min-width: 120px;
    display: none;
}

.pk-budget-value.visible {
    display: block;
}

/* ========================= */
/* Monatlich eingeplantes Budget */
.pk-total {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    display: flex;
    justify-content: flex-end;
    gap: 120px;
}

.pk-total span,
.pk-total strong {
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.3;
}

/* ========================= */
/* Matrix */
.pk-step.pk-result {
    margin-top: 40px;
}

.pk-matrix {
    width: 100%;
    border-collapse: collapse;
}

.pk-matrix th {
    font-family: Arial, sans-serif;
    background: #ededed;
    border-bottom: 2px solid #ccc;
    padding: 8px 10px;
    font-size: 16px;
    text-align: center;
}

.pk-matrix td {
    padding: 8px 10px;
    border-bottom: 1px solid #e6e6e6;
    height: 34px;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
}

.pk-matrix td:first-child {
    text-align: left;
    background: #f3f3f3;
    width: 180px;
    font-weight: 500;
    white-space: nowrap;
}

.pk-matrix tr.alt td {
    background: #fafafa;
}

.pk-matrix tr.alt td:first-child {
    background: #ededed;
}

/* 0-Werte */
.pk-zero {
    font-size: 13px;
    color: #f2f2f2;
}

/* ========================= */
/* Disclaimer */
.pk-disclaimer {
    margin-top: 18px;
    font-size: 12px;
    color: #9c9c9c;
    font-style: italic;
    line-height: 1.4;
}

/* ========================= */
/* Mobile */
@media (max-width: 768px) {
    .pk-configurator {
        font-size: 18px;
    }

    .pk-step {
        margin-bottom: 18px;
    }

    .pk-step-title {
        margin-top: 16px;
        margin-bottom: 0;
    }

    .pk-budget-item {
        grid-template-columns: auto 140px 100px;
        gap: 4px;
    }

    .pk-total {
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }

    .pk-matrix {
        min-width: 640px;
    }

    .pk-matrix th,
    .pk-matrix td {
        font-size: 15px;
        padding: 7px 8px;
    }

    .pk-matrix td:first-child {
        position: sticky;
        left: 0;
        background: #f3f3f3;
    }

    .pk-matrix tr.alt td:first-child {
        background: #ededed;
    }

    .pk-budget-item input.pk-percent {
        width: 140px;
    }
}
