/* ============ bnptrs theme — dark, photo-forward ============ */
:root {
  --bg: #0a0a0b;
  --bg-elev: #141416;
  --line: #26262a;
  --text: #ececee;
  --muted: #9a9aa2;
  --accent: #a3ac66;      /* Olivgrün — Hauptakzent */
  --accent-2: #e0759a;    /* Pink — sekundärer Akzent (Hover/Pop) */
  --maxw: 1180px;
  --narrow: 720px;
  --gap: clamp(1rem, 3vw, 2.5rem);
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-2); }

.site-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }
.wrap-narrow { max-width: var(--narrow); margin-inline: auto; padding-inline: var(--gap); }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-header-inner { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block: 1rem; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .01em; font-weight: 600; }
.brand span { color: var(--accent); }
.brand-logo { max-height: 34px; width: auto; }
.nav { display: flex; gap: clamp(.8rem, 2.5vw, 1.6rem); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }
.nav ul { display: flex; gap: clamp(.8rem, 2.5vw, 1.6rem); list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); }

/* ---- Hero ---- */
.hero { padding-block: clamp(3rem, 9vw, 7rem) clamp(2rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.hero-title { font-family: var(--serif); font-weight: 600; line-height: 1.05; font-size: clamp(2.4rem, 7vw, 4.6rem); margin: 0 0 1rem; letter-spacing: -0.01em; }
.hero-sub { color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.25rem); max-width: 46ch; margin: 0; }

/* ---- Post grid / cards ---- */
.post-grid { display: grid; gap: clamp(1.4rem, 3.5vw, 2.6rem); grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-elev); transition: transform .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent-2) 55%, var(--line)); }
.card-thumb { aspect-ratio: 3 / 2; overflow: hidden; background: #111; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb.placeholder { background: radial-gradient(120% 90% at 20% 0%, #2a2620 0%, transparent 60%), linear-gradient(135deg, #1a1a1d, #0d0d0f); }
.card-body { padding: 1.1rem 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card-title { font-family: var(--serif); font-size: 1.3rem; margin: 0; line-height: 1.2; }
.card-excerpt { color: var(--muted); font-size: .95rem; margin: 0; flex: 1; }

.meta { display: flex; gap: .6rem; align-items: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); flex-wrap: wrap; }
.badge { color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); padding: .12rem .55rem; border-radius: 999px; }

/* ---- Listing header (tags) ---- */
.listing-header { padding-top: clamp(2.5rem, 6vw, 4rem); }
.listing-kicker { font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); }
.listing-title { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); margin: .3rem 0 .5rem; }
.listing-desc { color: var(--muted); max-width: 52ch; margin: 0 0 .5rem; }
.listing-count { color: var(--muted); font-size: .85rem; }

/* ---- Article ---- */
.article { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.article-head { margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.article-title { font-family: var(--serif); font-weight: 600; line-height: 1.08; font-size: clamp(2rem, 5vw, 3.4rem); margin: .6rem 0 .8rem; letter-spacing: -0.01em; }
.article-excerpt { color: var(--muted); font-size: 1.2rem; margin: 0; }
.reading-time { }
.article-cover { max-width: var(--maxw); margin: 0 auto clamp(1.6rem, 4vw, 2.6rem); padding-inline: var(--gap); }
.article-cover img { width: 100%; border-radius: 14px; }
.article-cover figcaption { color: var(--muted); font-size: .82rem; text-align: center; margin-top: .6rem; }

/* ---- gh-content (Koenig editor output) ---- */
.gh-content { font-size: 1.12rem; }
.gh-content > * { margin-block: 1.4rem; }
.gh-content h2 { font-family: var(--serif); font-size: 1.7rem; margin-top: 2.4rem; }
.gh-content h3 { font-family: var(--serif); font-size: 1.35rem; margin-top: 1.8rem; }
.gh-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.gh-content a:hover { color: var(--accent-2); }
.gh-content img, .gh-content .kg-card { border-radius: 12px; }
.gh-content figure { margin-block: 2rem; }
.gh-content figcaption { color: var(--muted); font-size: .82rem; text-align: center; margin-top: .6rem; }
.gh-content blockquote { border-left: 3px solid var(--accent); padding-left: 1.2rem; margin-left: 0; color: var(--muted); font-style: italic; }
.gh-content pre { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; overflow-x: auto; font-size: .9rem; }
.gh-content code { background: var(--bg-elev); border-radius: 5px; padding: .1rem .4rem; font-size: .9em; }
.gh-content pre code { background: none; padding: 0; }
.gh-content hr { border: none; border-top: 1px solid var(--line); }

/* Koenig wide/full width cards */
.kg-width-wide { width: min(85vw, 1100px); margin-inline: calc(50% - min(42.5vw, 550px)); max-width: none; }
.kg-width-full { width: 100vw; margin-inline: calc(50% - 50vw); max-width: none; border-radius: 0; }
.kg-width-full img { border-radius: 0; }

/* ---- Article footer ---- */
.article-footer { margin-top: 3rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.tag { font-size: .78rem; color: var(--muted); border: 1px solid var(--line); padding: .2rem .7rem; border-radius: 999px; }
.tag:hover { border-color: var(--accent-2); color: var(--accent-2); }
.back { display: inline-block; margin-top: 2rem; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }

/* ---- Pagination ---- */
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 2rem 4rem; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.pagination .page-number { flex: 1; text-align: center; }

/* ---- Comments ---- */
.comments { padding-block: 2rem 4rem; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding-block: 2.5rem; margin-top: 3rem; }
.site-footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 1rem; }
.footer-nav ul { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header-inner { flex-direction: column; align-items: flex-start; gap: .5rem; }
}
