:root{
  --bg:#f3f4f6;
  --panel:rgba(255,255,255,.72);
  --panel-border:rgba(255,255,255,.55);
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --accent:#0a84ff;
  --accent-soft:rgba(10,132,255,.12);
  --danger:#ff3b30;
  --success:#16a34a;
  --shadow:0 20px 50px rgba(15,23,42,.10);
  --radius:24px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{
  font:15px/1.45 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.85), transparent 30%),
    linear-gradient(180deg, #efefef 0%, #ececec 100%);
}
a{color:inherit}
.page{max-width:1560px;margin:0 auto;padding:24px}
.grid{
  display:grid;
  grid-template-columns:minmax(320px,380px) minmax(560px,1fr) minmax(300px,340px);
  gap:22px;
  align-items:start;
  isolation:isolate;
}
.panel{
  min-width:0;

  min-width:0;
  background:var(--panel);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border:1px solid var(--panel-border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:22px;
}
.h-title{margin:0 0 4px;font-size:28px;line-height:1.1}
.sub{margin:0;color:var(--muted)}
.stack{display:grid;gap:20px}
.group{display:grid;gap:12px}
.group h3{margin:0;font-size:17px;font-weight:700;letter-spacing:-.01em;color:#1f2937}
.group-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:nowrap}
.group-header h3{flex:1 1 auto;min-width:0}
.micro-copy{font-size:13px;line-height:1.45;color:#667085;font-weight:500}
.segmented{display:flex;gap:12px;flex-wrap:wrap}
.segmented input{display:none}
.segmented label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  border:1px solid rgba(15,23,42,.08);
  background:rgba(255,255,255,.92);
  border-radius:999px;
  padding:0 16px;
  cursor:pointer;
  font-size:15px;
  font-weight:600;
  letter-spacing:-.01em;
  box-shadow:0 4px 12px rgba(15,23,42,.04);
}
.segmented input:checked + label{
  border-color:rgba(10,132,255,.32);
  background:var(--accent-soft);
  color:#0b63c9;
}
.paper-choice-group{gap:10px}
.paper-choice-grid{display:grid;gap:8px}
.paper-choice-grid input{position:absolute;opacity:0;pointer-events:none}
.paper-choice-card{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:50px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.88);
  border-radius:16px;
  padding:10px 12px;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(15,23,42,.04);
  transition:border-color .16s ease, background .16s ease, color .16s ease;
}
.paper-choice-grid input:checked + .paper-choice-card{
  border-color:rgba(10,132,255,.34);
  background:var(--accent-soft);
}
.paper-swatch{
  flex:0 0 auto;
  width:18px;
  height:18px;
  border:1px solid rgba(15,23,42,.22);
  border-radius:4px;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.08);
}
.paper-swatch.white{background:#fff}
.paper-swatch.chamoise{background:#f3e3bd}
.paper-choice-copy{display:grid;gap:2px;min-width:0}
.paper-choice-copy strong{font-size:13px;line-height:1.2;color:var(--text)}
.paper-choice-copy small{font-size:12px;line-height:1.25;color:var(--muted)}
.fixed-paper-card{cursor:default}
.fixed-paper-card{
  border-color:rgba(0,122,255,.34)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(247,249,252,.94))!important;
  box-shadow:0 10px 24px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.9)!important;
}
.premium-paper-copy small{line-height:1.38}
.print-approval-card{
  max-width:1710px;
  width:min(98vw,1710px);
  max-height:80vh;
  overflow-y:auto;
  border-radius:30px;
  padding:26px;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(246,247,250,.96));
  border:1px solid rgba(255,255,255,.78);
  box-shadow:0 34px 90px rgba(15,23,42,.28), inset 0 1px 0 rgba(255,255,255,.9);
  color:#111827;
}
.print-approval-card h3{margin:2px 0 8px;color:#111827!important;font-size:24px;letter-spacing:-.02em}
.print-approval-intro{margin:0 0 18px!important;color:#4b5563!important;line-height:1.45}
.print-approval-kicker{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.12em;color:#6b7280;margin-bottom:6px}
.print-approval-preview-wrap{
  margin:0 0 18px;
  padding:14px;
  border-radius:12px;
  background:#e4e4e4;
  border:1px solid #c9c9c9;
  box-shadow:none;
}
.print-approval-free-note{
  margin:0 0 14px;
  padding:12px 14px;
  border-radius:10px;
  background:#fff1f1;
  border:1px solid rgba(220,38,38,.20);
  color:#b42318;
  font-size:13px;
  line-height:1.5;
}
.print-approval-free-note strong{color:#b42318;font-weight:800}
.print-approval-paper-note{
  margin:0 0 14px;
  padding:12px 14px;
  border-radius:10px;
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.12);
  color:#1f2937;
  font-size:13px;
  line-height:1.5;
}
.print-approval-paper-note strong{color:#111827;font-weight:800}
.print-approval-preview-head{display:flex;flex-direction:column;gap:2px;margin-bottom:12px}
.print-approval-preview-title{font-size:15px;font-weight:800;color:#111827}
.print-approval-preview-subtitle{font-size:12px;color:#4b5563;line-height:1.45}
.print-approval-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start;padding:10px;background:#cfcfcf;border:1px solid #c3c3c3;border-radius:0}
.print-approval-preview-grid.single-sided{grid-template-columns:minmax(0,min(540px,100%));justify-content:center}
.print-approval-preview-grid.single-sided .motif-overview-side-wrap{width:100%}
.print-approval-preview-grid .motif-overview-side-wrap{display:grid;gap:6px;align-content:start}
.print-approval-preview-grid .motif-overview-side-label{font-size:13px;font-weight:500;color:#1f2937}
.print-approval-preview-grid .motif-overview-side{
  width:100%;
  min-height:0;
  height:auto;
  aspect-ratio:91 / 61;
  border-radius:0;
  background:transparent;
  border:0;
  box-shadow:none;
  overflow:hidden;
}
.print-approval-preview-grid .motif-overview-side-caption{display:none!important}
.print-approval-clone-side .mini-preview-clone-viewport{box-shadow:none;background:transparent}
.print-approval-clone-side .mini-preview-clone-surface{background:transparent}
.print-approval-back-hint{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;grid-column:1 / -1;justify-self:center;gap:2px;min-width:320px;max-width:420px;margin:2px auto 0;padding:10px 18px;border:1px solid rgba(15,23,42,.12);border-radius:999px;background:linear-gradient(180deg,#ffffff 0%,#f3f4f6 100%);box-shadow:0 10px 24px rgba(15,23,42,.12), inset 0 1px 0 rgba(255,255,255,.95);color:#1f2937;font-size:12px;line-height:1.25;text-align:center;cursor:pointer;text-decoration:none}
.print-approval-back-hint strong{display:block;font-weight:800;color:#111827;white-space:nowrap}
.print-approval-back-hint span{display:block;color:#4b5563;white-space:nowrap}
.print-approval-back-hint:hover,.print-approval-back-hint:focus{transform:translateY(-1px);box-shadow:0 14px 28px rgba(15,23,42,.16), inset 0 1px 0 rgba(255,255,255,.98);text-decoration:none}
.print-approval-list{display:grid;gap:10px;margin:16px 0}
.print-approval-check{
  display:flex;
  align-items:flex-start;
  gap:11px;
  padding:13px 14px;
  border:1px solid rgba(17,24,39,.10);
  border-radius:18px;
  background:rgba(255,255,255,.78);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.86);
  color:#111827;
  cursor:pointer;
}
.print-approval-check input{
  width:18px;
  height:18px;
  margin:1px 0 0;
  accent-color:#007aff;
  flex:0 0 auto;
}
.print-approval-check span{font-size:14px;line-height:1.35}
.print-approval-error{
  margin:8px 0 0!important;
  color:#b42318!important;
  font-size:13px;
  line-height:1.35;
}
.print-approval-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px;flex-wrap:wrap}
.print-approval-actions .btn{min-width:170px;justify-content:center}
.print-approval-actions .btn[disabled]{opacity:.48;cursor:not-allowed}
html:not(.theme-light) .print-approval-card{
  background:linear-gradient(180deg,rgba(31,41,55,.98),rgba(17,24,39,.98));
  color:#f9fafb;
  border-color:rgba(255,255,255,.16);
}
html:not(.theme-light) .print-approval-card h3,
html:not(.theme-light) .print-approval-preview-title{color:#f9fafb!important}
html:not(.theme-light) .print-approval-intro,
html:not(.theme-light) .print-approval-kicker,
html:not(.theme-light) .print-approval-preview-subtitle{color:#d1d5db!important}
html:not(.theme-light) .print-approval-preview-wrap{
  background:#d8d8d8;
  border-color:#bdbdbd;
}
html:not(.theme-light) .print-approval-free-note{
  background:#fff1f1;
  border-color:rgba(220,38,38,.20);
  color:#b42318;
}
html:not(.theme-light) .print-approval-free-note strong{color:#b42318}
html:not(.theme-light) .print-approval-paper-note{
  background:#f8fafc;
  border-color:rgba(15,23,42,.12);
  color:#1f2937;
}
html:not(.theme-light) .print-approval-paper-note strong{color:#111827}
html:not(.theme-light) .print-approval-preview-grid{background:#cfcfcf;border-color:#c3c3c3}
html:not(.theme-light) .print-approval-preview-grid .motif-overview-side-label{color:#1f2937}
html:not(.theme-light) .print-approval-back-hint{color:#1f2937;background:linear-gradient(180deg,#ffffff 0%,#f3f4f6 100%);border-color:rgba(15,23,42,.12)}
html:not(.theme-light) .print-approval-back-hint strong{color:#111827}
html:not(.theme-light) .print-approval-back-hint span{color:#4b5563}
html:not(.theme-light) .print-approval-preview-grid .motif-overview-side{
  background:transparent;
  border-color:transparent;
  box-shadow:none;
}
html:not(.theme-light) .print-approval-check{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.14);
  color:#f9fafb;
}
@media (max-width: 720px){
  .print-approval-card{width:min(98vw,1710px);max-height:80vh;padding:22px 18px;border-radius:24px}
  .print-approval-preview-grid{grid-template-columns:1fr;padding:8px}
  .print-approval-preview-grid .motif-overview-side{min-height:0;height:auto;aspect-ratio:91 / 61}
  .print-approval-back-hint{min-width:0;width:100%;max-width:100%;border-radius:22px;padding:10px 14px}
  .print-approval-back-hint strong,.print-approval-back-hint span{white-space:normal}
}
.select, .input, .textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px 14px;
  background:rgba(255,255,255,.92);
  color:var(--text);
  outline:none;
}
.textarea{min-height:92px;resize:vertical}
.control-bar{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  padding:14px;border:1px solid var(--line);border-radius:22px;background:rgba(255,255,255,.8);
}
.control-pill{display:flex;align-items:center;gap:10px}
.control-pill strong{font-size:13px;color:var(--muted)}
.person-name-row{display:grid;gap:6px;margin-top:10px;font-size:12px;font-weight:700;color:var(--muted)}
.icon-btn, .chip-btn{
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding:10px 14px;
  cursor:pointer;
  font-weight:600;
}
.icon-btn.small{padding:8px 12px;min-width:40px}
.chip-btn.active{background:var(--accent-soft);border-color:rgba(10,132,255,.28);color:#0b63c9}
.range-wrap{display:flex;align-items:center;gap:10px;min-width:150px}
.range-wrap input[type="range"]{width:110px}
.editor-shell{display:grid;gap:16px;min-width:0;overflow:hidden}
main.panel.editor-shell{position:relative;overflow:hidden;z-index:1}
aside.panel.stack{position:relative;z-index:3}

.top-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.preview-stage{
  display:grid;justify-items:center;gap:14px;padding:18px;border-radius:26px;
  background:linear-gradient(180deg, rgba(255,255,255,.9), rgba(248,250,252,.72));
  border:1px solid var(--panel-border);
  overflow:hidden;
}
.preview-topbar{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:min(calc(100% - 4px), 760px);
  max-width:100%;
  min-height:40px;
  margin:0 auto;
  padding-right:86px;
  box-sizing:border-box;
  overflow:hidden;
}
.view-toggle{display:flex;gap:10px;align-items:center;justify-content:center;width:100%;margin:0 auto}
.view-toggle input[type="range"]{width:140px}
.view-toggle .slider-label{font-weight:700;color:var(--muted);font-size:13px}.slider-label-btn{appearance:none;border:0;background:transparent;padding:0;cursor:pointer;line-height:1.1}.slider-label-btn.active{color:#8b1e1a}.slider-label-btn:hover{color:#8b1e1a}
.undo-floating{
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-50%);
  max-width:72px;
  min-height:34px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.08);
  background:rgba(255,255,255,.92);
  box-shadow:0 8px 18px rgba(15,23,42,.06);
  font-size:13px;
  font-weight:700;
}
.undo-floating.disabled{opacity:.45;cursor:not-allowed}
.motif-switcher{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:nowrap;
  width:100%;
  max-width:100%;
}
.motif-switcher .chip-btn{
  padding:8px 12px;
  font-size:13px;
  white-space:nowrap;
}
.motif-switcher .chip-btn:disabled{opacity:.45;cursor:not-allowed}
.motif-badge{
  min-width:120px;
  justify-content:center;
  white-space:nowrap;
  padding:8px 12px;
  font-size:13px;
}

.history-actions{position:absolute;right:0;top:50%;transform:translateY(-50%);display:flex;gap:8px;align-items:center}
.history-actions .undo-floating{position:static;transform:none;max-width:none}
.editor-status-row{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;width:min(calc(100% - 4px),760px);max-width:100%}
.editor-status-pill{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.92);border:1px solid var(--line);font-size:12px;font-weight:700;color:#475569}
.editor-manual-save-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 14px;border-radius:999px;border:1px solid rgba(10,132,255,.28);background:rgba(255,255,255,.94);color:#0a58ca;font-size:12px;font-weight:800;line-height:1;cursor:pointer;box-shadow:0 6px 16px rgba(15,23,42,.06);transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.editor-manual-save-btn:hover{transform:translateY(-1px);background:#fff;box-shadow:0 10px 22px rgba(15,23,42,.10)}
.editor-manual-save-btn:active{transform:translateY(0);box-shadow:0 4px 10px rgba(15,23,42,.08)}
.editor-manual-save-btn.saved{border-color:rgba(22,163,74,.28);color:#166534;background:rgba(240,253,244,.96)}
.editor-status-pill.ok{color:#166534;border-color:rgba(22,163,74,.22);background:rgba(240,253,244,.92)}
.editor-status-pill.warn{color:#b45309;border-color:rgba(245,158,11,.28);background:rgba(255,251,235,.95)}
.editor-status-pill.error{color:#b42318;border-color:rgba(148,163,184,.24);background:rgba(254,242,242,.96)}
.editor-diagnostics{display:grid;gap:8px;width:min(calc(100% - 4px),760px);max-width:100%}
.editor-diagnostics:empty{display:none}
.editor-diagnostic-item{padding:11px 14px;border-radius:18px;border:1px solid var(--line);background:rgba(255,255,255,.92);font-size:13px;line-height:1.45;color:#475569;text-align:left}
.editor-diagnostic-item.warn{border-color:rgba(245,158,11,.28);background:rgba(255,251,235,.96)}
.editor-diagnostic-item.error{border-color:rgba(148,163,184,.24);background:rgba(254,242,242,.96)}
.editor-status-pill.ackable{cursor:pointer}
#quickTemplatesGroup{position:relative;z-index:1;isolation:auto;pointer-events:auto}
.preview-quick-templates{
  width:min(calc(100% - 4px),760px);
  max-width:100%;
  margin:0 auto;
}
.preview-quick-templates h3{margin-bottom:10px;font-size:14px}
.preview-quick-templates .note{margin-top:8px;text-align:center}
.template-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;position:relative;z-index:2;pointer-events:auto}
.template-actions .chip-btn{flex:1 1 0;min-width:0;position:relative;z-index:3;pointer-events:auto}
#quickTemplatesGroup .chip-btn{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.surface-element.outside-safe{box-shadow:none}
.surface-element.low-quality{box-shadow:none}
@media (max-width:900px){
  .motif-switcher{
    gap:6px;
    overflow-x:auto;
    justify-content:flex-start;
    padding-bottom:2px;
  }
  .motif-switcher .chip-btn,
  .motif-badge{
    flex:0 0 auto;
    font-size:12px;
    padding:7px 10px;
  }
}
.motif-overview-list{display:grid;gap:10px}
.motif-overview-card{
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  border-radius:16px;
  padding:10px;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(15,23,42,.05);
  display:grid;
  gap:8px;
}
.motif-overview-card.active{border-color:rgba(10,132,255,.9);background:rgba(10,132,255,.12);box-shadow:0 0 0 2px rgba(10,132,255,.28),0 10px 24px rgba(10,132,255,.16)}
.motif-overview-card.flash{animation:motifOverviewFlash 1.1s ease-out}
.motif-overview-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.motif-overview-card-title{font-weight:700;font-size:13px}
.motif-overview-card-status{display:inline-flex;align-items:center;justify-content:center;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.02em;background:#0a84ff;color:#fff;box-shadow:0 3px 10px rgba(10,132,255,.26)}
@keyframes motifOverviewFlash{0%{transform:scale(.985);box-shadow:0 0 0 0 rgba(10,132,255,.38),0 10px 24px rgba(10,132,255,.08)}55%{transform:scale(1.01);box-shadow:0 0 0 4px rgba(10,132,255,.16),0 14px 28px rgba(10,132,255,.18)}100%{transform:scale(1);box-shadow:0 0 0 2px rgba(10,132,255,.28),0 10px 24px rgba(10,132,255,.16)}}
.motif-overview-preview{
  display:grid;
  gap:8px;
}
.motif-overview-side-wrap{display:grid;gap:4px}
.motif-overview-side-label{font-size:11px;font-weight:700;color:var(--muted)}
.motif-overview-side{
  position:relative;
  width:100%;
  aspect-ratio:91 / 61;
  background:#fff;
  border:1px solid #d1d5db;
  border-radius:0;
  overflow:hidden;
}
.motif-overview-side-inner{
  position:absolute;
  left:0;
  top:0;
  overflow:hidden;
  transform-origin:top left;
  pointer-events:none;
}
.motif-overview-side-element{
  position:absolute;
  box-sizing:border-box;
  overflow:hidden;
}
.motif-overview-side-element.text{
  white-space:pre-wrap;
  word-break:normal;
  overflow-wrap:break-word;
  line-break:auto;
  line-height:1.2;
}
.motif-overview-side-element.image img{
  position:absolute;
  display:block;
  max-width:none;
  max-height:none;
}
.motif-overview-side-summary{
  display:none;
}
.motif-overview-side-caption{
  font-size:11px;
  line-height:1.35;
  font-weight:600;
  color:var(--muted);
  white-space:normal;
  word-break:break-word;
  overflow-wrap:anywhere;
}
.motif-overview-footer{display:grid;gap:2px;font-size:12px;line-height:1.4;color:var(--muted);word-break:break-word}.motif-overview-footer-line{display:block}.motif-overview-footer-line strong{font-weight:700}
.card-wrap{
  position:relative;
  width:min(calc(100% - 4px), 760px);
  aspect-ratio:91 / 61;
  border-radius:0;
  background:#e5e7eb;
  box-shadow:0 20px 40px rgba(15,23,42,.12);
  overflow:hidden;
  isolation:isolate;
}
.card-bleed{
  position:absolute;
  left:3.2967%;
  top:4.9180%;
  width:93.4066%;
  height:90.1639%;
  border:2px dashed rgba(220,38,38,.95);
  border-radius:0;
  pointer-events:none;
  box-sizing:border-box;
  z-index:6;
  display:block;
}
.card-safe{
  position:absolute;
  inset:0;
  border:2px solid rgba(59,130,246,.95);
  border-radius:0;
  pointer-events:none;
  box-sizing:border-box;
  z-index:4;
}
.card-surface{
  position:absolute; inset:0;
  overflow:hidden;
  background:#ffffff;
}
.card-mm-grid{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:2;
  opacity:0;
  transition:opacity .18s ease;
  background-image:
    repeating-linear-gradient(to right, rgba(15,23,42,.14) 0, rgba(15,23,42,.14) 1px, transparent 1px, transparent var(--mm-grid-step-x, 1%)),
    repeating-linear-gradient(to bottom, rgba(15,23,42,.14) 0, rgba(15,23,42,.14) 1px, transparent 1px, transparent var(--mm-grid-step-y, 1%));
}
.card-wrap.show-mm-grid .card-mm-grid{
  opacity:1;
}
.card-hint{font-size:13px;color:#8b1e1a;text-align:center;max-width:920px;line-height:1.45}
.surface-element{
  position:absolute;
  min-width:24px;
  min-height:24px;
  cursor:move;
  user-select:none;
  touch-action:none;
}
.surface-element.selected{outline:none; border-radius:0}
.surface-element.multi-selected{box-shadow:0 0 0 2px rgba(138,164,255,.72), 0 0 0 5px rgba(138,164,255,.18)}
.surface-selection-box{position:absolute;border:1px dashed rgba(138,164,255,.95);background:rgba(138,164,255,.16);pointer-events:none;z-index:25;display:none}
.card-surface.marquee-selecting{cursor:crosshair}
.surface-element.text-el{
  display:block;
  box-sizing:border-box;
  padding:var(--text-box-padding-y, 0.4mm) var(--text-box-padding-x, 0.4mm);
  white-space:pre-wrap;
  word-break:keep-all;
  overflow-wrap:break-word;
  overflow:hidden;
  line-break:auto;
  resize:none;
}
.surface-element.text-el.selected{
  box-shadow:0 0 0 1px #2680ff;
  outline:none;
  border-radius:0;
  overflow:hidden;
}
.surface-element.text-el .resize-handle{
  display:none;
  width:7px;
  height:7px;
  border-radius:999px;
  background:#ffffff;
  border:1px solid #2680ff;
  box-shadow:none;
}
.surface-element.text-el .resize-handle.nw{left:0;top:0}
.surface-element.text-el .resize-handle.n{left:50%;top:0;transform:translateX(-50%)}
.surface-element.text-el .resize-handle.ne{right:0;top:0}
.surface-element.text-el .resize-handle.e{right:0;top:50%;transform:translateY(-50%)}
.surface-element.text-el .resize-handle.se{right:0;bottom:0}
.surface-element.text-el .resize-handle.s{left:50%;bottom:0;transform:translateX(-50%)}
.surface-element.text-el .resize-handle.sw{left:0;bottom:0}
.surface-element.text-el .resize-handle.w{left:0;top:50%;transform:translateY(-50%)}
.surface-element.text-el .resize-handle.rotate{
  width:20px;
  height:20px;
  right:2px;
  top:2px;
  background:transparent;
  border:0;
  color:#111111;
  font-size:0;
  box-shadow:none;
}
.surface-element.text-el .resize-handle.rotate::before{
  content:"";
  width:18px;
  height:18px;
  display:block;
  background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M50 16A24 24 0 1 0 54 44' fill='none' stroke='%23111111' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M50 16l-2 15 14-5z' fill='%23111111'/%3E%3C/svg%3E");
}
.surface-element.text-el.selected .resize-handle{
  display:block;
}
.surface-element.text-el.editing{
  cursor:text;
  user-select:text;
  -webkit-user-select:text;
  caret-color:#0a84ff;
  box-shadow:0 0 0 1px #2680ff;
  outline:none;
  border-radius:0;
  background:transparent;
  overflow:hidden;
  -webkit-user-modify:read-write;
}
.surface-element.text-el[contenteditable="true"]{
  -webkit-user-modify:read-write;
}
/* Aktives Textfeld: native Browser-Textauswahl darf nicht von den globalen
   Drag-/Kopierschutzregeln des Gestalters blockiert werden. */
.surface-element.text-el.editing,
.surface-element.text-el.editing *:not(.resize-handle),
.surface-element.text-el[contenteditable="true"],
.surface-element.text-el[contenteditable="true"] *:not(.resize-handle){
  -webkit-user-select:text !important;
  user-select:text !important;
  touch-action:auto !important;
  cursor:text !important;
}
/* Im Text-Bearbeitungsmodus duerfen die Resize-Griffe nicht ueber den
   ersten/letzten Zeichen liegen und dort die native Textauswahl abfangen. */
.surface-element.text-el.editing .resize-handle,
.surface-element.text-el[contenteditable="true"] .resize-handle{
  display:none !important;
  pointer-events:none !important;
}
/* Persistente Textmarkierung: bleibt sichtbar, auch wenn die Farbtafel kurz den Fokus erhaelt. */
::highlight(vc-text-editor-selection){
  background:rgba(38,128,255,.42);
  color:inherit;
}
.surface-element.text-el.editing::selection,
.surface-element.text-el.editing *::selection,
.surface-element.text-el[contenteditable="true"]::selection,
.surface-element.text-el[contenteditable="true"] *::selection{
  background:rgba(38,128,255,.42);
  color:inherit;
}
.surface-element.text-el:focus{outline:none}
.card-wrap .card-surface .surface-element.text-el{
  font-synthesis:none;
  text-rendering:geometricPrecision;
  -webkit-font-smoothing:antialiased;
}
.card-wrap .card-surface .surface-element.text-el,
.card-wrap .card-surface .surface-element.text-el *{
  text-transform:none;
}
.surface-element img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.editor-footer{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;flex-wrap:nowrap;margin-top:0}
.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 12px;border-radius:999px;background:#fff;border:1px solid var(--line);font-weight:600;font-size:13px;
}
.kpi-list{display:grid;gap:12px}
.kpi{
  border:1px solid var(--line);
  background:transparent;
  border-radius:20px;
  padding:16px;
}
.kpi h4{margin:0 0 10px;font-size:14px;color:#0f172a}
.price-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--line)}
.price-row:first-child{border-top:0;padding-top:0}
.price-row strong{white-space:nowrap}
.note, .info-box{
  color:var(--muted);font-size:13px;
  padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.76);border:1px solid var(--line);
}
.price-showcase{
  padding:14px 14px 16px;
  border-radius:20px;
  background:rgba(255,255,255,.84);
  border:1px solid var(--line);
  display:grid;
  gap:14px;
}
.price-showcase-title{
  margin:0;
  font-size:22px;
  line-height:1.1;
  color:#8b1e1a;
  letter-spacing:-.02em;
}
.price-showcase-block{display:grid;gap:10px}
.price-showcase-block-title{
  margin:0;
  font-size:15px;
  line-height:1.2;
  color:#8b1e1a;
  font-weight:800;
}
.price-showcase-subtitle{
  margin:0;
  font-size:13px;
  color:#8b1e1a;
  font-weight:700;
}
.price-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.price-option{
  appearance:none;
  width:100%;
  border:1px solid #d8dadd;
  background:#f4f5f7;
  color:#4b5563;
  border-radius:0;
  padding:11px 10px;
  font:inherit;
  font-weight:700;
  cursor:pointer;
  box-shadow:none;
  transition:border-color .16s ease, color .16s ease, background .16s ease, transform .16s ease;
}
.price-option:hover{
  border-color:#d29a43;
  color:#8f5b12;
  background:#fffaf2;
}
.price-option.active{
  border-color:#e4a347;
  background:#fff7ed;
  color:#d1831a;
}
.price-option .qty{font-weight:800}
.price-option .sep{opacity:.55;padding:0 4px;border:0;margin:0}
.price-option .amt{white-space:nowrap}
.big-price{font-size:28px;font-weight:800;letter-spacing:-.02em}
.btn-row{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;width:100%}
.btn-row.checkout-action-row{display:grid;grid-template-columns:1fr;gap:10px;width:100%}
.btn-row.checkout-action-row .btn{width:100%;min-width:0}
.btn{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  border:0;
  border-radius:999px;
  padding:0 16px;
  cursor:pointer;
  font-size:15px;
  font-weight:600;
  letter-spacing:-.01em;
  background:#fff;
  color:var(--text);
  box-shadow:0 8px 18px rgba(15,23,42,.06);
}
.btn.primary{background:linear-gradient(180deg, #1591ff, #0a84ff);color:#fff}
.btn.ghost{border:1px solid var(--line)}
.btn.danger{color:#b42318;background:#fff5f5;border:1px solid #e2e8f0}
#enableMultiMotifBtn{width:auto;max-width:100%;justify-content:center;text-align:center;font-size:14px;line-height:1;white-space:nowrap;flex:0 0 auto}
hr.sep{border:0;border-top:1px solid var(--line);margin:2px 0}
.modal{position:fixed;inset:0;background:rgba(15,23,42,.48);display:none;align-items:center;justify-content:center;padding:20px;z-index:3000}
.modal.open{display:flex}
.modal-card{max-width:640px;width:100%;background:#fff;border-radius:28px;padding:24px;box-shadow:0 40px 90px rgba(15,23,42,.28)}
.modal-card h3{margin:0 0 8px;font-size:24px}
.modal-card p{margin:0 0 12px}
.upload-hint-modal{background:rgba(15,23,42,.32);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);z-index:3600}
.upload-hint-card{max-width:430px;width:min(430px,calc(100vw - 36px));padding:20px 22px 18px;border-radius:26px;background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(248,250,252,.94));border:1px solid rgba(255,255,255,.74);box-shadow:0 28px 70px rgba(15,23,42,.28),inset 0 1px 0 rgba(255,255,255,.96);text-align:center;color:#111827}
.upload-hint-icon{width:34px;height:34px;margin:0 auto 10px;border-radius:999px;background:linear-gradient(180deg,#ff5f57,#dc2626);box-shadow:0 10px 22px rgba(220,38,38,.24);display:grid;place-items:center;color:#fff;font-size:20px;font-weight:900;line-height:1}
.upload-hint-card h3{margin:0 0 8px;font-size:19px;line-height:1.2;color:#111827}
.upload-hint-card p{margin:0 auto 10px;max-width:350px;font-size:14px;line-height:1.45;color:#334155}
.upload-hint-card .upload-hint-muted{font-size:12px;color:#64748b}
.upload-hint-card .btn-row{justify-content:center;margin-top:12px}
.submit-progress-card{max-width:420px;text-align:center;padding:28px 24px 24px;background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));border:1px solid rgba(255,255,255,.78);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.submit-progress-card h3{margin-bottom:10px;color:#0f172a}
.submit-progress-card p{color:#475569;margin:0}
.submit-progress-close{position:absolute;right:14px;top:12px;width:32px;height:32px;border:0;border-radius:999px;background:rgba(15,23,42,.08);color:#334155;font-size:22px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.submit-progress-close:hover{background:rgba(15,23,42,.14)}
.submit-progress-spinner{width:52px;height:52px;margin:0 auto 16px;border-radius:999px;border:4px solid rgba(10,132,255,.16);border-top-color:#0a84ff;animation:submitSpinner .9s linear infinite;box-shadow:0 8px 24px rgba(10,132,255,.12)}
.resize-mode-note{margin-top:2px;font-size:12px;color:rgba(255,255,255,.96);line-height:1.45}
.template-tip-bubble{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;max-width:280px;min-height:54px;margin:0 0 10px;padding:8px 14px 10px;border-radius:30px;background:linear-gradient(180deg,rgba(255,255,255,.99),rgba(248,248,248,.97));border:2px solid rgba(184,28,28,.88);box-shadow:0 12px 28px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.98);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);color:#111827;overflow:visible}
.template-tip-bubble::after{content:"";position:absolute;left:24px;bottom:-7px;width:14px;height:14px;background:linear-gradient(180deg,rgba(255,255,255,.99),rgba(248,248,248,.97));border-right:2px solid rgba(184,28,28,.88);border-bottom:2px solid rgba(184,28,28,.88);transform:rotate(45deg);box-shadow:6px 6px 12px rgba(0,0,0,.06)}
.template-tip-bubble.hidden{display:none!important}
.template-tip-label{display:block;position:relative;z-index:2;width:88%;margin:0 auto;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;text-align:left;color:#b91c1c!important;opacity:1!important;visibility:visible!important}
.template-tip-text{display:block;position:relative;z-index:2;width:88%;margin:0 auto;font-size:14px;line-height:1.35;font-weight:600;text-align:left;color:#111827!important;opacity:1!important;visibility:visible!important}
.toolbar-tip-bubble{max-width:300px;margin:0 auto -2px}
.toolbar-tip-bubble::after{left:50%;transform:translateX(-50%) rotate(45deg)}
.template-tip-close{position:absolute;right:12px;top:8px;width:22px;height:22px;border:0;border-radius:999px;background:transparent;color:#64748b;font-size:18px;line-height:1;cursor:pointer;z-index:3;display:flex;align-items:center;justify-content:center;padding:0}
.template-tip-close:hover{background:rgba(15,23,42,.08);color:#111827}
.undo-redo-tip-bubble{justify-self:end;max-width:300px;margin:0 0 -4px auto;padding-right:34px}
.undo-redo-tip-bubble::after{left:auto;right:42px;transform:rotate(45deg)}
@keyframes submitSpinner{to{transform:rotate(360deg)}}

.imposition-illustration{
  margin:14px 0 16px;
  text-align:center;
}
.imposition-illustration img{
  display:block;
  width:100%;
  max-width:560px;
  height:auto;
  margin:0 auto;
  border-radius:18px;
  box-shadow:0 10px 26px rgba(15,23,42,.08);
}

.muted{color:var(--muted)}
.error{border-left:4px solid var(--danger);background:#fff;padding:14px 18px;border-radius:16px;margin-bottom:18px}
.hidden{display:none !important}
#cardWrap .card-bleed{display:block !important}

.card-safe-inner{
  position:absolute;
  left:4.9451%;
  top:7.3770%;
  width:90.1099%;
  height:85.2459%;
  border:2px dashed rgba(22,163,74,.95);
  border-radius:0;
  pointer-events:none;
  box-sizing:border-box;
  z-index:7;
  display:block !important;
}
.card-wrap .card-safe,
.card-wrap .card-safe-inner,
.card-wrap .card-bleed{
  opacity:1;
  transition:opacity .18s ease;
}
.card-wrap.hide-guides .card-safe,
.card-wrap.hide-guides .card-safe-inner,
.card-wrap.hide-guides .card-bleed{
  opacity:0;
}
.snap-line{
  position:absolute;
  background:#ff00c8 !important;
  pointer-events:none;
  z-index:2147483000 !important;
  opacity:0;
  display:block !important;
  visibility:hidden;
  transition:none;
  box-shadow:none;
  mix-blend-mode:normal;
}
.card-wrap .snap-line.show,
.card-wrap.smart-guides-visible .snap-line.show{
  opacity:1 !important;
  visibility:visible !important;
  display:block !important;
}
.snap-line.smart{
  background:#ff00c8 !important;
  box-shadow:none;
}
.snap-line.smart.vertical,
.snap-line.vertical{
  top:0;
  bottom:0;
  width:1px;
  min-width:1px;
  transform:translateX(-0.5px);
}
.snap-line.smart.horizontal,
.snap-line.horizontal{
  left:0;
  right:0;
  height:1px;
  min-height:1px;
  transform:translateY(-0.5px);
}
.mini-preview-panel{
  width:min(calc(100% - 4px),760px);
  display:grid;
  gap:8px;
  margin:2px auto 0;
}
.mini-preview-title{
  font-size:12px;
  font-weight:700;
  color:#64748b;
  text-align:center;
  letter-spacing:-.01em;
}
.mini-preview-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.preview-topbar .view-toggle.hidden{
  display:none !important;
}
.mini-preview-grid.single-side{
  grid-template-columns:minmax(0,min(390px,100%));
  justify-content:center;
}
.mini-preview-grid.single-side .mini-preview-card{
  width:100%;
  justify-self:center;
}
.mini-preview-card{
  border:1px solid rgba(15,23,42,.08);
  background:rgba(255,255,255,.88);
  border-radius:18px;
  padding:10px;
  box-shadow:0 8px 18px rgba(15,23,42,.05);
}
.mini-preview-card.active{
  border-color:rgba(10,132,255,.28);
  box-shadow:0 10px 22px rgba(10,132,255,.10);
}
.mini-preview-card .motif-overview-side{
  width:100%;
}
.mini-preview-label{
  margin:0 0 8px;
  font-size:12px;
  font-weight:700;
  color:#475569;
  text-align:center;
}
.mini-preview-clone-viewport{
  position:relative;
  width:100%;
  aspect-ratio:91 / 61;
  overflow:hidden;
  border:0;
  border-radius:0;
  box-shadow:0 14px 30px rgba(15,23,42,.12);
  background:#e5e7eb;
}
.mini-preview-clone-surface{
  position:absolute;
  left:0;
  top:0;
  transform-origin:top left;
  overflow:hidden;
  pointer-events:none;
}
.mini-preview-clone-surface .resize-handle,
.mini-preview-clone-surface .snap-line,
.mini-preview-clone-surface .card-mm-grid,
.mini-preview-clone-surface .card-safe,
.mini-preview-clone-surface .card-safe-inner,
.mini-preview-clone-surface .card-bleed{
  display:none !important;
}
.mini-preview-clone-surface .surface-element,
.mini-preview-clone-surface .image-el{
  pointer-events:none !important;
}
.mini-preview-clone-surface .surface-element.selected,
.mini-preview-clone-surface .image-el.selected,
.mini-preview-clone-surface .surface-element.low-quality,
.mini-preview-clone-surface .surface-element.outside-safe{
  box-shadow:none !important;
  outline:none !important;
}
.action-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
#insertQrCodeBtn{
  grid-column:1 / -1;
  width:100%;
}

@media (max-width:1200px){
  .grid{grid-template-columns:1fr}
}

.image-el{
  overflow:visible;
  background:transparent;
  min-width:0;
  min-height:0;
}
.image-el .image-frame{
  position:absolute;
  inset:0;
  overflow:hidden;
}
.image-el .image-frame img{
  display:block;
  position:absolute;
  width:100%;
  height:100%;
  object-fit:fill;
  object-position:left top;
}
.image-el.selected{
  outline:none;
  outline-offset:0;
  border-radius:0;
  box-shadow:0 0 0 2px rgba(10,132,255,.45);
}
.resize-handle{
  position:absolute;
  width:12px;
  height:12px;
  border-radius:999px;
  background:#ffffff;
  border:1.5px solid #0a84ff;
  box-shadow:0 2px 8px rgba(15,23,42,.18);
  z-index:8;
}
.resize-handle.nw{left:-6px;top:-6px;cursor:nwse-resize}
.resize-handle.n{left:50%;top:-6px;transform:translateX(-50%);cursor:ns-resize}
.resize-handle.ne{right:-6px;top:-6px;cursor:nesw-resize}
.resize-handle.e{right:-6px;top:50%;transform:translateY(-50%);cursor:ew-resize}
.resize-handle.se{right:-6px;bottom:-6px;cursor:nwse-resize}
.resize-handle.s{left:50%;bottom:-6px;transform:translateX(-50%);cursor:ns-resize}
.resize-handle.sw{left:-6px;bottom:-6px;cursor:nesw-resize}
.resize-handle.w{left:-6px;top:50%;transform:translateY(-50%);cursor:ew-resize}
.resize-handle.crop{left:50%;top:50%;transform:translate(-50%,-50%);cursor:grab;background:rgba(255,255,255,.98);width:14px;height:14px}
.resize-handle.crop:active{cursor:grabbing}
.resize-handle.rotate{right:-18px;top:-18px;width:18px;height:18px;cursor:grab;background:#0a84ff;border-color:#ffffff;display:flex;align-items:center;justify-content:center;color:#ffffff;font-size:11px;font-weight:700}
.resize-handle.rotate::before{content:"↻";line-height:1}
.text-toolbar-stage{display:grid;gap:8px;margin-top:18px;width:100%;position:relative;z-index:2}
.text-toolbar-card{width:min(calc(100% - 4px),900px);margin:0 auto;padding:14px 16px;border-radius:24px;background:linear-gradient(180deg, rgba(60,60,60,.96), rgba(43,43,43,.95));border:1px solid rgba(255,255,255,.14);box-shadow:0 14px 32px rgba(15,23,42,.18);box-sizing:border-box;overflow:hidden}
.text-toolbar-row{display:flex;align-items:center;justify-content:center;gap:10px 14px;flex-wrap:wrap}
.text-toolbar-row.no-wrap{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;justify-content:center;padding-bottom:2px}
.text-toolbar-row + .text-toolbar-row{margin-top:10px}
.apple-pill{display:flex;align-items:center;gap:8px;color:#475569;font-weight:700;min-width:0;font-size:13px;padding:4px 6px;border-radius:16px;background:rgba(255,255,255,.7);border:1px solid rgba(15,23,42,.05)}
.apple-pill strong{font-size:13px;letter-spacing:-.01em;color:#475569}
.apple-pill .select{width:auto;min-width:190px;padding:10px 14px;border-radius:16px}
.apple-pill .icon-btn.small{min-width:34px;padding:7px 10px}
.color-swatch{width:40px;height:34px;border:0;padding:0;background:transparent;border-radius:0;box-shadow:none;appearance:none;-webkit-appearance:none;cursor:pointer}.color-swatch::-webkit-color-swatch-wrapper{padding:0}.color-swatch::-webkit-color-swatch{border:1px solid var(--line);border-radius:10px}.color-swatch::-moz-color-swatch{border:1px solid var(--line);border-radius:10px}
.text-toolbar-card .chip-btn{padding:9px 14px;font-size:12px;border-radius:999px;box-shadow:0 4px 12px rgba(15,23,42,.05)}
.text-toolbar-card .chip-btn.disabled{opacity:.45;cursor:not-allowed}
.text-toolbar-card .range-wrap{min-width:122px;gap:8px}
.text-toolbar-card .range-wrap input[type="range"]{width:96px}
.text-toolbar-note{font-size:11px;color:#64748b;text-align:center;max-width:900px;margin:6px auto 0;line-height:1.4}
.text-toolbar-media{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding-top:4px}
.image-scale-pill{min-width:0}

.apple-stepper-pill{
  padding:9px 10px;
  border-radius:18px;
  color:#f8fafc;
  background:linear-gradient(180deg,rgba(88,91,98,.96),rgba(48,51,58,.98));
  border:1px solid rgba(255,255,255,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 12px 26px rgba(0,0,0,.18);
}
.apple-stepper-pill strong{color:#ffffff;letter-spacing:-.01em}
.apple-stepper-controls{display:inline-flex;align-items:center;gap:1mm;margin-left:auto;padding:3px;border-radius:14px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);box-shadow:inset 0 1px 3px rgba(0,0,0,.20)}
.apple-stepper-value{min-width:58px;height:30px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;color:#ffffff;font-size:13px;font-weight:800;background:rgba(15,23,42,.30);border:1px solid rgba(255,255,255,.12)}
.apple-stepper-btn{width:30px!important;height:30px!important;min-width:30px!important;border-radius:9px!important;padding:0!important;margin:0!important;font-size:17px!important;line-height:1!important;color:#fff!important;background:linear-gradient(180deg,rgba(123,127,136,.98),rgba(66,70,79,.98))!important;border:1px solid rgba(255,255,255,.22)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 5px 13px rgba(0,0,0,.20)!important}
.apple-stepper-btn:hover{background:linear-gradient(180deg,rgba(145,149,158,.98),rgba(77,81,91,.98))!important}
.selected-shape-color-row{padding:9px 10px;border-radius:18px;color:#f8fafc;background:linear-gradient(180deg,rgba(88,91,98,.96),rgba(48,51,58,.98));border:1px solid rgba(255,255,255,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 12px 26px rgba(0,0,0,.16)}
.selected-shape-color-row strong{color:#ffffff}
.selected-shape-color-row .color-swatch{width:46px;height:34px;border-radius:11px;background:rgba(255,255,255,.10);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 5px 12px rgba(0,0,0,.18)}
.selected-shape-color-row .color-swatch::-webkit-color-swatch{border-radius:9px;border:1px solid rgba(255,255,255,.24)}
.selected-shape-color-row .color-swatch::-moz-color-swatch{border-radius:9px;border:1px solid rgba(255,255,255,.24)}

/* Korrektur Textbedienfeld: kein Überlagern von Größe/Schrift, Schrift bleibt lesbar. */
#textEditorGroup .font-main-row{
  grid-template-columns:1fr !important;
}
#textEditorGroup .font-main-row .apple-pill{
  min-height:48px;
  box-sizing:border-box;
  overflow:hidden;
}
#textEditorGroup .font-main-row .apple-stepper-pill{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
}
#textEditorGroup .font-main-row .apple-stepper-controls{
  flex:0 0 auto;
  margin-left:12px;
}
#textEditorGroup .font-main-row .apple-stepper-value{
  min-width:46px !important;
  padding:0 8px;
  box-sizing:border-box;
}
#textEditorGroup .font-main-row .apple-stepper-btn{
  width:28px !important;
  height:28px !important;
  min-width:28px !important;
}
#textEditorGroup .font-main-row .apple-pill strong{
  flex:0 0 auto;
  white-space:nowrap;
}
#textEditorGroup .font-main-row .apple-pill .select{
  min-width:0 !important;
  width:100% !important;
}
.compact-actions{max-width:860px;margin:0 auto;display:grid;gap:12px}
.compact-actions .chip-btn{background:rgba(255,255,255,.92)}
.toolbar-action-row{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:12px}
.toolbar-group-label{font-size:12px;font-weight:800;color:#64748b;padding:0 2px;white-space:nowrap;text-align:right}
.toolbar-group-buttons{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-start;min-width:0}
.toolbar-insert-row{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}
.canvas-quick-actions-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2mm;width:min(calc(100% - 4px), 760px);max-width:760px;margin:2mm auto;align-items:center}
.canvas-quick-actions-row + .text-toolbar-stage{margin-top:0}
.canvas-quick-actions-row .toolbar-main-btn{width:100%;min-width:0 !important;max-width:none !important;white-space:nowrap;padding-left:4px !important;padding-right:4px !important;font-size:7px !important;line-height:1.1}
.toolbar-main-btn{min-height:28px;padding:0 8px !important;font-size:11px !important;font-weight:700;min-width:110px;text-align:center}
#deleteElementBtn.toolbar-main-btn{min-width:96px;white-space:nowrap}
.editor-footer .badge,.editor-footer .btn{min-height:28px;padding:0 8px;font-size:11px;font-weight:700}.editor-footer .btn{min-width:110px;justify-content:center}
.editor-footer .badge{justify-content:center;min-width:110px}
.sidebar-editor-group{display:grid;gap:10px}
.sidebar-editor-group .toolbar-group-label{text-align:left;font-size:15px;font-weight:800;color:#1f2937;padding:0}
.sidebar-editor-group .toolbar-group-buttons{gap:10px}
.sidebar-editor-group + .sidebar-editor-group{margin-top:6px}
.sidebar-pill-stack{display:grid;gap:10px}
.sidebar-two-up{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sidebar-two-up.metric-stack{grid-template-columns:1fr}
.sidebar-two-up.keep-inline-mobile{grid-template-columns:repeat(2,minmax(0,1fr))}
.toolbar-group-buttons.keep-two-mobile{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.keep-inline-mobile .apple-pill,.keep-inline-mobile .metric-pill,.keep-two-mobile .chip-btn{min-width:0}
.sidebar-apple-pill{width:100%;justify-content:space-between}
.sidebar-apple-pill .select{flex:1 1 auto;min-width:0;width:100%}
.sidebar-apple-pill .range-wrap{flex:1 1 auto;min-width:0;justify-content:flex-end}
.sidebar-apple-pill .range-wrap input[type="range"]{width:100%}
.ornament-flyout{display:grid;gap:10px;padding:12px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.92);box-shadow:0 10px 24px rgba(15,23,42,.06)}
.ornament-flyout.hidden{display:none !important}
.ornament-flyout-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ornament-flyout-head strong{font-size:13px;color:#475569}
.ornament-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ornament-item{appearance:none;border:1px solid var(--line);background:#fff;border-radius:14px;padding:10px;display:grid;gap:8px;cursor:pointer;box-shadow:0 4px 12px rgba(15,23,42,.04);transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease}
.ornament-item:hover{border-color:rgba(10,132,255,.28);transform:translateY(-1px);box-shadow:0 10px 18px rgba(15,23,42,.08)}
.ornament-item-preview{width:100%;height:38px;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#fff,#f8fafc);border-radius:10px;overflow:hidden}
.ornament-item-preview img{max-width:100%;max-height:30px;display:block}
.ornament-item-label{font-size:11px;font-weight:700;color:#64748b;text-align:center;line-height:1.2}
.ornament-note{font-size:12px;color:#64748b;line-height:1.4}
.icon-flyout{max-height:560px;overflow:auto}
.icon-color-row{margin:0 0 2px}
.icon-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.icon-category-title{grid-column:1/-1;margin:8px 0 0;padding:7px 2px 2px;font-size:12px;font-weight:900;color:#64748b;letter-spacing:.01em}
.icon-item .ornament-item-preview{height:42px}
.icon-item .ornament-item-preview img{max-width:36px;max-height:36px}
.shape-flyout{max-height:560px;overflow:auto}
.shape-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.shape-item .ornament-item-preview{height:46px}
.shape-item .ornament-item-preview img{max-width:44px;max-height:44px}
.toolbar-insert-card{padding:14px 16px}
.ui-hit-area,.ui-hit-area *{pointer-events:auto !important}
.panel,.editor-shell,aside.panel.stack{position:relative}
.preview-stage{overflow:hidden;z-index:1;width:100%;max-width:100%}
aside.panel.stack{z-index:5}
.card-wrap{z-index:1}
.card-hint{position:relative;z-index:1}

.gallery-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;max-width:1560px;margin:22px auto;padding:0 24px}.gallery-card{display:block;background:rgba(255,255,255,.72);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid var(--panel-border);border-radius:20px;box-shadow:var(--shadow);padding:12px;text-decoration:none}.gallery-card img{display:block;width:100%;height:auto;border:1px solid #d4d4d8;border-radius:12px;background:#fff}.gallery-title{max-width:1560px;margin:0 auto;padding:0 24px;color:#475569;font-size:16px;font-weight:700}@media (max-width:1200px){.gallery-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:640px){.gallery-strip{grid-template-columns:1fr}}

@media (max-width:900px){
  .preview-topbar{justify-content:flex-start;padding-right:0;gap:12px;flex-wrap:wrap;width:100%}
  .view-toggle{justify-content:flex-start;width:auto}

  .history-actions{position:static;transform:none;width:100%;justify-content:flex-start}
  .undo-floating{position:static;transform:none}
  .text-toolbar-card{width:100%;padding:14px 14px 16px;border-radius:22px}
  .text-toolbar-row,.text-toolbar-media{justify-content:flex-start;gap:10px 12px}
  .text-toolbar-row.no-wrap{justify-content:flex-start;overflow-x:auto}
  .text-toolbar-row + .text-toolbar-row{margin-top:10px}
  .apple-pill{gap:8px;font-size:12px}
  .apple-pill .select{min-width:150px}
  .text-toolbar-card .range-wrap{min-width:110px}
  .text-toolbar-card .range-wrap input[type="range"]{width:88px}
}

@media (max-width:640px){
  .page{padding:12px}
  .panel{padding:16px}
  .preview-stage{padding:12px}
  .preview-topbar,
  .card-wrap,
  .mini-preview-panel,
  .editor-status-row,
  .editor-diagnostics,
  .text-toolbar-card{width:100%}
  .template-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .template-actions .chip-btn{width:100%}
  .mini-preview-grid{grid-template-columns:1fr}
  .surface-element.text-el{--text-box-padding-x:0.4mm;--text-box-padding-y:0.4mm}
}

body.kopierschutz-aktiv,
body.kopierschutz-aktiv * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
body.kopierschutz-aktiv input,
body.kopierschutz-aktiv textarea,
body.kopierschutz-aktiv select,
body.kopierschutz-aktiv option,
body.kopierschutz-aktiv [contenteditable="true"],
body.kopierschutz-aktiv .text-el.editing,
body.kopierschutz-aktiv .text-el.editing * {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
body.kopierschutz-aktiv button,
body.kopierschutz-aktiv button *,
body.kopierschutz-aktiv [role="button"],
body.kopierschutz-aktiv [role="button"] * {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}



/* --- Dark UI override inspired by the reference panel --- */
:root{
  --bg:#2f2f2f;
  --panel:rgba(48,48,48,.86);
  --panel-border:rgba(255,255,255,.08);
  --text:#f3f4f6;
  --muted:#b7bec8;
  --line:rgba(255,255,255,.10);
  --accent:#8aa4ff;
  --accent-soft:rgba(138,164,255,.18);
  --shadow:0 22px 60px rgba(0,0,0,.34);
}
body{
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.05), transparent 24%),
    linear-gradient(180deg, #4a4a4a 0%, #2f2f2f 42%, #232323 100%);
}
.panel{
  background:var(--panel);
  border:1px solid var(--panel-border);
  box-shadow:var(--shadow);
}
form.grid > aside.panel.stack:first-of-type{
  background:linear-gradient(180deg, rgba(64,64,64,.96), rgba(45,45,45,.96));
  border-color:rgba(255,255,255,.08);
}
.preview-stage{
  background:linear-gradient(180deg, rgba(64,64,64,.92), rgba(42,42,42,.92));
  border-color:rgba(255,255,255,.08);
}
.card-wrap{background:#1f1f1f}
.h-title,
.group h3,
.toolbar-group-label,
.price-showcase-title,
.price-showcase-block-title,
.price-showcase-subtitle,
.big-price{
  color:var(--text);
}
.sub,
.micro-copy,
.note,
.info-box,
.mini-preview-title,
.mini-preview-label,
.motif-overview-footer,
.editor-diagnostic-item,
.card-hint,
.price-row,
.price-option,
.badge,
.apple-pill,
.control-pill strong{
  color:var(--muted);
}
.note,
.info-box,
.badge,
.control-bar,
.apple-pill,
.price-showcase,
.motif-overview-card,
.mini-preview-card,
.gallery-card,
.editor-status-pill,
.editor-diagnostic-item,
.select,
.input,
.textarea{
  background:rgba(255,255,255,.04);
  border-color:rgba(255,255,255,.10);
  color:var(--text);
}
.segmented label,
.icon-btn,
.chip-btn,
.btn,
.price-option{
  background:#4a4a4a;
  border:1px solid rgba(255,255,255,.12);
  color:var(--text);
  box-shadow:none;
}
.segmented input:checked + label,
.chip-btn.active,
.price-option.active{
  background:rgba(138,164,255,.20);
  border-color:rgba(138,164,255,.45);
  color:#ffffff;
}
.btn.primary{
  background:linear-gradient(180deg, #6f8fff, #4f73ff);
  color:#fff;
}
.btn.danger{
  background:#5a2d2d;
  border-color:#7c3c3c;
  color:#ffd9d9;
}
.group h3{color:#f3f4f6}
.select option{background:#2f2f2f;color:#f3f4f6}
.color-swatch::-webkit-color-swatch,

.color-swatch::-moz-color-swatch{border:1px solid rgba(255,255,255,.12)}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.sidebar-editor-group .apple-pill,
.sidebar-editor-group .apple-pill strong,
.sidebar-editor-group .apple-pill span,
.sidebar-editor-group .toolbar-group-label{
  color:#f3f4f6;
}
.sidebar-editor-group .range-wrap span,
#fontSizeLabel,
#lineHeightLabel,
#letterSpacingLabel,
#imageScaleLabel,
#imageScaleXLabel,
#imageScaleYLabel{
  color:#f3f4f6;
  font-weight:700;
}
.metric-pill{
  gap:10px;
}
.metric-icon{
  position:relative;
  flex:0 0 28px;
  width:28px;
  height:24px;
  border-radius:7px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
}
.metric-icon::before,
.metric-icon::after{
  content:"";
  position:absolute;
}
.leading-icon::before{
  left:8px;
  top:5px;
  width:10px;
  height:14px;
  background:
    linear-gradient(#f3f4f6,#f3f4f6) left 0 top 1px / 10px 1.5px no-repeat,
    linear-gradient(#f3f4f6,#f3f4f6) left 0 center / 10px 1.5px no-repeat,
    linear-gradient(#f3f4f6,#f3f4f6) left 0 bottom 1px / 10px 1.5px no-repeat;
  opacity:.95;
}
.leading-icon::after{
  left:4px;
  top:4px;
  width:3px;
  height:16px;
  border-top:4px solid #f3f4f6;
  border-bottom:4px solid #f3f4f6;
  border-left:1.5px solid #f3f4f6;
  border-right:1.5px solid #f3f4f6;
  clip-path:polygon(50% 0,100% 18%,66% 18%,66% 82%,100% 82%,50% 100%,0 82%,34% 82%,34% 18%,0 18%);
  background:transparent;
}
.tracking-icon::before{
  left:5px;
  top:6px;
  width:18px;
  height:12px;
  background:
    linear-gradient(#f3f4f6,#f3f4f6) left 5px top 0 / 8px 1.5px no-repeat,
    linear-gradient(#f3f4f6,#f3f4f6) left 5px bottom 0 / 8px 1.5px no-repeat;
  opacity:.95;
}
.tracking-icon::after{
  left:4px;
  top:5px;
  width:20px;
  height:14px;
  background:
    linear-gradient(135deg, transparent 45%, #f3f4f6 46%, #f3f4f6 54%, transparent 55%) left center / 5px 6px no-repeat,
    linear-gradient(225deg, transparent 45%, #f3f4f6 46%, #f3f4f6 54%, transparent 55%) left center / 5px 6px no-repeat,
    linear-gradient(#f3f4f6,#f3f4f6) center center / 10px 1.5px no-repeat,
    linear-gradient(315deg, transparent 45%, #f3f4f6 46%, #f3f4f6 54%, transparent 55%) right center / 5px 6px no-repeat,
    linear-gradient(45deg, transparent 45%, #f3f4f6 46%, #f3f4f6 54%, transparent 55%) right center / 5px 6px no-repeat;
  opacity:.95;
}
.text-style-buttons{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
}
.icon-toggle{
  min-height:48px;
  min-width:0;
  padding:0;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.align-icon{
  display:grid;
  gap:4px;
  width:26px;
}
.align-icon span{
  display:block;
  height:2px;
  border-radius:2px;
  background:#f3f4f6;
}
.align-left span:nth-child(1){width:100%}
.align-left span:nth-child(2){width:82%}
.align-left span:nth-child(3){width:94%}
.align-left span:nth-child(4){width:68%}
.align-center{justify-items:center}
.align-center span:nth-child(1){width:100%}
.align-center span:nth-child(2){width:78%}
.align-center span:nth-child(3){width:92%}
.align-center span:nth-child(4){width:66%}
.align-right{justify-items:end}
.align-right span:nth-child(1){width:100%}
.align-right span:nth-child(2){width:82%}
.align-right span:nth-child(3){width:94%}
.align-right span:nth-child(4){width:68%}
.font-style-icon{
  font-size:18px;
  line-height:1;
  color:#f3f4f6;
  font-weight:800;
}
.italic-icon{
  font-style:italic;
}
.text-style-buttons .chip-btn.active{
  background:rgba(138,164,255,.28);
  border-color:rgba(138,164,255,.5);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}
@media (max-width:900px){
  .text-style-buttons{
    grid-template-columns:repeat(5,minmax(42px,1fr));
  }
}



/* --- High-contrast readability override --- */
body,
.page,
.panel,
.panel h1,
.panel h2,
.panel h3,
.panel h4,
.panel h5,
.panel h6,
.panel p,
.panel label,
.panel span,
.panel strong,
.panel small,
.panel li,
.panel dt,
.panel dd,
.panel legend,
.panel .muted,
.panel .sub,
.panel .micro-copy,
.panel .note,
.panel .info-box,
.panel .price-row,
.panel .price-showcase-title,
.panel .price-showcase-block-title,
.panel .price-showcase-subtitle,
.panel .toolbar-group-label,
.panel .group h3,
.panel .motif-overview-card-title,
.panel .motif-overview-side-label,
.panel .motif-overview-footer,
.panel .mini-preview-title,
.panel .mini-preview-label,
.panel .card-hint,
.panel .editor-diagnostic-item,
.panel .editor-status-pill,
.panel .badge,
.panel .apple-pill,
.panel .control-pill strong,
.panel .view-toggle .slider-label,
.panel .view-toggle .slider-label-btn,
.panel .big-price,
.panel .kpi h4,
.panel .price-option,
.panel .chip-btn,
.panel .btn,
.panel .icon-btn,
.panel .segmented label,
.panel .select,
.panel .input,
.panel .textarea,
.panel option,
.panel input,
.panel textarea,
.panel button,
.gallery-title,
.gallery-card,
.gallery-card *{
  color:#f4f6fb !important;
}

.panel .note,
.panel .info-box,
.panel .micro-copy,
.panel .muted,
.panel .sub,
.panel .card-hint,
.panel .editor-diagnostic-item,
.panel .editor-status-pill,
.panel .motif-overview-footer,
.panel .motif-overview-side-label,
.panel .mini-preview-title,
.panel .mini-preview-label,
.panel .toolbar-group-label,
.panel .control-pill strong{
  color:#dfe4ed !important;
}

.panel .price-showcase,
.panel .kpi,
.panel .note,
.panel .info-box,
.panel .motif-overview-card,
.panel .mini-preview-card,
.panel .editor-diagnostic-item,
.panel .editor-status-pill,
.panel .control-bar,
.panel .apple-pill,
.panel .ornament-flyout,
.panel .select,
.panel .input,
.panel .textarea,
.panel .chip-btn,
.panel .btn,
.panel .icon-btn,
.panel .segmented label,
.panel .price-option,
.gallery-card{
  background:rgba(255,255,255,.06) !important;
  border-color:rgba(255,255,255,.16) !important;
}

.panel .chip-btn:hover,
.panel .btn:hover,
.panel .icon-btn:hover,
.panel .segmented label:hover,
.panel .price-option:hover{
  background:rgba(255,255,255,.12) !important;
  color:#ffffff !important;
}

.panel .chip-btn.active,
.panel .btn.primary,
.panel .segmented input:checked + label,
.panel .price-option.active{
  color:#ffffff !important;
}

.panel input::placeholder,
.panel textarea::placeholder{
  color:#c9d0db !important;
  opacity:1;
}

.panel .view-toggle input[type="range"],
.panel .range-wrap input[type="range"]{
  filter:brightness(1.08) contrast(1.12);
}

.panel .text-style-buttons .font-style-icon,
.panel .text-style-buttons .align-icon span,
.panel .metric-icon::before,
.panel .metric-icon::after{
  color:#ffffff !important;
  background-color:unset;
}

/* Keep the actual editor/card content unchanged.
   Do not reset colors inside the overview cards, otherwise the text there
   inherits the panel color and becomes nearly invisible until hover/focus. */
.card-wrap .card-surface,
.mini-preview-clone-surface{
  color:unset !important;
}
.card-wrap .card-surface .surface-element.text-el,
.mini-preview-clone-surface .surface-element.text-el,
.card-wrap .card-surface .surface-element.text-el *:not([style^="color:"]):not([style*=";color:"]),
.mini-preview-clone-surface .surface-element.text-el *:not([style^="color:"]):not([style*=";color:"]){
  color:inherit !important;
}


/* --- v4 UI tune: lighter buttons, normal body weight, brighter white borders --- */
.panel,
.panel p,
.panel label,
.panel span,
.panel small,
.panel li,
.panel dt,
.panel dd,
.panel input,
.panel textarea,
.panel select,
.panel option{
  font-weight:400;
}
.panel strong{
  font-weight:500;
}
.panel #templateTipBubble .template-tip-label,
.panel #actionTipBubble .template-tip-label,
.panel #undoRedoTipBubble .template-tip-label,
.panel #ornamentTipBubble .template-tip-label,
.panel #multiPersonTipBubble .template-tip-label,
.panel #resizeModeTipBubble .template-tip-label,
.panel #paperTipBubble .template-tip-label{
  color:#b91c1c !important;
  width:88% !important;
  margin:0 auto !important;
  font-size:11px !important;
  line-height:1.2 !important;
  font-weight:800 !important;
  letter-spacing:.08em !important;
  text-align:left !important;
  text-transform:uppercase !important;
}
.panel #templateTipBubble .template-tip-text,
.panel #actionTipBubble .template-tip-text,
.panel #undoRedoTipBubble .template-tip-text,
.panel #ornamentTipBubble .template-tip-text,
.panel #multiPersonTipBubble .template-tip-text,
.panel #resizeModeTipBubble .template-tip-text,
.panel #paperTipBubble .template-tip-text{
  color:#111827 !important;
  width:88% !important;
  margin:0 auto !important;
  font-size:14px !important;
  line-height:1.35 !important;
  font-weight:600 !important;
  text-align:left !important;
}
.h-title,
.group h3,
.panel .group h3,
.panel .price-showcase-title,
.panel .price-showcase-block-title,
.panel .price-showcase-subtitle,
.panel .big-price,
.panel .toolbar-group-label,
.panel .motif-overview-card-title,
.panel .mini-preview-title,
.panel .mini-preview-label,
.panel .kpi h4{
  font-weight:700 !important;
}
.panel .chip-btn,
.panel .btn,
.panel .icon-btn,
.panel .segmented label,
.panel .price-option,
.panel .badge,
.panel .undo-floating,
.panel .motif-badge{
  background:linear-gradient(180deg, rgba(223,226,231,.96), rgba(190,194,201,.94)) !important;
  color:#171717 !important;
  border-color:rgba(255,255,255,.62) !important;
  font-weight:500 !important;
  box-shadow:none !important;
}
.panel .chip-btn:hover,
.panel .btn:hover,
.panel .icon-btn:hover,
.panel .segmented label:hover,
.panel .price-option:hover,
.panel .undo-floating:hover,
.panel .motif-badge:hover{
  background:linear-gradient(180deg, rgba(236,239,243,.98), rgba(205,210,217,.96)) !important;
  color:#111111 !important;
  border-color:rgba(255,255,255,.78) !important;
}
.panel .chip-btn.active,
.panel .segmented input:checked + label,
.panel .price-option.active{
  background:linear-gradient(180deg, rgba(190,201,232,.98), rgba(161,176,220,.96)) !important;
  color:#111111 !important;
  border-color:rgba(255,255,255,.88) !important;
}
.panel .btn.primary{
  color:#ffffff !important;
}
.panel .btn.danger{
  color:#fff4f4 !important;
}
.panel .apple-pill,
.panel .metric-pill,
.panel .select,
.panel .input,
.panel .textarea,
.panel .note,
.panel .info-box,
.panel .control-bar,
.panel .editor-status-pill,
.panel .editor-diagnostic-item,
.panel .ornament-flyout,
.panel .mini-preview-card,
.panel .motif-overview-card,
.panel .price-showcase,
.panel .kpi{
  border-color:rgba(255,255,255,.30) !important;
}
.toolbar-group-buttons.template-actions .chip-btn,
#quickTemplatesGroup .chip-btn,
.text-style-buttons .chip-btn,
.action-grid .chip-btn{
  border-color:rgba(255,255,255,.88) !important;
}
.panel .align-icon span,
.panel .metric-icon::before,
.panel .metric-icon::after{
  background:#ffffff !important;
}
.panel .font-style-icon{
  color:#111111 !important;
}

/* --- v5 UI tune: dark gray buttons with white text/icons --- */
.panel .chip-btn,
.panel .btn,
.panel .icon-btn,
.panel .segmented label,
.panel .price-option,
.panel .badge,
.panel .undo-floating,
.panel .motif-badge{
  background:linear-gradient(180deg, rgba(88,90,96,.96), rgba(63,65,71,.96)) !important;
  color:#f7f9fc !important;
  border-color:rgba(255,255,255,.26) !important;
  box-shadow:none !important;
}
.panel .chip-btn:hover,
.panel .btn:hover,
.panel .icon-btn:hover,
.panel .segmented label:hover,
.panel .price-option:hover,
.panel .undo-floating:hover,
.panel .motif-badge:hover{
  background:linear-gradient(180deg, rgba(100,103,110,.98), rgba(72,75,82,.98)) !important;
  color:#ffffff !important;
  border-color:rgba(255,255,255,.38) !important;
}
.panel .chip-btn.active,
.panel .segmented input:checked + label,
.panel .price-option.active{
  background:linear-gradient(180deg, rgba(175,185,220,.98), rgba(138,149,188,.96)) !important;
  color:#ffffff !important;
  border-color:rgba(255,255,255,.52) !important;
}
.panel .btn.primary,
.panel .btn.danger,
.panel .chip-btn,
.panel .icon-btn,
.panel .segmented label,
.panel .price-option,
.panel .badge,
.panel .undo-floating,
.panel .motif-badge,
.panel .chip-btn span,
.panel .btn span,
.panel .icon-btn span,
.panel .segmented label span,
.panel .price-option span{
  color:#f7f9fc !important;
}

.ampelrot,
.panel .chip-btn.ampelrot{
  background:linear-gradient(180deg, rgba(88,90,96,.98), rgba(63,65,71,.98)) !important;
  color:#ffffff !important;
  border-color:rgba(255,255,255,.62) !important;
  box-shadow:0 0 0 1px rgba(255,255,255,.12), 0 0 18px rgba(15,23,42,.25) !important;
}
.panel .align-icon span,
.panel .metric-icon::before,
.panel .metric-icon::after{
  background:#ffffff !important;
}
.panel .font-style-icon,
.panel .text-style-buttons .font-style-icon{
  color:#ffffff !important;
}

.text-toolbar-card,
.toolbar-insert-card,
.mobile-tool-grid .group,
.mobile-tool-grid .sidebar-editor-group{
  background:linear-gradient(180deg, rgba(58,58,58,.96), rgba(41,41,41,.96)) !important;
  border-color:rgba(255,255,255,.16) !important;
}



/* --- v7 metric pills: closer to the supplied dark reference UI --- */
.metric-pill{
  display:grid !important;
  grid-template-columns:44px minmax(110px,max-content) minmax(150px,1fr) !important;
  align-items:center !important;
  gap:12px !important;
  padding:12px 14px !important;
  border-radius:18px !important;
  border:1px solid rgba(255,255,255,.12) !important;
  background:linear-gradient(180deg, rgba(86,89,96,.94), rgba(63,66,72,.96)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05), 0 8px 18px rgba(0,0,0,.16) !important;
}
.metric-pill .metric-icon{
  position:relative;
  flex:none !important;
  width:32px !important;
  height:32px !important;
  border-radius:10px !important;
  border:1px solid rgba(255,255,255,.16) !important;
  background:linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(0,0,0,.12);
}
.metric-pill > strong{
  display:block;
  min-width:0;
  white-space:nowrap;
  font-size:15px !important;
  font-weight:600 !important;
  letter-spacing:-.01em;
  color:#f5f7fb !important;
}
.metric-pill .range-wrap{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  width:100%;
  min-width:0 !important;
  gap:12px !important;
}
.metric-pill .range-wrap input[type="range"]{
  -webkit-appearance:none;
  appearance:none;
  flex:1 1 auto;
  width:100%;
  min-width:0;
  height:6px;
  margin:0;
  border:0;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(255,255,255,.95), rgba(226,229,235,.96));
  box-shadow:inset 0 1px 1px rgba(0,0,0,.22), 0 0 0 1px rgba(255,255,255,.06);
  accent-color:#0a84ff;
  cursor:pointer;
}
.metric-pill .range-wrap input[type="range"]::-webkit-slider-runnable-track{
  height:6px;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(255,255,255,.95), rgba(226,229,235,.96));
}
.metric-pill .range-wrap input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:18px;
  height:18px;
  margin-top:-6px;
  border:0;
  border-radius:50%;
  background:linear-gradient(180deg, #2ea8ff, #0a84ff);
  box-shadow:0 2px 8px rgba(10,132,255,.45), 0 0 0 2px rgba(255,255,255,.88);
}
.metric-pill .range-wrap input[type="range"]::-moz-range-track{
  height:6px;
  border:0;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(255,255,255,.95), rgba(226,229,235,.96));
}
.metric-pill .range-wrap input[type="range"]::-moz-range-thumb{
  width:18px;
  height:18px;
  border:0;
  border-radius:50%;
  background:linear-gradient(180deg, #2ea8ff, #0a84ff);
  box-shadow:0 2px 8px rgba(10,132,255,.45), 0 0 0 2px rgba(255,255,255,.88);
}
.metric-pill .range-wrap span{
  min-width:58px;
  text-align:right;
  font-size:14px;
  font-weight:700;
  letter-spacing:-.01em;
  color:#f5f7fb !important;
}

.leading-icon::before{
  left:10px !important;
  top:7px !important;
  width:10px !important;
  height:18px !important;
  background:
    linear-gradient(#ffffff,#ffffff) left 0 top 2px / 10px 2px no-repeat,
    linear-gradient(#ffffff,#ffffff) left 0 center / 10px 2px no-repeat,
    linear-gradient(#ffffff,#ffffff) left 0 bottom 2px / 10px 2px no-repeat !important;
}
.leading-icon::after{
  left:5px !important;
  top:5px !important;
  width:5px !important;
  height:22px !important;
  border-top:5px solid #ffffff !important;
  border-bottom:5px solid #ffffff !important;
  border-left:2px solid #ffffff !important;
  border-right:2px solid #ffffff !important;
}
.tracking-icon::before{
  left:7px !important;
  top:10px !important;
  width:18px !important;
  height:12px !important;
  background:
    linear-gradient(#ffffff,#ffffff) left 5px top 0 / 10px 2px no-repeat,
    linear-gradient(#ffffff,#ffffff) left 5px bottom 0 / 10px 2px no-repeat !important;
}
.tracking-icon::after{
  left:5px !important;
  top:9px !important;
  width:22px !important;
  height:14px !important;
  background:
    linear-gradient(135deg, transparent 42%, #ffffff 43%, #ffffff 57%, transparent 58%) left center / 6px 7px no-repeat,
    linear-gradient(225deg, transparent 42%, #ffffff 43%, #ffffff 57%, transparent 58%) left center / 6px 7px no-repeat,
    linear-gradient(#ffffff,#ffffff) center center / 12px 2px no-repeat,
    linear-gradient(315deg, transparent 42%, #ffffff 43%, #ffffff 57%, transparent 58%) right center / 6px 7px no-repeat,
    linear-gradient(45deg, transparent 42%, #ffffff 43%, #ffffff 57%, transparent 58%) right center / 6px 7px no-repeat !important;
}
@media (max-width:900px){
  .metric-pill{
    grid-template-columns:40px 1fr !important;
    gap:10px !important;
  }
  .metric-pill .range-wrap{
    grid-column:1 / -1;
    padding-left:52px;
  }
}


/* --- v8 metric inputs: number fields and crisper icons like the latest reference --- */
.metric-pill{
  grid-template-columns:44px minmax(0,1fr) auto !important;
}
.metric-pill .metric-icon{
  width:34px !important;
  height:34px !important;
  border-radius:8px !important;
  border:1px solid rgba(255,255,255,.18) !important;
  background:linear-gradient(180deg, rgba(126,129,135,.92), rgba(92,95,101,.98)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.11), inset 0 -1px 0 rgba(0,0,0,.24), 0 1px 0 rgba(0,0,0,.10) !important;
}
.metric-pill .metric-icon::before{
  content:"";
  position:absolute;
  inset:0;
  background-repeat:no-repeat;
  background-position:center;
  background-size:22px 22px;
  opacity:1;
}
.metric-pill .metric-icon::after{
  display:none !important;
}
.leading-icon::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 4.5v15'/%3E%3Cpath d='M3.8 6.2 5.5 4.5 7.2 6.2'/%3E%3Cpath d='M3.8 17.8 5.5 19.5 7.2 17.8'/%3E%3Cpath d='M10 5.5h8'/%3E%3Cpath d='M14 5.5v13'/%3E%3C/g%3E%3C/svg%3E") !important;
}
.tracking-icon::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 17.5h15'/%3E%3Cpath d='M6.2 15.8 4.5 17.5 6.2 19.2'/%3E%3Cpath d='M17.8 15.8 19.5 17.5 17.8 19.2'/%3E%3Cpath d='M9 5.5h8'/%3E%3Cpath d='M13 5.5v10'/%3E%3C/g%3E%3C/svg%3E") !important;
}
.leading-icon,
.tracking-icon{
  background-image:none !important;
}
.metric-pill > strong{
  font-size:15px !important;
  font-weight:600 !important;
  letter-spacing:-.01em;
}
.metric-pill .range-wrap{
  display:flex !important;
  align-items:center;
  justify-content:flex-end;
  width:auto;
  min-width:0 !important;
  gap:0 !important;
}
.metric-input-box{
  position:relative;
  display:flex;
  align-items:center;
  width:86px;
  min-width:86px;
}
.metric-input-box.has-unit{
  width:86px;
  min-width:86px;
}
.metric-value-input{
  width:100%;
  height:28px;
  border:1px solid rgba(255,255,255,.24) !important;
  border-radius:2px !important;
  background:linear-gradient(180deg, rgba(76,79,84,.98), rgba(61,63,68,.98)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04), inset 0 -1px 0 rgba(0,0,0,.26) !important;
  color:#f5f7fb !important;
  padding:0 10px !important;
  font-size:13px !important;
  font-weight:700 !important;
  letter-spacing:-.01em;
  text-align:center;
  outline:none;
}
.metric-input-box.has-unit .metric-value-input{
  padding-right:28px !important;
}
.metric-value-input:focus{
  border-color:rgba(255,255,255,.38) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04), 0 0 0 2px rgba(255,255,255,.08) !important;
}
.metric-value-input::-webkit-outer-spin-button,
.metric-value-input::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}
.metric-value-input[type=number]{
  -moz-appearance:textfield;
  appearance:textfield;
}
.metric-unit{
  position:absolute;
  right:9px;
  top:50%;
  transform:translateY(-50%);
  font-size:11px;
  font-weight:700;
  letter-spacing:0;
  color:rgba(245,247,251,.82);
  pointer-events:none;
}
.metric-stepper{
  gap:8px !important;
}
.metric-step-btn{
  appearance:none;
  -webkit-appearance:none;
  width:28px;
  height:28px;
  min-width:28px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.24);
  background:linear-gradient(180deg, rgba(126,129,135,.94), rgba(68,71,78,.98));
  color:#ffffff;
  font-size:18px;
  font-weight:800;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14), 0 6px 14px rgba(0,0,0,.20);
}
.metric-step-btn:hover{
  background:linear-gradient(180deg, rgba(146,150,158,.96), rgba(77,80,88,.98));
}
.metric-step-btn:active{
  transform:translateY(1px);
}
@media (max-width:900px){
  .metric-pill{
    grid-template-columns:40px 1fr auto !important;
  }
  .metric-pill .range-wrap{
    grid-column:auto;
    padding-left:0;
  }
  .metric-input-box,
  .metric-input-box.has-unit{
    width:86px;
    min-width:86px;
  }
}

.metric-pill .metric-icon::before,
.metric-pill .metric-icon::after{
  display:none !important;
}

/* Plus/Minus-Steuerung: eckig mit runden Ecken und 1 mm Abstand */
#fontMinus,
#fontPlus,
#motifMinusBtn,
#motifPlusBtn,
.metric-step-btn{
  width:28px !important;
  height:28px !important;
  min-width:28px !important;
  padding:0 !important;
  margin:0 !important;
  border-radius:7px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}
#fontMinus,
#fontPlus,
#motifMinusBtn,
#motifPlusBtn{
  margin-left:1mm !important;
}
.metric-stepper,
.control-bar{
  gap:1mm !important;
}
.metric-icon-svg{
  width:22px;
  height:22px;
  display:block;
  margin:6px auto;
}
.metric-icon-svg path{
  fill:none;
  stroke:#ffffff;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.tracking-icon .metric-icon-svg path:nth-child(-n+3){
  transform:translateY(1.5px);
}


.mobile-editor-dock{display:none}
.mobile-tool-grid{display:grid;gap:10px}

@media (max-width:960px){
  .page{padding:10px}
  .grid{grid-template-columns:1fr;gap:12px}
  #editorPanel{order:1}
  #toolsPanel{order:2}
  #orderPanel{order:3}
  .panel{padding:12px;border-radius:18px}
  .stack{gap:12px}
  .group{gap:8px}
  .group h3{font-size:14px}
  .group-header{gap:8px;align-items:flex-start;flex-wrap:wrap}
  .h-title{font-size:20px;margin-bottom:6px}
  .sub{font-size:13px;line-height:1.4}
  .micro-copy,.note,.info-box{font-size:12px;padding:10px 12px}
  .segmented{gap:8px}
  .segmented label{min-height:36px;padding:0 12px;font-size:12px}
  .select,.input,.textarea{padding:9px 11px;border-radius:12px;font-size:13px}
  .textarea{min-height:72px}
  .control-bar{padding:10px;gap:8px;border-radius:16px}
  .icon-btn,.chip-btn,.btn,.badge,.undo-floating,.motif-badge,.price-option{min-height:34px;padding:8px 10px;font-size:12px;line-height:1.2}
  .icon-btn.small{min-width:32px;padding:6px 9px}
  .toolbar-main-btn{min-width:0 !important;min-height:34px !important;padding:8px 10px !important;font-size:12px !important}
  .top-toolbar{gap:8px}
  .top-toolbar > div{display:grid;gap:6px;width:100%}
  .top-toolbar .badge{width:100%;justify-content:center}
  .preview-stage{padding:10px;gap:10px;border-radius:18px}
  .preview-topbar{min-height:auto;gap:8px}
  .view-toggle{gap:8px}
  .view-toggle input[type="range"]{width:104px}
  .view-toggle .slider-label,.slider-label-btn{font-size:12px}
  .history-actions{gap:6px}
  .editor-status-pill,.editor-diagnostic-item,.card-hint{font-size:11px}
  .text-toolbar-stage{margin-top:0;gap:10px}
  .text-toolbar-card,.toolbar-insert-card{padding:10px 12px;border-radius:18px}
  .toolbar-insert-row{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;width:100%;max-width:420px;margin:0 auto}
  .toolbar-insert-row .chip-btn{flex:0 1 auto;width:auto;min-width:108px;justify-content:center;text-align:center}
  .mobile-editor-dock{display:grid;gap:10px;width:100%}
  .mobile-tool-grid{display:grid;gap:10px}
  .mobile-tool-grid .group,
  .mobile-tool-grid .sidebar-editor-group{gap:8px;padding:12px;border:1px solid rgba(255,255,255,.16);border-radius:16px;background:linear-gradient(180deg, rgba(58,58,58,.96), rgba(41,41,41,.96))}
  .mobile-tool-grid .toolbar-group-label{font-size:13px;font-weight:800;text-align:left;padding:0}
  .mobile-tool-grid .sidebar-pill-stack{gap:8px}
  .mobile-tool-grid .sidebar-two-up{grid-template-columns:1fr}
  .mobile-tool-grid .sidebar-two-up.keep-inline-mobile{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mobile-tool-grid .sidebar-editor-group .toolbar-group-buttons:not(.text-style-buttons){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .mobile-tool-grid .toolbar-group-buttons.keep-two-mobile{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .mobile-tool-grid .text-style-buttons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
  .mobile-tool-grid .text-style-buttons .chip-btn{width:100%;padding-left:0;padding-right:0}
  .mobile-tool-grid .action-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .mobile-tool-grid .chip-btn,.mobile-tool-grid .btn{min-width:0;justify-content:center}
  .mobile-tool-grid .apple-pill{font-size:12px;padding:4px 6px}
  .mobile-tool-grid .apple-pill strong{font-size:12px}
  .mobile-tool-grid .sidebar-apple-pill .select{min-width:0}
  .mobile-tool-grid .metric-pill{grid-template-columns:38px minmax(0,1fr) auto !important;padding:8px 10px !important;gap:8px !important}
  .mobile-tool-grid .metric-icon{width:30px !important;height:30px !important}
  .mobile-tool-grid .metric-icon-svg{width:18px;height:18px;margin:5px auto}
  .mobile-tool-grid .metric-pill > strong{font-size:12px !important}
  .mobile-tool-grid .metric-input-box,.mobile-tool-grid .metric-input-box.has-unit{width:74px;min-width:74px}
  .mobile-tool-grid .metric-value-input{height:26px;font-size:12px !important;padding:0 8px !important}
  .mobile-tool-grid .metric-unit{font-size:10px}
  .mobile-tool-grid .metric-step-btn{width:26px;height:26px;min-width:26px;font-size:16px}
  .editor-footer{gap:8px}
  .editor-footer .btn-row{display:grid;grid-template-columns:1fr;gap:8px;width:100%}
  .editor-footer .btn,.editor-footer .badge{width:100%;min-width:0}
  .mini-preview-title{font-size:13px}
  .mini-preview-label{font-size:11px}
  .kpi{padding:12px;border-radius:16px}
  .price-row{padding:6px 0;font-size:12px}
  .price-showcase{padding:12px;gap:10px}
  .price-showcase-title{font-size:18px}
  .price-showcase-block-title{font-size:14px}
  .price-showcase-subtitle{font-size:12px}
  .price-grid{gap:6px}
}

@media (max-width:640px){
  .page{padding:8px}
  .panel{padding:10px}
  .h-title{font-size:18px}
  .preview-stage{padding:8px}
  .top-toolbar{display:none}
  .editor-status-row{gap:6px}
  .editor-status-pill{padding:6px 8px}
  .mobile-tool-grid .sidebar-editor-group .toolbar-group-buttons:not(.text-style-buttons):not(.keep-two-mobile),
  .mobile-tool-grid .action-grid{grid-template-columns:1fr}
  .toolbar-insert-row{gap:6px;max-width:360px}
  .toolbar-main-btn{font-size:11px !important;padding:8px 6px !important;min-width:100px !important}
}

@media (max-width:520px){
  .toolbar-insert-row{flex-direction:row;flex-wrap:nowrap;max-width:100%}
  .toolbar-insert-row .chip-btn{width:auto;flex:1 1 0;min-width:0}
}


/* --- Light/dark layout switch --- */
.hero-panel{position:relative}
.hero-content{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.hero-copy{min-width:min(100%,520px);flex:1 1 520px}
.theme-switch{appearance:none;border:1px solid rgba(255,255,255,.24);border-radius:999px;padding:7px 12px 7px 8px;display:inline-flex;align-items:center;gap:10px;min-height:42px;cursor:pointer;font:700 13px/1 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#f7f9fc;background:linear-gradient(180deg,rgba(88,90,96,.96),rgba(63,65,71,.96));box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 8px 18px rgba(0,0,0,.16)}
.theme-switch-track{position:relative;width:42px;height:24px;flex:0 0 42px;border-radius:999px;background:rgba(255,255,255,.18);box-shadow:inset 0 1px 2px rgba(0,0,0,.26)}
.theme-switch-knob{position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.28);transition:transform .18s ease,background .18s ease}
.theme-switch[aria-pressed="true"] .theme-switch-knob{transform:translateX(18px);background:#111827}
.theme-switch:focus-visible{outline:3px solid rgba(138,164,255,.45);outline-offset:3px}
html.theme-light{--bg:#f3f4f6;--panel:rgba(255,255,255,.88);--panel-border:rgba(17,24,39,.10);--text:#111827;--muted:#4b5563;--line:rgba(17,24,39,.14);--accent:#0a84ff;--accent-soft:rgba(10,132,255,.12);--shadow:0 20px 50px rgba(15,23,42,.10)}
html.theme-light body{color:#111827!important;background:radial-gradient(circle at top left,rgba(255,255,255,.95),transparent 30%),linear-gradient(180deg,#fff 0%,#f2f3f5 48%,#e5e7eb 100%)!important}
html.theme-light .panel{background:rgba(255,255,255,.88)!important;border-color:rgba(17,24,39,.10)!important;box-shadow:0 20px 50px rgba(15,23,42,.10)!important}
html.theme-light form.grid>aside.panel.stack:first-of-type,html.theme-light .preview-stage,html.theme-light .text-toolbar-card,html.theme-light .toolbar-insert-card,html.theme-light .mobile-tool-grid .group,html.theme-light .mobile-tool-grid .sidebar-editor-group{background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(241,243,246,.96))!important;border-color:rgba(17,24,39,.12)!important}
html.theme-light .card-wrap{background:#e5e7eb!important}
html.theme-light body,html.theme-light .page,html.theme-light .panel,html.theme-light .panel *,html.theme-light .gallery-title,html.theme-light .gallery-card,html.theme-light .gallery-card *{color:#111827!important}
html.theme-light .sub,html.theme-light .micro-copy,html.theme-light .note,html.theme-light .info-box,html.theme-light .muted,html.theme-light .editor-diagnostic-item,html.theme-light .editor-status-pill,html.theme-light .motif-overview-footer,html.theme-light .motif-overview-side-label,html.theme-light .mini-preview-title,html.theme-light .mini-preview-label,html.theme-light .toolbar-group-label,html.theme-light .control-pill strong{color:#374151!important}
html.theme-light .price-showcase,html.theme-light .kpi,html.theme-light .note,html.theme-light .info-box,html.theme-light .motif-overview-card,html.theme-light .mini-preview-card,html.theme-light .editor-diagnostic-item,html.theme-light .editor-status-pill,html.theme-light .control-bar,html.theme-light .apple-pill,html.theme-light .ornament-flyout,html.theme-light .select,html.theme-light .input,html.theme-light .textarea,html.theme-light .gallery-card{background:rgba(255,255,255,.86)!important;border-color:rgba(17,24,39,.14)!important}
html.theme-light .chip-btn,html.theme-light .btn,html.theme-light .icon-btn,html.theme-light .segmented label,html.theme-light .price-option,html.theme-light .badge,html.theme-light .undo-floating,html.theme-light .motif-badge,html.theme-light .theme-switch{background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(229,231,235,.96))!important;color:#111827!important;border-color:rgba(17,24,39,.16)!important;box-shadow:none!important}
html.theme-light .chip-btn:hover,html.theme-light .btn:hover,html.theme-light .icon-btn:hover,html.theme-light .segmented label:hover,html.theme-light .price-option:hover,html.theme-light .undo-floating:hover,html.theme-light .motif-badge:hover,html.theme-light .theme-switch:hover{background:linear-gradient(180deg,#fff,#dfe3e8)!important;color:#111827!important;border-color:rgba(17,24,39,.24)!important}
html.theme-light .chip-btn.active,html.theme-light .segmented input:checked+label,html.theme-light .price-option.active,html.theme-light .btn.primary{background:linear-gradient(180deg,rgba(239,246,255,.98),rgba(219,234,254,.98))!important;color:#111827!important;border-color:rgba(37,99,235,.28)!important}
html.theme-light .btn.danger,html.theme-light .ampelrot,html.theme-light .panel .chip-btn.ampelrot{background:linear-gradient(180deg,#fff5f5,#f1f5f9)!important;color:#111827!important;border-color:rgba(71,85,105,.28)!important;box-shadow:none!important}
html.theme-light input::placeholder,html.theme-light textarea::placeholder{color:#6b7280!important;opacity:1}
html.theme-light option,html.theme-light .select option{background:#fff!important;color:#111827!important}
html.theme-light .align-icon span{background:#111827!important}
html.theme-light .font-style-icon,html.theme-light .text-style-buttons .font-style-icon{color:#111827!important}
html.theme-light .metric-pill{background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(229,231,235,.96))!important;border-color:rgba(17,24,39,.14)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 8px 18px rgba(15,23,42,.07)!important}
html.theme-light .metric-pill>strong,html.theme-light .metric-pill .range-wrap span,html.theme-light .metric-unit{color:#111827!important}
html.theme-light .metric-pill .metric-icon{background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(209,213,219,.98))!important;border-color:rgba(17,24,39,.16)!important}
html.theme-light .metric-icon-svg path{stroke:#111827!important}
html.theme-light .metric-value-input{background:#fff!important;color:#111827!important;border-color:rgba(17,24,39,.18)!important}
html.theme-light .metric-step-btn{background:linear-gradient(180deg,#fff,#e5e7eb)!important;color:#111827!important;border-color:rgba(17,24,39,.18)!important}
html.theme-light .apple-stepper-pill,
html.theme-light .selected-shape-color-row{background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(229,231,235,.96))!important;color:#111827!important;border-color:rgba(17,24,39,.14)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 8px 18px rgba(15,23,42,.07)!important}
html.theme-light .apple-stepper-pill strong,
html.theme-light .selected-shape-color-row strong{color:#111827!important}
html.theme-light .apple-stepper-controls{background:rgba(17,24,39,.04)!important;border-color:rgba(17,24,39,.10)!important;box-shadow:inset 0 1px 2px rgba(17,24,39,.06)!important}
html.theme-light .apple-stepper-value{background:#fff!important;color:#111827!important;border-color:rgba(17,24,39,.14)!important}
html.theme-light .apple-stepper-btn{background:linear-gradient(180deg,#fff,#e5e7eb)!important;color:#111827!important;border-color:rgba(17,24,39,.18)!important;box-shadow:0 2px 6px rgba(15,23,42,.08)!important}
html.theme-light .theme-switch-track{background:rgba(17,24,39,.14)!important}
html.theme-light .card-wrap .card-surface,html.theme-light .mini-preview-clone-surface{color:unset!important}
html.theme-light .card-wrap .card-surface .surface-element.text-el,html.theme-light .mini-preview-clone-surface .surface-element.text-el,html.theme-light .card-wrap .card-surface .surface-element.text-el *:not([style^="color:"]):not([style*=";color:"]),html.theme-light .mini-preview-clone-surface .surface-element.text-el *:not([style^="color:"]):not([style*=";color:"]){color:inherit!important}
/* Nur die Schnellvorlagen-Buttons bleiben im hellen Layout dunkelrot mit weisser Schrift. */
html.theme-light .template-actions .chip-btn[data-template]{
  background:linear-gradient(180deg,#a3201c,#8f1d19)!important;
  color:#ffffff!important;
  border-color:rgba(143,29,25,.55)!important;
  box-shadow:0 8px 18px rgba(143,29,25,.18)!important;
}
html.theme-light .template-actions .chip-btn[data-template]:hover,
html.theme-light .template-actions .chip-btn[data-template].active{
  background:linear-gradient(180deg,#b32621,#8f1d19)!important;
  color:#ffffff!important;
  border-color:rgba(143,29,25,.72)!important;
}
/* Blinkzustand im hellen Layout sichtbar machen wie im dunklen Layout. */
html.theme-light .template-actions .chip-btn[data-template].ampelrot,
html.theme-light .template-actions .chip-btn[data-template].template-selected{
  background:linear-gradient(180deg,rgba(88,90,96,.98),rgba(63,65,71,.98))!important;
  color:#ffffff!important;
  border-color:rgba(255,255,255,.62)!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.12),0 0 18px rgba(15,23,42,.25)!important;
}
html.theme-light .template-actions .chip-btn[data-template].ampelrot:hover,
html.theme-light .template-actions .chip-btn[data-template].template-selected:hover{
  background:linear-gradient(180deg,rgba(225,55,55,.98),rgba(170,28,28,.98))!important;
  color:#ffffff!important;
  border-color:rgba(255,255,255,.72)!important;
}
html.theme-light .template-actions .chip-btn[data-template] *{
  color:#ffffff!important;
}
html.theme-light .resize-mode-note{color:#4b5563!important}
html.theme-light .template-tip-bubble{background:linear-gradient(180deg,rgba(255,255,255,.99),rgba(248,248,248,.97));border-color:rgba(184,28,28,.88);box-shadow:0 12px 28px rgba(15,23,42,.10),inset 0 1px 0 rgba(255,255,255,.98);color:#111827}
html.theme-light .template-tip-bubble::after{background:linear-gradient(180deg,rgba(255,255,255,.99),rgba(248,248,248,.97));border-right:2px solid rgba(184,28,28,.88);border-bottom:2px solid rgba(184,28,28,.88)}
html.theme-light .template-tip-label{color:#b91c1c!important}
html.theme-light .template-tip-text{color:#111827!important}
@media (max-width:640px){.hero-content{align-items:stretch}.theme-switch{width:100%;justify-content:center}}



/* --- Anpassung: Preisbereich wieder weiss, Preis-Buttons heller --- */
:root{
  --vc-price-button-bg-top:rgba(108,108,108,.98);
  --vc-price-button-bg-bottom:rgba(84,84,84,.98);
  --vc-price-button-hover-top:rgba(126,126,126,.98);
  --vc-price-button-hover-bottom:rgba(98,98,98,.98);
  --vc-price-button-active-top:rgba(138,148,174,.98);
  --vc-price-button-active-bottom:rgba(108,118,145,.98);
}

/* Hervorgehobene Preis-Texte wieder weiss darstellen. */
.panel .price-showcase .price-showcase-title,
.panel .price-showcase .price-showcase-subtitle-farbe,
.panel .price-showcase .price-grid[data-mode="farbe"] .price-option,
.panel .price-showcase .price-grid[data-mode="farbe"] .price-option span,
html.theme-light .panel .price-showcase .price-showcase-title,
html.theme-light .panel .price-showcase .price-showcase-subtitle-farbe,
html.theme-light .panel .price-showcase .price-grid[data-mode="farbe"] .price-option,
html.theme-light .panel .price-showcase .price-grid[data-mode="farbe"] .price-option span{
  color:#ffffff !important;
}

/* Preis-Buttons insgesamt heller machen. */
.panel .price-showcase .price-option,
html.theme-light .panel .price-showcase .price-option{
  background:linear-gradient(180deg,var(--vc-price-button-bg-top),var(--vc-price-button-bg-bottom)) !important;
  color:#ffffff !important;
  border-color:rgba(255,255,255,.48) !important;
}

.panel .price-showcase .price-option span,
html.theme-light .panel .price-showcase .price-option span{
  color:#ffffff !important;
}

.panel .price-showcase .price-option:hover,
html.theme-light .panel .price-showcase .price-option:hover{
  background:linear-gradient(180deg,var(--vc-price-button-hover-top),var(--vc-price-button-hover-bottom)) !important;
  color:#ffffff !important;
  border-color:rgba(255,255,255,.68) !important;
}

.panel .price-showcase .price-option.active,
html.theme-light .panel .price-showcase .price-option.active{
  background:linear-gradient(180deg,var(--vc-price-button-active-top),var(--vc-price-button-active-bottom)) !important;
  color:#ffffff !important;
  border-color:rgba(255,255,255,.82) !important;
}



/* --- Apple-Design: Einseitig / Doppelseitig plastischer voneinander abheben --- */
.panel .price-showcase{
  padding:18px !important;
  gap:18px !important;
}

.panel .price-showcase > .price-showcase-block{
  position:relative;
  overflow:hidden;
  padding:16px 14px 18px !important;
  border-radius:24px !important;
  gap:14px !important;
}

.panel .price-showcase > .price-showcase-block::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:44%;
  pointer-events:none;
}

.panel .price-showcase > .price-showcase-block > .price-showcase-block{
  position:relative;
  z-index:1;
  gap:10px;
}

.panel .price-showcase > .price-showcase-block > .price-showcase-block + .price-showcase-block{
  padding-top:10px;
  margin-top:2px;
  border-top:1px solid rgba(255,255,255,.10);
}

.panel .price-showcase > .price-showcase-block .price-showcase-block-title,
.panel .price-showcase > .price-showcase-block .price-showcase-subtitle,
.panel .price-showcase > .price-showcase-block .price-grid{
  position:relative;
  z-index:1;
}

.panel .price-showcase > .price-showcase-block{
  background:linear-gradient(180deg,rgba(255,255,255,.11),rgba(255,255,255,.06)) !important;
  border:1px solid rgba(255,255,255,.18) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22), 0 12px 28px rgba(0,0,0,.22) !important;
}

.panel .price-showcase > .price-showcase-block::before{
  background:linear-gradient(180deg,rgba(255,255,255,.20),rgba(255,255,255,0));
}

html.theme-light .panel .price-showcase{
  background:linear-gradient(180deg,#f7f8fa 0%,#eceef2 100%) !important;
  border-color:rgba(17,24,39,.10) !important;
  box-shadow:0 18px 36px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.90) !important;
}

html.theme-light .panel .price-showcase > .price-showcase-block{
  background:linear-gradient(180deg,#ffffff 0%,#f2f4f7 100%) !important;
  border:1px solid rgba(17,24,39,.10) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96), inset 0 -1px 0 rgba(17,24,39,.04), 0 12px 28px rgba(15,23,42,.09) !important;
}

html.theme-light .panel .price-showcase > .price-showcase-block::before{
  background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(255,255,255,0));
}

html.theme-light .panel .price-showcase > .price-showcase-block > .price-showcase-block + .price-showcase-block{
  border-top-color:rgba(17,24,39,.08) !important;
}



/* --- Korrektur: rote Preis-Texte beibehalten --- */
.panel .price-showcase .price-showcase-title,
.panel .price-showcase .price-showcase-subtitle-farbe,
.panel .price-showcase .price-grid[data-mode="farbe"] .price-option,
.panel .price-showcase .price-grid[data-mode="farbe"] .price-option:hover,
.panel .price-showcase .price-grid[data-mode="farbe"] .price-option.active,
.panel .price-showcase .price-grid[data-mode="farbe"] .price-option span,
html.theme-light .panel .price-showcase .price-showcase-title,
html.theme-light .panel .price-showcase .price-showcase-subtitle-farbe,
html.theme-light .panel .price-showcase .price-grid[data-mode="farbe"] .price-option,
html.theme-light .panel .price-showcase .price-grid[data-mode="farbe"] .price-option:hover,
html.theme-light .panel .price-showcase .price-grid[data-mode="farbe"] .price-option.active,
html.theme-light .panel .price-showcase .price-grid[data-mode="farbe"] .price-option span{
  color:#e31b23 !important;
}



/* --- Apple-Design: Preisbuttons Schwarz-Weiss und Farbe gut lesbar in Hell/Dunkel --- */
.panel .price-showcase .price-option{
  min-height:54px !important;
  border-radius:14px !important;
  padding:13px 12px !important;
  font-weight:750 !important;
  letter-spacing:-.01em !important;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease !important;
}

/* Rote Akzent-Texte beibehalten. */
.panel .price-showcase .price-showcase-title,
.panel .price-showcase .price-showcase-subtitle-farbe,
html.theme-light .panel .price-showcase .price-showcase-title,
html.theme-light .panel .price-showcase .price-showcase-subtitle-farbe{
  color:#e12727 !important;
}

/* Dunkles Layout: klare, kontrastreiche Apple-Buttons. */
.panel .price-showcase .price-grid[data-mode="sw"] .price-option{
  background:linear-gradient(180deg,#6f7682 0%,#3e4652 100%) !important;
  color:#ffffff !important;
  border-color:rgba(255,255,255,.30) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.24), 0 9px 20px rgba(0,0,0,.24) !important;
  text-shadow:0 1px 1px rgba(0,0,0,.22) !important;
}
.panel .price-showcase .price-grid[data-mode="farbe"] .price-option{
  background:linear-gradient(180deg,#64748b 0%,#334155 100%) !important;
  color:#ffffff !important;
  border-color:rgba(255,255,255,.34) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.26), 0 9px 20px rgba(127,29,29,.28) !important;
  text-shadow:0 1px 1px rgba(0,0,0,.24) !important;
}
.panel .price-showcase .price-grid[data-mode="sw"] .price-option span,
.panel .price-showcase .price-grid[data-mode="farbe"] .price-option span{
  color:#ffffff !important;
}
.panel .price-showcase .price-option:hover{
  transform:translateY(-1px) !important;
}
.panel .price-showcase .price-grid[data-mode="sw"] .price-option:hover{
  background:linear-gradient(180deg,#7f8896 0%,#4b5563 100%) !important;
  border-color:rgba(255,255,255,.42) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.30), 0 12px 24px rgba(0,0,0,.28) !important;
}
.panel .price-showcase .price-grid[data-mode="farbe"] .price-option:hover{
  background:linear-gradient(180deg,#f05252 0%,#c81e1e 100%) !important;
  border-color:rgba(255,255,255,.46) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.32), 0 12px 24px rgba(127,29,29,.32) !important;
}
.panel .price-showcase .price-grid[data-mode="sw"] .price-option.active{
  background:linear-gradient(180deg,#0a84ff 0%,#0066d6 100%) !important;
  color:#ffffff !important;
  border-color:rgba(255,255,255,.58) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.36), 0 12px 24px rgba(10,132,255,.26) !important;
}
.panel .price-showcase .price-grid[data-mode="farbe"] .price-option.active{
  background:linear-gradient(180deg,#ff4d4d 0%,#d71920 100%) !important;
  color:#ffffff !important;
  border-color:rgba(255,255,255,.60) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.36), 0 12px 24px rgba(215,25,32,.28) !important;
}
.panel .price-showcase .price-option.active span{
  color:#ffffff !important;
}

/* Helles Layout: helle Karten mit dunkler Schrift bzw. rotem Farbkontrast. */
html.theme-light .panel .price-showcase .price-grid[data-mode="sw"] .price-option{
  background:linear-gradient(180deg,#ffffff 0%,#e5e7eb 100%) !important;
  color:#111827 !important;
  border-color:rgba(17,24,39,.18) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96), 0 7px 16px rgba(15,23,42,.08) !important;
  text-shadow:none !important;
}
html.theme-light .panel .price-showcase .price-grid[data-mode="farbe"] .price-option{
  background:linear-gradient(180deg,#fff5f5 0%,#f1f5f9 100%) !important;
  color:#334155 !important;
  border-color:rgba(100,116,139,.30) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96), 0 7px 16px rgba(71,85,105,.10) !important;
  text-shadow:none !important;
}
html.theme-light .panel .price-showcase .price-grid[data-mode="sw"] .price-option span{
  color:#111827 !important;
}
html.theme-light .panel .price-showcase .price-grid[data-mode="farbe"] .price-option span{
  color:#334155 !important;
}
html.theme-light .panel .price-showcase .price-grid[data-mode="sw"] .price-option:hover{
  background:linear-gradient(180deg,#ffffff 0%,#dfe3e8 100%) !important;
  color:#111827 !important;
  border-color:rgba(17,24,39,.28) !important;
}
html.theme-light .panel .price-showcase .price-grid[data-mode="farbe"] .price-option:hover{
  background:linear-gradient(180deg,#fff1f2 0%,#e2e8f0 100%) !important;
  color:#1f2937 !important;
  border-color:rgba(100,116,139,.42) !important;
}
html.theme-light .panel .price-showcase .price-grid[data-mode="farbe"] .price-option:hover span{
  color:#1f2937 !important;
}
html.theme-light .panel .price-showcase .price-grid[data-mode="sw"] .price-option.active,
html.theme-light .panel .price-showcase .price-grid[data-mode="farbe"] .price-option.active{
  color:#ffffff !important;
  text-shadow:0 1px 1px rgba(0,0,0,.22) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.34), 0 10px 22px rgba(15,23,42,.14) !important;
}
html.theme-light .panel .price-showcase .price-grid[data-mode="sw"] .price-option.active{
  background:linear-gradient(180deg,#0a84ff 0%,#0066d6 100%) !important;
  border-color:rgba(10,132,255,.60) !important;
}
html.theme-light .panel .price-showcase .price-grid[data-mode="farbe"] .price-option.active{
  background:linear-gradient(180deg,#64748b 0%,#334155 100%) !important;
  border-color:rgba(100,116,139,.55) !important;
}
html.theme-light .panel .price-showcase .price-option.active span{
  color:#ffffff !important;
}




/* --- Finaler Apple-Farbabgleich: logisch und lesbar in Hell/Dunkel --- */
.panel .price-showcase .price-showcase-title,
.panel .price-showcase .price-showcase-subtitle-farbe,
html.theme-light .panel .price-showcase .price-showcase-title,
html.theme-light .panel .price-showcase .price-showcase-subtitle-farbe{
  color:#e12727 !important;
}

.panel .price-showcase .price-option{
  min-height:56px !important;
  border-radius:16px !important;
  padding:14px 12px !important;
  font-weight:720 !important;
  letter-spacing:-.01em !important;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease !important;
}
.panel .price-showcase .price-option:hover{
  transform:translateY(-1px) !important;
}

/* Dunkles Layout: graphit für SW, rubinrot für Farbe. */
.panel .price-showcase .price-grid[data-mode="sw"] .price-option{
  background:linear-gradient(180deg,#76808d 0%,#495260 100%) !important;
  color:#ffffff !important;
  border-color:rgba(255,255,255,.26) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.20), 0 10px 22px rgba(0,0,0,.26) !important;
  text-shadow:0 1px 1px rgba(0,0,0,.24) !important;
}
.panel .price-showcase .price-grid[data-mode="sw"] .price-option:hover{
  background:linear-gradient(180deg,#828c98 0%,#56606d 100%) !important;
  border-color:rgba(255,255,255,.36) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.26), 0 12px 24px rgba(0,0,0,.30) !important;
}
.panel .price-showcase .price-grid[data-mode="sw"] .price-option.active{
  background:linear-gradient(180deg,#0a84ff 0%,#0066d6 100%) !important;
  color:#ffffff !important;
  border-color:rgba(255,255,255,.52) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.30), 0 12px 26px rgba(10,132,255,.30) !important;
}

.panel .price-showcase .price-grid[data-mode="farbe"] .price-option{
  background:linear-gradient(180deg,#f2545b 0%,#334155 100%) !important;
  color:#ffffff !important;
  border-color:rgba(255,255,255,.30) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.24), 0 10px 22px rgba(127,29,29,.30) !important;
  text-shadow:0 1px 1px rgba(0,0,0,.24) !important;
}
.panel .price-showcase .price-grid[data-mode="farbe"] .price-option span{
  color:#ffffff !important;
}
.panel .price-showcase .price-grid[data-mode="farbe"] .price-option:hover{
  background:linear-gradient(180deg,#f76a70 0%,#c92121 100%) !important;
  border-color:rgba(255,255,255,.40) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28), 0 12px 24px rgba(127,29,29,.34) !important;
}
.panel .price-showcase .price-grid[data-mode="farbe"] .price-option.active{
  background:linear-gradient(180deg,#ff5a5f 0%,#d71920 100%) !important;
  color:#ffffff !important;
  border-color:rgba(255,255,255,.54) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.30), 0 12px 26px rgba(215,25,32,.30) !important;
}

.panel .price-showcase .price-grid[data-mode="sw"] .price-option span,
.panel .price-showcase .price-grid[data-mode="farbe"] .price-option.active span,
.panel .price-showcase .price-grid[data-mode="sw"] .price-option.active span{
  color:#ffffff !important;
}

/* Helles Layout: neutrales Frostglas für SW, sanftes Rosé für Farbe. */
html.theme-light .panel .price-showcase .price-grid[data-mode="sw"] .price-option{
  background:linear-gradient(180deg,#ffffff 0%,#edf1f5 100%) !important;
  color:#111827 !important;
  border-color:rgba(15,23,42,.12) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96), 0 7px 16px rgba(15,23,42,.08) !important;
  text-shadow:none !important;
}
html.theme-light .panel .price-showcase .price-grid[data-mode="sw"] .price-option span{
  color:#111827 !important;
}
html.theme-light .panel .price-showcase .price-grid[data-mode="sw"] .price-option:hover{
  background:linear-gradient(180deg,#ffffff 0%,#e5ebf0 100%) !important;
  color:#0f172a !important;
  border-color:rgba(15,23,42,.18) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.98), 0 9px 18px rgba(15,23,42,.10) !important;
}
html.theme-light .panel .price-showcase .price-grid[data-mode="sw"] .price-option.active{
  background:linear-gradient(180deg,#0a84ff 0%,#0066d6 100%) !important;
  color:#ffffff !important;
  border-color:rgba(10,132,255,.48) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.30), 0 10px 22px rgba(10,132,255,.24) !important;
  text-shadow:0 1px 1px rgba(0,0,0,.22) !important;
}
html.theme-light .panel .price-showcase .price-grid[data-mode="sw"] .price-option.active span{
  color:#ffffff !important;
}

html.theme-light .panel .price-showcase .price-grid[data-mode="farbe"] .price-option{
  background:linear-gradient(180deg,#fff8f8 0%,#feecee 100%) !important;
  color:#d62828 !important;
  border-color:rgba(225,39,39,.20) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.98), 0 7px 16px rgba(71,85,105,.08) !important;
  text-shadow:none !important;
}
html.theme-light .panel .price-showcase .price-grid[data-mode="farbe"] .price-option span{
  color:#d62828 !important;
}
html.theme-light .panel .price-showcase .price-grid[data-mode="farbe"] .price-option:hover{
  background:linear-gradient(180deg,#fff4f4 0%,#fee1e4 100%) !important;
  color:#c51f1f !important;
  border-color:rgba(225,39,39,.28) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.98), 0 9px 18px rgba(71,85,105,.10) !important;
}
html.theme-light .panel .price-showcase .price-grid[data-mode="farbe"] .price-option:hover span{
  color:#c51f1f !important;
}
html.theme-light .panel .price-showcase .price-grid[data-mode="farbe"] .price-option.active{
  background:linear-gradient(180deg,#f2545b 0%,#c81e1e 100%) !important;
  color:#ffffff !important;
  border-color:rgba(225,39,39,.42) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.30), 0 10px 22px rgba(71,85,105,.20) !important;
  text-shadow:0 1px 1px rgba(0,0,0,.22) !important;
}
html.theme-light .panel .price-showcase .price-grid[data-mode="farbe"] .price-option.active span{
  color:#ffffff !important;
}




/* --- Variante 3: luxuriöser & plastischer Apple-Look --- */
.panel .price-showcase > .price-showcase-block{
  border-radius:26px !important;
}

.panel .price-showcase .price-option{
  position:relative !important;
  overflow:hidden !important;
  min-height:55px !important;
  border-radius:18px !important;
  padding:14px 12px !important;
  font-size:95% !important;
  backdrop-filter:blur(10px) saturate(1.08) !important;
  -webkit-backdrop-filter:blur(10px) saturate(1.08) !important;
}

.panel .price-showcase .price-option::before{
  content:"";
  position:absolute;
  inset:1px 1px auto 1px;
  height:48%;
  border-radius:17px 17px 13px 13px;
  background:linear-gradient(180deg,rgba(255,255,255,.30),rgba(255,255,255,0));
  pointer-events:none;
}

.panel .price-showcase .price-option::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:18px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(0,0,0,.08);
  pointer-events:none;
}

.panel .price-showcase .price-option > *{
  position:relative;
  z-index:1;
}

/* Dunkles Layout: edler, tiefere Schatten und Glasreflexe. */
.panel .price-showcase .price-grid[data-mode="sw"] .price-option{
  background:linear-gradient(180deg,#838c98 0%,#646d79 28%,#414955 100%) !important;
  border-color:rgba(255,255,255,.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.26),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 14px 28px rgba(0,0,0,.28),
    0 4px 10px rgba(255,255,255,.05) !important;
}
.panel .price-showcase .price-grid[data-mode="sw"] .price-option:hover{
  background:linear-gradient(180deg,#919aa6 0%,#6e7885 30%,#495361 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.30),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 16px 32px rgba(0,0,0,.32),
    0 5px 12px rgba(255,255,255,.06) !important;
}
.panel .price-showcase .price-grid[data-mode="sw"] .price-option.active{
  background:linear-gradient(180deg,#4fb0ff 0%,#0a84ff 34%,#0066d6 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 -1px 0 rgba(0,59,120,.22),
    0 16px 32px rgba(10,132,255,.34),
    0 4px 10px rgba(133,205,255,.18) !important;
}

.panel .price-showcase .price-grid[data-mode="farbe"] .price-option{
  background:linear-gradient(180deg,#ff7a7d 0%,#f2545b 26%,#d1272f 62%,#a9151b 100%) !important;
  border-color:rgba(255,255,255,.30) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -1px 0 rgba(97,8,12,.18),
    0 14px 28px rgba(137,23,28,.30),
    0 4px 10px rgba(255,106,110,.12) !important;
}
.panel .price-showcase .price-grid[data-mode="farbe"] .price-option:hover{
  background:linear-gradient(180deg,#ff8b8f 0%,#f96a6f 28%,#db3138 62%,#b51920 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    inset 0 -1px 0 rgba(97,8,12,.18),
    0 16px 32px rgba(137,23,28,.34),
    0 5px 12px rgba(255,126,130,.14) !important;
}
.panel .price-showcase .price-grid[data-mode="farbe"] .price-option.active{
  background:linear-gradient(180deg,#ff8f95 0%,#ff5a5f 24%,#e22731 62%,#c4131b 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 -1px 0 rgba(120,10,14,.18),
    0 16px 32px rgba(215,25,32,.32),
    0 4px 10px rgba(255,131,136,.18) !important;
}

/* Helles Layout: hochwertiger Frostglas-Look mit leichter Tiefe. */
html.theme-light .panel .price-showcase .price-grid[data-mode="sw"] .price-option{
  background:linear-gradient(180deg,#ffffff 0%,#f7f9fb 22%,#eef2f6 100%) !important;

  border-color:rgba(15,23,42,.10) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 -1px 0 rgba(148,163,184,.12),
    0 10px 22px rgba(15,23,42,.08),
    0 2px 5px rgba(255,255,255,.70) !important;
}
html.theme-light .panel .price-showcase .price-grid[data-mode="sw"] .price-option:hover{
  background:linear-gradient(180deg,#ffffff 0%,#fbfcfd 18%,#e9eef3 100%) !important;
  border-color:rgba(15,23,42,.14) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.99),
    inset 0 -1px 0 rgba(148,163,184,.14),
    0 12px 24px rgba(15,23,42,.10),
    0 2px 6px rgba(255,255,255,.80) !important;
}
html.theme-light .panel .price-showcase .price-grid[data-mode="sw"] .price-option.active{
  background:linear-gradient(180deg,#69bbff 0%,#0a84ff 34%,#0066d6 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.36),
    inset 0 -1px 0 rgba(0,78,161,.18),
    0 12px 24px rgba(10,132,255,.24),
    0 2px 6px rgba(116,195,255,.25) !important;
}

html.theme-light .panel .price-showcase .price-grid[data-mode="farbe"] .price-option{
  background:linear-gradient(180deg,#fffefe 0%,#fff7f7 18%,#feecee 100%) !important;
  border-color:rgba(225,39,39,.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.99),
    inset 0 -1px 0 rgba(244,114,114,.10),
    0 10px 22px rgba(71,85,105,.08),
    0 2px 5px rgba(255,255,255,.75) !important;
}
html.theme-light .panel .price-showcase .price-grid[data-mode="farbe"] .price-option:hover{
  background:linear-gradient(180deg,#ffffff 0%,#fff5f5 18%,#fee6e8 100%) !important;
  border-color:rgba(225,39,39,.24) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.99),
    inset 0 -1px 0 rgba(244,114,114,.12),
    0 12px 24px rgba(71,85,105,.10),
    0 2px 6px rgba(255,255,255,.82) !important;
}
html.theme-light .panel .price-showcase .price-grid[data-mode="farbe"] .price-option.active{
  background:linear-gradient(180deg,#ff8b8f 0%,#f2545b 28%,#c81e1e 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 -1px 0 rgba(143,22,22,.16),
    0 12px 24px rgba(71,85,105,.20),
    0 2px 6px rgba(255,131,136,.22) !important;
}



/* --- Apple Neutral Button Theme: einheitlich, plastisch, ohne Rot --- */
:root{
  --apple-neutral-text:#f8fafc;
  --apple-neutral-muted:#d7dce5;
  --apple-btn-top:#6b6f77;
  --apple-btn-mid:#4c5058;
  --apple-btn-bottom:#343840;
  --apple-btn-border:rgba(255,255,255,.30);
  --apple-btn-inner:rgba(255,255,255,.18);
  --apple-btn-shadow:0 1px 0 var(--apple-btn-inner) inset,0 -1px 0 rgba(0,0,0,.28) inset,0 12px 24px rgba(0,0,0,.22),0 2px 5px rgba(0,0,0,.18);
  --apple-btn-shadow-hover:0 1px 0 rgba(255,255,255,.26) inset,0 -1px 0 rgba(0,0,0,.30) inset,0 16px 30px rgba(0,0,0,.28),0 3px 7px rgba(0,0,0,.22);
  --apple-btn-shadow-down:0 2px 5px rgba(0,0,0,.28) inset,0 1px 0 rgba(255,255,255,.10);
  --apple-active-blue-top:#9aa0a8;
  --apple-active-blue-mid:#6b727d;
  --apple-active-blue-bottom:#454d58;
}
button,
.btn,
.chip-btn,
.icon-btn,
.toolbar-main-btn,
.icon-toggle,
.tab-btn,
.side-tab,
.variant-tab,
.size-btn,
.qty-btn,
.upload-btn,
.close-btn,
.submit-progress-close,
.undo-floating,
.motif-badge,
.price-option,
.segmented label,
.toolbar-group-buttons button,
.text-toolbar-card button,
.sidebar-editor-group button,
.panel button,
.panel .btn,
.panel .chip-btn,
.panel .icon-btn,
.panel .segmented label,
.panel .price-option,
.panel .badge,
.panel .undo-floating,
.panel .motif-badge{
  background:linear-gradient(180deg,var(--apple-btn-top) 0%,var(--apple-btn-mid) 48%,var(--apple-btn-bottom) 100%) !important;
  color:var(--apple-neutral-text) !important;
  border:1px solid var(--apple-btn-border) !important;
  box-shadow:var(--apple-btn-shadow) !important;
  text-shadow:0 -1px 0 rgba(0,0,0,.32) !important;
  transition:transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease, filter .14s ease !important;
  background-clip:padding-box !important;
}
button *,
.btn *,
.chip-btn *,
.icon-btn *,
.toolbar-main-btn *,
.icon-toggle *,
.tab-btn *,
.side-tab *,
.variant-tab *,
.size-btn *,
.qty-btn *,
.upload-btn *,
.close-btn *,
.submit-progress-close *,
.undo-floating *,
.motif-badge *,
.price-option *,
.segmented label *,
.panel button *,
.panel .btn *,
.panel .chip-btn *,
.panel .icon-btn *,
.panel .segmented label *,
.panel .price-option *{
  color:inherit !important;
  fill:currentColor !important;
  stroke:currentColor !important;
}
button:hover:not(:disabled),
.btn:hover:not(:disabled),
.chip-btn:hover:not(:disabled),
.icon-btn:hover:not(:disabled),
.toolbar-main-btn:hover:not(:disabled),
.icon-toggle:hover:not(:disabled),
.tab-btn:hover:not(:disabled),
.side-tab:hover:not(:disabled),
.variant-tab:hover:not(:disabled),
.size-btn:hover:not(:disabled),
.qty-btn:hover:not(:disabled),
.upload-btn:hover:not(:disabled),
.close-btn:hover:not(:disabled),
.submit-progress-close:hover:not(:disabled),
.undo-floating:hover:not(:disabled),
.motif-badge:hover:not(:disabled),
.price-option:hover,
.segmented label:hover,
.panel button:hover:not(:disabled),
.panel .btn:hover:not(:disabled),
.panel .chip-btn:hover:not(:disabled),
.panel .icon-btn:hover:not(:disabled),
.panel .segmented label:hover,
.panel .price-option:hover{
  background:linear-gradient(180deg,#777b84 0%,#565b63 48%,#3b4048 100%) !important;
  border-color:rgba(255,255,255,.42) !important;
  box-shadow:var(--apple-btn-shadow-hover) !important;
  color:#ffffff !important;
  filter:saturate(1.02) brightness(1.03);
}
button:active:not(:disabled),
.btn:active:not(:disabled),
.chip-btn:active:not(:disabled),
.icon-btn:active:not(:disabled),
.toolbar-main-btn:active:not(:disabled),
.icon-toggle:active:not(:disabled),
.tab-btn:active:not(:disabled),
.side-tab:active:not(:disabled),
.variant-tab:active:not(:disabled),
.size-btn:active:not(:disabled),
.qty-btn:active:not(:disabled),
.upload-btn:active:not(:disabled),
.close-btn:active:not(:disabled),
.submit-progress-close:active:not(:disabled),
.undo-floating:active:not(:disabled),
.motif-badge:active:not(:disabled),
.price-option:active,
.segmented label:active,
.panel button:active:not(:disabled),
.panel .btn:active:not(:disabled),
.panel .chip-btn:active:not(:disabled),
.panel .icon-btn:active:not(:disabled),
.panel .segmented label:active,
.panel .price-option:active{
  transform:translateY(1px) !important;
  box-shadow:var(--apple-btn-shadow-down) !important;
}
button:disabled,
.btn:disabled,
.chip-btn:disabled,
.icon-btn:disabled,
.toolbar-main-btn:disabled,
.icon-toggle:disabled,
.upload-btn:disabled,
.panel button:disabled,
.panel .btn:disabled,
.panel .chip-btn:disabled,
.panel .icon-btn:disabled{
  opacity:.58 !important;
  color:#cbd5e1 !important;
  background:linear-gradient(180deg,#5f646c,#464b54) !important;
  box-shadow:0 1px 0 rgba(255,255,255,.08) inset !important;
  cursor:not-allowed !important;
}
.btn.primary,
button.primary,
.chip-btn.active,
.icon-btn.active,
.toolbar-main-btn.active,
.icon-toggle.active,
.tab-btn.active,
.side-tab.active,
.variant-tab.active,
.size-btn.active,
.price-option.active,
.segmented input:checked + label,
button.active,
button[aria-pressed="true"],
.chip-btn[aria-pressed="true"],
.icon-btn[aria-pressed="true"],
.panel .btn.primary,
.panel .chip-btn.active,
.panel .icon-btn.active,
.panel .segmented input:checked + label,
.panel .price-option.active{
  background:linear-gradient(180deg,var(--apple-active-blue-top) 0%,var(--apple-active-blue-mid) 52%,var(--apple-active-blue-bottom) 100%) !important;
  color:#ffffff !important;
  border-color:rgba(255,255,255,.56) !important;
  box-shadow:0 1px 0 rgba(255,255,255,.26) inset,0 -1px 0 rgba(0,0,0,.34) inset,0 16px 34px rgba(0,0,0,.34),0 4px 10px rgba(0,0,0,.24) !important;
  text-shadow:0 -1px 0 rgba(0,0,0,.36) !important;
}
.canvas-quick-actions-row .toolbar-main-btn,
.canvas-quick-actions-row .toolbar-main-btn *{
  color:#000000 !important;
  fill:currentColor !important;
  stroke:currentColor !important;
}
.canvas-quick-actions-row .toolbar-main-btn{
  background:linear-gradient(180deg,#f4f4f4 0%,#e3e3e3 52%,#d1d1d1 100%) !important;
  border:1px solid rgba(0,0,0,.16) !important;
  text-shadow:none !important;
  box-shadow:0 1px 0 rgba(255,255,255,.72) inset,0 -1px 0 rgba(0,0,0,.06) inset,0 8px 16px rgba(0,0,0,.14) !important;
}
.canvas-quick-actions-row .toolbar-main-btn:hover:not(:disabled){
  background:linear-gradient(180deg,#fbfbfb 0%,#e9e9e9 52%,#d8d8d8 100%) !important;
  color:#000000 !important;
  border-color:rgba(0,0,0,.22) !important;
  box-shadow:0 1px 0 rgba(255,255,255,.82) inset,0 -1px 0 rgba(0,0,0,.07) inset,0 10px 18px rgba(0,0,0,.16) !important;
  filter:none !important;
}
.canvas-quick-actions-row .toolbar-main-btn.active,
.canvas-quick-actions-row .toolbar-main-btn[aria-pressed="true"]{
  background:linear-gradient(180deg,#ececec 0%,#d7d7d7 52%,#c6c6c6 100%) !important;
  color:#000000 !important;
  border-color:rgba(0,0,0,.24) !important;
  box-shadow:0 1px 0 rgba(255,255,255,.72) inset,0 -1px 0 rgba(0,0,0,.08) inset,0 10px 20px rgba(0,0,0,.18) !important;
  text-shadow:none !important;
}
.canvas-quick-actions-row .toolbar-main-btn.active:hover,
.canvas-quick-actions-row .toolbar-main-btn[aria-pressed="true"]:hover{
  background:linear-gradient(180deg,#f0f0f0 0%,#dddddd 52%,#cccccc 100%) !important;
  color:#000000 !important;
}

.btn.primary:hover,
button.primary:hover,
.chip-btn.active:hover,
.icon-btn.active:hover,
.toolbar-main-btn.active:hover,
.icon-toggle.active:hover,
.tab-btn.active:hover,
.side-tab.active:hover,
.variant-tab.active:hover,
.size-btn.active:hover,
.price-option.active:hover,
.segmented input:checked + label:hover,
button.active:hover,
button[aria-pressed="true"]:hover,
.panel .btn.primary:hover,
.panel .chip-btn.active:hover,
.panel .icon-btn.active:hover,
.panel .segmented input:checked + label:hover,
.panel .price-option.active:hover{
  background:linear-gradient(180deg,#a3a9b1 0%,#747c88 52%,#4e5864 100%) !important;
  border-color:rgba(255,255,255,.68) !important;
}
.btn.danger,
button.danger,
.chip-btn.danger,
.icon-btn.danger,
.delete,
.remove,
.danger,
.ampelrot,
.panel .btn.danger,
.panel button.danger,
.panel .chip-btn.danger,
.panel .icon-btn.danger,
.panel .chip-btn.ampelrot{
  background:linear-gradient(180deg,var(--apple-btn-top) 0%,var(--apple-btn-mid) 48%,var(--apple-btn-bottom) 100%) !important;
  color:var(--apple-neutral-text) !important;
  border-color:var(--apple-btn-border) !important;
  box-shadow:var(--apple-btn-shadow) !important;
  text-shadow:0 -1px 0 rgba(0,0,0,.32) !important;
}
.error,
.form-error,
.text-danger,
.validation-error,
.alert-error,
.notice-error,
.is-error,
.has-error,
.warning,
.warn,
.danger-text,
.panel .error,
.panel .form-error,
.panel .text-danger,
.panel .validation-error,
.panel .alert-error,
.panel .notice-error,
.panel .warning,
.panel .warn{
  color:var(--apple-neutral-muted) !important;
  border-color:rgba(255,255,255,.22) !important;
  background:rgba(255,255,255,.055) !important;
  box-shadow:0 10px 24px rgba(0,0,0,.12) !important;
}
.error{border-left:4px solid rgba(255,255,255,.26) !important;}
a,
.link,
.panel a{
  color:#dbe7ff !important;
}
.submit-progress-spinner{
  border-color:rgba(22,63,134,.18) !important;
  border-top-color:#0b3173 !important;
  box-shadow:0 8px 24px rgba(11,49,115,.18) !important;
}


/* --- Absolute final override: einheitliche Apple-Grau-Buttons, keine roten Preis-/Buttonfarben --- */
:root{
  --apple-final-text:#f8fafc;
  --apple-final-muted:#d8dee8;
  --apple-final-gray-top:#7b8088;
  --apple-final-gray-mid:#565c66;
  --apple-final-gray-bottom:#383e47;
  --apple-final-gray-border:rgba(255,255,255,.34);
  --apple-final-gray-shadow:inset 0 1px 0 rgba(255,255,255,.24), inset 0 -1px 0 rgba(0,0,0,.30), 0 14px 28px rgba(0,0,0,.26), 0 3px 8px rgba(0,0,0,.18);
  --apple-final-gray-shadow-hover:inset 0 1px 0 rgba(255,255,255,.32), inset 0 -1px 0 rgba(0,0,0,.32), 0 18px 34px rgba(0,0,0,.32), 0 4px 10px rgba(0,0,0,.22);
  --apple-final-blue-top:#9aa0a8;
  --apple-final-blue-mid:#6b727d;
  --apple-final-blue-bottom:#454d58;
}

/* Keine rote Schrift in der Preisbox. */
body .panel .price-showcase .price-showcase-title,
body .panel .price-showcase .price-showcase-block-title,
body .panel .price-showcase .price-showcase-subtitle,
body .panel .price-showcase .price-showcase-subtitle-farbe,
body .panel .price-showcase .big-price,
html.theme-light body .panel .price-showcase .price-showcase-title,
html.theme-light body .panel .price-showcase .price-showcase-block-title,
html.theme-light body .panel .price-showcase .price-showcase-subtitle,
html.theme-light body .panel .price-showcase .price-showcase-subtitle-farbe,
html.theme-light body .panel .price-showcase .big-price{
  color:var(--apple-final-text) !important;
  text-shadow:0 1px 1px rgba(0,0,0,.32) !important;

}
body .panel .price-showcase .price-showcase-subtitle,
body .panel .price-showcase .price-showcase-subtitle-farbe,
html.theme-light body .panel .price-showcase .price-showcase-subtitle,
html.theme-light body .panel .price-showcase .price-showcase-subtitle-farbe{
  color:var(--apple-final-muted) !important;
}

/* Alle Preisbuttons - Schwarz/Weiss und Farbe - identisch grau. */
body .panel .price-showcase .price-grid[data-mode="sw"] .price-option,
body .panel .price-showcase .price-grid[data-mode="farbe"] .price-option,
html.theme-light body .panel .price-showcase .price-grid[data-mode="sw"] .price-option,
html.theme-light body .panel .price-showcase .price-grid[data-mode="farbe"] .price-option,
body .panel .price-showcase .price-option,
html.theme-light body .panel .price-showcase .price-option{
  background:linear-gradient(180deg,var(--apple-final-gray-top) 0%,var(--apple-final-gray-mid) 48%,var(--apple-final-gray-bottom) 100%) !important;
  color:var(--apple-final-text) !important;
  border:1px solid var(--apple-final-gray-border) !important;
  border-radius:16px !important;
  box-shadow:var(--apple-final-gray-shadow) !important;
  text-shadow:0 -1px 0 rgba(0,0,0,.34) !important;
}
body .panel .price-showcase .price-grid[data-mode="sw"] .price-option *,
body .panel .price-showcase .price-grid[data-mode="farbe"] .price-option *,
html.theme-light body .panel .price-showcase .price-grid[data-mode="sw"] .price-option *,
html.theme-light body .panel .price-showcase .price-grid[data-mode="farbe"] .price-option *,
body .panel .price-showcase .price-option *,
html.theme-light body .panel .price-showcase .price-option *{
  color:var(--apple-final-text) !important;
}
body .panel .price-showcase .price-grid[data-mode="sw"] .price-option:hover,
body .panel .price-showcase .price-grid[data-mode="farbe"] .price-option:hover,
html.theme-light body .panel .price-showcase .price-grid[data-mode="sw"] .price-option:hover,
html.theme-light body .panel .price-showcase .price-grid[data-mode="farbe"] .price-option:hover,
body .panel .price-showcase .price-option:hover,
html.theme-light body .panel .price-showcase .price-option:hover{
  background:linear-gradient(180deg,#898e96 0%,#626874 48%,#424954 100%) !important;
  color:#ffffff !important;
  border-color:rgba(255,255,255,.48) !important;
  box-shadow:var(--apple-final-gray-shadow-hover) !important;
}

/* Aktive Buttons: einheitlich grau, gut lesbar in Hell/Dunkel. */
body .panel .price-showcase .price-grid[data-mode="sw"] .price-option.active,
body .panel .price-showcase .price-grid[data-mode="farbe"] .price-option.active,
html.theme-light body .panel .price-showcase .price-grid[data-mode="sw"] .price-option.active,
html.theme-light body .panel .price-showcase .price-grid[data-mode="farbe"] .price-option.active,
body .panel .price-showcase .price-option.active,
html.theme-light body .panel .price-showcase .price-option.active,
body .panel .chip-btn.active,
body .panel .icon-btn.active,
body .panel .btn.primary,
body .panel .segmented input:checked + label,
body .panel button.active,
body .panel button[aria-pressed="true"]{
  background:linear-gradient(180deg,var(--apple-final-blue-top) 0%,var(--apple-final-blue-mid) 52%,var(--apple-final-blue-bottom) 100%) !important;
  color:#ffffff !important;
  border-color:rgba(255,255,255,.58) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.26), inset 0 -1px 0 rgba(0,0,0,.38), 0 16px 34px rgba(0,0,0,.36), 0 4px 10px rgba(0,0,0,.24) !important;
  text-shadow:0 -1px 0 rgba(0,0,0,.36) !important;
}
body .panel .price-showcase .price-option.active *,
html.theme-light body .panel .price-showcase .price-option.active *,
body .panel .chip-btn.active *,
body .panel .icon-btn.active *,
body .panel .btn.primary *,
body .panel .segmented input:checked + label *{
  color:#ffffff !important;
}

/* Gefahr-/Rot-Klassen optisch ebenfalls neutralisieren. */
body .panel .btn.danger,
body .panel button.danger,
body .panel .chip-btn.danger,
body .panel .icon-btn.danger,
body .panel .chip-btn.ampelrot,
body .panel .ampelrot,
body .panel .danger,
body .panel .delete,
body .panel .remove,
body .panel .text-danger,
body .panel .danger-text,
body .panel .warning,
body .panel .warn,
body .panel .error{
  color:var(--apple-final-muted) !important;
  background:linear-gradient(180deg,var(--apple-final-gray-top) 0%,var(--apple-final-gray-mid) 48%,var(--apple-final-gray-bottom) 100%) !important;
  border-color:var(--apple-final-gray-border) !important;
  box-shadow:var(--apple-final-gray-shadow) !important;
}
body .panel .error{border-left-color:rgba(255,255,255,.28) !important;}


.secure-download-panel{
  margin:14px auto 4px;
  width:min(100%,520px);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:7px;
  text-align:center;
}
.secure-download-panel .secure-download-btn{
  min-width:min(100%,310px);
  justify-content:center;
}
.secure-download-note{
  font-size:12px;
  line-height:1.45;
  color:var(--muted);
  max-width:430px;
}
.password-modal-card{
  max-width:680px;
  text-align:left;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(244,246,249,.96));
  border:1px solid rgba(255,255,255,.72);
  box-shadow:0 26px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.9);
}
.password-modal-card h3{color:#111827!important;margin-bottom:8px}
.password-modal-card p{color:#4b5563!important;margin-bottom:14px}
.password-modal-card .input{
  width:100%;
  background:rgba(255,255,255,.92)!important;
  color:#111827!important;
  border-color:rgba(17,24,39,.18)!important;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.08)!important;
}
.password-modal-actions{display:flex;gap:10px;justify-content:center;margin-top:16px;flex-wrap:nowrap}
.password-modal-actions .btn{white-space:nowrap}



/* --- Finale Anpassung: dunkles Layout ohne rote Schrift + dezenter Download-Button --- */
html:not(.theme-light) body .panel .price-showcase,
html:not(.theme-light) body .panel .price-showcase *,
html:not(.theme-light) body .panel .price-showcase .price-showcase-title,
html:not(.theme-light) body .panel .price-showcase .price-showcase-block-title,
html:not(.theme-light) body .panel .price-showcase .price-showcase-subtitle,
html:not(.theme-light) body .panel .price-showcase .price-showcase-subtitle-farbe,
html:not(.theme-light) body .panel .price-showcase .big-price,
html:not(.theme-light) body .panel .price-showcase [class*="farbe"],
html:not(.theme-light) body .panel .price-showcase [style*="color"]{
  color:#ffffff !important;
}
html:not(.theme-light) body .panel .price-showcase .price-showcase-subtitle,
html:not(.theme-light) body .panel .price-showcase .price-showcase-subtitle-farbe{
  color:#f3f4f6 !important;
}

/* Der passwortgeschützte Download ist bewusst kleiner und dezenter unter dem Hinweis-Button. */
.secure-download-panel.secure-download-panel-compact{
  margin:8px 0 0 !important;
  width:100% !important;
  max-width:100% !important;
  align-items:stretch !important;
  gap:3px !important;
  text-align:center !important;
}
.secure-download-panel.secure-download-panel-compact .secure-download-btn{
  width:100% !important;
  min-width:0 !important;
  min-height:32px !important;
  padding:0 12px !important;
  font-size:12px !important;
  font-weight:650 !important;
  letter-spacing:-.01em !important;
  opacity:.70 !important;
  border-radius:999px !important;
  color:#f8fafc !important;
  background:linear-gradient(180deg,rgba(117,123,132,.72),rgba(63,69,78,.72)) !important;
  border:1px solid rgba(255,255,255,.18) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18), 0 5px 12px rgba(0,0,0,.16) !important;
}
.secure-download-panel.secure-download-panel-compact .secure-download-btn:hover{
  opacity:.92 !important;
  transform:translateY(-1px);
}
.secure-download-panel.secure-download-panel-compact .secure-download-note{
  display:none !important;
}
html.theme-light .secure-download-panel.secure-download-panel-compact .secure-download-btn{
  color:#111827 !important;
  background:linear-gradient(180deg,rgba(255,255,255,.78),rgba(226,230,236,.78)) !important;
  border-color:rgba(17,24,39,.14) !important;
}



/* Apple-Design fuer Vorderseite/Rueckseite-Umschalter + Live-Schnellvorschau */
.preview-topbar{
  justify-content:flex-start;
}
.preview-topbar .view-toggle{
  width:auto;
  margin:0;
  gap:12px;
  padding:6px 8px;
  border-radius:999px;
  background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.055));
  border:1px solid rgba(255,255,255,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 12px 28px rgba(0,0,0,.18);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.preview-topbar .slider-label-btn{
  min-width:96px;
  min-height:34px;
  padding:0 15px !important;
  border-radius:999px !important;
  border:1px solid rgba(255,255,255,.22) !important;
  background:linear-gradient(180deg,rgba(255,255,255,.20),rgba(255,255,255,.075)) !important;
  color:rgba(255,255,255,.88) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.24),0 8px 18px rgba(0,0,0,.16) !important;
  text-shadow:0 -1px 0 rgba(0,0,0,.28) !important;
  font-size:12px !important;
  font-weight:800 !important;
  letter-spacing:-.01em;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.preview-topbar .slider-label-btn:hover{
  background:linear-gradient(180deg,rgba(255,255,255,.28),rgba(255,255,255,.12)) !important;
  color:#fff !important;
  border-color:rgba(255,255,255,.34) !important;
  transform:translateY(-1px);
}
.preview-topbar .slider-label-btn.active{
  background:linear-gradient(180deg,#1d61d8 0%,#0a45a3 54%,#062c72 100%) !important;
  color:#fff !important;
  border-color:rgba(160,195,255,.70) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 12px 28px rgba(10,69,163,.34),0 2px 8px rgba(0,0,0,.24) !important;
}
.preview-topbar #sideSlider{
  -webkit-appearance:none;
  appearance:none;
  width:124px;
  height:10px;
  border-radius:999px;
  outline:none;
  background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(225,229,236,.88));
  border:1px solid rgba(255,255,255,.38);
  box-shadow:inset 0 2px 4px rgba(15,23,42,.18),0 1px 0 rgba(255,255,255,.18);
  cursor:pointer;
}
.preview-topbar #sideSlider::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:22px;
  height:22px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.72);
  background:linear-gradient(180deg,#35a8ff,#0a84ff);
  box-shadow:0 8px 18px rgba(10,132,255,.34),inset 0 1px 0 rgba(255,255,255,.45);
}
.preview-topbar #sideSlider::-moz-range-thumb{
  width:22px;
  height:22px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.72);
  background:linear-gradient(180deg,#35a8ff,#0a84ff);
  box-shadow:0 8px 18px rgba(10,132,255,.34),inset 0 1px 0 rgba(255,255,255,.45);
}
html.theme-light .preview-topbar .view-toggle{
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(241,245,249,.82));
  border-color:rgba(15,23,42,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 12px 26px rgba(15,23,42,.08);
}
html.theme-light .preview-topbar .slider-label-btn{
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(229,233,240,.92)) !important;
  color:#334155 !important;
  border-color:rgba(15,23,42,.13) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 8px 18px rgba(15,23,42,.07) !important;
  text-shadow:none !important;
}
html.theme-light .preview-topbar .slider-label-btn.active{
  background:linear-gradient(180deg,#1d74ff,#0a58d8) !important;
  color:#fff !important;
  border-color:rgba(10,88,216,.34) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.30),0 12px 24px rgba(10,88,216,.20) !important;
}
@media (max-width:720px){
  .preview-topbar .view-toggle{gap:8px;padding:5px 6px}
  .preview-topbar .slider-label-btn{min-width:78px;min-height:32px;padding:0 11px!important;font-size:11px!important}
  .preview-topbar #sideSlider{width:94px}
}


/* Apple-Popup fuer Druckdaten-Hinweise */
.quality-warning-modal{background:rgba(15,23,42,.26);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.quality-warning-card{width:min(420px,calc(100vw - 36px));max-width:420px;border-radius:26px;padding:18px 18px 16px;background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(246,248,252,.94));border:1px solid rgba(255,255,255,.78);box-shadow:0 26px 70px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.96);animation:qualityWarningPop .18s ease-out;color:#111827;text-align:left}
.quality-warning-head{display:flex;align-items:center;gap:10px;margin:0 0 10px}
.quality-warning-dot{width:28px;height:28px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#fff7ed,#fed7aa);border:1px solid rgba(251,146,60,.40);color:#9a3412;font-weight:900;box-shadow:inset 0 1px 0 rgba(255,255,255,.78)}
.quality-warning-card h3{margin:0;font-size:16px;line-height:1.25;color:#111827!important}
.quality-warning-list{display:grid;gap:8px;margin:6px 0 14px}
.quality-warning-list-item{padding:9px 11px;border-radius:16px;background:rgba(255,255,255,.72);border:1px solid rgba(17,24,39,.10);font-size:13px;line-height:1.42;color:#374151!important}
.quality-warning-actions{display:flex;justify-content:flex-end;margin-top:2px}
.quality-warning-actions .btn{min-width:92px;padding:8px 18px;border-radius:999px}
@keyframes qualityWarningPop{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}


/* Apple-Startpopup fuer VIP20-Angebot */
.vip20-start-overlay{
  position:fixed;
  inset:0;
  z-index:2147483000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(15,23,42,.28);
  backdrop-filter:blur(18px) saturate(1.12);
  -webkit-backdrop-filter:blur(18px) saturate(1.12);
  pointer-events:auto;
}
.vip20-start-overlay.is-hidden{display:none!important}
.vip20-start-card{
  position:relative;
  width:min(520px,calc(100vw - 42px));
  border-radius:30px;
  padding:30px 30px 26px;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(246,248,252,.95));
  border:1px solid rgba(255,255,255,.82);
  box-shadow:0 30px 85px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.98);
  color:#111827;
  text-align:center;
  animation:vip20StartPop .22s cubic-bezier(.2,.8,.2,1);
  overflow:hidden;
  pointer-events:auto;
}
.vip20-start-card::before{
  content:"";
  position:absolute;
  inset:10px;
  border-radius:24px;
  padding:3px;
  background:repeating-conic-gradient(from var(--vip20-angle,0deg),#ef4444 0deg 8deg,transparent 8deg 16deg);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  pointer-events:none;
  animation:vip20DashMove 1.15s linear infinite;
}
.vip20-start-content{position:relative;z-index:1}
.vip20-start-eyebrow{
  margin:0 0 8px;
  font-size:13px;
  line-height:1.3;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#374151!important;
}
.vip20-start-percent{
  margin:0 0 10px;
  font-size:72px;
  line-height:.9;
  font-weight:950;
  letter-spacing:-.055em;
  color:#e11d48!important;
  text-align:center;
  text-shadow:0 12px 28px rgba(225,29,72,.20);
}
.vip20-start-text{
  max-width:410px;
  margin:0 auto 22px;
  font-size:17px;
  line-height:1.48;
  font-weight:600;
  color:#1f2937!important;
}
.vip20-start-code{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:4px 0;
  padding:5px 12px;
  border-radius:999px;
  background:rgba(225,29,72,.10);
  color:#e11d48!important;
  border:1px solid rgba(225,29,72,.22);
  font-weight:900;
  letter-spacing:.08em;
}
.vip20-start-actions{display:flex;justify-content:center;margin-top:2px}
.vip20-start-ok{
  min-width:116px;
  border:0;
  border-radius:999px;
  padding:11px 24px;
  background:linear-gradient(180deg,#1d61d8 0%,#0a45a3 54%,#062c72 100%);
  color:#fff!important;
  font-size:15px;
  line-height:1;
  font-weight:900;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.30),0 14px 30px rgba(10,69,163,.32),0 2px 8px rgba(0,0,0,.22);
}
.vip20-start-ok:focus{outline:3px solid rgba(10,132,255,.28);outline-offset:3px}
@keyframes vip20StartPop{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes vip20DashMove{to{--vip20-angle:360deg}}
@property --vip20-angle{syntax:"<angle>";inherits:false;initial-value:0deg}
html.theme-light .vip20-start-overlay{background:rgba(226,232,240,.40)}



/* --- FIX: Tipps duerfen Buttons nicht blockieren, X bleibt klickbar --- */
.template-tip-bubble,
.toolbar-tip-bubble,
.undo-redo-tip-bubble{
  pointer-events:none !important;
}
.template-tip-close,
.template-tip-bubble button,
.toolbar-tip-bubble button,
.undo-redo-tip-bubble button{
  pointer-events:auto !important;
}

/* --- FIX: Karton-Auswahl lesbar + Berechnung ohne Ueberlauf --- */
.paper-choice-card{
  box-sizing:border-box !important;
  max-width:100% !important;
  overflow:hidden !important;
}
.paper-choice-card .paper-choice-copy{
  min-width:0 !important;
  overflow:hidden !important;
}
.paper-choice-card .paper-choice-copy strong,
.paper-choice-card .paper-choice-copy small{
  display:block !important;
  min-width:0 !important;
  white-space:normal !important;
  overflow-wrap:break-word !important;
  word-break:normal !important;
  text-shadow:none !important;
}
.paper-choice-card .paper-choice-copy strong{
  color:#111827 !important;
}
.paper-choice-card .paper-choice-copy small{
  color:#374151 !important;
}
.paper-choice-grid input:checked + .paper-choice-card .paper-choice-copy strong,
.paper-choice-grid input:checked + .paper-choice-card .paper-choice-copy small{
  color:#ffffff !important;
  text-shadow:none !important;
}
html.theme-light .paper-choice-card .paper-choice-copy strong{
  color:#111827 !important;
}
html.theme-light .paper-choice-card .paper-choice-copy small{
  color:#374151 !important;
}
html.theme-light .paper-choice-grid input:checked + .paper-choice-card .paper-choice-copy strong,
html.theme-light .paper-choice-grid input:checked + .paper-choice-card .paper-choice-copy small{
  color:#ffffff !important;
}
.price-row{
  align-items:flex-start !important;
}
.price-row span{
  flex:1 1 auto !important;
  min-width:0 !important;
}
.price-row strong{
  min-width:0 !important;
}
#calcPaper{
  display:block !important;
  flex:0 1 58% !important;
  max-width:58% !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
  line-height:1.25 !important;
  text-align:right !important;
}


/* --- FIX: Lange Personennamen umbrechen, ohne Buttons zu blockieren --- */
.person-name-input{
  min-height:48px;
  line-height:1.35;
  resize:vertical;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.motif-switcher{
  flex-wrap:wrap;
  align-items:center;
}
.motif-switcher .chip-btn,
.motif-badge{
  white-space:normal;
  line-height:1.2;
  overflow-wrap:anywhere;
  word-break:break-word;
  text-align:center;
}
.motif-switcher .chip-btn{
  max-width:220px;
  position:relative;
  z-index:2;
  pointer-events:auto;
}
.motif-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:1 1 180px;
  min-width:140px;
  max-width:320px;
  pointer-events:none;
}
.group-header{
  align-items:flex-start;
}
#enableMultiMotifBtn{
  position:relative;
  z-index:5;
  pointer-events:auto;
  width:100%;
}
.motif-overview-card-title{
  min-width:0;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* --- Korrektur: Text im hellen Layout lesbar machen --- */
html.theme-light body .panel .price-showcase .price-showcase-title,
html.theme-light body .panel .price-showcase .price-showcase-block-title,
html.theme-light body .panel .price-showcase .big-price{
  color:#111827 !important;
  text-shadow:none !important;
}
html.theme-light body .panel .price-showcase .price-showcase-subtitle,
html.theme-light body .panel .price-showcase .price-showcase-subtitle-farbe{
  color:#374151 !important;
  text-shadow:none !important;
}
html.theme-light .paper-choice-grid input:checked + .paper-choice-card .paper-choice-copy strong{
  color:#111827 !important;
  text-shadow:none !important;
}
html.theme-light .paper-choice-grid input:checked + .paper-choice-card .paper-choice-copy small{
  color:#374151 !important;
  text-shadow:none !important;
}



/* --- Buttontexte im hellen Layout klarer und schärfer --- */
html.theme-light .toolbar-main-btn,
html.theme-light .toolbar-insert-row .chip-btn,
html.theme-light .editor-footer .btn,
html.theme-light .editor-footer .badge{
  color:#1f2937 !important;
  text-shadow:none !important;
  filter:none !important;
  letter-spacing:0 !important;
  font-weight:800 !important;
  font-size:13px !important;
  line-height:1.15 !important;
  -webkit-font-smoothing:auto !important;
  -moz-osx-font-smoothing:auto !important;
}
html.theme-light .toolbar-main-btn *,
html.theme-light .toolbar-insert-row .chip-btn *,
html.theme-light .editor-footer .btn *,
html.theme-light .editor-footer .badge *{
  color:inherit !important;
  text-shadow:none !important;
  filter:none !important;
  -webkit-font-smoothing:auto !important;
  -moz-osx-font-smoothing:auto !important;
}


/* --- Buttons Text hinzufügen / Bild hinzufügen / Element löschen: Text 20% größer --- */
.toolbar-insert-row .toolbar-main-btn{
  font-size:13.2px !important;
}
@media (max-width:768px){
  .toolbar-insert-row .toolbar-main-btn{
    font-size:14.4px !important;
  }
}


/* --- Premium-Karton Rahmen wie Berechnung --- */
.paper-choice-group{
  border:1px solid var(--line);
  background:transparent;
  border-radius:20px;
  padding:16px;
}


/* --- Weitere Person Rahmen wie Berechnung --- */
.compact-action-group{
  border:1px solid var(--line);
  background:transparent;
  border-radius:20px;
  padding:16px;
}
.compact-action-group .group-header{
  width:100%;
}
.compact-action-group #enableMultiMotifBtn{
  width:100%;
  max-width:none;
}


/* --- Buttons Aktive Seite / Seite leeren / Seite kopieren 17% groesser --- */
#activeSideBadge,
#clearSideBtn,
#duplicateToBackBtn{
  min-height:33px !important;
  padding:0 9px !important;
  font-size:12.87px !important;
}
#activeSideBadge,
#clearSideBtn,
#duplicateToBackBtn{
  min-width:129px !important;
}


/* --- Abstand obere Produktionsbuttons zum unteren Button ca. 3 mm --- */
.top-toolbar > div:first-child{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  column-gap:8px;
  row-gap:3mm;
}

/* --- Kleine Icons/Images: Anfasser außerhalb anzeigen, damit die Größe sichtbar bleibt --- */
.surface-element.image-el.compact-handles.selected{
  box-shadow:0 0 0 1.5px rgba(10,132,255,.86);
}
.surface-element.image-el.compact-handles .resize-handle{
  width:8px !important;
  height:8px !important;
  background:rgba(255,255,255,.82) !important;
  border:1px solid rgba(10,132,255,.90) !important;
  box-shadow:0 1px 5px rgba(15,23,42,.16) !important;
}
.surface-element.image-el.compact-handles .resize-handle.n,
.surface-element.image-el.compact-handles .resize-handle.e,
.surface-element.image-el.compact-handles .resize-handle.s,
.surface-element.image-el.compact-handles .resize-handle.w,
.surface-element.image-el.compact-handles .resize-handle.crop{
  display:none !important;
}
.surface-element.image-el.compact-handles .resize-handle.nw{left:-12px !important;top:-12px !important}
.surface-element.image-el.compact-handles .resize-handle.ne{right:-12px !important;top:-12px !important}
.surface-element.image-el.compact-handles .resize-handle.se{right:-12px !important;bottom:-12px !important}
.surface-element.image-el.compact-handles .resize-handle.sw{left:-12px !important;bottom:-12px !important}
.surface-element.image-el.compact-handles .resize-handle.rotate{
  right:-18px !important;
  top:-18px !important;
  width:14px !important;
  height:14px !important;
  font-size:9px !important;
}

/* --- KI-Bild-Erstellung --- */
.toolbar-ki-row{
  display:flex;
  justify-content:center;
  margin-top:7px;
}
.toolbar-ki-row .toolbar-main-btn{
  min-width:150px;
}
.ai-image-modal{
  z-index:3900;
  background:rgba(15,23,42,.36);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.ai-image-card{
  width:min(956px,calc(100vw - 36px));
  max-width:956px;
  border-radius:0;
  padding:32px 60px 28px;
  background:#f8fafc;
  color:#111827;
  box-shadow:0 22px 70px rgba(0,0,0,.34);
}
.ai-image-card p,
.ai-image-card label,
.ai-image-card h3,
.ai-image-card strong{
  color:#111827!important;
  text-shadow:none!important;
}
.ai-image-legal-text{
  margin:0 0 24px;
  font-size:16px;
  line-height:1.45;
}
.ai-image-legal-text a{
  color:#adc900!important;
  text-decoration:underline;
}
.ai-image-legal-actions{
  display:flex;
  justify-content:space-between;
  gap:28px;
  margin-top:76px;
}
.ai-image-green-btn{
  min-width:200px;
  min-height:40px;
  border:0;
  border-radius:0;
  background:#b7d900;
  color:#fff!important;
  font-weight:800;
  font-size:16px;
  cursor:pointer;
  box-shadow:0 2px 6px rgba(15,23,42,.16);
}
.ai-image-green-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}
.ai-image-generator{
  display:grid;
  gap:18px;
}
.ai-image-generator.hidden,
.ai-image-legal.hidden{
  display:none!important;
}
.ai-image-generator-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
}
.ai-image-generator h3{
  margin:0;
  font-size:20px;
  line-height:1.25;
}
.ai-image-close{
  border:0;
  background:rgba(15,23,42,.08);
  color:#111827!important;
  border-radius:999px;
  width:32px;
  height:32px;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.ai-image-prompt{
  width:100%;
  min-height:110px;
  resize:vertical;
  border:1px solid rgba(15,23,42,.14);
  border-radius:8px;
  padding:14px 12px;
  background:#fff;
  color:#111827!important;
  font-size:15px;
  line-height:1.45;
}
.ai-image-inspire{
  border:0!important;
  background:transparent!important;
  color:#0b2a5b!important;
  box-shadow:none!important;
  text-shadow:none!important;
  font-weight:800;
  cursor:pointer;
  width:max-content;
  padding:0!important;
}
.ai-image-inspire:hover,
.ai-image-inspire:focus{
  color:#0b2a5b!important;
  background:transparent!important;
  box-shadow:none!important;
  text-shadow:none!important;
}
.ai-image-shapes{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.ai-image-shape{
  display:grid;
  gap:6px;
  justify-items:center;
  min-width:74px;
  padding:10px 8px 8px;
  border:1px solid rgba(15,23,42,.22);
  border-radius:6px;
  background:#fff;
  color:#111827!important;
  cursor:pointer;
}
.ai-image-shape.active{
  border:3px solid #b7d900;
  padding:8px 6px 6px;
}
.ai-image-shape-icon{
  width:32px;
  height:32px;
  border:1.5px solid #111827;
  display:block;
}
.ai-image-shape-icon.vertical{width:18px;height:38px}
.ai-image-shape-icon.horizontal{width:38px;height:18px;margin-top:10px;margin-bottom:10px}
.ai-image-shape-icon.square{width:28px;height:28px;margin-top:5px;margin-bottom:5px}
.ai-image-results{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.ai-image-result{
  display:grid;
  gap:8px;
  padding:8px;
  border:1px solid rgba(15,23,42,.12);
  border-radius:12px;
  background:#fff;
}
.ai-image-result img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:8px;
  background:#e5e7eb;
}
.ai-image-result button{
  min-height:34px;
}
.ai-image-status{
  min-height:22px;
  font-size:13px;
  color:#475569!important;
}
html:not(.theme-light) .ai-image-card,
html:not(.theme-light) .ai-image-card p,
html:not(.theme-light) .ai-image-card label,
html:not(.theme-light) .ai-image-card h3,
html:not(.theme-light) .ai-image-card strong{
  color:#111827!important;
}
@media (max-width:720px){
  .ai-image-card{
    padding:24px 20px;
  }
  .ai-image-legal-actions{
    margin-top:42px;
    flex-direction:column;
  }
  .ai-image-green-btn{
    width:100%;
  }
  .ai-image-results{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


/* --- Nachbestellung / DSGVO-Speicherhinweis --- */
.reorder-hero-actions{
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.reorder-hero-btn{
  min-height:40px;
  padding:0 18px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,.08));
  color:#fff!important;
  font-weight:800;
  letter-spacing:-.01em;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.20),0 10px 22px rgba(15,23,42,.18);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.reorder-hero-info{
  min-width:40px;
  min-height:40px;
  padding:0 13px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,.08));
  color:#fff!important;
  font-size:15px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.20),0 10px 22px rgba(15,23,42,.18);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.reorder-hero-info:hover,
.reorder-hero-info:focus-visible,
.reorder-hero-btn:hover,
.reorder-hero-btn:focus-visible{
  border-color:rgba(255,255,255,.34);
  background:linear-gradient(180deg,rgba(255,255,255,.24),rgba(255,255,255,.11));
}
html.theme-light .reorder-hero-info{
  background:linear-gradient(180deg,#ffffff,#edf1f6);
  border-color:rgba(15,23,42,.18);
  color:#0f172a!important;
}
.reorder-info-modal-card{
  max-width:620px;
  padding:30px 28px 24px;
  border-radius:30px;
  border:1px solid rgba(255,255,255,.58);
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(242,245,249,.92));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 30px 70px rgba(15,23,42,.26),0 8px 24px rgba(15,23,42,.12);
  backdrop-filter:blur(24px) saturate(180%);
  -webkit-backdrop-filter:blur(24px) saturate(180%);
  color:#0f172a !important;
}
.reorder-info-modal-card h3{
  margin:0 0 14px;
  font-size:28px;
  line-height:1.12;
  letter-spacing:-.02em;
  color:#0f172a !important;
}
.reorder-info-modal-card p{
  margin:0 0 14px;
  font-size:17px;
  line-height:1.62;
  color:#334155 !important;
}
.reorder-info-modal-card p:last-of-type{
  margin-bottom:0;
}
.reorder-info-modal-card .btn-row{
  margin-top:20px;
  justify-content:center;
}
.reorder-info-modal-card .btn.primary{
  min-width:160px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background:linear-gradient(180deg,#7b8797,#556273);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.42),0 10px 24px rgba(15,23,42,.18);
}
html.theme-light .reorder-info-modal-card{
  border-color:rgba(15,23,42,.10);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 26px 60px rgba(15,23,42,.14),0 6px 18px rgba(15,23,42,.08);
}
html.theme-light .reorder-hero-btn{
  background:linear-gradient(180deg,#ffffff,#eef2f7);
  color:#0f172a!important;
  border-color:rgba(15,23,42,.12);
}
.reorder-save-group{
  display:grid;
  gap:12px;
}
.reorder-save-toggle{
  width:100%;
  padding:18px 18px 16px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:26px;
  background:
    radial-gradient(circle at 18% 0%,rgba(255,255,255,.22),transparent 34%),
    linear-gradient(180deg,rgba(255,255,255,.15),rgba(255,255,255,.07));
  color:inherit;
  text-align:left;
  cursor:pointer;
  display:grid;
  gap:10px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.20),0 18px 38px rgba(0,0,0,.24);
  backdrop-filter:blur(22px) saturate(170%);
  -webkit-backdrop-filter:blur(22px) saturate(170%);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.reorder-save-toggle-title{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  font-size:17px;
  font-weight:900;
  line-height:1.18;
  letter-spacing:-.025em;
  color:#f9fafb;
}
.reorder-save-toggle-indicator{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  height:32px;
  margin-top:-5px;
  padding:0 12px 0 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.30);
  background:linear-gradient(180deg,rgba(255,255,255,.28),rgba(255,255,255,.12));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.30),0 8px 18px rgba(0,0,0,.18);
  color:#fff;
  font-size:13px;
  font-weight:850;
  line-height:1;
  gap:7px;
  white-space:nowrap;
  flex:0 0 auto;
}
.reorder-save-toggle-symbol{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:16px;
  font-size:20px;
  font-weight:900;
  line-height:1;
}
.reorder-save-toggle-label{
  display:inline-flex;
  align-items:center;
  font-size:12px;
  font-weight:850;
  letter-spacing:-.01em;
  line-height:1;
}
.reorder-save-toggle:hover,
.reorder-save-toggle:focus-visible{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.30);
  background:
    radial-gradient(circle at 18% 0%,rgba(255,255,255,.28),transparent 36%),
    linear-gradient(180deg,rgba(255,255,255,.19),rgba(255,255,255,.09));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.24),0 22px 44px rgba(0,0,0,.28);
}
.reorder-save-toggle:hover .reorder-save-toggle-title,
.reorder-save-toggle:focus-visible .reorder-save-toggle-title{
  color:#fff;
}
.reorder-save-toggle:focus-visible{
  outline:2px solid rgba(255,255,255,.55);
  outline-offset:4px;
}
.reorder-save-content{
  display:grid;
  gap:12px;
  padding:16px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:24px;
  background:linear-gradient(180deg,rgba(255,255,255,.11),rgba(255,255,255,.055));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 14px 30px rgba(0,0,0,.18);
  backdrop-filter:blur(18px) saturate(160%);
  -webkit-backdrop-filter:blur(18px) saturate(160%);
}
html.theme-light .reorder-save-toggle{
  border-color:rgba(15,23,42,.10);
  background:
    radial-gradient(circle at 18% 0%,rgba(255,255,255,.95),transparent 34%),
    linear-gradient(180deg,#ffffff,#eef2f7);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 16px 32px rgba(15,23,42,.12);
}
html.theme-light .reorder-save-toggle-title{
  color:#0f172a;
}
html.theme-light .reorder-save-toggle-indicator{
  border-color:rgba(15,23,42,.12);
  background:linear-gradient(180deg,#ffffff,#e7ecf3);
  color:#0f172a;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 8px 18px rgba(15,23,42,.12);
}
html.theme-light .reorder-save-toggle:hover,
html.theme-light .reorder-save-toggle:focus-visible{
  border-color:rgba(15,23,42,.18);
  background:
    radial-gradient(circle at 18% 0%,rgba(255,255,255,1),transparent 36%),
    linear-gradient(180deg,#ffffff,#e8edf4);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 20px 38px rgba(15,23,42,.16);
}
html.theme-light .reorder-save-toggle:hover .reorder-save-toggle-title,
html.theme-light .reorder-save-toggle:focus-visible .reorder-save-toggle-title{
  color:#0f172a;
}
html.theme-light .reorder-save-content{
  border-color:rgba(15,23,42,.10);
  background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(241,245,249,.88));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 14px 30px rgba(15,23,42,.10);
}
.reorder-save-grid{
  display:grid;
  gap:10px;
}
.reorder-save-grid label{
  display:grid;
  gap:5px;
  font-size:12px;
  font-weight:800;
  color:var(--muted);
}
.reorder-save-grid .input{
  width:100%;
}
.reorder-consent-row{
  display:flex;
  align-items:flex-start;
  gap:9px;
  font-size:12px;
  line-height:1.45;
  color:var(--muted);
}
.reorder-consent-row input{
  margin-top:3px;
  flex:0 0 auto;
}
.reorder-note{
  margin:0;
  font-size:12px;
  line-height:1.45;
  color:var(--muted);
}


/* --- Helles Layout: Nachbestellung- und Layout-Button besser lesbar --- */
html.theme-light .reorder-hero-btn,
html.theme-light .theme-switch{
  background:linear-gradient(180deg,#ffffff,#edf1f6) !important;
  color:#0f172a !important;
  border-color:rgba(15,23,42,.18) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 10px 24px rgba(15,23,42,.13) !important;
  text-shadow:none !important;
  -webkit-font-smoothing:auto !important;
  -moz-osx-font-smoothing:auto !important;
}
html.theme-light .reorder-hero-btn:hover,
html.theme-light .theme-switch:hover{
  background:linear-gradient(180deg,#ffffff,#e4e9f0) !important;
  color:#0f172a !important;
  border-color:rgba(15,23,42,.24) !important;
  text-shadow:none !important;
}
html.theme-light .theme-switch-text{
  color:#0f172a !important;
  text-shadow:none !important;
  font-weight:800 !important;
}
html.theme-light .theme-switch-track{
  background:rgba(15,23,42,.12) !important;
  box-shadow:inset 0 1px 3px rgba(15,23,42,.18) !important;
}
html.theme-light .theme-switch-knob{
  background:#0f172a !important;
  box-shadow:0 2px 6px rgba(15,23,42,.25) !important;
}


/* --- Mobile Ansicht: Visitenkarte volle Breite, Buttons sauber zentriert --- */
@media (max-width:640px){
  html,
  body{
    max-width:100%;
    overflow-x:hidden;
  }

  .page{
    width:100%;
    max-width:100%;
    padding:6px !important;
    box-sizing:border-box;
  }

  .grid,
  #editorPanel,
  .preview-stage,
  #quickTemplatesGroup,
  .text-toolbar-stage,
  .mobile-editor-dock,
  .mobile-tool-grid{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box;
  }

  #editorPanel{
    padding:8px !important;
    border-radius:20px !important;
  }

  .preview-stage{
    padding:8px !important;
    gap:9px !important;
    border-radius:20px !important;
    overflow:visible !important;
  }

  #quickTemplatesGroup{
    padding:8px !important;
    gap:9px !important;
    border-radius:18px !important;
    overflow:visible !important;
  }

  #cardWrap.card-wrap{
    width:calc(100vw - 32px) !important;
    max-width:100% !important;
    min-width:0 !important;
    margin-left:auto !important;
    margin-right:auto !important;
    border-radius:12px !important;
    box-shadow:0 14px 34px rgba(15,23,42,.22) !important;
  }

  .preview-topbar{
    width:100% !important;
    max-width:100% !important;
    padding-right:0 !important;
    min-height:auto !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:7px !important;
    overflow:visible !important;
  }

  .view-toggle{
    width:100% !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 74px minmax(0,1fr) !important;
    gap:6px !important;
    align-items:center !important;
  }

  .view-toggle input[type="range"]{
    width:74px !important;
    min-width:0 !important;
  }

  .history-actions{
    position:static !important;
    width:100% !important;
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:7px !important;
    margin:0 !important;
    padding:0 !important;
  }

  .template-actions,
  .toolbar-insert-row{
    width:100% !important;
    max-width:100% !important;
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:7px !important;
  }

  .canvas-quick-actions-row{
    width:100% !important;
    max-width:100% !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:2mm !important;
    margin-top:2mm !important;
    margin-bottom:2mm !important;
  }

  .template-actions .chip-btn,
  .toolbar-insert-row .chip-btn,
  .toolbar-main-btn,
  .chip-btn,
  .btn,
  .badge,
  .undo-floating,
  .motif-badge,
  .slider-label-btn,
  .price-option{
    min-width:0 !important;
    max-width:100% !important;
    width:100% !important;
    box-sizing:border-box !important;
    justify-content:center !important;
    align-items:center !important;
    text-align:center !important;
    white-space:normal !important;
    overflow-wrap:break-word !important;
    word-break:normal !important;
    hyphens:auto !important;
    line-height:1.15 !important;
    padding:8px 6px !important;
    font-size:11px !important;
    letter-spacing:-.01em !important;
    border-radius:999px !important;
  }

  .toolbar-main-btn{
    min-height:38px !important;
    font-size:10.5px !important;
    padding-left:4px !important;
    padding-right:4px !important;
  }

  #deleteElementBtn.toolbar-main-btn{
    min-width:0 !important;
    white-space:normal !important;
  }

  .mobile-tool-grid .group,
  .mobile-tool-grid .sidebar-editor-group,
  .text-toolbar-card,
  .toolbar-insert-card{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    padding:10px !important;
    border-radius:18px !important;
  }

  .mobile-tool-grid .sidebar-two-up,
  .mobile-tool-grid .sidebar-two-up.keep-inline-mobile{
    grid-template-columns:1fr !important;
  }

  .mobile-tool-grid .toolbar-group-buttons.keep-two-mobile,
  .mobile-tool-grid .text-style-buttons{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

  .apple-pill,
  .metric-pill{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  .metric-pill{
    grid-template-columns:36px minmax(70px,1fr) minmax(92px,1fr) !important;
    gap:8px !important;
    padding:10px !important;
  }

  .metric-input-box,
  .metric-input-box.has-unit{
    width:100% !important;
    min-width:0 !important;
  }

  .select,
  .input,
  .textarea{
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }
}

@media (max-width:380px){
  .toolbar-insert-row,
  .template-actions{
    gap:5px !important;
  }

  .toolbar-main-btn,
  .template-actions .chip-btn,
  .slider-label-btn,
  .undo-floating{
    font-size:10px !important;
    padding-left:3px !important;
    padding-right:3px !important;
  }

  .view-toggle{
    grid-template-columns:minmax(0,1fr) 62px minmax(0,1fr) !important;
  }

  .view-toggle input[type="range"]{
    width:62px !important;
  }
}


/* --- Mobile Korrektur: Karte bearbeitbar, Tipps logisch im Fluss --- */
@media (max-width:640px){
  .preview-stage{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
  }

  #quickTemplatesGroup{
    display:grid !important;
    grid-template-columns:1fr !important;
  }

  .preview-stage > .preview-topbar,
  .preview-stage > #cardWrap,
  .preview-stage > .editor-status-row,
  .preview-stage > .editor-diagnostics,
  .preview-stage > .card-hint,
  .preview-stage > .template-tip-bubble{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
  }

  #cardWrap.card-wrap{
    width:100% !important;
    max-width:100% !important;
    align-self:center !important;
    flex:0 0 auto !important;
    touch-action:none !important;
  }

  #cardSurfaceFront,
  #cardSurfaceBack,
  #cardWrap .card-surface{
    touch-action:none !important;
  }

  #templateTipBubble,
  #undoRedoTipBubble,
  #actionTipBubble,
  #ornamentTipBubble,
  #multiPersonTipBubble,
  #resizeModeTipBubble,
  #paperTipBubble{
    width:100% !important;
    max-width:100% !important;
    justify-self:stretch !important;
    align-self:stretch !important;
    margin:0 0 10px 0 !important;
    padding:10px 38px 12px 14px !important;
    box-sizing:border-box !important;
    border-radius:22px !important;
  }

  #templateTipBubble::after,
  #undoRedoTipBubble::after,
  #actionTipBubble::after,
  #ornamentTipBubble::after,
  #multiPersonTipBubble::after,
  #resizeModeTipBubble::after,
  #paperTipBubble::after{
    left:50% !important;
    right:auto !important;
    transform:translateX(-50%) rotate(45deg) !important;
  }

  .panel #templateTipBubble .template-tip-label,
  .panel #actionTipBubble .template-tip-label,
  .panel #undoRedoTipBubble .template-tip-label,
  .panel #ornamentTipBubble .template-tip-label,
  .panel #multiPersonTipBubble .template-tip-label,
  .panel #resizeModeTipBubble .template-tip-label,
  .panel #paperTipBubble .template-tip-label,
  .panel #templateTipBubble .template-tip-text,
  .panel #actionTipBubble .template-tip-text,
  .panel #undoRedoTipBubble .template-tip-text,
  .panel #ornamentTipBubble .template-tip-text,
  .panel #multiPersonTipBubble .template-tip-text,
  .panel #resizeModeTipBubble .template-tip-text,
  .panel #paperTipBubble .template-tip-text{
    width:100% !important;
    margin:0 !important;
    text-align:left !important;
  }

  .template-tip-close{
    right:10px !important;
    top:8px !important;
  }

  .preview-topbar{
    order:2 !important;
  }

  #cardWrap{
    order:3 !important;
  }

  .editor-status-row{
    order:4 !important;
  }

  .editor-diagnostics{
    order:5 !important;
  }

  .card-hint{
    order:6 !important;
  }

  .text-toolbar-stage{
    margin-top:0 !important;
  }

  #actionTipBubble{
    margin-bottom:8px !important;
  }
}


/* --- Kompakte Apple-Accordion-Preisliste --- */
.price-showcase.price-showcase-accordion{
  padding:16px !important;
  gap:12px !important;
  border-radius:22px !important;
  background:linear-gradient(180deg,rgba(75,75,75,.96),rgba(52,52,52,.96)) !important;
  border:1px solid rgba(255,255,255,.18) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 18px 38px rgba(0,0,0,.18) !important;
}
.price-showcase-accordion .price-showcase-title{
  margin:0 !important;
  font-size:20px !important;
  line-height:1.12 !important;
  color:#ffffff !important;
  text-shadow:0 1px 1px rgba(0,0,0,.32) !important;
}
.price-summary-card{
  display:grid;
  gap:10px;
  padding:12px;
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.06));
  border:1px solid rgba(255,255,255,.16);
}
.price-summary-copy{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
}
.price-summary-label{
  color:rgba(255,255,255,.86) !important;
  font-size:13px;
  line-height:1.25;
  font-weight:700;
}
.price-summary-value{
  color:#ffffff !important;
  font-size:28px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.04em;
  white-space:nowrap;
  text-shadow:0 1px 1px rgba(0,0,0,.28);
}
.price-showcase-toggle{
  appearance:none;
  width:100%;
  min-height:36px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,.08));
  color:#ffffff !important;
  font:800 13px/1 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10);
}
.price-showcase-list{
  display:grid;
  gap:10px;
}
.price-accordion-section{
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;
  overflow:hidden;
  background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.04));
}
.price-accordion-section summary{
  list-style:none;
  cursor:pointer;
  padding:12px 14px;
  color:#ffffff !important;
  font-weight:900;
  font-size:14px;
  line-height:1.2;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.price-accordion-section summary::-webkit-details-marker{display:none}
.price-accordion-section summary::after{
  content:"⌄";
  opacity:.86;
  font-size:16px;
}
.price-accordion-section[open] summary::after{
  content:"⌃";
}
.price-accordion-content{
  display:grid;
  gap:10px;
  padding:0 12px 12px;
}
.price-showcase-accordion .price-showcase-block{
  gap:6px !important;
}
.price-showcase-accordion .price-showcase-subtitle{
  margin:0 !important;
  color:rgba(255,255,255,.78) !important;
  font-size:12px !important;
  line-height:1.25 !important;
  font-weight:800 !important;
  text-shadow:none !important;
}
.price-showcase-accordion .price-grid.price-row-list{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:6px !important;
}
.price-showcase-accordion .price-option.price-row-option,
html.theme-light .price-showcase-accordion .price-option.price-row-option{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  width:100% !important;
  min-height:34px !important;
  padding:8px 10px !important;
  border-radius:12px !important;
  border:1px solid rgba(255,255,255,.18) !important;
  background:linear-gradient(180deg,rgba(255,255,255,.13),rgba(255,255,255,.06)) !important;
  color:#ffffff !important;
  box-shadow:none !important;
  text-align:left !important;
}
.price-showcase-accordion .price-option.price-row-option .qty,
.price-showcase-accordion .price-option.price-row-option .amt{
  color:#ffffff !important;
  font-size:13px !important;
  line-height:1.15 !important;
  font-weight:800 !important;
  white-space:nowrap !important;
}
.price-showcase-accordion .price-option.price-row-option .amt{
  font-weight:900 !important;
}
.price-showcase-accordion .price-option.price-row-option.active{
  background:linear-gradient(180deg,rgba(10,132,255,.62),rgba(10,100,210,.54)) !important;
  border-color:rgba(255,255,255,.42) !important;
}
html.theme-light .price-showcase.price-showcase-accordion{
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(241,243,246,.96)) !important;
  border-color:rgba(17,24,39,.12) !important;
  box-shadow:0 18px 38px rgba(15,23,42,.10) !important;
}
html.theme-light .price-showcase-accordion .price-showcase-title,
html.theme-light .price-summary-value,
html.theme-light .price-accordion-section summary,
html.theme-light .price-showcase-accordion .price-option.price-row-option .qty,
html.theme-light .price-showcase-accordion .price-option.price-row-option .amt{
  color:#111827 !important;
  text-shadow:none !important;
}
html.theme-light .price-summary-label,
html.theme-light .price-showcase-accordion .price-showcase-subtitle{
  color:#4b5563 !important;
}
html.theme-light .price-summary-card,
html.theme-light .price-accordion-section{
  background:rgba(255,255,255,.72) !important;
  border-color:rgba(17,24,39,.10) !important;
}
html.theme-light .price-showcase-toggle{
  color:#111827 !important;
  background:linear-gradient(180deg,#ffffff,#edf1f6) !important;
  border-color:rgba(17,24,39,.14) !important;
}
html.theme-light .price-showcase-accordion .price-option.price-row-option,
html.theme-light .price-showcase-accordion .price-option.price-row-option span{
  color:#111827 !important;
}
html.theme-light .price-showcase-accordion .price-option.price-row-option{
  background:linear-gradient(180deg,#ffffff,#eef2f7) !important;
  border-color:rgba(17,24,39,.12) !important;
}
html.theme-light .price-showcase-accordion .price-option.price-row-option.active{
  background:linear-gradient(180deg,rgba(219,234,254,.96),rgba(191,219,254,.96)) !important;
  border-color:rgba(37,99,235,.35) !important;
}
@media (max-width:640px){
  .price-showcase.price-showcase-accordion{
    padding:14px !important;
    border-radius:20px !important;
  }
  .price-summary-copy{
    align-items:flex-start;
  }
  .price-summary-value{
    font-size:24px;
  }
}


/* --- Versteckter Vorlagen-Bearbeitungsmodus --- */
.template-admin-panel{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  width:min(calc(100% - 4px),760px);
  max-width:100%;
  margin:-2px auto 2px;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,.08));
  box-shadow:0 18px 42px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.22);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
}
.template-admin-panel.hidden{display:none!important}
.template-admin-panel .template-admin-status{
  flex:1 1 auto;
  min-width:150px;
  color:rgba(255,255,255,.82);
  font-size:13px;
  line-height:1.35;
  font-weight:700;
  text-align:left;
}
.template-admin-panel .template-admin-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex:0 0 auto;
}
.template-admin-panel .btn{padding:9px 16px;min-width:110px}
.gallery-card{appearance:none;-webkit-appearance:none;width:100%;cursor:pointer;text-align:left;font:inherit}
.gallery-card-wrap{position:relative;min-width:0}
.gallery-card-wrap .gallery-card{height:100%}
.gallery-card img{transform:none;transform-origin:center center;will-change:auto}
.gallery-modal-dialog .gallery-card{padding:6px}
.gallery-admin-delete{display:none;align-items:center;justify-content:center;position:absolute;top:8px;right:8px;width:30px;height:30px;border-radius:999px;border:1px solid rgba(255,255,255,.75);background:linear-gradient(180deg,#ff453a,#bf1f1f);color:#fff;font-size:18px;font-weight:800;line-height:1;box-shadow:0 10px 22px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.45);cursor:pointer;z-index:6}
.gallery-admin-delete:hover{filter:brightness(1.05)}
.gallery-admin-add-card,.gallery-admin-upload-card{display:none;align-items:center;justify-content:center;flex-direction:column;gap:8px;min-height:210px;border:1px dashed rgba(255,255,255,.44);border-radius:20px;background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.06));box-shadow:var(--shadow);color:rgba(255,255,255,.88);font:inherit;font-weight:800;cursor:pointer;text-align:center;padding:20px}
.gallery-admin-add-card strong,.gallery-admin-upload-card strong{display:flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:999px;border:1px solid rgba(255,255,255,.42);font-size:38px;line-height:1;background:linear-gradient(180deg,rgba(255,255,255,.22),rgba(255,255,255,.08));box-shadow:inset 0 1px 0 rgba(255,255,255,.28)}
.gallery-admin-add-card span,.gallery-admin-upload-card span{font-size:14px;line-height:1.25}
body.template-admin-active .gallery-admin-delete,body.template-admin-active .gallery-admin-add-card,body.template-admin-active .gallery-admin-upload-card{display:flex}
html.theme-light .gallery-admin-add-card,html.theme-light .gallery-admin-upload-card{color:#111827;background:linear-gradient(180deg,rgba(255,255,255,.90),rgba(241,243,246,.84));border-color:rgba(17,24,39,.22)}
html.theme-light .gallery-admin-add-card strong,html.theme-light .gallery-admin-upload-card strong{border-color:rgba(17,24,39,.18);background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(229,231,235,.86))}
html.theme-light .template-admin-panel{
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(241,243,246,.86));
  border-color:rgba(17,24,39,.12);
  box-shadow:0 18px 42px rgba(15,23,42,.10),inset 0 1px 0 rgba(255,255,255,.88);
}
html.theme-light .template-admin-panel .template-admin-status{color:#475569}
@media (max-width:640px){
  .template-admin-panel{flex-direction:column;align-items:stretch;border-radius:24px}
  .template-admin-panel .template-admin-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .template-admin-panel .btn{width:100%;min-width:0}
}



/* --- Galerie-Popup und Kategorien --- */
body.gallery-modal-open{overflow:hidden}
.gallery-modal{position:fixed;inset:0;z-index:3600;display:flex;align-items:center;justify-content:center;padding:24px}
.gallery-modal.hidden{display:none!important}
.gallery-modal-backdrop{position:absolute;inset:0;background:rgba(10,12,16,.72);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.gallery-modal-dialog{position:relative;z-index:1;width:min(96vw,1560px);max-height:min(88vh,980px);overflow:auto;border:1px solid rgba(255,255,255,.20);border-radius:26px;background:linear-gradient(180deg,rgba(31,34,39,.98),rgba(23,25,29,.98));box-shadow:0 36px 90px rgba(0,0,0,.45);padding:24px 24px 30px}
.gallery-modal-close{position:sticky;top:0;float:right;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:999px;border:1px solid rgba(255,255,255,.42);background:linear-gradient(180deg,rgba(255,255,255,.22),rgba(255,255,255,.08));color:#fff;font-size:24px;font-weight:800;line-height:1;box-shadow:0 12px 24px rgba(0,0,0,.28);cursor:pointer;z-index:3}
.gallery-modal-dialog .gallery-title{max-width:none;margin:0 0 16px;padding:0 52px 0 0;color:#fff;font-size:18px}
.gallery-admin-toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;max-width:none;margin:0 0 18px;padding:0}
.gallery-category-admin-toolbar{display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:0 0 4px;padding:0}
body.template-admin-active .gallery-category-admin-toolbar{display:grid}
.gallery-category-admin-toolbar .gallery-admin-add-card,.gallery-category-admin-toolbar .gallery-admin-upload-card{min-height:132px}
.gallery-main-category-line{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;margin:0 0 18px;padding:0}
.gallery-main-category-separator{display:inline-flex;align-items:center;justify-content:center;color:#ffffff;font:inherit;font-size:30px;font-weight:800;line-height:1}
.gallery-main-category-line button{appearance:none;-webkit-appearance:none;border:0;background:transparent;color:#f8fafc;font:inherit;font-size:15px;font-weight:800;line-height:1.2;padding:3px 0;cursor:pointer;text-align:left;text-decoration:none}
.gallery-main-category-line button:hover,.gallery-main-category-line button:focus{outline:none;color:#ffffff;text-decoration:underline}
.gallery-overview{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:28px 34px;margin:0 0 22px;padding:20px;border-radius:20px;background:#ffffff;color:#000000;box-shadow:0 18px 44px rgba(0,0,0,.18)}
.gallery-overview-group{display:flex;flex-direction:column;gap:7px;min-width:0}
.gallery-overview-heading{appearance:none;-webkit-appearance:none;border:0;background:transparent;color:#000000;font:inherit;font-size:24px;font-weight:500;line-height:1.15;text-align:left;padding:0;margin:0 0 8px;cursor:pointer}
.gallery-overview-heading:hover,.gallery-overview-heading:focus{outline:none;text-decoration:underline}
.gallery-overview-items{display:flex;flex-direction:column;gap:5px}
.gallery-overview-items button{appearance:none;-webkit-appearance:none;border:0;background:transparent;color:#000000;font:inherit;font-size:13px;font-weight:400;line-height:1.25;text-align:left;padding:0;cursor:pointer}
.gallery-overview-items button:hover,.gallery-overview-items button:focus{outline:none;text-decoration:underline}
@media (max-width:1180px){.gallery-overview{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:720px){.gallery-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.gallery-overview-heading{font-size:21px}.gallery-main-category-line button{font-size:14px}}
@media (max-width:520px){.gallery-overview{grid-template-columns:1fr}}
.gallery-category-stack{display:flex;flex-direction:column;gap:22px}
.gallery-category-section{display:flex;flex-direction:column;gap:14px}
.gallery-section-title{appearance:none;-webkit-appearance:none;display:block;width:100%;text-align:left;border:1px solid rgba(255,255,255,.36);border-radius:999px;background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,.06));color:#fff;font:inherit;font-weight:800;font-size:13px;padding:10px 18px;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.25)}
.gallery-section-title.active{background:linear-gradient(180deg,#f8fafc,#cbd5e1);color:#111827;border-color:rgba(255,255,255,.72)}
.gallery-subcategory-list{display:flex;flex-wrap:wrap;gap:10px 12px;margin:-2px 2px 0;padding:0 2px 4px;color:rgba(255,255,255,.95);font-size:13px;line-height:1.25}
.gallery-subcategory-list button{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;min-height:34px;border:1px solid rgba(255,255,255,.24);border-radius:999px;background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,.08));color:#f8fafc;font-size:13px;font-weight:600;line-height:1.2;letter-spacing:.01em;padding:8px 14px;cursor:pointer;text-align:center;text-shadow:0 1px 1px rgba(0,0,0,.34);box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 10px 24px rgba(15,23,42,.18);transition:background .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease}
.gallery-subcategory-list button:hover,.gallery-subcategory-list button:focus{outline:none;color:#fff;border-color:rgba(255,255,255,.46);background:linear-gradient(180deg,rgba(255,255,255,.28),rgba(255,255,255,.14));box-shadow:inset 0 1px 0 rgba(255,255,255,.32),0 12px 28px rgba(15,23,42,.22);transform:translateY(-1px)}
.gallery-subcategory-list button.active{font-weight:700;color:#0f172a;border-color:rgba(255,255,255,.92);background:linear-gradient(180deg,#ffffff,#dbeafe);text-shadow:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 12px 28px rgba(15,23,42,.24)}
.gallery-subcategory-panel{display:none}
.gallery-category-section.subcategory-open .gallery-subcategory-panel.active{display:block}
.gallery-category-section.has-subcategories:not(.subcategory-open) > .gallery-category-admin-toolbar,.gallery-category-section.has-subcategories:not(.subcategory-open) > .gallery-strip{display:none}
.gallery-modal-dialog .gallery-strip{grid-template-columns:repeat(4,minmax(0,1fr));max-width:none;margin:0;padding:0;gap:18px;clear:both;min-height:64px}
body.template-admin-active .gallery-modal-dialog .gallery-strip{min-height:92px}
body.template-admin-active .gallery-card-wrap.gallery-draggable{cursor:grab;touch-action:none}
body.template-admin-active .gallery-card-wrap.gallery-dragging{opacity:.52;cursor:grabbing}
body.template-admin-active .gallery-card-wrap.gallery-draggable .gallery-card{cursor:grab}
body.template-admin-active.gallery-pointer-drag-active{user-select:none;-webkit-user-select:none}
@media (max-width:980px){.gallery-admin-toolbar,.gallery-category-admin-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-modal-dialog .gallery-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.gallery-modal{padding:12px}.gallery-modal-dialog{padding:18px}.gallery-admin-toolbar,.gallery-category-admin-toolbar{grid-template-columns:1fr}.gallery-modal-dialog .gallery-strip{grid-template-columns:1fr}}
html.theme-light .gallery-modal-dialog{background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(241,243,246,.98));border-color:rgba(17,24,39,.12);box-shadow:0 36px 90px rgba(15,23,42,.28)}
html.theme-light .gallery-modal-dialog .gallery-title{color:#111827}
html.theme-light .gallery-modal-close{color:#111827;border-color:rgba(17,24,39,.18);background:linear-gradient(180deg,#ffffff,#e5e7eb)}
html.theme-light .gallery-section-title{color:#111827;border-color:rgba(17,24,39,.16);background:linear-gradient(180deg,#ffffff,#e5e7eb)}
html.theme-light .gallery-section-title.active{background:linear-gradient(180deg,#dbeafe,#bfdbfe);border-color:rgba(37,99,235,.35)}
html.theme-light .gallery-subcategory-list{color:#111827}
html.theme-light .gallery-subcategory-list button{border-color:rgba(17,24,39,.10);background:linear-gradient(180deg,#ffffff,#f3f4f6);color:#111827;text-shadow:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 8px 20px rgba(15,23,42,.08)}
html.theme-light .gallery-subcategory-list button:hover,html.theme-light .gallery-subcategory-list button:focus{border-color:rgba(37,99,235,.28);background:linear-gradient(180deg,#ffffff,#e8eefc);color:#111827;box-shadow:inset 0 1px 0 rgba(255,255,255,.98),0 10px 24px rgba(15,23,42,.12)}
html.theme-light .gallery-subcategory-list button.active{color:#0f172a;border-color:rgba(37,99,235,.35);background:linear-gradient(180deg,#eff6ff,#dbeafe)}
html.theme-light .gallery-overview{background:#ffffff;color:#000000;box-shadow:0 18px 44px rgba(15,23,42,.10)}


/* Apple-Design fuer Ausfuehrung in der linken Spalte */
.apple-sides-group{
  position:relative;
  overflow:hidden;
  padding:18px;
  border-radius:26px;
  background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.055));
  border:1px solid rgba(255,255,255,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.20),0 14px 34px rgba(0,0,0,.22);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.apple-sides-group::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:48%;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.20),rgba(255,255,255,0));
}
.apple-sides-group h3,
.apple-sides-group .segmented{
  position:relative;
  z-index:1;
}
.apple-sides-group h3{
  color:#fff !important;
  text-shadow:0 -1px 0 rgba(0,0,0,.32);
}
.apple-sides-group .segmented{
  gap:12px;
}
.apple-sides-group .segmented label{
  min-height:46px;
  padding:0 20px;
  color:rgba(255,255,255,.92) !important;
  background:linear-gradient(180deg,rgba(255,255,255,.22),rgba(255,255,255,.075)) !important;
  border:1px solid rgba(255,255,255,.24) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 10px 24px rgba(0,0,0,.20) !important;
  text-shadow:0 -1px 0 rgba(0,0,0,.30) !important;
}
.apple-sides-group .segmented label:hover{
  background:linear-gradient(180deg,rgba(255,255,255,.30),rgba(255,255,255,.12)) !important;
  border-color:rgba(255,255,255,.38) !important;
}
.apple-sides-group .segmented input:checked + label{
  color:#fff !important;
  background:linear-gradient(180deg,#1d61d8 0%,#0a45a3 54%,#062c72 100%) !important;
  border-color:rgba(160,195,255,.72) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.30),0 14px 30px rgba(10,69,163,.36),0 2px 8px rgba(0,0,0,.24) !important;
}
.apple-sides-group .segmented input:focus-visible + label{
  outline:2px solid rgba(10,132,255,.72);
  outline-offset:3px;
}
html.theme-light .apple-sides-group{
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(235,238,244,.92));
  border-color:rgba(17,24,39,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.94),0 14px 30px rgba(15,23,42,.10);
}
html.theme-light .apple-sides-group::before{
  background:linear-gradient(180deg,rgba(255,255,255,.86),rgba(255,255,255,0));
}
html.theme-light .apple-sides-group h3{
  color:#111827 !important;
  text-shadow:none;
}
html.theme-light .apple-sides-group .segmented label{
  color:#334155 !important;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(229,233,240,.92)) !important;
  border-color:rgba(15,23,42,.13) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 8px 18px rgba(15,23,42,.07) !important;
  text-shadow:none !important;
}
html.theme-light .apple-sides-group .segmented input:checked + label{
  color:#fff !important;
  background:linear-gradient(180deg,#1d74ff,#0a58d8) !important;
  border-color:rgba(10,88,216,.34) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.30),0 12px 24px rgba(10,88,216,.20) !important;
}



/* --- Bedienbuttons unter der Visitenkarte: Seitenaktionen eine Zeile tiefer und zentriert --- */
.toolbar-page-actions-row{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  width:100%;
  max-width:760px;
  margin:10px auto 0;
  flex-wrap:wrap;
}
#clearSideBtn.toolbar-main-btn,
#duplicateToBackBtn.toolbar-main-btn{
  white-space:nowrap;
}
#duplicateToBackBtn.toolbar-main-btn{
  min-width:220px;
}
@media (min-width:769px){
  .toolbar-insert-row{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    align-items:center !important;
    width:100% !important;
    max-width:760px !important;
    margin:0 auto !important;
  }
  .canvas-quick-actions-row{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  }
}
@media (max-width:768px){
  .toolbar-page-actions-row{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:8px !important;
    margin-top:8px !important;
  }
  #clearSideBtn.toolbar-main-btn,
  #duplicateToBackBtn.toolbar-main-btn{
    min-width:0 !important;
    width:100% !important;
  }
}

/* --- Korrektur: rote Buttons dunkelgrau, weiße Schrift, rechteckig mit kleinen runden Ecken; sonst nichts ändern --- */
:root{
  --vc-btn-top:#595b60;
  --vc-btn-mid:#3f4248;
  --vc-btn-bottom:#272a30;
  --vc-btn-border:rgba(255,255,255,.18);
  --vc-btn-shadow:inset 0 1px 2px rgba(255,255,255,.16), inset 0 -3px 6px rgba(0,0,0,.34), inset 0 12px 18px rgba(255,255,255,.04), 0 6px 14px rgba(0,0,0,.18);
  --vc-btn-shadow-hover:inset 0 1px 2px rgba(255,255,255,.20), inset 0 -3px 6px rgba(0,0,0,.36), inset 0 14px 20px rgba(255,255,255,.05), 0 8px 16px rgba(0,0,0,.20);
  --vc-btn-shadow-active:inset 0 3px 6px rgba(0,0,0,.34), inset 0 1px 1px rgba(255,255,255,.10), 0 4px 10px rgba(0,0,0,.14);
  --vc-btn-disabled-top:#72757a;
  --vc-btn-disabled-mid:#5a5d63;
  --vc-btn-disabled-bottom:#43474d;
  --vc-btn-active-top:#666971;
  --vc-btn-active-mid:#4a4e56;
  --vc-btn-active-bottom:#30343b;
}
html:not(.theme-light) body :is(
  #designerForm button,
  #designerForm .btn,
  #designerForm .chip-btn,
  #designerForm .icon-btn,
  #designerForm .toolbar-main-btn,
  #designerForm .icon-toggle,
  #designerForm .tab-btn,
  #designerForm .side-tab,
  #designerForm .variant-tab,
  #designerForm .size-btn,
  #designerForm .qty-btn,
  #designerForm .upload-btn,
  #designerForm .close-btn,
  #designerForm .submit-progress-close,
  #designerForm .undo-floating,
  #designerForm .price-option,
  #designerForm .segmented label,
  #designerForm .toolbar-group-buttons button,
  #designerForm .text-toolbar-card button,
  #designerForm .sidebar-editor-group button,
  .page button,
  .page .btn,
  .page .chip-btn,
  .page .icon-btn,
  .page .toolbar-main-btn,
  .page .icon-toggle,
  .page .tab-btn,
  .page .side-tab,
  .page .variant-tab,
  .page .size-btn,
  .page .qty-btn,
  .page .upload-btn,
  .page .close-btn,
  .page .submit-progress-close,
  .page .undo-floating,
  .page .price-option,
  .page .segmented label,
  .page .toolbar-group-buttons button,
  .page .text-toolbar-card button,
  .page .sidebar-editor-group button,
  .vip20-start-ok
){
  background:linear-gradient(180deg,var(--vc-btn-top) 0%, var(--vc-btn-mid) 52%, var(--vc-btn-bottom) 100%) !important;
  color:#ffffff !important;
  border:1px solid var(--vc-btn-border) !important;
  border-radius:10px !important;
  box-shadow:var(--vc-btn-shadow) !important;
  text-shadow:0 -1px 0 rgba(0,0,0,.40) !important;
  filter:none !important;
  background-clip:padding-box !important;
  transition:background .14s ease, box-shadow .14s ease, transform .14s ease, border-color .14s ease !important;
}
html:not(.theme-light) body :is(
  #designerForm button,
  #designerForm .btn,
  #designerForm .chip-btn,
  #designerForm .icon-btn,
  #designerForm .toolbar-main-btn,
  #designerForm .icon-toggle,
  #designerForm .tab-btn,
  #designerForm .side-tab,
  #designerForm .variant-tab,
  #designerForm .size-btn,
  #designerForm .qty-btn,
  #designerForm .upload-btn,
  #designerForm .close-btn,
  #designerForm .submit-progress-close,
  #designerForm .undo-floating,
  #designerForm .price-option,
  #designerForm .segmented label,
  #designerForm .toolbar-group-buttons button,
  #designerForm .text-toolbar-card button,
  #designerForm .sidebar-editor-group button,
  .page button,
  .page .btn,
  .page .chip-btn,
  .page .icon-btn,
  .page .toolbar-main-btn,
  .page .icon-toggle,
  .page .tab-btn,
  .page .side-tab,
  .page .variant-tab,
  .page .size-btn,
  .page .qty-btn,
  .page .upload-btn,
  .page .close-btn,
  .page .submit-progress-close,
  .page .undo-floating,
  .page .price-option,
  .page .segmented label,
  .page .toolbar-group-buttons button,
  .page .text-toolbar-card button,
  .page .sidebar-editor-group button,
  .vip20-start-ok
):hover{
  background:linear-gradient(180deg,#65686e 0%, #494d54 52%, #30343b 100%) !important;
  border-color:rgba(255,255,255,.22) !important;
  box-shadow:var(--vc-btn-shadow-hover) !important;
  color:#ffffff !important;
}
html:not(.theme-light) body :is(
  #designerForm button,
  #designerForm .btn,
  #designerForm .chip-btn,
  #designerForm .icon-btn,
  #designerForm .toolbar-main-btn,
  #designerForm .icon-toggle,
  #designerForm .tab-btn,
  #designerForm .side-tab,
  #designerForm .variant-tab,
  #designerForm .size-btn,
  #designerForm .qty-btn,
  #designerForm .upload-btn,
  #designerForm .close-btn,
  #designerForm .submit-progress-close,
  #designerForm .undo-floating,
  #designerForm .price-option,
  #designerForm .segmented label,
  #designerForm .toolbar-group-buttons button,
  #designerForm .text-toolbar-card button,
  #designerForm .sidebar-editor-group button,
  .page button,
  .page .btn,
  .page .chip-btn,
  .page .icon-btn,
  .page .toolbar-main-btn,
  .page .icon-toggle,
  .page .tab-btn,
  .page .side-tab,
  .page .variant-tab,
  .page .size-btn,
  .page .qty-btn,
  .page .upload-btn,
  .page .close-btn,
  .page .submit-progress-close,
  .page .undo-floating,
  .page .price-option,
  .page .segmented label,
  .page .toolbar-group-buttons button,
  .page .text-toolbar-card button,
  .page .sidebar-editor-group button,
  .vip20-start-ok
):active{
  background:linear-gradient(180deg,#4b4e55 0%, #36393f 52%, #22252a 100%) !important;
  box-shadow:var(--vc-btn-shadow-active) !important;
  transform:translateY(1px) !important;
}
html:not(.theme-light) body :is(
  .btn.primary,
  button.primary,
  .chip-btn.active,
  .icon-btn.active,
  .toolbar-main-btn.active,
  .icon-toggle.active,
  .tab-btn.active,
  .side-tab.active,
  .variant-tab.active,
  .size-btn.active,
  .price-option.active,
  .segmented input:checked + label,
  button.active,
  button[aria-pressed="true"],
  .chip-btn[aria-pressed="true"],
  .icon-btn[aria-pressed="true"],
  .panel .btn.primary,
  .panel .chip-btn.active,
  .panel .icon-btn.active,
  .panel .segmented input:checked + label,
  .panel .price-option.active
){
  background:linear-gradient(180deg,var(--vc-btn-active-top) 0%, var(--vc-btn-active-mid) 52%, var(--vc-btn-active-bottom) 100%) !important;
  color:#ffffff !important;
  border-color:rgba(255,255,255,.24) !important;
  box-shadow:var(--vc-btn-shadow-hover) !important;
}
html:not(.theme-light) body :is(
  #designerForm button,
  #designerForm .btn,
  #designerForm .chip-btn,
  #designerForm .icon-btn,
  #designerForm .toolbar-main-btn,
  #designerForm .icon-toggle,
  #designerForm .tab-btn,
  #designerForm .side-tab,
  #designerForm .variant-tab,
  #designerForm .size-btn,
  #designerForm .qty-btn,
  #designerForm .upload-btn,
  #designerForm .close-btn,
  #designerForm .submit-progress-close,
  #designerForm .undo-floating,
  #designerForm .price-option,
  #designerForm .segmented label,
  #designerForm .toolbar-group-buttons button,
  #designerForm .text-toolbar-card button,
  #designerForm .sidebar-editor-group button,
  .page button,
  .page .btn,
  .page .chip-btn,
  .page .icon-btn,
  .page .toolbar-main-btn,
  .page .icon-toggle,
  .page .tab-btn,
  .page .side-tab,
  .page .variant-tab,
  .page .size-btn,
  .page .qty-btn,
  .page .upload-btn,
  .page .close-btn,
  .page .submit-progress-close,
  .page .undo-floating,
  .page .price-option,
  .page .segmented label,
  .page .toolbar-group-buttons button,
  .page .text-toolbar-card button,
  .page .sidebar-editor-group button,
  .vip20-start-ok
):disabled{
  opacity:.62 !important;
  background:linear-gradient(180deg,var(--vc-btn-disabled-top) 0%, var(--vc-btn-disabled-mid) 52%, var(--vc-btn-disabled-bottom) 100%) !important;
  box-shadow:inset 0 1px 2px rgba(255,255,255,.10), inset 0 -2px 4px rgba(0,0,0,.22), 0 1px 0 rgba(255,255,255,.08) !important;
  cursor:not-allowed !important;
}
html:not(.theme-light) body :is(
  #designerForm button,
  #designerForm .btn,
  #designerForm .chip-btn,
  #designerForm .icon-btn,
  #designerForm .toolbar-main-btn,
  #designerForm .icon-toggle,
  #designerForm .tab-btn,
  #designerForm .side-tab,
  #designerForm .variant-tab,
  #designerForm .size-btn,
  #designerForm .qty-btn,
  #designerForm .upload-btn,
  #designerForm .close-btn,
  #designerForm .submit-progress-close,
  #designerForm .undo-floating,
  #designerForm .price-option,
  #designerForm .segmented label,
  #designerForm .toolbar-group-buttons button,
  #designerForm .text-toolbar-card button,
  #designerForm .sidebar-editor-group button,
  .page button,
  .page .btn,
  .page .chip-btn,
  .page .icon-btn,
  .page .toolbar-main-btn,
  .page .icon-toggle,
  .page .tab-btn,
  .page .side-tab,
  .page .variant-tab,
  .page .size-btn,
  .page .qty-btn,
  .page .upload-btn,
  .page .close-btn,
  .page .submit-progress-close,
  .page .undo-floating,
  .page .price-option,
  .page .segmented label,
  .page .toolbar-group-buttons button,
  .page .text-toolbar-card button,
  .page .sidebar-editor-group button,
  .vip20-start-ok
) *{
  color:inherit !important;
  fill:currentColor !important;
  stroke:currentColor !important;
}




/* --- Korrektur: Button-Striche/Symbole weiß im hellen und dunklen Layout, Button-Texte nicht fett; sonst nichts ändern --- */
body .align-icon span,
body .panel .align-icon span,
body .text-style-buttons .align-icon span,
body .panel .text-style-buttons .align-icon span,
html.theme-light .align-icon span,
html.theme-light body .align-icon span,
html.theme-light body .panel .align-icon span,
html.theme-light body .text-style-buttons .align-icon span,
html.theme-light body .panel .text-style-buttons .align-icon span{
  background:#ffffff !important;
}
body .font-style-icon,
body .text-style-buttons .font-style-icon,
body .panel .font-style-icon,
body .panel .text-style-buttons .font-style-icon,
html.theme-light .font-style-icon,
html.theme-light .text-style-buttons .font-style-icon,
html.theme-light body .font-style-icon,
html.theme-light body .text-style-buttons .font-style-icon,
html.theme-light body .panel .font-style-icon,
html.theme-light body .panel .text-style-buttons .font-style-icon{
  color:#ffffff !important;
}
body .text-style-buttons .chip-btn svg,
body .text-style-buttons .chip-btn svg *,
body .panel .text-style-buttons .chip-btn svg,
body .panel .text-style-buttons .chip-btn svg *,
html.theme-light body .text-style-buttons .chip-btn svg,
html.theme-light body .text-style-buttons .chip-btn svg *,
html.theme-light body .panel .text-style-buttons .chip-btn svg,
html.theme-light body .panel .text-style-buttons .chip-btn svg *{
  color:#ffffff !important;
  fill:currentColor !important;
  stroke:currentColor !important;
}
body :is(
  #designerForm button,
  #designerForm .btn,
  #designerForm .chip-btn,
  #designerForm .icon-btn,
  #designerForm .toolbar-main-btn,
  #designerForm .icon-toggle,
  #designerForm .tab-btn,
  #designerForm .side-tab,
  #designerForm .variant-tab,
  #designerForm .size-btn,
  #designerForm .qty-btn,
  #designerForm .upload-btn,
  #designerForm .close-btn,
  #designerForm .submit-progress-close,
  #designerForm .undo-floating,
  #designerForm .price-option,
  #designerForm .segmented label,
  #designerForm .toolbar-group-buttons button,
  #designerForm .text-toolbar-card button,
  #designerForm .sidebar-editor-group button,
  .page button,
  .page .btn,
  .page .chip-btn,
  .page .icon-btn,
  .page .toolbar-main-btn,
  .page .icon-toggle,
  .page .tab-btn,
  .page .side-tab,
  .page .variant-tab,
  .page .size-btn,
  .page .qty-btn,
  .page .upload-btn,
  .page .close-btn,
  .page .submit-progress-close,
  .page .undo-floating,
  .page .price-option,
  .page .segmented label,
  .page .toolbar-group-buttons button,
  .page .text-toolbar-card button,
  .page .sidebar-editor-group button,
  .vip20-start-ok
){
  font-weight:400 !important;
}
body :is(
  #designerForm button,
  #designerForm .btn,
  #designerForm .chip-btn,
  #designerForm .icon-btn,
  #designerForm .toolbar-main-btn,
  #designerForm .icon-toggle,
  #designerForm .tab-btn,
  #designerForm .side-tab,
  #designerForm .variant-tab,
  #designerForm .size-btn,
  #designerForm .qty-btn,
  #designerForm .upload-btn,
  #designerForm .close-btn,
  #designerForm .submit-progress-close,
  #designerForm .undo-floating,
  #designerForm .price-option,
  #designerForm .segmented label,
  #designerForm .toolbar-group-buttons button,
  #designerForm .text-toolbar-card button,
  #designerForm .sidebar-editor-group button,
  .page button,
  .page .btn,
  .page .chip-btn,
  .page .icon-btn,
  .page .toolbar-main-btn,
  .page .icon-toggle,
  .page .tab-btn,
  .page .side-tab,
  .page .variant-tab,
  .page .size-btn,
  .page .qty-btn,
  .page .upload-btn,
  .page .close-btn,
  .page .submit-progress-close,
  .page .undo-floating,
  .page .price-option,
  .page .segmented label,
  .page .toolbar-group-buttons button,
  .page .text-toolbar-card button,
  .page .sidebar-editor-group button,
  .vip20-start-ok
) :not(.font-style-icon):not(.align-icon):not(.align-icon *){
  font-weight:400 !important;
}
.hidden,
.is-hidden,
.vip20-start-overlay.is-hidden,
.gallery-modal.hidden,
.template-tip-bubble.hidden,
.toolbar-tip-bubble.hidden,
.undo-redo-tip-bubble.hidden,
.ornament-flyout.hidden,
.ai-image-generator.hidden,
.ai-image-legal.hidden{
  pointer-events:none !important;
}
.modal:not(.open),
.gallery-modal.hidden,
.vip20-start-overlay.is-hidden{
  visibility:hidden !important;
  pointer-events:none !important;
}
.template-tip-bubble,
.toolbar-tip-bubble,
.undo-redo-tip-bubble,
.ornament-tip-bubble,
.multi-person-tip-bubble,
.resize-mode-tip-bubble,
.paper-tip-bubble{
  pointer-events:none !important;
}
.template-tip-close,
.toolbar-tip-bubble button,
.undo-redo-tip-bubble button,
.ornament-tip-bubble button,
.multi-person-tip-bubble button,
.resize-mode-tip-bubble button,
.paper-tip-bubble button{
  pointer-events:auto !important;
}


/* --- Korrektur: Einseitig/Doppelseitig gleich breit; Proportional-Button volle Breite; Button-Schrift 1 pt kleiner; keine Blockade; sonst nichts ändern --- */
#cardSidesGroup .segmented,
.apple-sides-group .segmented{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  width:100% !important;
  gap:12px !important;
}
#cardSidesGroup .segmented label,
.apple-sides-group .segmented label{
  width:100% !important;
  min-width:0 !important;
  justify-content:center !important;
  text-align:center !important;
}
#imageEditorGroup > .toolbar-group-buttons:not(.keep-two-mobile){
  display:block !important;
  width:100% !important;
}
#toggleImageResizeModeBtn{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-width:0 !important;
  text-align:center !important;
  pointer-events:auto !important;
}
body :is(
  button,
  .btn,
  .chip-btn,
  .icon-btn,
  .toolbar-main-btn,
  .icon-toggle,
  .tab-btn,
  .side-tab,
  .variant-tab,
  .size-btn,
  .qty-btn,
  .upload-btn,
  .close-btn,
  .submit-progress-close,
  .undo-floating,
  .price-option,
  .segmented label,
  .toolbar-group-buttons button,
  .text-toolbar-card button,
  .sidebar-editor-group button,
  .vip20-start-ok,
  .reorder-hero-btn,
  .reorder-hero-info,
  .reorder-save-toggle
){
  font-size:calc(1em - 1pt) !important;
}
.hidden,
.is-hidden,
.vip20-start-overlay.is-hidden,
.gallery-modal.hidden,
.template-tip-bubble.hidden,
.toolbar-tip-bubble.hidden,
.undo-redo-tip-bubble.hidden,
.ornament-flyout.hidden,
.ai-image-generator.hidden,
.ai-image-legal.hidden{
  pointer-events:none !important;
}


/* --- Korrektur: Pluszeichen sichtbar in dunkelgrau; sonst nichts ändern --- */
.reorder-save-toggle-indicator,
html.theme-light .reorder-save-toggle-indicator{
  color:#4b5563 !important;
}


/* --- Korrektur: Pluszeichen deutlich sichtbar dunkelgrau; sonst nichts ändern --- */
.reorder-save-toggle .reorder-save-toggle-indicator,
.reorder-save-toggle:hover .reorder-save-toggle-indicator,
.reorder-save-toggle:focus-visible .reorder-save-toggle-indicator,
html.theme-light .reorder-save-toggle .reorder-save-toggle-indicator,
html.theme-light .reorder-save-toggle:hover .reorder-save-toggle-indicator,
html.theme-light .reorder-save-toggle:focus-visible .reorder-save-toggle-indicator{
  color:#374151 !important;
  -webkit-text-fill-color:#374151 !important;
  text-shadow:none !important;
  opacity:1 !important;
  font-weight:900 !important;
}


/* --- Korrektur: Pluszeichen plastischer gestalten; sonst nichts ändern --- */
.reorder-save-toggle .reorder-save-toggle-indicator,
.reorder-save-toggle:hover .reorder-save-toggle-indicator,
.reorder-save-toggle:focus-visible .reorder-save-toggle-indicator,
html.theme-light .reorder-save-toggle .reorder-save-toggle-indicator,
html.theme-light .reorder-save-toggle:hover .reorder-save-toggle-indicator,
html.theme-light .reorder-save-toggle:focus-visible .reorder-save-toggle-indicator{
  color:#374151 !important;
  -webkit-text-fill-color:#374151 !important;
  font-weight:900 !important;
  text-shadow:0 1px 0 rgba(255,255,255,.85), 0 -1px 0 rgba(17,24,39,.18), 0 2px 3px rgba(17,24,39,.10) !important;
  transform:translateY(-1px) !important;
}

/* --- Klarer Apple-Pill-Button fuer Nachbestellung; sonst nichts ändern --- */
.reorder-save-toggle .reorder-save-toggle-indicator,
.reorder-save-toggle:hover .reorder-save-toggle-indicator,
.reorder-save-toggle:focus-visible .reorder-save-toggle-indicator,
html.theme-light .reorder-save-toggle .reorder-save-toggle-indicator,
html.theme-light .reorder-save-toggle:hover .reorder-save-toggle-indicator,
html.theme-light .reorder-save-toggle:focus-visible .reorder-save-toggle-indicator{
  width:auto !important;
  min-width:0 !important;
  height:32px !important;
  padding:0 12px 0 10px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  border-radius:999px !important;
  white-space:nowrap !important;
  font-size:13px !important;
}
.reorder-save-toggle-label{
  display:inline-flex;
  align-items:center;
  font-size:12px;
  font-weight:850;
  letter-spacing:-.01em;
  line-height:1;
}



/* --- Korrektur: Buttontext und Plus im dunklen Layout weiß und deutlich; sonst nichts ändern --- */
html:not(.theme-light) .reorder-save-toggle .reorder-save-toggle-indicator,
html:not(.theme-light) .reorder-save-toggle:hover .reorder-save-toggle-indicator,
html:not(.theme-light) .reorder-save-toggle:focus-visible .reorder-save-toggle-indicator,
html:not(.theme-light) .reorder-save-toggle .reorder-save-toggle-indicator *,
html:not(.theme-light) .reorder-save-toggle:hover .reorder-save-toggle-indicator *,
html:not(.theme-light) .reorder-save-toggle:focus-visible .reorder-save-toggle-indicator *{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  opacity:1 !important;
  text-shadow:0 1px 0 rgba(0,0,0,.45),0 0 6px rgba(0,0,0,.25) !important;
}
html:not(.theme-light) .reorder-save-toggle .reorder-save-toggle-symbol,
html:not(.theme-light) .reorder-save-toggle .reorder-save-toggle-label{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  font-weight:900 !important;
}
html:not(.theme-light) .reorder-save-toggle .reorder-save-toggle-indicator{
  border-color:rgba(255,255,255,.46) !important;
  background:linear-gradient(180deg,rgba(255,255,255,.34),rgba(255,255,255,.18)) !important;
}


/* --- Hinweise-gelesen-Button entfernen; sonst nichts ändern --- */
#designQualityStatus{
  display:none !important;
}





/* Stabile Topbar: keine Ueberlagerung, kein Blockieren, volle Bearbeitungsbreite */
.preview-stage .preview-topbar{
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  flex-wrap:nowrap !important;
  gap:10px !important;
  width:min(calc(100% - 4px),760px) !important;
  max-width:760px !important;
  min-height:40px !important;
  margin:0 auto 12px !important;
  padding:0 !important;
  overflow:visible !important;
  z-index:3 !important;
  box-sizing:border-box !important;
  pointer-events:auto !important;
}
.preview-stage .preview-topbar .view-toggle,
.preview-stage .preview-topbar .topbar-quick-actions,
.preview-stage .preview-topbar .history-actions{
  position:static !important;
  top:auto !important;
  right:auto !important;
  left:auto !important;
  transform:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  margin:0 !important;
  padding:0 !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  box-sizing:border-box !important;
  pointer-events:auto !important;
  z-index:4 !important;
}
.preview-stage .preview-topbar .view-toggle{
  flex:1 1 auto !important;
  justify-content:flex-start !important;
}
.preview-stage .preview-topbar .topbar-quick-actions{
  flex:0 0 auto !important;
}
.preview-stage .preview-topbar .history-actions{
  flex:0 0 auto !important;
  justify-content:flex-end !important;
  margin-left:auto !important;
}
.preview-stage .preview-topbar #sideSlider{
  width:99px !important;
  min-width:70px !important;
  max-width:99px !important;
  flex:0 0 99px !important;
  pointer-events:auto !important;
}
.preview-stage .preview-topbar .slider-label-btn,
.preview-stage .preview-topbar .undo-floating,
.preview-stage .preview-topbar .topbar-action-btn{
  position:static !important;
  transform:none !important;
  width:76px !important;
  min-width:76px !important;
  max-width:76px !important;
  min-height:32px !important;
  padding:0 6px !important;
  box-sizing:border-box !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  white-space:nowrap !important;
  font-size:10px !important;
  line-height:1.1 !important;
  pointer-events:auto !important;
}
.preview-stage .preview-topbar .slider-label-btn{
  width:82px !important;
  min-width:82px !important;
  max-width:82px !important;
}
.preview-stage .card-wrap{
  position:relative !important;
  z-index:1 !important;
  pointer-events:auto !important;
}
@media (max-width:760px){
  .preview-stage .preview-topbar{
    flex-wrap:wrap !important;
    justify-content:center !important;
  }
  .preview-stage .preview-topbar .view-toggle,
  .preview-stage .preview-topbar .topbar-quick-actions,
  .preview-stage .preview-topbar .history-actions{
    justify-content:center !important;
    margin-left:0 !important;
  }
}
@media (max-width:560px){
  .preview-stage .preview-topbar,
  .preview-stage .preview-topbar .view-toggle,
  .preview-stage .preview-topbar .topbar-quick-actions,
  .preview-stage .preview-topbar .history-actions{
    gap:5px !important;
  }
  .preview-stage .preview-topbar .slider-label-btn,
  .preview-stage .preview-topbar .undo-floating,
  .preview-stage .preview-topbar .topbar-action-btn{
    width:66px !important;
    min-width:66px !important;
    max-width:66px !important;
    font-size:9px !important;
    padding-left:3px !important;
    padding-right:3px !important;
  }
  .preview-stage .preview-topbar #sideSlider{
    width:68px !important;
    min-width:58px !important;
    max-width:68px !important;
    flex-basis:68px !important;
  }
}


/* Galerie-Uebersicht: nur Text, keine Button-Felder/Rahmen */
.gallery-modal-dialog .gallery-main-category-line button,
.gallery-modal-dialog .gallery-overview button,
.gallery-modal-dialog .gallery-overview-heading,
.gallery-modal-dialog .gallery-overview-items button,
html.theme-light .gallery-modal-dialog .gallery-main-category-line button,
html.theme-light .gallery-modal-dialog .gallery-overview button,
html.theme-light .gallery-modal-dialog .gallery-overview-heading,
html.theme-light .gallery-modal-dialog .gallery-overview-items button{
  appearance:none !important;
  -webkit-appearance:none !important;
  background:transparent !important;
  background-image:none !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  text-shadow:none !important;
  outline:none !important;
  min-height:0 !important;
  height:auto !important;
  padding:0 !important;
  margin:0 !important;
  color:#000000 !important;
  text-decoration:none !important;
}
.gallery-modal-dialog .gallery-main-category-line button:hover,
.gallery-modal-dialog .gallery-main-category-line button:focus,
.gallery-modal-dialog .gallery-overview button:hover,
.gallery-modal-dialog .gallery-overview button:focus,
.gallery-modal-dialog .gallery-overview-heading:hover,
.gallery-modal-dialog .gallery-overview-heading:focus,
.gallery-modal-dialog .gallery-overview-items button:hover,
.gallery-modal-dialog .gallery-overview-items button:focus{
  background:transparent !important;
  background-image:none !important;
  border:0 !important;
  box-shadow:none !important;
  color:#000000 !important;
  text-decoration:underline !important;
  transform:none !important;
}


/* Hauptkategorien oben: zentriert, doppelt so gross, im dunklen Layout weiss */
.gallery-modal-dialog .gallery-main-category-line{
  justify-content:center !important;
  align-items:center !important;
  width:100% !important;
  text-align:center !important;
  gap:18px !important;
}
.gallery-modal-dialog .gallery-main-category-line button{
  font-size:30px !important;
  line-height:1.15 !important;
  text-align:center !important;
  color:#ffffff !important;
}
.gallery-modal-dialog .gallery-main-category-line button:hover,
.gallery-modal-dialog .gallery-main-category-line button:focus{
  color:#ffffff !important;
}
html.theme-light .gallery-modal-dialog .gallery-main-category-separator{
  color:#000000 !important;
}
html.theme-light .gallery-modal-dialog .gallery-main-category-line button{
  color:#000000 !important;
}
html.theme-light .gallery-modal-dialog .gallery-main-category-line button:hover,
html.theme-light .gallery-modal-dialog .gallery-main-category-line button:focus{
  color:#000000 !important;
}
@media (max-width:720px){
  .gallery-modal-dialog .gallery-main-category-line button{font-size:24px !important;}
}


/* Schnelltasten unter der Bearbeitungsflaeche: dunkles Layout 10pt */
html:not(.theme-light) .canvas-quick-actions-row .toolbar-main-btn{
  font-size:10pt !important;
  line-height:1.1 !important;
}

/* --- FINAL NUR HELLES LAYOUT: Apple-Buttons weiss mit schwarzer Schrift --- */
html.theme-light,
body.theme-light{
  --vc-btn-top:#ffffff !important;
  --vc-btn-mid:#ffffff !important;
  --vc-btn-bottom:#ffffff !important;
  --vc-btn-border:rgba(17,24,39,.16) !important;
  --vc-btn-shadow:inset 0 1px 0 rgba(255,255,255,1),inset 0 -1px 0 rgba(255,255,255,.92),0 8px 18px rgba(15,23,42,.10),0 2px 5px rgba(15,23,42,.08) !important;
  --vc-btn-shadow-hover:inset 0 1px 0 rgba(255,255,255,1),inset 0 -1px 0 rgba(255,255,255,.95),0 10px 22px rgba(15,23,42,.13),0 3px 7px rgba(15,23,42,.10) !important;
  --vc-btn-shadow-active:inset 0 2px 5px rgba(15,23,42,.10),0 1px 0 rgba(255,255,255,.95) !important;
  --vc-btn-disabled-top:#ffffff !important;
  --vc-btn-disabled-mid:#ffffff !important;
  --vc-btn-disabled-bottom:#ffffff !important;
  --vc-btn-active-top:#ffffff !important;
  --vc-btn-active-mid:#ffffff !important;
  --vc-btn-active-bottom:#ffffff !important;
  --apple-neutral-text:#111111 !important;
  --apple-btn-top:#ffffff !important;
  --apple-btn-mid:#ffffff !important;
  --apple-btn-bottom:#ffffff !important;
  --apple-btn-border:rgba(17,24,39,.16) !important;
}

html.theme-light body :is(
  #designerForm button,
  #designerForm .btn,
  #designerForm .chip-btn,
  #designerForm .icon-btn,
  #designerForm .toolbar-main-btn,
  #designerForm .icon-toggle,
  #designerForm .tab-btn,
  #designerForm .side-tab,
  #designerForm .variant-tab,
  #designerForm .size-btn,
  #designerForm .qty-btn,
  #designerForm .upload-btn,
  #designerForm .close-btn,
  #designerForm .submit-progress-close,
  #designerForm .undo-floating,
  #designerForm .price-option,
  #designerForm .segmented label,
  #designerForm .toolbar-group-buttons button,
  #designerForm .text-toolbar-card button,
  #designerForm .sidebar-editor-group button,
  .page button,
  .page .btn,
  .page .chip-btn,
  .page .icon-btn,
  .page .toolbar-main-btn,
  .page .icon-toggle,
  .page .tab-btn,
  .page .side-tab,
  .page .variant-tab,
  .page .size-btn,
  .page .qty-btn,
  .page .upload-btn,
  .page .close-btn,
  .page .submit-progress-close,
  .page .undo-floating,
  .page .price-option,
  .page .segmented label,
  .page .toolbar-group-buttons button,
  .page .text-toolbar-card button,
  .page .sidebar-editor-group button,
  .template-actions .chip-btn,
  #quickTemplatesGroup .chip-btn,
  .preview-topbar button,
  .canvas-quick-actions-row button,
  .toolbar-insert-row button,
  .text-style-buttons button,
  .vip20-start-ok,
  .theme-switch,
  .reorder-hero-btn,
  .reorder-hero-info,
  .gallery-modal-dialog button,
  .gallery-overview button,
  .gallery-main-category-line button
),
body.theme-light :is(
  #designerForm button,
  #designerForm .btn,
  #designerForm .chip-btn,
  #designerForm .icon-btn,
  #designerForm .toolbar-main-btn,
  #designerForm .icon-toggle,
  #designerForm .tab-btn,
  #designerForm .side-tab,
  #designerForm .variant-tab,
  #designerForm .size-btn,
  #designerForm .qty-btn,
  #designerForm .upload-btn,
  #designerForm .close-btn,
  #designerForm .submit-progress-close,
  #designerForm .undo-floating,
  #designerForm .price-option,
  #designerForm .segmented label,
  #designerForm .toolbar-group-buttons button,
  #designerForm .text-toolbar-card button,
  #designerForm .sidebar-editor-group button,
  .page button,
  .page .btn,
  .page .chip-btn,
  .page .icon-btn,
  .page .toolbar-main-btn,
  .page .icon-toggle,
  .page .tab-btn,
  .page .side-tab,
  .page .variant-tab,
  .page .size-btn,
  .page .qty-btn,
  .page .upload-btn,
  .page .close-btn,
  .page .submit-progress-close,
  .page .undo-floating,
  .page .price-option,
  .page .segmented label,
  .page .toolbar-group-buttons button,
  .page .text-toolbar-card button,
  .page .sidebar-editor-group button,
  .template-actions .chip-btn,
  #quickTemplatesGroup .chip-btn,
  .preview-topbar button,
  .canvas-quick-actions-row button,
  .toolbar-insert-row button,
  .text-style-buttons button,
  .vip20-start-ok,
  .theme-switch,
  .reorder-hero-btn,
  .reorder-hero-info,
  .gallery-modal-dialog button,
  .gallery-overview button,
  .gallery-main-category-line button
){
  background:#ffffff !important;
  background-color:#ffffff !important;
  background-image:linear-gradient(180deg,#ffffff 0%,#ffffff 56%,#f6f7f9 100%) !important;
  color:#111111 !important;
  -webkit-text-fill-color:#111111 !important;
  border:1px solid rgba(17,24,39,.16) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,1),inset 0 -1px 0 rgba(255,255,255,.92),0 8px 18px rgba(15,23,42,.10),0 2px 5px rgba(15,23,42,.08) !important;
  text-shadow:none !important;
  filter:none !important;
}

html.theme-light body :is(button,.btn,.chip-btn,.icon-btn,.toolbar-main-btn,.undo-floating,.price-option,.segmented label,.template-actions .chip-btn,#quickTemplatesGroup .chip-btn,.preview-topbar button,.canvas-quick-actions-row button,.toolbar-insert-row button,.text-style-buttons button):hover,
body.theme-light :is(button,.btn,.chip-btn,.icon-btn,.toolbar-main-btn,.undo-floating,.price-option,.segmented label,.template-actions .chip-btn,#quickTemplatesGroup .chip-btn,.preview-topbar button,.canvas-quick-actions-row button,.toolbar-insert-row button,.text-style-buttons button):hover{
  background:#ffffff !important;
  background-color:#ffffff !important;
  background-image:linear-gradient(180deg,#ffffff 0%,#ffffff 70%,#ffffff 100%) !important;
  color:#111111 !important;
  -webkit-text-fill-color:#111111 !important;
  border-color:rgba(17,24,39,.24) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,1),inset 0 -1px 0 rgba(255,255,255,.95),0 10px 22px rgba(15,23,42,.13),0 3px 7px rgba(15,23,42,.10) !important;
  text-shadow:none !important;
  filter:none !important;
}

html.theme-light body :is(button,.btn,.chip-btn,.icon-btn,.toolbar-main-btn,.template-actions .chip-btn,#quickTemplatesGroup .chip-btn,.preview-topbar button,.canvas-quick-actions-row button,.toolbar-insert-row button,.text-style-buttons button):disabled,
body.theme-light :is(button,.btn,.chip-btn,.icon-btn,.toolbar-main-btn,.template-actions .chip-btn,#quickTemplatesGroup .chip-btn,.preview-topbar button,.canvas-quick-actions-row button,.toolbar-insert-row button,.text-style-buttons button):disabled{
  opacity:.88 !important;
  background:#ffffff !important;
  background-color:#ffffff !important;
  background-image:linear-gradient(180deg,#ffffff 0%,#ffffff 100%) !important;
  color:#111111 !important;
  -webkit-text-fill-color:#111111 !important;
  border-color:rgba(17,24,39,.12) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,1),0 5px 12px rgba(15,23,42,.08) !important;
  text-shadow:none !important;
}

html.theme-light body :is(button,.btn,.chip-btn,.icon-btn,.toolbar-main-btn,.price-option,.segmented label,.template-actions .chip-btn,#quickTemplatesGroup .chip-btn,.preview-topbar button,.canvas-quick-actions-row button,.toolbar-insert-row button,.text-style-buttons button) *,
body.theme-light :is(button,.btn,.chip-btn,.icon-btn,.toolbar-main-btn,.price-option,.segmented label,.template-actions .chip-btn,#quickTemplatesGroup .chip-btn,.preview-topbar button,.canvas-quick-actions-row button,.toolbar-insert-row button,.text-style-buttons button) *{
  color:#111111 !important;
  -webkit-text-fill-color:#111111 !important;
  fill:currentColor !important;
  stroke:currentColor !important;
  text-shadow:none !important;
}

html.theme-light body .align-icon span,
body.theme-light .align-icon span,
html.theme-light body .panel .align-icon span,
body.theme-light .panel .align-icon span,
html.theme-light body .text-style-buttons .align-icon span,
body.theme-light .text-style-buttons .align-icon span,
html.theme-light body .panel .text-style-buttons .align-icon span,
body.theme-light .panel .text-style-buttons .align-icon span{
  background:#111111 !important;
}
html.theme-light body .font-style-icon,
body.theme-light .font-style-icon,
html.theme-light body .text-style-buttons .font-style-icon,
body.theme-light .text-style-buttons .font-style-icon,
html.theme-light body .panel .text-style-buttons .font-style-icon,
body.theme-light .panel .text-style-buttons .font-style-icon,
html.theme-light body .text-style-buttons .chip-btn svg,
body.theme-light .text-style-buttons .chip-btn svg,
html.theme-light body .text-style-buttons .chip-btn svg *,
body.theme-light .text-style-buttons .chip-btn svg *{
  color:#111111 !important;
  fill:currentColor !important;
  stroke:currentColor !important;
}

/* Galerie-Uebersicht: Rubriken nur als Schrift, keine Button-Felder */
.gallery-modal-dialog .gallery-overview button,
.gallery-modal-dialog .gallery-overview-heading,
.gallery-modal-dialog .gallery-overview-items button,
html.theme-light .gallery-modal-dialog .gallery-overview button,
html.theme-light .gallery-modal-dialog .gallery-overview-heading,
html.theme-light .gallery-modal-dialog .gallery-overview-items button,
body.theme-light .gallery-modal-dialog .gallery-overview button,
body.theme-light .gallery-modal-dialog .gallery-overview-heading,
body.theme-light .gallery-modal-dialog .gallery-overview-items button{
  appearance:none !important;
  -webkit-appearance:none !important;
  display:inline !important;
  width:auto !important;
  min-width:0 !important;
  min-height:0 !important;
  height:auto !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  color:#000000 !important;
  -webkit-text-fill-color:#000000 !important;
  text-shadow:none !important;
  filter:none !important;
  line-height:1.25 !important;
  text-align:left !important;
  justify-content:flex-start !important;
}
.gallery-modal-dialog .gallery-overview-heading,
html.theme-light .gallery-modal-dialog .gallery-overview-heading,
body.theme-light .gallery-modal-dialog .gallery-overview-heading{
  display:block !important;
  font-size:24px !important;
  font-weight:500 !important;
  line-height:1.15 !important;
  margin:0 0 8px !important;
}
.gallery-modal-dialog .gallery-overview-items button,
html.theme-light .gallery-modal-dialog .gallery-overview-items button,
body.theme-light .gallery-modal-dialog .gallery-overview-items button{
  display:block !important;
  font-size:13px !important;
  font-weight:400 !important;
}
.gallery-modal-dialog .gallery-overview button:hover,
.gallery-modal-dialog .gallery-overview button:focus,
.gallery-modal-dialog .gallery-overview-heading:hover,
.gallery-modal-dialog .gallery-overview-heading:focus,
.gallery-modal-dialog .gallery-overview-items button:hover,
.gallery-modal-dialog .gallery-overview-items button:focus{
  outline:none !important;
  text-decoration:underline !important;
  background:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  color:#000000 !important;
  -webkit-text-fill-color:#000000 !important;
}



/* Finale Korrektur: Galerie nur als Text, keine Rahmen/Felder; Vorschau ohne weissen Rand */
.gallery-modal-dialog .gallery-overview,
html.theme-light .gallery-modal-dialog .gallery-overview,
body.theme-light .gallery-modal-dialog .gallery-overview{
  background:#ffffff !important;
}
.gallery-modal-dialog .gallery-overview button,
.gallery-modal-dialog .gallery-overview-heading,
.gallery-modal-dialog .gallery-overview-items button,
.gallery-modal-dialog .gallery-overview button *,
html.theme-light .gallery-modal-dialog .gallery-overview button,
html.theme-light .gallery-modal-dialog .gallery-overview-heading,
html.theme-light .gallery-modal-dialog .gallery-overview-items button,
body.theme-light .gallery-modal-dialog .gallery-overview button,
body.theme-light .gallery-modal-dialog .gallery-overview-heading,
body.theme-light .gallery-modal-dialog .gallery-overview-items button{
  appearance:none !important;
  -webkit-appearance:none !important;
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  outline:0 !important;
  text-shadow:none !important;
  filter:none !important;
}
.gallery-modal-dialog .gallery-overview-heading,
html.theme-light .gallery-modal-dialog .gallery-overview-heading,
body.theme-light .gallery-modal-dialog .gallery-overview-heading{
  display:block !important;
  width:auto !important;
  min-width:0 !important;
  min-height:0 !important;
  height:auto !important;
  margin:0 0 8px !important;
  padding:0 !important;
  color:#000000 !important;
  -webkit-text-fill-color:#000000 !important;
  font:inherit !important;
  font-size:24px !important;
  font-weight:600 !important;
  line-height:1.15 !important;
  text-align:left !important;
  cursor:pointer !important;
}
.gallery-modal-dialog .gallery-overview-items button,
html.theme-light .gallery-modal-dialog .gallery-overview-items button,
body.theme-light .gallery-modal-dialog .gallery-overview-items button{
  display:block !important;
  width:auto !important;
  min-width:0 !important;
  min-height:0 !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  color:#000000 !important;
  -webkit-text-fill-color:#000000 !important;
  font:inherit !important;
  font-size:13px !important;
  font-weight:400 !important;
  line-height:1.25 !important;
  text-align:left !important;
  cursor:pointer !important;
}
.gallery-modal-dialog .gallery-overview button:hover,
.gallery-modal-dialog .gallery-overview button:focus,
.gallery-modal-dialog .gallery-overview-heading:hover,
.gallery-modal-dialog .gallery-overview-heading:focus,
.gallery-modal-dialog .gallery-overview-items button:hover,
.gallery-modal-dialog .gallery-overview-items button:focus{
  border:0 !important;
  box-shadow:none !important;
  outline:0 !important;
  color:#000000 !important;
  -webkit-text-fill-color:#000000 !important;
  text-decoration:underline !important;
  transform:none !important;
}
.print-approval-preview-grid .motif-overview-side,
html:not(.theme-light) .print-approval-preview-grid .motif-overview-side{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}


/* Finale Korrektur helles Layout: Galerie nur Text, ohne Rahmen/Felder */
html.theme-light .gallery-modal-dialog .gallery-main-category-line button,
body.theme-light .gallery-modal-dialog .gallery-main-category-line button,
html.theme-light .gallery-modal-dialog .gallery-main-category-line button *,
body.theme-light .gallery-modal-dialog .gallery-main-category-line button *,
html.theme-light .gallery-modal-dialog .gallery-overview-heading,
body.theme-light .gallery-modal-dialog .gallery-overview-heading,
html.theme-light .gallery-modal-dialog .gallery-overview-items button,
body.theme-light .gallery-modal-dialog .gallery-overview-items button,
html.theme-light .gallery-modal-dialog .gallery-overview-items button *,
body.theme-light .gallery-modal-dialog .gallery-overview-items button *{
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  text-shadow:none !important;
  filter:none !important;
  outline:0 !important;
}
html.theme-light .gallery-modal-dialog .gallery-main-category-line button,
body.theme-light .gallery-modal-dialog .gallery-main-category-line button,
html.theme-light .gallery-modal-dialog .gallery-overview-heading,
body.theme-light .gallery-modal-dialog .gallery-overview-heading,
html.theme-light .gallery-modal-dialog .gallery-overview-items button,
body.theme-light .gallery-modal-dialog .gallery-overview-items button{
  padding:0 !important;
  color:#000000 !important;
  -webkit-text-fill-color:#000000 !important;
}
html.theme-light .gallery-modal-dialog .gallery-main-category-separator,
body.theme-light .gallery-modal-dialog .gallery-main-category-separator{
  color:#000000 !important;
  -webkit-text-fill-color:#000000 !important;
}

/* Person hinzufuegen: Info-Icon mit Popfenster statt Tipp-Box */
.multi-person-header{position:relative;align-items:center !important;}
.multi-person-trigger-wrap{position:relative;display:flex;align-items:center;gap:10px;width:100%;}
.multi-person-trigger-wrap #enableMultiMotifBtn{flex:1 1 auto;}
.info-icon-btn{
  flex:0 0 auto;
  width:28px;
  height:28px;
  min-width:28px;
  border-radius:999px;
  border:1px solid rgba(17,24,39,.18);
  background:linear-gradient(180deg,#ffffff 0%,#f3f4f6 100%);
  color:#111827;
  font-size:15px;
  font-weight:800;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 6px 14px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.95);
  cursor:pointer;
}
.multi-person-popover{
  position:absolute;
  top:calc(100% + 12px);
  right:0;
  left:auto;
  width:min(360px, calc(100vw - 64px));
  max-width:360px;
  min-height:0;
  margin:0;
  z-index:40;
}
.multi-person-popover.hidden{display:none !important;}
.multi-person-popover.is-open{display:flex !important;}
.multi-person-popover::after{
  left:auto;
  right:16px;
  top:-8px;
  bottom:auto;
  transform:rotate(225deg);
  box-shadow:none;
}
.multi-person-popover .template-tip-text{margin-top:4px;}
.multi-person-popover .template-tip-label{display:none !important;}
@media (max-width: 768px){
  .multi-person-trigger-wrap{align-items:flex-start;}
  .multi-person-popover{
    left:0;
    right:auto;
    width:min(360px, calc(100vw - 56px));
  }
  .multi-person-popover::after{
    right:auto;
    left:20px;
  }
}


/* Finale Korrektur helles Layout: Galerie-Text wirklich ohne Rahmen */
html.theme-light .gallery-modal-dialog .gallery-main-category-line button,
body.theme-light .gallery-modal-dialog .gallery-main-category-line button{
  all:unset !important;
  display:inline-block !important;
  cursor:pointer !important;
  font-size:30px !important;
  font-weight:800 !important;
  line-height:1.15 !important;
  color:#000000 !important;
  -webkit-text-fill-color:#000000 !important;
  background:none !important;
  background-color:transparent !important;
  background-image:none !important;
  border:none !important;
  border-radius:0 !important;
  box-shadow:none !important;
  text-shadow:none !important;
  filter:none !important;
  padding:0 !important;
  margin:0 !important;
}
html.theme-light .gallery-modal-dialog .gallery-overview-heading,
body.theme-light .gallery-modal-dialog .gallery-overview-heading{
  all:unset !important;
  display:block !important;
  cursor:pointer !important;
  font-size:24px !important;
  font-weight:600 !important;
  line-height:1.15 !important;
  color:#000000 !important;
  -webkit-text-fill-color:#000000 !important;
  background:none !important;
  background-color:transparent !important;
  background-image:none !important;
  border:none !important;
  border-radius:0 !important;
  box-shadow:none !important;
  text-shadow:none !important;
  filter:none !important;
  padding:0 !important;
  margin:0 0 8px !important;
}
html.theme-light .gallery-modal-dialog .gallery-overview-items button,
body.theme-light .gallery-modal-dialog .gallery-overview-items button{
  all:unset !important;
  display:block !important;
  cursor:pointer !important;
  font-size:13px !important;
  font-weight:400 !important;
  line-height:1.25 !important;
  color:#000000 !important;
  -webkit-text-fill-color:#000000 !important;
  background:none !important;
  background-color:transparent !important;
  background-image:none !important;
  border:none !important;
  border-radius:0 !important;
  box-shadow:none !important;
  text-shadow:none !important;
  filter:none !important;
  padding:0 !important;
  margin:0 !important;
}
html.theme-light .gallery-modal-dialog .gallery-main-category-line button:hover,
html.theme-light .gallery-modal-dialog .gallery-main-category-line button:focus,
body.theme-light .gallery-modal-dialog .gallery-main-category-line button:hover,
body.theme-light .gallery-modal-dialog .gallery-main-category-line button:focus,
html.theme-light .gallery-modal-dialog .gallery-overview-heading:hover,
html.theme-light .gallery-modal-dialog .gallery-overview-heading:focus,
body.theme-light .gallery-modal-dialog .gallery-overview-heading:hover,
body.theme-light .gallery-modal-dialog .gallery-overview-heading:focus,
html.theme-light .gallery-modal-dialog .gallery-overview-items button:hover,
html.theme-light .gallery-modal-dialog .gallery-overview-items button:focus,
body.theme-light .gallery-modal-dialog .gallery-overview-items button:hover,
body.theme-light .gallery-modal-dialog .gallery-overview-items button:focus{
  background:none !important;
  background-color:transparent !important;
  background-image:none !important;
  border:none !important;
  box-shadow:none !important;
  outline:none !important;
  color:#000000 !important;
  -webkit-text-fill-color:#000000 !important;
  text-decoration:underline !important;
  transform:none !important;
}
@media (max-width:720px){
  html.theme-light .gallery-modal-dialog .gallery-main-category-line button,
  body.theme-light .gallery-modal-dialog .gallery-main-category-line button{font-size:24px !important;}
}

/* Finale robuste Galerie-Korrektur: Light/Dark verwenden Text-Links statt Buttons */
.gallery-modal-dialog .gallery-main-category-line .gallery-main-category-link,
.gallery-modal-dialog .gallery-overview-heading,
.gallery-modal-dialog .gallery-overview-items .gallery-overview-link{
  appearance:none !important;
  -webkit-appearance:none !important;
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  text-shadow:none !important;
  filter:none !important;
  outline:none !important;
}
.gallery-modal-dialog .gallery-main-category-line .gallery-main-category-link{
  display:inline-block !important;
  cursor:pointer !important;
  padding:0 !important;
  margin:0 !important;
  font-size:30px !important;
  font-weight:800 !important;
  line-height:1.15 !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}
.gallery-modal-dialog .gallery-overview-heading{
  display:block !important;
  cursor:pointer !important;
  margin:0 0 8px !important;
  padding:0 !important;
  font-size:24px !important;
  font-weight:600 !important;
  line-height:1.15 !important;
  color:#000000 !important;
  -webkit-text-fill-color:#000000 !important;
}
.gallery-modal-dialog .gallery-overview-items .gallery-overview-link{
  display:block !important;
  cursor:pointer !important;
  margin:0 !important;
  padding:0 !important;
  font-size:13px !important;
  font-weight:400 !important;
  line-height:1.25 !important;
  color:#000000 !important;
  -webkit-text-fill-color:#000000 !important;
}
.gallery-modal-dialog .gallery-main-category-line .gallery-main-category-link:hover,
.gallery-modal-dialog .gallery-main-category-line .gallery-main-category-link:focus,
.gallery-modal-dialog .gallery-overview-heading:hover,
.gallery-modal-dialog .gallery-overview-heading:focus,
.gallery-modal-dialog .gallery-overview-items .gallery-overview-link:hover,
.gallery-modal-dialog .gallery-overview-items .gallery-overview-link:focus{
  background:transparent !important;
  background-image:none !important;
  border:0 !important;
  box-shadow:none !important;
  outline:none !important;
  text-decoration:underline !important;
  transform:none !important;
}
html.theme-light .gallery-modal-dialog .gallery-main-category-line .gallery-main-category-link,
body.theme-light .gallery-modal-dialog .gallery-main-category-line .gallery-main-category-link{
  color:#000000 !important;
  -webkit-text-fill-color:#000000 !important;
}
html.theme-light .gallery-modal-dialog .gallery-overview-heading,
body.theme-light .gallery-modal-dialog .gallery-overview-heading,
html.theme-light .gallery-modal-dialog .gallery-overview-items .gallery-overview-link,
body.theme-light .gallery-modal-dialog .gallery-overview-items .gallery-overview-link{
  color:#000000 !important;
  -webkit-text-fill-color:#000000 !important;
}
@media (max-width:720px){
  .gallery-modal-dialog .gallery-main-category-line .gallery-main-category-link{font-size:24px !important;}
}

#duplicatePriceBox{display:none!important;}
