: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;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
}

/* CONTAINERS */
.container {
    width: 95%;
    max-width: 980px;
    margin: 0 auto;
}

/* HEADER */
.site-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.header-inner {
    display: flex;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
}
.brand-dot {
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
}
.brand-name {
    font-weight: 700;
    font-size: 1.25rem;
}

/* LAYOUT */

.page-main {
    padding: 1rem 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: 1rem;
    }

    .card {
        padding: 0rem 1.1rem 1.1rem;
    }
}

/* MOBILE: alles onder elkaar, geen gepruts met te smalle velden */

@media (max-width: 480px) {
    .container {
        padding: 0 .75rem;
    }

    .card {
        padding: 0rem .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;
    }
    
    .field-inline.keep-inline {
    flex-direction: row;
    align-items: stretch;
}

.field-inline.keep-inline .field-suffix {
    width: auto;
    min-width: 72px;
    justify-content: center;
}

.field-inline.distance-inline {
    flex-direction: row;
    align-items: stretch;
}

.field-inline.distance-inline input {
    flex: 0 0 55%;
    width: auto;
}

.field-inline.distance-inline .field-suffix {
    flex: 1 1 auto;
    width: auto;
}

.field-inline.consumption-inline {
    flex-direction: row;
    align-items: stretch;
}

.field-inline.consumption-inline input {
    flex: 0 0 55%;
}

.field-inline.consumption-inline select {
    flex: 1 1 auto;
}

.field-inline.consumption-inline input,
.field-inline.consumption-inline select {
    width: auto;
    min-width: 0;
}

}

/* DESKTOP UPGRADE */

@media (min-width: 1024px) {
    .hero-layout {
        gap: 2.5rem;
    }

    .calc-column,
    .text-column {
        max-width: 720px;
    }

    .calc-card {
        padding: 0rem 2.6rem 1rem;
    }

    .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;
    }
}
/* HEADER SHARE BUTTON */
.header-share {
    position: relative;
    margin-left: auto;
}

.header-share-btn {
    background: #0f766e;
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    transition: background 0.15s, transform 0.1s;
}

.header-share-btn:hover {
    background: #115e59;
    transform: translateY(-1px);
}

.header-share-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    padding: 0.35rem 0;
    min-width: 180px;
    z-index: 9999;
}

.header-share-menu.open {
    display: block;
}

.header-share-item {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    cursor: pointer;
    color: #111827;
    transition: background 0.15s;
}

.header-share-item:hover {
    background: #f3f4f6;
}

/* Copy confirmation */
.header-share-toast {
    position: absolute;
    right: 0;
    top: -28px;
    background: #111827;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.15s, transform 0.15s;
}

.header-share-toast.show {
    opacity: 1;
    transform: translateY(-10px);
}

/* =========================
   FAQ (mini template)
   ========================= */

.faq {
    margin-top: 1.6rem;
}

.faq h2 {
    margin-top: 1.2rem;
    margin-bottom: 0.9rem;
}

/* elke vraag als kaartje */
.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.7rem;
    background: #fafafa;
}

/* klikbare vraagregel */
.faq-item > summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;                /* Firefox */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* standaard driehoek weghalen (Chrome/Safari) */
.faq-item > summary::-webkit-details-marker {
    display: none;
}

/* standaard marker weghalen (moderne browsers) */
.faq-item > summary::marker {
    content: "";
}

/* eigen pijl */
.faq-item > summary::after {
    content: "›";
    font-size: 22px;
    line-height: 1;
    opacity: 0.75;
    transform: rotate(0deg);
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.faq-item[open] > summary::after {
    transform: rotate(90deg);
    opacity: 1;
}

/* antwoord spacing */
.faq-item > p {
    margin: 0.75rem 0 0 0;
    line-height: 1.6;
    color: #374151;
}

/* Reisafstand: input compacter, km vult de rest */
.field-inline.distance-inline input {
    flex: 0 0 55%;
}

.field-inline.distance-inline .field-suffix {
    flex: 1 1 auto;
}

/* Brandstofverbruik: input compacter, unit (select) vult de rest */
.field-inline.consumption-inline input {
    flex: 0 0 55%;
}

.field-inline.consumption-inline select {
    flex: 1 1 auto;
}

/* FORCE inline op mobiel voor distance + consumption */
@media (max-width: 480px) {
  .field-inline.distance-inline,
  .field-inline.consumption-inline.keep-inline {
    flex-direction: row;
    align-items: stretch;
  }

  .field-inline.distance-inline input,
  .field-inline.consumption-inline.keep-inline input {
    flex: 0 0 50%;
    width: auto;
    min-width: 0;
  }

  .field-inline.distance-inline .field-suffix,
  .field-inline.consumption-inline.keep-inline select {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
}

/* Brandstofprijs: € klein links, input vult de rest (desktop + mobiel) */
.field-inline.price-inline {
  flex-direction: row;
  align-items: stretch;
}

.field-inline.price-inline .field-prefix {
  flex: 0 0 auto;     /* niet uitrekken */
  min-width: 56px;    /* klein blokje */
  padding: .65rem 0;  /* mooi compact */
}

.field-inline.price-inline input {
  flex: 1 1 auto;     /* input vult de rest */
  min-width: 0;
}

/* Brandstofprijs: op mobiel niet 100% breed, maar compact links */
@media (max-width: 480px) {
  .field-inline.price-inline.keep-inline {
    flex-direction: row;
    align-items: stretch;
  }

  .field-inline.price-inline.keep-inline .field-prefix {
    width: auto !important;
    flex: 0 0 auto;
    min-width: 56px;
    padding: .65rem 0;
  }

  .field-inline.price-inline.keep-inline input {
    width: auto !important;
    flex: 1 1 auto;
    min-width: 0;
  }
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-sep {
  color: #9ca3af;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--soft-text);
  text-align: center;
}

.brand {
  text-decoration: none;
  color: inherit;
}

