/* ─────────────────────────────────────────────────────────
   EWIGKEIT Magazin — Clean / Apple-Edition
   Folgt DESIGN-REGELN.md · Original styles.css bleibt unberührt
   ───────────────────────────────────────────────────────── */

:root {
  /* Bühne — warmes Beige/Papier */
  --bg:        #E7DCC3;
  --bg-soft:   #DDCDAD;
  --surface:   #F2EAD8;

  /* Text */
  --ink:       #211B12;
  --ink-2:     #5A4F3C;
  --ink-3:     #8C8068;

  /* Linien */
  --line:      #CDBE9E;

  /* Akzent — sparsam */
  --accent:    #6B1818;
  --accent-2:  #8E2A2A;

  /* Schrift */
  --serif-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --serif-body:    "Spectral", "Cormorant Garamond", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Helvetica Neue", Arial, sans-serif;

  /* Abstände (8px-Raster) */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 128px; --s-9: 160px;

  --max: 1180px;
  --radius: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.6s;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: url("assets/paper-texture.jpg");
  background-size: 1000px auto;
  background-repeat: repeat;
  color: var(--ink);
  font-family: var(--serif-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ── Sticky Nav ───────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 93%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--s-2) var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-mark {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
}
.nav-logo { height: 38px; width: auto; display: block; }

.masthead-logo {
  display: block;
  margin: 0 auto;
  width: auto;
  height: auto;
  max-width: min(440px, 78vw);
  max-height: 340px;
  transform: translateX(-3%);
}

.nav-links {
  display: flex;
  gap: var(--s-4);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-2);
}

.nav-links a { transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--accent); }

@media (max-width: 640px) { .nav-links { display: none; } }

/* ── Masthead ─────────────────────────────────────────── */

.masthead { padding: var(--s-6) 0 var(--s-5); text-align: center; display: flex; flex-direction: column; align-items: center; }

.masthead-sub {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(19px, 2.6vw, 27px);
  letter-spacing: 0.01em;
  color: var(--ink-2);
  margin: var(--s-4) 0 0;
  max-width: 36ch;
  line-height: 1.45;
}

.masthead-meta {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  display: flex;
  justify-content: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-4);
}

.masthead-meta .dot { color: var(--accent); }

.wordmark {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.98;
  letter-spacing: 0.02em;
  margin: 0;
}

.subwordmark {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--ink-2);
  margin-top: var(--s-2);
}

.tagline {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: var(--s-3);
}

/* ── Ressort-Label (entschärft: Sans, klein) ──────────── */

.dept {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  padding: var(--s-4) 0 var(--s-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: center;
}

.hero-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hero:hover .hero-image img { transform: scale(1.02); }

.hero-title {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-3);
}
.hero-title em { font-style: italic; color: var(--accent); }

.hero-dek {
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 var(--s-4);
  max-width: 40ch;
}

.byline {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-3);
}
.byline .name { color: var(--ink); }

/* ── Interlude ────────────────────────────────────────── */

.interlude {
  text-align: center;
  padding: var(--s-8) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: var(--s-7) 0;
}
.interlude-quote {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.25;
  max-width: 22ch;
  margin: 0 auto var(--s-3);
}
.interlude-attr {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Section label ────────────────────────────────────── */

.section-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 0 var(--s-5);
}
.section-label h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}
.section-label .meta {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-3);
}

/* ── Article grid ─────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
  padding-bottom: var(--s-7);
}

.card { display: block; }
.card-image {
  aspect-ratio: 5 / 6;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
  margin-bottom: var(--s-3);
}
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-image img { transform: scale(1.03); }

.card-title {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  margin: 0 0 var(--s-2);
  transition: color .2s var(--ease);
}
.card-title em { font-style: italic; color: var(--accent); }
.card:hover .card-title { color: var(--accent); }

.card-dek {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 var(--s-2);
  max-width: 44ch;
}

/* ── Footer ───────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  padding: var(--s-7) 0 var(--s-8);
  text-align: center;
}
.footer-wordmark {
  font-family: var(--serif-display);
  font-size: clamp(20px, 5vw, 28px);
  letter-spacing: 0.12em;
  margin-bottom: var(--s-1);
}
.footer-tag {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 15px;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.footer-meta {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ═══════════════════════════════════════════════════════
   ARTIKEL-SEITE  (Cover ganz oben, Presse-Logik)
   ═══════════════════════════════════════════════════════ */

/* Cover-Bild ganz oben (nur Bild — Titel kommt darunter) */
.article-cover {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 64vh;
  overflow: hidden;
  background: var(--bg-soft);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

/* Kopf unter dem Bild: Kicker, Titel, Dek, Autorenzeile */
.article-head { margin-bottom: var(--s-5); }
.article-head .dept { margin-bottom: var(--s-3); }
.article-head .article-title { margin: 0 0 var(--s-3); }
.article-head .article-dek { color: var(--ink-2); margin: 0 0 var(--s-5); max-width: 46ch; }

/* Autorenzeile mit kleinem Profilfoto */
.article-byline {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
}
.author-avatar {
  width: 46px; height: 46px;
  border-radius: 999px;
  flex: 0 0 auto;
  object-fit: cover;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif-display);
  font-size: 19px; color: var(--accent);
}
.byline-text { display: flex; flex-direction: column; line-height: 1.35; }
.byline-line { font-size: 15px; color: var(--ink-3); }
.byline-line .author { color: var(--ink); font-weight: 500; }
.byline-meta { font-size: 13px; color: var(--ink-3); }

.cover-credit { display: none; }

.article-title {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.article-dek {
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.5;
}

/* Artikel-Körper: schmale Lesespalte */
.article { max-width: 720px; margin: 0 auto; padding: var(--s-5) 0 var(--s-7); }

/* Meta-Leiste: Autor · Datum · Lesezeit + Teilen */
.article-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  padding: 0 0 var(--s-4);
  margin-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-3);
}
.article-meta-bar .meta-left { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.article-meta-bar .author { color: var(--ink); font-weight: 500; }
.article-meta-bar .sep { color: var(--line); }
.share-inline { display: flex; gap: var(--s-1); flex-wrap: wrap; }
.share-inline .share-btn { padding: 7px 14px; min-height: 38px; font-size: 13px; }

.back {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-3);
  display: inline-flex;
  gap: var(--s-1);
  align-items: center;
  margin-top: var(--s-6);
  transition: color .2s var(--ease);
}
.back:hover { color: var(--accent); }

/* Schlagworte */
.tags { display: flex; gap: var(--s-1); flex-wrap: wrap; margin-top: var(--s-6); }
.tags .label {
  font-family: var(--sans); font-size: 13px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-3); align-self: center; margin-right: var(--s-1);
}
.tag {
  font-family: var(--sans); font-size: 13px; color: var(--ink-2);
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px;
  transition: all .2s var(--ease);
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* Weiterlesen */
.related { border-top: 1px solid var(--line); padding: var(--s-6) 0 var(--s-8); }
.related h2 {
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase; margin: 0 0 var(--s-4);
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.related .card-title { font-size: clamp(20px, 2.2vw, 26px); }
.related .card-image { aspect-ratio: 3 / 2; }

/* ── Foto-Essay (durchnummerierte Bildstrecke) ────────── */
.essay { max-width: 760px; margin: 0 auto; }
.essay-item { margin: 0 0 var(--s-8); }
.essay-figure { margin: 0; }
.essay-figure img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.essay-cap {
  display: flex;
  gap: var(--s-2);
  align-items: baseline;
  margin-top: var(--s-3);
  padding-top: var(--s-2);
  border-top: 1px solid var(--line);
}
.essay-num {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
  flex: 0 0 auto;
  min-width: 2ch;
}
.essay-text {
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
}
.essay-text.placeholder { font-style: italic; color: var(--ink-3); }

/* Lesefluss (prose) */
.prose { font-size: 19px; line-height: 1.8; color: var(--ink); }
.prose p { margin: 0 0 var(--s-4); }
.prose p.lead { font-size: 22px; line-height: 1.6; color: var(--ink); }
.prose p:first-of-type::first-letter {
  font-family: var(--serif-display);
  font-size: 4.2em;
  line-height: 0.8;
  float: left;
  padding: 6px 10px 0 0;
  color: var(--accent);
}
.prose h2 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  margin: var(--s-6) 0 var(--s-3);
}
.prose blockquote {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.3;
  color: var(--ink);
  border: 0;
  text-align: center;
  margin: var(--s-6) 0;
  padding: 0 var(--s-4);
}

/* ── Teilen-Leiste ────────────────────────────────────── */

.share {
  margin: var(--s-7) 0 0;
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  text-align: center;
}
.share-label {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--ink);
}
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2);
}
.share-btn {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  transition: all .2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--bg-soft); transform: translateY(-1px); }
.share-btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.share-btn.primary:hover { background: var(--accent-2); color: #fff; }

/* Toast nach „Link kopiert" */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Scroll-Reveal ────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 860px) {
  .shell { padding: 0 var(--s-3); }
  .nav-inner { padding: var(--s-2) var(--s-3); }
  .masthead { padding: var(--s-5) 0 var(--s-4); }
  .nav-logo { height: 32px; }
  .masthead-logo { max-width: min(320px, 74vw); }
  .hero { grid-template-columns: 1fr; gap: var(--s-4); padding: var(--s-4) 0 var(--s-5); border-bottom: 1px solid var(--line); }
  .grid { grid-template-columns: 1fr; gap: 0; padding-bottom: var(--s-6); }
  .grid .card { padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
  .grid .card:last-child { border-bottom: 0; }
  .interlude { padding: var(--s-6) 0; margin: var(--s-6) 0; }
  .article-cover { aspect-ratio: 4 / 3; max-height: 56vh; }
  .cover-credit { padding: 0 var(--s-3); }
  .related-grid { grid-template-columns: 1fr; gap: 0; }
  .related .card { padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
  .related .card:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
