/* Passepartout – Kundengalerie */
body.g { background: var(--paper); }
body.g[data-theme="minimal"] { --paper: #ffffff; --paper-2: #f3f3f2; --serif: var(--sans); }
body.g[data-theme="minimal"] h1, body.g[data-theme="minimal"] h2 { font-weight: 600; letter-spacing: -.02em; }
body.g[data-theme="noir"] { --paper: #121212; --paper-2: #1c1c1c; --card: #1b1b1b; --ink: #f2efe9; --ink-2: #cfcac1; --ink-3: #9b968d; --line: #2c2c2c; --line-2: #3a3a3a; color-scheme: dark; }
body.g[data-theme="warm"] { --paper: #f5eee4; --paper-2: #ece2d4; --card: #fffaf3; --line: #e3d6c3; }
body.g[data-theme="warm"] h1 { font-style: italic; }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 480px; display: grid; place-items: center; color: #fff; overflow: hidden; background: #222; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); animation: heroIn 1.6s ease-out forwards; }
@keyframes heroIn { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.08) 40%, rgba(0,0,0,.55) 100%); }
.hero .inner { position: relative; z-index: 1; text-align: center; padding: 24px; max-width: 900px; }
.hero .brandname { font: 500 12px var(--sans); letter-spacing: .28em; text-transform: uppercase; opacity: .9; margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 7vw, 86px); font-weight: 400; margin: 0 0 12px; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero .sub { font-size: 15px; letter-spacing: .06em; opacity: .92; }
.hero .go { margin-top: 30px; display: inline-flex; gap: 8px; align-items: center; color: #fff; border: 1px solid rgba(255,255,255,.7); padding: 12px 22px; border-radius: 99px; text-decoration: none; font-size: 14px; letter-spacing: .04em; backdrop-filter: blur(6px); background: rgba(255,255,255,.08); }
.hero .go:hover { background: rgba(255,255,255,.18); }
.hero.plain { height: 46vh; min-height: 320px; background: var(--paper-2); color: var(--ink); }
.hero.plain::after { display: none; }

/* Leiste */
.gbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.gbar .row { display: flex; align-items: center; gap: 14px; padding: 10px clamp(12px, 3vw, 36px); }
.gbar .who { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; }
.gbar .who img { max-height: 30px; max-width: 120px; object-fit: contain; }
.gbar .who strong { font-family: var(--serif); font-size: 21px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gbar .who small { color: var(--ink-3); white-space: nowrap; }
.gbtn { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 1px solid transparent; color: var(--ink); font: 500 14px var(--sans); padding: 8px 12px; border-radius: 99px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.gbtn:hover { background: var(--paper-2); }
.gbtn svg { width: 18px; height: 18px; }
.gbtn.on { background: var(--ink); color: var(--paper); }
.gbtn.primary { background: var(--accent); color: var(--accent-ink); }
.gbtn .n { font-variant-numeric: tabular-nums; }
.scenes { display: flex; gap: 6px; overflow-x: auto; padding: 0 clamp(12px, 3vw, 36px) 10px; scrollbar-width: none; }
.scenes button { flex: none; background: none; border: 0; font: 500 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 6px 10px; cursor: pointer; border-bottom: 1.5px solid transparent; }
.scenes button.on { color: var(--ink); border-bottom-color: var(--ink); }

.welcome { max-width: 680px; margin: 48px auto 8px; padding: 0 20px; text-align: center; font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--ink-2); white-space: pre-line; }

/* Raster */
.gwrap { padding: 24px clamp(8px, 2.4vw, 36px) 120px; }
.scene-title { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 36px); text-align: center; margin: 44px 0 20px; }
.jg { --h: 280px; display: flex; flex-wrap: wrap; gap: 6px; }
.jg::after { content: ""; flex-grow: 1e6; }
.jg.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.jg.grid::after { display: none; }
.tile { --r: 1.5; position: relative; flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * var(--h)); aspect-ratio: var(--r); background: var(--paper-2); overflow: hidden; cursor: zoom-in; border-radius: 2px; }
.jg.grid .tile { aspect-ratio: 1; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .4s; opacity: 0; }
.tile img.ok { opacity: 1; }
.tile:hover img { transform: scale(1.025); }
.tile .ov { position: absolute; inset: auto 0 0 0; display: flex; justify-content: flex-end; align-items: center; gap: 4px; padding: 8px; background: linear-gradient(0deg, rgba(0,0,0,.45), transparent); opacity: 0; transition: opacity .2s; }
.tile:hover .ov, .tile .ov.keep { opacity: 1; }
.tile .fav { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.tile .fav svg { width: 18px; height: 18px; }
.tile .fav.on { opacity: 1; color: #ff5a5f; background: rgba(255,255,255,.95); }
.tile .fav.on svg { fill: currentColor; }
.tile.faved .ov { opacity: 1; background: none; }
.tile .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; pointer-events: none; }
.tile .play svg { width: 22px; height: 22px; fill: currentColor; }
.tile .dot { position: absolute; top: 8px; left: 8px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; }
.tile .cc { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 99px; }
.tile .fn { position: absolute; left: 8px; bottom: 8px; color: #fff; font-size: 11px; text-shadow: 0 1px 3px #000; }
.dot.red { background: var(--red); } .dot.yellow { background: var(--yellow); } .dot.green { background: var(--green); } .dot.final { background: var(--final); }
.empty-state { text-align: center; padding: 80px 20px; color: var(--ink-3); font-family: var(--serif); font-size: 24px; }

/* Auswahl-Leiste */
.selbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(calc(100% + 40px)); background: var(--ink); color: var(--paper); border-radius: 99px; padding: 8px 8px 8px 20px; display: flex; align-items: center; gap: 14px; z-index: 40; transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow: 0 10px 40px rgba(0,0,0,.25); max-width: calc(100vw - 24px); }
.selbar.on { transform: translateX(-50%) translateY(0); }
.selbar span { font-size: 14px; white-space: nowrap; }
.selbar .gbtn { background: var(--accent); color: var(--accent-ink); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: #0d0d0d; color: #eee; display: grid; grid-template-rows: auto 1fr auto; }
.lb[hidden] { display: none; }
.lb .top { display: flex; align-items: center; gap: 6px; padding: 10px 14px; }
.lb .top .info { margin-right: auto; font-size: 13px; color: #aaa; font-variant-numeric: tabular-nums; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb .lbtn { background: none; border: 0; color: #eee; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lb .lbtn:hover { background: rgba(255,255,255,.1); }
.lb .lbtn svg { width: 21px; height: 21px; }
.lb .lbtn.on { color: #ff5a5f; }
.lb .lbtn.on svg { fill: currentColor; }
.lb .stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; touch-action: pan-y; }
.lb .stage img, .lb .stage video { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 90px; background: none; border: 0; color: #fff; opacity: .6; cursor: pointer; display: grid; place-items: center; }
.lb .nav:hover { opacity: 1; }
.lb .nav svg { width: 34px; height: 34px; }
.lb .nav.prev { left: 6px; } .lb .nav.next { right: 6px; }
.lb .bottom { display: flex; justify-content: center; gap: 8px; padding: 10px; min-height: 20px; }
.lb .labels { display: flex; gap: 8px; }
.lb .labels button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.lb .labels button.on { border-color: #fff; box-shadow: 0 0 0 2px #0d0d0d inset; }
.lb .labels .none { background: transparent; border: 2px dashed #666; }
.lb .panel { position: absolute; top: 62px; right: 12px; bottom: 60px; width: min(360px, calc(100vw - 24px)); background: #1a1a1a; border-radius: 12px; display: flex; flex-direction: column; z-index: 2; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb .panel[hidden] { display: none; }
.lb .panel h3 { font-family: var(--sans); font-size: 14px; font-weight: 600; margin: 0; padding: 14px 16px; border-bottom: 1px solid #2a2a2a; }
.lb .panel .list { flex: 1; overflow-y: auto; padding: 8px 16px; font-size: 14px; }
.lb .panel .c { padding: 8px 0; border-bottom: 1px solid #262626; }
.lb .panel .c b { font-weight: 600; }
.lb .panel .c small { color: #888; margin-left: 6px; }
.lb .panel .c.studio b { color: var(--accent); filter: brightness(1.6); }
.lb .panel .c p { margin: 3px 0 0; white-space: pre-wrap; word-break: break-word; }
.lb .panel form { padding: 12px 16px; border-top: 1px solid #2a2a2a; display: flex; gap: 8px; }
.lb .panel textarea { min-height: 44px; height: 44px; background: #111; color: #eee; border-color: #333; font-size: 14px; }

/* Dialoge */
.gdlg { border: 0; border-radius: 14px; padding: 0; width: min(440px, calc(100vw - 28px)); background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.gdlg::backdrop { background: rgba(10,10,10,.55); }
.gdlg .dbody { padding: 24px; }
.gdlg h3 { font-size: 26px; }
.gdlg .dfoot { display: flex; gap: 8px; justify-content: flex-end; padding: 0 24px 22px; flex-wrap: wrap; }
.gdlg .opt { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; margin-bottom: 8px; }
.gdlg .opt:hover { border-color: var(--ink-3); }
.gdlg .opt small { color: var(--ink-3); }

/* Gate & Portfolio */
.gate { min-height: 100svh; display: grid; place-items: center; padding: 24px; }
.gate .box { width: min(420px, 100%); text-align: center; }
.gate h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 400; }
.gate .brandname { font: 500 12px var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 26px; }
.gate form { text-align: left; margin-top: 26px; }
.gate .btn { width: 100%; }
.pf-head { text-align: center; padding: 70px 20px 30px; }
.pf-head h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 400; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; padding: 0 clamp(14px, 4vw, 60px) 80px; }
.pf-item { text-decoration: none; }
.pf-item .img { aspect-ratio: 4 / 5; background: var(--paper-2); overflow: hidden; }
.pf-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.pf-item:hover img { transform: scale(1.04); }
.pf-item h2 { font-size: 26px; font-weight: 400; margin: 14px 0 2px; }
.pf-item small { letter-spacing: .12em; text-transform: uppercase; font-size: 11.5px; }

/* Visitenkarte */
.card-footer { border-top: 1px solid var(--line); padding: 56px 20px 70px; text-align: center; }
.card-footer img { max-height: 54px; max-width: 200px; margin: 0 auto 14px; object-fit: contain; }
.card-footer .name { font-family: var(--serif); font-size: 28px; }
.card-footer .tag { color: var(--ink-3); margin-bottom: 14px; }
.card-footer .links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: 14px; }
.card-footer .powered { margin-top: 28px; font-size: 11.5px; color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 700px) {
  .jg { --h: 150px; gap: 3px; }
  .gbar .who small, .gbtn .lbl-t { display: none; }
  .gbar .row { gap: 4px; }
  .lb .nav { display: none; }
  .tile .ov { opacity: 1; background: none; }
  .tile .fav { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.center-img { margin: 0 auto 16px; max-height: 70px; max-width: 240px; object-fit: contain; }

/* ── Dateitypen (RAW, PDF, sonstige Dateien) ───────────────────────── */
.tile.file { display: grid; place-items: center; cursor: pointer; background: var(--paper-2); }
.tile .fileicon { display: grid; justify-items: center; gap: 4px; color: var(--ink-2, #555); text-align: center; padding: 12px; }
.tile .fileicon svg { width: 38px; height: 38px; }
.tile .fileicon b { font-size: 13px; letter-spacing: .06em; }
.tile .fileicon small { font-size: 11px; opacity: .8; }
.tile .kind { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; letter-spacing: .08em; padding: 2px 6px; border-radius: 3px; }
.tile .owned { position: absolute; right: 8px; bottom: 8px; width: 22px; height: 22px; border-radius: 50%; background: #2f7d4f; color: #fff; font-size: 13px; display: grid; place-items: center; }
.lb .filecard { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 24px; max-width: 420px; }
.lb .filecard svg { width: 64px; height: 64px; color: #bbb; }
.lb .filecard h3 { margin: 0; font-weight: 500; word-break: break-word; }
.lb .filecard .muted { color: #999; margin: 0 0 8px; }

/* ── Markierungen in Bildern ──────────────────────────────────────── */
.lb .imgwrap { position: relative; line-height: 0; max-width: 100%; max-height: 100%; }
.lb .imgwrap img { display: block; max-width: 100%; max-height: calc(100dvh - 130px); }
.lb .areas { position: absolute; inset: 0; pointer-events: none; }
.lb .areas.marking { pointer-events: auto; cursor: crosshair; touch-action: none; outline: 2px dashed rgba(255,255,255,.35); outline-offset: -2px; }
.lb .area { position: absolute; border: 2px solid #ffcf3f; box-shadow: 0 0 0 1px rgba(0,0,0,.5); border-radius: 3px; min-width: 2px; min-height: 2px; transition: box-shadow .15s; }
.lb .area.point { width: 0 !important; height: 0 !important; border: 0; box-shadow: none; }
.lb .area span { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: #ffcf3f; color: #1a1a1a; font: 600 12px/22px system-ui, sans-serif; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.lb .area.done { border-color: #6ec38f; }
.lb .area.done span { background: #6ec38f; }
.lb .area.pending { border-style: dashed; border-color: #fff; }
.lb .area.pending span { background: #fff; }
.lb .area.hl { box-shadow: 0 0 0 3px rgba(255,207,63,.6), 0 0 0 1px rgba(0,0,0,.5); }
.lb .panel .crow { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; }
.lb .panel .crow .btn.on { background: #ffcf3f; color: #1a1a1a; border-color: #ffcf3f; }
.lb .panel .c .num { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #ffcf3f; color: #1a1a1a; font-size: 11px; font-weight: 600; margin-right: 6px; }
.lb .panel .c.done { opacity: .6; }
.lb .panel .c.done .num { background: #6ec38f; }

/* ── Kaufen ───────────────────────────────────────────────────────── */
.gdlg .opt.buy { border-color: var(--accent, #8a6d3b); }
.gdlg .opt.buy span { font-weight: 600; }
.gdlg .opt[disabled] { opacity: .5; cursor: progress; }
.muted.small { font-size: 12px; }
.order { max-width: 640px; margin: 48px auto; padding: 0 18px; }
.order .card { background: var(--paper, #fff); border: 1px solid var(--line, #e7e2da); border-radius: 10px; padding: 24px; }
.order table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.order td { padding: 6px 0; border-bottom: 1px solid var(--line, #e7e2da); }
.order td.r { text-align: right; white-space: nowrap; }

/* ── Lightbox: Titelseite eines Dokuments ───────────────────────── */
.lb .docwrap { display: grid; place-items: center; }
.lb .docwrap img { box-shadow: 0 18px 60px rgba(0,0,0,.55); border-radius: 2px; }
.lb .doc-open { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); line-height: 1.2; box-shadow: 0 8px 30px rgba(0,0,0,.45); white-space: nowrap; }

/* ── Dokument-Viewer ───────────────────────────────────────────── */
.doc { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-rows: auto 1fr; background: #1c1b19; color: #ece8e1; font-family: var(--sans); }
.doc-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #151412; border-bottom: 1px solid #2b2926; min-width: 0; }
.doc-title { display: flex; flex-direction: column; min-width: 0; margin-right: auto; line-height: 1.25; }
.doc-title b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-title small { color: #9c968c; font-size: 12px; white-space: nowrap; }
.doc-tools { display: flex; align-items: center; gap: 4px; flex: none; }
.doc-nav, .doc-zoom { display: inline-flex; align-items: center; gap: 2px; background: #22211e; border-radius: 99px; padding: 2px; margin: 0 4px; }
.dbtn { background: none; border: 0; color: inherit; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; }
.dbtn:hover { background: rgba(255,255,255,.08); }
.dbtn[aria-pressed="true"] { background: rgba(255,255,255,.14); }
.dbtn.on { color: #ff5a5f; }
.dbtn.on svg { fill: currentColor; }
.dbtn svg { width: 20px; height: 20px; }
.doc-count { display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; font-size: 13px; color: #b9b3a9; padding: 0 2px; }
.doc-pgin { width: 3.2em; text-align: center; background: #0f0f0e; border: 1px solid #34322e; color: #fff; border-radius: 6px; padding: 5px 2px; font: 500 13px var(--sans); font-variant-numeric: tabular-nums; }
.doc-pgin:focus { outline: 2px solid var(--accent); outline-offset: 1px; filter: brightness(1.2); }
.doc-zoomlbl { background: none; border: 0; color: #b9b3a9; font: 500 12px var(--sans); font-variant-numeric: tabular-nums; min-width: 48px; cursor: pointer; padding: 0; }
.doc-zoomlbl:hover { color: #fff; }

.doc-body { position: relative; display: grid; grid-template-columns: 0 1fr 0; min-height: 0; }
.doc.side-on .doc-body { grid-template-columns: 196px 1fr 0; }
.doc.com-on .doc-body { grid-template-columns: 0 1fr 340px; }
.doc.side-on.com-on .doc-body { grid-template-columns: 196px 1fr 340px; }

.doc-side { overflow-y: auto; overflow-x: hidden; background: #171614; border-right: 1px solid #2b2926; padding: 14px 18px; display: none; flex-direction: column; gap: 14px; scrollbar-width: thin; }
.doc.side-on .doc-side { display: flex; }
.doc-thumb { background: none; border: 0; padding: 0; cursor: pointer; color: #9c968c; font: 500 12px var(--sans); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.doc-thumb img { width: 100%; height: auto; background: #2a2926; border-radius: 2px; outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .15s; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.doc-thumb:hover img { outline-color: #4a4742; }
.doc-thumb.on img { outline-color: #e9e3d8; }
.doc-thumb.on { color: #fff; }

.doc-scroll { overflow: auto; min-width: 0; outline: none; overscroll-behavior: contain; touch-action: pan-x pan-y; scroll-padding-top: 12px; }
.doc-pages { margin: 0 auto; padding: 24px 0 64px; display: flex; flex-direction: column; gap: 22px; }
.doc.zoomed .doc-pages { margin: 0; padding-left: 24px; padding-right: 24px; box-sizing: content-box; }
.doc-page { position: relative; margin: 0; width: 100%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4), 0 14px 44px rgba(0,0,0,.4); border-radius: 1px; overflow: visible; user-select: none; }
.doc-page img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; -webkit-user-drag: none; }
.doc-page img.lo { filter: blur(3px); transform: scale(1.002); }
.doc-page img.hi { opacity: 0; transition: opacity .25s; }
.doc-page img.hi.ok { opacity: 1; }
.doc-page figcaption { position: absolute; left: 50%; bottom: -19px; transform: translateX(-50%); font-size: 11px; color: #77726a; font-variant-numeric: tabular-nums; }
.doc-page .areas { position: absolute; inset: 0; pointer-events: none; }
.doc.marking .doc-page .areas { pointer-events: auto; cursor: crosshair; touch-action: none; }
.doc.marking .doc-page { outline: 2px dashed rgba(233,227,216,.35); outline-offset: 4px; }
.doc .area { position: absolute; border: 2px solid #ffcf3f; box-shadow: 0 0 0 1px rgba(0,0,0,.45); border-radius: 3px; min-width: 2px; min-height: 2px; transition: box-shadow .15s; pointer-events: none; }
.doc .area.point { width: 0 !important; height: 0 !important; border: 0; box-shadow: none; }
.doc .area span { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: #ffcf3f; color: #1a1a1a; font: 600 12px/22px var(--sans); text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.doc .area.done { border-color: #6ec38f; } .doc .area.done span { background: #6ec38f; }
.doc .area.pending { border-style: dashed; border-color: #1b1a17; } .doc .area.pending span { background: #1b1a17; color: #fff; }
.doc .area.hl { box-shadow: 0 0 0 4px rgba(255,207,63,.6), 0 0 0 1px rgba(0,0,0,.45); }

.doc-com { display: flex; flex-direction: column; min-height: 0; background: #171614; border-left: 1px solid #2b2926; }
.doc-com[hidden] { display: none; }
.doc-com h3 { font: 600 14px var(--sans); margin: 0; padding: 14px 16px; border-bottom: 1px solid #2b2926; }
.doc-clist { flex: 1; overflow-y: auto; padding: 6px 16px; font-size: 14px; }
.doc-clist .muted { color: #8c877e; font-size: 13px; line-height: 1.5; }
.doc-clist .c { padding: 10px 0; border-bottom: 1px solid #262522; }
.doc-clist .c.done { opacity: .6; }
.doc-clist .h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.doc-clist .h small { color: #8c877e; }
.doc-clist .c.studio b { color: #9fc0d2; }
.doc-clist .num { width: 20px; height: 20px; border-radius: 50%; background: #ffcf3f; color: #1a1a1a; font: 600 11px/20px var(--sans); text-align: center; flex: none; }
.doc-clist .c.done .num { background: #6ec38f; }
.doc-clist .pg { background: #2a2825; color: #d8d2c7; border: 0; border-radius: 99px; font: 600 11px var(--sans); padding: 3px 8px; cursor: pointer; }
.doc-clist .pg:hover { background: #3a3733; color: #fff; }
.doc-clist p { margin: 4px 0 0; white-space: pre-wrap; word-break: break-word; }
.doc-cform { padding: 12px 16px 16px; border-top: 1px solid #2b2926; display: flex; flex-direction: column; gap: 8px; }
.doc-cform textarea { min-height: 64px; resize: vertical; background: #0f0f0e; color: #eee; border: 1px solid #34322e; border-radius: 8px; padding: 8px 10px; font: 14px var(--sans); }
.doc-cform .row { display: flex; justify-content: space-between; gap: 8px; }
.doc-cform .btn[aria-pressed="true"] { background: #ffcf3f; border-color: #ffcf3f; color: #1a1a1a; }
.doc-chint { color: #8c877e; font-size: 12px; }

@media (max-width: 899px) {
  .doc-bar { flex-wrap: wrap; row-gap: 4px; padding: 6px 8px; }
  .doc-title { order: 1; flex: 1 1 calc(100% - 50px); }
  .doc-tools { order: 2; width: 100%; justify-content: space-between; }
  .doc-zoom { display: none; }
  .doc.side-on .doc-body, .doc.com-on .doc-body, .doc.side-on.com-on .doc-body { grid-template-columns: 0 1fr 0; }
  .doc-side { position: absolute; z-index: 3; top: 0; bottom: 0; left: 0; width: 148px; box-shadow: 10px 0 40px rgba(0,0,0,.5); }
  .doc-com { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; max-height: 62%; border-left: 0; border-top: 1px solid #2b2926; border-radius: 14px 14px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.5); }
  .doc-pages { gap: 14px; padding: 12px 0 48px; }
}
@media (prefers-reduced-motion: reduce) { .doc-page img.hi { transition: none; } }
.doc-side { grid-column: 1; grid-row: 1; } .doc-scroll { grid-column: 2; grid-row: 1; } .doc-com { grid-column: 3; grid-row: 1; }
/* Seitenfeld: gegen die allgemeinen Formularstile absichern */
.doc .doc-count { white-space: nowrap; gap: 4px; }
.doc input.doc-pgin { width: 3.2em; min-width: 0; height: 30px; padding: 0 4px; margin: 0; background: #0f0f0e; color: #fff; border: 1px solid #34322e; border-radius: 6px; box-shadow: none; font: 500 13px var(--sans); text-align: center; }

/* ── Hinweise über der Galerie (Fristen) ─────────────────────────── */
.gnotes { max-width: 760px; margin: 22px auto 0; padding: 0 16px; display: grid; gap: 8px; }
.gnote { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.gnote svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.gnote.warn { background: #fbf5e8; border-color: #eedfb9; color: #6f4f10; }
.gnote.warn svg { color: #b07a12; }
.gnote.past { color: var(--ink-3); }
body.g[data-theme="noir"] .gnote.warn { background: #2a2419; border-color: #4a3d22; color: #f0d9a8; }

/* ── Bildschutz ──────────────────────────────────────────────────── */
.pbadge { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-3); border-radius: 99px; padding: 3px 9px 3px 7px; font: 500 11.5px var(--sans); letter-spacing: .02em; cursor: pointer; white-space: nowrap; }
.pbadge svg { width: 13px; height: 13px; }
.pbadge:hover { color: var(--ink); border-color: var(--ink-3); }
body.protect img, body.protect video { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
body.protect .tile img, body.protect .lb .imgwrap img, body.protect .doc-page img, body.protect .show-img, body.protect .hero img, body.protect .doc-thumb img { pointer-events: none; }
body.protect .tile, body.protect .lb .stage, body.protect .doc-page, body.protect .hero { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
body.protect-strong { -webkit-user-select: none; user-select: none; }
body.protect-strong :is(input, textarea) { -webkit-user-select: text; user-select: text; }
/* Persönliche Kennung („© Studio / Name · Code · Datum“) als Muster über den Bildern */
body.protect .lb .imgwrap::after, body.protect .doc-page::after, body.protect .show-stage::after, body.protect .pm,
body.protect-strong .tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background-image: var(--pmark, none); background-size: var(--pmark-size, 460px) auto; background-repeat: repeat;
  opacity: var(--pmark-o, .2);
}
body.protect .pm { z-index: 1; }
body.protect-strong { --pmark-o: .32; }
body.protect-strong .tile::after { --pmark-size: 300px; opacity: .26; }
.lb .vwrap { display: grid; place-items: center; }
.lb .vwrap video { max-width: 100%; max-height: calc(100dvh - 130px); }
.pveil { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; background: #0e0e0d; color: #d8d3ca; text-align: center; }
.pveil > div { display: grid; justify-items: center; gap: 8px; padding: 24px; }
.pveil svg { width: 34px; height: 34px; opacity: .7; }
.pveil b { font: 400 30px var(--serif); color: #fff; }
.pveil span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.print-note { display: none; }
@media print {
  body.protect > *:not(.print-note) { display: none !important; }
  body.protect .print-note { display: block !important; font: 16px/1.5 var(--sans); padding: 40px; text-align: center; }
}
.plist { padding-left: 18px; margin: 0 0 14px; }
.plist li { margin-bottom: 6px; }
.pcode { font-family: var(--mono); letter-spacing: .08em; background: var(--paper-2); padding: 1px 6px; border-radius: 4px; }

/* ── Einwilligung & Freigabe: Abzeichen, Schalter, Dialoge ───────── */
.tile .apb { position: absolute; left: 8px; top: 8px; background: rgba(47,125,79,.92); color: #fff; font: 600 10.5px var(--sans); letter-spacing: .03em; padding: 3px 7px; border-radius: 99px; }
.tile .apb.changes { background: rgba(176,122,18,.95); }
.tile .pcb { position: absolute; right: 8px; bottom: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.94); color: #1b1a17; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.tile .pcb svg { width: 14px; height: 14px; }
.tile.faved .pcb { right: 48px; }
.lb .lb-pc { width: auto; border-radius: 99px; padding: 0 12px 0 10px; display: inline-flex; gap: 7px; font: 500 13px var(--sans); color: #bbb; }
.lb .lb-pc svg { width: 19px; height: 19px; fill: none; }
.lb .lb-pc.on { background: #eef6f1; color: #1f5a3c; }
.lb .lb-pc.on svg { fill: none; }
.apchip { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; background: #eef6f1; color: #1f5a3c; font: 600 12.5px/1.2 var(--sans); padding: 7px 12px; border-radius: 99px; box-shadow: 0 6px 24px rgba(0,0,0,.35); white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.apchip.changes { background: #fbf1dc; color: #6f4f10; }
.apchip svg { width: 15px; height: 15px; flex: none; }
.doc-ap { display: inline-flex; align-items: center; gap: 7px; margin-left: 6px; border: 0; border-radius: 99px; padding: 8px 14px 8px 11px; background: #e9e3d8; color: #1b1a17; font: 600 13px var(--sans); cursor: pointer; white-space: nowrap; }
.doc-ap svg { width: 16px; height: 16px; }
.doc-ap:hover { filter: brightness(1.06); }
.doc-ap.approved { background: #cfe8d9; color: #1f5a3c; }
.doc-ap.changes { background: #f3dfb4; color: #5e420d; }
.gdlg.wide { width: min(560px, calc(100vw - 28px)); }
.gdlg .choice { display: grid; gap: 8px; margin: 6px 0 16px; }
.gdlg .choice .opt { justify-content: flex-start; gap: 12px; margin: 0; cursor: pointer; }
.gdlg .choice .opt input { accent-color: var(--accent); width: 17px; height: 17px; flex: none; margin: 0; }
.gdlg .choice .opt span { display: grid; gap: 2px; }
.gdlg .choice .opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.gdlg .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gdlg .cs-intro { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); white-space: pre-line; }
.gdlg .cs-scopes { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px 4px; margin: 0 0 14px; }
.gdlg .cs-scopes legend { font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 0 4px; }
.gdlg .cs-ok { display: flex; gap: 8px; align-items: center; color: #1f5a3c; font-weight: 600; }
.gdlg .cs-ok svg { width: 18px; height: 18px; flex: none; }
.gbtn[data-on], #btn-consent.on { color: #1f5a3c; }
@media (max-width: 560px) { .gdlg .grid2 { grid-template-columns: 1fr; } .lb .lb-pc .lbl-pc { display: none; } .lb .lb-pc { padding: 0; width: 42px; justify-content: center; } }
@media (max-width: 899px) { .doc-ap span { display: none; } .doc-ap { padding: 8px; margin-left: 2px; } }

/* ── Diashow ─────────────────────────────────────────────────────── */
.sshow { position: fixed; inset: 0; z-index: 150; background: #000; color: #fff; overflow: hidden; }
.show-stage { position: absolute; inset: 0; overflow: hidden; }
.show-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1.4s ease; transform-origin: var(--ox, 50%) var(--oy, 50%); }
.show-img.on { opacity: 1; }
.show-img.kb-in { animation: kbIn 9s ease-out forwards; }
.show-img.kb-out { animation: kbOut 9s ease-out forwards; }
@keyframes kbIn { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes kbOut { from { transform: scale(1.09); } to { transform: scale(1); } }
.show-prog { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255,255,255,.12); z-index: 4; }
.show-prog i { display: block; height: 100%; width: 0; background: rgba(255,255,255,.75); }
.show-prog i.run { animation: showProg var(--ms, 5500ms) linear forwards; }
@keyframes showProg { to { width: 100%; } }
.show-cap { position: absolute; left: 24px; top: 20px; z-index: 4; font: 400 22px var(--serif); text-shadow: 0 1px 12px rgba(0,0,0,.6); opacity: .9; transition: opacity .4s; }
.show-bar { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 4px; background: rgba(20,20,20,.55); backdrop-filter: blur(10px); border-radius: 99px; padding: 5px 10px; transition: opacity .4s; }
.sshow .sbtn { background: none; border: 0; color: #fff; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.sshow .sbtn:hover { background: rgba(255,255,255,.12); }
.sshow .sbtn svg { width: 21px; height: 21px; }
.sshow .sbtn.play svg { width: 18px; height: 18px; }
.sshow .sbtn.close { position: absolute; top: 12px; right: 12px; z-index: 5; background: rgba(20,20,20,.45); transition: opacity .4s; }
.show-count { font: 500 13px var(--sans); font-variant-numeric: tabular-nums; color: #ddd; padding: 0 10px 0 6px; min-width: 64px; text-align: center; }
.sshow.idle { cursor: none; }
.sshow.idle .show-bar, .sshow.idle .sbtn.close, .sshow.idle .show-cap { opacity: 0; }
@media (max-width: 700px) { .show-cap { font-size: 18px; left: 16px; top: 16px; } .show-bar { bottom: 18px; } }
@media (prefers-reduced-motion: reduce) { .show-img { transition: opacity .3s; } .show-img.kb-in, .show-img.kb-out { animation: none; } }
/* Kacheln: Dateiname über dem Typ-Abzeichen, Freigabe-Abzeichen nicht über dem Kommentarzähler */
.tile .kind ~ .fn { bottom: 30px; }
.tile .apb { max-width: calc(100% - 58px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.protect-strong .tile.file::after { display: none; }
/* Einwilligung per E-Mail-Link */
.consent-link .box { width: min(620px, 100%); text-align: left; }
.consent-link h1 { text-align: center; }
.consent-link .brandname, .consent-link > .box > .muted { text-align: center; }
.cl-state { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 18px 0; flex-wrap: wrap; }
.cl-text { white-space: pre-wrap; font: 14px/1.6 var(--sans); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 0 0 18px; }
.consent-link form.cl-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.consent-link form.cl-actions .btn { width: auto; flex: 1 1 200px; }
.pveil small { font-size: 12px; color: #8f8a81; margin-top: 10px; }
/* ── 0.3: Originale aus dem Tresor bereitstellen ── */
.prep-box { padding: 6px 2px 2px; }
.prep-box p { margin: 0 0 10px; }
progress.prep { width: 100%; height: 8px; border: 0; border-radius: 99px; background: rgba(127,127,127,.18); overflow: hidden; appearance: none; -webkit-appearance: none; margin: 0 0 8px; display: block; }
progress.prep::-webkit-progress-bar { background: rgba(127,127,127,.18); border-radius: 99px; }
progress.prep::-webkit-progress-value { background: var(--accent, #36505f); border-radius: 99px; transition: width .4s; }
progress.prep::-moz-progress-bar { background: var(--accent, #36505f); border-radius: 99px; }
/* 0.4: Rechtliches des Studios */
.card-footer .legal-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; font-size: 12px; margin-top: 10px; opacity: .75; }
.card-footer .legal-links a { color: inherit; }
.legal-page { max-width: 760px; margin: 0 auto; padding: 48px 20px 40px; }
.legal-page h1 { font-size: clamp(30px, 4vw, 42px); margin: 6px 0 22px; }
.legal-page .legal h2 { font-size: 21px; margin: 30px 0 8px; }
.legal-page .legal p, .legal-page .legal li { line-height: 1.7; }
.legal-page .legal ul { padding-left: 22px; }
.buy-waiver { margin: 10px 0 4px; font-size: 13px; line-height: 1.5; }
.buy-waiver input { margin-right: 8px; }
