/* Opmeet-app: tablet en telefoon eerst, grote tikdoelen, huisstijl van vloerenplaza.com */
:root {
  --bg: #f6f2ec; --bg2: #efe8de; --wit: #fffdf9; --ink: #1c1a17; --ink2: #4a443b; --zacht: #6f675c;
  --lijn: #e3dacd; --goud: #b0945c; --goud-tekst: #8a6a35; --rood: #b3261e; --groen: #2f6b3f; --oranje: #b45f06;
  --r: 16px; --schaduw: 0 1px 2px rgba(28,26,23,.05), 0 8px 24px -12px rgba(28,26,23,.18);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: Outfit, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 34px; } h2 { font-size: 28px; } h3 { font-size: 22px; }
p { margin: 0 0 12px; }
:focus-visible { outline: 2px solid var(--goud-tekst); outline-offset: 2px; border-radius: 8px; }

/* kaders */
.top { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; padding: env(safe-area-inset-top) 16px 0; }
.top-in { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 12px; min-height: 58px; }
.top img { height: 30px; width: auto; }
.top .titel { font: 600 17px var(--sans); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .klein { font-size: 14px; color: #d9d1c4; }
.top button { background: transparent; border: 1px solid #5a544a; color: #fff; border-radius: 999px; min-height: 40px; padding: 0 14px; cursor: pointer; }
.wrap { max-width: 760px; margin: 0 auto; padding: 18px 16px calc(130px + env(safe-area-inset-bottom)); }
.kaart { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--r); padding: 18px; box-shadow: var(--schaduw); margin-bottom: 14px; }
.kaart > h3 { margin-bottom: 12px; }
.sectie { margin: 22px 0 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sectie h2 { font-size: 26px; }
.zacht { color: var(--zacht); font-size: 15px; }
.boven { font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--goud-tekst); margin-bottom: 6px; }

/* knoppen */
.knop { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 600 17px var(--sans); cursor: pointer; text-decoration: none; touch-action: manipulation; }
.knop:active { transform: translateY(1px); }
.knop.rand { background: transparent; color: var(--ink); }
.knop.goud { background: var(--goud-tekst); border-color: var(--goud-tekst); }
.knop.groot { min-height: 62px; font-size: 19px; width: 100%; }
.knop.klein { min-height: 42px; padding: 0 16px; font-size: 15px; }
.knop.gevaar { background: transparent; border-color: var(--rood); color: var(--rood); }
.knop[disabled] { opacity: .45; cursor: not-allowed; }
.link { background: none; border: 0; padding: 8px 0; color: var(--goud-tekst); text-decoration: underline; cursor: pointer; font: inherit; min-height: 44px; }

/* velden */
.veld { display: block; margin-bottom: 14px; }
.veld > span { display: block; font: 600 14px var(--sans); color: var(--ink2); margin-bottom: 5px; }
.veld > small { display: block; color: var(--zacht); font-size: 13px; margin-top: 4px; line-height: 1.35; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=date], input[type=number], select, textarea {
  width: 100%; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--lijn); border-radius: 12px; background: #fff; font-size: 18px; appearance: none; -webkit-appearance: none;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.4; }
input:focus, select:focus, textarea:focus { border-color: var(--goud-tekst); outline: none; box-shadow: 0 0 0 3px rgba(176,148,92,.25); }
input.fout, .veld.fout input { border-color: var(--rood); }
.rij { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.rij.drie { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 420px) { .rij.drie { grid-template-columns: 1fr 1fr; } }
.maat { position: relative; }
.maat input { padding-right: 46px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.maat::after { content: 'cm'; position: absolute; right: 14px; bottom: 15px; color: var(--zacht); font-size: 14px; pointer-events: none; }

/* keuzes */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--lijn); background: #fff; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; touch-action: manipulation; }
.chip[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.schakel { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--lijn); min-height: 56px; cursor: pointer; }
.schakel:first-of-type { border-top: 0; }
.schakel b { display: block; font-weight: 600; }
.schakel small { color: var(--zacht); font-size: 13px; display: block; line-height: 1.3; }
.schakel input { position: absolute; opacity: 0; pointer-events: none; }
.schakel .knopje { flex: none; width: 54px; height: 32px; border-radius: 999px; background: #cfc6b8; position: relative; transition: background .15s; }
.schakel .knopje::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.schakel input:checked + .knopje { background: var(--ink); }
.schakel input:checked + .knopje::after { transform: translateX(22px); }
.schakel input:focus-visible + .knopje { outline: 2px solid var(--goud-tekst); outline-offset: 2px; }
.uitklap { border-top: 1px solid var(--lijn); padding-top: 12px; margin-top: 2px; }

/* stappenbalk */
.stappen { display: flex; gap: 6px; margin-bottom: 18px; }
.stappen button { flex: 1; min-width: 0; min-height: 52px; border: 0; border-radius: 12px; background: var(--bg2); color: var(--zacht); font: 600 12px var(--sans); padding: 6px 2px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 1.1; }
.stappen button b { font: 600 17px var(--serif); }
.stappen button[aria-current=step] { background: var(--ink); color: #fff; }
.stappen button.klaar { background: #e4ecdf; color: var(--groen); }
.stappen button.klaar[aria-current=step] { background: var(--ink); color: #fff; }
@media (max-width: 480px) { .stappen button span { display: none; } }

/* vaste onderbalk */
.voet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: rgba(255,253,249,.97); border-top: 1px solid var(--lijn); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); backdrop-filter: blur(6px); }
.voet-in { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.voet .samen { flex: 1; min-width: 0; line-height: 1.2; }
.voet .samen b { font: 600 24px var(--serif); display: block; white-space: nowrap; }
.voet .samen span { font-size: 13px; color: var(--zacht); }
.voet .knop { flex: none; }
@media (max-width: 520px) {
  .voet-in { flex-wrap: wrap; row-gap: 6px; }
  .voet .samen { flex-basis: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .voet .samen b { font-size: 22px; }
  .voet .knop { flex: 1; }
}

/* meldingen */
.meld { border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; font-size: 15px; line-height: 1.4; }
.meld.fout { background: #fbeae8; border: 1px solid #efb7b2; color: #7a1a13; }
.meld.info { background: #f3ecdf; border: 1px solid #e3d3b2; color: #5b4620; }
.meld.ok { background: #e4ecdf; border: 1px solid #b9d1ae; color: #1f4a2c; }
.meld ul { margin: 6px 0 0; padding-left: 20px; }
#toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90vw; text-align: center; font-size: 15px; }
#toast.zicht { opacity: 1; }

/* lijsten */
.lijst { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.item { min-width: 0; display: flex; gap: 12px; align-items: center; background: var(--wit); border: 1px solid var(--lijn); border-radius: 14px; padding: 12px 14px; text-align: left; width: 100%; cursor: pointer; min-height: 64px; }
.item .tekst { flex: 1; min-width: 0; }
.item .tekst b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .tekst span { color: var(--zacht); font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chipstatus { flex: none; border-radius: 999px; padding: 4px 12px; font: 600 12px var(--sans); background: var(--bg2); color: var(--ink2); white-space: nowrap; }
.chipstatus.s-nieuw { background: #f3e6c8; color: #6b4d12; }
.chipstatus.s-snijden { background: #dbe7f5; color: #1d4a7a; }
.chipstatus.s-gesneden { background: #e4ecdf; color: #1f4a2c; }
.chipstatus.s-gelegd { background: #1c1a17; color: #fff; }
.chipstatus.s-geannuleerd { background: #fbeae8; color: #7a1a13; }
.nr { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 600 17px var(--serif); }
.nr.wig { background: var(--goud-tekst); }
.nr.bordes { background: var(--zacht); }
.stukken .item { padding: 8px 12px 8px 10px; }
.stukken .vpt { width: 84px; height: auto; flex: none; }
.stukken .vrijblok { flex: none; width: 84px; height: 62px; border: 1.5px dashed var(--lijn); border-radius: 10px; display: grid; place-items: center; color: var(--zacht); font: 600 22px var(--serif); }
.vrijtekst { font: 600 34px var(--serif); padding: 26px 8px; text-align: center; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { flex: none; width: 52px; height: 52px; border-radius: 14px; border: 1.5px solid var(--lijn); background: #fff; font-size: 26px; cursor: pointer; touch-action: manipulation; }
.stepper input[type=text] { text-align: center; font-weight: 600; min-width: 0; padding: 10px 6px; }
.trapkaart { padding: 16px; }
.trapkop { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.trapkop .trapnaam { font: 600 24px var(--serif); min-width: 0; }
.stuklijst { margin-top: 18px; }
.sectie.klein { margin: 4px 0 8px; }
.sectie.klein h3 { font-size: 20px; margin: 0; }
.leeg.klein { padding: 12px; font-size: 14px; }
.regelrij { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .6fr) minmax(0, 1fr) 48px; gap: 8px; margin-bottom: 8px; }
.regelrij input[type=text] { min-height: 48px; padding: 8px 10px; font-size: 16px; }
.regelrij .knop { padding: 0; min-height: 48px; }
.maat.euro::after { content: '€'; right: auto; left: 16px; bottom: 17px; font-size: 24px; color: var(--ink); }
.maat.euro input { text-align: left; padding-left: 42px; padding-right: 14px; }
.leeg { text-align: center; color: var(--zacht); padding: 24px 12px; border: 1.5px dashed var(--lijn); border-radius: 14px; }

/* bottom sheet */
.sheet-bg { position: fixed; inset: 0; background: rgba(28,26,23,.5); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg); width: 100%; max-width: 760px; max-height: 94vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 14px 16px calc(24px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.sheet-kop { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sheet-kop h3 { flex: 1; text-align: center; }
.sheet-kop button { min-width: 48px; min-height: 48px; border-radius: 50%; border: 1px solid var(--lijn); background: #fff; font-size: 22px; cursor: pointer; }
.schets { display: grid; place-items: center; background: var(--wit); border: 1px solid var(--lijn); border-radius: 14px; padding: 8px; margin-bottom: 14px; }
.schets .vpt { width: 100%; max-width: 360px; }
.segment { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--bg2); border-radius: 14px; padding: 4px; margin-bottom: 14px; }
.segment button { min-height: 48px; border: 0; border-radius: 11px; background: transparent; font: 600 15px var(--sans); cursor: pointer; padding: 0 6px; }
.segment button[aria-pressed=true] { background: var(--ink); color: #fff; }
.acties { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* materiaal-keuze */
.keuze { display: grid; gap: 10px; }
.keuze button { text-align: left; background: #fff; border: 1.5px solid var(--lijn); border-radius: 14px; padding: 14px 16px; cursor: pointer; display: flex; align-items: center; gap: 14px; min-height: 72px; }
.keuze button[aria-pressed=true] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fbf8f3; }
.keuze b { font: 600 22px var(--serif); display: block; }
.keuze span { color: var(--zacht); font-size: 14px; }
.keuze .prijs { margin-left: auto; font-weight: 600; white-space: nowrap; text-align: right; }

/* prijs */
.prijsregel { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--lijn); font-size: 16px; }
.prijsregel:first-child { border-top: 0; }
.prijsregel span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.prijsregel.totaal { font: 600 26px var(--serif); border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 12px; }
.prijsregel.klein { color: var(--zacht); font-size: 14px; }

/* foto's + handtekening */
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 10px; }
.fotos .foto { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--lijn); }
.fotos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fotos .foto button { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(28,26,23,.75); color: #fff; font-size: 18px; cursor: pointer; }
.handtekening { position: relative; background: #fff; border: 1.5px dashed var(--goud); border-radius: 14px; height: 200px; touch-action: none; }
.handtekening canvas { width: 100%; height: 100%; display: block; border-radius: 14px; touch-action: none; }
.handtekening .stip { position: absolute; left: 16px; right: 16px; bottom: 44px; border-bottom: 1.5px solid var(--lijn); pointer-events: none; }
.handtekening .tip { position: absolute; left: 16px; bottom: 12px; color: var(--zacht); font-size: 13px; pointer-events: none; }
.opsomming { margin: 0; padding-left: 20px; color: var(--ink2); font-size: 15px; }
.opsomming li { margin: 3px 0; }

/* inlog + klaar */
.inlog { max-width: 420px; margin: 0 auto; padding: 40px 16px; }
.inlog img { height: 64px; width: auto; margin: 0 auto 22px; display: block; }
.klaar-scherm { text-align: center; padding: 28px 8px; }
.klaar-scherm .vink { width: 84px; height: 84px; border-radius: 50%; background: #e4ecdf; color: var(--groen); display: grid; place-items: center; font-size: 46px; margin: 0 auto 18px; }
.uitleg { color: var(--ink2); font-size: 15px; background: var(--bg2); border-radius: 12px; padding: 10px 12px; margin: 0 0 14px; }
