/* Galerie-Admin – bewusst schlicht, ohne Build-Schritt und ohne Inline-Styles (CSP). */
:root { --fg: #1d1d1f; --muted: #6e6e73; --bg: #f5f5f7; --card: #fff; --accent: #1d1d1f; --danger: #b3261e; --border: #d2d2d7; --focus: #0a66c2; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--fg); background: var(--bg); }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1.25rem; background: var(--card); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.topbar nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.brand { font-weight: 600; }
.page { max-width: 960px; margin: 2rem auto; padding: 0 1.25rem; }
.page.narrow { max-width: 440px; }
h1 { font-size: 1.6rem; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 2rem 0 .5rem; }
label { display: block; margin: 1rem 0 .25rem; font-weight: 500; }
label.checkbox { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
input[type=email], input[type=password], input[type=text] { width: 100%; padding: .65rem .75rem; font-size: 1rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
button, .button { display: inline-block; margin-top: 1.25rem; padding: .65rem 1.1rem; font-size: 1rem; border: 0; border-radius: 8px; background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; }
button.secondary { background: #e8e8ed; color: var(--fg); margin-top: .5rem; }
button.danger { background: var(--danger); }
button.link { background: none; color: inherit; padding: 0; margin: 0; text-decoration: underline; }
form.inline { display: inline; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.error { color: var(--danger); margin: .35rem 0 0; }
.notice { background: #e8f2ff; padding: .75rem 1rem; border-radius: 8px; }
.warning { background: #fff4e5; padding: .75rem 1rem; border-radius: 8px; }
.qr { background: #fff; display: inline-block; padding: .5rem; margin: 1rem 0; border-radius: 8px; }
.secret, .codes code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; }
.codes { columns: 2; padding-left: 1.5rem; }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { text-align: left; padding: .5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.heading-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.heading-row .button { margin-top: 0; }
select { width: 100%; padding: .65rem .75rem; font-size: 1rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
input[type=file] { display: block; padding: .5rem 0; }
.hint, .meta { color: var(--muted); font-size: .9rem; }
.photo-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.photo-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: .5rem; }
.photo-card img, .photo-card .placeholder { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: #e8e8ed; border-radius: 4px; }
.photo-card .placeholder { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.photo-card p { margin: .35rem 0; overflow-wrap: anywhere; }
.photo-card .filename { font-weight: 500; }
