.smp .wb .wb-mitte-kopf{flex-wrap:wrap;align-items:center;gap:8px 12px}
.smp .wb .wb-mitte-kopf>div:first-child{flex:1 0 48%;min-width:0}
.smp .wb .wb-mitte-kopf h2{overflow-wrap:anywhere}
.smp .wb .wb-mitte-kopf>button{width:auto;min-height:44px;font-family:inherit}
.smp .wb .wb-mitte-kopf>[data-wb-werkzeug]{border:1px solid #154e8a;border-radius:8px;background:#154e8a;color:white;padding:8px 13px}
.smp .wb .wb-zeichnung,.smp .wb-gross-dialog .wb-zeichnung{position:relative;display:flex;flex-direction:column;align-items:stretch;min-height:250px;padding:0;background:#f0f4f4}
.smp .wb-zeichnung>.smp-bild{position:relative;flex:1 1 auto;min-height:205px;overflow:hidden}
.smp .wb-zeichnung .smp-bild svg,.sgr-buehne canvas,.sgr-buehne img{position:absolute;inset:0;width:100%;height:100%;display:block}
.smp .wb .smp-karten button:hover,.smp .wb .smp-karten button:focus-visible{background:#f1f6fb;border-color:#154e8a}
.smp .wb .wb-mitte-kopf>.dz-wahl{padding:8px 12px;border:1px solid #aabfce;border-radius:7px;background:white;color:#154e8a;font-weight:700}
.sgr-buehne{background:#e9e5db}
.sgr-buehne img{object-fit:cover}
.sgr-buehne canvas{touch-action:none;cursor:grab}
.sgr-buehne canvas:active{cursor:grabbing}
.sgr-buehne.sgr-technisch{background-color:#f6f9fa;background-image:linear-gradient(#bad1da36 1px,transparent 1px),linear-gradient(90deg,#bad1da36 1px,transparent 1px);background-size:18px 18px}
.sgr-front{fill:#d7e8e5;stroke:#416a70;stroke-width:1.6}
.sgr-bogen{fill:none;stroke:#34666c;stroke-width:4;stroke-linecap:round}
.sgr-tiefenmass{stroke:#647f8b;fill:none;stroke-width:1.1}
.sgr-hilfslinie{stroke:#738e98;stroke-dasharray:5 4}
.sgr-linie{fill:none;stroke:#647f8b;stroke-width:1.2}
.sgr-masszahl,.sgr-massfuss{font:600 14px system-ui;fill:#244454;paint-order:stroke;stroke:#f6f9fa;stroke-width:4px;stroke-linejoin:round}
.sgr-fehler{position:absolute;inset:0;display:grid;place-content:center;padding:20px;margin:0;text-align:center;color:#74431f;background:#fbf8f2}
.sgr-werkzeuge{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 8px;padding:0 12px;background:#f6f9f8;color:#44616b;font-size:13px}
.sgr-werkzeuge .sgr-reset{border:0;background:none;padding:5px 0;color:#154e8a;font:inherit;text-decoration:underline;cursor:pointer;min-height:44px}
.sgr-ansichten{display:inline-flex;align-items:stretch;flex-wrap:wrap;max-width:100%;border:1px solid #c5d1d9;border-radius:8px;background:#eaf0f2;padding:2px}
.smp .wb .sgr-ansichten>button{border:0;border-radius:6px;background:transparent;color:#48616e;padding:6px 10px;min-height:44px;line-height:1.2;font-family:inherit;font-size:14px;font-weight:650;cursor:pointer}
.smp .wb .sgr-ansichten>button[aria-pressed=true]{color:#164b76;background:#fff;box-shadow:0 1px 3px #173a461c}
.sgr-werkzeuge .sgr-projektionen{margin:4px auto}
.smp .wb-gross-dialog .wb-zeichnung:has(.sgr-buehne){height:min(70vh,660px);min-height:250px}
.smp .wb .wb-zeichnung .smp-bildstand{margin:0;padding:9px 12px;background:#f6f9f9;color:#305361;font-size:14px}
.smp .wb .wb-zeichnung.dz-aktiv>.smp-bildstand{display:none}
.smp .wb .smp-wahl{min-inline-size:0;padding:0;border:0}
.smp-wahl legend,.smp-notiz{margin-bottom:8px;font-size:15px;font-weight:700}
.smp-karten{display:grid;gap:7px}
.smp .wb .smp-karten button{display:grid;gap:4px;border:1px solid #b9c9d5;border-radius:8px;background:#fff;width:100%;min-height:48px;padding:10px 14px;text-align:left}
.smp .wb .smp-karten button[aria-pressed=true]{background:#eef4fb;border:2px solid #154e8a;padding:9px 13px}
.smp .sgk-gruppe small{display:block;margin-top:7px;line-height:1.45;color:#4b6075;font-size:14px}
.smp-notiz,.smp-notiz textarea{display:block;width:100%}
.smp-notiz textarea,.smp-dialog textarea{margin-top:7px;padding:9px;border:1px solid #8d98a9;border-radius:7px;font:inherit;resize:vertical}
.smp .wb .smp-liste,.smp-dialog .smp-liste{margin:0 0 15px}
.smp-liste>div{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:12px;padding:8px 0;border-bottom:1px solid #d8e1ea;line-height:1.45;font-size:15px;overflow-wrap:anywhere}
.smp-liste dd{margin:0;font-weight:650}
.smp .wb .wb-schritte small{display:block;white-space:normal}
.smp .wb .wb-betrag{font-size:clamp(18px,1.9vw,29px);line-height:1.14;overflow-wrap:anywhere}
.smp-dialog{width:min(560px,94vw);max-height:85dvh;padding:18px;border-radius:14px}
.smp-dialog header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.smp-dialog .smp-motiv{display:block;width:100%;height:auto;border-radius:9px;margin-top:12px}
.smp-dialog .smp-dialogwege{display:flex;flex-wrap:wrap;gap:8px}
.smp-dialog .smp-dialogwege>*{display:inline-flex;align-items:center;min-height:44px;padding:9px 14px;border:1px solid #154e8a;border-radius:8px;background:#fff;color:#154e8a;font:inherit;font-weight:700;text-decoration:none}
.smp-dialog .smp-dialogwege .smp-aktion{background:#154e8a;color:#fff}
.smp [hidden]{display:none!important}
.smp .wb .wb-schritt{scroll-margin-top:76px}
@media (min-width:1200px) and (min-height:600px){.smp .wb .wb-zeichnung{min-height:125px}.smp .wb-zeichnung>.smp-bild{min-height:0}}
@media (max-width:1199px){.smp .wb .wb-zeichnung{height:clamp(270px,48vw,420px)}}
@media (max-width:600px){
 .smp .wb .wb-mitte-kopf>div:first-child{flex-basis:100%}
 .smp .wb .wb-mitte-kopf{padding:12px}
 .smp .wb .wb-betrag{font-size:16px}
 .smp .wb .wb-preis-zusatz{font-size:13px}
 .smp .wb .wb-weiter{min-width:0;max-width:160px;white-space:normal;line-height:1.2}
 .smp .wb .wb-preis{min-width:0}
 .smp .wb .wb-leiste{align-items:center}
}

.smp-fenster{position:relative;flex:1 1 0;min-height:0;background:linear-gradient(105deg,#342d27,#504438 48%,#43382f);overflow:hidden}
.smp-fenster img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.smp-dialog .smp-film{display:block;width:100%;max-height:58dvh;margin-top:12px;background:#191e22}
