/* ═══════════════════════════════════════════
   Bücher & Texte — Design System
   dark · literarisch · DIY
   ═══════════════════════════════════════════ */

:root {
  --bg:         #1c1b18;
  --bg-hover:   #252320;
  --text:       #e4e0d5;
  --text-muted: #6e6860;
  --accent:     #c8607a;
  --border:     #2e2c27;
  --max-w:      700px;
}

/* ── Reset ────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--bg);
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: monospace;
  min-height: 100vh;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 20px 60px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ── Sterne (Phase 5) ─────────────────────── */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 2px;
  height: 60px;
  background: linear-gradient(180deg, #ff69b4, transparent);
  border-radius: 0;
  opacity: 0;
  pointer-events: none;
}

.star.s1 { top:  8%; left: 15%; animation: shooting-star 4.0s linear 0s   infinite; }
.star.s2 { top:  3%; left: 55%; animation: shooting-star 5.0s linear 2.5s  infinite; }
.star.s3 { top: 20%; left: 78%; animation: shooting-star 3.5s linear 5.0s  infinite; }
.star.s4 { top: 12%; left: 38%; animation: shooting-star 4.5s linear 8.0s  infinite; }

@keyframes shooting-star {
  0%   { transform: translate(0, 0) rotate(45deg);      opacity: 1; }
  100% { transform: translate(300px, 300px) rotate(45deg); opacity: 0; }
}

/* ── Header (Index) ───────────────────────── */
.site-header {
  position: relative;
  z-index: 1;
  margin-bottom: 56px;
}

.back-link {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 44px;
  min-height: 44px;
  line-height: 44px;
}

.back-link:hover { color: var(--accent); }

.site-title {
  font-size: 11px;
  letter-spacing: 0.28em;
  font-weight: normal;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}

.site-tagline {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ── Post-Liste ───────────────────────────── */
.post-list {
  position: relative;
  z-index: 1;
}

/* ── Card ─────────────────────────────────── */
.card {
  border-top: 1px solid var(--border);
}

.card:last-child {
  border-bottom: 1px solid var(--border);
}

.card__link {
  display: block;
  padding: 26px 0;
}

.card__link:hover .card__title {
  color: var(--accent);
}

.card__link:hover .card__arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.card__body {
  margin-bottom: 14px;
}

.card__title {
  font-size: 13px;
  letter-spacing: 0.05em;
  font-weight: normal;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.5;
  transition: color 0.15s ease;
}

.card__abstract {
  font-size: 11px;
  line-height: 1.9;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
}

.card__date {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.card__arrow {
  font-size: 13px;
  color: var(--text-muted);
  display: inline-block;
  transition: transform 0.15s ease, color 0.15s ease;
}

/* ── Post-Seite ───────────────────────────── */
.post-back {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 44px;
  min-height: 44px;
  line-height: 44px;
}

.post-back:hover { color: var(--accent); }

.post-header {
  position: relative;
  z-index: 1;
  margin-bottom: 44px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.post-title {
  font-size: 13px;
  letter-spacing: 0.06em;
  font-weight: normal;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}

.post-meta {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.post-body {
  position: relative;
  z-index: 1;
}

.post-body .epigraph {
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 2;
  color: var(--text-muted);
  border-left: 1px solid var(--accent);
  padding-left: 16px;
  margin-bottom: 44px;
}

.post-body img {
  width: 100%;
  margin-bottom: 40px;
}

.post-body p {
  font-size: 12px;
  line-height: 2.1;
  color: var(--text);
  opacity: 0.85;
  margin-bottom: 28px;
}

/* ── Footer ───────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 72px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 24px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  min-height: 44px;
  align-items: center;
}

.site-footer a:hover { color: var(--accent); }

/* ── Desktop ──────────────────────────────── */
@media (min-width: 480px) {
  body {
    padding: 60px 28px 80px;
  }
}
