/* Investorenmappe · Sali Consulting
   Layout: Formular-Assistent links/oben, danach Mappe (9 Seiten, 16:9) mit Design-Leiste rechts.
   Seitenfarben: Sali-Rot (Light) und Grau #424242 (Dark), je nach Browser-/PC-Einstellung. */

:root {
  --red: #d1370d;
  --red-ink: #ffffff;
  --red-soft: #fff5ec;
  --link: #b02e0b;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #efefef;
  --ink: #2d2d2d;
  --muted: #707070;
  --line: #e0e0e0;
  --ok: #2c7a4b;
  --err: #b3261e;
  --warn-bg: #fdf0c9;
  --warn-ink: #6b4e00;
  --shadow: 0 6px 16px rgba(45, 45, 45, .08), 0 2px 4px rgba(45, 45, 45, .04);
  --ui: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red: #d1370d;
    --red-soft: #3a2622;
    --link: #ff8244;
    --bg: #2d2d2d;
    --surface: #333333;
    --surface-2: #3a3a3a;
    --ink: #ffffff;
    --muted: #c9c9c9;
    --line: #3f3f3f;
    --ok: #6fcf97;
    --err: #ff8a80;
    --warn-bg: #4a3b12;
    --warn-ink: #f6d98a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --red: #d1370d;
  --red-soft: #3a2622;
  --link: #ff8244;
  --bg: #2d2d2d;
  --surface: #333333;
  --surface-2: #3a3a3a;
  --ink: #ffffff;
  --muted: #c9c9c9;
  --line: #3f3f3f;
  --ok: #6fcf97;
  --err: #ff8a80;
  --warn-bg: #4a3b12;
  --warn-ink: #f6d98a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--ui);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 30; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.shell {
  max-width: 1320px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.main { padding-block: 28px 64px; }

/* ---------- Kopfzeile ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .sali-bar { background: var(--bg); }
.top-sub { border-top: 1px solid var(--line); margin-top: 2px; }
.top-sub .top-in { min-height: 46px; }
.top-in { display: flex; align-items: center; gap: 14px; min-height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.brand b { font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--link); }
.brand .sali-bar__logo { height: 24px; }
.badge { font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  appearance: none; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: .7em 1.15em; border-radius: 8px; font-weight: 600; line-height: 1.2;
  transition: background .15s, border-color .15s;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--red); border-color: var(--red); color: var(--red-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.sm { padding: .45em .85em; font-size: .875rem; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------- Formular ---------- */
.form-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.stepper-wrap { position: sticky; top: calc(78px + env(safe-area-inset-top, 0px)); align-self: start; }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.st {
  display: flex; align-items: center; gap: 12px; width: 100%;
  border: 0; background: transparent; padding: 10px 12px; border-radius: 10px;
  text-align: left; cursor: pointer; color: var(--muted); font-weight: 600;
}
.st:hover { background: var(--surface-2); }
.st .num {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: .85rem;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--muted);
}
.st.done .num { background: var(--ok); border-color: var(--ok); color: #fff; }
.st.cur { color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.st.cur .num { background: var(--red); border-color: var(--red); color: var(--red-ink); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.form-card { padding: 32px clamp(18px, 4vw, 40px) 28px; min-width: 0; }
.eyebrow { margin: 0 0 6px; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--link); font-weight: 700; }
h1 { margin: 0 0 20px; font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.form-card h1::after, .gate-card h1::after { content: ""; display: block; width: 56px; height: 2px; background: var(--red); margin-top: 12px; }
h1:focus { outline: none; }
.lead { margin: 0 0 24px; color: var(--muted); max-width: 62ch; }
#stepForm { display: grid; gap: 22px; }

.field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .lbl, legend { font-weight: 700; font-size: .95rem; padding: 0; }
.req { color: var(--red); }
.hint { margin: 0; color: var(--muted); font-size: .875rem; max-width: 70ch; }
.err { margin: 0; color: var(--err); font-size: .875rem; font-weight: 600; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.group-title { margin: 0; font-size: 1rem; }

input[type="text"], input[type="password"], input[type="email"], input[type="tel"], input[type="number"], textarea, select {
  width: 100%; padding: .7em .85em; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
textarea { resize: vertical; min-height: 5.2em; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }
input:focus, textarea:focus, select:focus { outline: 3px solid color-mix(in srgb, var(--red) 45%, transparent); outline-offset: 0; border-color: var(--red); }
[aria-invalid="true"] { border-color: var(--err) !important; }

.seg { display: inline-flex; gap: 6px; padding: 4px; background: var(--surface-2); border-radius: 12px; }
.seg label { cursor: pointer; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: .5em 1.1em; border-radius: 9px; font-weight: 600; color: var(--muted); }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.seg input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 1px; }

.seg.wrapseg { display: flex; flex-wrap: wrap; }
.sign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 4px; }
.sign-opt { cursor: pointer; position: relative; display: block; }
.sign-opt input { position: absolute; opacity: 0; pointer-events: none; }
.sign-opt span { display: grid; gap: 6px; justify-items: center; padding: 10px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); }
.sign-opt img { height: 56px; max-width: 100%; object-fit: contain; background: #fff; border-radius: 8px; padding: 6px; box-sizing: content-box; }
.sign-opt small { color: var(--muted); font-weight: 600; }
.sign-opt input:checked + span { border-color: var(--red); background: var(--red-soft); }
.sign-opt input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }

.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--red); flex: none; }
.size-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.size-row:last-of-type { border-bottom: 0; }
.max { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.max input { width: 5.5em; }
.checks { display: grid; gap: 10px; }

.drop { position: relative; border: 2px dashed var(--line); border-radius: 12px; background: var(--bg); transition: border-color .15s, background .15s; }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--red); background: var(--red-soft); }
.drop[data-full] { opacity: .55; }
.drop-in { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; color: var(--muted); }
.drop-in svg { width: 28px; height: 28px; flex: none; color: var(--red); }
.drop-in b { color: var(--ink); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 4px; }
.thumb { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumb .x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(0, 0, 0, .65); color: #fff; font-size: 18px; line-height: 1; display: grid; place-items: center; padding: 0; }
.count { font-size: .85rem; color: var(--muted); }

.todo { margin: 0; padding: 14px 18px 14px 36px; background: var(--surface-2); border-radius: 12px; color: var(--muted); font-size: .92rem; }
.todo strong { color: var(--ink); }

.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Mappen-Ansicht ---------- */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.tb-right { display: flex; flex-wrap: wrap; gap: 10px; }
.tip { margin: 0 0 22px; color: var(--muted); max-width: 80ch; }
.deck-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.deck { --k: 1; display: grid; gap: 26px; min-width: 0; }
.slide-card { min-width: 0; }
.slide-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
.slide-bar h3 { margin: 0 auto 0 0; font-size: 1rem; display: flex; align-items: baseline; gap: 10px; }
.pshape { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.pshape select { width: auto; padding: .3em 1.8em .3em .6em; font-size: .85rem; }
.slide-bar .pg { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.warn { background: var(--warn-bg); color: var(--warn-ink); font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.regen { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.regen input { flex: 1 1 260px; width: auto; }
.slide-wrap { width: calc(1280px * var(--k)); height: calc(720px * var(--k)); position: relative; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.slide { position: absolute; left: 0; top: 0; transform: scale(var(--k)); transform-origin: 0 0; }

.panel { position: sticky; top: calc(78px + env(safe-area-inset-top, 0px)); max-height: calc(100vh - 100px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.panel > summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 800; font-size: 1.05rem; display: flex; justify-content: space-between; }
.panel > summary::-webkit-details-marker { display: none; }
.panel > summary::after { content: "–"; color: var(--muted); }
.panel:not([open]) > summary::after { content: "+"; }
#panelBody { padding: 0 18px 18px; display: grid; gap: 20px; }
.psec { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.psec h3 { margin: 0; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.presets { display: grid; gap: 6px; }
.preset { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; text-align: left; font-weight: 600; font-size: .92rem; }
.preset[aria-pressed="true"] { border-color: var(--red); background: var(--red-soft); }
.sw { display: inline-flex; flex: none; }
.sw i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); margin-left: -6px; }
.sw i:first-child { margin-left: 0; }
.pickers { display: grid; gap: 8px; }
.picker { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; font-size: .92rem; }
.picker input[type="color"] { width: 52px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); cursor: pointer; }
.psel { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
.panel .seg { display: flex; }
.panel .seg label { flex: 1; }
.panel .seg span { text-align: center; padding: .45em .4em; font-size: .88rem; }
.panel input[type="range"] { width: 100%; accent-color: var(--red); }
.reset { justify-self: start; }

/* ---------- Hinweise ---------- */
.busy { position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); display: grid; place-items: center; backdrop-filter: blur(3px); }
.busy-in { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 28px 34px; display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 360px; }
.busy-in p { margin: 0; font-weight: 600; }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--surface-2); border-top-color: var(--red); animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.toast { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); max-width: min(560px, calc(100vw - 32px)); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); }

/* ======================================================================
   MAPPE (Seiten 1280 × 720)
   ====================================================================== */
.deck {
  --m-main: #e8575a; --m-accent: #a8c3ae; --m-bg: #ffffff; --m-text: #1f1f1f;
  --m-fh: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --m-fb: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --m-arch: 999px 999px 0 0; --m-logo-h: 56px; --m-hs: 1;
  --m-tint: color-mix(in srgb, var(--m-accent) 26%, var(--m-bg));
  --m-muted: color-mix(in srgb, var(--m-text) 66%, var(--m-bg));
  --m-line: color-mix(in srgb, var(--m-text) 14%, var(--m-bg));
}
.slide {
  width: 1280px; height: 720px; overflow: hidden;
  background: var(--m-bg); color: var(--m-text);
  font-family: var(--m-fb); font-size: 21px; line-height: 1.45;
}
.slide .h { font-family: var(--m-fh); color: var(--m-main); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.slide p { margin: 0; }
.slide .arch { position: relative; background: var(--m-accent); border-radius: var(--m-arch); }

/* Form "Kreis": echter Kreis (kleinere Seite des Rahmens), unabhängig vom Seitenverhältnis */
.slot[data-shape="kreis"]:not(.sign-slot) { background: none !important; border-radius: 0 !important; box-shadow: none !important; }
.slot[data-shape="kreis"]:not(.sign-slot) .clip { border-radius: 0; background: var(--m-accent); clip-path: circle(closest-side at 50% 50%); }
.slot.photo[data-shape="kreis"] .clip { background: var(--m-tint); }
.slot[data-shape="kreis"]:not(.sign-slot):hover, .slot[data-shape="kreis"]:not(.sign-slot).sel, .slot[data-shape="kreis"]:not(.sign-slot):focus-visible { outline: 0; }
.slot[data-shape="kreis"].sel .clip, .slot[data-shape="kreis"]:focus-visible .clip { outline: 2px solid var(--m-main); outline-offset: -2px; }
.arch[data-shape="kreis"]:not(.slot) { background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important; }
.arch[data-shape="kreis"]:not(.slot)::before { content: ""; position: absolute; inset: 0; background: var(--m-s8-bg, var(--m-accent)); clip-path: circle(closest-side at 50% 50%); }
.arch[data-shape="kreis"]:not(.slot) .bigpin { position: relative; z-index: 1; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) { --m-s8-bg: var(--m-main); }
.slot[data-shape="kreis"] { container-type: size; }
.slot[data-shape="kreis"] > .shp { right: auto; left: 50%; top: calc((100cqh - 100cqmin) / 2 + 100cqmin * .13); transform: translateX(-50%) scale(clamp(1, calc(.6 / var(--k)), 1.6)); transform-origin: 50% 0; }

/* Formen einzeln: beim Darüberfahren erscheint an jeder Kachel die Formauswahl */
[data-sid] { position: relative; }
.shp { display: none; position: absolute; right: 8px; top: 8px; z-index: 8; gap: 3px; padding: 3px; border-radius: 9px; background: rgba(20, 20, 20, .86); transform: scale(clamp(1, calc(.6 / var(--k)), 1.6)); transform-origin: 100% 0; cursor: default; }
[data-sid]:hover > .shp, [data-sid]:focus-within > .shp, .slot.sel > .shp { display: flex; }
.shp button { appearance: none; border: 0; border-radius: 6px; width: 24px; height: 24px; padding: 3px; display: grid; place-items: center; background: transparent; color: rgba(255, 255, 255, .7); cursor: pointer; }
.shp button svg { width: 18px; height: 18px; }
.shp button:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.shp button[aria-pressed="true"] { background: #fff; color: #111; }
.deck:is([data-layout="klassisch"], [data-layout="magazin"]) .adv > .shp,
.deck:is([data-layout="klassisch"], [data-layout="magazin"], [data-layout="modern"]) .qa > .shp,
.deck[data-layout="magazin"] .card2 > .shp,
.deck:is([data-layout="klassisch"], [data-layout="magazin"]) .qr > .shp { display: none !important; }

/* Bildfelder: Bild liegt im Ausschnitt (.clip), die Werkzeugleiste darf darüber hinausragen */
.slot { position: relative; outline-offset: 3px; }
.slot .clip { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.slot img { position: absolute; left: 0; top: 0; max-width: none; user-select: none; -webkit-user-drag: none; }
.slot:not(.sign-slot) img:not([data-ok]) { visibility: hidden; }
.slot.has { cursor: grab; }
.slot.drag { cursor: grabbing; }
.slot.sel { touch-action: none; }
.slot:hover { outline: 2px dashed color-mix(in srgb, var(--m-main) 50%, transparent); }
.slot:focus-visible, .slot.sel { outline: 2px solid var(--m-main); }
.slot.over { outline: 3px solid var(--m-main); }
.slot-ui {
  position: absolute; left: 50%; bottom: 12px; z-index: 5; display: none; gap: 4px; padding: 5px;
  background: rgba(20, 20, 20, .88); border-radius: 10px; white-space: nowrap; cursor: default;
  transform: translateX(-50%) scale(clamp(1, calc(.6 / var(--k)), 2)); transform-origin: 50% 100%;
}
.slot.sel .slot-ui, .slot:focus-within .slot-ui { display: flex; }
.slot-ui button {
  appearance: none; border: 0; border-radius: 7px; min-width: 32px; height: 32px; padding: 0 9px;
  background: rgba(255, 255, 255, .14); color: #fff; font: 600 14px/1 system-ui, sans-serif; cursor: pointer;
}
.slot-ui button:hover { background: rgba(255, 255, 255, .28); }
.slot-ui button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.slot-add {
  position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: 8px;
  background: none; border: 0; color: var(--m-text); opacity: .62; cursor: pointer; font: 600 15px/1.2 system-ui, sans-serif;
}
.slot-add:hover, .slot-add:focus-visible { opacity: 1; }
.slot-add svg { width: 30px; height: 30px; }
.sign-slot { height: 76px; width: 100%; flex: none; }
.sign-slot .clip { overflow: visible; }
.sign-slot img { inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.sign-slot .slot-ui { bottom: 100%; margin-bottom: 4px; }
.deck[data-dark="1"] .sign-slot img { filter: invert(1); mix-blend-mode: screen; }
.s-body { position: absolute; left: 0; right: 0; top: 0; bottom: 46px; padding: 60px 64px 24px; overflow: hidden; }
.s-logo { position: absolute; z-index: 3; top: 34px; right: 48px; height: var(--m-logo-h); max-width: 240px; object-fit: contain; object-position: right; }
.s-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; padding: 0 64px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--m-line); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--m-muted); }
.s-foot .fl { display: flex; align-items: center; gap: 10px; }
.s-foot .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--m-main); display: inline-block; }

.ed { cursor: text; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 4px; }
.ed:hover { outline: 2px dashed color-mix(in srgb, var(--m-main) 45%, transparent); outline-offset: 3px; }
.ed:focus { outline: 2px solid var(--m-main); outline-offset: 3px; }
.ed:empty::before { content: attr(data-ph); color: var(--m-muted); opacity: .65; }

/* Seite 1 */
.s1 .arch { position: absolute; left: 72px; top: 72px; bottom: 72px; width: 320px; }
.s1 .s-body { left: 470px; bottom: 0; padding: 0 72px 0 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.s1-logo { height: 84px; max-width: 300px; object-fit: contain; object-position: left; margin-bottom: 8px; }
.s1-title { font-size: calc(72px * var(--m-hs, 1)); }
.s1-sub { font-size: 26px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.s1-note { font-size: 19px; color: var(--m-muted); }

/* Seite 2 */
.s2-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; }
.s2-text { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding-top: 8px; }
.s2-head { font-size: calc(76px * var(--m-hs, 1)); }
.lead2 { font-size: 28px; font-weight: 500; }
.body { font-size: 20px; }
.kv { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.kv .row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; font-size: 18px; line-height: 1.4; align-items: baseline; }
.kv b { color: var(--m-main); font-family: var(--m-fh); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.s2-side { display: flex; flex-direction: column; gap: 14px; align-items: center; padding-top: 50px; min-height: 0; }
.s2-side .arch { width: 100%; flex: 1; min-height: 0; }

/* Seite 3 */
.s3-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-content: center; }
.s3-left { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.s3-head { font-size: calc(64px * var(--m-hs, 1)); }
.s3-left .body { font-size: 21px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: center; }
.card2 { background: var(--m-tint); border-radius: var(--m-arch-r, 18px); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; min-height: 150px; min-width: 0; }
.card2 .k { font-family: var(--m-fh); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--m-main); font-weight: 700; }
.card2 .v { font-size: 18px; line-height: 1.4; }

/* Seite 4 */
.s4-body { display: flex; flex-direction: column; gap: 26px; }
.s4-head { font-size: calc(46px * var(--m-hs, 1)); max-width: 900px; }
.adv-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(4, auto); grid-template-columns: 1fr 1fr; gap: 20px 48px; }
.adv { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start; }
.ic { width: 52px; height: 52px; border-radius: 50%; background: var(--m-tint); color: var(--m-main); display: grid; place-items: center; }
.ic svg { width: 26px; height: 26px; }
.adv .t { font-weight: 700; font-size: 20px; line-height: 1.25; display: block; }
.adv .x { font-size: 16.5px; line-height: 1.4; color: var(--m-muted); display: block; margin-top: 3px; }

/* Seite 5 */
.s5-body { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 56px; align-content: center; }
.s5-left { display: flex; flex-direction: column; gap: 20px; }
.s5-left .arch { height: 400px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 1.5px solid var(--m-line); border-radius: 999px; padding: 4px 14px; font-size: 14px; color: var(--m-muted); }
.s5-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.s5-head { font-size: calc(60px * var(--m-hs, 1)); }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: p; }
.points li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 22px; font-weight: 600; }
.points li::before { counter-increment: p; content: counter(p); width: 36px; height: 36px; border-radius: 50%; background: var(--m-main); color: var(--m-bg); display: grid; place-items: center; font-size: 18px; font-family: var(--m-fh); }
.s5-right p { font-size: 19px; }

/* Seite 6 */
.s6-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: stretch; }
.s6-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.s6-head { font-size: calc(52px * var(--m-hs, 1)); margin-bottom: 4px; }
.qa { display: grid; gap: 4px; }
.qa .q { font-family: var(--m-fh); font-weight: 700; color: var(--m-main); font-size: 22px; }
.qa .a { font-size: 17px; line-height: 1.42; }

/* Seite 7 */
.s7-body { display: grid; grid-template-columns: minmax(0, 1fr) 290px; grid-template-rows: auto minmax(0, 1fr); gap: 20px 48px; }
.s7-top { grid-column: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.s7-head { font-size: calc(52px * var(--m-hs, 1)); }
.s7-top .body { font-size: 19px; }
.photos { grid-column: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 12px; min-height: 0; }
.photo { border-radius: var(--m-photo-r, 14px); background: var(--m-tint); position: relative; }
.facts { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: grid; gap: 18px; padding-left: 28px; border-left: 2px solid var(--m-line); }
.fact .k { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--m-muted); display: block; }
.fact .v { font-family: var(--m-fh); font-size: 30px; font-weight: 700; color: var(--m-main); line-height: 1.15; display: block; }

/* Seite 8 */
.s8-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }
.s8-left { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.s8-head { font-size: calc(60px * var(--m-hs, 1)); margin-bottom: 4px; }
.lbl2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--m-muted); font-weight: 700; }
.lage { font-family: var(--m-fh); font-size: 34px; font-weight: 700; color: var(--m-main); line-height: 1.15; }
.sizes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 22px; }
.sizes li { display: flex; gap: 12px; align-items: baseline; }
.sizes li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--m-main); flex: none; transform: translateY(-3px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--m-tint); border-radius: 999px; padding: 6px 16px; font-size: 18px; }
.s8-side { padding-top: 50px; }
.s8-side .arch { height: 100%; display: grid; place-items: center; color: var(--m-main); }
.bigpin { width: 170px; height: 170px; }

/* Seite 9 */
.s9-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; }
.s9-left { display: flex; flex-direction: column; gap: 28px; justify-content: center; min-width: 0; }
.s9-head { font-size: calc(60px * var(--m-hs, 1)); }
.contact { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 30px; align-items: center; }
.qrbox { display: grid; gap: 8px; justify-items: center; }
.qr { width: 190px; height: 190px; border-radius: 16px; background: #fff; display: grid; place-items: center; border: 1.5px solid var(--m-line); padding: 10px; }
.qr img { max-width: 100%; max-height: 100%; object-fit: contain; }
.qr.empty { background: var(--m-tint); color: var(--m-muted); font-size: 14px; text-align: center; border-style: dashed; }
.qrbox small { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--m-muted); }
.clist { display: grid; gap: 16px; min-width: 0; }
.crow { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: center; font-size: 22px; }
.crow .ic { width: 48px; height: 48px; }
.s9-side { padding-top: 50px; }
.s9-side .arch { height: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .form-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .stepper-wrap { position: static; }
  .stepper { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .st { width: auto; flex: none; padding: 8px 12px; }
  .st .lab { display: none; }
  .st.cur .lab { display: inline; }
  .deck-layout { grid-template-columns: minmax(0, 1fr); }
  .panel { position: static; max-height: none; order: -1; }
  .grid3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .nav .btn { flex: 1; }
  .main { padding-block: 18px 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .spin { animation-duration: 3s; }
  .btn, .drop { transition: none; }
}

/* ---------- Druck / PDF ---------- */
@media print {
  @page { size: 1280px 720px; margin: 0; }
  html, body { background: #fff !important; }
  body::before { display: none; }
  .no-print, .top, #view-form, .panel, .toolbar, .tip, .slide-bar, .regen, .busy, .toast { display: none !important; }
  .shell, .main { padding: 0 !important; max-width: none !important; margin: 0 !important; }
  .deck-layout { display: block; }
  .deck { --k: 1 !important; display: block; gap: 0; }
  .slide-card { break-after: page; page-break-after: always; }
  .slide-card:last-child { break-after: auto; page-break-after: auto; }
  .slide-wrap { width: 1280px !important; height: 720px !important; box-shadow: none; border: 0; border-radius: 0; }
  .slide { transform: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ed { outline: none !important; }
  .ed:empty { visibility: hidden; }
  .row:has(.ed:empty), .crow:has(.ed:empty), .fact:has(.ed:empty), .card2:has(.ed:empty), .chip:has(.ed:empty), .pill:has(.ed:empty), .sizes li:has(.ed:empty) { display: none; }
  .photo.empty { background: transparent; }
  .qr.empty { visibility: hidden; }
  .slot-ui, .slot-add { display: none !important; }
  .slot, .slot:hover, .slot.sel { outline: none !important; }
}


/* ======================================================================
   LAYOUT "MODERN" (gleiche Inhalte, anderes Gesamtbild)
   ====================================================================== */
.deck[data-foot="0"] .s-foot { display: none; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .slide { font-size: 20px; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .slide .h { font-weight: 800; letter-spacing: -.028em; line-height: 1.02; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .slide::before {
  content: attr(data-n) "   " attr(data-label); position: absolute; z-index: 3; left: 64px; top: 38px;
  font: 700 13px/1 var(--m-fb); letter-spacing: .22em; text-transform: uppercase; color: var(--m-main); white-space: pre;
}
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .slide.s1::before { display: none; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s-body { padding: 84px 64px 18px; bottom: 56px; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s-logo { top: 28px; right: 56px; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s-foot { height: 56px; border-top: 0; padding: 0 64px; font-size: 13px; font-weight: 700; letter-spacing: .16em; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s-foot .dot { width: 30px; height: 4px; border-radius: 0; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s-foot span:last-child { color: var(--m-main); }

/* M1 Titel */
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s1::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 620px; background: var(--m-tint); }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s1 .arch { left: auto; right: 56px; top: 56px; bottom: 56px; width: 508px; z-index: 1; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s1 .s-body { left: 0; right: 660px; padding: 0 0 0 64px; gap: 22px; z-index: 2; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s1-title { font-size: calc(98px * var(--m-hs, 1)); line-height: .98; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s1-sub { display: flex; align-items: center; gap: 16px; font-size: 20px; font-weight: 700; letter-spacing: .2em; color: var(--m-text); }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s1-sub::before { content: ""; width: 56px; height: 5px; background: var(--m-main); flex: none; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s1-note { font-size: 17px; max-width: 480px; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s1-logo { height: 70px; }

/* M2 Über dich */
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s2-body { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s2-text { gap: 10px; padding-top: 0; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s2-head { font-size: calc(92px * var(--m-hs, 1)); }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .lead2 { font-size: 30px; font-weight: 700; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s2 .body { font-size: 19px; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .kv { margin-top: 8px; gap: 0; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .kv .row { border-top: 1.5px solid var(--m-line); padding: 9px 0; font-size: 17px; line-height: 1.38; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s2-side { padding: 0 18px 18px 0; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s2-side .arch { box-shadow: 18px 18px 0 var(--m-tint); }

/* M3 Unternehmen */
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s3-body { align-content: start; gap: 48px; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s3-head { font-size: calc(70px * var(--m-hs, 1)); }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .cards { gap: 14px; align-content: start; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .card2 { border-radius: var(--m-arch-r, 22px); min-height: 200px; padding: 22px 24px; background: var(--m-tint); }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .card2:nth-child(1), .deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .card2:nth-child(4) { background: var(--m-main); }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .card2:nth-child(1) .k, .deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .card2:nth-child(1) .v,
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .card2:nth-child(4) .k, .deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .card2:nth-child(4) .v { color: var(--m-bg); }

/* M4 Vorteile */
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s4-body { gap: 20px; padding-top: 74px; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s4-head { font-size: calc(54px * var(--m-hs, 1)); max-width: 1000px; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .adv-grid { gap: 14px 18px; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .adv { background: var(--m-tint); border-radius: var(--m-arch-r, 22px); padding: 14px 18px; align-items: center; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .adv .ic { border-radius: 14px; background: var(--m-main); color: var(--m-bg); width: 48px; height: 48px; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .adv .t { font-size: 19px; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .adv .x { font-size: 15.5px; line-height: 1.36; margin-top: 2px; }

/* M5 Konzept */
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s5-body { grid-template-columns: 400px minmax(0, 1fr); align-content: start; gap: 48px; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s5-left .arch { height: 400px; box-shadow: -16px 16px 0 var(--m-tint); }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s5-head { font-size: calc(58px * var(--m-hs, 1)); }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .points li { font-size: 21px; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .points li::before { border-radius: 10px; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s5-right p { font-size: 18px; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .pill { border: 0; background: var(--m-tint); color: var(--m-text); font-weight: 600; }

/* M6 Irrtümer */
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s6-body { grid-template-columns: 320px minmax(0, 1fr); gap: 48px; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s6-head { font-size: calc(54px * var(--m-hs, 1)); }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s6-body > .slot { box-shadow: 16px 16px 0 var(--m-tint); margin: 0 16px 16px 0; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .qa { border-left: 5px solid var(--m-main); padding-left: 18px; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .qa .q { font-size: 21px; color: var(--m-text); }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .qa .a { font-size: 16.5px; color: var(--m-muted); }

/* M7 Objekt */
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s7-body { grid-template-columns: minmax(0, 1fr) 300px; gap: 18px 36px; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s7-head { font-size: calc(56px * var(--m-hs, 1)); }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .photo { border-radius: var(--m-photo-r, 18px); }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .facts { grid-row: 1 / span 2; align-self: stretch; align-content: center; gap: 22px; padding: 28px 30px; border-left: 0; background: var(--m-main); border-radius: var(--m-arch-r, 26px); }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .fact .k { color: color-mix(in srgb, var(--m-bg) 78%, var(--m-main)); }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .fact .v { color: var(--m-bg); font-size: 34px; }

/* M8 Suchkriterien */
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s8-body { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s8-head { font-size: calc(62px * var(--m-hs, 1)); }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s8-side { padding-top: 0; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s8-side .arch { background: var(--m-main); color: var(--m-bg); }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s8-side .bigpin circle { fill: var(--m-main); }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .chip { background: var(--m-main); color: var(--m-bg); font-weight: 600; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .chip .ed:focus { outline-color: var(--m-bg); }

/* M9 Kontakt */
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s9-body { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s9-head { font-size: calc(66px * var(--m-hs, 1)); }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s9-side { padding: 0 16px 16px 0; }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .s9-side .arch { box-shadow: 16px 16px 0 var(--m-tint); }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .crow .ic { border-radius: 14px; background: var(--m-main); color: var(--m-bg); }
.deck:is([data-layout="modern"], [data-layout="bento"], [data-layout="brutal"]) .qr { border-radius: var(--m-arch-r, 22px); }


/* ======================================================================
   LAYOUT "BENTO" (weiche Kacheln auf getöntem Grund)
   ====================================================================== */
.deck[data-layout="bento"] .slide { background: color-mix(in srgb, var(--m-accent) 20%, var(--m-bg)); }
.deck[data-layout="bento"] .slide::before { display: none; }
.deck[data-layout="bento"] .s-body { padding: 26px 26px 10px; bottom: 46px; }
.deck[data-layout="bento"] .s-foot { height: 46px; padding: 0 34px; }
.deck[data-layout="bento"] .s-logo { top: 36px; right: 44px; z-index: 4; }
.deck[data-layout="bento"] .slide .h { letter-spacing: -.03em; }
/* Kachel-Grundstil */
.deck[data-layout="bento"] .s2-text, .deck[data-layout="bento"] .s3-left, .deck[data-layout="bento"] .s5-right, .deck[data-layout="bento"] .s8-left, .deck[data-layout="bento"] .s9-left, .deck[data-layout="bento"] .s7-top, .deck[data-layout="bento"] .qa, .deck[data-layout="bento"] .adv, .deck[data-layout="bento"] .s4-body > .h { background: var(--m-bg); border-radius: var(--m-tile-r, 24px); }
.deck[data-layout="bento"] .qa, .deck[data-layout="bento"] .adv { border-radius: var(--m-arch-r, 24px); }
.deck[data-layout="bento"] .s1::after { left: 616px; right: 26px; top: 26px; bottom: 26px; width: auto; background: var(--m-main); border-radius: var(--m-tile-r, 24px); }
.deck[data-layout="bento"] .s1 .arch { left: 26px; right: auto; top: 26px; bottom: 26px; width: 560px; }
.deck[data-layout="bento"] .s1 .s-body { left: 616px; right: 26px; top: 26px; bottom: 26px; padding: 0 56px; }
.deck[data-layout="bento"] .s1-title { color: var(--m-bg); font-size: calc(84px * var(--m-hs, 1)); }
.deck[data-layout="bento"] .s1-sub { color: var(--m-bg); }
.deck[data-layout="bento"] .s1-sub::before { background: var(--m-bg); }
.deck[data-layout="bento"] .s1-note { color: color-mix(in srgb, var(--m-bg) 82%, var(--m-main)); }
.deck[data-layout="bento"] .s2-body { grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; }
.deck[data-layout="bento"] .s2-text { padding: 26px 34px; gap: 8px; }
.deck[data-layout="bento"] .s2-head { font-size: calc(72px * var(--m-hs, 1)); }
.deck[data-layout="bento"] .s2-side { padding: 0; }
.deck[data-layout="bento"] .s2-side .arch { box-shadow: none; }
.deck[data-layout="bento"] .s3-body { gap: 22px; align-content: stretch; }
.deck[data-layout="bento"] .s3-left { background: var(--m-main); padding: 36px; justify-content: flex-end; }
.deck[data-layout="bento"] .s3-head { color: var(--m-bg); font-size: calc(60px * var(--m-hs, 1)); }
.deck[data-layout="bento"] .s3-left .body { color: var(--m-bg); }
.deck[data-layout="bento"] .cards { gap: 22px; align-content: stretch; }
.deck[data-layout="bento"] .card2 { background: var(--m-bg); min-height: 0; }
.deck[data-layout="bento"] .card2:nth-child(1), .deck[data-layout="bento"] .card2:nth-child(4) { background: var(--m-bg); }
.deck[data-layout="bento"] .card2:nth-child(1) .k, .deck[data-layout="bento"] .card2:nth-child(4) .k { color: var(--m-main); }
.deck[data-layout="bento"] .card2:nth-child(1) .v, .deck[data-layout="bento"] .card2:nth-child(4) .v { color: var(--m-text); }
.deck[data-layout="bento"] .card2:nth-child(2), .deck[data-layout="bento"] .card2:nth-child(3) { background: var(--m-accent); }
.deck[data-layout="bento"] .card2:nth-child(2) .k, .deck[data-layout="bento"] .card2:nth-child(3) .k { color: var(--m-text); }
.deck[data-layout="bento"] .s4-body { gap: 16px; padding-top: 26px; }
.deck[data-layout="bento"] .s4-body > .h { padding: 16px 30px; font-size: calc(40px * var(--m-hs, 1)); max-width: none; }
.deck[data-layout="bento"] .adv-grid { gap: 14px; }
.deck[data-layout="bento"] .adv { padding: 14px 18px; }
.deck[data-layout="bento"] .s5-body { grid-template-columns: 400px minmax(0, 1fr); gap: 22px; align-content: stretch; }
.deck[data-layout="bento"] .s5-left { gap: 14px; }
.deck[data-layout="bento"] .s5-left .arch { height: auto; flex: 1; box-shadow: none; }
.deck[data-layout="bento"] .s5-right { padding: 28px 34px; }
.deck[data-layout="bento"] .s5-head { font-size: calc(50px * var(--m-hs, 1)); }
.deck[data-layout="bento"] .s6-body { grid-template-columns: 330px minmax(0, 1fr); gap: 22px; }
.deck[data-layout="bento"] .s6-body > .slot { box-shadow: none; margin: 0; }
.deck[data-layout="bento"] .s6-right { gap: 12px; }
.deck[data-layout="bento"] .s6-head { font-size: calc(46px * var(--m-hs, 1)); padding-left: 4px; }
.deck[data-layout="bento"] .qa { border-left: 0; padding: 12px 20px; }
.deck[data-layout="bento"] .qa .q { color: var(--m-main); }
.deck[data-layout="bento"] .s7-body { gap: 18px 22px; }
.deck[data-layout="bento"] .s7-top { padding: 20px 28px; }
.deck[data-layout="bento"] .s7-head { font-size: calc(46px * var(--m-hs, 1)); }
.deck[data-layout="bento"] .photos { gap: 14px; }
.deck[data-layout="bento"] .facts { border-radius: var(--m-arch-r, 24px); }
.deck[data-layout="bento"] .s8-body { grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; }
.deck[data-layout="bento"] .s8-left { padding: 28px 34px; }
.deck[data-layout="bento"] .s8-head { font-size: calc(52px * var(--m-hs, 1)); }
.deck[data-layout="bento"] .chip { background: var(--m-tint); color: var(--m-text); }
.deck[data-layout="bento"] .s9-body { grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; }
.deck[data-layout="bento"] .s9-left { padding: 30px 38px; justify-content: center; }
.deck[data-layout="bento"] .s9-side { padding: 0; }
.deck[data-layout="bento"] .s9-side .arch { box-shadow: none; }

/* ======================================================================
   LAYOUT "BRUTAL" (dicke Rahmen, harte Schatten, Aufkleber)
   ====================================================================== */
.deck[data-layout="brutal"] { --bw: 4px; --sh: 8px; }
.deck[data-layout="brutal"] .slide { font-weight: 500; }
.deck[data-layout="brutal"] .slide:is(.s2, .s4, .s6, .s8) { background: color-mix(in srgb, var(--m-accent) 38%, var(--m-bg)); }
.deck[data-layout="brutal"] .slide.s1 { background: var(--m-main); }
.deck[data-layout="brutal"] .slide .h { text-transform: uppercase; color: var(--m-text); font-weight: 900; letter-spacing: -.02em; }
.deck[data-layout="brutal"] .slide .h .ed { background: linear-gradient(transparent 60%, var(--m-accent) 60%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.deck[data-layout="brutal"] .slide:is(.s2, .s4, .s6, .s8) .h .ed { background: linear-gradient(transparent 60%, var(--m-main) 60%); color: var(--m-text); }
.deck[data-layout="brutal"] .slide::before { left: 54px; top: 30px; padding: 7px 12px; background: var(--m-accent); color: var(--m-text); border: 3px solid var(--m-text); transform: rotate(-3deg); box-shadow: 4px 4px 0 var(--m-text); letter-spacing: .14em; }
.deck[data-layout="brutal"] .s-foot { height: 44px; background: var(--m-text); color: var(--m-bg); border: 0; padding: 0 54px; }
.deck[data-layout="brutal"] .s-foot .dot { background: var(--m-accent); }
.deck[data-layout="brutal"] .s-foot span:last-child { color: var(--m-accent); }
.deck[data-layout="brutal"] .s-body { bottom: 44px; padding: 92px 54px 20px; }
.deck[data-layout="brutal"] .s4-body { padding-top: 86px; gap: 16px; }
.deck[data-layout="brutal"] .s4-head { font-size: calc(44px * var(--m-hs, 1)); }
.deck[data-layout="brutal"] .adv { padding: 10px 14px; gap: 14px; }
.deck[data-layout="brutal"] .adv .x { font-size: 14.5px; line-height: 1.32; }
.deck[data-layout="brutal"] .adv .t { font-size: 17.5px; }
.deck[data-layout="brutal"] .adv .ic { width: 42px; height: 42px; }
.deck[data-layout="brutal"] .s-logo { top: 22px; right: 48px; background: var(--m-bg); border: 3px solid var(--m-text); padding: 6px 10px; box-shadow: 4px 4px 0 var(--m-text); height: calc(var(--m-logo-h) + 14px); box-sizing: border-box; }
.deck[data-layout="brutal"] .slide .arch, .deck[data-layout="brutal"] .photo, .deck[data-layout="brutal"] .card2, .deck[data-layout="brutal"] .adv, .deck[data-layout="brutal"] .qa, .deck[data-layout="brutal"] .qr, .deck[data-layout="brutal"] .facts, .deck[data-layout="brutal"] .chip, .deck[data-layout="brutal"] .pill, .deck[data-layout="brutal"] .s8-side .arch { border: var(--bw) solid var(--m-text); box-shadow: var(--sh) var(--sh) 0 var(--m-text); }
.deck[data-layout="brutal"] .slot[data-shape="kreis"]:not(.sign-slot) { border: 0; filter: drop-shadow(var(--sh) var(--sh) 0 var(--m-text)); }
.deck[data-layout="brutal"] .slot[data-shape="kreis"]:not(.sign-slot) .clip { outline: 0; }
.deck[data-layout="brutal"] .slide .s2-side .arch, .deck[data-layout="brutal"] .s5-left .arch, .deck[data-layout="brutal"] .s6-body > .slot, .deck[data-layout="brutal"] .s9-side .arch { box-shadow: var(--sh) var(--sh) 0 var(--m-text); }
.deck[data-layout="brutal"] .s1 .arch { box-shadow: 12px 12px 0 var(--m-text); background: var(--m-accent); }
.deck[data-layout="brutal"] .s1::after { display: none; }
.deck[data-layout="brutal"] .s1 .arch { left: auto; right: 72px; top: 60px; bottom: 80px; width: 470px; transform: rotate(2deg); }
.deck[data-layout="brutal"] .s1 .s-body { right: 600px; padding-left: 64px; }
.deck[data-layout="brutal"] .s1-title { color: var(--m-bg); font-size: calc(76px * var(--m-hs, 1)); text-shadow: 4px 4px 0 var(--m-text); overflow-wrap: break-word; }
.deck[data-layout="brutal"] .s1 .h .ed { background: none !important; }
.deck[data-layout="brutal"] .s1-sub { color: var(--m-text); background: var(--m-accent); border: 3px solid var(--m-text); padding: 8px 14px; align-self: flex-start; box-shadow: 5px 5px 0 var(--m-text); transform: rotate(-1.5deg); font-weight: 800; }
.deck[data-layout="brutal"] .s1-sub::before { display: none; }
.deck[data-layout="brutal"] .s1-note { color: var(--m-bg); font-weight: 700; }
.deck[data-layout="brutal"] .s1-logo { background: var(--m-bg); border: 3px solid var(--m-text); padding: 8px; align-self: flex-start; }
.deck[data-layout="brutal"] .s2-head { font-size: calc(84px * var(--m-hs, 1)); }
.deck[data-layout="brutal"] .kv .row { border-top: 3px solid var(--m-text); }
.deck[data-layout="brutal"] .kv b { background: var(--m-text); color: var(--m-bg); padding: 2px 8px; align-self: start; text-align: center; }
.deck[data-layout="brutal"] .s2-side { padding: 0 12px 12px 0; }
.deck[data-layout="brutal"] .card2 { background: var(--m-bg); }
.deck[data-layout="brutal"] .card2:nth-child(1), .deck[data-layout="brutal"] .card2:nth-child(4) { background: var(--m-main); }
.deck[data-layout="brutal"] .card2:nth-child(2) { background: var(--m-accent); }
.deck[data-layout="brutal"] .card2 .k { color: var(--m-text); background: none; }
.deck[data-layout="brutal"] .s3-body { gap: 40px; }
.deck[data-layout="brutal"] .cards { gap: 20px; padding-right: 8px; }
.deck[data-layout="brutal"] .adv { background: var(--m-bg); box-shadow: 6px 6px 0 var(--m-text); }
.deck[data-layout="brutal"] .adv:nth-child(3n+1) .ic { background: var(--m-accent); color: var(--m-text); border: 3px solid var(--m-text); }
.deck[data-layout="brutal"] .adv .ic { border: 3px solid var(--m-text); background: var(--m-main); }
.deck[data-layout="brutal"] .adv-grid { gap: 14px 22px; padding-right: 8px; }
.deck[data-layout="brutal"] .points li::before { border: 3px solid var(--m-text); background: var(--m-accent); color: var(--m-text); border-radius: 0; }
.deck[data-layout="brutal"] .pill, .deck[data-layout="brutal"] .chip { border-radius: 0; background: var(--m-accent); color: var(--m-text); border-width: 3px; box-shadow: 4px 4px 0 var(--m-text); font-weight: 700; }
.deck[data-layout="brutal"] .s5-left .arch { margin-right: 10px; }
.deck[data-layout="brutal"] .qa { background: var(--m-bg); border-left: var(--bw) solid var(--m-text); padding: 10px 16px; box-shadow: 6px 6px 0 var(--m-text); }
.deck[data-layout="brutal"] .qa .q { color: var(--m-text); text-transform: uppercase; }
.deck[data-layout="brutal"] .qa .a { color: var(--m-text); }
.deck[data-layout="brutal"] .s6-right { gap: 14px; padding-right: 8px; }
.deck[data-layout="brutal"] .s6-body > .slot { margin: 0 12px 12px 0; }
.deck[data-layout="brutal"] .facts { background: var(--m-main); padding: 24px 26px; border-left: var(--bw) solid var(--m-text); }
.deck[data-layout="brutal"] .fact .v { color: var(--m-text); }
.deck[data-layout="brutal"] .fact .k { color: var(--m-bg); }
.deck[data-layout="brutal"] .photos { padding: 0 8px 8px 0; }
.deck[data-layout="brutal"] .s8-side .arch { background: var(--m-main); transform: rotate(2deg); margin: 6px 14px 14px 6px; }
.deck[data-layout="brutal"] .lage { color: var(--m-text); text-transform: uppercase; }
.deck[data-layout="brutal"] .sizes li::before { border-radius: 0; background: var(--m-text); }
.deck[data-layout="brutal"] .crow .ic { background: var(--m-accent); color: var(--m-text); border: 3px solid var(--m-text); box-shadow: 4px 4px 0 var(--m-text); }
.deck[data-layout="brutal"] .qr { box-shadow: 6px 6px 0 var(--m-text); }
.deck[data-layout="brutal"] .s9-side { padding: 0 12px 12px 0; }
.deck[data-layout="brutal"] .s9-head { font-size: calc(70px * var(--m-hs, 1)); }

/* ======================================================================
   LAYOUT "MAGAZIN" (Serifen, feine Linien, Bilder bis zum Rand)
   ====================================================================== */
.deck[data-layout="magazin"] .slide::before { content: attr(data-label) "  ·  " attr(data-n); position: absolute; z-index: 3; left: 64px; top: 30px; font: 600 12px/1 var(--m-fb); letter-spacing: .28em; text-transform: uppercase; color: var(--m-muted); white-space: pre; }
.deck[data-layout="magazin"] .slide.s1::before { display: none; }
.deck[data-layout="magazin"] .slide::after { content: ""; position: absolute; left: 64px; right: 64px; top: 56px; height: 1px; background: var(--m-text); opacity: .85; z-index: 2; }
.deck[data-layout="magazin"] .slide.s1::after { display: none; }
.deck[data-layout="magazin"] .s-body { padding-top: 84px; }
.deck[data-layout="magazin"] .s-logo { top: 14px; right: 64px; height: min(var(--m-logo-h), 34px); }
.deck[data-layout="magazin"] .slide .h { font-weight: 400; font-style: italic; letter-spacing: -.02em; color: var(--m-text); line-height: 1.02; }
.deck[data-layout="magazin"] .slide .body, .deck[data-layout="magazin"] .s5-right p { line-height: 1.6; }
.deck[data-layout="magazin"] .s-foot { border-top: 0; padding: 0 64px; font-size: 12px; letter-spacing: .28em; }
.deck[data-layout="magazin"] .s-foot .dot { display: none; }
.deck[data-layout="magazin"] .s-foot span:last-child { color: var(--m-main); }
.deck[data-layout="magazin"] .s1 .arch { left: auto; right: 0; top: 0; bottom: 0; width: 540px; }
.deck[data-layout="magazin"] .s1 .s-body { left: 64px; right: 620px; padding: 0; gap: 22px; }
.deck[data-layout="magazin"] .s1-title { font-size: calc(92px * var(--m-hs, 1)); line-height: .98; }
.deck[data-layout="magazin"] .s1-sub { font-size: 15px; font-weight: 600; letter-spacing: .32em; color: var(--m-main); border-top: 1px solid var(--m-text); padding-top: 18px; max-width: 420px; }
.deck[data-layout="magazin"] .s1-note { font-style: italic; font-size: 19px; }
.deck[data-layout="magazin"] .s2-body { grid-template-columns: 330px minmax(0, 1fr); gap: 56px; padding-top: 84px; }
.deck[data-layout="magazin"] .s2-side { order: -1; padding-top: 0; }
.deck[data-layout="magazin"] .s2-head { font-size: calc(80px * var(--m-hs, 1)); }
.deck[data-layout="magazin"] .lead2 { font-style: italic; font-weight: 400; font-size: 28px; }
.deck[data-layout="magazin"] .kv .row { border-top: 1px solid var(--m-text); padding-top: 9px; }
.deck[data-layout="magazin"] .kv b { font-family: var(--m-fb); font-weight: 600; }
.deck[data-layout="magazin"] .s3-body { align-content: start; gap: 64px; }
.deck[data-layout="magazin"] .s3-head { font-size: calc(70px * var(--m-hs, 1)); }
.deck[data-layout="magazin"] .card2 { background: none; border-radius: 0; border-top: 2px solid var(--m-text); padding: 12px 0 0; min-height: 0; }
.deck[data-layout="magazin"] .card2 .k { font-family: var(--m-fb); font-weight: 600; }
.deck[data-layout="magazin"] .card2 .v { font-size: 19px; }
.deck[data-layout="magazin"] .s4-head { font-size: calc(54px * var(--m-hs, 1)); }
.deck[data-layout="magazin"] .ic { background: none; border: 1.5px solid var(--m-main); border-radius: 50%; }
.deck[data-layout="magazin"] .adv .t { font-family: var(--m-fh); font-size: 21px; font-style: italic; font-weight: 400; }
.deck[data-layout="magazin"] .s5-head { font-size: calc(64px * var(--m-hs, 1)); }
.deck[data-layout="magazin"] .points li { font-family: var(--m-fh); font-style: italic; font-weight: 400; font-size: 26px; }
.deck[data-layout="magazin"] .points li::before { background: none; color: var(--m-main); width: 36px; font-size: 30px; font-style: italic; border-radius: 0; place-items: center start; }
.deck[data-layout="magazin"] .pill { border: 0; border-bottom: 1px solid var(--m-text); border-radius: 0; padding: 4px 2px; }
.deck[data-layout="magazin"] .s6-head { font-size: calc(56px * var(--m-hs, 1)); }
.deck[data-layout="magazin"] .qa .q { font-family: var(--m-fh); font-style: italic; font-weight: 400; font-size: 24px; color: var(--m-main); }
.deck[data-layout="magazin"] .s7-head { font-size: calc(56px * var(--m-hs, 1)); }
.deck[data-layout="magazin"] .facts { border-left: 1px solid var(--m-text); }
.deck[data-layout="magazin"] .fact .v { font-family: var(--m-fh); font-style: italic; font-weight: 400; font-size: 34px; }
.deck[data-layout="magazin"] .s8-head { font-size: calc(62px * var(--m-hs, 1)); }
.deck[data-layout="magazin"] .lage { font-style: italic; font-weight: 400; font-size: 40px; }
.deck[data-layout="magazin"] .chip { background: none; border: 1px solid var(--m-text); border-radius: 0; }
.deck[data-layout="magazin"] .s9-head { font-size: calc(70px * var(--m-hs, 1)); }
.deck[data-layout="magazin"] .crow .ic { width: 44px; height: 44px; }


/* Logo: eigener Streifen oben rechts, der Inhalt rückt entsprechend nach unten (Seiten 2 bis 9) */
.deck[data-layout="klassisch"] .slide.has-logo .s-body { padding-top: max(60px, calc(var(--m-logo-h) + 40px)) !important; }
.deck[data-layout="modern"] .slide.has-logo .s-body { padding-top: max(84px, calc(var(--m-logo-h) + 38px)) !important; }
.deck[data-layout="bento"] .slide.has-logo .s-body { padding-top: calc(var(--m-logo-h) + 44px) !important; }
.deck[data-layout="brutal"] .slide.has-logo .s-body { padding-top: max(92px, calc(var(--m-logo-h) + 50px)) !important; }
.deck[data-layout="modern"] .slide.has-logo .s4-head { font-size: calc(46px * var(--m-hs, 1)); }
.deck[data-layout="modern"] .slide.has-logo .s4-body { gap: 14px; }
.deck[data-layout="modern"] .slide.has-logo .adv { padding-block: 10px; }
.deck[data-layout="modern"] .slide.has-logo .adv-grid { gap: 10px 18px; }
.deck[data-layout="bento"] .slide.has-logo .s-logo { top: 26px; right: 36px; }


/* Kacheln: Formen mit passendem Innenabstand, damit Text in Kreis und Bogen nicht abgeschnitten wird */
.deck .card2[data-shape="kreis"] { padding: 30px 50px !important; text-align: center; align-items: center; justify-content: center; }
.deck .card2[data-shape="arch"] { padding-top: 54px !important; text-align: center; align-items: center; }
.deck .card2[data-shape="blatt"] { padding-top: 30px !important; }
.deck .adv[data-shape="kreis"], .deck .qa[data-shape="kreis"] { border-radius: 999px !important; padding-inline: 14px !important; }
.deck .facts[data-shape="kreis"] { border-radius: 999px !important; padding-inline: 44px !important; text-align: center; }
.deck .facts[data-shape="arch"] { padding-top: 96px !important; }
.deck .qr[data-shape="kreis"] { border-radius: 50% !important; }

/* Zugangscode */
.gate { display: grid; place-items: start center; padding: 6vh 0; }
.gate-card { width: min(520px, 100%); padding: 28px; }
.gate-card form { display: grid; gap: 18px; }
body.locked #view-form, body.locked #view-deck, body.locked #resetAll { display: none; }
