:root {
  --bg: #0a0a0d;
  --surface: #131318;
  --surface-2: #1a1a21;
  --border: rgba(201, 169, 110, 0.16);
  --border-strong: rgba(201, 169, 110, 0.38);
  --gold: #c9a96e;
  --gold-light: #e6cf9f;
  --text: #ece8e1;
  --muted: #8f8a80;
  --danger: #c0605a;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* Dezentes goldenes Leuchten im Hintergrund */
.glow {
  position: fixed;
  inset: -20vh -10vw auto;
  height: 70vh;
  background: radial-gradient(ellipse at top, rgba(201, 169, 110, 0.13), transparent 65%);
  pointer-events: none;
  z-index: -1;
}

/* ---------- Navigation ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 20px 0;
}
.topbar form { display: flex; align-items: center; gap: 10px; margin: 0; }
.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  color: var(--gold-light);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 2px 10px;
}
.link-btn {
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}
.link-btn:hover { color: var(--gold-light); }

/* ---------- Layout ---------- */
.container {
  flex: 1;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.hero { text-align: center; padding: 48px 0 36px; }
.eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.hero h1, .login-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 4rem);
  line-height: 1.1;
  margin: 0;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 520px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---------- Karten ---------- */
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ---------- Formular ---------- */
.compose { display: flex; flex-direction: column; gap: 14px; }
.compose-label {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  color: var(--gold-light);
}
.compose-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.compose-row input { flex: 1; min-width: 180px; }
.counter { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }

input, textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder { color: #5f5b54; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a1408;
  border: none;
  border-radius: 10px;
  padding: 12px 26px;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 169, 110, 0.25);
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(192, 96, 90, 0.4);
  border-radius: 8px;
  padding: 4px 12px;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.btn-danger:hover { background: rgba(192, 96, 90, 0.12); }

/* ---------- Hinweise ---------- */
.alert {
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}
.alert-ok { background: rgba(201, 169, 110, 0.1); border: 1px solid var(--border-strong); color: var(--gold-light); }
.alert-err { background: rgba(192, 96, 90, 0.1); border: 1px solid rgba(192, 96, 90, 0.4); color: #e59a94; }

/* ---------- Regeln ---------- */
.rules {
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
}
.rules summary { cursor: pointer; color: var(--gold); width: fit-content; }
.rules ul { margin: 10px 0; padding-left: 20px; }

/* ---------- Feed ---------- */
.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 44px 0 20px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--text);
}
.section-title::before, .section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.feed { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }

.post { position: relative; padding-left: 28px; transition: border-color 0.2s; }
.post::before {
  content: "";
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-light), transparent);
}
.post:hover { border-color: var(--border-strong); }

.quote {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}
.meta .author { color: var(--gold); font-weight: 500; }
.meta time { margin-right: auto; }
.meta form { margin: 0; }

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

/* ---------- Login ---------- */
.login-wrap { display: flex; justify-content: center; padding-top: 40px; }
.login { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 16px; text-align: center; }
.login-title { font-size: 2.6rem; margin-bottom: 8px; }
.login label { display: flex; flex-direction: column; gap: 6px; text-align: left; font-size: 0.85rem; color: var(--muted); }
.back { color: var(--muted); font-size: 0.85rem; text-decoration: none; }
.back:hover { color: var(--gold-light); }

.footer {
  text-align: center;
  padding: 24px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: #55524c;
}

@media (max-width: 520px) {
  .card { padding: 18px; }
  .post { padding-left: 22px; }
  .compose-row button { width: 100%; }
}

/* Zweispaltig: Inspiration links, Inhalt rechts */
.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.main-col { max-width: 760px; width: 100%; }

/* ---------- Inspiration des Tages ---------- */
.sidebar { position: sticky; top: 24px; padding-top: 48px; }
.inspiration {
  position: relative;
  overflow: hidden;
  border-color: var(--border-strong);
  background:
    radial-gradient(circle at 0% 0%, rgba(201, 169, 110, 0.16), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.inspiration::after {
  content: "“";
  position: absolute;
  right: 14px;
  bottom: -40px;
  font-family: "Cormorant Garamond", serif;
  font-size: 11rem;
  line-height: 1;
  color: rgba(201, 169, 110, 0.08);
  pointer-events: none;
}
.inspiration .eyebrow { font-size: 0.68rem; letter-spacing: 0.25em; }
.inspiration-title {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.15;
  color: var(--gold-light);
}
.inspiration-quote {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.inspiration-author {
  margin: 14px 0 0;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
}
.inspiration-empty { margin: 0; color: var(--muted); font-size: 0.92rem; }
.inspiration-body { transition: opacity 0.25s ease; }
.inspiration-body.fade { opacity: 0; }

.btn-outline {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  width: 100%;
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: rgba(201, 169, 110, 0.1); border-color: var(--gold); }
.btn-outline:disabled { opacity: 0.6; cursor: wait; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .sidebar { position: static; padding-top: 16px; }
  .main-col { max-width: none; }
}

/* Verstecktes Honeypot-Feld gegen Spam-Bots */
.hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
