/* ── Paradiek Ratenkalkulator — Frontend Styles v2 ── */
/* Design: paradiek.art — minimal, serif-free, dark on white, generous whitespace */

.pdkr-calculator {
    max-width: 560px;
    margin: 0 auto;
    font-family: inherit;
    color: #1a1a1a;
    position: relative;
}

/* ── Language switcher ── */
.pdkr-lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    margin-bottom: 32px;
}

.pdkr-lang {
    background: none;
    border: none;
    padding: 2px 0;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #bbb;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s;
}

.pdkr-lang.active {
    color: #1a1a1a;
    font-weight: 600;
}

.pdkr-lang:hover:not(.active) {
    color: #666;
}

.pdkr-lang-sep {
    font-size: 11px;
    color: #ddd;
}

/* ── Labels ── */
.pdkr-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 10px;
    font-weight: 400;
}

.pdkr-hint {
    display: block;
    font-size: 11px;
    letter-spacing: 0.03em;
    color: #bbb;
    margin-top: 7px;
}

/* ── Fields ── */
.pdkr-field {
    margin-bottom: 32px;
}

/* ── Select ── */
.pdkr-select-wrapper {
    position: relative;
    width: 100%;
}

.pdkr-select-wrapper::after {
    content: '↓';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 13px;
    color: #888;
}

.pdkr-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 1px solid #d0d0d0;
    padding: 14px 44px 14px 16px;
    font-size: 15px;
    color: #1a1a1a;
    cursor: pointer;
    border-radius: 0;
    transition: border-color 0.2s;
    font-family: inherit;
}

.pdkr-select:focus {
    outline: none;
    border-color: #1a1a1a;
}

/* ── Size display ── */
.pdkr-size-display {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 32px;
}

.pdkr-size-display .pdkr-label {
    margin-bottom: 0;
}

.pdkr-size-value {
    font-size: 15px;
    color: #555;
    letter-spacing: 0.02em;
}

/* ── Price display ── */
.pdkr-price-display {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    padding: 18px 0;
    margin-bottom: 32px;
}

.pdkr-price-label {
    margin-bottom: 0;
}

.pdkr-price-value {
    font-size: 26px;
    font-weight: 300;
    letter-spacing: -0.01em;
    color: #1a1a1a;
}

/* ── Toggles ── */
.pdkr-toggle-group {
    display: inline-flex;
    border: 1px solid #d0d0d0;
    width: 100%;
}

.pdkr-toggle {
    flex: 1;
    background: #fff;
    border: none;
    border-right: 1px solid #d0d0d0;
    padding: 12px 20px;
    font-size: 13px;
    letter-spacing: 0.05em;
    color: #888;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.pdkr-toggle:last-child {
    border-right: none;
}

.pdkr-toggle.active {
    background: #1a1a1a;
    color: #fff;
}

.pdkr-toggle:hover:not(.active) {
    background: #f5f5f5;
    color: #1a1a1a;
}

/* ── Deposit input ── */
.pdkr-input {
    width: 100%;
    border: 1px solid #d0d0d0;
    padding: 14px 16px;
    font-size: 15px;
    color: #1a1a1a;
    border-radius: 0;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
    background: #fff;
}

.pdkr-input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.pdkr-input.pdkr-error {
    border-color: #c0392b;
}

.pdkr-deposit-error {
    display: block;
    font-size: 11px;
    color: #c0392b;
    margin-top: 7px;
    letter-spacing: 0.02em;
}

/* ── Result ── */
.pdkr-result {
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    padding: 28px 28px 20px;
    margin-top: 8px;
    margin-bottom: 28px;
}

.pdkr-result-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid #efefef;
    font-size: 14px;
    color: #444;
}

.pdkr-result-row:last-of-type {
    border-bottom: none;
}

.pdkr-result-highlight {
    padding: 16px 0;
    margin: 4px 0;
}

.pdkr-result-highlight span:first-child {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
}

.pdkr-result-highlight span:last-child {
    font-size: 30px;
    font-weight: 300;
    letter-spacing: -0.01em;
    color: #1a1a1a;
}

.pdkr-result-sub {
    font-size: 13px;
    color: #999;
}

/* ── CTA ── */
.pdkr-cta {
    margin-top: 4px;
    margin-bottom: 20px;
}

.pdkr-cta-text {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 14px;
    letter-spacing: 0.01em;
}

.pdkr-btn {
    display: inline-block;
    background: #1a1a1a;
    color: #fff !important;
    text-decoration: none !important;
    padding: 14px 32px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-family: inherit;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.pdkr-btn:hover {
    background: #333;
}

/* ── Legal ── */
.pdkr-legal {
    font-size: 11px;
    color: #bbb;
    line-height: 1.6;
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid #efefef;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .pdkr-toggle {
        padding: 11px 10px;
        font-size: 12px;
    }

    .pdkr-result {
        padding: 20px 16px 16px;
    }

    .pdkr-result-highlight span:last-child {
        font-size: 26px;
    }

    .pdkr-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}
