/* Shared styles for the KFZ-Wechsel funnel pages (Auswahl / Upload / Daten).
   Ported from design/website/kfz-auswahl.html, kfz-upload-ergo-funnel.html,
   kfz-wechsel-ergo-funnel.html. The nb-* header/footer styles already live
   globally in css/website.css (see resources/views/layouts/website.blade.php)
   and are intentionally NOT duplicated here. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink: #0A0A0A; --ink2: #3C3C3E; --ink3: #8A8A8E; --ink4: #C7C7CC;
  --surface: #FFFFFF; --surface2: #F2F2F7; --surface3: #E5E5EA;
  --accent: #005EA8; --accent-lt: #E8F0FA;
  --green: #00A854; --green-lt: #E6F5EE; --red: #FF3B30;
  --r: 14px; --r-lg: 20px;
  --shadow-lg: 0 16px 48px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.05);
}

.kfz-wechsel-wrap {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--surface2);
  color: var(--ink);
  min-height: 70vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 16px 48px;
}
.kfz-wechsel-wrap input, .kfz-wechsel-wrap select, .kfz-wechsel-wrap textarea { box-sizing: border-box; }

/* Wordmark */
.wordmark { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; text-decoration: none; }
.wm-icon { width: 34px; height: 34px; background: var(--accent); border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.wm-icon svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.wm-name { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.wm-sub { font-size: 12px; color: var(--ink3); }

/* Card */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 500px; overflow: hidden; }

/* Progress */
.progress-strip { height: 3px; background: var(--surface3); border-radius: var(--r-lg) var(--r-lg) 0 0; position: relative; }
.progress-fill { position: absolute; inset-block: 0; left: 0; background: var(--accent); border-radius: var(--r-lg) 0 0 0; transition: width .5s cubic-bezier(.4,0,.2,1); }

/* Step header */
.step-head { padding: 20px 24px 0; }
.step-counter { font-size: 11px; font-weight: 500; color: var(--ink3); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.step-title { font-family: 'DM Sans', sans-serif; font-size: 20px; line-height: 1.3; color: var(--ink); font-weight: 700; letter-spacing: -.03em; margin-bottom: 4px; }
.step-sub { font-size: 13.5px; color: var(--ink3); line-height: 1.6; }

/* Intro box */
.intro-box { background: var(--accent-lt); border-radius: var(--r); padding: 14px 16px; margin: 16px 24px 0; border-left: 3px solid var(--accent); }
.intro-box p { font-size: 13.5px; color: var(--ink2); line-height: 1.65; }
.intro-card { background: var(--accent-lt); border-radius: var(--r); padding: 14px 16px; margin-bottom: 16px; border-left: 3px solid var(--accent); }
.intro-card p { font-size: 13.5px; color: var(--ink2); line-height: 1.75; margin: 0; }
.intro-card strong { color: var(--ink); font-weight: 600; }

/* Step body */
.step-body { padding: 20px 24px 26px; animation: fade-up .25s ease; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Choice list */
.choice-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 18px; }
.choice-item { display: flex; align-items: center; gap: 14px; padding: 13px 15px; border-radius: var(--r); border: 1.5px solid var(--surface3); cursor: pointer; transition: border-color .15s, background .15s; user-select: none; background: var(--surface); }
.choice-item:hover, .choice-item.sel { border-color: var(--accent); background: var(--accent-lt); }
.ci-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--surface3); flex-shrink: 0; display: grid; place-items: center; transition: all .15s; position: relative; }
.choice-item.sel .ci-dot { border-color: var(--accent); background: var(--accent); }
.ci-dot::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .15s; }
.choice-item.sel .ci-dot::after { opacity: 1; }
.ci-label { font-size: 14.5px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.ci-desc { font-size: 12.5px; color: var(--ink3); margin-top: 2px; }

/* Fields */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 12px; font-weight: 500; color: var(--ink3); letter-spacing: .02em; }
.field input, .field select, .field textarea { border: 1.5px solid var(--surface3); border-radius: var(--r); padding: 12px 14px; font-size: 15px; font-family: 'DM Sans', sans-serif; color: var(--ink); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; width: 100%; -webkit-appearance: none; appearance: none; }
.field input::placeholder { color: var(--ink4); }
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,94,168,.08); }
.field input.err, .field select.err, .field textarea.err { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,59,48,.08); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Buttons */
.btn { width: 100%; background: var(--ink); color: #fff; border: none; border-radius: var(--r); padding: 14px; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity .15s, transform .1s; display: flex; align-items: center; justify-content: center; gap: 8px; letter-spacing: -.01em; }
.btn:hover { opacity: .85; }
.btn:active { transform: scale(.99); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.accent { background: var(--accent); }
.btn.green { background: var(--green); }
.btn-ghost { width: 100%; background: none; border: none; font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--ink3); cursor: pointer; padding: 10px; display: flex; align-items: center; justify-content: center; gap: 5px; transition: color .15s; margin-top: 2px; }
.btn-ghost:hover { color: var(--ink); }
.btn-group { display: flex; flex-direction: column; gap: 0; margin-top: 20px; }

/* Toggle */
.toggle-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.tog { border: 1.5px solid var(--surface3); border-radius: var(--r); padding: 12px; text-align: center; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink); transition: border-color .15s, background .15s; }
.tog:hover, .tog.sel { border-color: var(--accent); background: var(--accent-lt); color: var(--accent); }

/* Seg buttons */
.seg-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-bottom: 13px; }
.seg-btn { border: 1.5px solid var(--surface3); border-radius: var(--r); padding: 11px 6px; text-align: center; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--ink); transition: border-color .15s, background .15s; user-select: none; background: var(--surface); }
.seg-btn:hover, .seg-btn.sel { border-color: var(--accent); background: var(--accent-lt); color: var(--accent); }

/* Benefit block */
.benefit-block { background: var(--surface2); border-radius: var(--r); padding: 14px; margin: 14px 0 18px; display: flex; flex-direction: column; gap: 11px; }
.brow { display: flex; align-items: flex-start; gap: 12px; }
.brow-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--surface3); display: grid; place-items: center; flex-shrink: 0; font-size: 16px; }
.brow-text strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.brow-text span { font-size: 13px; color: var(--ink3); line-height: 1.5; }

/* Upload */
.upload-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.upload-label span { font-size: 13px; font-weight: 600; color: var(--ink); }
.req-badge { display: inline-block; background: var(--surface2); color: var(--ink3); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 50px; }
.req-badge.ok { background: var(--green-lt); color: var(--green); }
.req-star { color: var(--red); }
.req-tag { font-size: 11px; font-weight: 500; padding: 2px 7px; border-radius: 50px; flex-shrink: 0; }
.req-tag.req { background: #FEE2E2; color: var(--red); }
.req-tag.ok { background: var(--green-lt); color: var(--green); }
.upload-zone { border: 1.5px dashed var(--surface3); border-radius: var(--r); padding: 20px 16px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; background: var(--surface); margin-bottom: 12px; }
.upload-zone:hover { border-color: var(--accent); background: var(--accent-lt); }
.upload-zone.done { border-color: var(--green); background: var(--green-lt); border-style: solid; }
.upload-zone.err-zone { border-color: var(--red); }
.uz-ico { font-size: 26px; margin-bottom: 6px; }
.uz-h { font-size: 14px; font-weight: 500; color: var(--ink); }
.uz-sub { font-size: 12px; color: var(--ink3); margin-top: 3px; }
.uz-status { font-size: 13px; color: var(--green); font-weight: 500; margin-top: 6px; display: none; }

/* Notice */
.notice { background: var(--surface2); border-radius: var(--r); padding: 13px 15px; margin-bottom: 13px; display: flex; gap: 10px; align-items: flex-start; }
.notice svg { flex-shrink: 0; margin-top: 2px; color: var(--ink3); width: 15px; height: 15px; }
.notice p { font-size: 13px; color: var(--ink2); line-height: 1.6; }

/* Trust row */
.trust-row { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink3); }
.trust-item svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Divider */
.divider { height: 1px; background: var(--surface3); margin: 16px 0; }

/* Section label */
.slabel { font-size: 11px; font-weight: 700; color: var(--ink3); letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: 8px; }

/* Other brand input */
.other-input { display: none; margin-top: 8px; }

/* Overlay / bottom sheet */
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 1000; align-items: flex-end; justify-content: center; }
.overlay.open { display: flex; animation: ov-in .2s ease; }
@keyframes ov-in { from { opacity: 0; } to { opacity: 1; } }
.popup-sheet { background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 26px 26px 38px; width: 100%; max-width: 500px; animation: sheet-up .35s cubic-bezier(.22,1,.36,1); text-align: center; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-handle { width: 36px; height: 4px; background: var(--surface3); border-radius: 2px; margin: 0 auto 22px; }
.sheet-ico { width: 50px; height: 50px; background: var(--green-lt); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 22px; }
.sheet-h { font-family: 'DM Sans', sans-serif; font-size: 21px; font-weight: 700; color: var(--ink); margin-bottom: 8px; letter-spacing: -.02em; }
.sheet-p { font-size: 14px; color: var(--ink3); line-height: 1.7; margin-bottom: 20px; }
.sheet-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--r); font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; text-decoration: none; transition: opacity .15s; }
.sheet-btn:hover { opacity: .85; }
.sheet-note { margin-top: 12px; font-size: 12px; color: var(--ink4); }

/* Auswahl option cards */
.option-card { border: 1.5px solid var(--surface3); border-radius: var(--r); padding: 20px; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; text-decoration: none; display: block; }
.option-card:hover { border-color: var(--accent); background: var(--accent-lt); box-shadow: 0 4px 16px rgba(0,94,168,.1); }
.oc-tag { font-size: 11px; font-weight: 700; color: var(--ink3); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.oc-h { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 6px; letter-spacing: -.02em; }
.oc-p { font-size: 13.5px; color: var(--ink3); line-height: 1.6; }
.oc-arrow { margin-top: 14px; display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--accent); }
.opt-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
