/* ============================================================
   blog.css - jakubpopluhar.com Blog
   Content-first (Ferriss), topic-ready (Manson), brand tokens.
   Created: 2026-07-05
   ============================================================ */

@font-face { font-family: 'Great Vibes'; font-weight: 400; font-display: swap; src: url(/fonts/great-vibes-400.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(/fonts/inter-400.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url(/fonts/inter-500.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(/fonts/inter-600.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 300 800; font-display: swap; src: url(/fonts/montserrat.woff2) format('woff2'); }

:root {
  --gold: #d4a017;
  --gold-light: #e8b84a;
  --gold-dark: #b8890f;
  --charcoal: #141414;
  --charcoal-light: #1a1a1a;
  --charcoal-lighter: #222222;
  --white: #f5f5f5;
  --white-muted: #b0b0b0;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-script: 'Great Vibes', cursive;
  --reading: 720px;
  --nav-height: 70px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--charcoal);
  color: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- Top bar (matches homepage nav) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 160, 23, 0.08);
  display: flex;
  align-items: center;
}
.nav .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo svg { display: inline-block; vertical-align: middle; }
.logo-svg-nav { height: 46px; }
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; flex-wrap: wrap; }
.nav-links a { color: var(--white-muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--gold); transition: width 0.3s ease;
}
.nav-links a:not(.nav-cta):hover::after, .nav-links a:not(.nav-cta).active::after { width: 100%; }
.nav-cta {
  background: var(--gold); color: var(--charcoal) !important; padding: 10px 24px;
  border-radius: 6px; font-weight: 600; font-size: 0.9rem; border: 2px solid var(--gold); transition: all 0.2s;
}
.nav-cta:hover { background: transparent; color: var(--gold) !important; border-color: var(--gold); transform: translateY(-1px); }
.nav-lang { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; }
.nav-lang a { color: var(--white-muted); padding: 2px 4px; transition: color 0.2s; }
.nav-lang a:hover { color: var(--white); }
.nav-lang a.active { color: var(--gold); }
.nav-lang-sep { color: rgba(255, 255, 255, 0.25); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
}
@media (max-width: 860px) {
  .nav-right { gap: 14px; }
  .nav-links { gap: 14px; font-size: 0.82rem; }
  .nav-cta { padding: 8px 15px; }
}
/* Below 700px the full link row + CTA no longer fits on one line without
   wrapping into an untidy 2-3 row stack. Collapse into the same hamburger
   pattern the homepage already uses (id="navToggle"/"navLinks" there,
   "blogNavToggle"/"blogNavLinks" here) so mobile nav feels consistent
   site-wide instead of wrapping. */
@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(20px);
    padding: 8px 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 10px 0; }
  .nav-links a { display: inline-block; font-size: 0.95rem; }
  .nav-links .nav-cta { display: inline-block; margin-top: 4px; }
  .nav-toggle { display: block; }
}
@media (max-width: 400px) {
  .nav .container { padding: 0 16px; }
  .nav-right { gap: 10px; }
}

/* ---------- Shared layout ---------- */
.wrap { max-width: var(--reading); margin: 0 auto; padding: 0 clamp(1.1rem, 5vw, 1.5rem); }
/* Breiter Magazin-Container fuer den Blog-Index (Featured + Grid brauchen Breite,
   Artikel bleiben bei --reading 720px) */
.wrap-wide { max-width: 1140px; margin: 0 auto; padding: 0 clamp(1.1rem, 5vw, 1.5rem); }

/* ---------- Blog index ---------- */
.blog-head { text-align: center; padding: clamp(3rem, 8vw, 5.5rem) 0 2.5rem; }
.blog-head .eyebrow {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.blog-head h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.blog-head p {
  color: var(--white-muted);
  font-size: 1.05rem;
  max-width: 34rem;
  margin: 0 auto;
}

.post-list { display: flex; flex-direction: column; gap: 2.5rem; padding-bottom: 4rem; }

/* Hybrid index: section header + category clusters */
.section-h {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}
.cluster { padding-top: 2.5rem; margin-top: 1rem; border-top: 1px solid rgba(255,255,255,0.08); }
.cluster-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.cluster-head h2 { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; }
.cluster-head a { color: var(--gold); font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.small-list { gap: 1.3rem; padding-bottom: 0; }
.post-card.small { padding-bottom: 1.3rem; }
.post-card.small h2 { font-size: 1.1rem; }
.post-card.small:hover { transform: translateX(3px); }

/* Category tag chip (article meta + inline) */
.cat-tag {
  color: var(--gold);
  border: 1px solid rgba(212,160,23,0.4);
  border-radius: 999px;
  padding: 0.05em 0.6em;
  font-size: 0.82em;
}
.cat-tag:hover { border-color: var(--gold); }
.cat-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: 0.9rem;
}
.cat-eyebrow a { color: var(--gold); }

.post-card {
  display: block;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s;
}
.post-card:last-child { border-bottom: none; }
.post-card:hover { transform: translateX(4px); }
.post-card .meta {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.post-card h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.5vw, 1.7rem);
  line-height: 1.25;
  margin-bottom: 0.7rem;
}
.post-card p { color: var(--white-muted); margin-bottom: 0.9rem; }
.post-card .more { color: var(--gold); font-weight: 600; font-size: 0.9rem; }

/* First (featured) card larger */
.post-card.featured { padding-bottom: 3rem; }
.post-card.featured h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.post-card.featured .thumb {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.2rem;
}

/* ---------- Magazine index (Featured + Grid) ---------- */
.mag-feat {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  align-items: stretch;
  background: var(--charcoal-light);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2.6rem;
  transition: border-color 0.2s, transform 0.2s;
}
.mag-feat:hover { border-color: rgba(212,160,23,0.4); transform: translateY(-2px); }
.mag-feat-img { min-height: 340px; }
.mag-feat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mag-feat-img.tile { display: flex; align-items: flex-end; padding: 1.2rem; }
.mag-feat-img.tile span {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #fff;
  opacity: 0.92;
}
.mag-feat-body { padding: 1.8rem clamp(1.4rem, 3vw, 2.4rem) 1.8rem 0; align-self: center; }
.mag-meta { display: flex; align-items: baseline; gap: 0.7rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.mag-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}
.mag-date {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white-muted);
}
.mag-feat-body h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  line-height: 1.2;
  margin-bottom: 0.7rem;
}
.mag-feat-body p { color: var(--white-muted); margin-bottom: 1rem; line-height: 1.6; }
.mag-feat-body .more { color: var(--gold); font-weight: 600; font-size: 0.9rem; }

.mag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  padding-bottom: 4rem;
}
.mag-card {
  display: block;
  transition: transform 0.2s;
}
.mag-card:hover { transform: translateY(-3px); }
.mag-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.85rem;
  border-top: 3px solid var(--cat, var(--gold));
}
.mag-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.mag-card:hover .mag-card-img img { transform: scale(1.05); }
.mag-card-img.tile { display: flex; align-items: flex-end; padding: 0.9rem; }
.mag-card-img.tile span {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #fff;
  opacity: 0.92;
  font-size: 0.95rem;
}
.mag-card-date {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: 0.5rem;
}
.mag-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.28;
}
.mag-card-desc {
  color: var(--white-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-top: 0.55rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mag-card-more {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
}
.mag-card:hover .mag-card-more { color: var(--gold-light); }

/* "Weitere Artikel" - CSS-only Aufklapp (kein JS, Inhalt bleibt im DOM = GEO-sicher) */
.more-content { display: none; }
.more-content:target { display: block; }
.more-cta { text-align: center; padding: 1rem 0 3rem; }
.more-content:target + .more-cta { display: none; }
.more-btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold);
  border: 1.5px solid rgba(212, 160, 23, 0.4);
  border-radius: 8px;
  padding: 0.75rem 1.8rem;
  transition: border-color 0.2s, background 0.2s;
}
.more-btn:hover { border-color: var(--gold); background: rgba(212, 160, 23, 0.08); }

@media (max-width: 720px) {
  .mag-feat { grid-template-columns: 1fr; }
  .mag-feat-body { padding: 0 1.3rem 1.4rem; }
  .mag-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

.empty-note {
  text-align: center;
  color: var(--white-muted);
  padding: 2rem 0 5rem;
}

/* ---------- Article ---------- */
.article-head { padding: clamp(2.5rem, 7vw, 4.5rem) 0 1.5rem; }
.article-head .meta {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.article-head h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.12;
}
.article-head .lede {
  color: var(--white-muted);
  font-size: 1.2rem;
  margin-top: 1.1rem;
}
/* Byline unter dem Titel (HD-Struktur): Foto + Name . Datum . Lesezeit */
.byline {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.6rem;
}
.byline-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(212, 160, 23, 0.3);
}
.byline-text { display: flex; flex-direction: column; line-height: 1.35; }
.byline-name { font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; }
.byline-meta {
  font-size: 0.74rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white-muted);
}
.article-hero-fig { margin: 2rem 0 0; }
.article-hero {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.article-hero-caption {
  color: var(--white-muted);
  font-size: 0.8rem;
  font-style: italic;
  text-align: center;
  margin-top: 0.7rem;
}

.article-body { padding: 2.2rem 0 1rem; font-size: 1.13rem; }
.article-body > * + * { margin-top: 1.35rem; }
.article-body h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.25;
  margin-top: 2.6rem;
  position: relative;
  padding-top: 0.95rem;
}
/* HD-Signatur: goldener Akzent-Balken ueber jeder H2 */
.article-body h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 4px;
  background: var(--gold);
  border-radius: 3px;
}
.article-body h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  margin-top: 2rem;
}
.article-body a { color: var(--gold); border-bottom: 1px solid rgba(212, 160, 23, 0.4); }
.article-body a:hover { border-bottom-color: var(--gold); }
.article-body strong { color: var(--white); font-weight: 600; }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body li { margin-top: 0.5rem; }
/* Verbatim-Zitat (>) — Kasten mit dezenter Fuellung, gedaempfter Balken (HD .rule, dunkel) */
.article-body blockquote {
  border-left: 5px solid rgba(255, 255, 255, 0.25);
  background: var(--charcoal-lighter);
  border-radius: 0 10px 10px 0;
  padding: 0.9rem 1.3rem;
  margin: 1.6rem 0;
  color: var(--white-muted);
  font-style: italic;
  font-size: 1.08rem;
  font-weight: 500;
}
/* Pull-quote (>>) — die Power-Line: goldener Kasten (HD .pull, gold-getoent) */
.article-body blockquote.pullquote {
  border-left: 5px solid var(--gold);
  background: rgba(212, 160, 23, 0.09);
  border-radius: 0 12px 12px 0;
  text-align: left;
  font-style: normal;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  line-height: 1.45;
  color: var(--white);
  padding: 1rem 1.4rem;
  margin: 1.9rem 0;
  border-top: none;
  border-bottom: none;
}
/* Tables — comparison blocks */
.article-body .table-wrap { overflow-x: auto; }
.article-body table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 1.05rem;
}
.article-body th, .article-body td {
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding: 0.8rem 1.1rem;
  text-align: left;
  vertical-align: top;
}
.article-body th {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gold);
  border-bottom-color: rgba(212,160,23,0.4);
}
/* Inline body image with caption — breaks out wider than the reading column
   so detailed graphics (e.g. the KI map) stay legible */
.article-body .body-fig {
  width: min(94vw, 940px);
  margin: 2.2rem 0 2.2rem 50%;
  transform: translateX(-50%);
}
.article-body .body-fig img { width: 100%; }
.article-body .body-fig figcaption {
  color: var(--white-muted);
  font-size: 0.8rem;
  font-style: italic;
  text-align: center;
  margin-top: 0.5rem;
}
/* Share row */
.share-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.4rem 0 0.2rem;
}
.share-row .share-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-right: 0.2rem;
}
.share-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white-muted);
  background: none;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.share-btn:hover { color: var(--gold); border-color: var(--gold); }
.article-body img { max-width: 100%; border-radius: 10px; }
.article-body hr { border: none; border-top: 1px solid rgba(255,255,255,0.12); margin: 2.6rem 0; }
.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--charcoal-lighter);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}
.article-body pre {
  background: var(--charcoal-light);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  overflow-x: auto;
}
.article-body pre code { background: none; padding: 0; }

/* Sources / footnotes: ultra small */
.article-sources {
  margin-top: 2.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--white-muted);
}
.article-sources > * + * { margin-top: 0.4rem; }
.article-sources h2 {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-top: 0;
}
.article-sources a { color: var(--gold); border: none; word-break: break-word; }
.article-sources em { color: var(--white-muted); }

/* Author box */
.author-box {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 160, 23, 0.25);
}
.author-box img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box .name { font-family: var(--font-heading); font-weight: 600; }
.author-box .bio { color: var(--white-muted); font-size: 0.92rem; margin-top: 0.2rem; }
.author-box .bio a { color: var(--gold); }

/* Article footer nav (no selling) */
.article-foot {
  display: flex;
  justify-content: center;
  padding: 2rem 0 4rem;
}
.article-foot a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold);
}

/* ---------- Footer ---------- */
.blog-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 0;
  text-align: center;
  color: var(--white-muted);
  font-size: 0.82rem;
}
.blog-footer a { color: var(--white-muted); }
.blog-footer a:hover { color: var(--white); }
.blog-footer .links { margin-bottom: 0.6rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
