/* Dunkles Kino-Design. Lokale Schriften und unveränderte Datenzuordnung. */
:root{color-scheme:dark;--bg:#0e1016;--paper:#181b24;--ink:#f2f2f4;--muted:#a2a8b7;--line:#2d3240;--green:#e8b66c;--accent:#e8b66c;--red:#ef8d8d;font-family:"Segoe UI",Arial,Helvetica,sans-serif;background:var(--bg);color:var(--ink)}
body{min-height:100vh;background:radial-gradient(ellipse at 50% -160px,#35251c80,transparent 600px),var(--bg)}h1,h2,h3,h4,.auth h1,.cover .monogram,.empty-icon{font-family:"Segoe UI",Arial,Helvetica,sans-serif}h1,h2,h3,h4{font-weight:650;letter-spacing:-.035em}h1{font-size:clamp(28px,3vw,40px);line-height:1.15;margin:10px 0}h2{font-size:25px}h3{font-size:16px;letter-spacing:-.015em}.auth h1{font-size:clamp(39px,5vw,58px);font-weight:650;letter-spacing:-.045em}
button{transition:background .16s,border-color .16s,transform .16s}.primary{background:var(--accent);color:#201810;border-color:var(--accent)}.primary:hover:not(:disabled){background:#f4ca8a;box-shadow:0 3px 18px #e8b66c20}.secondary{background:var(--paper);border-color:var(--line);color:var(--ink)}.secondary:hover:not(:disabled){background:#242936;border-color:#555b69}.quiet{color:#bec4d0}.quiet:hover:not(:disabled){background:#252a35;color:white}.danger{color:var(--red);border:1px solid #70383f;background:#3b202640}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:4px}a:hover{color:var(--accent)}
.topbar{max-width:1480px;padding:22px 40px}.brand{gap:13px;font-size:18px;font-weight:700;letter-spacing:-.025em}.brand small{font-size:10px;letter-spacing:.16em;text-transform:uppercase;margin-top:5px}.brand-mark{display:block;flex:none;height:44px;width:44px;border-radius:12px;background:none}.owner-avatar{display:block;flex:none;width:28px;height:28px;object-fit:cover;border-radius:9px;border:1px solid #ffffff14}#username{display:flex;align-items:center;gap:8px;font-size:12px;color:#c2c7d1;margin-right:12px}#username .owner-avatar{height:25px;width:25px;border-radius:50%}main{max-width:1480px;padding:22px 40px 42px}.collection-head{gap:25px;margin:27px 0 25px}.collection-head p{font-size:13px}#collection-title{display:flex;align-items:center;gap:13px}#collection-title .owner-avatar{width:42px;height:42px;border-radius:13px;box-shadow:0 2px 12px #0004}.head-actions{font-size:13px}.eyebrow{font-size:10px;letter-spacing:.16em}
.toolbar{padding:15px 0}.segments{gap:4px;border-radius:12px;background:#080a10;border:1px solid #252936;padding:4px}.segments button{min-width:115px;display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:9px 14px;font-size:13px;border:1px solid transparent;color:var(--muted);font-weight:600}.segments button:hover{background:#191d27}.segments button[aria-pressed=true]{background:#292923;color:#f6d5a3;border-color:#77603e;box-shadow:none}.segments .owner-avatar{width:27px;height:27px;border-radius:8px}.owner-tab-label{text-align:left;line-height:1.2}.owner-tab-label small{display:block;font-size:9px;margin-top:3px;color:var(--muted);font-weight:400;letter-spacing:0}.utilities{font-size:12px}
input,textarea,select{background:#191d26;border-color:#343948;color:var(--ink)}input::placeholder,textarea::placeholder{color:#9199aa}input:focus,textarea:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 2px #e8b66c1c}label{color:#c9cdd5}.filters{margin:20px 0 14px}.filters select{font-size:12px;padding:12px 10px;min-height:44px}#view{border:1px solid var(--line);font-size:12px}.results-line{font-size:11px;margin-bottom:23px}#count{color:#d6d9e1;font-variant-numeric:tabular-nums}
/* Jede Karte beginnt oben. Titelhöhe beeinflusst die Coverposition nicht. */
.grid{gap:27px 20px;align-items:start}.grid .card{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;align-self:start;width:100%;min-width:0;text-align:left}.cover{width:100%;flex:none;aspect-ratio:2/3;border-radius:9px;background:radial-gradient(ellipse at 30% 15%,#5d4930,transparent 70%),linear-gradient(155deg,#302c2a,#151821);border:1px solid #ffffff12;box-shadow:0 7px 20px #0004;transition:transform .18s,border-color .18s,box-shadow .18s}.card:nth-child(3n+2) .cover{background:radial-gradient(ellipse at 25% 10%,#333d53,transparent 75%),linear-gradient(160deg,#262c3a,#13151c)}.card:nth-child(3n) .cover{background:radial-gradient(ellipse at 30% 10%,#4a343d,transparent 75%),linear-gradient(160deg,#332932,#14151c)}.card:hover .cover{transform:translateY(-3px);border-color:#e8b66c65;box-shadow:0 10px 28px #0008}.cover .monogram{font-size:36px;line-height:1;font-weight:300;color:#ffffff80;letter-spacing:-.045em;z-index:1;transform:translateY(9px)}.cover>.placeholder-reel{position:absolute;top:20%;width:37px;height:37px;opacity:.28;border-radius:10px}.cover-format{position:absolute;right:9px;top:9px;font-size:8px;font-weight:650;letter-spacing:.07em;text-transform:uppercase;color:#e7d4b9;background:#0e101677;border:1px solid #ffffff10;padding:4px 6px;border-radius:4px}.owner-badge{display:flex;align-items:center;gap:5px;background:#0c0f15e6;border:1px solid #ffffff18;border-radius:6px;padding:4px 7px 4px 4px;font-size:10px;font-weight:500;color:#eeeef1;z-index:2;max-width:calc(100% - 16px)}.cover .owner-badge .owner-avatar{height:18px;width:18px;border-radius:4px}.card-title{font-size:13px;font-weight:600;line-height:1.4;letter-spacing:0;color:#eeeef1}.card-meta{font-size:10px;line-height:1.5}.loan{color:var(--accent)}.list .card{grid-template-columns:50px 1fr 180px;gap:8px 18px;padding:13px 0}.list .cover{width:50px;grid-row:1/3;border-radius:5px}.list .monogram{font-size:16px;transform:none}.list .placeholder-reel,.list .cover-format{display:none}.list .card-meta{grid-column:2}.list .loan{grid-column:3;grid-row:1/3}.empty{padding:60px 20px;background:#151820;border-color:#45404a}.empty-icon{height:auto;width:auto;background:none}
.notice{background:#22232a;border:1px solid #4b4031;color:#d9c5a7}.local-notice{font-size:10px;padding:8px 12px;letter-spacing:.01em;border-color:#2d3039;background:#171a22;color:#959cac}.check input{accent-color:var(--accent)}dialog{border-color:#44434a;background:#14171f;box-shadow:0 20px 90px #000a}dialog::backdrop{background:#05070dc9;backdrop-filter:blur(6px)}.detail dl{font-size:12px}.detail p{font-size:13px}th{background:#222733}video{background:#080a10}footer{max-width:1480px;padding:20px 40px 27px;font-size:10px}footer small{font-size:9px;color:#8a92a3}#toast{background:#f1d0a0;color:#211a12;border:1px solid #e8b66c;box-shadow:0 8px 25px #0006}.error{background:#612e38!important;color:#ffebef!important;border-color:#9e5664!important}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}.card:hover .cover{transform:none}}
@media(max-width:1150px){.segments button{min-width:98px;padding:9px 10px}}
@media(max-width:850px){.topbar{padding:18px 25px}main{padding:18px 25px 30px}footer{padding:20px 25px}.collection-head{gap:20px}.collection-head p{font-size:12px}}
@media(max-width:550px){.topbar{padding:16px 18px;gap:12px}.brand{font-size:14px;gap:9px}.brand-mark{width:35px;height:35px;border-radius:9px}.brand small{font-size:8px;letter-spacing:.13em}#username{font-size:10px;margin:0 7px 2px 0;gap:5px;justify-content:flex-end}#username .owner-avatar{width:20px;height:20px}#session button{font-size:10px;padding:5px 7px}main{padding:15px 18px 30px}h1{font-size:28px}#collection-title{gap:10px}#collection-title .owner-avatar{width:32px;height:32px;border-radius:10px}.collection-head{gap:18px;margin:23px 0 20px}.eyebrow{font-size:8px;letter-spacing:.14em}.head-actions button{font-size:11px;padding:11px 8px}.segments button{min-width:0;font-size:12px;padding:8px;gap:7px;justify-content:center}.segments .owner-avatar{width:24px;height:24px}.toolbar{gap:11px;padding:12px 0}.utilities{font-size:10px}.filters{gap:8px;margin-top:15px}.filters select{font-size:11px;padding:11px 7px}.grid{gap:22px 11px}.card-title{font-size:11px;line-height:1.45}.card-meta{font-size:9px}.cover{border-radius:6px}.cover .monogram{font-size:28px}.cover>.placeholder-reel{width:28px;height:28px;top:17%}.cover-format{font-size:6px;top:5px;right:5px;padding:3px 4px}.owner-badge{font-size:8px;padding:3px 5px 3px 3px;gap:4px}.cover .owner-badge .owner-avatar{width:14px;height:14px;border-radius:3px}.results-line{font-size:10px;margin-bottom:18px}.auth h1{font-size:39px}.modal-head h2{font-size:21px}.list .card{grid-template-columns:42px 1fr;gap:7px 12px}.list .cover{width:42px;grid-row:1/3}.list .card-meta{grid-column:2}.list .loan{grid-column:2;grid-row:auto}footer{padding:20px 18px}.local-notice{font-size:9px;padding:8px 10px}}
/* Intrinsic form widths and long labels must not enlarge the mobile viewport. */
.topbar,.brand,#brand-title,#session,.collection-head>div,.toolbar,.utilities,.filters,.filters>label,.form-grid>*{min-width:0}
input,select,textarea{min-width:0;max-width:100%}
.form-grid,.mapping{grid-template-columns:repeat(2,minmax(0,1fr))}
.metadata-results{grid-template-columns:repeat(3,minmax(0,1fr))}
.metadata-results button,.notice,.block,.modal-head h2,footer{overflow-wrap:anywhere}
.metadata-results button{min-width:0;max-width:100%}
.detail>*{min-width:0}.detail dl{grid-template-columns:110px minmax(0,1fr)}
@media(max-width:550px){
  .topbar{flex-wrap:wrap;gap:8px}.brand{flex:1 1 100%;max-width:100%}
  #brand-title{overflow-wrap:anywhere}#session{flex:1 1 100%;max-width:none;gap:4px}
  #username{width:auto;max-width:100%;overflow-wrap:anywhere;margin-right:auto}
  .form-grid,.mapping{grid-template-columns:minmax(0,1fr)}
  .metadata-results{grid-template-columns:repeat(2,minmax(0,1fr))}
  .detail dl{grid-template-columns:85px minmax(0,1fr)}
  .utilities{max-width:100%;flex-wrap:wrap}.head-actions button{min-width:0}
  .filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .filters .search{grid-column:1/-1;min-width:0}
  .filters>label:not(.search){min-width:0;max-width:100%}.filters #view{width:100%}
  input,select,textarea,.filters select,label input,label select,label textarea{font-size:16px}
  dialog{max-width:calc(100vw - 16px);width:calc(100vw - 16px);padding:16px;margin:auto}
  .modal-head{flex-wrap:wrap}.modal-head h2{flex:1 1 160px}
  .row input{min-width:0;flex-basis:100%}.row button{max-width:100%;white-space:normal}
  .actions>button,.actions>a{max-width:100%;white-space:normal}
}
