/* Samensteller (/samenstellen) */

.cfg-hero { position: relative; padding-top: 170px; padding-bottom: 72px; }
.cfg-hero__glow { position: absolute; left: 30%; top: -10%; width: 1100px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(61,123,255,.2), transparent); pointer-events: none; z-index: -1; }
.cfg-hero h1 { font-size: clamp(42px, 7vw, 104px); }
.cfg-hero__lead { max-width: 560px; margin-top: 28px; font-size: 19px; color: var(--muted); }
.cfg-hero__steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; padding: 0; }
.cfg-hero__steps a { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 14px; color: var(--muted); transition: color .3s, border-color .3s, background .3s; }
.cfg-hero__steps a:hover { color: var(--text); border-color: var(--blue); }
.cfg-hero__steps span { font-family: var(--mono); font-size: 11px; color: var(--blue-2); }

.cfg { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 4vw, 64px); align-items: start; padding-bottom: 120px; }
.cfg__steps { display: grid; gap: 24px; min-width: 0; }

.cstep { padding: clamp(24px, 3vw, 40px); border-radius: 22px; background: linear-gradient(180deg, var(--bg-2), rgba(8,12,24,.5)); border: 1px solid var(--line); scroll-margin-top: 90px; }
.cstep__head { display: flex; gap: 20px; margin-bottom: 32px; }
.cstep__n { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(61,123,255,.12); color: var(--blue-2); font-family: var(--mono); font-size: 13px; }
.cstep__head h2 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.035em; margin-bottom: 6px; }
.cstep__head p { color: var(--muted); font-size: 15px; max-width: 560px; }
.cstep__note { margin: -12px 0 20px; padding: 14px 16px; border-radius: 10px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 14px; }

/* shared selectable card */
.pick { position: relative; text-align: left; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255,255,255,.015); transition: border-color .3s, background .3s, transform .5s var(--ease), box-shadow .4s; cursor: pointer; }
.pick:hover { border-color: rgba(143,182,255,.35); }
.pick.is-on { border-color: var(--blue); background: rgba(61,123,255,.07); box-shadow: 0 0 0 1px var(--blue), 0 20px 50px -30px rgba(61,123,255,.7); }
.pick__check { position: absolute; top: 18px; right: 18px; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-2); display: grid; place-items: center; color: #fff; transition: .3s var(--ease); }
.pick__check svg { width: 14px; opacity: 0; transform: scale(.5); transition: .3s var(--ease); }
.pick.is-on .pick__check { background: var(--blue); border-color: var(--blue); }
.pick.is-on .pick__check svg { opacity: 1; transform: none; }

/* packages */
.pk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pk { padding: 22px 22px 20px; display: flex; flex-direction: column; }
.pk h3 { font-size: 21px; margin-bottom: 6px; }
.pk__tag { color: var(--muted); font-size: 14px; line-height: 1.45; margin-bottom: 18px; padding-right: 30px; }
.pk__price { display: flex; align-items: baseline; gap: 6px; margin-top: auto; }
.pk__price small { color: var(--muted); font-size: 13px; }
.pk__price b { font-family: var(--display); font-weight: 500; font-size: 30px; letter-spacing: -.04em; }
.pk__list { list-style: none; padding: 14px 0 0; margin: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.pk__list li::before { content: "+ "; color: var(--blue-2); font-family: var(--mono); }
.pk__flag { position: absolute; top: 20px; right: 50px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-2); }

/* templates */
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tpl { padding: 10px 10px 18px; display: flex; flex-direction: column; }
.tpl:last-child:nth-child(odd), .tpl:nth-child(odd):has(+ .tpl--custom), .tpl--custom { grid-column: 1 / -1; }
.tpl:last-child:nth-child(odd) .tpl__frame, .tpl:nth-child(odd):has(+ .tpl--custom) .tpl__frame { aspect-ratio: 1200 / 520; }
.tpl--custom .tpl__frame { aspect-ratio: 1200 / 780; }
.tpl--custom { border-style: dashed; }
.tpl--custom.is-on { border-style: solid; }
.tpl__level .pencil { width: 15px; height: 15px; }
.tpl__hint { max-width: 60%; text-align: right; font-size: 12.5px; color: var(--muted); }
.tpl__frame { aspect-ratio: 1200 / 760; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.tpl__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 75%, rgba(4,6,12,.35)); pointer-events: none; }
.tpl__body { padding: 16px 8px 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; }
.tpl__level { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-2); }
.tpl h3 { font-size: 20px; grid-column: 1; }
.tpl__price { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-family: var(--display); font-size: 18px; letter-spacing: -.02em; }
.tpl__price small { display: block; font-family: var(--body); font-size: 12px; color: var(--muted); letter-spacing: 0; }
.tpl__desc { grid-column: 1 / -1; color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 4px; }
.tpl__traits { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--text); }
.tpl__traits span::before { content: "·"; color: var(--blue-2); margin-right: 6px; }
.tpl__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.tpl__view { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; font-size: 13px; padding: 6px 10px; margin: -6px -10px; border-radius: 8px; transition: background .3s; }
.tpl__view:hover { background: rgba(255,255,255,.06); }
.tpl__view svg { width: 14px; }
.tpl-grid.is-off .tpl { opacity: .45; }
.tpl-grid.is-off .tpl.is-on { box-shadow: none; border-color: var(--line-2); background: none; }

/* features */
.feats { display: grid; gap: 28px; }
.feats__group > small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.feat-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 16px 4px; border-top: 1px solid var(--line); cursor: pointer; }
.feats__group .feat-row:last-child { border-bottom: 1px solid var(--line); }
.feat-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { position: relative; width: 40px; height: 24px; border-radius: 7px; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 5px; background: var(--muted); transition: transform .4s var(--ease), background .3s; }
.feat-row input:checked + .switch { background: var(--blue); box-shadow: none; }
.feat-row input:checked + .switch::after { transform: translateX(16px); background: #fff; }
.feat-row input:focus-visible + .switch { outline: 2px solid var(--blue-2); outline-offset: 3px; }
.feat-row b { display: block; font-weight: 600; font-size: 15.5px; }
.feat-row p { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.feat-row__price { font-family: var(--mono); font-size: 13px; color: var(--text); text-align: right; white-space: nowrap; }
.feat-row__price.is-incl { color: var(--green); }
.feat-row.is-locked { cursor: default; }
.feat-row.is-locked .switch { opacity: .6; }
.feat-row.is-na { cursor: not-allowed; opacity: .4; }
.feat-row.is-na .feat-row__price { color: var(--muted); font-family: var(--body); font-size: 12px; }

/* options */
.opts { display: grid; gap: 12px; }
.opt { padding: 22px; border-radius: 14px; border: 1px solid var(--line-2); }
.opt--products { margin-top: 20px; }
.opt--row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.opt__head h3 { font-size: 17px; margin-bottom: 4px; letter-spacing: -.01em; }
.opt__head p { color: var(--muted); font-size: 14px; }
.opt__ctrl { display: flex; align-items: center; gap: 20px; margin-top: 20px; }
.opt__ctrl output { flex: none; min-width: 120px; text-align: right; font-family: var(--display); font-size: 20px; letter-spacing: -.02em; }
.opt__calc { margin-top: 12px; font-family: var(--mono); font-size: 12.5px; color: var(--blue-2); }

input[type="range"] { -webkit-appearance: none; appearance: none; flex: 1; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--blue) var(--p, 0%), var(--line-2) var(--p, 0%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--blue) var(--p, 0%), var(--line-2) var(--p, 0%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 7px; background: #fff; box-shadow: 0 0 0 4px rgba(61,123,255,.35), 0 4px 10px rgba(0,0,0,.4); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 7px; background: #fff; box-shadow: 0 0 0 4px rgba(61,123,255,.35); }

.stepper { flex: none; display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.stepper button { width: 44px; height: 44px; font-size: 20px; color: var(--text); transition: background .2s; }
.stepper button:hover:not(:disabled) { background: rgba(255,255,255,.06); }
.stepper button:disabled { color: var(--dim); cursor: not-allowed; }
.stepper output { min-width: 44px; text-align: center; font-family: var(--display); font-size: 19px; font-variant-numeric: tabular-nums; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 16px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 14px; transition: .3s var(--ease); }
.seg span small { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.seg input:checked + span { border-color: var(--blue); background: rgba(61,123,255,.1); }
.seg input:focus-visible + span { outline: 2px solid var(--blue-2); outline-offset: 2px; }

/* form */
.cfg-form { background: none; border: 0; padding: 0; backdrop-filter: none; }
.field em { font-style: normal; color: var(--dim); }
.field textarea::placeholder { color: var(--dim); }
.done { text-align: center; padding: 32px 0 12px; }
.done__icon { width: 56px; height: 56px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 16px; background: rgba(91,227,164,.14); color: var(--green); }
.done__icon svg { width: 26px; }
.done h3 { font-size: 30px; letter-spacing: -.03em; margin-bottom: 10px; }
.done p { color: var(--muted); max-width: 440px; margin: 0 auto 24px; }

/* summary */
.cfg__aside { position: sticky; top: 96px; }
.sum { padding: 28px; border-radius: 22px; border: 1px solid rgba(61,123,255,.35); background: radial-gradient(120% 50% at 50% 0%, rgba(61,123,255,.18), transparent 70%), var(--bg-2); box-shadow: 0 40px 80px -40px rgba(61,123,255,.4); }
.sum__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.sum__label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-2); }
.toggle--sum .toggle__btn { height: 32px; padding: 0 12px; font-size: 13px; }
.sum__name { font-size: 15px; color: var(--muted); }
.sum__name b { color: var(--text); font-weight: 600; }
.sum__total { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; }
.sum__total b { font-family: var(--display); font-weight: 500; font-size: 58px; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.sum__total span { color: var(--muted); font-size: 14px; }
.sum__sub { font-family: var(--mono); font-size: 11.5px; color: var(--dim); min-height: 1.5em; }
.sum__lines { list-style: none; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: 14px; }
.sum__lines li { display: flex; justify-content: space-between; gap: 12px; animation: lineIn .45s var(--ease); }
.sum__lines li span:first-child { color: var(--muted); }
.sum__lines li small { display: block; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.sum__lines li span:last-child { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
@keyframes lineIn { from { opacity: 0; transform: translateY(-4px); } }
.sum__incl { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.6; }
.sum__incl:empty { display: none; }
.sum__incl b { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: 4px; }
.advice { margin-top: 18px; padding: 16px; border-radius: 12px; background: rgba(91,227,164,.08); border: 1px solid rgba(91,227,164,.3); font-size: 14px; animation: lineIn .5s var(--ease); }
.advice b { color: var(--green); }
.advice p { color: var(--text); margin-bottom: 10px; }
.advice button { font-weight: 600; font-size: 13.5px; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
#sumcta { margin-top: 22px; }
.sum__fine { margin-top: 12px; text-align: center; font-size: 12px; color: var(--dim); }

/* mobile bar */
.mbar { display: none; }

/* modal */
.tplmodal { width: min(1240px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg-2); color: var(--text); overflow: hidden; }
.tplmodal[open] { display: flex; flex-direction: column; animation: modalIn .5s var(--ease); }
.tplmodal::backdrop { background: rgba(2,3,8,.75); backdrop-filter: blur(6px); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.tplmodal__bar { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 10px 0 16px; background: #121827; flex: none; }
.tplmodal__dots { display: flex; gap: 7px; }
.tplmodal__dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a3248; }
.tplmodal .browser__url { color: var(--muted); }
.tplmodal__close { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; }
.tplmodal__close:hover { background: rgba(255,255,255,.07); }
.tplmodal__close svg { width: 16px; }
.tplmodal__body { overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.tplmodal__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); flex: none; }
.tplmodal__foot small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-2); }
.tplmodal__foot b { font-size: 18px; }

.footer--slim { padding-top: 0; }

@media (max-width: 1100px) {
  .cfg { grid-template-columns: minmax(0, 1fr) 330px; }
  .sum__total b { font-size: 48px; }
}
@media (max-width: 900px) {
  .cfg-hero { padding-top: 120px; padding-bottom: 48px; }
  .cfg { grid-template-columns: 1fr; padding-bottom: 140px; }
  .cfg__aside {
    position: fixed; left: 0; right: 0; top: auto; bottom: 0; z-index: 40; max-height: 86dvh; overflow-y: auto; padding: 0;
    transform: translateY(105%); transition: transform .6s var(--ease); overscroll-behavior: contain;
  }
  .cfg__aside.is-open { transform: none; }
  .sum { border-radius: 20px 20px 0 0; padding-bottom: 104px; border-bottom: 0; }
  .cfg__aside.is-open .sum { box-shadow: 0 0 0 100vmax rgba(2,3,8,.6); }
  .mbar {
    display: flex; align-items: center; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45;
    padding: 10px 10px 10px 18px; border-radius: 14px; border: 1px solid rgba(61,123,255,.4);
    background: rgba(8,12,24,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 40px -10px rgba(0,0,0,.7);
  }
  .mbar > div { margin-right: auto; line-height: 1.15; }
  .mbar small { display: block; font-size: 12px; color: var(--muted); }
  .mbar b { font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
  .footer--slim { padding-bottom: 80px; }
}
@media (max-width: 640px) {
  .cstep { padding: 22px 16px; border-radius: 18px; }
  .cstep__head { gap: 14px; margin-bottom: 24px; }
  .cstep__n { width: 34px; height: 34px; }
  .pk-grid, .tpl-grid { grid-template-columns: 1fr; }
  .tpl:last-child:nth-child(odd) .tpl__frame, .tpl:nth-child(odd):has(+ .tpl--custom) .tpl__frame, .tpl--custom .tpl__frame { aspect-ratio: 1200 / 780; }
  .tpl__foot { flex-wrap: wrap; gap: 6px; }
  .tpl__hint { max-width: none; text-align: left; }
  .opt--row { flex-direction: column; align-items: flex-start; }
  .opt__ctrl output { min-width: 100px; font-size: 17px; }
  .seg { grid-template-columns: 1fr; }
  .cfg-hero__steps { display: none; }
  .feat-row { gap: 12px; }
  .tplmodal { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .mbar .btn--ghost { display: none; }
  .mbar > div { cursor: pointer; }
}

[hidden] { display: none !important; }

.cfg-toast {
  position: fixed; left: 50%; top: 84px; z-index: 60; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600;
  background: #0f1a14; color: var(--green); border: 1px solid rgba(91,227,164,.35); box-shadow: 0 20px 40px -12px rgba(0,0,0,.6);
  transform: translate(-50%, -16px); opacity: 0; pointer-events: none; transition: .5s var(--ease);
}
.cfg-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
