:root {
    --primary: #0f766e;
    --primary-dark: #115e59;
    --bg: #f3f4f6;
    --card-bg: #ffffff;
    --text: #111827;
    --radius: 14px;
    --shadow: 0 6px 20px rgba(0,0,0,0.07);
    --border: #e3e3e3;
    --soft-text: #666;
    --soft-bg: #eef9f3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(243,244,246,.96);
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .6rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.brand-dot {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #a7f3d0, var(--primary));
}

.brand-name {
    font-weight: 600;
    font-size: .95rem;
}

/* LAYOUT */

.page-main {
    padding: 2.2rem 0 3rem;
}

.hero-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.calc-column,
.text-column {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

/* CARD */

.card {
    background: var(--card-bg);
    border-radius: 1.1rem;
    padding: 1.4rem 1.5rem 1.3rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(15,23,42,.08);
}

.calc-card h1 {
    font-size: 1.4rem;
    margin-bottom: .4rem;
}

.calc-intro {
    font-size: .9rem;
    color: var(--soft-text);
    margin-bottom: .9rem;
}

/* centreren titel / intro */

.calc-card h1,
.calc-card .calc-intro {
    text-align: center;
}

/* FIELDS */

.field-row {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    margin-bottom: .7rem;
}

.field-row label {
    font-size: .8rem;
    color: var(--soft-text);
}

.required {
    color: #dc2626;
}

.field-row input {
    border-radius: .55rem;
    border: 1px solid #d1d5db;
    padding: .5rem .7rem;
    font-size: .9rem;
    font-family: inherit;
    font-weight: 600;
}

.field-row input::placeholder {
    font-weight: 500;
    color: #9ca3af;
}

.field-row input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(15,118,110,.18);
}

/* INLINE FIELD */

.field-inline {
    display: flex;
    align-items: stretch;
    gap: .35rem;
}

.field-inline input {
    flex: 1 1 auto;
}

.field-prefix,
.field-suffix {
    padding: .5rem .7rem;
    border-radius: .55rem;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* EURO PREFIX gestyled */

.field-prefix {
    background: var(--primary);
    border: 1px solid var(--primary-dark);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: .65rem 1.1rem;
    min-width: 48px;
    text-align: center;
}

/* KM SUFFIX thema */

.field-suffix {
    background: var(--primary);
    border: 1px solid var(--primary-dark);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: .65rem 1.1rem;
}

/* DROPDOWN THEMA */

.field-inline select {
    border-radius: .55rem;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
    padding: .65rem .9rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .9rem center;
    background-size: 12px;
    padding-right: 2.2rem;
}

.field-inline select::-ms-expand {
    display: none;
}

.field-inline select option {
    font-size: 1rem;
    font-weight: 600;
    padding: .6rem;
}

/* HINT */

.calc-hint {
    font-size: .78rem;
    color: var(--soft-text);
    text-align: left;
}

.calc-hint.small {
    margin-top: .2rem;
}

/* RESULT-BOX */

.result-box {
    margin-top: .9rem;
    background: #ecfdf5;
    border-radius: 1rem;
    border: 1px solid #bbf7d0;
    padding: .6rem 1rem .55rem;
    font-size: .86rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-row + .result-row {
    margin-top: .1rem;
}

.result-label {
    font-weight: 600;
    color: var(--primary-dark);
}

.result-value,
.result-extra {
    font-weight: 600;
    color: #065f46;
    text-align: right;
}

/* TEKSTKOLOM */

.text-column h2 {
    font-size: 1.25rem;
    margin-bottom: .4rem;
}

.text-column h3 {
    font-size: 1.05rem;
    margin-top: 1.1rem;
    margin-bottom: .2rem;
}

.text-column p {
    font-size: .9rem;
    color: #374151;
    margin-bottom: .55rem;
}

/* FOOTER */

.site-footer {
    padding: 15px 0;
    border-top: 1px solid var(--border);
    background: var(--card-bg);
    margin-top: 40px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--soft-text);
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.footer-link:hover {
    text-decoration: underline;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .page-main {
        padding-top: 1.6rem;
    }

    .card {
        padding: 1.2rem 1.1rem 1.1rem;
    }
}

/* MOBILE: alles onder elkaar, geen gepruts met te smalle velden */

@media (max-width: 480px) {
    .container {
        padding: 0 .75rem;
    }

    .card {
        padding: 1.1rem .9rem 1.1rem;
    }

    .field-inline {
        flex-direction: column;
        align-items: stretch;
        gap: .35rem;
    }

    .field-inline input,
    .field-prefix,
    .field-suffix,
    .field-inline select {
        flex: 0 0 auto;
        width: 100%;
    }

    .field-inline select {
        font-size: .95rem;
        padding: .6rem .9rem;
        background-position: right .75rem center;
        padding-right: 2rem;
    }
}

/* DESKTOP UPGRADE */

@media (min-width: 1024px) {
    .hero-layout {
        gap: 2.5rem;
    }

    .calc-column,
    .text-column {
        max-width: 720px;
    }

    .calc-card {
        padding: 2.2rem 2.6rem;
    }

    .calc-card h1 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: .9rem;
    }

    .calc-intro {
        font-size: 1rem;
    }

    .field-row label {
        font-size: 1.05rem;
        font-weight: 600;
    }

    .field-row input {
        padding: 1rem 1.5rem;
        font-size: 1.3rem;
        font-weight: 600;
    }

    .field-row input::placeholder {
        font-weight: 600;
        color: #9ca3af;
    }

    .text-column h2 {
        font-size: 1.5rem;
    }

    .text-column p {
        font-size: .95rem;
    }
}
