:root {
  --bg: #0a0f1d;
  --bg2: #0f1628;
  --card: #141c31;
  --line: #243050;
  --text: #ece8dd;
  --muted: #98a2b9;
  --lamp: #f2b84b;
  --lamp-soft: rgba(242, 184, 75, 0.14);
  --danger: #e2685a;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background:
    radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 9%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 6%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 26%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 22%, #fff4 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 32%, #fff3 50%, transparent 51%),
    linear-gradient(180deg, #070b16 0%, var(--bg) 380px, var(--bg) 100%);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

a { color: var(--lamp); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Kopf ---------- */
header.hero {
  padding: 56px 0 28px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.moon {
  flex: none;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #fffbe9, #f3e3b0 55%, #d9c385);
  box-shadow: 0 0 40px 8px rgba(243, 227, 176, 0.22);
  position: relative;
}
.moon::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 60%, rgba(160,140,90,.35) 0 7px, transparent 8px),
    radial-gradient(circle at 40% 70%, rgba(160,140,90,.25) 0 4px, transparent 5px),
    radial-gradient(circle at 66% 32%, rgba(160,140,90,.22) 0 5px, transparent 6px);
}
h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.sub { color: var(--muted); margin: 0; }

/* ---------- Filter ---------- */
.chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 8px 0 26px;
  position: sticky; top: 0; z-index: 5;
  background: linear-gradient(var(--bg) 70%, transparent);
}
.chip {
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--text);
  padding: 7px 14px;
  border-radius: 999px;
  font: inherit; font-size: 14px;
  cursor: pointer;
}
.chip[aria-pressed="true"] {
  background: var(--lamp-soft);
  border-color: var(--lamp);
  color: var(--lamp);
}

/* ---------- Galerie ---------- */
.grid { columns: 3 320px; column-gap: 18px; }
.post {
  break-inside: avoid;
  margin: 0 0 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.post img, .post video {
  display: block; width: 100%; height: auto;
  background: #05080f;
}
.post img { cursor: zoom-in; }
.post .meta { padding: 12px 14px 14px; }
.post .cap { margin: 0 0 6px; }
.post .info { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }
.tag {
  color: var(--lamp);
  background: var(--lamp-soft);
  padding: 2px 9px; border-radius: 999px; font-size: 12px;
}

.empty {
  text-align: center; color: var(--muted);
  padding: 70px 20px; border: 1px dashed var(--line); border-radius: var(--radius);
}

footer {
  color: var(--muted); font-size: 14px;
  padding: 40px 0 50px; text-align: center;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(3, 5, 10, 0.94);
  display: none; align-items: center; justify-content: center;
  padding: 20px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 8px; }

/* ---------- Posten-Seite ---------- */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 22px;
}
.panel h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; margin: 0 0 14px; font-size: 22px; }
label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 6px; }
input[type="text"], input[type="date"], textarea {
  width: 100%;
  background: var(--bg2); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; font: inherit;
}
textarea { min-height: 70px; resize: vertical; }
.drop {
  display: block; text-align: center;
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 34px 16px; cursor: pointer; color: var(--muted);
  margin: 0;
}
.drop strong { color: var(--text); display: block; font-size: 18px; margin-bottom: 4px; }
.drop.has { border-color: var(--lamp); color: var(--lamp); }
.drop input { display: none; }
.btn {
  margin-top: 20px; width: 100%;
  background: var(--lamp); color: #1b1405;
  border: 0; border-radius: 12px;
  padding: 14px; font: inherit; font-weight: 600; font-size: 17px;
  cursor: pointer;
}
.btn:disabled { opacity: .5; cursor: default; }
.queue { list-style: none; padding: 0; margin: 16px 0 0; }
.queue li { font-size: 14px; margin: 8px 0; }
.bar { height: 6px; background: var(--bg2); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; width: 0; background: var(--lamp); transition: width .2s; }
.queue li.err { color: var(--danger); }
.queue li.ok .bar i { background: #6fcf8f; }

.mine { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.mine figure { margin: 0; position: relative; }
.mine img, .mine video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; background: #05080f; }
.mine button {
  position: absolute; top: 6px; right: 6px;
  background: rgba(10,15,29,.85); color: var(--danger);
  border: 1px solid var(--danger); border-radius: 8px;
  font-size: 12px; padding: 4px 8px; cursor: pointer;
}
.note { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.warn { color: var(--danger); }

footer a { color: var(--lamp); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.rss-hint { display: block; margin-top: 10px; color: var(--text); word-break: break-all; }

.post-btn {
  position: fixed; top: 14px; right: 14px; z-index: 40;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--lamp); color: var(--lamp);
  background: rgba(10, 15, 29, 0.75); backdrop-filter: blur(6px);
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.post-btn:hover { background: var(--lamp-soft); }
.pend { display: grid; gap: 14px; }
.pend figure { margin: 0; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pend video, .pend img { width: 100%; max-height: 420px; object-fit: contain; background: #000; display: block; }
.pend figcaption { padding: 10px 12px; font-size: 14px; color: var(--muted); }
.pend figcaption b { color: var(--text); font-weight: 600; }
.pend .acts { display: flex; gap: 8px; padding: 0 12px 12px; }
.pend .acts button { flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 15px; cursor: pointer; }
.pend .acts .ok { border-color: var(--lamp); color: var(--lamp); font-weight: 600; }
.pend .acts button:disabled { opacity: .5; cursor: default; }
.mine figure button[data-act="unpublish"] { top: auto; bottom: 6px; left: 6px; right: auto; color: var(--lamp); border-color: var(--lamp); }
