/* sbtnfilms Kundenbereich – passt zum Design von sbtnfilms.de */
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url('/assets/fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 800; font-display: swap; src: url('/assets/fonts/poppins-latin-800-normal.woff2') format('woff2'); }

:root {
  --ink: #0B0F14; --card: #141A22; --raise: #1C242E; --rule: #242D38;
  --fg: #F2F4F6; --soft: #C5CCD4; --mute: #9AA3AF;
  --lime: #D4FF3F; --lime-ink: #0B0F14; --warn: #FF7A45;
  --f: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 72px); --r: 24px; --ease: cubic-bezier(.2, .7, 0, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--fg); font: 500 16px/1.6 var(--f); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(34px, 6vw, 76px); }
h2 { font-size: clamp(26px, 3.6vw, 44px); }
p { margin: 0 0 1em; }
.soft { color: var(--soft); }
.mute { color: var(--mute); }
.small { font-size: 14px; }
.eyebrow { color: var(--lime); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font: 800 15px/1 var(--f); text-decoration: none; cursor: pointer; transition: transform .35s var(--ease), background .25s, border-color .25s, color .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--lime { background: var(--lime); color: var(--lime-ink); }
.btn--lime:hover { background: #e2ff7a; }
.btn--ghost { background: rgba(255,255,255,.04); border-color: var(--rule); color: var(--fg); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn--danger { background: transparent; border-color: rgba(255,122,69,.4); color: var(--warn); }
.btn--danger:hover { background: rgba(255,122,69,.1); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 13px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* Header */
.khdr { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px var(--gutter); }
.khdr--fixed { position: fixed; inset: 0 0 auto; background: linear-gradient(rgba(11,15,20,.85), rgba(11,15,20,0)); transition: background .3s; }
.khdr--fixed.is-solid { background: rgba(11,15,20,.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); }
.khdr__right { display: flex; gap: 8px; }
.klogo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.klogo img { width: 44px; height: 44px; object-fit: contain; }

/* Login */
.login { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 100vh; overflow: hidden; }
.login__bg { position: absolute; inset: -60px; background: center/cover no-repeat; filter: blur(40px) saturate(1.2); opacity: .55; transform: scale(1.1); }
.login__veil { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgba(11,15,20,.35), var(--ink) 75%); }
.login__card { position: relative; z-index: 2; width: min(480px, calc(100% - 32px)); margin: auto; padding: clamp(28px, 5vw, 44px); background: rgba(20,26,34,.82); border: 1px solid var(--rule); border-radius: var(--r); backdrop-filter: blur(18px); box-shadow: 0 40px 120px rgba(0,0,0,.45); animation: rise .9s var(--ease) both; }
.login__card h1 { font-size: clamp(30px, 5vw, 42px); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.form { display: grid; gap: 14px; margin: 26px 0 18px; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--soft); }
.field input, .field textarea, .field select { width: 100%; height: 52px; padding: 0 18px; border-radius: 14px; background: var(--ink); border: 1px solid var(--rule); color: var(--fg); font: 500 16px var(--f); outline: none; transition: border-color .2s, box-shadow .2s; }
.field textarea { height: auto; min-height: 96px; padding: 14px 18px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(212,255,63,.12); }
.err { color: var(--warn); margin: 0; font-size: 14px; }
.ok { color: var(--lime); margin: 0; font-size: 14px; }
.is-login .kfoot { position: relative; z-index: 2; }

/* Galerie Hero */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero--plain { min-height: 62vh; background: radial-gradient(ellipse at 30% 0%, #1b2430, var(--ink) 70%); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 18s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); opacity: 0; } 15% { opacity: 1; } to { transform: scale(1); } }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,15,20,.1) 30%, rgba(11,15,20,.6) 65%, var(--ink)); }
.hero__txt { position: relative; z-index: 2; padding: 0 var(--gutter) clamp(40px, 8vh, 80px); max-width: 1100px; animation: rise 1s .2s var(--ease) both; }
.hero__client { color: var(--soft); font-size: clamp(16px, 2vw, 20px); margin-top: -4px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--soft); font-size: 14px; margin: 18px 0 26px; }
.hero__meta span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); margin: 0 10px 2px 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* Inhalt */
.wrap { width: 100%; padding: 0 var(--gutter); flex: 1; }
.note { max-width: 760px; margin: 24px 0 40px; padding: 26px 30px; background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--lime); border-radius: var(--r); }
.note p { color: var(--soft); margin-bottom: 10px; }
.note span { font-weight: 800; }

.bar { position: sticky; top: 76px; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; margin-bottom: 18px; background: linear-gradient(var(--ink) 70%, rgba(11,15,20,0)); }
.tabs { display: inline-flex; padding: 4px; background: var(--card); border: 1px solid var(--rule); border-radius: 999px; }
.tab { border: 0; background: none; color: var(--soft); font: 800 13px var(--f); height: 36px; padding: 0 16px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s; }
.tab i { font-style: normal; color: var(--mute); margin-left: 4px; font-weight: 500; }
.tab.is-on { background: var(--lime); color: var(--lime-ink); }
.tab.is-on i { color: rgba(11,15,20,.6); }
.bar__dl { display: flex; gap: 8px; min-width: 0; }
html, body { overflow-x: clip; }

/* Raster */
.grid { columns: 3 360px; column-gap: 14px; }
.tile { position: relative; margin: 0 0 14px; break-inside: avoid; border-radius: 16px; overflow: hidden; background: var(--card); cursor: zoom-in; opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.tile.is-in { opacity: 1; transform: none; }
.tile.is-hidden { display: none; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .4s; }
.tile--video { aspect-ratio: 16/9; }
.tile:hover img, .tile:hover video { transform: scale(1.035); }
.tile__open { position: absolute; inset: 0; border: 0; background: none; cursor: zoom-in; }
.tile__dl { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(11,15,20,.7); color: var(--fg); backdrop-filter: blur(10px); opacity: 0; transform: translateY(6px); transition: .3s var(--ease); }
.tile:hover .tile__dl, .tile__dl:focus { opacity: 1; transform: none; }
.tile__dl:hover { background: var(--lime); color: var(--lime-ink); }
.tile__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--lime-ink); pointer-events: none; transition: transform .4s var(--ease), opacity .3s; }
.tile__play svg { fill: currentColor; stroke: none; width: 26px; height: 26px; margin-left: 3px; }
.tile:hover .tile__play { transform: scale(.85); opacity: .0; }
.tile__dur { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(11,15,20,.7); font-size: 12px; pointer-events: none; }
.tile__dur:empty { display: none; }
.tile__file { aspect-ratio: 4/3; display: grid; place-content: center; text-align: center; gap: 6px; padding: 20px; }
.tile__file span { font-weight: 800; font-size: 28px; color: var(--lime); }
.tile__file small { color: var(--mute); word-break: break-all; }
@media (hover: none) { .tile__dl { opacity: 1; transform: none; width: 40px; height: 40px; } }

.empty, .thanks { text-align: center; max-width: 640px; margin: 60px auto; }
.thanks { margin: 100px auto 60px; }
.thanks .hero__cta { justify-content: center; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: #06080B; display: grid; grid-template-rows: auto minmax(0, 1fr); animation: fade .3s ease; }
.lb[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lb__top { display: flex; align-items: center; gap: 16px; padding: 14px var(--gutter); }
.lb__count { color: var(--lime); font-weight: 800; font-size: 14px; min-width: 56px; }
.lb__name { flex: 1; color: var(--mute); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb__actions { display: flex; gap: 8px; align-items: center; }
.lb__x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); background: none; color: var(--fg); cursor: pointer; display: grid; place-items: center; }
.lb__x:hover { border-color: var(--lime); color: var(--lime); }
.lb__stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); place-items: center; min-height: 0; padding: 0 clamp(8px, 6vw, 96px) 24px; overflow: hidden; touch-action: pan-y; }
.lb__stage > * { grid-area: 1 / 1; }
.lb__stage img, .lb__stage video { max-width: 100%; max-height: calc(100dvh - 100px); width: auto; height: auto; object-fit: contain; border-radius: 6px; user-select: none; }
.lb__stage img { transition: filter .5s, opacity .3s; }
.lb__stage img.is-loading { filter: blur(12px); }
.lb__stage .lb__spin { position: absolute; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--rule); border-top-color: var(--lime); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lb__nav { position: absolute; top: 50%; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; border: 1px solid var(--rule); background: rgba(20,26,34,.7); color: var(--fg); cursor: pointer; display: grid; place-items: center; transition: .25s; }
.lb__nav:hover { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.lb__prev { left: 18px; } .lb__next { right: 18px; }
@media (max-width: 700px) { .lb__nav { display: none; } .lb__name { display: none; } .bar { top: 70px; } .bar__dl .btn { height: 36px; } .khdr__right .btn--ghost { display: none; } }

/* In Fotos speichern (Handy) */
.save { position: fixed; inset: 0; z-index: 150; display: grid; place-items: end center; padding: 16px; background: rgba(6,8,11,.7); backdrop-filter: blur(6px); animation: fade .25s ease; }
.save[hidden] { display: none !important; }
.save__card { width: min(440px, 100%); padding: 26px 24px calc(20px + env(safe-area-inset-bottom)); background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: rise .45s var(--ease) both; }
.save__title { font-size: 24px; margin-bottom: 6px; }
.save__name { margin-bottom: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.save__bar { height: 6px; border-radius: 6px; background: var(--rule); overflow: hidden; margin-bottom: 12px; }
.save__bar i { display: block; height: 100%; width: 0; background: var(--lime); transition: width .2s; }
.save__hint:empty { display: none; }
.save__btns { display: grid; gap: 8px; margin-top: 14px; }
.save.is-ready .save__bar { display: none; }
.tile__dl.is-photo { width: auto; padding: 0 14px 0 12px; border-radius: 999px; gap: 6px; font: 800 12px var(--f); text-decoration: none; display: inline-flex; align-items: center; }
.tile__dl.is-photo svg { width: 18px; height: 18px; }

/* Footer */
.kfoot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 28px var(--gutter); color: var(--mute); font-size: 13px; border-top: 1px solid var(--rule); margin-top: 40px; }
.kfoot nav { display: flex; gap: 18px; }
.kfoot a { text-decoration: none; }
.kfoot a:hover { color: var(--lime); }

/* ---------- Admin ---------- */
.admin { width: 100%; max-width: 1200px; margin: 0 auto; padding: 10px var(--gutter) 40px; flex: 1; }
.admin h1 { font-size: clamp(30px, 4vw, 48px); }
.admin__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 20px 0 30px; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: clamp(20px, 3vw, 30px); }
.card + .card { margin-top: 18px; }
.card h2 { font-size: 22px; margin-bottom: 16px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }
.glist { display: grid; gap: 12px; }
.gitem { display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; align-items: center; padding: 14px; background: var(--card); border: 1px solid var(--rule); border-radius: 20px; text-decoration: none; transition: border-color .25s, transform .35s var(--ease); }
.gitem:hover { border-color: var(--lime); transform: translateY(-2px); }
.gitem__img { width: 84px; height: 64px; border-radius: 12px; background: var(--raise) center/cover; }
.gitem h3 { font-size: 18px; margin: 0 0 4px; letter-spacing: -.01em; }
.gitem p { margin: 0; color: var(--mute); font-size: 13px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; background: var(--raise); color: var(--soft); }
.pill--lime { background: rgba(212,255,63,.14); color: var(--lime); }
.pill--warn { background: rgba(255,122,69,.14); color: var(--warn); }
@media (max-width: 600px) { .gitem { grid-template-columns: 64px 1fr; } .gitem__img { width: 64px; height: 52px; } .gitem .pill { grid-column: 2; justify-self: start; } }

.share { display: grid; gap: 10px; }
.share__row { display: flex; gap: 8px; align-items: center; }
.share__row code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 12px 16px; background: var(--ink); border: 1px solid var(--rule); border-radius: 12px; font: 500 14px var(--f); color: var(--soft); }

.drop { display: grid; place-items: center; text-align: center; gap: 8px; padding: 46px 20px; border: 2px dashed var(--rule); border-radius: var(--r); background: var(--ink); cursor: pointer; transition: border-color .25s, background .25s; }
.drop:hover, .drop.is-over { border-color: var(--lime); background: rgba(212,255,63,.04); }
.drop strong { font-size: 18px; }
.drop svg { width: 40px; height: 40px; color: var(--lime); }
.queue { display: grid; gap: 8px; margin-top: 14px; }
.q { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 14px; background: var(--ink); border-radius: 12px; font-size: 13px; }
.q__bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--rule); overflow: hidden; }
.q__bar i { display: block; height: 100%; width: 0; background: var(--lime); transition: width .2s; }
.q.is-done .q__state { color: var(--lime); }
.q.is-err .q__state { color: var(--warn); }

.flist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fitem { position: relative; border-radius: 14px; overflow: hidden; background: var(--ink); border: 1px solid var(--rule); }
.fitem img, .fitem video { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.fitem__meta { padding: 8px 10px; font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fitem__tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 6px; }
.fitem__tools button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(11,15,20,.8); color: var(--fg); cursor: pointer; display: grid; place-items: center; }
.fitem__tools button svg { width: 16px; height: 16px; }
.fitem__tools button:hover { background: var(--lime); color: var(--lime-ink); }
.fitem__tools button.del:hover { background: var(--warn); color: var(--ink); }
.fitem.is-cover { border-color: var(--lime); }
.fitem.is-cover::after { content: 'Titelbild'; position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-size: 11px; font-weight: 800; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px); padding: 12px 20px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-weight: 800; font-size: 14px; opacity: 0; transition: .35s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spacer { flex: 1; }
