/* ImgBox – Hoshibi-Design
   Neutrales Zink wie Hoshibi Mail und Dashboard, eigener gedämpfter Bernstein-Akzent,
   Outfit + JetBrains Mono für Zahlen, keine Glows, Masonry-Galerie, Druck-Feedback. */
:root {
  --bg: #0e0f11;
  --panel: #141619;
  --panel-2: #181a1e;
  --field: #1b1d22;
  --field-hover: #20232a;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #eceef1;
  --text-2: #a3a8b1;
  --text-3: #6f7580;
  --accent: #d6a04f;
  --accent-hover: #e0ae60;
  --accent-ink: #1a1205;
  --accent-soft: rgba(214, 160, 79, 0.13);
  --accent-text: #e6bf7f;
  --ok: #46a883;
  --ok-soft: rgba(70, 168, 131, 0.13);
  --bad: #d0645e;
  --bad-soft: rgba(208, 100, 94, 0.13);
  --r: 16px;
  --r-sm: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 15px/1.55 Outfit, 'Segoe UI', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--text); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .86em; color: var(--text-2); background: var(--field); padding: .08em .4em; border-radius: 6px; }
.muted { color: var(--text-3); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.ic { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); }

.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 34px 28px 56px; flex: 1; }
.container-bare { max-width: none; padding: 0; }

/* ---------- Kopfzeile ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(14, 15, 17, 0.94); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1400px; margin: 0 auto; padding: 0 28px; height: 62px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 16.5px; letter-spacing: -0.02em; flex: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 26px; height: 26px; }
.search { position: relative; flex: 1; max-width: 420px; }
.search .ic { z-index: 1; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 17px; height: 17px; pointer-events: none; }
.search input[type=search] { padding-left: 38px; height: 38px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: 14px; transition: background-color .2s var(--ease), color .2s var(--ease); }
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-link.active { color: var(--text); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.nav-link.active .ic { color: var(--accent); }
.nav-upload { margin-left: 8px; }

.avatar {
  position: relative; width: 36px; height: 36px; border-radius: 50%; margin-left: 8px; cursor: pointer; user-select: none;
  display: grid; place-items: center; background: #3d4a44; color: #fff; font-weight: 600; font-size: 14px;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgba(255, 255, 255, 0.14); transition: box-shadow .2s var(--ease);
}
.avatar:hover, .avatar[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.avatar-menu {
  position: absolute; right: -4px; top: calc(100% + 12px); width: 260px; padding: 6px; border-radius: 16px;
  background: var(--panel-2); border: 1px solid var(--line-strong); box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.75);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease); cursor: default; text-align: left;
}
.avatar-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.avatar-menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.avatar-menu-head strong { display: block; color: var(--text); font-weight: 600; }
.avatar-menu-head span { color: var(--text-3); font-size: 13px; font-weight: 400; }
.avatar-menu a, .avatar-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: none;
  color: var(--text-2); font: 500 14px Outfit, system-ui, sans-serif; cursor: pointer; text-align: left;
}
.avatar-menu a:hover, .avatar-menu button:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.avatar-menu form { margin: 0; }

/* ---------- Buttons, Felder, Kleinkram ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 15px;
  border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--field); color: var(--text);
  font: 500 14px Outfit, system-ui, sans-serif; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.btn:hover { background: var(--field-hover); border-color: rgba(255, 255, 255, 0.2); color: var(--text); }
.btn:active { transform: scale(0.97); }
.btn .ic { width: 16px; height: 16px; }
.btn-sm { height: 34px; padding: 0 11px; font-size: 13.5px; border-radius: 9px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: transparent; }
.btn-danger { background: var(--bad-soft); border-color: rgba(208, 100, 94, 0.35); color: #eba19c; }
.btn-danger:hover { background: var(--bad); border-color: var(--bad); color: #1a0907; }
.btn-block { width: 100%; height: 44px; }
.btn.copied { border-color: rgba(70, 168, 131, 0.5); color: #8fd3b6; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-row form { margin: 0; }

input:not([type=checkbox]):not([type=file]), select, textarea {
  width: 100%; height: 42px; padding: 0 13px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: var(--field); color: var(--text); font: 15px Outfit, system-ui, sans-serif;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
textarea { height: auto; padding: 10px 13px; font: 13px/1.5 var(--mono); resize: vertical; }
input:hover, select:hover, textarea:hover { background: var(--field-hover); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214, 160, 79, 0.16); }
input::placeholder { color: var(--text-3); }
input[type=search]::-webkit-search-cancel-button { filter: invert(.6); }
.field { display: grid; gap: 7px; }
.field > span { font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.hint { color: var(--text-3); font-size: 12.5px; }
.form-error { color: #eba19c; font-size: 13.5px; }

.alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; font-size: 14px; border: 1px solid; }
.alert-ok { background: var(--ok-soft); border-color: rgba(70, 168, 131, 0.3); color: #9fd6bf; }
.alert-error { background: var(--bad-soft); border-color: rgba(208, 100, 94, 0.3); color: #ecaaa6; }

.vis { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.vis .ic { width: 13px; height: 13px; }
.vis-public { background: var(--accent-soft); color: var(--accent-text); }
.vis-private { background: rgba(255, 255, 255, 0.06); color: var(--text-2); }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: rgba(255,255,255,.06); color: var(--text-2); }
.pill-accent { background: var(--accent-soft); color: var(--accent-text); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4a4f57; margin-right: 8px; vertical-align: middle; }
.dot-on { background: var(--ok); }
.count { color: var(--text-3); font-weight: 400; font-size: .8em; margin-left: 6px; }

.seg { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.seg a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13.5px; font-weight: 500; padding: 7px 12px; border-radius: 9px; transition: background-color .2s var(--ease), color .2s var(--ease); }
.seg a:hover { color: var(--text); }
.seg a.active { background: var(--field-hover); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.seg .num { color: var(--text-3); font-size: 12px; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 30px; letter-spacing: -0.03em; }
.page-head .muted { margin-top: 6px; }
.page-head-tight { margin-bottom: 20px; }

/* ---------- Entdecken: Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 18px 0 44px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--text-3); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; font-weight: 500; }
.hero h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -0.04em; margin: 14px 0 18px; }
.hero h1 .soft { color: var(--text-3); }
.lead { color: var(--text-2); font-size: 16.5px; max-width: 52ch; line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; margin: 34px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-stats div { display: grid; gap: 2px; }
.hero-stats dt { color: var(--text-3); font-size: 12.5px; }
.hero-stats dd { margin: 0; font-size: 24px; font-weight: 500; }
.hero-mosaic { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 380px; }
.mosaic-item { position: relative; border-radius: 18px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); animation: rise .7s var(--ease) both; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.mosaic-item:hover img { transform: scale(1.04); }
.mosaic-item.m0 { grid-row: 1 / 3; }
.mosaic-item.m1 { animation-delay: .08s; }
.mosaic-item.m2 { animation-delay: .16s; }
.mosaic-empty { display: grid; place-items: center; color: var(--text-3); background: linear-gradient(150deg, #181a1e, #121417); }
.mosaic-empty .ic { width: 30px; height: 30px; opacity: .6; }

.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { font-size: 20px; }

/* ---------- Galerie (Masonry) ---------- */
.masonry { columns: 4 260px; column-gap: 14px; }
.tile {
  position: relative; margin: 0 0 14px; break-inside: avoid; border-radius: 14px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); animation: rise .5s var(--ease) both;
  animation-delay: calc(min(var(--i, 0), 16) * 35ms);
}
.tile-link { display: block; height: 100%; }
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); background: var(--panel-2); }
.tile:hover img { transform: scale(1.03); }
.tile-cap { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 10px; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 11, 13, 0.55) 0%, transparent 28%, transparent 52%, rgba(10, 11, 13, 0.82) 100%);
  opacity: 0; transition: opacity .25s var(--ease); }
.tile:hover .tile-cap, .tile:focus-within .tile-cap { opacity: 1; }
.tile-top { display: flex; justify-content: space-between; align-items: center; }
.tile-top .vis { backdrop-filter: none; background: rgba(14, 15, 17, 0.75); }
.tile-top .vis-public { color: var(--accent-text); }
.tile-copy { pointer-events: auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line-strong); background: rgba(14, 15, 17, 0.75); color: var(--text); cursor: pointer; transition: background-color .2s var(--ease), transform .15s var(--ease); }
.tile-copy:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tile-copy:active { transform: scale(0.94); }
.tile-copy .ic { width: 16px; height: 16px; }
.tile-copy.copied { background: var(--ok); color: #08140f; border-color: var(--ok); }
.tile-title { font-weight: 500; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-meta { display: flex; gap: 12px; color: var(--text-2); font-size: 12.5px; margin-top: 2px; }
.tile-meta span { display: inline-flex; align-items: center; gap: 4px; }
.tile-meta .ic { width: 14px; height: 14px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 28px; }
.pagination > :last-child { justify-self: end; }

.empty { display: grid; justify-items: start; gap: 10px; max-width: 46ch; padding: 40px 0; }
.empty-art { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); color: var(--text-3); margin-bottom: 6px; }
.empty-art .ic { width: 24px; height: 24px; }
.empty h3 { font-size: 19px; }
.empty p { color: var(--text-2); margin-bottom: 8px; }
.empty-sm { padding: 18px 0; }

/* ---------- Einzelbild ---------- */
.image-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.stage {
  min-height: 60vh; max-height: calc(100dvh - 140px); display: grid; place-items: center; padding: 20px; border-radius: 20px;
  background: #0b0c0e; border: 1px solid var(--line); position: sticky; top: 84px; overflow: hidden;
  background-image: linear-gradient(45deg, #111316 25%, transparent 25%), linear-gradient(-45deg, #111316 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #111316 75%), linear-gradient(-45deg, transparent 75%, #111316 75%);
  background-size: 22px 22px; background-position: 0 0, 0 11px, 11px -11px, -11px 0;
}
.stage img { max-width: 100%; max-height: calc(100dvh - 180px); width: auto; height: auto; border-radius: 10px; display: block; animation: rise .5s var(--ease) both; }
.image-side { display: grid; gap: 24px; }
.image-head h1 { font-size: 24px; line-height: 1.2; margin: 12px 0 6px; word-break: break-word; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.facts div { background: var(--panel); padding: 12px 14px; }
.facts dt { color: var(--text-3); font-size: 12px; }
.facts dd { margin: 2px 0 0; font-size: 15px; }
.side-sec { display: grid; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.side-sec h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--text-3); font-weight: 600; }
.link-box { display: flex; gap: 8px; }
.link-box input { font: 13px var(--mono); color: var(--text-2); }
.qr-row { display: flex; gap: 16px; align-items: center; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.qr-img { border-radius: 10px; background: #fff; padding: 6px; flex: none; }
.qr-row strong { font-weight: 500; }
.qr-row .muted { font-size: 13px; margin-top: 2px; }
.more-links summary { cursor: pointer; color: var(--text-2); font-size: 14px; width: max-content; }
.more-links summary:hover { color: var(--text); }
.more-links[open] { display: grid; gap: 12px; }
.more-links[open] summary { margin-bottom: 4px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 14px; }
.back-link:hover { color: var(--text); }

/* ---------- Upload ---------- */
.upload-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.dropzone {
  display: grid; place-items: center; min-height: 340px; border-radius: 22px; cursor: pointer; text-align: center;
  border: 1.5px dashed rgba(255, 255, 255, 0.16); background: var(--panel);
  transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease);
}
.dropzone:hover { border-color: rgba(214, 160, 79, 0.5); background: #16181b; }
.dropzone.dragging { border-color: var(--accent); background: rgba(214, 160, 79, 0.06); transform: scale(1.01); }
.dropzone:active { transform: scale(0.995); }
.dropzone-inner { display: grid; justify-items: center; gap: 6px; padding: 24px; }
.drop-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 10px; transition: transform .3s var(--ease); }
.dropzone:hover .drop-icon, .dropzone.dragging .drop-icon { transform: translateY(-4px); }
.drop-icon .ic { width: 28px; height: 28px; }
.drop-title { font-size: 19px; font-weight: 600; }
.progress { height: 4px; border-radius: 999px; background: var(--field); overflow: hidden; margin-top: 18px; }
.progress-bar { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .6s var(--ease); }
.upload-status { color: var(--text-2); font-size: 14px; margin-top: 12px; min-height: 1em; }
.upload-results { display: grid; gap: 10px; margin-top: 16px; }
.upload-result { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); animation: rise .45s var(--ease) both; }
.upload-result img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; }
.upload-result-info { display: grid; gap: 8px; min-width: 0; }
.upload-result-info strong { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-aside { position: sticky; top: 92px; padding: 22px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); display: grid; gap: 16px; }
.upload-aside h2 { font-size: 16px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 36px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--field); border: 1px solid var(--line-strong); color: var(--accent-text); font: 500 12px var(--mono); }
.steps b { color: var(--text); font-weight: 500; }

/* ---------- Konto, Admin ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.stat-strip div { padding: 18px 20px; }
.stat-strip div + div { border-left: 1px solid var(--line); }
.stat-strip dt { color: var(--text-3); font-size: 12.5px; }
.stat-strip dd { margin: 4px 0 0; font-size: 26px; font-weight: 500; }
.stat-strip small { font-size: 13px; color: var(--text-3); }
.panel { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 22px 24px; display: grid; gap: 16px; align-content: start; }
.panel h2 { font-size: 17px; }
.panel-flush { padding: 0; overflow-x: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 980px; }
.admin-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--text-3); font-weight: 600; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding: 12px 14px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(255, 255, 255, 0.015); }
.table .r { text-align: right; }
.row-disabled td { opacity: .5; }
.thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 9px; display: block; }
.cell-title { color: var(--text); font-weight: 500; display: block; max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-sub { font-size: 12.5px; margin-top: 2px; max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-actions { display: inline-flex; gap: 6px; }
.cell-actions form { margin: 0; }
.cell-actions .btn { width: 34px; padding: 0; }
.bar-col { width: 30%; }
.bar { display: block; height: 6px; border-radius: 999px; background: var(--field); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.filter-bar { display: grid; grid-template-columns: minmax(0, 1fr) 220px auto auto; gap: 10px; margin-bottom: 18px; }
.row-actions { position: relative; display: inline-block; }
.row-actions summary { list-style: none; }
.row-actions summary::-webkit-details-marker { display: none; }
.row-actions-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; width: 260px; padding: 14px; display: grid; gap: 12px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line-strong); box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.75); text-align: left; }
.row-actions-menu form { margin: 0; display: grid; gap: 8px; }

/* ---------- Profilbilder ---------- */
.avatar.has-photo { background: var(--panel-2); }
.avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.page-head-profile { align-items: center; }
.profile-id { display: flex; gap: 22px; align-items: center; }
.profile-photo { position: relative; width: 92px; height: 92px; border-radius: 50%; overflow: hidden; flex: none; background: #3d4a44; display: grid; place-items: center; color: #fff; font-size: 34px; font-weight: 600; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line-strong); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-photo.busy::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(214,160,79,.25); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.profile-photo.busy img, .profile-photo.busy span { opacity: .45; }
@keyframes spin { to { transform: rotate(360deg); } }
.profile-actions { margin-top: 12px; }
#avatar-error { margin-top: 8px; }
.mini-av { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none; display: inline-grid; place-items: center; background: #3d4a44; color: #fff; font-size: 12.5px; font-weight: 600; }
.mini-av img { width: 100%; height: 100%; object-fit: cover; }
.owner { display: flex; align-items: center; gap: 10px; }
.user-cell { display: flex; align-items: center; gap: 12px; }
.user-cell b { color: var(--text); font-weight: 500; }

/* ---------- Login, Fehler ---------- */
.login-page { display: grid; grid-template-columns: 44vw 1fr; min-height: 100dvh; }
.login-brand { padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, #15171b 0%, #101215 55%, #1e1912 100%); border-right: 1px solid var(--line); }
.login-mark { width: 52px; height: 52px; }
.login-copy h1 { font-size: clamp(36px, 3.6vw, 50px); letter-spacing: -0.035em; line-height: 1.02; }
.login-copy p { color: var(--text-2); margin-top: 12px; font-size: 16px; line-height: 1.55; }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: 6vh 7vw; }
.login-form { width: 100%; max-width: 400px; display: grid; gap: 16px; }
.login-form h2 { font-size: 28px; letter-spacing: -0.03em; }
.login-form > .muted { margin-top: -10px; }
.login-alt { font-size: 13.5px; color: var(--text-3); }
.login-alt:hover { color: var(--text); }
.login-foot { color: var(--text-3); font-size: 12.5px; margin-top: 40px; }
.error-page { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: center; max-width: 760px; padding: 9vh 0; }
.error-code { font-size: clamp(72px, 12vw, 132px); font-weight: 500; color: var(--text-3); line-height: 1; letter-spacing: -0.06em; }
.error-page h1 { font-size: 28px; }
.error-page .muted { margin: 8px 0 22px; }

/* ---------- Fuß ---------- */
.footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 18px 28px 26px; display: flex; justify-content: space-between; gap: 16px; color: var(--text-3); font-size: 12.5px; flex-wrap: wrap; }
.footer strong { color: var(--text-2); font-weight: 500; }

@media (hover: none) { .tile-cap { opacity: 1; background: linear-gradient(180deg, rgba(10,11,13,.45) 0%, transparent 30%, transparent 55%, rgba(10,11,13,.8) 100%); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .image-layout { grid-template-columns: 1fr; }
  .stage { position: static; min-height: 0; }
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .hero-mosaic { height: 260px; }
  .upload-layout { grid-template-columns: 1fr; }
  .upload-aside { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .search { display: none; }
}
@media (max-width: 767px) {
  .container { padding: 22px 16px 40px; }
  .topbar-inner { padding: 0 16px; gap: 8px; }
  .brand span { display: none; }
  .nav-link span, .nav-upload span { display: none; }
  .nav-link { padding: 8px 10px; }
  .nav-upload { width: 38px; padding: 0; margin-left: 4px; }
  .hero h1 { font-size: 36px; }
  .hero-stats { gap: 22px; }
  .masonry { columns: 2 150px; column-gap: 10px; }
  .tile { margin-bottom: 10px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip div:nth-child(3) { border-left: 0; }
  .stat-strip div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .filter-bar { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-brand { padding: 26px 20px; flex-direction: row; align-items: center; gap: 14px; justify-content: flex-start; }
  .login-mark { width: 38px; height: 38px; }
  .login-copy h1 { font-size: 26px; }
  .login-copy p { display: none; }
  .login-panel { padding: 28px 20px 40px; justify-content: flex-start; }
  .error-page { grid-template-columns: 1fr; gap: 10px; }
  .profile-id { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-inner { padding: 16px; }
  .link-box { flex-direction: column; }
}
