/* ═══════════════════════════════════════════════
   KITSCHKÖNIG BLOG – Gemeinsames Stylesheet
   Gilt für: index.html, alle Artikel-Seiten
   ═══════════════════════════════════════════════ */

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

:root {
  --bg:          #111614;
  --surface:     #1A1F1E;
  --surface2:    #222927;
  --forest:      #1E3B31;
  --forest-l:    #2A5244;
  --gold:        #D4A04A;
  --gold-l:      #E8C07A;
  --gold-dim:    #B8883A;
  --border:      #2A302E;
  --radius:      4px;
  --max:         1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--gold);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── LINKS ─────────────────────────────────── */
a { color: var(--gold-l); }
a:hover { color: #fff; }

/* ── CONTAINER ──────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }

/* ── NAV ────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(17,22,20,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 900;
  color: var(--gold); text-decoration: none;
}
.nav-logo span { color: var(--gold-l); }

.nav-links {
  display: flex; gap: 1.75rem; list-style: none; align-items: center;
}
.nav-links a {
  text-decoration: none; color: var(--gold-dim);
  font-size: 0.88rem; font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.nav-active { color: var(--gold); }

.nav-cta {
  background: var(--forest); color: var(--gold) !important;
  padding: 0.45rem 1.1rem; border-radius: var(--radius);
  font-weight: 500 !important; border: 1px solid var(--forest-l);
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--forest-l) !important; }

.nav-burger { display: none; background: none; border: none; color: var(--gold); font-size: 1.4rem; cursor: pointer; }

/* ── BLOG HERO ──────────────────────────────── */
.blog-hero {
  background: var(--forest);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem 3.5rem;
  position: relative; overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute; right: -10%; top: -20%; width: 50%; height: 140%;
  background: var(--forest-l); opacity: 0.3;
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.blog-hero-inner { max-width: var(--max); margin: 0 auto; position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold-l); border: 1px solid rgba(232,192,122,0.3);
  padding: 0.3rem 0.9rem; border-radius: 2px; margin-bottom: 1rem;
}

.blog-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 900;
  color: var(--gold-l); line-height: 1.2; margin-bottom: 1rem;
}
.blog-hero p {
  font-size: 1rem; color: var(--gold-dim); font-weight: 300;
  max-width: 560px; line-height: 1.8;
}

/* ── BLOG MAIN ──────────────────────────────── */
.blog-main { padding: 4rem 2rem; }

/* ── FEATURED POST ──────────────────────────── */
.post-featured {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; margin-bottom: 3rem;
}

.post-featured-img {
  position: relative; min-height: 340px; overflow: hidden;
}
.post-featured-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform 0.4s;
}
.post-featured:hover .post-featured-img img { transform: scale(1.03); }

.post-featured-text {
  padding: 2.5rem;
  display: flex; flex-direction: column; justify-content: center; gap: 1rem;
}
.post-featured-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700; line-height: 1.3;
}
.post-featured-text h2 a {
  color: var(--gold-l); text-decoration: none; transition: color 0.2s;
}
.post-featured-text h2 a:hover { color: #fff; }
.post-featured-text p { font-size: 0.9rem; color: var(--gold-dim); font-weight: 300; line-height: 1.8; }

/* ── POST GRID ──────────────────────────────── */
.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-bottom: 3rem;
}

.post-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.post-card:hover { border-color: var(--gold-dim); transform: translateY(-3px); }

.post-card-img {
  position: relative; height: 200px; overflow: hidden;
}
.post-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s;
}
.post-card:hover .post-card-img img { transform: scale(1.05); }

.post-card-body { padding: 1.5rem; }
.post-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin-bottom: 0.6rem;
}
.post-card-body h3 a { color: var(--gold-l); text-decoration: none; transition: color 0.2s; }
.post-card-body h3 a:hover { color: #fff; }
.post-card-body p { font-size: 0.83rem; color: var(--gold-dim); line-height: 1.7; font-weight: 300; margin-bottom: 1rem; }

/* NEW CARD PLACEHOLDER */
.post-card-new {
  border: 1px dashed var(--border) !important;
  background: transparent !important;
}
.post-card-new-inner {
  padding: 2rem 1.5rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 0.75rem; height: 100%; justify-content: center;
}
.new-icon { font-size: 2rem; }
.post-card-new h3 { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--gold-dim); }
.post-card-new p { font-size: 0.82rem; color: var(--gold-dim); opacity: 0.7; }

/* ── POST META ──────────────────────────────── */
.post-meta {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.post-cat {
  background: rgba(212,160,74,0.12); border: 1px solid rgba(212,160,74,0.25);
  color: var(--gold); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 0.2rem 0.65rem; border-radius: 2px;
}
.post-date, .post-read {
  font-size: 0.75rem; color: var(--gold-dim); font-weight: 300;
}
.post-date::before { content: '·'; margin-right: 0.5rem; }

/* ── BUTTONS ────────────────────────────────── */
.btn-read {
  display: inline-block; margin-top: 0.5rem;
  background: var(--gold); color: #111614;
  padding: 0.7rem 1.5rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 500; font-size: 0.88rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-read:hover { background: var(--gold-l); color: #111614; transform: translateY(-1px); }

.post-link {
  font-size: 0.83rem; font-weight: 500; color: var(--gold);
  text-decoration: none; transition: color 0.2s;
}
.post-link:hover { color: var(--gold-l); }

.btn-wa {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #25D366; color: #fff; text-decoration: none;
  padding: 0.7rem 1.25rem; border-radius: var(--radius);
  font-weight: 500; font-size: 0.88rem;
  transition: filter 0.2s;
}
.btn-wa:hover { filter: brightness(1.1); color: #fff; }
.btn-wa svg { width: 18px; height: 18px; fill: #fff; flex-shrink: 0; }

.btn-tel {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--surface2); color: var(--gold); text-decoration: none;
  padding: 0.7rem 1.25rem; border-radius: var(--radius);
  border: 1px solid var(--border); font-size: 0.88rem;
  transition: border-color 0.2s;
}
.btn-tel:hover { border-color: var(--gold-dim); color: var(--gold-l); }

/* ── BLOG CTA BANNER ────────────────────────── */
.blog-cta {
  background: var(--forest);
  border: 1px solid var(--forest-l);
  border-radius: 8px; overflow: hidden;
  margin-bottom: 2rem;
}
.blog-cta-inner {
  padding: 2.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.blog-cta-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700; color: var(--gold-l); margin-bottom: 0.5rem;
}
.blog-cta-text p { font-size: 0.9rem; color: var(--gold-dim); font-weight: 300; max-width: 480px; }
.blog-cta-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── IMAGE PLACEHOLDER ──────────────────────── */
.img-placeholder {
  display: none; /* shown via onerror JS */
  position: absolute; inset: 0;
  background: var(--surface2);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 0.75rem;
  padding: 1.5rem; text-align: center;
}
.img-placeholder svg {
  width: 40px; height: 40px;
  stroke: var(--gold-dim); fill: none; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.5;
}
.img-placeholder span { font-size: 0.75rem; color: var(--gold-dim); opacity: 0.6; line-height: 1.5; }
.img-placeholder.small svg { width: 28px; height: 28px; }

/* ── ARTICLE PAGE ───────────────────────────── */
.article-hero {
  background: var(--forest);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 2rem;
}
.article-hero-inner { max-width: 760px; margin: 0 auto; }
.article-hero .post-meta { margin-bottom: 1rem; }
.article-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900;
  color: var(--gold-l); line-height: 1.2; margin-bottom: 1rem;
}
.article-hero .article-excerpt {
  font-size: 1.05rem; color: var(--gold-dim); font-weight: 300; line-height: 1.8;
}

.article-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 3rem;
  max-width: var(--max); margin: 0 auto; padding: 3.5rem 2rem;
  align-items: start;
}

/* ARTICLE BODY */
.article-body { min-width: 0; }

.article-cover {
  width: 100%; border-radius: 6px; margin-bottom: 2.5rem;
  overflow: hidden; position: relative; min-height: 360px;
}
.article-cover img { width: 100%; height: 360px; object-fit: cover; display: block; }

.article-content { color: var(--gold-dim); font-size: 0.97rem; line-height: 1.85; font-weight: 300; }
.article-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700; color: var(--gold-l);
  margin: 2.5rem 0 0.85rem;
}
.article-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700; color: var(--gold);
  margin: 2rem 0 0.65rem;
}
.article-content p { margin-bottom: 1.25rem; }
.article-content strong { color: var(--gold); font-weight: 500; }
.article-content ul, .article-content ol {
  padding-left: 1.5rem; margin-bottom: 1.25rem;
}
.article-content li { margin-bottom: 0.5rem; }
.article-content a { color: var(--gold); text-decoration: underline; }
.article-content a:hover { color: var(--gold-l); }

.article-content .highlight-box {
  background: var(--surface); border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0; padding: 1.25rem 1.5rem;
  margin: 1.75rem 0; color: var(--gold);
}
.article-content .highlight-box p { margin-bottom: 0; }

/* ARTICLE IMAGES */
.article-img-wrap {
  margin: 2rem 0; border-radius: 6px; overflow: hidden; position: relative;
}
.article-img-wrap img { width: 100%; display: block; border-radius: 6px; }
.article-img-wrap figcaption {
  font-size: 0.78rem; color: var(--gold-dim); opacity: 0.7;
  text-align: center; margin-top: 0.5rem; font-style: italic;
}

/* SIDEBAR */
.article-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 1.5rem;
}
.sidebar-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700; color: var(--gold-l); margin-bottom: 1rem;
}
.sidebar-card p { font-size: 0.83rem; color: var(--gold-dim); font-weight: 300; margin-bottom: 1rem; line-height: 1.7; }

.sidebar-links { list-style: none; }
.sidebar-links li { border-bottom: 1px solid var(--border); padding: 0.6rem 0; }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a { font-size: 0.83rem; color: var(--gold-dim); text-decoration: none; transition: color 0.2s; }
.sidebar-links a:hover { color: var(--gold-l); }

/* BACK LINK */
.back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; color: var(--gold-dim); text-decoration: none;
  margin-bottom: 2.5rem; transition: color 0.2s;
}
.back-link:hover { color: var(--gold); }
.back-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ── FOOTER ─────────────────────────────────── */
footer {
  background: #080C0A;
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 1.5rem;
  color: var(--gold-dim);
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 900; color: var(--gold); margin-bottom: 0.65rem;
}
.footer-brand span { color: var(--gold-l); }
footer p { font-size: 0.83rem; line-height: 1.7; font-weight: 300; }
.footer-col h5 {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gold-dim);
  opacity: 0.7; margin-bottom: 0.85rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.45rem; }
.footer-col ul a { color: var(--gold-dim); text-decoration: none; font-size: 0.83rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--gold-l); }
.footer-bottom { font-size: 0.78rem; color: var(--gold-dim); opacity: 0.6; }
.footer-bottom a { color: var(--gold-dim); }

/* ── SCROLL ANIMATIONS ──────────────────────── */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── MOBILE ─────────────────────────────────── */
@media (max-width: 900px) {
  .post-featured { grid-template-columns: 1fr; }
  .post-featured-img { min-height: 240px; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .blog-cta-inner { flex-direction: column; }
}
