/* DakDekkers Tools - rekentools en daklekkage-check */
.ddt { --t-brand: var(--dd-brand, #16324f); --t-accent: var(--dd-accent, #c2410c); --t-accent-600: var(--dd-accent-600, #9a3412); --t-line: var(--dd-line, #e2e9f1); --t-ink2: var(--dd-ink2, #566070); --t-light: var(--dd-brand-light, #eaf1f8); --t-muted: var(--dd-muted, #fdf2ec);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 1000px; margin: 0 auto; text-align: left; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.55; }
@media (min-width: 880px) { .ddt { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } .ddt[data-ddt="daklekkage"], .ddt[data-ddt="platdak"] { grid-template-columns: minmax(0, 1fr); max-width: 760px; } }
.ddt *, .ddt *::before, .ddt *::after { box-sizing: border-box; }
/* Ruimte vrijhouden zolang de rekentool nog niet is opgebouwd (data-ready ontbreekt): de tekst eronder verspringt dan niet */
.ddt:not([data-ready]) { min-height: 1540px; }
.ddt[data-ddt="platdak"]:not([data-ready]) { min-height: 1310px; }
.ddt[data-ddt="dakpannen"]:not([data-ready]) { min-height: 1465px; }
.ddt[data-ddt="dakisolatie"]:not([data-ready]) { min-height: 1725px; }
.ddt[data-ddt="daklekkage"]:not([data-ready]) { min-height: 570px; }
@media (min-width: 560px) { .ddt:not([data-ready]) { min-height: 1290px; } .ddt[data-ddt="platdak"]:not([data-ready]) { min-height: 1095px; } .ddt[data-ddt="dakpannen"]:not([data-ready]) { min-height: 1120px; } .ddt[data-ddt="dakisolatie"]:not([data-ready]) { min-height: 1350px; } .ddt[data-ddt="daklekkage"]:not([data-ready]) { min-height: 525px; } }
@media (min-width: 720px) { .ddt:not([data-ready]) { min-height: 1155px; } .ddt[data-ddt="platdak"]:not([data-ready]) { min-height: 945px; } .ddt[data-ddt="dakpannen"]:not([data-ready]) { min-height: 1055px; } .ddt[data-ddt="dakisolatie"]:not([data-ready]) { min-height: 1170px; } }
@media (min-width: 880px) { .ddt:not([data-ready]) { min-height: 690px; } .ddt[data-ddt="platdak"]:not([data-ready]) { min-height: 925px; } .ddt[data-ddt="dakpannen"]:not([data-ready]) { min-height: 645px; } .ddt[data-ddt="dakisolatie"]:not([data-ready]) { min-height: 790px; } }
.ddt-form, .ddt-result { min-width: 0; background: #fff; border: 1px solid var(--t-line); border-radius: 14px; padding: 22px; box-shadow: 0 10px 28px rgba(22,50,79,.06); }
.ddt-result:empty { display: none; }
div.ddt p { margin: 0 0 12px; }
div.ddt .ddt-input { background: #fff; color: #1d2433; }
.ddt-title { font-size: 1.2rem; font-weight: 800; color: var(--t-brand); margin-bottom: 6px !important; }
.ddt-intro { color: var(--t-ink2); font-size: .96rem; }
.ddt-field { margin: 0 0 16px; }
.ddt-label { display: block; font-weight: 700; color: var(--t-brand); margin-bottom: 6px; font-size: .98rem; }
.ddt-input { width: 100%; padding: 11px 12px; border: 1px solid #c5d2e0; border-radius: 10px; font-size: 1rem; font-family: inherit; background: #fff; color: #1d2433; min-height: 46px; }
.ddt-input:focus { outline: 3px solid #9fdcff; outline-offset: 1px; border-color: var(--t-brand); }
.ddt-hint { font-size: .86rem; color: var(--t-ink2); margin: 6px 0 0 !important; }
.ddt-choices { display: flex; gap: 8px; flex-wrap: wrap; }
.ddt-choice { flex: 1 1 140px; padding: 11px 12px; border: 2px solid var(--t-line); border-radius: 10px; background: #fff; color: var(--t-brand); font-weight: 700; font-size: .98rem; cursor: pointer; font-family: inherit; line-height: 1.3; }
.ddt-choice:hover, .ddt-choice:focus { background: #fff; color: var(--t-brand); border-color: #9db4cc; }
.ddt-choice.is-on, .ddt-choice.is-on:hover, .ddt-choice.is-on:focus { border-color: var(--t-brand); background: var(--t-light); color: var(--t-brand); }
.ddt-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ddt-chip { padding: 6px 10px; border: 1px solid var(--t-line); border-radius: 999px; background: #f8fafc; color: var(--t-brand); font-size: .84rem; cursor: pointer; font-family: inherit; font-weight: 600; line-height: 1.3; }
.ddt-chip:hover, .ddt-chip:focus { border-color: var(--t-accent); color: var(--t-accent); background: #fff; }
.ddt-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: .96rem; cursor: pointer; }
.ddt-check input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--t-brand); }
.ddt-help { margin: 0 0 16px; border: 1px dashed #c5d2e0; border-radius: 10px; padding: 10px 14px; }
.ddt-help summary { cursor: pointer; font-weight: 700; color: var(--t-brand); font-size: .95rem; }
.ddt-helpgrid { display: grid; gap: 10px; margin: 12px 0 4px; }
@media (min-width: 560px) { .ddt-helpgrid { grid-template-columns: repeat(3, 1fr); } }
.ddt-helpgrid .ddt-field { margin: 0; }
.ddt-helpgrid .ddt-label { font-size: .86rem; }
.ddt-total { background: var(--t-light); border-radius: 12px; padding: 18px; text-align: center; margin-bottom: 16px; }
.ddt-total span { display: block; color: var(--t-brand); font-weight: 700; font-size: .98rem; }
.ddt-total strong { display: block; color: var(--t-brand); font-size: clamp(1.5rem, 2.5vw + 1rem, 2.1rem); font-weight: 800; line-height: 1.25; margin: 4px 0; }
.ddt-total small { color: var(--t-ink2); font-size: .86rem; }
div.ddt table { width: 100%; border-collapse: collapse; margin: 0 0 14px; background: transparent; box-shadow: none; border: 0; border-radius: 0; min-width: 0; }
div.ddt table th, div.ddt table td { padding: 9px 4px; border: 0; border-bottom: 1px solid var(--t-line); text-align: left; font-size: .95rem; vertical-align: top; background: transparent; }
div.ddt table.ddt-rows th { font-weight: 600; color: #1d2433; width: 52%; }
div.ddt table.ddt-rows td { text-align: right; font-weight: 700; color: var(--t-brand); }
div.ddt table.ddt-rows tr.is-plus td { color: #15803d; }
.ddt-tablewrap { overflow-x: auto; }
.ddt-compare { min-width: 460px !important; }
div.ddt table.ddt-compare thead th { color: var(--t-ink2); font-size: .82rem; text-transform: uppercase; letter-spacing: .3px; font-weight: 700; }
div.ddt table.ddt-compare td { white-space: nowrap; }
div.ddt table.ddt-compare tbody th { color: var(--t-brand); font-weight: 800; }
.ddt-notes { margin: 0 0 16px; padding-left: 20px; color: var(--t-ink2); font-size: .9rem; }
.ddt-notes li { margin-bottom: 6px; }
.ddt-offer { background: var(--t-muted); border: 1px solid #f6d3c1; border-radius: 12px; padding: 16px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ddt-offer p { margin: 0 !important; flex: 1 1 240px; font-size: .96rem; }
.ddt-btn, .ddt a.ddt-btn { display: inline-block; background: var(--t-accent); color: #fff !important; font-weight: 800; padding: 12px 18px; border-radius: 10px; text-decoration: none !important; white-space: nowrap; box-shadow: 0 6px 14px rgba(194,65,12,.25); }
.ddt-btn:hover { background: var(--t-accent-600); }
.ddt-src { font-size: .8rem; color: var(--t-ink2); margin: 12px 0 0 !important; }
.ddt-progress { font-size: .86rem; color: var(--t-ink2); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.ddt-question { font-size: 1.25rem; font-weight: 800; color: var(--t-brand); }
.ddt-answers { display: grid; gap: 10px; }
.ddt-answer { text-align: left; padding: 14px 16px; border: 2px solid var(--t-line); border-radius: 12px; background: #fff; color: var(--t-brand); font-weight: 700; font-size: 1rem; cursor: pointer; font-family: inherit; line-height: 1.35; }
.ddt-answer:hover, .ddt-answer:focus { border-color: var(--t-accent); background: var(--t-muted); color: var(--t-brand); }
.ddt-back { background: transparent; border: 0; color: var(--t-ink2); font-size: .92rem; cursor: pointer; padding: 10px 0 0; font-family: inherit; text-decoration: underline; }
.ddt-back:hover, .ddt-back:focus { background: transparent; color: var(--t-brand); }
.ddt-level { border-radius: 12px; padding: 14px 16px; font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; }
.ddt-level.is-urgent { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.ddt-level.is-soon { background: #fff7ed; color: #b45309; border: 1px solid #fed7aa; }
.ddt-level.is-plan { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
div.ddt .ddt-lekresult h3 { text-align: left; font-size: 1.05rem; color: var(--t-brand); margin: 16px 0 8px; font-weight: 800; }
.ddt-lekresult ul { margin: 0 0 8px; padding-left: 20px; }
.ddt-lekresult li { margin-bottom: 6px; }
