/* ══════════════════════════════════════
   ZIRKEL MAGAZIN – Shared Blog Styles
   ══════════════════════════════════════ */

:root {
  --bg: #faf7f1;
  --bg-soft: #f2ebe1;
  --bg-white: #ffffff;
  --bg-dark: #181613;

  --text: #1c1814;
  --text-mid: #5f584f;
  --text-light: #8f887f;
  --text-on-dark: #f6f2ec;
  --text-muted-dark: #a29b92;

  --accent: #a06e49;
  --accent-hover: #85593a;
  --accent-light: #f5ece2;
  --accent-faint: #fcf7f1;

  --green: #4f775a;
  --green-light: #e8f1ea;
  --red: #c55a4e;

  --border: #e6ded2;
  --border-light: #efe8de;

  --shadow-soft: 0 16px 40px rgba(28, 24, 20, 0.05);
  --shadow-card: 0 24px 64px rgba(28, 24, 20, 0.08);

  --radius-lg: 18px;
  --radius-md: 14px;

  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.25s ease; }
::selection { background: var(--accent-light); color: var(--text); }

/* ── NAV ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 1.05rem 0;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto;
  padding: 0 1.1rem;
  display: flex; justify-content: space-between;
  align-items: center; gap: 1rem;
}
.logo {
  display: inline-flex; align-items: center; gap: 0.7rem; color: var(--text);
}
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; color: var(--accent); }
.logo-text {
  font-size: 1rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.nav-links {
  display: flex; align-items: center; gap: 1.5rem; list-style: none;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 600; color: var(--text-mid);
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 1.2rem; border-radius: 999px;
  border: 1.5px solid var(--accent); color: var(--accent);
  font-size: 0.88rem; font-weight: 700;
  transition: 0.25s ease; white-space: nowrap;
}
.nav-cta:hover {
  background: var(--accent); color: #fff; transform: translateY(-1px);
}

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 6.5rem 0 0;
  max-width: 760px; margin: 0 auto;
  padding-left: 1.1rem; padding-right: 1.1rem;
}
.breadcrumb ol {
  list-style: none; display: flex; flex-wrap: wrap;
  gap: 0.3rem; font-size: 0.84rem; color: var(--text-light);
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 0.15rem; }

/* ── ARTICLE HEADER ── */
.article-header {
  max-width: 760px; margin: 0 auto;
  padding: 2rem 1.1rem 0;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  align-items: center; margin-bottom: 1.2rem;
  font-size: 0.84rem; color: var(--text-light); font-weight: 600;
}
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }
.article-tag {
  display: inline-flex; align-items: center;
  padding: 0.3rem 0.75rem; border-radius: 999px;
  background: var(--accent-faint); border: 1px solid var(--accent-light);
  color: var(--accent); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.article-header h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.12; letter-spacing: -0.02em;
  margin-bottom: 1rem; color: var(--text);
}
.article-intro {
  font-size: 1.15rem; line-height: 1.65;
  color: var(--text-mid); max-width: 640px;
}

/* ── ARTICLE BODY ── */
.article-body {
  max-width: 760px; margin: 0 auto;
  padding: 2.5rem 1.1rem 4rem;
}
.article-body h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.65rem; line-height: 1.18;
  margin: 2.8rem 0 0.9rem; color: var(--text);
  letter-spacing: -0.015em;
}
.article-body h3 {
  font-family: var(--sans); font-weight: 800;
  font-size: 1.15rem; line-height: 1.35;
  margin: 2rem 0 0.6rem; color: var(--text);
}
.article-body p {
  color: var(--text-mid); margin-bottom: 1.25rem;
  font-size: 1.0625rem; line-height: 1.75;
}
.article-body strong { color: var(--text); font-weight: 700; }
.article-body a {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:hover { color: var(--accent-hover); }

.article-body ul, .article-body ol {
  margin: 0.8rem 0 1.5rem 1.5rem;
  color: var(--text-mid);
}
.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.article-body blockquote {
  margin: 2rem 0;
  padding: 1.3rem 1.6rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-faint);
  border-radius: 0 14px 14px 0;
  font-size: 1.08rem;
  color: var(--text);
  line-height: 1.6;
}
.article-body blockquote p { color: var(--text); margin-bottom: 0; }

/* ── CTA BOX (in-article) ── */
.article-cta {
  margin: 2.8rem 0;
  padding: 2rem;
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  text-align: center;
}
.article-cta h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.45rem; color: var(--text-on-dark);
  margin-bottom: 0.6rem;
}
.article-cta p {
  color: var(--text-muted-dark); margin-bottom: 1.2rem;
  font-size: 0.95rem;
}
.article-cta .btn {
  appearance: none; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.5rem; border-radius: 999px;
  font-size: 0.95rem; font-weight: 700; cursor: pointer;
  transition: all 0.25s ease; white-space: nowrap;
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
  color: #fff; box-shadow: 0 10px 28px rgba(160, 110, 73, 0.3);
  text-decoration: none;
}
.article-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(160, 110, 73, 0.35);
}

/* ── KEY TAKEAWAYS BOX ── */
.takeaway-box {
  margin: 2rem 0;
  padding: 1.5rem 1.6rem;
  background: var(--green-light);
  border: 1px solid rgba(79, 119, 90, 0.15);
  border-radius: var(--radius-md);
}
.takeaway-box h3 {
  font-family: var(--sans); font-weight: 800;
  font-size: 1rem; color: var(--green);
  margin-bottom: 0.6rem;
}
.takeaway-box ul { margin: 0; list-style: none; }
.takeaway-box li {
  position: relative; padding-left: 1.4rem;
  font-size: 0.95rem; color: var(--text);
  margin-bottom: 0.45rem;
}
.takeaway-box li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--green); font-weight: 900;
}

/* ── TABLE OF CONTENTS ── */
.toc {
  margin: 0 0 2.5rem;
  padding: 1.4rem 1.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.toc h4 {
  font-family: var(--sans); font-size: 0.85rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-light); margin-bottom: 0.7rem;
}
.toc ol {
  list-style: none; counter-reset: toc; margin: 0;
}
.toc li {
  counter-increment: toc; margin-bottom: 0.35rem;
}
.toc li::before {
  content: counter(toc) ". ";
  color: var(--accent); font-weight: 700;
}
.toc a {
  color: var(--text-mid); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
}
.toc a:hover { color: var(--accent); }

/* ── RELATED ARTICLES ── */
.related {
  max-width: 760px; margin: 0 auto;
  padding: 0 1.1rem 4rem;
}
.related h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.55rem; margin-bottom: 1.3rem;
}
.related-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1.2rem;
}
.related-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.3rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.related-card:hover { transform: translateY(-2px); border-color: var(--accent-light); }
.related-card .rc-tag {
  font-size: 0.72rem; font-weight: 700;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 0.4rem;
}
.related-card h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.08rem; line-height: 1.25;
  margin-bottom: 0.4rem; color: var(--text);
}
.related-card p {
  font-size: 0.85rem; color: var(--text-light);
  line-height: 1.5;
}

/* ── MAGAZINE INDEX ── */
.mag-hero {
  padding: 7rem 0 3rem;
  max-width: 760px; margin: 0 auto;
  padding-left: 1.1rem; padding-right: 1.1rem;
}
.mag-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 0.8rem; color: var(--text);
}
.mag-hero p {
  font-size: 1.1rem; color: var(--text-mid);
  max-width: 560px;
}
.mag-grid {
  max-width: 1000px; margin: 0 auto;
  padding: 0 1.1rem 5rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.mag-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.7rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.mag-card:hover { transform: translateY(-3px); border-color: #d8ccb9; }
.mag-card .mc-tag {
  font-size: 0.72rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.mag-card h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.3rem; line-height: 1.2;
  margin-bottom: 0.55rem; color: var(--text);
}
.mag-card p {
  font-size: 0.95rem; color: var(--text-mid);
  margin-bottom: 0.8rem; line-height: 1.55;
}
.mag-card .mc-meta {
  font-size: 0.82rem; color: var(--text-light); font-weight: 600;
}
.mag-card .read-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.9rem; font-weight: 700; color: var(--accent);
  margin-top: 0.8rem;
}
.mag-card .read-link:hover { gap: 0.5rem; }

/* ── FOOTER ── */
.footer {
  background: var(--bg-dark); color: #7e766d;
  padding: 2.4rem 0; font-size: 0.84rem;
}
.footer-inner {
  max-width: 1140px; margin: 0 auto;
  padding: 0 1.1rem;
  display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: #9a938a; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.footer-brand svg { color: #8d857b; }
.footer-links { list-style: none; display: flex; gap: 1.35rem; flex-wrap: wrap; }
.footer-links a { color: #7e766d; transition: color 0.22s ease; }
.footer-links a:hover { color: var(--text-on-dark); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .related-grid { grid-template-columns: 1fr; }
  .mag-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .breadcrumb { padding-top: 5.5rem; }
  .article-header { padding-top: 1.2rem; }
  .mag-hero { padding-top: 5.5rem; }
}