:root{color-scheme:dark;--bg:#050505;--panel:#0d0d0d;--panel2:#121212;--line:#252525;--text:#f3f3f3;--muted:#8a8a8a;--danger:#ff6b6b;--radius:14px}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:inherit}.login-page{min-height:100vh;display:grid;place-items:center;background:#000}.login-shell{width:min(430px,calc(100vw - 40px));display:flex;flex-direction:column;align-items:center;text-align:center;padding:48px 0}.login-logo{width:min(310px,72vw);height:auto;max-height:180px;object-fit:contain;margin-bottom:38px}.login-form{width:100%;display:grid;gap:16px}.login-form label{text-align:left;display:grid;gap:7px}.login-form label span{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#777}.login-form input,.user-create input,.reset-form input,.inline-edit input{width:100%;background:#080808;color:#fff;border:1px solid #282828;border-radius:10px;padding:13px 14px;outline:none}.login-form input:focus,.user-create input:focus,.reset-form input:focus,.inline-edit input:focus{border-color:#777}.login-form button,button,.button-link{appearance:none;border:1px solid #333;background:#f1f1f1;color:#080808;border-radius:10px;padding:12px 16px;font:inherit;font-weight:650;cursor:pointer;text-decoration:none}.login-form button:hover,button:hover,.button-link:hover{filter:brightness(.88)}.login-message{min-height:24px;color:#aaa;font-size:13px}.login-message a{text-decoration:underline}.setup-shell h1{font-size:22px;margin:0 0 8px}.muted{color:var(--muted)}.notice{padding:12px 14px;border:1px solid #333;border-radius:10px;margin:0 0 18px;width:100%;text-align:left}.notice.success{border-color:#2c573d;color:#9ee2b5}.notice.error{border-color:#663737;color:#ffaaaa}.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,4vw,56px);border-bottom:1px solid #171717;position:sticky;top:0;background:rgba(5,5,5,.94);backdrop-filter:blur(16px);z-index:20}.brand img{width:150px;height:48px;object-fit:contain;object-position:left center}.topbar nav{display:flex;align-items:center;gap:18px;color:#aaa;font-size:14px}.topbar nav a{text-decoration:none}.topbar nav a:hover{color:#fff}.signed-in{color:#666}.gallery-wrap,.admin-wrap{width:min(1520px,calc(100% - 36px));margin:0 auto;padding:52px 0 90px}.gallery-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:30px}.gallery-heading h1{font-size:clamp(34px,5vw,68px);letter-spacing:-.055em;line-height:.95;margin:0;font-weight:620}.gallery-heading>p{color:#666;margin:0}.eyebrow{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:#646464;margin:0 0 13px}.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}.gallery-card{position:relative;padding:0;border:1px solid #171717;border-radius:12px;background:#090909;overflow:hidden;text-align:left;min-height:250px}.gallery-card img{display:block;width:100%;height:clamp(250px,28vw,390px);object-fit:cover;transition:transform .35s ease,opacity .35s ease}.gallery-card:hover img{transform:scale(1.018);opacity:.9}.gallery-card span{display:block;padding:13px 14px 14px;color:#cfcfcf;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.empty-state{border:1px dashed #292929;border-radius:var(--radius);padding:80px 24px;text-align:center;color:#777}.empty-state .button-link{display:inline-block;margin-top:12px}.lightbox[hidden]{display:none}.lightbox{position:fixed;inset:0;z-index:100;background:#000;display:grid;grid-template-rows:68px 1fr}.lightbox-bar{display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid #1d1d1d;background:#070707;gap:16px}.lightbox-bar>div:first-child{min-width:0}.lightbox-bar strong,.lightbox-bar small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lightbox-bar strong{font-size:14px}.lightbox-bar small{font-size:11px;color:#666;margin-top:3px}.lightbox-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.lightbox-actions button,.lightbox-actions a{background:#111;border:1px solid #2b2b2b;color:#ddd;border-radius:9px;padding:8px 11px;text-decoration:none;font-size:12px}.lightbox-actions #lightbox-close{font-size:22px;line-height:1;padding:5px 10px}.lightbox-stage{min-height:0;display:grid;place-items:center;overflow:hidden;cursor:zoom-out}.lightbox-stage img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;user-select:none}.lightbox-stage.scrollable{display:block;overflow:auto;cursor:default;text-align:center}.lightbox-stage img.actual-size{max-width:none;max-height:none;width:auto;height:auto}.no-scroll{overflow:hidden}.admin-wrap{max-width:1260px}.admin-panel{border-top:1px solid #222;padding:32px 0 42px}.panel-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:20px}.panel-head h2{font-size:22px;margin:0 0 5px}.panel-head p{color:#777;margin:0;font-size:13px}.upload-form{display:flex;align-items:stretch;gap:12px}.dropzone{border:1px dashed #383838;border-radius:12px;padding:26px;display:grid;gap:5px;flex:1;cursor:pointer;background:#090909}.dropzone input{width:100%}.dropzone span{font-size:12px;color:#777}.upload-form>button{min-width:160px}.manage-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}.manage-card{background:#0a0a0a;border:1px solid #1f1f1f;border-radius:12px;overflow:hidden}.manage-card>img{width:100%;height:220px;object-fit:cover;display:block}.manage-body{padding:12px}.manage-body small{color:#6f6f6f}.inline-edit{display:flex;gap:7px;margin:10px 0}.inline-edit button,.manage-body form>button,.user-actions button{font-size:12px;padding:9px 10px}.danger{background:#1b0c0c!important;color:#ff9999!important;border-color:#482020!important}.user-create{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;margin-bottom:16px}.user-list{border-top:1px solid #1d1d1d}.user-row{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:14px 0;border-bottom:1px solid #1d1d1d}.user-row>div:first-child{display:grid;gap:3px}.user-row span{color:#666;font-size:12px}.user-actions{display:flex;align-items:center;gap:7px}.reset-form{display:flex;gap:7px}.reset-form input{width:180px}.user-actions form{margin:0}@media(max-width:760px){.topbar{height:68px;padding:0 16px}.brand img{width:112px;height:38px}.signed-in{display:none}.gallery-wrap,.admin-wrap{width:calc(100% - 24px);padding-top:34px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.gallery-card{min-height:0}.gallery-card img{height:46vw}.gallery-card span{padding:10px;font-size:11px}.lightbox-bar{padding:0 8px}.lightbox-actions a{display:none}.upload-form{display:grid}.user-create{grid-template-columns:1fr}.user-row{align-items:flex-start;flex-direction:column}.user-actions,.reset-form{width:100%;flex-wrap:wrap}.reset-form input{width:auto;flex:1}.manage-grid{grid-template-columns:1fr 1fr}.inline-edit{display:grid}.gallery-heading h1{font-size:44px}}@media(max-width:480px){.manage-grid{grid-template-columns:1fr}.topbar nav{gap:11px;font-size:12px}}

/* V2: echtes Hammer-Collectibles-Logo + robuster sequenzieller Chunk-Upload */
.login-logo{width:min(300px,72vw);max-height:300px;margin-bottom:34px}
.brand{display:flex;align-items:center;text-decoration:none}.brand img{width:58px;height:58px;object-fit:contain;object-position:left center}
.upload-form{align-items:stretch}.dropzone{min-height:142px;align-content:center;transition:border-color .2s ease,background .2s ease}.dropzone:hover,.dropzone.is-dragging{border-color:#8e805d;background:#0d0c09}.dropzone strong{font-size:16px}.dropzone small{color:#b9a77a;font-size:12px;margin-top:7px}.upload-buttons{display:flex;flex-direction:column;gap:9px;min-width:170px}.upload-buttons button{flex:1}.secondary{background:#111!important;color:#ddd!important;border-color:#333!important}.upload-progress{margin-top:18px;border:1px solid #222;background:#090909;border-radius:12px;padding:16px}.upload-progress-head{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:12px;margin-bottom:8px}.upload-progress-head strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-progress-head span{color:#777;white-space:nowrap}.upload-progress-head.total{margin-top:15px}.progress-track{height:8px;border-radius:999px;background:#1a1a1a;overflow:hidden}.progress-track.total{height:10px}.progress-bar{width:0;height:100%;background:linear-gradient(90deg,#9d8650,#e4cf8e);transition:width .12s linear}.upload-log{display:grid;gap:5px;margin-top:15px;font-size:12px}.upload-log-row{color:#888;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.upload-log-row.success{color:#9ee2b5}.upload-log-row.error{color:#ffaaaa}
@media(max-width:760px){.brand img{width:46px;height:46px}.upload-buttons{min-width:0;flex-direction:row}.upload-progress-head{align-items:flex-start;flex-direction:column;gap:3px}.upload-progress-head span{white-space:normal}.login-logo{width:min(250px,72vw)}}

/* =========================================================
   V3 · Kategorien, Rechte, geschützte Galerie, 1:1-Scrolling
   ========================================================= */
select{appearance:auto;background:#080808;color:#fff;border:1px solid #282828;border-radius:10px;padding:12px 14px;font:inherit;outline:none}
select:focus{border-color:#777}
button:disabled{opacity:.35;cursor:not-allowed;filter:none!important}
.compact-heading{margin-bottom:24px}

/* Galerie-Navigation direkt am oberen Seitenrand */
.gallery-nav{min-height:48px;display:flex;align-items:stretch;justify-content:flex-start;gap:3px;padding:0 clamp(18px,4vw,56px);border-bottom:1px solid #191919;background:#070707;position:sticky;top:82px;z-index:45;overflow:visible}
.gallery-nav>a,.gallery-nav-category>a{display:flex;align-items:center;min-height:48px;padding:0 12px;color:#9b9b9b;text-decoration:none;font-size:13px;white-space:nowrap;border-bottom:1px solid transparent}
.gallery-nav>a:hover,.gallery-nav-category>a:hover,.gallery-nav>a.active,.gallery-nav-category.active>a{color:#fff;border-bottom-color:#b9a77a;background:#0b0b0b}
.gallery-nav-category{position:relative;display:flex;align-items:stretch}
.gallery-nav-submenu{display:none;position:absolute;left:0;top:100%;min-width:220px;background:#090909;border:1px solid #242424;border-radius:0 0 10px 10px;padding:6px;box-shadow:0 18px 35px rgba(0,0,0,.45);z-index:60}
.gallery-nav-category:hover .gallery-nav-submenu,.gallery-nav-category:focus-within .gallery-nav-submenu{display:grid}
.gallery-nav-submenu a{display:block;padding:10px 11px;color:#aaa;text-decoration:none;font-size:12px;border-radius:7px;white-space:nowrap}
.gallery-nav-submenu a:hover,.gallery-nav-submenu a.active{background:#161616;color:#fff}

/* Bildschutz / Vollbild */
.protected-media{-webkit-user-drag:none;-webkit-touch-callout:none;user-select:none}
.lightbox{grid-template-rows:68px minmax(0,1fr);height:100dvh;max-height:100dvh;overflow:hidden}
.lightbox-stage{position:relative;min-width:0;min-height:0;height:calc(100dvh - 68px);max-height:calc(100dvh - 68px);overflow:hidden;display:grid;place-items:center;background:#000}
.lightbox-stage img{position:relative;z-index:1;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block;margin:auto;user-select:none;-webkit-user-drag:none}
.lightbox-stage.scrollable{display:block!important;overflow:auto!important;overscroll-behavior:contain;height:calc(100dvh - 68px)!important;max-height:calc(100dvh - 68px)!important;text-align:left;scrollbar-gutter:stable both-edges}
.lightbox-stage.scrollable img.actual-size{display:block!important;max-width:none!important;max-height:none!important;width:auto!important;height:auto!important;object-fit:none!important;margin:0 auto!important}
.watermark-layer{position:fixed;z-index:6;left:0;right:0;top:68px;bottom:0;pointer-events:none;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(6,1fr);overflow:hidden}
.watermark-layer span{display:flex;align-items:center;justify-content:center;padding:8px;color:#fff;font-size:clamp(10px,1vw,15px);font-weight:650;letter-spacing:.05em;opacity:.075;transform:rotate(-24deg);white-space:nowrap;text-shadow:0 1px 2px #000}
.lightbox-actions{position:relative;z-index:10}

/* Kategorienverwaltung */
.category-create,.subcategory-create,.category-rename,.subcategory-rename{display:flex;gap:8px;align-items:center}
.category-create{max-width:620px;margin-bottom:18px}
.category-create input,.subcategory-create input,.category-rename input,.subcategory-rename input,.image-edit input{width:100%;background:#080808;color:#fff;border:1px solid #282828;border-radius:10px;padding:12px 14px;outline:none}
.category-admin-list{display:grid;gap:12px}
.category-admin-card{border:1px solid #202020;border-radius:12px;background:#090909;padding:14px}
.category-admin-head{display:flex;justify-content:space-between;gap:12px;align-items:center}
.category-rename{flex:1;max-width:720px}
.mini-actions{display:flex;gap:5px;align-items:center;flex-shrink:0}.mini-actions form{margin:0}.mini-actions button{padding:9px 11px;font-size:12px}
.subcategory-list{border-top:1px solid #1d1d1d;margin-top:13px;padding-top:11px;display:grid;gap:7px}
.subcategory-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding-left:18px}
.subcategory-rename{flex:1}.subcategory-rename>span{color:#656565}.subcategory-create{padding-left:35px;margin-top:4px;max-width:690px}

/* Upload-Ziel */
.upload-target{margin-bottom:12px;max-width:680px}.upload-target label,.image-edit label{display:grid;gap:6px}.upload-target label>span,.image-edit label>span{font-size:11px;color:#777;text-transform:uppercase;letter-spacing:.08em}.upload-target select{width:100%}

/* Bildverwaltung */
.image-edit{display:grid;gap:9px;margin:12px 0}.image-edit select{width:100%}.image-edit>button{justify-self:start}

/* Benutzerrechte */
.user-row-v3{padding:16px 0;border-bottom:1px solid #1d1d1d}.user-summary{display:flex;justify-content:space-between;gap:20px;align-items:center}.user-summary>div:first-child{display:grid;gap:3px}.user-summary span{color:#666;font-size:12px}
.access-editor{margin-top:12px;border:1px solid #222;border-radius:10px;background:#090909}.access-editor summary{cursor:pointer;padding:12px 14px;color:#bbb;font-size:13px}.access-editor[open] summary{border-bottom:1px solid #202020}.access-form{padding:14px;display:grid;gap:14px}.access-all{display:flex;gap:9px;align-items:center;font-weight:650}.access-all input,.access-tree input{accent-color:#b9a77a}.access-tree{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.access-category{border:1px solid #1e1e1e;border-radius:9px;padding:11px;background:#070707}.access-category>label{display:flex;align-items:center;gap:7px}.access-category small{color:#666;font-weight:400}.access-subs{display:grid;gap:7px;padding:10px 0 0 23px}.access-subs label{display:flex;gap:7px;align-items:center;color:#aaa;font-size:12px}.access-form>button{justify-self:start}

@media(max-width:900px){
  .user-summary{align-items:flex-start;flex-direction:column}.user-actions{width:100%;flex-wrap:wrap}
  .category-admin-head,.subcategory-row{align-items:flex-start;flex-direction:column}.category-rename,.subcategory-rename{width:100%;max-width:none}.mini-actions{width:100%}
}
@media(max-width:760px){
  .gallery-nav{top:68px;padding:0 10px;overflow-x:auto;overflow-y:visible;min-height:44px}.gallery-nav>a,.gallery-nav-category>a{min-height:44px;padding:0 10px;font-size:12px}.gallery-nav-submenu{position:fixed;top:112px;left:10px;right:10px;min-width:0}
  .watermark-layer{top:68px;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(7,1fr)}
  .category-create,.subcategory-create,.category-rename,.subcategory-rename{display:grid;grid-template-columns:1fr}.subcategory-row,.subcategory-create{padding-left:0}.subcategory-rename>span{display:none}
  .access-tree{grid-template-columns:1fr}
}


/* =========================================================
   V4 · Lightbox-Navigation, Klick-auf-1:1, Upload-Bildnamen
   ========================================================= */
.lightbox{position:fixed!important;inset:0!important;z-index:1000!important;display:grid;grid-template-rows:64px minmax(0,1fr);height:100dvh;max-height:100dvh;background:#000;overflow:hidden}
.lightbox[hidden]{display:none!important}
.lightbox-bar{position:relative;z-index:15;min-height:64px;padding:0 154px 0 18px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;border-bottom:1px solid #202020;background:#050505}
.lightbox-meta{min-width:0;display:grid;gap:2px}.lightbox-meta strong,.lightbox-meta small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lightbox-meta small{color:#6f6f6f}
.lightbox-counter{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:12px;color:#777;pointer-events:none}
.lightbox-actions{justify-self:end;display:flex;align-items:center;gap:8px}.lightbox-actions button{background:#0b0b0b;color:#eee;border:1px solid #2b2b2b;padding:9px 12px;min-width:62px}
.lightbox-close-corner{position:fixed;z-index:30;right:14px;top:12px;width:42px;height:40px;padding:0;display:grid;place-items:center;border:1px solid #2c2c2c;background:#090909;color:#fff;border-radius:10px;font-size:28px;font-weight:300;line-height:1}
.lightbox-close-corner:hover{background:#171717;filter:none}
.lightbox-stage{grid-row:2;position:relative;min-width:0;min-height:0;width:100%;height:calc(100dvh - 64px);max-height:calc(100dvh - 64px);background:#000;overflow:hidden;display:grid;place-items:center}
.lightbox-stage.fitted img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;margin:auto;cursor:zoom-in}
.lightbox-stage.scrollable{display:block!important;overflow:auto!important;overscroll-behavior:contain;width:100%!important;height:calc(100dvh - 64px)!important;max-height:calc(100dvh - 64px)!important;scrollbar-gutter:stable both-edges;text-align:left}
.lightbox-stage.scrollable img.actual-size{display:block!important;max-width:none!important;max-height:none!important;width:auto!important;height:auto!important;object-fit:none!important;margin:0!important;cursor:default}
.lightbox-nav{position:fixed;z-index:25;top:50%;transform:translateY(-50%);width:52px;height:70px;padding:0;display:grid;place-items:center;border:1px solid #292929;background:rgba(8,8,8,.78);color:#fff;border-radius:12px;font-size:48px;font-weight:200;line-height:1;backdrop-filter:blur(5px)}
.lightbox-nav:hover{background:rgba(28,28,28,.92);filter:none}.lightbox-prev{left:16px}.lightbox-next{right:16px}
.watermark-layer{top:64px}
.no-scroll{overflow:hidden!important}

.upload-title-editor{margin-top:16px;border:1px solid #222;background:#090909;border-radius:12px;overflow:hidden}
.upload-title-head{padding:13px 14px;border-bottom:1px solid #202020}.upload-title-head>div{display:flex;align-items:baseline;justify-content:space-between;gap:16px}.upload-title-head strong{font-size:13px}.upload-title-head span{font-size:11px;color:#777}
.upload-title-list{display:grid;max-height:360px;overflow:auto}.upload-title-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,1.3fr);gap:12px;align-items:center;padding:9px 12px;border-bottom:1px solid #181818}.upload-title-row:last-child{border-bottom:0}.upload-title-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#777;font-size:12px}.upload-title-row input{width:100%;background:#080808;color:#fff;border:1px solid #282828;border-radius:8px;padding:10px 11px;outline:none}.upload-title-row input:focus{border-color:#777}.upload-title-row input:disabled{opacity:.55}

@media(max-width:760px){
  .lightbox{grid-template-rows:58px minmax(0,1fr)}.lightbox-bar{min-height:58px;padding:0 108px 0 10px}.lightbox-counter{display:none}.lightbox-close-corner{right:8px;top:9px;width:39px;height:38px}.lightbox-stage,.lightbox-stage.scrollable{height:calc(100dvh - 58px)!important;max-height:calc(100dvh - 58px)!important}.watermark-layer{top:58px}.lightbox-nav{width:44px;height:60px;font-size:40px}.lightbox-prev{left:8px}.lightbox-next{right:8px}.lightbox-actions button{min-width:54px;padding:8px 9px}
  .upload-title-head>div{display:grid;gap:4px}.upload-title-row{grid-template-columns:1fr;gap:6px}
}

/* =========================================================
   V5 · Vertikale Galerie-Navigation + Favicon
   ========================================================= */
.gallery-page{--gallery-sidebar-width:196px}
.gallery-page .gallery-sidebar{position:fixed;inset:0 auto 0 0;width:var(--gallery-sidebar-width);z-index:55;background:#070707;border-right:1px solid #1b1b1b;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#2a2a2a transparent}
.gallery-page .sidebar-brand{height:118px;display:grid;place-items:center;padding:15px 18px 12px;border-bottom:1px solid #171717;text-decoration:none}
.gallery-page .sidebar-brand img{display:block;width:118px;height:88px;object-fit:contain;transition:opacity .2s ease,transform .2s ease}
.gallery-page .sidebar-brand:hover img{opacity:.88;transform:scale(1.012)}
.gallery-page .gallery-side-nav{padding:10px 9px 28px;display:grid;gap:3px}
.gallery-page .gallery-side-nav a{text-decoration:none}
.gallery-page .gallery-side-all,.gallery-page .gallery-side-category-link{min-height:42px;display:grid;grid-template-columns:15px minmax(0,1fr) 16px;align-items:center;gap:8px;padding:0 10px;border:1px solid transparent;border-radius:8px;color:#aaa;font-size:13px;transition:background .16s ease,border-color .16s ease,color .16s ease}
.gallery-page .gallery-side-all{grid-template-columns:15px minmax(0,1fr)}
.gallery-page .gallery-side-all:hover,.gallery-page .gallery-side-category-link:hover,.gallery-page .gallery-side-all.active,.gallery-page .gallery-side-category.active>.gallery-side-category-link{background:#10100e;border-color:#25231c;color:#fff}
.gallery-page .gallery-side-all.active,.gallery-page .gallery-side-category.active>.gallery-side-category-link{box-shadow:inset 2px 0 0 #b9a77a}
.gallery-page .side-nav-marker{width:7px;height:7px;border:1px solid #686868;border-radius:2px;display:block}
.gallery-page .gallery-side-all.active .side-nav-marker,.gallery-page .gallery-side-category.active>.gallery-side-category-link .side-nav-marker{border-color:#b9a77a;background:#b9a77a}
.gallery-page .side-nav-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gallery-page .side-nav-chevron{justify-self:end;color:#666;font-size:14px;transition:transform .18s ease}
.gallery-page .gallery-side-category:hover .side-nav-chevron,.gallery-page .gallery-side-category:focus-within .side-nav-chevron,.gallery-page .gallery-side-category.active .side-nav-chevron{transform:rotate(180deg);color:#aaa}
.gallery-page .gallery-side-submenu{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .18s ease,opacity .18s ease}
.gallery-page .gallery-side-submenu::before{content:"";display:block;overflow:hidden}
.gallery-page .gallery-side-category:hover .gallery-side-submenu,.gallery-page .gallery-side-category:focus-within .gallery-side-submenu,.gallery-page .gallery-side-category.active .gallery-side-submenu{grid-template-rows:1fr;opacity:1}
.gallery-page .gallery-side-submenu>a{display:block;margin-left:23px;padding:8px 9px 8px 13px;border-left:1px solid #242424;color:#777;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gallery-page .gallery-side-submenu>a:hover,.gallery-page .gallery-side-submenu>a.active{color:#fff;border-left-color:#b9a77a;background:linear-gradient(90deg,rgba(185,167,122,.08),transparent)}
.gallery-page .gallery-topbar{margin-left:var(--gallery-sidebar-width);width:calc(100% - var(--gallery-sidebar-width));height:72px;justify-content:flex-end;padding:0 clamp(18px,3vw,48px);z-index:50}
.gallery-page .gallery-wrap{width:auto;max-width:1580px;margin:0 0 0 var(--gallery-sidebar-width);padding:44px clamp(18px,2.8vw,44px) 90px}
.gallery-page .compact-heading{margin-bottom:26px}

/* Alte horizontale Navigation in V5 definitiv ausblenden, auch wenn sie durch
   Browser-Cache oder eine ältere Template-Datei kurzzeitig noch vorhanden ist. */
.gallery-page>.gallery-nav{display:none!important}

@media(max-width:860px){
  .gallery-page{--gallery-sidebar-width:168px}
  .gallery-page .sidebar-brand{height:104px;padding:12px}.gallery-page .sidebar-brand img{width:104px;height:78px}
  .gallery-page .gallery-side-nav{padding:8px 7px 24px}.gallery-page .gallery-side-all,.gallery-page .gallery-side-category-link{padding:0 8px;font-size:12px;gap:6px}
  .gallery-page .gallery-side-submenu>a{margin-left:20px;padding-left:10px;font-size:11px}
}

@media(max-width:640px){
  .gallery-page{--gallery-sidebar-width:0px}
  .gallery-page .gallery-sidebar{position:relative;inset:auto;width:100%;height:auto;border-right:0;border-bottom:1px solid #1b1b1b;overflow:visible}
  .gallery-page .sidebar-brand{height:94px}.gallery-page .sidebar-brand img{width:112px;height:76px}
  .gallery-page .gallery-side-nav{display:flex;align-items:flex-start;gap:4px;padding:7px 9px 9px;overflow-x:auto;overflow-y:visible;scrollbar-width:none}.gallery-page .gallery-side-nav::-webkit-scrollbar{display:none}
  .gallery-page .gallery-side-all,.gallery-page .gallery-side-category-link{display:flex;min-height:38px;padding:0 10px;white-space:nowrap}.gallery-page .side-nav-marker{display:none}.gallery-page .side-nav-chevron{margin-left:3px}
  .gallery-page .gallery-side-category{position:relative}.gallery-page .gallery-side-submenu{display:none;position:absolute;left:0;top:calc(100% + 2px);min-width:180px;padding:5px;background:#090909;border:1px solid #242424;border-radius:8px;box-shadow:0 18px 35px rgba(0,0,0,.5);z-index:80;opacity:1}
  .gallery-page .gallery-side-category:hover .gallery-side-submenu,.gallery-page .gallery-side-category:focus-within .gallery-side-submenu,.gallery-page .gallery-side-category.active .gallery-side-submenu{display:grid;grid-template-rows:auto}
  .gallery-page .gallery-side-submenu>a{margin:0;padding:9px 10px;border-left:0;border-radius:6px}.gallery-page .gallery-side-submenu>a:hover,.gallery-page .gallery-side-submenu>a.active{background:#151515}
  .gallery-page .gallery-topbar{margin-left:0;width:100%;height:58px;top:0;padding:0 12px}.gallery-page .gallery-wrap{margin-left:0;width:calc(100% - 24px);padding:30px 0 72px;margin-right:auto;margin-left:auto}
}
.gallery-page .gallery-side-submenu{display:block;max-height:0;overflow:hidden;opacity:0;transition:max-height .22s ease,opacity .18s ease}
.gallery-page .gallery-side-category:hover .gallery-side-submenu,.gallery-page .gallery-side-category:focus-within .gallery-side-submenu,.gallery-page .gallery-side-category.active .gallery-side-submenu{max-height:520px;opacity:1}
@media(max-width:640px){.gallery-page .gallery-side-submenu{max-height:none;overflow:visible;opacity:1}.gallery-page .gallery-side-category:hover .gallery-side-submenu,.gallery-page .gallery-side-category:focus-within .gallery-side-submenu,.gallery-page .gallery-side-category.active .gallery-side-submenu{max-height:none}}

/* =========================================================
   V5.1 · Zuverlässiges Einpassen der Lightbox-Vorschau
   ========================================================= */
.lightbox-stage.fitted{
  overflow:hidden!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.lightbox-stage.fitted #lightbox-image{
  flex:0 0 auto;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  margin:auto!important;
}


/* =========================================================
   V6 · sokimoments gallery · monochrome rebrand
   ========================================================= */

.login-logo{width:min(860px,88vw);max-width:860px;max-height:260px;filter:none}
.brand img{width:210px;height:52px}
.gallery-page{--gallery-sidebar-width:248px}
.gallery-page .gallery-sidebar{background:#050505;border-right:1px solid #181818}
.gallery-page .sidebar-brand{height:108px;padding:14px 18px;border-bottom:1px solid #131313}
.gallery-page .sidebar-brand img{width:210px;height:54px;object-position:left center}
.gallery-page .gallery-side-nav{padding:12px 12px 28px;gap:4px}
.gallery-page .gallery-side-all,.gallery-page .gallery-side-category-link{min-height:40px;border-radius:6px;color:#b9b9b9;background:transparent;border:1px solid transparent;font-size:13px}
.gallery-page .gallery-side-all:hover,.gallery-page .gallery-side-category-link:hover,.gallery-page .gallery-side-all.active,.gallery-page .gallery-side-category.active>.gallery-side-category-link{background:#101010;border-color:#202020;color:#fff;box-shadow:none}
.gallery-page .side-nav-marker{width:6px;height:6px;border-radius:1px;border-color:#5a5a5a}
.gallery-page .gallery-side-all.active .side-nav-marker,.gallery-page .gallery-side-category.active>.gallery-side-category-link .side-nav-marker{border-color:#fff;background:#fff}
.gallery-page .side-nav-chevron{color:#6e6e6e}
.gallery-page .gallery-side-submenu>a{color:#8d8d8d;border-left:1px solid #242424}
.gallery-page .gallery-side-submenu>a:hover,.gallery-page .gallery-side-submenu>a.active{color:#fff;border-left-color:#fff;background:#111}
.gallery-page .gallery-topbar{background:rgba(5,5,5,.95);border-bottom:1px solid #171717}
.gallery-page .gallery-wrap{max-width:1720px}
.eyebrow{color:#8c8c8c}
.topbar nav,.topbar nav a{color:#9a9a9a}
.topbar nav a:hover{color:#fff}
.signed-in{color:#7d7d7d}
.dropzone:hover,.dropzone.is-dragging{border-color:#5b5b5b;background:#101010}
.dropzone small{color:#b2b2b2}
.progress-bar{background:#f0f0f0}
.upload-log-row.success{color:#d5d5d5}
.upload-title-head strong,.panel-head h2{font-weight:600}
@media(max-width:860px){
  .gallery-page{--gallery-sidebar-width:208px}
  .gallery-page .sidebar-brand img{width:176px;height:46px}
}
@media(max-width:640px){
  .gallery-page{--gallery-sidebar-width:0px}
  .gallery-page .sidebar-brand{height:86px}
  .gallery-page .sidebar-brand img{width:180px;height:48px;margin-left:4px}
}


/* =========================================================
   V7 · Mobile navigation repair
   Clean two-row mobile gallery navigation without floating
   dropdowns or overlapping menu layers.
   ========================================================= */
.gallery-mobile-shell{display:none}

@media(max-width:700px){
  .gallery-page{
    --gallery-sidebar-width:0px;
    overflow-x:hidden;
  }

  /* Desktop navigation is completely removed on phones. */
  .gallery-page .gallery-sidebar,
  .gallery-page .gallery-topbar{
    display:none!important;
  }

  .gallery-mobile-shell{
    display:block;
    position:relative;
    z-index:70;
    width:100%;
    background:#050505;
    border-bottom:1px solid #181818;
  }

  .gallery-mobile-header{
    min-height:92px;
    padding:12px 18px 8px;
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    border-bottom:1px solid #151515;
  }

  .gallery-mobile-brand{
    grid-column:2;
    justify-self:center;
    display:block;
    text-decoration:none;
  }

  .gallery-mobile-brand img{
    display:block;
    width:min(208px,54vw);
    height:64px;
    object-fit:contain;
  }

  .gallery-mobile-account{
    grid-column:3;
    justify-self:end;
    display:flex;
    gap:13px;
    align-items:center;
    font-size:12px;
    color:#9a9a9a;
  }

  .gallery-mobile-account a{
    color:inherit;
    text-decoration:none;
    white-space:nowrap;
  }

  .gallery-mobile-nav,
  .gallery-mobile-subnav{
    display:flex;
    align-items:center;
    gap:7px;
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    padding:9px 12px;
  }

  .gallery-mobile-nav::-webkit-scrollbar,
  .gallery-mobile-subnav::-webkit-scrollbar{
    display:none;
  }

  .gallery-mobile-nav{
    border-bottom:1px solid #151515;
  }

  .gallery-mobile-subnav{
    padding-top:7px;
    padding-bottom:8px;
    background:#080808;
    border-bottom:1px solid #151515;
  }

  .gallery-mobile-nav a,
  .gallery-mobile-subnav a{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    min-height:36px;
    padding:0 13px;
    border:1px solid transparent;
    border-radius:8px;
    color:#9b9b9b;
    text-decoration:none;
    white-space:nowrap;
    font-size:13px;
    line-height:1;
    background:transparent;
  }

  .gallery-mobile-nav a.active{
    color:#fff;
    background:#101010;
    border-color:#252525;
  }

  .gallery-mobile-subnav a{
    min-height:31px;
    padding:0 11px;
    border-radius:999px;
    font-size:12px;
    color:#858585;
    border-color:#1b1b1b;
    background:#0b0b0b;
  }

  .gallery-mobile-subnav a.active{
    color:#050505;
    background:#efefef;
    border-color:#efefef;
  }

  .gallery-page .gallery-wrap{
    width:calc(100% - 28px)!important;
    max-width:none;
    margin:0 auto!important;
    padding:34px 0 78px!important;
  }

  .gallery-page .compact-heading{
    align-items:flex-end;
    gap:12px;
    margin-bottom:24px;
  }

  .gallery-page .gallery-heading h1{
    font-size:clamp(34px,12vw,52px);
    line-height:.98;
  }

  .gallery-page .gallery-heading>p{
    flex:0 0 auto;
    font-size:14px;
    padding-bottom:3px;
  }

  .gallery-page .gallery-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  .gallery-page .gallery-card{
    min-width:0;
    min-height:0;
    border-radius:14px;
  }

  .gallery-page .gallery-card img{
    height:clamp(190px,55vw,290px);
  }

  .gallery-page .gallery-card span{
    padding:11px 12px 13px;
    font-size:12px;
  }
}

@media(max-width:420px){
  .gallery-mobile-header{
    min-height:86px;
    padding-left:12px;
    padding-right:12px;
  }

  .gallery-mobile-brand img{
    width:min(186px,50vw);
    height:58px;
  }

  .gallery-mobile-account{
    gap:10px;
    font-size:11px;
  }

  .gallery-mobile-nav,
  .gallery-mobile-subnav{
    padding-left:10px;
    padding-right:10px;
  }

  .gallery-page .gallery-wrap{
    width:calc(100% - 22px)!important;
  }

  .gallery-page .gallery-grid{
    gap:8px;
  }

  .gallery-page .gallery-card img{
    height:54vw;
  }
}
