/* =========================================================
   Lirel.ch  Editor (gestalten.html)
   Baut auf styles.css auf (Tokens, Buttons, Nav, Footer).
   Ebenen der Vorschau (unten nach oben):
   Foto > Blumen > Glasschleier > Gravur. Ansichten: Vorderseite, Rückseite.
   ========================================================= */

.editor { padding-top: clamp(20px, 3vw, 36px); padding-bottom: 40px; }
.editor-head { margin-bottom: -8px; }
.editor-head h1 { font-size: clamp(2.3rem, 4.2vw, 3.5rem); }
.editor-head p { margin-top: 12px; max-width: 52ch; font-size: 1.02rem; }

.editor-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
}

/* ---------- Vorschau ---------- */
.preview-col { position: sticky; top: calc(var(--nav-h) + 16px); z-index: 5; }
.preview-frame {
  position: relative; margin-inline: auto;
  width: min(100%, (100dvh - var(--nav-h) - 84px) * 0.8);
  aspect-ratio: 4 / 5;
}
.stage {
  position: absolute; inset: 0; overflow: hidden; border-radius: var(--r-card);
  background: #f1e3d9; box-shadow: var(--shadow); isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.stage-inner {
  position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 4 / 5;
  container-type: inline-size;
  --z: 1; --cx: 0.5; --cy: 0.5;
  transform-origin: 0 0;
  transform: translate(calc((0.5 - var(--cx) * var(--z)) * 100%), calc((0.5 - var(--cy) * var(--z)) * 100%)) scale(var(--z));
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), translate 0.4s var(--ease);
}
.stage.swap .stage-inner { opacity: 0; }
.base-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }

/* Blumen: alles unterhalb der Sockeloberkante liegt "hinter" Sockel und Griff */
.flower-layer {
  position: absolute; inset: 0; pointer-events: none;
  --clx0: 0%; --clx1: 0%; --cly: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--clx1) 100%, var(--clx1) var(--cly), var(--clx0) var(--cly), var(--clx0) 100%, 0 100%);
}
.flower-layer.off { display: none; }
.flower-img {
  position: absolute; left: var(--fx, 70%); bottom: calc(100% - var(--fy, 70%)); height: var(--fh, 50%); width: auto; max-width: none;
  transform: translateX(-50%); transform-origin: 50% 100%;
  filter: drop-shadow(0 1.2cqw 1.4cqw rgb(60 45 35 / 0.16));
  transition: opacity 0.3s var(--ease);
  animation: sway 8s ease-in-out infinite;
}
.flower-img.loading { opacity: 0; }
@keyframes sway { 0%, 100% { transform: translateX(-50%) rotate(0deg); } 50% { transform: translateX(-50%) rotate(1.1deg); } }

/* Glasschleier: dieselbe Fotostelle mit "lighten" über die Blumen, wirkt wie Blumen hinter Glas */
.veil { position: absolute; overflow: hidden; pointer-events: none; mix-blend-mode: lighten; opacity: 0.32; }
.veil img { position: absolute; max-width: none; width: calc(100% / var(--vw)); height: calc(100% / var(--vh)); left: calc(var(--vx) / var(--vw) * -100%); top: calc(var(--vy) / var(--vh) * -100%); }
.veil.off { display: none; }

/* ---------- Gravur ---------- */
.engrave {
  position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0; padding: 0; border: 0; background: none; cursor: text; overflow: hidden;
  /* Lasergravur: eine Schrift, eine Stärke, feste Grösse (Werte in products.js) */
  font-family: var(--font-engrave); font-weight: var(--engrave-weight, 400); text-align: center; line-height: 1.16;
  letter-spacing: var(--engrave-track, 0.02em);
  -webkit-text-stroke: var(--engrave-stroke, 0.028em) currentColor; paint-order: stroke fill;
  font-kerning: normal; font-variant-ligatures: common-ligatures;
  border-radius: 0.6cqw; outline: 0.25cqw dashed transparent; outline-offset: 0.6cqw;
  transition: outline-color 0.25s var(--ease), opacity 0.3s var(--ease);
}
.engrave:hover, .engrave:focus-visible { outline-color: rgb(95 78 67 / 0.6); }
.engrave.active { outline-color: rgb(95 78 67 / 0.75); }
/* Passt nicht: Grösse bleibt, das Feld wird rot umrandet */
.engrave.over, .engrave.over:hover { outline-color: rgb(165 57 47 / 0.85); outline-style: solid; }

.glass-engrave {
  color: rgb(22 19 17 / 0.9); mix-blend-mode: multiply; gap: 0.9cqw;
  text-shadow: 0 0 0.06cqw rgb(22 19 17 / 0.55);
}
.eng-text { display: block; max-width: 100%; white-space: pre-line; text-wrap: balance; overflow-wrap: anywhere; hyphens: manual; }
.eng-symbol { display: block; line-height: 0; }
.eng-symbol svg { display: block; height: 1.2em; width: auto; max-width: 4.4em; overflow: visible; stroke-width: 2.1; }
.eng-symbol:empty { display: none; }

.base-engrave {
  color: rgb(17 15 13 / 0.86); mix-blend-mode: multiply; gap: 0.2em;
  text-shadow: 0 0.07cqw 0 rgb(255 255 255 / 0.18);
}
.eng-name { display: block; font-size: calc(var(--bname, 4) * 1cqw); line-height: 1.1; white-space: nowrap; }
.eng-name.two span { display: block; }
.eng-name.two { line-height: 1.04; }
.eng-name.wrap, .eng-name.wrap span { white-space: normal; overflow-wrap: anywhere; }
.eng-dates[hidden] { display: none; }
/* Datumszeile leicht schmal laufend wie auf dem Produktfoto */
.eng-dates { display: block; font-size: calc(var(--bdates, 2.9) * 1cqw); line-height: 1.12; white-space: nowrap; font-variant-numeric: lining-nums; transform: scaleX(0.86); transform-origin: 50% 50%; }

.is-example { opacity: 0.36; }

/* ---------- Ansicht-Umschalter ---------- */
.view-bar { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; z-index: 6; pointer-events: none; }
.seg {
  pointer-events: auto; display: inline-flex; padding: 4px; border-radius: 999px;
  background: rgb(253 248 243 / 0.9); backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 8px 22px -12px rgb(40 30 22 / 0.5), inset 0 0 0 1px rgb(255 255 255 / 0.5);
}
.seg button {
  border: 0; background: transparent; color: #5e362d; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 0.86rem;
  min-height: 44px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px;
  transition: background 0.3s, color 0.3s;
}
.seg button[aria-pressed="true"] { background: #7d4a3f; color: #fdf8f3; }
.preview-hint { margin-top: 12px; text-align: center; font-size: 0.92rem; color: var(--ink); }

/* ---------- Formular ---------- */
.form-col { display: grid; gap: clamp(36px, 5vw, 52px); padding-bottom: 24px; }
fieldset.step { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.step legend { padding: 0; margin-bottom: 4px; }
.step-title { font-family: var(--font-display); font-size: clamp(1.75rem, 2.6vw, 2.1rem); line-height: 1.1; }
.step-sub { color: var(--ink); font-size: 1rem; margin-bottom: 16px; }
.mini-title { font-weight: 700; font-size: 0.95rem; margin: 26px 0 10px; }

/* Auswahlkarten */
.picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#pick-blumen { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.opt { position: relative; cursor: pointer; display: block; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt-card {
  display: flex; flex-direction: column; height: 100%; border-radius: var(--r-card); overflow: hidden; background: var(--surface);
  border: 1.5px solid var(--line); position: relative;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.3s var(--ease);
}
.opt-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #ece6de; }
#pick-blumen .opt-card img { object-fit: contain; padding: 8px 6px 0; background: #f1ece5; }
.opt-txt { display: grid; gap: 2px; padding: 9px 11px 11px; }
.opt-txt b { font-size: 0.9rem; line-height: 1.25; }
.opt-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt-txt b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.opt-txt small { font-size: 0.8rem; line-height: 1.3; color: var(--ink); opacity: 0.78; }
.opt:hover .opt-card { transform: translateY(-2px); }
.opt input:checked + .opt-card { border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.opt input:focus-visible + .opt-card { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Symbole */
.symbols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sym { position: relative; cursor: pointer; }
.sym input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sym-card {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 8px 10px; border-radius: var(--r-input);
  border: 1.5px solid var(--line); background: var(--surface); transition: border-color 0.25s, box-shadow 0.25s;
}
.sym-art { height: 26px; min-width: 30px; display: grid; place-items: center; color: var(--ink); }
.sym-art svg { height: 26px; width: auto; max-width: 64px; overflow: visible; stroke-width: 1.8; }
.sym-art.none { display: none; }
.sym-label { font-size: 0.9rem; font-weight: 700; }
.sym input:checked + .sym-card { border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.sym input:focus-visible + .sym-card { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Felder */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
fieldset.step { scroll-margin-top: calc(var(--nav-h) + var(--sticky-h, 0px) + 12px); }
.name-hint { grid-column: 1 / -1; display: flex; gap: 8px; align-items: flex-start; margin: -6px 0 0; font-size: 0.88rem; color: var(--accent-strong); }
.fit-hint { display: flex; gap: 8px; align-items: flex-start; margin: 2px 0 0; font-size: 0.9rem; font-weight: 600; color: #a5392f; }
.fit-hint[hidden] { display: none !important; }
.fields .name-fit { grid-column: 1 / -1; margin-top: -6px; }
.date-mode { grid-column: 1 / -1; display: grid; gap: 8px; }
.date-mode .mini-title { margin: 6px 0 0; }
.seg-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-choice label { position: relative; cursor: pointer; }
.seg-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); font-size: 0.9rem; font-weight: 600; color: var(--ink);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.seg-choice input:checked + span { border-color: var(--accent-strong); background: var(--accent-strong); color: var(--accent-ink); }
.seg-choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { display: grid; gap: 7px; align-content: start; scroll-margin-top: calc(var(--nav-h) + var(--sticky-h, 0px) + 18px); }
.field > label { font-size: 0.88rem; font-weight: 700; }
.field input:not([type="checkbox"]), .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1.0625rem; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--r-input); padding: 13px 15px; min-height: 52px;
  transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 78%, transparent); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.help { display: flex; justify-content: space-between; gap: 12px; font-size: 0.86rem; color: var(--ink); }
.help span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.help .near { color: var(--accent-strong); font-weight: 700; }
.error { display: none; font-size: 0.82rem; font-weight: 600; color: #a5392f; }
.field.invalid input:not([type="checkbox"]), .field.invalid textarea { border-color: #a5392f; }
.field.invalid .error { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px;
  min-height: 38px; padding: 0 14px; font-family: var(--font-body); font-size: 0.84rem; font-weight: 600; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.chip:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Bestellung: kompakt, ein Preis, eine Prüfung */
.order { padding: clamp(20px, 2.6vw, 28px); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 16px; scroll-margin-top: calc(var(--nav-h) + var(--sticky-h, 0px) + 18px); }
.order-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.order-price { display: grid; justify-items: end; line-height: 1.15; text-align: right; }
.order-price strong { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.order-price span { font-size: 0.84rem; color: var(--ink); opacity: 0.78; }
.order-summary { display: grid; gap: 12px; font-size: 0.92rem; }
.sum-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sum-cell { display: grid; gap: 2px; min-width: 0; }
.sum-cell span, .sum-eng span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ink); opacity: 0.7; }
.sum-cell b { font-weight: 600; overflow-wrap: anywhere; }
.sum-eng { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 12px; align-items: baseline; padding-top: 10px; border-top: 1px dashed var(--line); }
.sum-eng p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; font-family: var(--font-engrave); font-size: 0.95rem; line-height: 1.35; }
.sum-eng.example p { font-family: var(--font-body); color: var(--muted); font-style: italic; }
.included { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.88rem; color: var(--ink); }
.included li { display: inline-flex; align-items: center; gap: 6px; }
.included i { color: var(--accent-strong); }
.field.check { gap: 6px; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; font-weight: 600; line-height: 1.45; cursor: pointer; }
.checkbox input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent-strong); flex: 0 0 auto; cursor: pointer; }
.checkbox a { text-decoration: underline; text-underline-offset: 3px; }
.order .submit { width: 100%; }
.secure { font-size: 0.84rem; color: var(--ink); opacity: 0.85; text-align: center; margin-top: -4px; }
.notice {
  border-radius: var(--r-input); padding: 14px 16px; font-size: 0.9rem; line-height: 1.55;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.notice.err { background: color-mix(in srgb, #a5392f 10%, var(--surface)); border-color: color-mix(in srgb, #a5392f 40%, transparent); }
.notice ul { margin: 8px 0 0; padding-left: 18px; }

/* Mobile Bestellleiste (nur < 960px) */
.order-bar { display: none; }
.compact-expand { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 959px) {
  .editor { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .editor { padding-top: 0; }
  .editor-head h1 { font-size: 2.15rem; }
  .editor-head p { font-size: 1rem; margin-top: 6px; }
  .editor-grid { grid-template-columns: 1fr; gap: 22px; }

  .preview-col {
    top: var(--nav-h); margin-inline: -16px; padding: 8px 16px 10px;
    background: var(--bg); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  }
  /* Volle Breite, nur die Höhe ändert sich (kompakt, beim Tippen). Das Bild wird als Ausschnitt gezeigt. */
  .preview-frame { width: 100%; aspect-ratio: auto; height: var(--stage-h, min(54dvh, 520px)); transition: height 0.35s var(--ease); }
  .preview-hint { display: none; }
  .view-bar { bottom: 8px; transition: opacity 0.25s; }
  body.is-typing .view-bar, body.preview-compact .view-bar { opacity: 0; pointer-events: none; }
  html { overflow-anchor: none; } /* Scroll-Ausgleich beim Verkleinern macht editor.js selbst */
  body.no-anim .preview-frame { transition: none !important; }
  /* Kompakte Vorschau: Antippen vergrössert sie wieder */
  body.preview-compact .stage { cursor: zoom-in; }
  body.preview-compact:not(.is-typing) .compact-expand {
    display: grid; place-items: center; position: absolute; right: 22px; top: 16px; z-index: 7;
    width: auto; height: 36px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer;
    font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
    color: #5e362d; background: rgb(253 248 243 / 0.92); box-shadow: 0 8px 20px -12px rgb(90 50 38 / 0.6);
  }
  .seg button { min-height: 44px; padding: 0 15px; font-size: 0.86rem; }

  .picker, #pick-blumen {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px;
    margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .picker::-webkit-scrollbar { display: none; }
  .opt { flex: 0 0 min(38vw, 160px); scroll-snap-align: start; }
  #pick-blumen .opt { flex-basis: min(32vw, 136px); }
  .sum-cell b { font-size: 0.86rem; }
  .sym-card { flex-direction: column; gap: 4px; min-height: 66px; padding: 8px 6px; }
  .sym-art svg { max-width: 52px; }

  .order-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -22px rgb(40 30 22 / 0.45);
    transition: transform 0.35s var(--ease);
  }
  .order-bar.hide { transform: translateY(110%); }
  .ob-price { display: grid; line-height: 1.2; }
  .ob-label { font-size: 0.8rem; color: var(--ink); opacity: 0.8; }
  .ob-price strong { font-size: 1.12rem; font-variant-numeric: tabular-nums; }
  .order-bar .btn { min-height: 50px; }
}
@media (max-width: 380px) {
  .fields { grid-template-columns: 1fr; }
  .seg button { padding: 0 12px; }
}

/* ---------- Kalibrieren ---------- */
.calib[hidden], .notice[hidden], .field[hidden], .name-hint[hidden] { display: none !important; }
.calib {
  position: fixed; right: 16px; bottom: 16px; z-index: 50; width: min(360px, calc(100vw - 32px));
  max-height: calc(100dvh - var(--nav-h) - 32px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: 16px; display: grid; gap: 10px; font-size: 0.82rem; box-sizing: border-box;
}
.calib > * { min-width: 0; }
.calib-head { display: flex; justify-content: space-between; gap: 10px; }
.calib-head span { color: var(--muted); font-family: ui-monospace, monospace; }
.calib-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.calib-grid label { display: grid; gap: 2px; font-weight: 600; min-width: 0; }
.calib-grid input { width: 100%; min-width: 0; font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.calib textarea { width: 100%; font-family: ui-monospace, monospace; font-size: 0.72rem; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.cal-box { position: absolute; border: 0.3cqw dashed #d13b8a; background: rgb(209 59 138 / 0.08); cursor: move; z-index: 20; touch-action: none; }
.cal-box[data-k="base"] { border-color: #2b6fd6; background: rgb(43 111 214 / 0.08); }
.cal-box[data-k="veil"] { border-color: #2f9e5b; background: transparent; }
.cal-box b { position: absolute; left: 0; top: -3.2cqw; font: 600 2.2cqw/1 var(--font-body); color: #fff; background: #333; padding: 0.4cqw 0.8cqw; border-radius: 0.6cqw; white-space: nowrap; }
.cal-handle { position: absolute; right: -1.4cqw; bottom: -1.4cqw; width: 2.8cqw; height: 2.8cqw; border-radius: 50%; background: #fff; border: 0.4cqw solid #333; cursor: nwse-resize; touch-action: none; }
.cal-pt { position: absolute; width: 3cqw; height: 3cqw; margin: -1.5cqw 0 0 -1.5cqw; border-radius: 50%; border: 0.5cqw solid #fff; background: #f2b705; z-index: 21; cursor: move; touch-action: none; box-shadow: 0 0 0 0.3cqw rgb(0 0 0 / 0.4); }
.cal-pt[data-k="flowers"] { background: #2f9e5b; }
body.calibrating .engrave { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .flower-img { animation: none; }
  .stage-inner { transition: opacity 0.2s; }
  .preview-frame, .order-bar { transition: none; }
}

/* ---------- Rückseite: Logo und lirel.ch auf dem Sockel ----------
   Die Ansicht dreht das Foto wie eine umgedrehte Kerze (horizontal gespiegelt).
   Die Glasgravur der Vorderseite scheint spiegelverkehrt und zart durch das Glas. */
.mirror-wrap { position: absolute; inset: 0; transition: transform 0.4s var(--ease); }
.stage[data-mode="rueck"] .mirror-wrap { transform: scaleX(-1); }
.stage[data-mode="rueck"] .glass-engrave { opacity: 0.2; filter: blur(0.08cqw); }
.stage[data-mode="rueck"] #eng-base { opacity: 0; pointer-events: none; }
.back-engrave {
  display: flex; opacity: 0; pointer-events: none; cursor: default; gap: 0.5em;
  color: rgb(17 15 13 / 0.82); mix-blend-mode: multiply; text-shadow: 0 0.07cqw 0 rgb(255 255 255 / 0.16);
  transition: opacity 0.3s var(--ease) 0.15s;
}
.stage[data-mode="rueck"] .back-engrave { opacity: 1; }
/* optisch mittig auf der gewölbten Sockelfront: leicht nach unten, da der obere Rand vom Glas überdeckt wird */
.back-engrave { transform: translateY(var(--back-dy, 14%)); }
.back-logo { line-height: 0; }
.back-logo svg { display: block; height: calc(var(--bname, 4) * 1.75cqw); width: auto; }
.back-url { font-family: var(--font-body); font-weight: 600; font-size: calc(var(--bdates, 2.9) * 0.9cqw); letter-spacing: 0.32em; padding-left: 0.32em; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .mirror-wrap { transition: none; } }

/* Marken-Symbole in dunklen Buttons in Schriftfarbe */
.btn i.bi-i, [aria-pressed="true"] i.bi-i { color: currentColor; }
