/* blog.css — e-linguist Blog (Übersicht + Einzelbeitrag)
   Loaded after assets/colors_and_type.css. Reuses .nav/.btn/.footer
   patterns from homepage.css where noted; those files are also linked. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }

.container {
  width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px;
}
.wrap-narrow {
  width: 100%; max-width: 720px; margin: 0 auto; padding: 0 32px;
}
@media (max-width: 720px) {
  .container, .wrap-narrow { padding: 0 20px; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.nav-brand img { width: 30px; height: 30px; }
.nav-brand-word {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  letter-spacing: -0.02em; white-space: nowrap;
}
.nav-brand-word .dot { color: var(--honey-500); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 14.5px; color: var(--ink-3); text-decoration: none; font-weight: 500;
  transition: color var(--dur) var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
@media (max-width: 880px) { .nav-links { display: none; } }

/* Buttons (same tokens as homepage) */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 14.5px;
  padding: 13px 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease), background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn i { width: 16px; height: 16px; stroke-width: 2; }
.btn-primary { background: var(--honey-400); color: var(--ink); }
.btn-primary:hover { background: var(--honey-500); box-shadow: var(--shadow-honey); }
.btn-primary:active { transform: scale(0.97); background: var(--honey-600); }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--paper-2); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-lg { padding: 16px 28px; font-size: 15px; }

/* ============================================================
   BLOG HEADER
   ============================================================ */
.blog-head { padding: 72px 0 40px; }
.blog-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; margin-bottom: 22px;
}
.blog-eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--honey-400); }
.blog-head h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 5.2vw, 68px); line-height: 1.03;
  letter-spacing: -0.025em; margin: 0 0 20px; text-wrap: balance; max-width: 16ch;
}
.blog-head h1 em { font-style: italic; font-weight: 500; color: var(--gold); }
.blog-head .lead {
  font-size: 19px; line-height: 1.55; color: var(--ink-3);
  max-width: 56ch; margin: 0; text-wrap: pretty;
}

/* filter chips */
.blog-filter {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 8px 0 8px; margin-top: 34px;
  border-top: 1px solid var(--border);
  padding-top: 26px;
}
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 9px 18px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  color: var(--ink); cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.filter-chip:hover { background: var(--honey-100); border-color: var(--honey-400); transform: translateY(-1px); }
.filter-chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ============================================================
   FEATURED POST
   ============================================================ */
.featured-wrap { padding: 24px 0 8px; }
.featured {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 28px; overflow: hidden; text-decoration: none; color: inherit;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.featured:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
@media (max-width: 880px) { .featured { grid-template-columns: 1fr; } }
.featured-media { position: relative; min-height: 380px; background: var(--card-2); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-media .stamp {
  position: absolute; top: 18px; left: 18px;
  background: var(--honey-400); color: var(--ink);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
}
.featured-body { padding: 44px 44px 40px; display: flex; flex-direction: column; }
@media (max-width: 720px) { .featured-body { padding: 32px 24px; } }
.post-cat {
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--honey-600); font-weight: 700;
}
.featured-body h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 3vw, 40px); line-height: 1.12;
  letter-spacing: -0.02em; margin: 16px 0 16px; text-wrap: balance;
}
.featured-body p {
  font-size: 16.5px; line-height: 1.6; color: var(--ink-3); margin: 0; text-wrap: pretty;
}
.post-meta {
  display: flex; align-items: center; gap: 14px;
  margin-top: auto; padding-top: 28px;
  font-size: 13px; color: var(--ink-4);
}
.post-meta .avatar {
  width: 30px; height: 30px; border-radius: 999px; object-fit: cover;
  background: var(--sand-100); flex: none;
}
.post-meta .sep { width: 3px; height: 3px; border-radius: 999px; background: var(--line-2); }
.post-meta strong { color: var(--ink-2); font-weight: 600; }

/* ============================================================
   POST GRID
   ============================================================ */
.posts-section { padding: 48px 0 96px; }
.posts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 980px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .posts-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 22px; overflow: hidden; text-decoration: none; color: inherit;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card.is-hidden { display: none; }
.post-thumb { position: relative; aspect-ratio: 3 / 2; background: var(--card-2); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-thumb .tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(251,250,247,0.94); backdrop-filter: blur(8px);
  color: var(--ink); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.post-card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card-body h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 21px; line-height: 1.18; letter-spacing: -0.015em;
  margin: 0 0 10px; text-wrap: balance;
}
.post-card-body p {
  font-size: 14.5px; line-height: 1.55; color: var(--ink-3); margin: 0; text-wrap: pretty;
}
.post-card .post-meta { padding-top: 20px; font-size: 12.5px; }

/* ============================================================
   NEWSLETTER STRIP
   ============================================================ */
.news-strip { padding: 0 0 96px; }
.news-card {
  background: var(--paper-2); border: 1px dashed var(--border-strong);
  border-radius: 28px; padding: 40px 44px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px;
}
@media (max-width: 880px) { .news-card { grid-template-columns: 1fr; padding: 32px 24px; } }
.news-card h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 6px;
}
.news-card p { margin: 0; color: var(--ink-3); font-size: 15px; line-height: 1.5; }
.email-form {
  display: flex; gap: 8px; background: var(--card);
  padding: 6px 6px 6px 18px; border-radius: 999px;
  border: 1px solid var(--border-strong); min-width: 380px;
}
@media (max-width: 720px) { .email-form { min-width: 0; width: 100%; } }
.email-form input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--font-sans); font-size: 14.5px; color: var(--ink); min-width: 0;
}
.email-form input::placeholder { color: var(--ink-5); }
.email-form button { padding: 11px 20px; font-size: 13.5px; }

/* ============================================================
   ARTICLE (Einzelbeitrag)
   ============================================================ */
.article-hero { padding: 44px 0 32px; }
.crumb {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-4); margin-bottom: 26px;
}
.crumb a { color: var(--ink-4); text-decoration: none; }
.crumb a:hover { color: var(--honey-600); }
.crumb .sep { color: var(--line-2); }
.crumb .here { color: var(--ink-2); font-weight: 600; }
.article-hero .post-cat { display: block; margin-bottom: 16px; }
.article-hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 4.6vw, 58px); line-height: 1.05;
  letter-spacing: -0.025em; margin: 0 0 22px; text-wrap: balance; max-width: 20ch;
}
.article-hero h1 em { font-style: italic; font-weight: 500; color: var(--gold); }
.article-hero .lead {
  font-size: 20px; line-height: 1.55; color: var(--ink-3);
  max-width: 60ch; margin: 0 0 30px; text-wrap: pretty;
}
.article-byline {
  display: flex; align-items: center; gap: 14px;
  padding-top: 26px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--ink-4);
}
.article-byline .avatar {
  width: 44px; height: 44px; border-radius: 999px; object-fit: cover;
  background: var(--sand-100); flex: none;
}
.article-byline strong { color: var(--ink); font-weight: 600; display: block; font-size: 14.5px; }
.article-byline .sep { width: 3px; height: 3px; border-radius: 999px; background: var(--line-2); }

.article-cover {
  margin: 8px 0 8px; border-radius: 28px; overflow: hidden;
  background: var(--card-2); border: 1px solid var(--border);
}
.article-cover img { width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.article-cover .cap {
  font-size: 12.5px; color: var(--ink-4); padding: 12px 20px;
  border-top: 1px solid var(--border); background: var(--card);
}

/* body typography */
.article-body { padding: 48px 0 32px; }
.article-body > * { margin-left: auto; margin-right: auto; }
.article-body p, .article-body h2, .article-body h3, .article-body ul, .article-body ol,
.article-body .lead-in, .article-body .callout, .article-body .example-set, .article-body figure,
.article-body blockquote, .article-body hr {
  width: min(720px, 100% - 64px); max-width: 100%;
  margin-left: auto !important; margin-right: auto !important;
}
@media (max-width: 720px) {
  .article-body p, .article-body h2, .article-body h3, .article-body ul, .article-body ol,
  .article-body .lead-in, .article-body .callout, .article-body .example-set, .article-body figure,
  .article-body blockquote, .article-body hr { width: min(720px, 100% - 40px); }
}
.article-body p {
  font-size: 18px; line-height: 1.72; color: var(--ink-2); margin: 0 0 24px; text-wrap: pretty;
}
.article-body .lead-in::first-letter {
  font-family: var(--font-display); font-weight: 600;
  font-size: 62px; line-height: 0.8; float: left;
  padding: 6px 12px 0 0; color: var(--honey-600);
}
.article-body h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 3vw, 34px); line-height: 1.15;
  letter-spacing: -0.02em; margin: 48px 0 18px; text-wrap: balance;
}
.article-body h3 {
  font-family: var(--font-sans); font-weight: 600;
  font-size: 20px; line-height: 1.3; margin: 34px 0 12px; color: var(--ink);
}
.article-body a { color: var(--ink); text-decoration-color: var(--honey-300); }
.article-body a:hover { color: var(--honey-600); }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 0 0 24px; }
.article-body li {
  font-size: 18px; line-height: 1.66; color: var(--ink-2); margin-bottom: 10px;
}
.article-body li::marker { color: var(--honey-500); }

.article-body blockquote {
  margin: 34px auto; padding: 8px 0 8px 28px;
  border-left: 4px solid var(--honey-400);
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(22px, 2.6vw, 28px); line-height: 1.35;
  color: var(--ink); letter-spacing: -0.01em; text-wrap: balance;
}
.article-body blockquote cite {
  display: block; font-family: var(--font-sans); font-style: normal;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-4); margin-top: 14px; font-weight: 600;
}

/* example cards (reuse lesson vocabulary) */
.example-set {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: 28px auto 32px;
}
@media (max-width: 620px) { .example-set { grid-template-columns: 1fr; } }
.ex-card {
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 18px 20px;
}
.ex-card .text { font-size: 16.5px; line-height: 1.5; color: var(--ink); }
.ex-card .text strong { color: var(--honey-700); font-weight: 600; }
.ex-card .tag {
  display: inline-block; margin-top: 10px;
  font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 600;
}

/* callout / tip box */
.callout {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--honey-50); border: 1px solid var(--honey-200);
  border-radius: 18px; padding: 22px 24px; margin: 32px auto;
}
.callout .glyph {
  width: 38px; height: 38px; border-radius: 999px; flex: none;
  background: var(--honey-400); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.callout .glyph i { width: 20px; height: 20px; }
.callout .body { }
.callout .label {
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; color: var(--honey-700); margin-bottom: 5px;
}
.callout p { font-size: 16px; line-height: 1.55; color: var(--ink-2); margin: 0; max-width: none; }

/* article tags footer */
.article-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  width: min(720px, 100% - 64px); max-width: 100%; margin: 8px auto 0; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.article-tags .t {
  background: var(--card); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 7px 15px; font-size: 13px; color: var(--ink-3);
  text-decoration: none; transition: all var(--dur) var(--ease);
}
.article-tags .t:hover { background: var(--honey-100); border-color: var(--honey-400); color: var(--ink); }

/* author card */
.author-card-wrap { padding: 40px 0; }
.author-card {
  max-width: 720px; margin: 0 auto;
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 24px; padding: 28px 30px;
}
@media (max-width: 620px) { .author-card { flex-direction: column; gap: 14px; } }
.author-card .avatar {
  width: 72px; height: 72px; border-radius: 999px; object-fit: cover;
  background: var(--sand-100); flex: none; box-shadow: var(--shadow-sm);
}
.author-card .who-name {
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  letter-spacing: -0.01em; margin: 0 0 2px;
}
.author-card .who-role {
  font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--honey-600); font-weight: 600; margin-bottom: 12px;
}
.author-card p { font-size: 15px; line-height: 1.6; color: var(--ink-3); margin: 0; }

/* related posts */
.related { background: var(--paper-2); padding: 80px 0; border-top: 1px solid var(--border); }
.related-head { margin-bottom: 36px; }
.related-head .eyebrow {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 600; margin-bottom: 12px;
}
.related-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1;
  letter-spacing: -0.02em; margin: 0;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .related-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER (same as homepage)
   ============================================================ */
.footer { background: var(--ink); color: var(--paper); padding: 72px 0 32px; }
.footer .container > .top {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(251,250,247,0.12);
}
@media (max-width: 880px) { .footer .container > .top { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer .brand-block { max-width: 360px; }
.footer .brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer .brand-row img { width: 28px; height: 28px; }
.footer .brand-row .word {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  letter-spacing: -0.02em; white-space: nowrap;
}
.footer .brand-row .word .dot { color: var(--honey-300); }
.footer .signature {
  font-family: var(--font-display); font-style: italic; font-size: 16px;
  line-height: 1.4; color: rgba(251,250,247,0.78); margin: 0; text-wrap: pretty;
}
.footer h5 {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(251,250,247,0.55); font-weight: 600; margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a {
  color: rgba(251,250,247,0.85); text-decoration: none; font-size: 14.5px;
  transition: color var(--dur) var(--ease);
}
.footer a:hover { color: var(--honey-300); }
.footer .bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 28px; font-size: 12.5px; color: rgba(251,250,247,0.55);
  flex-wrap: wrap; gap: 12px;
}

/* fade-in */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out); }
.fade-in.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   PLATZHALTER-THUMBNAILS (bis echte Bilder da sind)
   ============================================================ */
.post-thumb.is-placeholder,
.featured-media.is-placeholder {
  background: linear-gradient(135deg, var(--honey-50) 0%, var(--sand-100) 100%);
}
.post-thumb.is-placeholder::after,
.featured-media.is-placeholder::after {
  content: "e";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 64px; color: var(--honey-300);
  opacity: 0.6; pointer-events: none;
}
.featured-media.is-placeholder::after { font-size: 120px; }

/* Interlink-Zeile im Artikel */
.article-body .read-more { color: var(--ink-3); }
.article-body .read-more a { font-weight: 600; }
