/* Silbra – 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; }
