/*
 * ============================================================
 * HEATPROTECTION · SCHWEISSVORHANG-KONFIGURATOR
 * ============================================================
 * Nur auf /schweisstechnik/schweissvorhaenge/konfigurator/ geladen (über $meta['styles']).
 * Baut auf den Grundwerten aus hp.css auf (Farben, Schriften, .btn, .field, .consent).
 */

.page-configurator main { background: var(--surface); }
.cfg [hidden], .cfg-hero [hidden], .cfg-dialog [hidden] { display: none !important; }

/* ---------- Kopf ---------- */
.cfg-hero { padding: 28px 0 36px; background: #fff; border-bottom: 1px solid var(--line); }
.cfg-hero .breadcrumbs { margin-bottom: 26px; }
.cfg-hero .eyebrow { margin-bottom: 14px; }
.cfg-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.cfg-h1 { margin: 0 0 14px; font-family: var(--f-display); font-stretch: 94%; font-weight: 500; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; letter-spacing: -0.026em; color: var(--ink); text-wrap: balance; }
.cfg-lead { margin: 0; max-width: 640px; font-size: clamp(15.5px, 1.15vw, 17.5px); line-height: 1.65; color: var(--text); }
.cfg-hero-side { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.cfg-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink); }
.cfg-trust li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.35; }
.cfg-trust .icon { flex: none; margin-top: 1px; color: #1E7A3C; }
.cfg-load-open .icon { margin-right: -2px; }
/* Kopfbereich: „Konfiguration laden“ links, Sprachauswahl rechtsbündig (hp_lang_menu('cfg') in app/layout/layout.php) */
.cfg-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; align-self: stretch; }
.cfg-hero-actions .lang-menu--cfg { margin-left: auto; }
.lang-menu--cfg .lang-menu-btn { min-height: 42px; padding: 0 14px 0 16px; gap: 8px; font-size: 14px; font-weight: 500; letter-spacing: 0; background: #fff; border: 1px solid var(--line-2); transition: border-color .15s ease; }
.lang-menu--cfg .lang-menu-btn:hover, .lang-menu--cfg[open] .lang-menu-btn { border-color: var(--ink); }
.lang-menu--cfg .lang-menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang-menu--cfg .lang-menu-btn .icon:first-child { width: 16px; height: 16px; color: var(--ink); }
.lang-menu--cfg .lang-menu-list { left: auto; right: 0; top: calc(100% + 6px); }

/* ---------- Schrittleiste ---------- */
.cfg { padding: 28px 0 96px; }
/* Schrittleiste: verbundene Segmente, Fortschritt als Linie an der Unterkante */
.cfg-steps { position: sticky; top: calc(var(--header-h) + 1px); z-index: 20; margin: 0 calc(var(--gutter) * -1) 24px; padding: 12px var(--gutter); background: rgba(245,246,247,0.92); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); transition: top .4s var(--hdr-ease, ease); }
.cfg-steps ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 2px; box-shadow: 0 10px 30px -26px rgba(20,22,24,.45); overflow: hidden; }
.cfg-steps li + li { border-left: 1px solid var(--line); }
.cfg-steps-btn { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 18px; font: inherit; font-size: 14.5px; text-align: left; color: var(--muted); background: #fff; border: 0; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.cfg-steps-btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ink); transform: scaleX(0); transform-origin: left center; transition: transform .35s cubic-bezier(.22,.61,.36,1), background-color .2s ease; }
.cfg-steps-btn:disabled { cursor: default; color: #A3A8AD; }
.cfg-steps-btn:not(:disabled):hover { background: #FAFAFB; color: var(--ink); }
.cfg-steps-n { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: inherit; opacity: .8; }
.cfg-steps-ok { display: none; place-items: center; width: 20px; height: 20px; color: #fff; background: var(--ink); border-radius: 50%; }
.cfg-steps-ok .icon { width: 12px; height: 12px; }
.cfg-steps-btn.is-done { color: var(--ink); }
.cfg-steps-btn.is-done::after { transform: scaleX(1); }
.cfg-steps-btn.is-done .cfg-steps-ok { display: inline-grid; }
.cfg-steps-btn.is-current { color: var(--ink); font-weight: 600; background: #fff; }
.cfg-steps-btn.is-current::after { transform: scaleX(1); background: var(--accent); }
.cfg-steps-btn.is-current .cfg-steps-n { opacity: 1; font-weight: 500; }
.cfg-steps-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cfg-steps-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Raster ---------- */
.cfg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.cfg-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cfg-aside { position: sticky; top: calc(var(--header-h) + 82px); transition: top .4s var(--hdr-ease, ease); }

.cfg-notice { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; padding: 14px 14px 14px 18px; font-size: 14.5px; font-weight: 500; color: #0F3D63; background: #E6F0F8; border: 1px solid #B9D3EA; border-left: 4px solid #1F5F99; box-shadow: 0 12px 30px -24px rgba(15,61,99,.55); }
.cfg-notice:not([hidden]) { animation: cfg-notice-in .45s cubic-bezier(.23,1,.32,1) both; }
@keyframes cfg-notice-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cfg-notice::before { content: ""; flex: 0 0 20px; width: 20px; height: 20px; background: #1F5F99;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 10a6.5 6.5 0 1 0 1.9-4.6'/%3E%3Cpath d='M3.5 3.5v3.6h3.6'/%3E%3Cpath d='M10 6.5V10l2.5 1.8'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 10a6.5 6.5 0 1 0 1.9-4.6'/%3E%3Cpath d='M3.5 3.5v3.6h3.6'/%3E%3Cpath d='M10 6.5V10l2.5 1.8'/%3E%3C/svg%3E") center / contain no-repeat; }
.cfg-notice > span { flex: 1; }
.cfg-notice .cfg-link-btn[data-notice="reset"] { min-height: 34px; padding: 0 14px; font-size: 13.5px; font-weight: 600; color: #0F3D63; text-decoration: none; background: #fff; border: 1.5px solid #1F5F99; border-radius: 2px; transition: background .15s, color .15s; }
.cfg-notice .cfg-link-btn[data-notice="reset"]:hover { color: #fff; background: #1F5F99; }
.cfg-notice .cfg-icon-btn { color: #0F3D63; }
@media (prefers-reduced-motion: reduce) { .cfg-notice:not([hidden]) { animation: none; } }
@media (max-width: 560px) { .cfg-notice { flex-wrap: wrap; gap: 10px 12px; } .cfg-notice > span { flex: 1 1 calc(100% - 70px); } }

/* ---------- Schritte ---------- */
.cfg-step { background: #fff; border: 1px solid var(--line); border-radius: 2px; scroll-margin-top: calc(var(--header-h) + 80px); }
.cfg-step.is-active { border-color: var(--line-2); box-shadow: 0 18px 40px -32px rgba(20,22,24,0.35); }
.cfg-step-head { display: flex; align-items: center; gap: 16px; padding: 18px 24px; }
.cfg-step.is-active .cfg-step-head { padding: 26px 32px 6px; }
.cfg-step-num { position: relative; display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; font-family: var(--f-mono); font-size: 13px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 50%; }
.cfg-step-num .icon { display: none; }
.cfg-step.is-active .cfg-step-num { color: #fff; background: var(--ink); border-color: var(--ink); }
.cfg-step.is-done .cfg-step-num { color: #fff; background: #1E7A3C; border-color: #1E7A3C; }
.cfg-step.is-done .cfg-step-num > span { display: none; }
.cfg-step.is-done .cfg-step-num .icon { display: block; }
.cfg-step-titles { flex: 1; min-width: 0; }
.cfg-step-title { margin: 0; font-family: var(--f-display); font-stretch: 94%; font-weight: 500; font-size: 18px; line-height: 1.25; letter-spacing: -0.012em; color: var(--ink); outline: none; }
.cfg-step.is-active .cfg-step-title { font-size: clamp(22px, 1.9vw, 28px); }
.cfg-step.is-locked .cfg-step-title { color: var(--muted); }
.cfg-step-done { margin: 3px 0 0; font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfg-step-done:empty { display: none; }
.cfg-step-body { padding: 0 32px 32px 82px; }
.cfg-step-lead { margin: 6px 0 24px; max-width: 760px; font-size: 15px; line-height: 1.65; color: var(--text); }
.cfg-step-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.cfg-link { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.cfg-link:hover { color: var(--accent); }
.cfg-link-btn { padding: 0; font: inherit; font-size: 13.5px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; }
.cfg-link-btn:hover { color: var(--accent); }
.cfg-icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; font-size: 22px; line-height: 1; color: var(--text); background: none; border: 1px solid transparent; border-radius: 2px; cursor: pointer; }
.cfg-icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.cfg-help { margin: 22px 0 0; font-size: 14px; color: var(--text); }
.cfg-help a, .cfg-sum-help a { color: var(--ink); white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.cfg-hint { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.cfg-hint.is-error, .cfg-side-res.is-error { color: #A8101A; }
.cfg-hint .icon, .cfg-side-res .icon, .cfg-error .icon { flex: none; margin-top: 1px; }
.cfg-small { margin: 12px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.cfg-sub { margin: 0 0 16px; font-family: var(--f-display); font-stretch: 94%; font-weight: 500; font-size: 19px; color: var(--ink); }

/* ---------- 1 · Material ---------- */
.cfg-materials { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.cfg-mat { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.cfg-mat:hover { border-color: var(--line-2); box-shadow: 0 14px 30px -26px rgba(20,22,24,.5); }
.cfg-mat.is-selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.cfg-mat-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--mat, #ddd); }
.cfg-mat-img img { width: 100%; height: 100%; object-fit: cover; }
.cfg-mat-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--mat, #ddd); }
.cfg-mat-temp { position: absolute; left: 10px; top: 10px; padding: 4px 8px; font-family: var(--f-mono); font-size: 12px; color: #fff; background: rgba(13,14,15,.82); border-radius: 2px; }
.cfg-mat-body { display: flex; flex: 1; flex-direction: column; padding: 14px 16px 16px; }
.cfg-mat-code { display: flex; flex-direction: column; gap: 2px; margin: 0 0 6px; font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--ink); }
.cfg-mat-code span { font-size: 10.5px; font-weight: 400; letter-spacing: .06em; color: var(--muted); }
.cfg-mat-title { margin: 0 0 12px; font-family: var(--f-display); font-stretch: 94%; font-weight: 500; font-size: 16.5px; line-height: 1.25; color: var(--ink); hyphens: auto; -webkit-hyphens: auto; }
.cfg-mat-facts { display: grid; gap: 4px; margin: 0 0 14px; font-size: 13px; }
.cfg-mat-facts div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px solid var(--line); }
.cfg-mat-facts dt { color: var(--muted); }
.cfg-mat-facts dd { margin: 0; text-align: right; color: var(--ink); }
.cfg-mat-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.cfg-mat-select { min-width: 132px; }
.cfg-mat-sel-on { display: none; align-items: center; gap: 6px; }
.cfg-mat.is-selected .cfg-mat-sel-off { display: none; }
.cfg-mat.is-selected .cfg-mat-sel-on { display: inline-flex; }
.cfg-mat-more { font-size: 13px; }

/* ---------- 2 · Positionen ---------- */
.cfg-positions { display: flex; flex-direction: column; gap: 14px; }
.cfg-pos { border: 1px solid var(--line-2); border-radius: 2px; background: #fff; }
.cfg-pos.has-error { border-color: #C8323B; }
.cfg-pos-head { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 4px; background: var(--surface); border-bottom: 1px solid var(--line); }
.cfg-pos.is-collapsed .cfg-pos-head { border-bottom: 0; }
.cfg-pos-toggle { display: flex; flex: 1; align-items: baseline; gap: 14px; min-width: 0; min-height: 40px; padding: 8px 12px; font: inherit; text-align: left; color: var(--ink); background: none; border: 0; cursor: pointer; }
.cfg-pos-toggle::before { content: ""; flex: none; align-self: center; width: 8px; height: 8px; margin-right: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease; }
.cfg-pos.is-collapsed .cfg-pos-toggle::before { transform: rotate(-45deg); }
.cfg-pos-n { flex: none; font-weight: 600; font-size: 14.5px; }
.cfg-pos-sum { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--f-mono); font-size: 12.5px; color: var(--text); }
.cfg-pos-tools { display: flex; gap: 2px; }
.cfg-pos-body { padding: 20px 20px 22px; }
.cfg-pos-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 24px; align-items: start; }
.cfg-pos-form { min-width: 0; }

.cfg-dims { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 92px; gap: 10px; align-items: end; }
.cfg-times { padding-bottom: 14px; margin: 0 -2px; font-size: 18px; color: var(--muted); }
.cfg-unit { position: relative; display: flex; align-items: center; }
.cfg-unit input { padding-right: 38px; padding-left: 12px; font-family: var(--f-mono); font-size: 15px; }
.cfg-unit > span { position: absolute; right: 10px; font-size: 12.5px; color: var(--muted); pointer-events: none; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #C8323B; box-shadow: 0 0 0 3px rgba(200,50,59,.1); }
.consent input[aria-invalid="true"] { outline: 2px solid #C8323B; outline-offset: 2px; }
.field small { font-size: 12px; color: var(--muted); }
.cfg-label { margin-top: 16px; }

.cfg-clear { margin-top: 12px; border-top: 1px dashed var(--line-2); padding-top: 2px; }
.cfg-clear summary, .cfg-sides summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; list-style: none; }
.cfg-clear summary::-webkit-details-marker, .cfg-sides summary::-webkit-details-marker { display: none; }
/* Auf-/Zuklappen: Plus und Minus als gezeichnete Linien, damit sie unabhängig von der Schrift exakt mittig sitzen */
.cfg-clear summary::before, .cfg-sides summary::before {
    content: ""; flex: 0 0 auto; box-sizing: border-box; width: 20px; height: 20px; border: 1px solid var(--line-2); border-radius: 50%;
    background:
        linear-gradient(currentColor, currentColor) center / 8px 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) center / 1.5px 8px no-repeat;
    transition: border-color .15s ease, background-size .2s ease;
}
.cfg-clear summary:hover::before, .cfg-sides summary:hover::before { border-color: var(--ink); }
.cfg-clear[open] summary::before, .cfg-sides[open] summary::before {
    background:
        linear-gradient(currentColor, currentColor) center / 8px 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) center / 1.5px 0 no-repeat;
}
.cfg-clear summary:focus-visible, .cfg-sides summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cfg-clear-in { margin-top: 12px; padding: 16px; background: var(--surface); }
.cfg-clear-in > p:first-child { margin: 0 0 14px; font-size: 13.5px; line-height: 1.6; color: var(--text); }
.cfg-clear-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.cfg-clear-out { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cfg-clear-out:empty { display: none; }
.cfg-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; font: inherit; font-size: 13.5px; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 2px; cursor: pointer; }
.cfg-chip small { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }
.cfg-chip:hover { border-color: var(--ink); }

.cfg-presets { min-width: 0; margin: 26px 0 0; padding: 0; border: 0; }
.cfg-presets legend { margin-bottom: 10px; padding: 0; font-weight: 500; font-size: 14px; color: var(--text); }
.cfg-preset-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.cfg-preset { position: relative; }
.cfg-preset input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cfg-preset > span { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 10px 12px 12px; font-size: 13px; line-height: 1.3; border: 1px solid var(--line-2); border-radius: 2px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.cfg-preset > span:hover { border-color: var(--ink); }
.cfg-preset strong { font-weight: 500; color: var(--ink); }
.cfg-preset small { font-size: 12px; color: var(--muted); }
.cfg-preset-ico { width: 40px; height: 30px; margin-bottom: 6px; color: var(--text); }
.cfg-preset input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #FAFAFB; }
.cfg-preset input:checked + span .cfg-preset-ico { color: var(--ink); }
.cfg-preset input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Ösenwerkstoff je Position (Schweißvorhang): Messing oder VA, Gestaltung wie die Randvorlagen */
.cfg-eyelet { min-width: 0; margin: 20px 0 0; padding: 0; border: 0; }
.cfg-eyelet[hidden] { display: none; }
.cfg-eyelet legend { margin-bottom: 10px; padding: 0; font-weight: 500; font-size: 14px; color: var(--text); }
.cfg-eyelet-row { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 8px; }
.cfg-eyelet-opt { position: relative; }
.cfg-eyelet-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cfg-eyelet-opt > span { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; height: 100%; padding: 10px 12px; font-size: 13px; line-height: 1.3; border: 1px solid var(--line-2); border-radius: 2px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.cfg-eyelet-opt > span:hover { border-color: var(--ink); }
.cfg-eyelet-opt strong { grid-column: 2; font-weight: 500; color: var(--ink); }
.cfg-eyelet-opt small { grid-column: 2; font-size: 12px; color: var(--muted); }
.cfg-eyelet-ico { grid-row: 1 / span 2; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, #fff 0 4.5px, rgba(20,22,24,.55) 4.5px 5.5px, var(--ey) 5.5px); box-shadow: inset 0 0 0 1px rgba(20,22,24,.45); }
.cfg-eyelet-opt input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #FAFAFB; }
.cfg-eyelet-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 480px) { .cfg-eyelet-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cfg-sides { margin-top: 8px; }
.cfg-sides-in { margin-top: 12px; }
.cfg-side { display: grid; grid-template-columns: 70px minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: 8px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.cfg-side-name { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.cfg-side .field select, .cfg-side .field input { min-height: 42px; font-size: 14px; }
.cfg-side-res { grid-column: 2 / -1; display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--text); }
.cfg-side-res:empty { display: none; }

.cfg-preview { position: sticky; top: calc(var(--header-h) + 90px); margin: 0; }
.cfg-preview figcaption { margin-bottom: 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cfg-preview figcaption span { letter-spacing: 0; text-transform: none; }
.cfg-preview-box { display: grid; place-items: center; aspect-ratio: 32 / 23; background: var(--surface); border: 1px solid var(--line); }
.cfg-preview-box svg { display: block; width: 100%; height: auto; }
.cfg-preview-empty { margin: 0; padding: 0 24px; font-size: 13px; text-align: center; color: var(--muted); }
.cfg-add { margin-top: 14px; }

/* ---------- 3 · Montage ---------- */
.cfg-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.cfg-choice-opt { position: relative; }
.cfg-choice-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cfg-choice-opt > span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px 16px 48px; border: 1px solid var(--line-2); border-radius: 2px; cursor: pointer; position: relative; }
.cfg-choice-opt > span::before { content: ""; position: absolute; left: 18px; top: 18px; width: 18px; height: 18px; border: 1.5px solid var(--line-2); border-radius: 50%; background: #fff; }
.cfg-choice-opt strong { font-weight: 500; color: var(--ink); }
.cfg-choice-opt small { font-size: 13px; line-height: 1.45; color: var(--text); }
.cfg-choice-opt input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cfg-choice-opt input:checked + span::before { border-color: var(--ink); box-shadow: inset 0 0 0 4px #fff; background: var(--ink); }
.cfg-choice-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cfg-choice.is-error .cfg-choice-opt > span { border-color: #C8323B; }
.cfg-acc-basis { margin: 0 0 10px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.cfg-acc-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.cfg-acc { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cfg-acc-img { display: block; width: 72px; aspect-ratio: 3 / 2; background: var(--surface); overflow: hidden; }
.cfg-acc-img img { width: 100%; height: 100%; object-fit: cover; }
.cfg-acc-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; }
.cfg-acc-txt strong { font-weight: 500; color: var(--ink); }
.cfg-acc-txt small { font-size: 12.5px; color: var(--muted); }
.cfg-acc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 4px; font-size: 12.5px; color: var(--text); }
.cfg-badge { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; border-radius: 2px; }
.cfg-badge--auto { color: #1E4D2B; background: #EAF4EC; }
.cfg-badge--manual { color: #6A4A00; background: #FBF1D8; }
.cfg-badge--opt { color: var(--text); background: var(--surface); }
.cfg-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 2px; }
.cfg-stepper button { width: 40px; height: 40px; padding: 0; font-size: 18px; line-height: 1; color: var(--ink); background: #fff; border: 0; cursor: pointer; }
.cfg-stepper button:hover { background: var(--surface); }
.cfg-stepper input { width: 52px; height: 40px; padding: 0; font-family: var(--f-mono); font-size: 14px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.cfg-stepper input:focus { outline: 2px solid var(--ink); outline-offset: -2px; }
.cfg-stepper-u { display: none; }

/* ---------- 4 · Anfrage ---------- */
.cfg-review { margin-bottom: 30px; }
.cfg-rev-block { padding: 14px 0; border-top: 1px solid var(--line); }
.cfg-rev-block > p { margin: 0; font-size: 14.5px; color: var(--ink); }
.cfg-rev-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cfg-rev-head .cfg-link-btn { letter-spacing: 0; text-transform: none; }
.cfg-table-wrap { overflow-x: auto; }
.cfg-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cfg-table th { padding: 6px 10px 6px 0; font-weight: 500; text-align: left; color: var(--muted); border-bottom: 1px solid var(--line); }
.cfg-table td { padding: 10px 10px 10px 0; vertical-align: top; color: var(--ink); border-bottom: 1px solid var(--line); }
.cfg-nowrap { white-space: nowrap; font-family: var(--f-mono); font-size: 12.5px; }
.cfg-rev-edges { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--text); }
.cfg-rev-edges span { display: inline-block; min-width: 52px; color: var(--muted); }
.cfg-rev-acc { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.cfg-rev-acc li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.cfg-rev-acc li span:last-child { font-family: var(--f-mono); font-size: 13px; }
.cfg-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.cfg-fields .field--full { grid-column: 1 / -1; }
.cfg-form .consent { margin-top: 12px; }
.cfg-tol { margin: 18px 0 0; padding: 12px 14px; font-size: 13px; line-height: 1.55; color: var(--text); background: var(--surface); }
.cfg-error { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; font-size: 14px; color: #7A0B1C; background: #FBEAEC; }
.cfg-submit { position: relative; }
.cfg-spin { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: cfg-spin .8s linear infinite; }
.cfg-submit.is-busy .cfg-spin { display: inline-block; }
.cfg-submit.is-busy .icon { display: none; }
.cfg-submit:disabled { cursor: progress; opacity: .85; }
@keyframes cfg-spin { to { transform: rotate(360deg); } }

/* ---------- Erfolg ---------- */
.cfg-success { padding: clamp(28px, 4vw, 48px); background: #fff; border: 1px solid var(--line-2); outline: none; }
.cfg-ok-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; color: #fff; background: #1E7A3C; border-radius: 50%; }
.cfg-ok-icon .icon { width: 26px; height: 26px; }
.cfg-ok-t { margin: 0 0 12px; font-family: var(--f-display); font-stretch: 94%; font-weight: 500; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.15; color: var(--ink); }
.cfg-ok-lead { margin: 0 0 24px; max-width: 640px; font-size: 16px; line-height: 1.65; color: var(--text); }
.cfg-ok-code { display: inline-flex; flex-direction: column; gap: 4px; margin-bottom: 24px; padding: 14px 20px; background: var(--surface); border-left: 3px solid var(--ink); }
.cfg-ok-code span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cfg-ok-code strong { font-family: var(--f-mono); font-size: 22px; font-weight: 500; letter-spacing: .04em; color: var(--ink); user-select: all; }
.cfg-ok-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Zusammenfassung ---------- */
.cfg-sum { padding: 20px; background: #fff; border: 1px solid var(--line); }
.cfg-sum-t { margin: 0 0 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cfg-sum-empty { margin: 0; font-size: 14px; color: var(--text); }
.cfg-sum-mat { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; font-size: 14px; line-height: 1.35; color: var(--ink); border-bottom: 1px solid var(--line); }
.cfg-sum-mat > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.cfg-sum-mat strong { font-family: var(--f-mono); font-weight: 500; }
.cfg-sum-mat small { font-size: 12.5px; color: var(--muted); }
.cfg-sum-sw { flex: none; width: 28px; height: 28px; margin-top: 2px; border: 1px solid rgba(0,0,0,.1); border-radius: 2px; }
.cfg-sum-pos { margin: 0; padding: 10px 0; list-style: none; font-size: 13px; border-bottom: 1px solid var(--line); max-height: 220px; overflow: auto; }
.cfg-sum-pos li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.cfg-sum-pos li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.cfg-sum-pos li span:last-child { flex: none; font-family: var(--f-mono); font-size: 12px; color: var(--ink); }
.cfg-sum-kpi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0 0; }
.cfg-sum-kpi dt { font-size: 12px; color: var(--muted); }
.cfg-sum-kpi dd { margin: 2px 0 0; font-family: var(--f-display); font-stretch: 94%; font-size: 21px; letter-spacing: -0.02em; color: var(--ink); }
.cfg-sum-next { width: 100%; margin-top: 18px; }
.cfg-sum-help { margin: 16px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* ---------- Leiste unten (mobil) ---------- */
.cfg-bar { display: none; }

/* ---------- Laden ---------- */
.cfg-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain; margin: auto; padding: 0; border: 0; border-radius: 0; box-shadow: 0 40px 120px -30px rgba(0,0,0,0.5); }
.cfg-dialog[open] { animation: ds-in .22s cubic-bezier(.23,1,.32,1) both; }   /* wie Datenblatt-Modal */
.cfg-dialog-in { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px; }
.cfg-dialog-in > p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text); }
.cfg-dialog-t { margin: 0; padding-right: 36px; font-family: var(--f-display); font-stretch: 94%; font-weight: 500; font-size: 22px; color: var(--ink); }
.cfg-dialog-x { position: absolute; right: 18px; top: 18px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--ink); background: #fff; border: 1px solid var(--line-2); cursor: pointer; }
.cfg-dialog-x:hover { border-color: var(--ink); }
.cfg-dialog-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.cfg-dialog .cfg-error { margin-top: 0; }

/* ---------- Responsiv ---------- */
@media (max-width: 1180px) {
    .cfg-grid { grid-template-columns: minmax(0, 1fr); }
    .cfg-aside { position: static; order: 2; }
    .cfg-sum-next { display: none; }
    .cfg-pos-grid { grid-template-columns: minmax(0, 1fr); }
    .cfg-preview { position: static; order: -1; max-width: 420px; }
}
@media (max-width: 1180px) {
    .js .cfg.has-bar .cfg-bar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
        box-shadow: 0 -10px 30px -24px rgba(0,0,0,.4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    }
    .cfg.has-bar { padding-bottom: 120px; }
    .cfg-bar-info { display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 1.35; color: var(--text); }
    .cfg-bar-info strong { font-family: var(--f-mono); font-weight: 500; color: var(--ink); }
}
@media (max-width: 900px) {
    .cfg-preset-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cfg-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .cfg-step-body { padding: 0 20px 24px; }
    .cfg-step.is-active .cfg-step-head { padding: 20px 20px 4px; }
    .cfg-step-head { padding: 14px 16px; }
    .cfg-steps { padding: 8px var(--gutter); }
    .cfg-steps-btn { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 56px; padding: 8px 10px 10px; font-size: 12.5px; line-height: 1.2; }
    .cfg-steps-n { font-size: 11px; }
    .cfg-steps-l { white-space: normal; overflow: visible; }
    .cfg-steps-ok { position: absolute; right: 8px; top: 8px; width: 16px; height: 16px; }
    .cfg-steps-ok .icon { width: 10px; height: 10px; }
    .cfg-fields { grid-template-columns: minmax(0, 1fr); }
    .cfg-choice { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .cfg-hero { padding: 18px 0 26px; }
    .cfg-hero .breadcrumbs { margin-bottom: 18px; }
    .cfg-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; font-size: 12.5px; }
    .cfg-trust li:nth-child(n+3) { display: none; }
    .cfg-lead { font-size: 15px; }
    .cfg-h1 { margin-bottom: 10px; }
    .cfg-hero-side { gap: 14px; }
    .cfg-preview-box { max-height: 220px; }
    .cfg-preview-box svg { max-height: 220px; }
    .cfg-materials { grid-template-columns: minmax(0, 1fr); }
    .cfg-mat { flex-direction: row; }
    .cfg-mat-img { flex: none; width: 34%; aspect-ratio: auto; }
    .cfg-mat-facts { display: none; }
    .cfg-mat-body { padding: 12px 14px; }
    .cfg-mat-title { font-size: 15px; margin-bottom: 10px; }
    .cfg-mat-select { min-width: 0; }
    .cfg-pos-body { padding: 16px 14px 18px; }
    .cfg-dims { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .cfg-times { display: none; }
    .cfg-num--s { grid-column: 1 / -1; max-width: 50%; }
    .cfg-preset-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cfg-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .cfg-side-name { grid-column: 1 / -1; }
    .cfg-side-res { grid-column: 1 / -1; }
    .cfg-side .field:first-of-type { grid-column: 1 / -1; }
    .cfg-acc { grid-template-columns: 56px minmax(0, 1fr); }
    .cfg-acc-img { width: 56px; }
    .cfg-stepper { grid-column: 2; justify-self: start; }
    .cfg-step-foot .btn { flex: 1; }
    .cfg-clear-grid { grid-template-columns: minmax(0, 1fr); }
    .cfg-dialog-in { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .cfg-spin { animation-duration: 2s; }
}

/* ---------- Prüfübersicht: Positionen mit Vorschau ---------- */
.cfg-rev-pos { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.cfg-rev-item { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.cfg-rev-item:first-child { border-top: 0; padding-top: 4px; }
.cfg-rev-thumb { position: relative; display: block; width: 100%; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; cursor: zoom-in; transition: border-color .15s ease; }
.cfg-rev-thumb:hover, .cfg-rev-thumb:focus-visible { border-color: var(--ink); }
.cfg-rev-thumb svg { display: block; width: 100%; height: auto; }
.cfg-rev-zoom { position: absolute; right: 6px; bottom: 6px; display: grid; place-items: center; width: 28px; height: 28px; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 2px; }
.cfg-rev-info { min-width: 0; }
.cfg-rev-name { margin: 2px 0 4px; font-size: 15px; font-weight: 500; color: var(--ink); }
.cfg-rev-dims { margin: 0 0 10px; font-size: 13.5px; color: var(--text); }
.cfg-rev-more { margin-top: 10px; }

/* ---------- Detailansicht Position ---------- */
.cfg-dialog--wide { width: min(880px, calc(100vw - 32px)); }
.cfg-pd-kicker { margin: 0 0 6px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cfg-dialog--wide .cfg-dialog-t { margin-bottom: 18px; }
.cfg-pd-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cfg-pd-svg { background: var(--surface); border: 1px solid var(--line); }
.cfg-pd-svg svg { display: block; width: 100%; height: auto; }
.cfg-pd-facts { margin: 0; font-size: 14px; }
.cfg-pd-facts div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.cfg-pd-facts div:first-child { border-top: 0; padding-top: 0; }
.cfg-pd-facts dt { color: var(--muted); }
.cfg-pd-facts dd { margin: 0; color: var(--ink); }
.cfg-pd-foot { align-items: center; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
.cfg-pd-nav { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 720px) {
    .cfg-rev-item { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
    .cfg-rev-zoom { display: none; }
    .cfg-pd-grid { grid-template-columns: minmax(0, 1fr); }
    .cfg-pd-facts div { grid-template-columns: 110px minmax(0, 1fr); }
    .cfg-pd-foot { flex-direction: column-reverse; align-items: stretch; }
    .cfg-pd-nav .btn { flex: 1; }
}

/* ---------- Rückfrage „Position entfernen“ ---------- */
.cfg-confirm { width: min(440px, calc(100vw - 32px)); }
.cfg-confirm::backdrop { background: rgba(13,14,15,.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.cfg-confirm .cfg-dialog-foot { flex-wrap: wrap; }

/* Zahlenfelder mit Plus/Minus (assets/js/cfg-stepper.js): Rahmen um Zahl, Einheit und Leiste */
.cfg-unit.has-step { min-height: 48px; background: #fff; border: 1px solid #C9CDD0; border-radius: 2px; transition: border-color .15s, box-shadow .15s; }
.cfg-unit.has-step:hover { border-color: #A9AFB4; }
.cfg-unit.has-step:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20,22,24,.08); }
.cfg-unit.has-step:has(input[aria-invalid="true"]) { border-color: #C8323B; box-shadow: 0 0 0 3px rgba(200,50,59,.1); }
.cfg-unit.has-step:has(input[readonly]) { background: var(--surface); }
.cfg-unit.has-step input { flex: 1 1 0; width: 0; min-width: 3.4em; min-height: 46px; padding: 0 6px 0 12px; border: 0; background: transparent; box-shadow: none !important; -moz-appearance: textfield; appearance: textfield; }
.cfg-unit.has-step input::-webkit-inner-spin-button, .cfg-unit.has-step input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cfg-unit.has-step > span:not(.cfg-stepper) { position: static; flex: 0 0 auto; padding: 0 9px 0 2px; white-space: nowrap; }
.cfg-unit > .cfg-stepper { position: static; right: auto; display: flex; flex-direction: column; flex: 0 0 30px; align-self: stretch; border-left: 1px solid var(--line); pointer-events: auto; }
.cfg-stepper button { display: grid; place-items: center; flex: 1 1 50%; width: 30px; padding: 0; color: var(--muted); background: transparent; border: 0; cursor: pointer; touch-action: manipulation; transition: background .12s, color .12s; }
.cfg-stepper button + button { border-top: 1px solid var(--line); }
.cfg-stepper button:hover { color: var(--ink); background: var(--surface); }
.cfg-stepper button:active { background: #E7E9EB; }
.cfg-unit.has-step:has(input[readonly]) .cfg-stepper { display: none; }
@media (pointer: coarse) { .cfg-stepper, .cfg-stepper button { width: 36px; flex-basis: 36px; } }
/* Schmale Felder (z. B. Maße der Brandschutzhaube): Zahl und Einheit haben Vorrang, Leiste entfällt */
.cfg-unit.has-step { container-type: inline-size; }
@container (max-width: 150px) {
    .cfg-unit.has-step .cfg-stepper { display: none; }
}

/* Neu beginnen (assets/js/cfg-reset.js): Button rechts neben der Schrittleiste, Bestätigung im Modal */
.cfg-steps.has-reset { display: flex; align-items: stretch; gap: 8px; }
.cfg-steps.has-reset > ol { flex: 1 1 auto; min-width: 0; }
.cfg-reset { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 0 16px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; background: #fff; border: 1.5px solid var(--ink); border-radius: 2px; box-shadow: 0 10px 30px -26px rgba(20,22,24,.45); cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.cfg-reset svg { color: var(--accent); transition: color .15s, transform .35s cubic-bezier(.23,1,.32,1); }
.cfg-reset:hover { color: #fff; background: var(--ink); }
.cfg-reset:hover svg { color: #fff; transform: rotate(-45deg); }
.cfg-reset:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cfg-steps[hidden] + * .cfg-reset, .cfg-steps[hidden] .cfg-reset { display: none; }
@media (max-width: 900px) {
    .cfg-reset { padding: 0 11px; }
    .cfg-reset .cfg-reset-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Konfigurator verlassen (11.11.2026): rechts neben dem Breadcrumb */
/* Kopfzeile der Konfiguratoren: Rücksprung als klar erkennbarer Button links, Brotkrumen dezent rechts */
.cfg-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; margin-bottom: 26px; }
.cfg-hero .cfg-topline > .breadcrumbs { min-width: 0; margin-bottom: 0; }
.cfg-exit { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 40px; padding: 0 16px 0 11px; font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line-2); border-radius: 3px; transition: border-color .2s ease, color .2s ease; }
.cfg-exit .icon { width: 16px; height: 16px; color: var(--ink); transition: transform .2s ease, color .2s ease; }
.cfg-exit:hover { color: var(--accent); border-color: currentColor; }
.cfg-exit:hover .icon { color: var(--accent); transform: translateX(-3px); }
@media (max-width: 760px) {
    .cfg-topline { margin-bottom: 18px; }
    .cfg-hero .cfg-topline > .breadcrumbs { display: none; }
    .cfg-exit { min-height: 38px; font-size: 13.5px; }
}

/* Schmale Bildschirme: Rücksprung-Button darf umbrechen */
@media (max-width: 600px) {
    .cfg-exit { flex: 0 1 auto; min-width: 0; max-width: 100%; padding-top: 7px; padding-bottom: 7px; }
}
