/* /architekten — configurator layout; goes with js/architekten-konfigurator.js */
.arch-hide, .arch-cfg .arch-tab.arch-weg { display: none !important; }
.arch-steps { position: sticky; top: var(--arch-top, 60px); z-index: 50; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
    background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--arch-line); padding: 10px 12px; }
.arch-steps a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; color: var(--arch-ink); font-weight: 600; text-decoration: none; }
.arch-steps a:hover { background: #fdeee4; }
.arch-steps b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--arch-accent); color: #fff; font-size: 13px; }
.arch-h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 700; margin: 0 0 .5rem; scroll-margin-top: 130px; }
.arch-h2 { margin-top: 2.6rem; }
.arch-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--arch-accent); color: #fff; font-size: 1.1rem; flex: none; }
.arch-qt { font-weight: 700; margin-bottom: 8px; }
.arch-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.arch-chips button { border: 1px solid #cfd4da; background: #fff; border-radius: 10px; padding: 10px 16px; font-weight: 600; cursor: pointer; text-align: left; line-height: 1.25; color: var(--arch-ink); }
.arch-chips button small { display: block; font-weight: 400; font-size: 12px; color: var(--arch-ink-soft); }
.arch-chips button:hover { border-color: var(--arch-accent); }
.arch-chips button.is-on { border-color: var(--arch-accent); background: #fdeee4; box-shadow: 0 0 0 1px var(--arch-accent) inset; }
.arch-count { margin: 0; font-weight: 700; color: var(--arch-accent); }
.arch-fold { margin: 12px 0; border: 1px solid var(--arch-line); border-radius: 10px; background: #fff; }
.arch-fold > summary { cursor: pointer; list-style: none; padding: 10px 40px 10px 14px; font-weight: 600; position: relative; color: var(--arch-ink); }
.arch-fold > summary::-webkit-details-marker { display: none; }
.arch-fold > summary::after { content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 1.2em; color: var(--arch-ink-soft); }
.arch-fold[open] > summary::after { content: "–"; }
.arch-fold > :not(summary) { margin: 0 14px 14px; }
.arch-fold .arch-form { margin: 0 14px 14px; }
.arch-tab-d { display: block; font-size: 11px; color: var(--arch-ink-soft); margin-top: 3px; white-space: nowrap; }
.arch-aufbau { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 10px 0 0; }
.arch-aufbau[hidden] { display: none; }
.arch-al { font-size: 12px; color: var(--arch-ink-soft); margin: 0 6px; }
.arch-p { display: inline-grid; place-items: center; width: 22px; height: 30px; border-radius: 4px; font: 700 11px/1 Poppins, sans-serif; font-style: normal; color: #fff; }
.arch-rips { background: #5a5f66; } .arch-gummi { background: #1a1f26; } .arch-buerste { background: #8a6a4a; }
.arch-compact { padding-top: 1.2rem !important; padding-bottom: 1.2rem !important; }
/* dark mode of the shop */
.arch-page.darkModeDiv .arch-steps { background: rgba(40, 49, 68, .96); }
.arch-page.darkModeDiv :is(.arch-fold, .arch-chips button) { background: var(--ad-surface) !important; border-color: var(--arch-line) !important; color: var(--arch-ink) !important; }
.arch-page.darkModeDiv .arch-chips button.is-on { background: rgba(232, 98, 12, .22) !important; border-color: var(--arch-accent) !important; }
.arch-page.darkModeDiv .arch-steps a { color: var(--arch-ink); }
.arch-lv-box { margin: 0 0 16px; border: 1px solid var(--arch-line); border-radius: 10px; padding: 14px 16px; background: #fff; }
.arch-lv-box .arch-lv-text { max-height: 340px; overflow: auto; }
.arch-cfg #alle-matten { margin-top: 12px; }
.arch-page.darkModeDiv .arch-lv-box { background: var(--ad-surface) !important; }
.arch-cfg form#arch-rechner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .8fr); gap: 12px 18px; align-items: end; margin: 0 0 18px; }
.arch-cfg form#arch-rechner > .arch-form-row { order: 1; margin: 0; }
.arch-cfg form#arch-rechner > label.arch-einbau { order: 2; margin: 0; }
.arch-cfg form#arch-rechner > label.arch-rtiefe { order: 3; margin: 0; }
.arch-cfg form#arch-rechner > p { order: 5; grid-column: 1 / -1; margin: 0; }
@media (max-width: 767.98px) { .arch-cfg form#arch-rechner { grid-template-columns: 1fr; } }
@media (min-width: 992px) {
    .arch-cfg article.arch-profil model-viewer.arch-mv { max-height: 520px !important; }
}
/* hint under "Wo liegt die Matte?" - which insert fits the place */
.arch-ort-hint { margin: 8px 0 0; font-size: .93rem; color: var(--arch-ink-soft); }

/* ───────── Configurator for planners — cards on the left, one drawing on the right ───────── */
/* the profile section hides its overflow, which would stop the drawing from staying in view while the cards scroll */
.arch-cfg #profil { overflow: visible; overflow-x: clip; }
.arch-cfg-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 26px; align-items: start; scroll-margin-top: var(--arch-cfg-top, 170px); }
.arch-cfg form#arch-rechner.arch-cfg-steps { display: block; margin: 0; }
.arch-cfg form#arch-rechner.arch-cfg-steps > * { order: 0; }
.arch-cfg-card { border: 1px solid var(--arch-line); border-radius: 12px; background: #fff; padding: 16px 18px; margin: 0 0 14px; box-shadow: 0 1px 3px rgba(26, 31, 38, .05); }
.arch-cfg-card > h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 1.15rem; }
.arch-cfg-card > h3 .arch-n { width: 30px; height: 30px; font-size: .95rem; }
.arch-cfg-sub { margin: 0 0 10px; color: var(--arch-ink-soft); font-size: .93rem; }
.arch-cfg-card .arch-qt { margin: 12px 0 6px; }
.arch-cfg-card .arch-qt:first-of-type { margin-top: 4px; }
.arch-cfg-card label { display: block; margin: 12px 0 0; }
.arch-cfg-card label[hidden], .arch-cfg-card p[hidden], .arch-cfg-card [hidden] { display: none !important; }
.arch-cfg-card .arch-form-row { margin-top: 12px; }
.arch-cfg-card .arch-count { margin: 0 0 8px; }
.arch-cfg-big button { flex: 1 1 150px; }
.arch-cfg-card .arch-chips button:disabled { opacity: .45; cursor: not-allowed; }
.arch-cfg-kombi { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--arch-line); }
.arch-cfg-kombi[hidden] { display: none; }
.arch-cfg-kombi button { padding: 7px 12px; font-size: .9rem; }
.arch-cfg .arch-cfg-card .arch-tabs { margin: 0; }
.arch-cfg-stage { position: sticky; top: var(--arch-cfg-top, 170px); max-height: calc(100vh - var(--arch-cfg-top, 170px) - 12px); overflow: auto; border: 1px solid var(--arch-accent); border-radius: 12px; background: #fff; padding: 14px 16px; }
.arch-cfg-vhead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 8px; }
.arch-cfg-vhead strong { font-size: 1.1rem; }
.arch-cfg-name { color: var(--arch-ink-soft); font-size: .93rem; }
.arch-cfg-toggle { margin-left: auto; display: inline-flex; border: 1px solid #cfd4da; border-radius: 8px; overflow: hidden; }
.arch-cfg-toggle button { border: 0; background: #fff; padding: 6px 12px; font-weight: 600; cursor: pointer; color: var(--arch-ink); }
.arch-cfg-toggle button.is-on { background: var(--arch-accent); color: #fff; }
.arch-cfg-z figure { margin: 0; }
.arch-cfg-z figcaption { font-size: 12px; }
.arch-cfg-3d[hidden], .arch-cfg-z[hidden] { display: none; }
.arch-cfg-3d model-viewer { display: block; width: 100%; height: 400px; min-height: 0 !important; max-height: none !important; background: #f4f5f7; border-radius: 8px; }
.arch-cfg-sum .arch-rechner-out { width: 100%; max-width: none; margin: 10px 0 12px; }
.arch-cfg-cta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.arch-cfg-cta #arch-paket-zip { flex: 1 1 100%; font-size: 1.02rem; padding: 12px 18px; }
.arch-cfg-note { font-size: 12px; color: var(--arch-ink-soft); margin: 8px 0 0; }
.arch-cfg-unten { margin-top: 2.2rem; }
.arch-cfg-unten .arch-h2 { margin-top: 0; scroll-margin-top: 130px; }
/* mat cards (7 Unterlagen): their insert buttons only carry the file data of each insert — the choice is made in card 4 */
.arch-cfg article.arch-profil > .arch-einlage-tabs, .arch-cfg article.arch-profil .arch-kombi-wahl { display: none !important; }
@media (max-width: 991.98px) {
    .arch-cfg-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
    .arch-cfg-wrap > *, .arch-cfg-view, .arch-cfg-sum { min-width: 0; }
    .arch-cfg .arch-cfg-card .arch-tabs { flex-wrap: wrap; overflow: visible; }
    .arch-cfg-big button { flex: 1 1 100%; }
    .arch-cfg-stage { display: contents; position: static; overflow: visible; max-height: none; }
    .arch-cfg-view { order: -1; background: #fff; border: 1px solid var(--arch-accent); border-radius: 12px; padding: 10px 12px; }
    .arch-cfg-view figure button { display: none !important; }
    .arch-cfg-vhead strong { font-size: 1rem; }
    .arch-cfg-name { flex: 1 1 100%; order: 3; }
    .arch-cfg-view figcaption { display: none; }
    .arch-cfg-3d model-viewer { height: 30vh; }
    .arch-cfg-sum { order: 3; border: 1px solid var(--arch-accent); border-radius: 12px; background: #fff; padding: 12px 14px; }
    .arch-cfg-toggle { margin-left: 0; }
}
.arch-page.darkModeDiv :is(.arch-cfg-card, .arch-cfg-stage, .arch-cfg-view, .arch-cfg-sum) { background: var(--ad-surface) !important; border-color: var(--arch-line) !important; }
.arch-page.darkModeDiv .arch-cfg-toggle button { background: var(--ad-surface-2) !important; color: var(--arch-ink) !important; }
.arch-page.darkModeDiv .arch-cfg-toggle button.is-on { background: var(--arch-accent) !important; color: #fff !important; }
/* sub-points inside the cards (3.1 Profil, 3.2 Winkelrahmen, 4.1 Art der Einlage, 4.2 Farbe), colour chips */
.arch-cfg-nr { display: inline-block; min-width: 2.1em; margin-right: 6px; padding: 1px 6px; border-radius: 999px; background: #fdeee4; color: var(--arch-accent); font-size: .78rem; font-weight: 700; text-align: center; }
.arch-cfg-card .arch-qt { display: flex; align-items: center; margin: 16px 0 8px; }
.arch-cfg-card > h3 + .arch-qt { margin-top: 6px; }
.arch-cfg-rahmen button small { text-transform: none; }
.arch-cfg-farbreihe { margin: 0 0 8px; }
.arch-cfg-farbt { display: block; font-size: .85rem; font-weight: 600; color: var(--arch-ink-soft); margin: 0 0 4px; }
.arch-cfg-farben button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; font-size: .9rem; }
.arch-cfg-farben button i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); flex: none; }
/* replacement mat in an existing frame — a link below the three ways of installation, not a fourth button */
.arch-cfg-big button.arch-cfg-link { flex: 1 1 100%; border: 0; background: none; padding: 2px 0 0; font-weight: 400; font-size: .9rem; color: var(--arch-ink-soft); text-decoration: underline; box-shadow: none; }
.arch-cfg-big button.arch-cfg-link:hover { color: var(--arch-accent); }
.arch-cfg-big button.arch-cfg-link.is-on { background: none; box-shadow: none; color: var(--arch-accent); font-weight: 600; text-decoration: none; }
.arch-cfg-big button.arch-cfg-link.is-on::before { content: "✓ "; }
.arch-page.darkModeDiv .arch-cfg-big button.arch-cfg-link { background: none !important; }
.arch-cfg-tiefe { margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid var(--arch-accent); background: #fdeee4; border-radius: 0 8px 8px 0; font-size: .93rem; }
.arch-cfg-tiefe[hidden] { display: none; }
.arch-page.darkModeDiv .arch-cfg-tiefe { background: rgba(232, 98, 12, .18); }
/* depth of the existing frame right under the installation choice */
.arch-cfg-vorh { margin: 10px 0 0; padding: 10px 12px; border-left: 3px solid var(--arch-accent); background: #fdeee4; border-radius: 0 8px 8px 0; }
.arch-cfg-vorh[hidden] { display: none; }
.arch-cfg-vorh label { margin: 0; max-width: 260px; }
.arch-cfg-vorh .arch-form-hint { margin: 8px 0 0; font-size: .88rem; }
.arch-page.darkModeDiv .arch-cfg-vorh { background: rgba(232, 98, 12, .18); }
/* finish of the aluminium as chips in point 3; hint under the combinations */
.arch-cfg-ausf button { font-size: .92rem; padding: 8px 14px; }
.arch-cfg-card .arch-cfg-note { margin: 8px 0 0; }
.arch-cfg-card .arch-cfg-note[hidden] { display: none; }
/* point 5 — which size (buttons), plan view, division into parts */
.arch-cfg-mass button { font-size: .92rem; padding: 8px 14px; }
.arch-cfg-massrow { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: flex-end; }
.arch-cfg-massrow .arch-form-row { flex: 1 1 240px; }
.arch-cfg-plan { flex: 0 0 190px; }
.arch-cfg-plan svg { display: block; width: 190px; max-width: 100%; height: auto; }
.arch-cfg-plan .pl-tuer { stroke: var(--arch-ink); stroke-width: 3; }
.arch-cfg-plan .pl-m { fill: #f4f5f7; stroke: var(--arch-ink-soft); stroke-width: 1.2; }
.arch-cfg-plan .pl-p { stroke: #b4bcc4; stroke-width: 1; }
.arch-cfg-plan .pl-teil { stroke: var(--arch-accent); stroke-width: 2.4; }
.arch-cfg-plan .pl-t { font-size: 9px; fill: var(--arch-ink-soft); }
.arch-cfg-teil .arch-chips button { min-width: 46px; padding: 7px 12px; text-align: center; }
.arch-cfg-teil .arch-chips button small { font-size: 10px; }
.arch-cfg-warn { margin: 8px 0 0; font-size: .9rem; color: #9a4a00; }
.arch-cfg-warn .arch-cfg-link { border: 0; background: none; padding: 0; color: var(--arch-accent); text-decoration: underline; cursor: pointer; font: inherit; }
.arch-cfg-sum tr[hidden] { display: none; }
/* point 6 — package box with the download, two folds over one set of mat cards, counter of positions */
.arch-cfg-paket { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; border: 1px solid var(--arch-accent); border-radius: 12px; background: #fff; padding: 16px 18px; margin: 0 0 16px; }
.arch-cfg-paket-t { grid-column: 1 / -1; font-size: 1.05rem; }
.arch-cfg-paket-l { margin: 0; padding-left: 18px; columns: 2; column-gap: 28px; font-size: .93rem; }
.arch-cfg-paket .arch-btn { justify-self: end; }
.arch-cfg-paket .arch-cfg-note { grid-column: 1 / -1; margin: 0; }
.arch-cfg-artbox article.arch-profil { border: 0; padding: 0; margin: 0 14px 14px; box-shadow: none; }
.arch-cfg-poslink { border: 0; background: none; padding: 0 4px; color: var(--arch-accent); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; }
.arch-cfg-poslink[hidden] { display: none; }
.arch-page.darkModeDiv .arch-cfg-paket { background: var(--ad-surface) !important; }
@media (max-width: 767.98px) {
    .arch-cfg-paket { grid-template-columns: 1fr; }
    .arch-cfg-paket-l { columns: 1; }
    .arch-cfg-paket .arch-btn { justify-self: stretch; }
}
/* card 6 — project (name, position, pieces, list) in the left column, beside the calculator form */
.arch-cfg-left { min-width: 0; }
.arch-cfg-projekt { scroll-margin-top: 140px; }
.arch-cfg-opt { margin-left: 4px; padding: 1px 9px; border: 1px solid var(--arch-line); border-radius: 999px; font-size: .75rem; font-weight: 400; color: var(--arch-ink-soft); }
.arch-cfg-projekt form.arch-form { display: grid; grid-template-columns: 1fr 1fr 90px; gap: 10px; margin: 0 0 12px; }
.arch-cfg-projekt form.arch-form label { margin: 0; }
.arch-cfg-projekt form.arch-form .arch-form-hint { grid-column: 1 / -1; margin: 0; }
.arch-cfg-projekt > .arch-btn { display: block; width: 100%; }
.arch-cfg-projekt .arch-table-wrap { margin: 0; overflow-x: auto; }
.arch-cfg-projekt table { width: 100%; font-size: .85rem; }
@media (max-width: 575.98px) {
    .arch-cfg-projekt form.arch-form { grid-template-columns: 1fr 90px; }
    .arch-cfg-projekt form.arch-form label:first-child { grid-column: 1 / -1; }
}
/* technical data | single files of the chosen mat, open and side by side */
.arch-cfg-halb { border: 1px solid var(--arch-line); border-radius: 12px; background: #fff; padding: 16px 18px; margin: 0 0 14px; }
.arch-cfg-halb article.arch-profil, .arch-cfg-halb article.arch-kombi { margin: 0; }
.arch-cfg-halb article.arch-profil.is-active, .arch-cfg-halb article.arch-kombi.is-active { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; align-items: start; }
.arch-cfg-halb .arch-profil-head, .arch-cfg-halb .arch-kombi-panel { grid-column: 1 / -1; }
.arch-cfg-halb .arch-profil-body, .arch-cfg-halb .arch-dl-wide { min-width: 0; margin: 0; }
.arch-cfg-halb .arch-profil-body > [class*="col-"] { padding-left: 0; padding-right: 0; }
.arch-cfg-halb .arch-profil-body::before, .arch-cfg-halb .arch-dl-wide::before { content: attr(data-arch-t); display: block; flex: 0 0 100%; margin: 0 0 8px; font-weight: 700; font-size: 1.02rem; }
.arch-page.darkModeDiv .arch-cfg-halb { background: var(--ad-surface) !important; border-color: var(--arch-line) !important; }
@media (max-width: 991.98px) {
    .arch-cfg-halb article.arch-profil.is-active, .arch-cfg-halb article.arch-kombi.is-active { grid-template-columns: minmax(0, 1fr); gap: 16px 0; }
}
/* files in the half column: the three groups one under the other, two tiles in a row */
.arch-cfg-halb .arch-dl-gruppen { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.arch-cfg-halb .arch-dl-gruppe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.arch-cfg-halb .arch-dl-gruppe > h5 { grid-column: 1 / -1; }
@media (max-width: 575.98px) { .arch-cfg-halb .arch-dl-gruppe { grid-template-columns: minmax(0, 1fr); } }

/* Planungshinweise — the tray in one sentence inside the frames fold */
.arch-cfg .arch-rfold > .arch-wanne { margin: 6px 18px 18px; padding-top: 14px; border-top: 1px solid #e1e5ea; }
.arch-cfg .arch-wanne h4 { margin: 0 0 6px; font-size: 1rem; }
.arch-cfg .arch-wanne p { margin: 0 0 10px; }
@media (max-width: 991px) { .arch-cfg .arch-rfold > .arch-wanne { margin: 4px 10px 12px; } }

/* Fragen und Normen — questions listed, standards in one fold; LASER CUT as a small box under the contact cards */
.arch-cfg .arch-fragen { margin-top: 4px; }
.arch-cfg .arch-normen-fold { max-width: 52em; }
.arch-cfg .arch-normen-fold > .arch-tech-body { padding: 0 18px 18px; }
.arch-cfg .arch-laser { margin-top: 22px; padding: 16px 18px; border: 1px solid #e1e5ea; border-left: 3px solid #e8621a; border-radius: 10px; background: #fff; }
.arch-cfg .arch-laser p { margin: 6px 0 0; }
.arch-cfg .arch-laser-l a { margin-right: 18px; font-weight: 600; color: #e8621a; }
@media (max-width: 991px) { .arch-cfg .arch-normen-fold > .arch-tech-body { padding: 0 10px 12px; } }

/* keeps the Unterlagen anchor clear of the sticky bar */
.arch-cfg-unten { scroll-margin-top: var(--arch-cfg-top, 170px); }

/* print (Drucken / PDF) — the drawing, its sizes and the tender text of the current setting; no questions, no buttons */
@media print {
    .arch-cfg-left, .arch-cfg-toggle, .arch-cfg-cta, .arch-cfg-3d, .arch-cfg-sum > .arch-cfg-note, .arch-cfg-paket, .arch-h2, .rs-explode-btn, .arch-lv-head button, .arch-lv-box .arch-form-hint, .arch-cfg-artbox { display: none !important; }
    .arch-cfg-wrap { display: block !important; }
    .arch-cfg-stage { position: static !important; width: 100% !important; max-width: none !important; }
    .arch-cfg-unten { margin-top: 12px; }
}

/* profile tiles in an even grid: equal widths, no ragged rows, several per row on the phone */
.arch-cfg .arch-cfg-card .arch-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; margin: 0; padding: 0; overflow: visible; }
.arch-cfg .arch-cfg-card .arch-tabs .arch-tab { min-width: 0; }
.arch-cfg .arch-cfg-card .arch-tab-d { white-space: normal; }
