@font-face { font-family: 'Inter'; src: url(fonts/inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(fonts/cormorant-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(fonts/cormorant-300.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Playfair'; src: url(fonts/playfair-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Raleway'; src: url(fonts/raleway-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Raleway'; src: url(fonts/raleway-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Raleway'; src: url(fonts/raleway-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Lato'; src: url(fonts/lato-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lato'; src: url(fonts/lato-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Script'; src: url(fonts/script.woff2) format('woff2'); font-display: swap; }

/* ---------- Farbe & Typografie (aus den Design-Einstellungen) ---------- */
:root { --fg: #1e1e1e; --muted: #8a8a8a; --line: rgba(0,0,0,.09); --gap: 6px; --pad: 18px; --nf: 'Raleway', 'Lato', sans-serif; }
[data-theme='dark'] { --fg: #ececec; --muted: #9b9b9b; --line: rgba(255,255,255,.12); }
[data-font='sans'] { --tf: 'Raleway', 'Lato', sans-serif; --tw: 700; --tt: uppercase; --tl: .05em; --ts: 1; }
[data-font='serif'] { --tf: 'Cormorant', Georgia, serif; --tw: 500; --tt: none; --tl: .01em; --ts: 1.3; }
[data-font='modern'] { --tf: 'Playfair', Georgia, serif; --tw: 400; --tt: none; --tl: 0; --ts: 1.15; }
[data-font='timeless'] { --tf: 'Cormorant', Georgia, serif; --tw: 300; --tt: uppercase; --tl: .16em; --ts: 1.15; }
[data-font='bold'] { --tf: 'Inter', system-ui, sans-serif; --tw: 800; --tt: uppercase; --tl: .04em; --ts: 1.05; }
[data-font='subtle'] { --tf: 'Inter', system-ui, sans-serif; --tw: 300; --tt: uppercase; --tl: .32em; --ts: .85; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 15px/1.6 'Lato', 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.script { font-family: 'Script', cursive; }
.small, .muted { color: var(--muted); } .small { font-size: .85rem; }
.error { color: #c0392b; font-size: .9rem; }
.spacer { flex: 1; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 16px; height: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--accent); background: var(--accent); color: #fff; padding: .8rem 1.4rem; font: 600 .66rem/1 var(--nf); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cover-title { font-family: var(--tf); font-weight: var(--tw); text-transform: var(--tt); letter-spacing: var(--tl); font-size: calc(clamp(1.9rem, 3.4vw, 2.9rem) * var(--ts)); line-height: 1.15; margin: 0; }
.admin-bar { position: sticky; top: 0; z-index: 90; background: #222; color: #fff; font-size: .78rem; text-align: center; padding: .4rem; }
.admin-bar a { color: #f3d9a7; }

/* ---------- Cover ---------- */
.cover { position: relative; min-height: 100svh; overflow: hidden; display: grid; }
.cover-visual { position: relative; overflow: hidden; background: var(--bg2); min-height: 0; }
.cover-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--fx) var(--fy); }
@media (orientation: portrait) { .cover-media { object-position: var(--fpx, var(--fx)) var(--fpy, var(--fy)); } }
.cover-text { position: relative; z-index: 2; display: flex; flex-direction: column; }
.cover-sub { font-family: var(--tf); font-size: 1.15rem; margin: .5rem 0 0; opacity: .9; }
.cover-date { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin: .7rem 0 0; opacity: .9; }
.cover-btn { align-self: var(--btn-align, center); margin-top: 2rem; border: 1px solid currentColor; padding: .85rem 1.5rem; font: 600 .64rem/1 var(--nf); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s; }
.cover-btn:hover { background: #fff; color: #222; }
.cover-brand { position: absolute; z-index: 2; left: 0; right: 0; bottom: 1.8rem; margin: 0 auto; width: max-content; max-width: 100%; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .8rem; text-decoration: none; font: 500 10px/1.3 'Lato', sans-serif; letter-spacing: 2px; text-transform: uppercase; }
.cover-brand img, .gate-brand img { height: 44px; width: auto; max-width: 180px; object-fit: contain; }
.brand-sub { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; opacity: .85; padding-left: .55rem; border-left: 1px solid currentColor; }

/* Bild über die ganze Fläche */
.cover-center .cover-visual, .cover-left .cover-visual, .cover-frame .cover-visual, .cover-stripe .cover-visual,
.cover-divider .cover-visual, .cover-outline .cover-visual { position: absolute; inset: 0; }
.cover-center .cover-visual::after, .cover-left .cover-visual::after, .cover-frame .cover-visual::after, .cover-stripe .cover-visual::after,
.cover-divider .cover-visual::after, .cover-outline .cover-visual::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.cover-center, .cover-left, .cover-frame, .cover-stripe, .cover-divider, .cover-outline { color: #fff; }
.cover-center .cover-text, .cover-frame .cover-text, .cover-stripe .cover-text, .cover-outline .cover-text { place-self: center; text-align: center; align-items: center; padding: 2rem; max-width: 900px; }

.cover-left .cover-text { align-self: end; text-align: left; align-items: flex-start; padding: 0 6vw 10vh; --btn-align: flex-start; }
.cover-left .cover-brand { top: 1.8rem; bottom: auto; left: 6vw; right: auto; align-items: flex-start; margin: 0; }

.cover-frame::after { content: ''; position: absolute; inset: 2.2vw; border: 1px solid rgba(255,255,255,.75); z-index: 1; pointer-events: none; }
.cover-frame .cover-brand { bottom: calc(2.2vw + 1.4rem); }

.cover-stripe .cover-title { padding: 1.6rem 0; border-top: 1px solid rgba(255,255,255,.8); border-bottom: 1px solid rgba(255,255,255,.8); min-width: min(70vw, 560px); }

.cover-divider::after { content: ''; position: absolute; top: 0; bottom: 0; left: 58%; width: 3px; background: #fff; z-index: 1; }
.cover-divider .cover-text { place-self: center start; width: 58%; text-align: center; align-items: center; padding: 2rem; }
.cover-divider .cover-brand { left: 0; right: 42%; }

.cover-outline .cover-text { border: 1px solid rgba(255,255,255,.85); padding: clamp(2.5rem, 7vh, 5rem) clamp(2rem, 6vw, 5rem); min-height: 50vh; justify-content: center; }

.cover-novel { grid-template-columns: 1fr 1fr; color: var(--fg); }
.cover-novel .cover-text { order: -1; justify-content: center; align-items: flex-start; text-align: left; padding: 0 8vw; --btn-align: flex-start; }
.cover-novel .cover-brand { left: 8vw; right: auto; margin: 0; align-items: flex-start; }
.cover-novel .cover-btn:hover, .cover-vintage .cover-btn:hover, .cover-journal .cover-btn:hover, .cover-stamp .cover-btn:hover, .cover-classic .cover-btn:hover { background: var(--fg); color: var(--bg); }

.cover-vintage { grid-template-rows: 72svh 1fr; padding: 2.2vw 2.2vw 0; color: var(--fg); }
.cover-vintage .cover-text { align-items: center; justify-content: center; text-align: center; padding: 2rem 1rem 4.5rem; }
.cover-vintage .cover-btn { display: none; }

.cover-journal { grid-template-columns: 55% 1fr; padding: 2.2vw; gap: 4vw; color: var(--fg); }
.cover-journal .cover-text { justify-content: flex-end; align-items: flex-end; text-align: right; padding-bottom: 12vh; --btn-align: flex-end; }
.cover-journal .cover-brand { left: auto; right: 2.2vw; top: 2.2vw; bottom: auto; margin: 0; align-items: flex-end; }

.cover-stamp { align-content: center; justify-items: center; color: var(--fg); padding: 8vh 1rem 6rem; gap: 2.4rem; }
.cover-stamp .cover-visual { width: min(34vw, 380px); aspect-ratio: 4/5; }
.cover-stamp .cover-text { align-items: center; text-align: center; }

.cover-classic { grid-template-rows: 1fr auto; min-height: 100svh; color: var(--fg); }
.cover-classic .cover-text { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .3rem 1.4rem; padding: 1.3rem var(--pad); }
.cover-classic .cover-title { font-size: calc(1.5rem * var(--ts)); }
.cover-classic .cover-date, .cover-classic .cover-sub { margin: 0; }
.cover-classic .cover-btn { margin: 0 0 0 auto; }
.cover-classic .cover-brand { display: none; }

@media (max-width: 760px) {
  .cover-novel, .cover-journal { grid-template-columns: 1fr; grid-template-rows: 62svh auto; padding: 0; gap: 0; }
  .cover-novel .cover-text, .cover-journal .cover-text { order: 0; padding: 2.5rem 1.5rem 5rem; align-items: center; text-align: center; --btn-align: center; }
  .cover-novel .cover-brand, .cover-journal .cover-brand { left: 0; right: 0; top: auto; bottom: 1.5rem; margin: 0 auto; align-items: center; }
  .cover-divider .cover-text { width: 100%; } .cover-divider .cover-brand { right: 0; }
  .cover-divider::after { display: none; }
  .cover-stamp .cover-visual { width: 70vw; }
  .cover-classic .cover-btn { margin: .6rem 0 0; }
}

/* ---------- Leiste mit Sets ---------- */
.gbar { position: sticky; top: 0; z-index: 50; background: var(--bg); transition: box-shadow .3s; }
.gbar.stuck { box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(0,0,0,.05); }
.gbar-inner { display: flex; align-items: center; gap: 2.2rem; padding: 1rem calc(var(--pad) + 4px); min-height: 70px; }
.gbar-id { display: grid; line-height: 1.35; flex: none; max-width: 30vw; }
.gbar-id b { font-family: var(--tf); font-weight: var(--tw); text-transform: var(--tt); letter-spacing: var(--tl); font-size: calc(.95rem * var(--ts)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gbar-id small { font: 500 8px/1.4 'Lato', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sets { display: flex; gap: 1.15rem; overflow-x: auto; flex: 1; scrollbar-width: none; align-items: center; }
.sets::-webkit-scrollbar { display: none; }
.set { background: none; border: 0; padding: .3rem 0; font: 600 .66rem/1.2 var(--nf); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; }
.set:hover, .set.on { color: var(--fg); }
.gbar-actions { display: flex; align-items: center; gap: .6rem; flex: none; }
.act { position: relative; display: inline-flex; align-items: center; gap: .4rem; background: none; border: 0; padding: .45rem; cursor: pointer; color: var(--fg); }
.act .ic { width: 21px; height: 21px; stroke-width: 1.3; }
.act .lbl { display: none; }
.as-text .act .ic { display: none; }
.as-text .act .lbl { display: inline; font: 600 .64rem var(--nf); letter-spacing: .1em; text-transform: uppercase; }
.as-text .more .act .ic { display: block; }
.act.on .ic { fill: currentColor; }
.more { position: relative; display: none; }
.more-menu { position: absolute; right: 0; top: 100%; background: var(--bg); box-shadow: 0 6px 24px rgba(0,0,0,.15); min-width: 200px; padding: .4rem 0; z-index: 5; }
.more-menu[hidden] { display: none; }
.more-menu button { display: flex; align-items: center; gap: .7rem; width: 100%; background: none; border: 0; padding: .7rem 1rem; cursor: pointer; text-align: left; font-size: .85rem; }
.more-menu button:hover { background: var(--bg2); }
.favs-mode .sets { visibility: hidden; }

/* ---------- Favoriten-Kopf ---------- */
.favhead { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 2rem var(--pad) 1rem; }
.favhead[hidden] { display: none; }
.favhead-title { flex: 1; display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.favhead-tools { display: inline-flex; gap: .8rem; }
.favhead-tools[hidden] { display: none; }
.textbtn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); font-size: .78rem; text-decoration: underline; text-underline-offset: 3px; }
.textbtn:hover { color: var(--fg); }
.favlists { order: 5; flex-basis: 100%; display: flex; gap: .5rem; flex-wrap: wrap; }
.favlists[hidden] { display: none; }
.favlist { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line); background: none; padding: .5rem .9rem; cursor: pointer; font: 600 .66rem/1 var(--nf); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.favlist small { font: 400 .72rem 'Lato', sans-serif; letter-spacing: 0; opacity: .8; }
.favlist.on { border-color: var(--fg); color: var(--fg); }
.favlist.add { border-style: dashed; }
.favhead h2 { margin: 0; font-family: var(--tf); font-weight: var(--tw); text-transform: var(--tt); letter-spacing: var(--tl); font-size: calc(1.3rem * var(--ts)); }
.favhead h2 .cnt { color: var(--muted); font-size: .8em; }
.favhead .back { display: inline-flex; align-items: center; gap: .3rem; background: none; border: 0; cursor: pointer; color: var(--muted); font-size: .8rem; padding: 0; }
.favhead-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- Raster ---------- */
.grid { padding: 0 var(--pad) 3rem; }
.gap-large { --gap: 20px; }
.item { position: relative; margin: 0; overflow: hidden; cursor: pointer; background: var(--bg2); }
.item img { width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease, transform .6s ease; }
.grid.fade .item img { opacity: 0; }
.grid.fade .item img.ok { opacity: 1; }
@media (hover: hover) { .item:hover img.ok { opacity: .92; } }
.item.hidden { display: none !important; }
/* vertikal (Masonry, Spalten per JS, ohne JS per CSS-Spalten) */
.grid-vertical { columns: 4 240px; column-gap: var(--gap); }
.grid-vertical.size-large { columns: 3 320px; }
.grid-vertical .item { break-inside: avoid; margin-bottom: var(--gap); aspect-ratio: var(--ar); }
.grid-vertical.js { columns: auto; display: flex; gap: var(--gap); align-items: flex-start; }
.grid-vertical.js .col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.grid-vertical.js .item { margin: 0; }
/* horizontal (Zeilen mit gleicher Höhe) */
.grid-horizontal { --rh: 250px; display: flex; flex-wrap: wrap; gap: var(--gap); }
.grid-horizontal.size-large { --rh: 380px; }
.grid-horizontal::after { content: ''; flex: 999 1 0; }
.grid-horizontal .item { flex: var(--ar) 1 calc(var(--ar) * var(--rh)); aspect-ratio: var(--ar); max-height: calc(var(--rh) * 1.6); }
@media (max-width: 700px) { .grid-horizontal { --rh: 130px; } .grid-horizontal.size-large { --rh: 210px; } }

.play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; background: rgba(0,0,0,.35); border: 1.5px solid rgba(255,255,255,.85); }
.play::after { content: ''; position: absolute; left: 22px; top: 17px; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.item-actions { position: absolute; inset: auto 0 0 0; display: flex; justify-content: flex-end; gap: .1rem; padding: 2rem .45rem .35rem; opacity: 0; transition: opacity .2s; }
.item-actions .ic { width: 19px; height: 19px; stroke-width: 1.4; filter: drop-shadow(0 0 2px rgba(0,0,0,.6)); }
.item:hover .item-actions, .item:focus-within .item-actions { opacity: 1; }
.item-actions { pointer-events: none; }
.item-actions button { pointer-events: auto; background: none; border: 0; color: #fff; padding: .35rem; cursor: pointer; display: grid; }
.item .fav.on { opacity: 1; }
.item:has(.fav.on) .item-actions { opacity: 1; }
.item:has(.fav.on) .dl { visibility: hidden; } .item:has(.fav.on):hover .dl { visibility: visible; }
.fav.on .ic { fill: #fff; }
@media (hover: none) { .item-actions { opacity: 1; background: none; } .item .dl { display: none; } }
.empty { text-align: center; color: var(--muted); padding: 4rem 1rem; }
.empty[hidden] { display: none; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: var(--bg); color: var(--fg); display: grid; grid-template-rows: 56px minmax(0, 1fr) auto 44px; }
.lb[hidden] { display: none; }
.lb-top { display: flex; align-items: center; gap: .6rem; padding: 0 1.1rem; }
.lb-act { background: none; border: 0; padding: .5rem; cursor: pointer; display: grid; }
.lb-act .ic { width: 21px; height: 21px; stroke-width: 1.3; }
.lb-act.on .ic { fill: currentColor; }
.lb-act[hidden] { display: none; }
.lb-act.playing { color: var(--accent); }
.lb-stage { position: relative; min-height: 0; overflow: hidden; touch-action: none; }
.lb-zoom { position: absolute; inset: 0 5rem; display: flex; align-items: center; justify-content: center; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-stage img { animation: fade .35s ease; transform-origin: center; will-change: transform; cursor: zoom-in; }
.lb.zoomed .lb-stage img { cursor: grab; }
.lb.zoomed .lb-stage img:active { cursor: grabbing; }
.lb.zoomed .lb-nav, .lb.zoomed .lb-name { opacity: 0; pointer-events: none; }
.lb-zoom.is-video { position: absolute; }
.lb-act.tgl.on { color: var(--accent); }
.lb-act.tgl.on .ic { fill: none; stroke-width: 1.8; }
/* Bildstreifen unten */
.lb-strip { display: flex; gap: 6px; overflow-x: auto; padding: 10px 1.1rem 2px; scrollbar-width: thin; scroll-behavior: smooth; }
.lb-strip[hidden] { display: none; }
.lb-strip button { flex: none; width: 74px; height: 52px; padding: 0; border: 0; background: var(--bg2); cursor: pointer; opacity: .45; transition: opacity .2s; position: relative; }
.lb-strip button:hover { opacity: .8; }
.lb-strip button.on { opacity: 1; outline: 2px solid var(--fg); outline-offset: -2px; }
.lb-strip img { width: 100%; height: 100%; object-fit: cover; }
.lb-strip button.v::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-40%, -50%); border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; filter: drop-shadow(0 0 2px rgba(0,0,0,.6)); }
/* Listen-Auswahl am Herz */
.lb-favwrap { position: relative; display: inline-flex; }
.listpick { position: absolute; right: 0; top: 100%; z-index: 5; background: var(--bg); color: var(--fg); box-shadow: 0 8px 28px rgba(0,0,0,.18); min-width: 220px; padding: .6rem 0; font-size: .85rem; }
.listpick[hidden] { display: none; }
.listpick p { margin: 0 1rem .4rem; font: 600 .62rem var(--nf); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.listpick label { display: flex; align-items: center; gap: .6rem; padding: .45rem 1rem; cursor: pointer; }
.listpick label:hover { background: var(--bg2); }
.listpick label span { flex: 1; }
.listpick small { color: var(--muted); }
.listpick input { accent-color: var(--accent); }
.listpick button { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); margin-top: .4rem; padding: .6rem 1rem .2rem; cursor: pointer; color: var(--muted); }
@keyframes fade { from { opacity: 0; } }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 1rem; cursor: pointer; opacity: .75; }
.lb-nav:hover { opacity: 1; } .lb-nav .ic { width: 26px; height: 26px; stroke-width: 1; }
.lb-prev { left: .3rem; } .lb-next { right: .3rem; }
.lb-name { margin: 0; align-self: center; text-align: center; font-size: .75rem; color: var(--muted); }
.lb-pos { margin-left: .8rem; opacity: .6; }
.lb-note { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); margin: 0; font-size: .82rem; color: var(--muted); max-width: 80vw; text-align: center; }
.lb-note[hidden] { display: none; }
.lb.slideshow .lb-nav, .lb.slideshow .lb-name { opacity: 0; }
.lb.slideshow .lb-zoom { inset: 0; }
@media (max-width: 700px) { .lb-zoom { inset: 0; } .lb-nav { display: none; } .lb-desk { display: none; } }

/* ---------- Dialoge ---------- */
.modal { border: 0; background: var(--bg); color: var(--fg); padding: 2.2rem 2.2rem 1.8rem; width: min(410px, 92vw); box-shadow: 0 20px 60px rgba(0,0,0,.25); font-size: .82rem; line-height: 1.65; }
.modal .fine { font-size: .72rem; color: var(--muted); margin-top: 1rem; }
.modal::backdrop { background: rgba(0,0,0,.55); }
.modal h2 { font: 700 .95rem/1.3 var(--nf); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 1.2rem; }
.modal > form > input { margin-top: 1rem; }
.modal p { margin: .4rem 0; }
.modal label { display: grid; gap: .3rem; margin: .8rem 0; font-size: .88rem; }
.modal label.radio { display: flex; align-items: center; gap: .6rem; margin: .45rem 0; cursor: pointer; }
.modal label.radio input { accent-color: var(--accent); }
.modal label[hidden], .modal div[hidden] { display: none; }
.modal input:not([type=radio]), .modal textarea, .gate input { font: inherit; padding: .7rem .8rem; border: 1px solid var(--line); background: var(--bg); color: var(--fg); width: 100%; border-radius: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.3rem; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 200; background: #222; color: #fff; padding: .7rem 1.2rem; font-size: .88rem; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.toast[hidden] { display: none; }

/* ---------- Passwort / Registrierung / Meldungen ---------- */
.gate { min-height: 100svh; display: grid; place-items: center; padding: 1rem; position: relative; overflow: hidden; }
.gate-bg { position: absolute; inset: 0; background-size: cover; }
.gate-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.gate-box { position: relative; z-index: 1; width: min(560px, 100%); display: grid; gap: .9rem; text-align: center; }
.gate:has(.gate-bg) .gate-box { color: #fff; }
.gate-box label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 1.4rem; opacity: .9; }
.gate-box .cover-date { margin: 0; }
.gate:has(.gate-bg) .gate-box input { background: rgba(255,255,255,.95); color: #222; border-color: transparent; }
.gate-input { display: flex; width: min(400px, 100%); justify-self: center; }
.gate-input input { flex: 1; }
.gate-input button { width: 48px; border: 0; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center; }
.gate-box .small { color: inherit; opacity: .8; }
.gate-brand { position: absolute; z-index: 1; bottom: 1.8rem; left: 0; right: 0; margin: 0; display: flex; flex-direction: column; align-items: center; gap: .8rem; font: 500 10px/1.3 'Lato', sans-serif; letter-spacing: 2px; text-transform: uppercase; }
.gate:has(.gate-bg) .gate-brand { color: #fff; }
.center-page { min-height: 100svh; display: grid; place-content: center; text-align: center; padding: 2rem; max-width: 560px; margin: 0 auto; gap: .6rem; }
.center-page form { margin-top: 1rem; }
.center-page input { font: inherit; padding: .7rem .8rem; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
.brand-big { font-size: 1.6rem; margin: 0; }
.g-footer { text-align: center; padding: 3rem 1rem 4rem; color: var(--muted); font-size: .8rem; }
.g-footer .script { font-size: 1.25rem; color: var(--fg); margin: 0 0 .3rem; }

@media (max-width: 700px) {
  .gap-large { --gap: 14px; }
  :root { --pad: 4px; --gap: 4px; }
  .gbar-inner { flex-wrap: wrap; gap: 0; padding: 0; min-height: 0; }
  .gbar-id { max-width: calc(100% - 110px); padding: 1rem 15px; }
  .gbar-actions { margin-left: auto; padding-right: 8px; gap: .2rem; }
  .act.wide { display: none; } .more { display: block; }
  .sets { order: 3; flex-basis: 100%; gap: 1.3rem; background: var(--bg2); padding: .7rem 15px; }
  .set.on { border-bottom-color: currentColor; }
  .grid { padding-top: 4px; }
}

/* ---------- Galerie-Hilfe ---------- */
.assist { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 1rem; }
.assist[hidden] { display: none; }
.assist-card { position: relative; background: var(--bg); width: min(450px, 100%); }
.assist-x { position: absolute; top: .5rem; right: .5rem; z-index: 2; background: rgba(255,255,255,.9); border: 0; border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; color: #222; }
.assist-visual { height: 230px; background: var(--bg2) center / cover; display: grid; place-items: center; }
.assist-icons { display: flex; gap: 1.6rem; padding: 1.6rem 2.2rem; border-radius: 99px; border: 2px solid rgba(255,255,255,.85); color: #fff; background: rgba(0,0,0,.25); }
.assist-icons .ic { width: 26px; height: 26px; }
.assist-body { padding: 1.8rem 2.2rem 1.6rem; }
.assist-step h2 { font: 700 .95rem/1.3 var(--nf); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 1rem; }
.assist-step p { margin: 0; font-size: .9rem; line-height: 1.7; }
.assist-step .ic { width: 15px; height: 15px; vertical-align: -2px; }
.assist-step + .assist-step { display: none; }
.assist-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.6rem; }
.assist-dots { display: flex; gap: 6px; }
.assist-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.assist-dots i.on { background: var(--fg); }

/* Frei platziertes Logo (Fokus-Designer). Größe in % der kürzeren Bildschirmseite */
.cover-logo { display: none; }
.cover.logo-free .cover-logo { display: block; position: absolute; z-index: 3; left: var(--llx); top: var(--lly); height: calc(var(--lls) * 1vmin); width: auto; max-width: none;
  transform: translate(-50%, -50%) rotate(var(--llr)); pointer-events: none; }
.cover.logo-free .cover-brand img { display: none; }
@media (orientation: portrait) {
  .cover.logo-free .cover-logo { left: var(--lpx); top: var(--lpy); height: calc(var(--lps) * 1vmin); transform: translate(-50%, -50%) rotate(var(--lpr)); }
}

/* ---------- Pfeil am Titelbild, Nach-oben-Knopf ---------- */
.cover-down { position: absolute; z-index: 3; right: 1.6rem; bottom: 1.6rem; width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; opacity: .75; color: inherit; transition: opacity .2s, transform .2s; animation: bob 2.4s ease-in-out infinite; }
.cover-down:hover { opacity: 1; }
.cover-down .ic { width: 20px; height: 20px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .cover-down { animation: none; } }
@media (max-width: 760px) { .cover-down { display: none; } }
.to-top { position: fixed; z-index: 60; right: 1.2rem; bottom: 1.2rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg); color: var(--fg); box-shadow: 0 4px 16px rgba(0,0,0,.15); display: grid; place-items: center; cursor: pointer; animation: fade .3s ease; }
.to-top[hidden] { display: none; }

/* ---------- Teilen ---------- */
.copyrow { display: flex; gap: .4rem; margin-top: 1rem; }
.copyrow input { flex: 1; min-width: 0; }
.share-apps { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .8rem; }
.share-apps .btn { flex: 1; }
.share-apps [hidden] { display: none; }

/* ---------- Bildschutz ---------- */
.protect .item img, .protect .lb-stage img, .protect .lb-strip img, .protect .cover-media { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.proof-ov { position: relative; }

/* ---------- Kundenzugang: private Fotos ---------- */
.item .priv { position: absolute; top: .45rem; left: .45rem; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: none; place-items: center; pointer-events: none; }
.item.is-private .priv { display: grid; }
.item.is-private img { opacity: .82; }
.item .priv .ic { width: 14px; height: 14px; stroke-width: 1.8; }
.pwrow { margin-top: 1rem; display: flex; align-items: stretch; border: 1px solid var(--line); }
.modal .pwrow input { border: 0; flex: 1; min-width: 0; }
.pwrow .pw-eye { background: none; border: 0; padding: 0 .8rem; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.pwrow .pw-eye.on { color: var(--fg); }
.pwrow .pw-eye .ic { width: 19px; height: 19px; }

/* ---------- Auswahl Gast / Kunde ---------- */
.gate-pick .gate-box { width: min(640px, 100%); gap: 0; }
.gate-sub { margin: .8rem 0 0; font: 500 .72rem/1.4 'Lato', sans-serif; letter-spacing: .24em; text-transform: uppercase; opacity: .8; }
.gate-form { display: grid; gap: 1.3rem; justify-items: center; margin-top: 3rem; }
.gate-welcome { margin: 0 0 .4rem; opacity: .85; line-height: 1.7; }
.gate-welcome b { font-weight: 700; }
.gate-start:hover { background: var(--fg); color: var(--bg); }
.gate:has(.gate-bg) .gate-start:hover { background: #fff; color: #222; }
.gate .gate-field { width: min(520px, 100%); padding: 1.1rem 1.2rem; font-size: 1rem; }
.gate-start { margin-top: .6rem; min-width: 180px; padding: 1.3rem 2.4rem; background: transparent; color: inherit; border: 1.5px solid currentColor; font: 500 .8rem/1 'Lato', sans-serif; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.gate-fine { margin: .2rem 0 0; font-size: .72rem; opacity: .6; }
.gate-fine a { color: inherit; }
.gate-pick .error { margin: 0; }

@media (max-width: 600px) { .gate-form { margin-top: 2rem; gap: 1rem; } }

/* ---------- Kunden: Schloss-Knopf, Filter Privat / Gästeansicht ---------- */
.lockbtn .ic-lock { display: none; }
.lockbtn.on .ic-lock { display: block; }
.lockbtn.on .ic-unlock { display: none; }
#lb-private.on { color: var(--accent); }
.item-actions .lockbtn.on { color: #fff; }
.item:has(.lockbtn.on) .item-actions { opacity: 1; }
.item.is-private .priv { display: none; }
.cview { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; padding: .9rem var(--pad) 0; }
.cview button { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 1px solid var(--line); color: var(--muted); padding: .45rem .85rem; border-radius: 99px; font: 600 .66rem/1.2 var(--nf); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.cview button .ic { width: 14px; height: 14px; stroke-width: 1.6; }
.cview button:hover { color: var(--fg); }
.cview button.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.cview .cnt { font-weight: 400; opacity: .8; }
.cview-note { margin-left: .5rem; font-size: .8rem; color: var(--muted); }
.set[hidden] { display: none; }
.private-view .sets { opacity: .4; }
.guest-view .item-actions .lockbtn { display: none; }

/* ---------- Presenter-Modus: nur das Bild ---------- */
.presentpick small { display: block; margin: .5rem 1rem .2rem; font-size: .72rem; line-height: 1.45; color: var(--muted); }
.presentpick button[data-present] { display: flex; align-items: center; gap: .6rem; border: 0; margin: 0; padding: .55rem 1rem; color: var(--fg); }
.presentpick button[data-present]:hover { background: var(--bg2); }
.presentpick .ic { width: 16px; height: 16px; stroke-width: 1.5; }
.lb.presenter { background: #000; grid-template-rows: 0 minmax(0, 1fr) 0 0; cursor: none; }
.lb.presenter.pres-light { background: #fff; }
.lb.presenter .lb-top, .lb.presenter .lb-strip, .lb.presenter .lb-nav, .lb.presenter .lb-name, .lb.presenter .lb-note { display: none; }
.lb.presenter .lb-stage { grid-row: 1 / -1; }
.lb.presenter .lb-zoom { inset: 0; }
.lb.presenter .lb-stage img { cursor: none; }
