/* =======================================================================
   etree Büro-Konfigurator — Storefront-Styles
   Alles unter .ek-scope gekapselt und mit ek- präfixiert, damit nichts mit
   dem Theme (SsikMetroLight) oder Bootstrap kollidiert.
   Keine externen Fonts (DSGVO) — es wird die Theme-/System-Schrift genutzt.

   HINWEIS: Diese Datei ist bewusst reines CSS (kein SCSS) und wird über
   assets:install nach public/bundles/etreekonfigurator/ kopiert. Der Shop
   hat kein node/npm, deshalb läuft hier kein Theme-/Webpack-Build.
   ======================================================================= */

.ek-scope {
    --ek-bg: #f4f6f4;
    --ek-surface: #ffffff;
    --ek-surface-2: #f0f3f0;
    --ek-ink: #16211c;
    --ek-muted: #5b6a61;
    --ek-faint: #8a978e;
    --ek-green: #1f7a5a;
    --ek-green-dk: #155c43;
    --ek-green-tint: #e7f1ec;
    --ek-line: #dde3df;
    --ek-line-2: #eceff0;
    --ek-indic: #9a6216;
    --ek-indic-tint: #f6edd9;
    --ek-oa: #2d5470;
    --ek-oa-tint: #e7eef4;
    --ek-radius: 14px;
    --ek-radius-sm: 9px;
    --ek-shadow: 0 1px 2px rgba(22, 33, 28, .04), 0 8px 24px rgba(22, 33, 28, .06);

    background: var(--ek-bg);
    color: var(--ek-ink);
    line-height: 1.5;
}

.ek-scope * { box-sizing: border-box; }

.ek-scope .ek-container { max-width: 1120px; margin: 0 auto; padding: 28px 20px 80px; }

.ek-scope h1,
.ek-scope h2,
.ek-scope h3 { letter-spacing: -.01em; color: var(--ek-ink); }
.ek-scope a { color: var(--ek-green-dk); }

/* ---------- GEO-Block ---------- */
.ek-scope .ek-geo { margin-bottom: 34px; }
.ek-scope .ek-breadcrumb { margin-bottom: 14px; font-size: 13px; }
.ek-scope .ek-breadcrumb a { text-decoration: none; color: var(--ek-muted); }
.ek-scope .ek-geo h1 { font-size: clamp(26px, 4vw, 36px); margin: 4px 0 14px; }
.ek-scope .ek-geo h2 { font-size: 20px; margin: 26px 0 12px; }
.ek-scope .ek-answer { max-width: 80ch; color: var(--ek-ink); font-size: 16px; }
.ek-scope .ek-answer em { color: var(--ek-muted); font-style: italic; }
.ek-scope .ek-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ek-scope .ek-table { width: 100%; border-collapse: collapse; background: var(--ek-surface); border: 1px solid var(--ek-line); border-radius: var(--ek-radius-sm); overflow: hidden; font-size: 13.5px; }
.ek-scope .ek-table caption { text-align: left; padding: 12px 14px; font-weight: 700; background: var(--ek-green-tint); color: var(--ek-green-dk); caption-side: top; }
.ek-scope .ek-table th,
.ek-scope .ek-table td { text-align: left; padding: 9px 14px; border-top: 1px solid var(--ek-line-2); }
.ek-scope .ek-table th { color: var(--ek-muted); font-weight: 600; }

.ek-scope .ek-noscript { background: var(--ek-indic-tint); color: var(--ek-indic); padding: 16px; border-radius: var(--ek-radius-sm); }

/* ---------- Header ---------- */
.ek-scope .ek-top { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.ek-scope .ek-brand { display: flex; align-items: center; gap: 12px; }
.ek-scope .ek-logo { width: 38px; height: 38px; border-radius: 9px; background: var(--ek-green); display: grid; place-items: center; flex: none; }
.ek-scope .ek-logo svg { width: 22px; height: 22px; }
.ek-scope .ek-name { font-weight: 800; font-size: 19px; line-height: 1; }
.ek-scope .ek-sub { font-size: 12.5px; color: var(--ek-muted); margin-top: 3px; letter-spacing: .02em; }
.ek-scope .ek-kicker { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ek-green-dk); font-weight: 600; }

.ek-scope .ek-segwrap { display: flex; flex-direction: column; gap: 7px; }
.ek-scope .ek-seglabel { font-size: 12px; color: var(--ek-muted); }
.ek-scope .ek-seg { display: inline-flex; background: var(--ek-surface); border: 1px solid var(--ek-line); border-radius: 999px; padding: 4px; }
.ek-scope .ek-seg button { border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 13.5px; color: var(--ek-muted); padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: .15s; }
.ek-scope .ek-seg button[aria-pressed="true"] { background: var(--ek-ink); color: #fff; }

/* ---------- Stepper ---------- */
.ek-scope .ek-steps { display: flex; gap: 6px; margin: 0 0 26px; padding: 0; list-style: none; flex-wrap: wrap; }
.ek-scope .ek-steps li { flex: 1 1 130px; min-width: 120px; }
.ek-scope .ek-steps button { width: 100%; text-align: left; background: var(--ek-surface); border: 1px solid var(--ek-line); border-radius: var(--ek-radius-sm); padding: 11px 13px; cursor: pointer; font: inherit; transition: .15s; display: flex; gap: 10px; align-items: center; }
.ek-scope .ek-steps button:disabled { cursor: not-allowed; opacity: .55; }
.ek-scope .ek-steps .ek-n { font-weight: 700; font-size: 13px; width: 24px; height: 24px; flex: none; border-radius: 6px; display: grid; place-items: center; background: var(--ek-surface-2); color: var(--ek-muted); }
.ek-scope .ek-steps .ek-t { font-size: 12.5px; color: var(--ek-muted); font-weight: 500; line-height: 1.25; }
.ek-scope .ek-steps li.ek-active button { border-color: var(--ek-green); box-shadow: 0 0 0 1px var(--ek-green); }
.ek-scope .ek-steps li.ek-active .ek-n { background: var(--ek-green); color: #fff; }
.ek-scope .ek-steps li.ek-done .ek-n { background: var(--ek-green-tint); color: var(--ek-green-dk); }
.ek-scope .ek-steps li.ek-active .ek-t { color: var(--ek-ink); }

/* ---------- Layout ---------- */
.ek-scope .ek-grid { display: grid; grid-template-columns: 1fr 336px; gap: 22px; align-items: start; }
.ek-scope .ek-panel { background: var(--ek-surface); border: 1px solid var(--ek-line); border-radius: var(--ek-radius); box-shadow: var(--ek-shadow); padding: 26px; }
.ek-scope .ek-panel h2 { margin: 0 0 4px; font-size: 23px; font-weight: 700; }
.ek-scope .ek-lead { color: var(--ek-muted); margin: 0 0 22px; font-size: 14.5px; max-width: 60ch; }

/* ---------- Cards (Staffel/Möbel) ---------- */
.ek-scope .ek-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ek-scope .ek-card { position: relative; border: 1px solid var(--ek-line); border-radius: var(--ek-radius-sm); padding: 16px; cursor: pointer; background: var(--ek-surface); transition: .15s; text-align: left; font: inherit; color: inherit; width: 100%; }
.ek-scope .ek-card:hover { border-color: var(--ek-green); background: #fbfdfc; }
.ek-scope .ek-card[aria-pressed="true"] { border-color: var(--ek-green); box-shadow: 0 0 0 1px var(--ek-green); background: #fbfdfc; }
.ek-scope .ek-rng { font-weight: 700; font-size: 20px; }
.ek-scope .ek-cap { font-size: 12.5px; color: var(--ek-muted); margin-top: 3px; }
.ek-scope .ek-mode { margin-top: 11px; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 4px 8px; border-radius: 6px; }
.ek-scope .ek-mode.ek-firm { background: var(--ek-green-tint); color: var(--ek-green-dk); }
.ek-scope .ek-mode.ek-proj { background: var(--ek-indic-tint); color: var(--ek-indic); }
.ek-scope .ek-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ek-scope .ek-furn-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ek-scope .ek-furn-head .ek-rng { font-size: 17px; }
.ek-scope .ek-furn-per { font-weight: 700; font-size: 15px; color: var(--ek-muted); }
.ek-scope .ek-furn-card .ek-cap { margin-top: 6px; }

/* ---------- Profile rows ---------- */
.ek-scope .ek-prof { border: 1px solid var(--ek-line); border-radius: var(--ek-radius-sm); padding: 15px 16px; margin-bottom: 12px; transition: .15s; }
.ek-scope .ek-prof.ek-on { border-color: var(--ek-green); background: #fbfdfc; }
.ek-scope .ek-prof-head { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }
.ek-scope .ek-prof-title { font-weight: 700; font-size: 16px; margin: 0; }
.ek-scope .ek-prof-desc { font-size: 13px; color: var(--ek-muted); margin: 3px 0 0; max-width: 44ch; }
.ek-scope .ek-prof-price { font-size: 12px; color: var(--ek-faint); margin-top: 7px; }
.ek-scope .ek-prof-price b { color: var(--ek-ink); font-weight: 600; }

.ek-scope .ek-stepper { display: inline-flex; align-items: center; border: 1px solid var(--ek-line); border-radius: 8px; flex: none; background: var(--ek-surface); }
.ek-scope .ek-stepper button { width: 36px; height: 36px; border: 0; background: transparent; font-size: 19px; line-height: 1; cursor: pointer; color: var(--ek-green-dk); border-radius: 8px; }
.ek-scope .ek-stepper button:hover { background: var(--ek-green-tint); }
.ek-scope .ek-stepper input { width: 46px; height: 36px; border: 0; text-align: center; font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; background: transparent; color: var(--ek-ink); }
.ek-scope .ek-stepper input::-webkit-outer-spin-button,
.ek-scope .ek-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.ek-scope .ek-disclose { margin-top: 12px; font-size: 12.5px; }
.ek-scope .ek-disclose summary { cursor: pointer; color: var(--ek-green-dk); font-weight: 600; list-style: none; }
.ek-scope .ek-disclose summary::-webkit-details-marker { display: none; }
.ek-scope .ek-disclose summary::before { content: "+ "; font-weight: 700; }
.ek-scope .ek-disclose[open] summary::before { content: "– "; }
.ek-scope .ek-complist { margin: 10px 0 2px; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.ek-scope .ek-complist li { font-size: 12.5px; color: var(--ek-muted); display: flex; gap: 7px; }
.ek-scope .ek-complist li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ek-green); margin-top: 7px; flex: none; }
.ek-scope .ek-complist a { color: var(--ek-green-dk); text-decoration: none; border-bottom: 1px solid var(--ek-green-tint); }

/* ---------- Options / services ---------- */
.ek-scope .ek-opt { display: flex; gap: 13px; align-items: flex-start; border: 1px solid var(--ek-line); border-radius: var(--ek-radius-sm); padding: 14px 15px; margin-bottom: 10px; cursor: pointer; transition: .15s; }
.ek-scope .ek-opt:hover { border-color: var(--ek-green); }
.ek-scope .ek-opt.ek-on { border-color: var(--ek-green); background: #fbfdfc; }
.ek-scope .ek-box { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--ek-line); flex: none; display: grid; place-items: center; margin-top: 1px; transition: .15s; }
.ek-scope .ek-opt.ek-on .ek-box { background: var(--ek-green); border-color: var(--ek-green); }
.ek-scope .ek-box svg { width: 13px; height: 13px; opacity: 0; transition: .15s; }
.ek-scope .ek-opt.ek-on .ek-box svg { opacity: 1; }
.ek-scope .ek-ttl { font-weight: 600; font-size: 14.5px; }
.ek-scope .ek-dsc { font-size: 12.5px; color: var(--ek-muted); margin-top: 2px; max-width: 52ch; }
.ek-scope .ek-tag { font-size: 11px; font-weight: 600; color: var(--ek-green-dk); background: var(--ek-green-tint); padding: 2px 7px; border-radius: 5px; margin-left: 8px; white-space: nowrap; }
.ek-scope .ek-tag.ek-warn { color: var(--ek-indic); background: var(--ek-indic-tint); }

.ek-scope .ek-infra-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; border: 1px solid var(--ek-line); border-radius: var(--ek-radius-sm); padding: 13px 15px; margin-bottom: 10px; }
.ek-scope .ek-infra-row .ek-meta { font-size: 13px; color: var(--ek-muted); margin-top: 2px; }
.ek-scope .ek-infra-row .ek-nm { font-weight: 600; font-size: 14.5px; }
.ek-scope .ek-infra-row .ek-nm a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--ek-green-tint); }
.ek-scope .ek-suggest { font-size: 11.5px; color: var(--ek-green-dk); background: var(--ek-green-tint); padding: 2px 7px; border-radius: 5px; margin-left: 8px; }
.ek-scope .ek-inline-check { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ek-muted); cursor: pointer; }
.ek-scope .ek-inline-check input { width: 18px; height: 18px; }

/* ---------- Sidebar budget ---------- */
.ek-scope .ek-aside { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 14px; }
.ek-scope .ek-budget { background: var(--ek-ink); color: #eef3ef; border-radius: var(--ek-radius); padding: 22px; box-shadow: var(--ek-shadow); }
.ek-scope .ek-lbl { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #9db3a7; }
.ek-scope .ek-amt { font-weight: 800; font-size: 32px; line-height: 1.05; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.ek-scope .ek-per { font-size: 12.5px; color: #9db3a7; }
.ek-scope .ek-meter { margin: 16px 0 4px; height: 8px; border-radius: 999px; background: #2c3b34; overflow: hidden; position: relative; }
.ek-scope .ek-meter i { position: absolute; inset: 0; background: var(--ek-green); border-radius: 999px; transition: .3s; }
.ek-scope .ek-budget.ek-projmode .ek-meter i { background: var(--ek-indic); background-image: repeating-linear-gradient(45deg, transparent 0 5px, rgba(0, 0, 0, .18) 5px 10px); }
.ek-scope .ek-conf { font-size: 12px; margin-top: 9px; display: flex; gap: 7px; align-items: center; color: #cfe0d8; }
.ek-scope .ek-conf .ek-badge { font-weight: 600; padding: 3px 8px; border-radius: 6px; font-size: 11px; background: var(--ek-green); color: #fff; }
.ek-scope .ek-budget.ek-projmode .ek-conf .ek-badge { background: var(--ek-indic); }
.ek-scope .ek-brk { border-top: 1px solid #2c3b34; margin-top: 16px; padding-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.ek-scope .ek-brk:empty { display: none; }
.ek-scope .ek-li { display: flex; justify-content: space-between; font-size: 12.5px; color: #c8d6ce; gap: 12px; }
.ek-scope .ek-li b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.ek-scope .ek-li-lease { color: #7fd3ac; }
.ek-scope .ek-note { background: var(--ek-surface); border: 1px solid var(--ek-line); border-radius: var(--ek-radius); padding: 15px 16px; font-size: 12.5px; color: var(--ek-muted); }
.ek-scope .ek-note b { color: var(--ek-ink); }

.ek-scope .ek-oa-card { background: var(--ek-oa-tint); border: 1px solid #c9d9e6; color: #20364a; border-radius: var(--ek-radius-sm); padding: 14px 16px; font-size: 13px; margin-bottom: 18px; }
.ek-scope .ek-oa-card b { color: #16283a; }
.ek-scope .ek-warn-card { background: var(--ek-indic-tint); border: 1px solid #e4d3a8; color: var(--ek-indic); border-radius: var(--ek-radius-sm); padding: 14px 16px; font-size: 13px; margin-bottom: 18px; }

/* ---------- Footer nav ---------- */
.ek-scope .ek-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.ek-scope .ek-nav-form { margin-top: 20px; }
.ek-scope .ek-btn { font: inherit; font-weight: 600; font-size: 14.5px; border-radius: 9px; padding: 12px 22px; cursor: pointer; border: 1px solid var(--ek-line); background: var(--ek-surface); color: var(--ek-ink); transition: .15s; }
.ek-scope .ek-btn:hover { border-color: var(--ek-green); }
.ek-scope .ek-btn.ek-primary { background: var(--ek-green); border-color: var(--ek-green); color: #fff; }
.ek-scope .ek-btn.ek-primary:hover { background: var(--ek-green-dk); border-color: var(--ek-green-dk); }
.ek-scope .ek-btn:disabled { opacity: .5; cursor: not-allowed; }
.ek-scope .ek-btn.ek-ghost { background: transparent; }

/* ---------- Summary + form ---------- */
.ek-scope .ek-recap { border: 1px solid var(--ek-line); border-radius: var(--ek-radius-sm); overflow: hidden; margin-bottom: 22px; }
.ek-scope .ek-rrow { display: flex; justify-content: space-between; gap: 14px; padding: 13px 16px; border-top: 1px solid var(--ek-line-2); font-size: 13.5px; }
.ek-scope .ek-rrow:first-child { border-top: 0; }
.ek-scope .ek-rrow .ek-k { color: var(--ek-muted); }
.ek-scope .ek-rrow .ek-v { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.ek-scope .ek-rrow .ek-v.ek-v-wide { max-width: 60%; }
.ek-scope .ek-rrow .ek-v small { display: block; font-weight: 400; color: var(--ek-faint); font-size: 11.5px; }
.ek-scope .ek-form-title { font-size: 16px; margin: 6px 0 12px; }
.ek-scope .ek-formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.ek-scope .ek-field { display: flex; flex-direction: column; gap: 5px; }
.ek-scope .ek-field.ek-full { grid-column: 1 / -1; }
.ek-scope .ek-field label { font-size: 12.5px; font-weight: 600; color: var(--ek-muted); }
.ek-scope .ek-field input,
.ek-scope .ek-field textarea { font: inherit; font-size: 14px; padding: 11px 13px; border: 1px solid var(--ek-line); border-radius: 9px; background: var(--ek-surface); color: var(--ek-ink); width: 100%; }
.ek-scope .ek-field input:focus,
.ek-scope .ek-field textarea:focus { outline: 2px solid var(--ek-green); outline-offset: 1px; border-color: var(--ek-green); }
.ek-scope .ek-consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ek-muted); margin-top: 2px; }
.ek-scope .ek-consent input { margin-top: 2px; }
.ek-scope .ek-submit-error { display: none; margin-top: 14px; background: #fbe9e7; border: 1px solid #f1c3bd; color: #a1291b; border-radius: var(--ek-radius-sm); padding: 12px 14px; font-size: 13px; }

.ek-scope .ek-result-ok { background: var(--ek-green-tint); border: 1px solid #bfe0d1; border-radius: var(--ek-radius); padding: 22px; }
.ek-scope .ek-result-ok h3 { margin: 0 0 6px; font-size: 19px; color: var(--ek-green-dk); }
.ek-scope .ek-result-lead { margin: 0; color: var(--ek-muted); font-size: 14px; }
.ek-scope .ek-result-ok pre { background: var(--ek-surface); border: 1px solid var(--ek-line); border-radius: 9px; padding: 14px; font-size: 12px; white-space: pre-wrap; font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--ek-ink); margin: 12px 0 0; max-height: 260px; overflow: auto; }

.ek-scope :focus-visible { outline: 2px solid var(--ek-green); outline-offset: 2px; border-radius: 6px; }
.ek-scope .ek-hint { font-size: 12px; color: var(--ek-faint); margin-top: 6px; }

/* ---------- Media queries (aus dem SCSS herausgezogen) ---------- */
@media (max-width: 900px) {
    .ek-scope .ek-grid { grid-template-columns: 1fr; }
    .ek-scope .ek-aside { position: static; }
}

@media (max-width: 560px) {
    .ek-scope .ek-cards { grid-template-columns: 1fr; }
    .ek-scope .ek-complist { grid-template-columns: 1fr; }
    .ek-scope .ek-formgrid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .ek-scope * { transition: none !important; }
}
