/* ── TCG Blog — Design System ─────────────────────────────── */
/* Basierend auf champagne-guy.com: Cormorant Garamond + Tenor Sans, Gold/Sand */

:root {
  --gold:        #a8813a;
  --gold-light:  #c9a55a;
  --gold-dim:    #c9a55a;
  --sand:        #f7f3ec;
  --sand2:       #ede7db;
  --sand3:       #e2d9cc;
  --paper:       #faf8f4;
  --ink:         #1a1714;
  --ink2:        #3d3730;
  --text:        #2e2820;
  --text-muted:  #8c7e6e;
  --border:      rgba(168,129,58,0.18);
  --border-soft: rgba(168,129,58,0.1);
  --shadow:      0 2px 16px rgba(30,20,10,0.07);
  --shadow-md:   0 4px 32px rgba(30,20,10,0.1);
  --max-w:       740px;
  --max-w-wide:  1080px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--text);
  font-family: 'Tenor Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Subtle grain */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: -1; opacity: 0.4;
}

/* Warm gradient */
body::after {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; height: 320px;
  background: linear-gradient(180deg, rgba(201,165,90,0.06) 0%, transparent 100%);
  pointer-events: none; z-index: -1;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ink); }

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

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,244,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 14px 24px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.site-header__logo {
  text-decoration: none;
}

.site-header__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.site-header__nav {
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-group {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-dim);
  margin: 0 14px;
  flex-shrink: 0;
}

.site-header__nav a {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}

.site-header__nav a:hover {
  color: var(--gold);
}

/* ── Language Switcher ───────────────────────────────────── */
.lang-switch {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.lang-switch a {
  font-size: 18px;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
  line-height: 1;
}

.lang-switch a:hover {
  opacity: 1;
  transform: scale(1.15);
}

.lang-switch a.lang-switch__item--active {
  opacity: 1;
}

/* ── Main ─────────────────────────────────────────────────── */
.site-main {
  position: relative;
  z-index: 1;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ── Breadcrumbs ──────────────────────────────────────────── */
.breadcrumbs {
  margin-bottom: 32px;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumbs li:not(:last-child)::after {
  content: '›';
  margin-left: 4px;
  color: var(--sand3);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--gold);
}

.breadcrumbs [aria-current] {
  color: var(--text);
}

/* ── Blog Hero ────────────────────────────────────────────── */
.blog-hero {
  text-align: center;
  padding: 60px 0 48px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.blog-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(36px, 7vw, 64px);
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 12px;
}

.blog-hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.blog-hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ── Categories Grid ──────────────────────────────────────── */
.blog-categories,
.blog-recent {
  margin-top: 56px;
}

.blog-categories h2,
.blog-recent h2,
.category-page__header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 28px;
  color: var(--ink);
  margin-bottom: 24px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.cat-card {
  display: block;
  padding: 28px 24px;
  background: var(--sand);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  transition: box-shadow 0.25s, border-color 0.25s;
  text-decoration: none;
}

.cat-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.cat-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 8px;
}

.cat-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.cat-count {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Article Grid ─────────────────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.article-card {
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 24px;
}

.article-card a {
  display: block;
  text-decoration: none;
}

.article-card__cat {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
  display: block;
}

.article-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 6px;
  transition: color 0.2s;
}

.article-card a:hover h3 {
  color: var(--gold);
}

.article-card time {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.article-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Category Page ────────────────────────────────────────── */
.category-page__header {
  margin-bottom: 40px;
}

.category-page__desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: var(--max-w);
}

.empty {
  color: var(--text-muted);
  font-style: italic;
}

/* ── Article ──────────────────────────────────────────────── */
.article {
  max-width: var(--max-w);
  margin: 0 auto;
}

.article__header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-soft);
}

.article__category {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 12px;
}

.article__header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(32px, 6vw, 48px);
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 16px;
}

.article__meta {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ── Prose (Article Body) ─────────────────────────────────── */
.prose h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 28px;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.prose h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  margin-top: 36px;
  margin-bottom: 12px;
}

.prose p {
  margin-bottom: 20px;
}

.prose ul, .prose ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 8px;
}

.prose blockquote {
  border-left: 3px solid var(--gold);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--sand);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--ink2);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.prose th, .prose td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft);
}

.prose th {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: normal;
}

/* ── IG Cards ─────────────────────────────────────────────── */
.ig-card {
  display: inline-flex;
  flex-direction: column;
  width: 280px;
  margin: 16px 12px 16px 0;
  vertical-align: top;
  background: var(--sand);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.ig-card:hover {
  box-shadow: var(--shadow);
}

.ig-card a {
  display: block;
}

.ig-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.ig-card a:empty {
  display: none;
}

.ig-card figcaption {
  padding: 12px 14px;
}

.ig-card figcaption p {
  font-size: 12px;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ig-card__meta {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.ig-card__no-link {
  pointer-events: none;
}

/* ── IG Gallery (consecutive cards) ──────────────────────── */
.ig-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
  clear: both;
}

.ig-gallery .ig-card {
  width: 100%;
  margin: 0;
}

/* Single standalone card: center it, limit width so it doesn't span full column */
.ig-gallery--single {
  grid-template-columns: minmax(0, 320px);
  justify-content: center;
}

@media (max-width: 640px) {
  .ig-card {
    width: 100%;
    margin-right: 0;
  }

  .ig-gallery {
    grid-template-columns: 1fr;
  }
}

/* ── Tags ─────────────────────────────────────────────────── */
.article__footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}

.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--sand);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
}

/* ── Related ──────────────────────────────────────────────── */
.related {
  max-width: var(--max-w);
  margin: 56px auto 0;
}

.related h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 20px;
}

.related ul {
  list-style: none;
}

.related li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.related li a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--ink);
}

.related li a:hover {
  color: var(--gold);
}

.related li span {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Article Inline Chat ──────────────────────────────────── */
.article-chat {
  max-width: var(--max-w);
  margin: 64px auto 0;
}

.article-chat__inner {
  padding: 32px;
  background: var(--sand);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
}

.article-chat h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 8px;
}

.article-chat__intro {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.article-chat__messages {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.article-chat__msg {
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 85%;
}

.article-chat__msg--user {
  background: var(--gold);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 2px;
}

.article-chat__msg--bot {
  background: var(--paper);
  color: var(--text);
  border: 1px solid var(--border-soft);
  border-bottom-left-radius: 2px;
}

.article-chat__input {
  display: flex;
  gap: 8px;
}

.article-chat__input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Tenor Sans', sans-serif;
  font-size: 14px;
  background: var(--paper);
  color: var(--text);
  outline: none;
}

.article-chat__input input:focus {
  border-color: var(--gold);
}

.article-chat__input input:disabled {
  opacity: 0.5;
}

.article-chat__input button {
  padding: 10px 16px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.article-chat__input button:hover {
  background: var(--ink);
}

.article-chat__hint {
  font-size: 11px;
  color: var(--sand3);
  margin-top: 8px;
  text-align: center;
}

.article-chat__msg--typing {
  opacity: 0.5;
  font-style: italic;
}

/* Lead form */
.article-chat__lead {
  padding: 16px 0;
}

.article-chat__lead p {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 12px;
}

.article-chat__lead-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.article-chat__lead-form input {
  flex: 1;
  min-width: 140px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Tenor Sans', sans-serif;
  font-size: 14px;
  background: var(--paper);
  color: var(--text);
  outline: none;
}

.article-chat__lead-form input:focus {
  border-color: var(--gold);
}

.article-chat__lead-form button {
  padding: 10px 20px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Tenor Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}

.article-chat__lead-form button:hover {
  background: var(--ink);
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--gold);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--ink);
  color: #fff;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-soft);
  margin-top: 80px;
  padding: 48px 24px;
}

.site-footer__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  text-align: center;
}

.site-footer__logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 20px;
  color: var(--ink);
  display: block;
  margin-bottom: 8px;
}

.site-footer__brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.site-footer__links a {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.site-footer__links a:hover {
  color: var(--gold);
}

.site-footer__copy {
  font-size: 12px;
  color: var(--sand3);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .site-header__inner {
    gap: 8px;
  }

  .site-header__nav {
    justify-content: center;
  }

  .nav-group {
    gap: 10px;
  }

  .nav-sep {
    margin: 0 10px;
  }

  .lang-switch {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    justify-content: center;
  }

  .site-main {
    padding: 24px 16px 60px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .cat-grid {
    grid-template-columns: 1fr;
  }

  .related li {
    flex-direction: column;
    gap: 4px;
  }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  body::before, body::after { display: none; }
  .site-header, .site-footer, .chat-cta, .breadcrumbs { display: none; }
  .site-main { padding: 0; max-width: 100%; }
  .article { max-width: 100%; }
  .prose { font-size: 12pt; }
}
