
.w2p-d-lage { display: flex; gap: 16px; align-items: flex-start; }
.w2p-d-links { flex: 1 1 62%; min-width: 0; }
.w2p-d-rechts { flex: 0 0 320px; }

.w2p-d-scroll { overflow: auto; max-width: 980px; padding-bottom: 2px; }
.w2p-d-zoomleiste { margin: 0 0 8px; }
#w2p-d-zwert { display: inline-block; min-width: 52px; text-align: center; }

.w2p-d-buehne {
    position: relative; width: 100%;

    box-sizing: border-box;

    border: 1px solid rgba(0, 0, 0, .4) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .16) !important;
    background: #fff;

    font-kerning: none; font-variant-ligatures: none;
}
.w2p-d-buehne img { display: block; width: 100%; height: auto; user-select: none; }
.w2p-d-felder { position: absolute; inset: 0; overflow: hidden; }

.w2p-d-text-drehung {
    position: absolute; width: 0; height: 0; overflow: visible;
}

.w2p-d-text {
    position: absolute; white-space: pre; line-height: 1;
    font-kerning: none; font-variant-ligatures: none;

    text-rendering: geometricPrecision;
}

.w2p-d-bildfeld {
    position: absolute; border: 2px dashed rgba(0, 160, 160, .8);
    background: rgba(0, 160, 160, .06); display: flex;
    align-items: center; justify-content: center; text-align: center;
    color: #007a7a; font-size: 12px;
}

.w2p-d-bildfeld.w2p-d-bild-echt { border: none; background: none; overflow: hidden; }
.w2p-d-bildfeld.w2p-d-bild-echt img { width: 100%; height: 100%; display: block; }

.w2p-d-karte { border: 1px solid #c3c4c7; background: #fff; margin-bottom: 10px; padding: 10px 12px; }

/* Die Werkzeugleiste: EIN Kasten, alle Bedienelemente gleich hoch. Vorher
   war jedes ein eigenes Element mit eigener Hoehe - WordPress-Knopf 30 px,
   Auswahlfeld 32, Farbfeld 26 -, dadurch sass nichts auf einer Linie. */
/* Quills eigene Werkzeugleiste. Angepasst wird nur, was das Theme kaputt
   macht: Shop-Themes setzen `button` global auf Blockhoehe und Polsterung -
   dadurch werden Quills 24-px-Knoepfe doppelt so hoch wie seine
   Wahlschalter. Die Masse hier sind Quills eigene. */
.w2p-d-leistenreihe {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    border: 1px solid #8c8f94; border-bottom: 0; border-radius: 3px 3px 0 0;
    background: #f6f7f7; padding: 4px 8px; margin: 4px 0 0;
}
.w2p-d-leiste.ql-toolbar {
    border: 0 !important; background: none; padding: 0 !important; margin: 0;
    display: flex; align-items: center; gap: 8px;
}
.w2p-d-leiste.ql-toolbar .ql-formats { margin: 0 !important; display: inline-flex; align-items: center; }
.w2p-d-leiste.ql-toolbar button {
    width: 28px !important; height: 24px !important; padding: 3px 5px !important;
    min-height: 0 !important; line-height: 1 !important; border: 0 !important;
    border-radius: 3px; background: none !important; box-shadow: none !important;
    float: none !important; margin: 0 !important;
}
.w2p-d-leiste.ql-toolbar button:hover { background: #e5e5e5 !important; }
.w2p-d-leiste.ql-toolbar button.ql-active { background: #dbe8f3 !important; }

/* Die Groessen sollen als Zahl dastehen, nicht als leeres Feld: Quill zeigt
   von Haus aus nur die Werte an, die es selbst kennt. */
.ql-snow .ql-picker.ql-size .ql-picker-label::before,
.ql-snow .ql-picker.ql-size .ql-picker-item::before { content: attr(data-value); }
.ql-snow .ql-picker.ql-size .ql-picker-label:not([data-value])::before,
.ql-snow .ql-picker.ql-size .ql-picker-item:not([data-value])::before { content: 'Standard'; }
.ql-snow .ql-picker.ql-size { width: 84px; }

/* Die Schriftwahl ist kein Quill-Format - sie soll nur mittig mitlaufen. */
.w2p-d-schriftgruppe { display: inline-flex; align-items: center; }
.w2p-d-schriftgruppe select {
    height: 24px !important; min-height: 0 !important; margin: 0 !important;
    padding: 0 22px 0 6px; max-width: 200px; box-sizing: border-box;
    border: 1px solid #ccc; border-radius: 3px; background-color: #fff;
    font-size: 12px; line-height: 22px;
}
/* Manche Themes wickeln Auswahlfelder in einen eigenen Kasten. */
.w2p-d-leistenreihe .select-resize-ghost,
.w2p-d-leistenreihe .select-wrapper { display: contents; }

.w2p-d-editor {
    border: 1px solid #8c8f94; border-radius: 0 0 3px 3px; background: #fff;
    min-height: 8em; margin-top: 0;

    white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word;
    overflow-x: hidden;
    font-family: var(--w2p-font-normal, inherit);
    font-style: normal;
    font-weight: normal;
}
/* Quill legt seinen Inhalt in ein Kind; Polsterung und Schrift gehoeren
   dorthin, sonst schreibt der Kunde am Rand. */
.w2p-d-editor .ql-editor {
    padding: 6px 8px; min-height: 8em; line-height: 1.5;
    font-family: inherit; font-style: inherit; font-weight: inherit;
}
.w2p-d-editor .ql-editor.ql-blank::before { color: #8c8f94; font-style: normal; left: 8px; }
.w2p-d-editor .ql-editor p { margin: 0; }
.w2p-d-editor.ql-container { border-top: 0; font-size: inherit; }

/* Fett und kursiv sind eigene Schriftdateien, keine Rechenergebnisse:
   `font-synthesis: none` verbietet dem Browser, zusaetzlich ein kuenstliches
   Fett oder eine Schraegstellung darueberzulegen.
   `font-weight: bold` bzw. `font-style: italic` muessen trotzdem stehen -
   Chrome liest daraus den Zustand des B-/I-Knopfes. Stand dort `normal`,
   hielt es eine fette Stelle fuer nicht fett, und ein zweiter Klick auf B
   hob die Auszeichnung nicht mehr auf. */
.w2p-d-editor b, .w2p-d-editor strong,
.w2p-d-editor .ql-editor strong {
    font-family: var(--w2p-font-fett, var(--w2p-font-normal, inherit));
    font-style: normal;
    font-weight: bold;
    font-synthesis: none;
}
.w2p-d-editor i, .w2p-d-editor em,
.w2p-d-editor .ql-editor em {
    font-family: var(--w2p-font-kursiv, var(--w2p-font-normal, inherit));
    font-style: italic;
    font-weight: normal;
    font-synthesis: none;
}
/* ACHTUNG Spezifitaet: Diese acht Waehler MUESSEN `.ql-editor` tragen.
   Die Kursivregel oben reicht mit `.w2p-d-editor .ql-editor em` in Quills
   Container hinein und wiegt damit (0,2,1). Ohne `.ql-editor` kaemen diese
   Regeln nur auf (0,1,2) - dann gewinnt bei `<strong><em>Text</em></strong>`
   die Kursivregel am inneren <em>, und fett-kursiver Text erscheint im
   Eingabefeld als reines Kursiv. Auf der Buehne fiel das nie auf, die baut
   ihre Schrift selbst zusammen. Gemessen am 23.08.2026. */
.w2p-d-editor .ql-editor b i,
.w2p-d-editor .ql-editor b em,
.w2p-d-editor .ql-editor strong i,
.w2p-d-editor .ql-editor strong em,
.w2p-d-editor .ql-editor i b,
.w2p-d-editor .ql-editor i strong,
.w2p-d-editor .ql-editor em b,
.w2p-d-editor .ql-editor em strong,
.w2p-d-editor b i,
.w2p-d-editor b em,
.w2p-d-editor strong i,
.w2p-d-editor strong em,
.w2p-d-editor i b,
.w2p-d-editor i strong,
.w2p-d-editor em b,
.w2p-d-editor em strong {
    font-family: var(--w2p-font-fettkursiv, var(--w2p-font-fett, var(--w2p-font-kursiv, inherit)));
    font-style: italic;
    font-weight: bold;
    font-synthesis: none;
}
.w2p-d-editor:focus { outline: 2px solid #2271b1; outline-offset: -1px; }
.w2p-d-karte h4 { margin: 0 0 8px; }
.w2p-d-aufpreis { color: #996300; font-size: 0.9em; font-weight: normal; white-space: nowrap; }
.w2p-d-seiten { margin: 0 0 8px; }

#w2p-d-messwerte { margin-top: 10px; max-width: 980px; }
#w2p-d-warnungen { margin-top: 8px; max-width: 980px; }

body.w2p-produkt div.product .woocommerce-product-gallery,
body.w2p-produkt div.product .product-gallery,
body.w2p-produkt div.product .product-images { display: none !important; }
body.w2p-produkt div.product .product-info.col,
body.w2p-produkt div.product .col.product-info {
    flex-basis: 100% !important; max-width: 100% !important; width: 100% !important;
}
.w2p-shop-designer { margin: 12px 0 20px; max-width: 100%; }

#w2p-designer button.button {
    display: inline-block; width: auto; margin: 0; padding: 3px 12px;
    font-size: 13px; line-height: 1.7; min-height: 0; text-transform: none;
    letter-spacing: normal;
}

.w2p-d-kopf {
    display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
    max-width: 980px; margin: 0 0 8px;
}
.w2p-d-kopf .w2p-d-seiten, .w2p-d-kopf .w2p-d-zoomleiste {
    display: inline-flex; gap: 6px; align-items: center; margin: 0;
}

#w2p-designer.w2p-d-shop .w2p-d-lage { flex-direction: column; }
#w2p-designer.w2p-d-shop .w2p-d-rechts { flex-basis: auto; width: 100%; max-width: 980px; }

@media (max-width: 880px) {
    .w2p-d-lage { flex-direction: column; }
    .w2p-d-rechts { flex-basis: auto; width: 100%; }
}
form.cart.w2p-cart { margin-top: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
#w2p-d-warnungen .notice { padding: 8px 12px; border-left: 4px solid #dba617; background: #fff8e5; }

.w2p-d-seite {
    border: 1px solid #dcdcde;
    border-radius: 4px;
    margin-bottom: 10px;
    background: #fff;
}
.w2p-d-seite > summary {
    cursor: pointer;
    padding: 9px 12px;
    list-style: none;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.w2p-d-seite > summary::-webkit-details-marker { display: none; }
.w2p-d-seite > summary::before {
    content: '▸';
    color: #646970;
    transition: transform .15s;
}
.w2p-d-seite[open] > summary::before { content: '▾'; }
.w2p-d-seite[open] > summary { border-bottom: 1px solid #f0f0f1; background: #f6f7f7; }
.w2p-d-seitenname { font-weight: 600; }
.w2p-d-tun { font-weight: 400; color: #2271b1; }
.w2p-d-was { color: #646970; font-size: 12px; }
.w2p-d-leer {
    margin-left: auto;
    color: #996800;
    background: #fcf9e8;
    border-radius: 9px;
    padding: 1px 8px;
    font-size: 11px;
}
.w2p-d-seite > .w2p-d-karte { border: none; margin: 0; box-shadow: none; }

.w2p-d-hinweis {
    margin: 0 0 8px !important;
    padding: 8px 12px;
    background: #fcf9e8;
    border-left: 4px solid #dba617;
    color: #1d2327 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}
.w2p-d-tabs {
    display: flex !important;
    gap: 4px;
    margin: 0 0 12px !important;
    flex-wrap: wrap;
}
.w2p-d-tab {
    appearance: none;
    border: 1px solid #c3c4c7 !important;
    background: #f6f7f7 !important;
    color: #50575e !important;
    border-radius: 3px !important;
    padding: 7px 14px !important;
    cursor: pointer;
    font-size: 13px !important;
    line-height: 1.4 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
.w2p-d-tab:hover { background: #fff !important; color: #2271b1 !important; }
.w2p-d-tab.aktiv {
    background: #fff !important;
    color: #1d2327 !important;
    border-color: #2271b1 !important;
    border-bottom-width: 3px !important;
    font-weight: 600 !important;
}
.w2p-d-tab .w2p-d-leer {
    background: #dba617;
    color: #1d2327;
    border-radius: 9px;
    padding: 0 7px;
    font-size: 11px;
    font-weight: 400;
}
