@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,300..800;1,300..700&display=swap');

/* ---------- Tokens (Glow Design-System) ---------- */
:root {
  --bg:#0B0B0C; --bg-2:#141416;
  --surface:rgba(22,22,25,.94);
  --card:linear-gradient(170deg,#2B2C30,#18191C 55%,#0D0D0F);
  --ink:#0B0B0C;
  --text:#fff; --text-2:rgba(255,255,255,.82); --text-3:rgba(255,255,255,.65); --text-4:rgba(255,255,255,.55);
  --line:rgba(255,255,255,.12); --line-soft:rgba(255,255,255,.10);
  --accent:#59B233; --accent-rgb:89,178,51; --accent-ink:#07130A;
  --glow-warm:0 0 36px -4px rgba(255,236,214,.20), 0 14px 34px -14px rgba(0,0,0,.70);
  --shadow-card:0 14px 34px -18px rgba(0,0,0,.28);
  --r-pill:999px; --r-panel:28px; --r-card:20px; --r-tile:16px; --r-sm:12px; --r-photo:6px;
  --font:"Instrument Sans", system-ui, -apple-system, sans-serif;
  --gap:6px;
}

*,*::before,*::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; min-height:100dvh; background:var(--bg); color:var(--text); font:400 16px/1.55 var(--font); -webkit-font-smoothing:antialiased; }
h1,h2 { margin:0; font-weight:700; line-height:1; }
h1 { font-size:clamp(40px,6vw,72px); letter-spacing:-.04em; }
h1 em,h2 em { font-style:italic; font-weight:300; color:var(--accent); }
p { color:var(--text-3); margin:0; }
button { font:inherit; }
[hidden] { display:none !important; }

.wrap { max-width:1600px; margin:0 auto; padding:0 40px; }
@media (max-width:640px){ .wrap{ padding:0 12px; } }

svg.i { fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

/* ---------- Kopfleiste ---------- */
.topbar { position:sticky; top:12px; z-index:20; margin:12px auto 0; }
.glass-bar { display:flex; align-items:center; gap:16px; height:60px; padding:0 8px 0 24px;
  border-radius:var(--r-pill); background:var(--surface); border:1px solid var(--line);
  backdrop-filter:blur(18px) saturate(1.4); -webkit-backdrop-filter:blur(18px) saturate(1.4);
  box-shadow:var(--glow-warm); }
.brand { font:800 15px/1 var(--font); letter-spacing:.06em; color:#fff; text-decoration:none; white-space:nowrap; }
.brand span { color:var(--accent); }
.bar-title { flex:1; min-width:0; color:var(--text-2); font:500 13.5px/1.2 var(--font);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* Pill in Pill: Bar 60 hoch, Pill 44 hoch → 8px rundum */
.bar-pill { display:inline-flex; align-items:center; gap:8px; height:44px; padding:0 18px; border-radius:var(--r-pill);
  background:rgba(255,255,255,.06); color:var(--text-2); font:600 13.5px/1 var(--font); white-space:nowrap; }

/* ---------- Kopf der Galerie ---------- */
.hero { padding-top:72px; padding-bottom:40px;
  background:radial-gradient(60% 80% at 50% 0%, rgba(255,236,214,.10), transparent 70%); }
.hero h1 { max-width:16ch; }
.meta { display:flex; flex-wrap:wrap; gap:8px; margin-top:22px; }
.chip { display:inline-flex; align-items:center; gap:7px; height:30px; padding:0 12px; border-radius:var(--r-pill);
  border:1px solid var(--line); color:var(--text-3); font:500 13px/1 var(--font); }
.chip svg { width:14px; height:14px; }
.status { display:inline-flex; align-items:center; gap:7px; height:30px; padding:0 12px 0 11px; border-radius:var(--r-pill);
  background:var(--ink); color:var(--accent); box-shadow:inset 0 0 0 1px rgba(255,255,255,.85);
  font:800 10.5px/1 var(--font); letter-spacing:.08em; text-transform:uppercase; }
.status::before { content:""; width:5px; height:5px; border-radius:50%; background:var(--accent); box-shadow:0 0 8px var(--accent); }
@media (max-width:640px){ .hero{ padding-top:48px; padding-bottom:28px; } }

/* ---------- Bilder-Raster (Justified Rows, Maße per JS) ---------- */
.grid { position:relative; margin-bottom:96px; }
.tile { position:absolute; display:block; padding:0; border:0; overflow:hidden; cursor:zoom-in;
  border-radius:var(--r-photo); background:#151517; }
.tile img { width:100%; height:100%; object-fit:cover; display:block; opacity:0; transition:opacity .35s ease, transform .5s ease; }
.tile img.loaded { opacity:1; }
.tile:hover img { transform:scale(1.02); }
.tile:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

/* ---------- Vollbild ---------- */
.lightbox { position:fixed; inset:0; z-index:50; display:grid; place-items:center; background:var(--bg);
  touch-action:pan-y; user-select:none; -webkit-user-select:none; }
.lb-stage { position:absolute; inset:72px 80px; }
.lb-stage img { width:100%; height:100%; object-fit:contain; display:block;
  filter:drop-shadow(0 0 40px rgba(255,236,214,.10)); transition:opacity .2s ease, transform .2s ease; }
.lb-top { position:absolute; top:16px; left:16px; right:16px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.lb-count { color:var(--text-3); font:600 13.5px/1 var(--font); font-variant-numeric:tabular-nums; padding-left:8px; }
/* runde Buttons: 44×44, Icon 20 → 12px rundum */
.round { display:grid; place-items:center; width:44px; height:44px; padding:0; border-radius:50%; cursor:pointer;
  border:1px solid var(--line); background:var(--surface); color:#fff;
  backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); transition:background .15s ease, transform .15s ease; }
.round:hover { background:rgba(40,40,44,.95); }
.round:active { transform:scale(.95); }
.round svg { width:20px; height:20px; }
.lb-nav { position:absolute; top:50%; transform:translateY(-50%); }
.lb-nav:active { transform:translateY(-50%) scale(.95); }
.lb-prev { left:20px; } .lb-next { right:20px; }
@media (max-width:640px){
  .lb-stage { inset:68px 0 84px; }
  .lb-nav { top:auto; bottom:20px; transform:none; }
  .lb-nav:active { transform:scale(.95); }
  .lb-prev { left:calc(50% - 56px); } .lb-next { right:calc(50% - 56px); }
}

/* ---------- Passwort / Hinweise ---------- */
.center { min-height:100dvh; display:grid; place-items:center; padding:24px 16px;
  background:radial-gradient(70% 55% at 50% 30%, rgba(255,236,214,.10), transparent 70%), var(--bg); }
.card { width:100%; max-width:460px; border-radius:var(--r-panel); padding:44px 32px 36px; text-align:center;
  background:var(--card); border:1px solid var(--line-soft); box-shadow:var(--glow-warm); }
.card h1 { font-size:clamp(34px,6vw,44px); }
.card h1 em { white-space:nowrap; }
.card p { margin-top:14px; }
.card .brand { display:inline-block; margin-bottom:28px; }
/* Formular: äußere Pill 60 hoch, 8px Abstand → Button 44 hoch, ebenfalls Pill */
.pw-form { display:flex; align-items:center; gap:8px; height:60px; margin-top:28px; padding:0 8px 0 22px;
  border-radius:var(--r-pill); background:rgba(0,0,0,.35); border:1px solid var(--line); }
.pw-form:focus-within { border-color:rgba(var(--accent-rgb),.6); box-shadow:0 0 0 4px rgba(var(--accent-rgb),.12); }
.pw-form input { flex:1; min-width:0; height:100%; border:0; outline:0; background:transparent; color:#fff; font:500 16px/1 var(--font); }
.pw-form input::placeholder { color:var(--text-4); }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; height:44px; padding:0 18px;
  border-radius:var(--r-pill); border:0; background:#fff; color:var(--ink); font:600 14px/1 var(--font); cursor:pointer; white-space:nowrap; }
.btn svg { width:16px; height:16px; }
.btn:disabled { opacity:.6; cursor:default; }
.error { min-height:22px; margin-top:12px; color:#ff8a7a; font-size:14px; }
.shake { animation:shake .35s ease; }
@keyframes shake { 20%,60%{transform:translateX(-6px)} 40%,80%{transform:translateX(6px)} }

.footer { padding:0 0 40px; text-align:center; color:var(--text-4); font-size:13px; }

@media (prefers-reduced-motion:reduce){ *{ transition:none !important; animation:none !important; } }
