/* ═══════════════════════════════════════════════════════
   KŌHI — ARTIKEL / SINGLE POST  (artikel.html → single.php)
   Light Mode · Zentriertes Editorial-Layout
   Wird via wp_enqueue_style nur bei is_single() geladen.
═══════════════════════════════════════════════════════ */

/* ── Root: Vollständiger Light-Mode-Override ── */
:root {
  --bg:               #FAFAF6;
  --surface:          #F4EDE4;
  --surface-elevated: #EDE4D6;
  --text-1:           #1A0E0A;
  --text-2:           #4A3325;
  --text-3:           #8C7265;
  --accent:           #7A3E2A;
  --secondary:        #C06040;
  --border:           rgba(35, 13, 8, 0.09);
  --f5:               #F4EDE4;
  --f0:               #EDE4D6;
  --brown:            #6B3A2A;
  --espresso:         #7A3E2A;   /* Fix: war dark bg; jetzt warm-espresso als Akzent */
  --shadow-card:       0 0 0 1px rgba(35,13,8,0.05), 0 2px 8px rgba(35,13,8,0.07);
  --shadow-card-hover: 0 0 0 1px rgba(35,13,8,0.08), 0 8px 24px rgba(35,13,8,0.13);
}

body {
  background: #FAFAF6 !important;
  color: #1A0E0A !important;
}

/* ── Bild-Platzhalter: helle Variante für Light Mode ── */
.ph.dark { background: linear-gradient(145deg, #D8C8B4 0%, #A08060 100%) !important; }
.ph.mid  { background: linear-gradient(145deg, #D4B890 0%, #8A6040 100%) !important; }

/* ── Footer: Light Override ── */
footer {
  background: #F4EDE4 !important;
  border-top: 1px solid rgba(35, 13, 8, 0.09);
}
.footer-logo        { color: #1A0E0A !important; }
.footer-tagline     { color: #8C7265 !important; }
.footer-col-title   { color: #1A0E0A !important; }
.footer-links a     { color: #4A3325 !important; }
.footer-links a:hover { color: #1A0E0A !important; }
.footer-bottom      { color: #8C7265 !important; border-top-color: rgba(35,13,8,0.09) !important; }
.footer-top         { border-bottom-color: rgba(35,13,8,0.09) !important; }
.footer-legal a     { color: #8C7265 !important; }
.footer-legal a:hover { color: #1A0E0A !important; }

/* ── Nav: hell & lesbar ── */
nav.nav-scrolled {
  background: rgba(250, 250, 246, 0.92) !important;
  backdrop-filter: saturate(180%) blur(24px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(24px) !important;
  border-bottom-color: rgba(35, 13, 8, 0.08) !important;
}
.nav-links a,
.nav-logo,
.nav-search {
  color: var(--text-1) !important;
}
.nav-burger span { background: var(--text-1) !important; }
.nav-search { border-color: rgba(35, 13, 8, 0.15) !important; }

/* ── Reading Progress Bar ── */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  z-index: 300;
  pointer-events: none;
}
#reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7A3E2A 0%, #C06040 100%);
  transition: width 0.1s linear;
}

/* ═══════════════════════════════════════
   ARTIKEL HEADER — zentriert
═══════════════════════════════════════ */
.article-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 32px 48px;
  text-align: center;
}

/* Eleganter Separator unten am Header */
.article-header::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brown), transparent);
  margin: 52px auto 0;
  border-radius: 2px;
  opacity: 0.3;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}
.article-breadcrumb a { color: var(--text-3); transition: color 0.2s; }
.article-breadcrumb a:hover { color: var(--text-1); }
.article-breadcrumb span { opacity: 0.35; }

.article-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown);
  background: var(--f0);
  padding: 6px 18px;
  border-radius: 9999px;
  margin-bottom: 28px;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.035em;
  color: var(--text-1);
  margin-bottom: 24px;
}

.article-excerpt {
  font-size: 19px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto 36px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-3);
}
.article-meta-item svg { opacity: 0.45; }
.article-meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-3);
  opacity: 0.35;
}

/* ═══════════════════════════════════════
   FEATURED IMAGE
═══════════════════════════════════════ */
.article-featured-img {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px 64px;
}
.article-featured-img .ph,
.article-featured-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  box-shadow: 0 4px 32px rgba(35, 13, 8, 0.10);
  height: auto;
}

/* ═══════════════════════════════════════
   ARTIKEL BODY — schmale Prose-Spalte
═══════════════════════════════════════ */
.article-body {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 32px 96px;
}

/* Fließtext */
.article-body p {
  font-size: 17.5px;
  line-height: 1.78;
  color: var(--text-1);
  margin-bottom: 26px;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-1);
  margin: 60px 0 18px;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text-1);
  margin: 44px 0 12px;
}

.article-body ul,
.article-body ol {
  padding-left: 20px;
  margin-bottom: 26px;
}
.article-body li {
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--text-1);
  margin-bottom: 10px;
}

/* Blockquote — Pull-Quote */
.article-body blockquote {
  margin: 56px 0;
  padding: 40px 48px 40px 52px;
  background: var(--f0);
  border: none;
  border-left: 3px solid var(--brown);
  border-radius: 0 20px 20px 0;
  position: relative;
  overflow: hidden;
}
.article-body blockquote::before {
  content: '\201C';
  font-size: 96px;
  line-height: 0.75;
  color: rgba(107, 58, 42, 0.10);
  position: absolute;
  top: 24px; left: 32px;
  pointer-events: none;
  font-family: Georgia, 'Times New Roman', serif;
}
.article-body blockquote p {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-1);
  margin: 0;
  letter-spacing: -0.01em;
  position: relative;
}
.article-body blockquote cite {
  display: block;
  font-size: 13px;
  color: var(--text-3);
  margin-top: 18px;
  font-style: normal;
  letter-spacing: 0.01em;
  position: relative;
}

/* Inline Bild — plain figure + Gutenberg .wp-block-image */
.article-body figure,
.article-body .wp-block-image {
  margin: 44px -40px;
}
.article-body figure .ph,
.article-body figure img,
.article-body .wp-block-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: 0 2px 20px rgba(35, 13, 8, 0.08);
  height: auto;
}
.article-body figcaption,
.article-body .wp-element-caption {
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* Info-Box */
.article-body .info-box {
  margin: 44px 0;
  padding: 24px 28px;
  background: var(--f5);
  border-radius: 18px;
  border: 1px solid var(--border);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.article-body .info-box::before {
  content: '';
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
  align-self: stretch;
}
.article-body .info-box-inner { flex: 1; }
.article-body .info-box-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.article-body .info-box p {
  font-size: 15px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.68;
}

/* Trennlinie */
.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 56px 0;
}

/* ── Tags ── */
.article-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 36px 0 0;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.article-tags-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-right: 4px;
}
.article-tag {
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 13px;
  border: 1px solid var(--border);
  color: var(--text-2);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.article-tag:hover {
  border-color: var(--brown);
  color: var(--brown);
  background: var(--f0);
}

/* ── Social Share ── */
.article-share {
  margin: 44px 0 0;
  padding-bottom: 16px;
  text-align: center;
}
.article-share-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}
.article-share-btns {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.share-btn:hover {
  border-color: var(--brown);
  background: var(--f0);
  color: var(--brown);
}
.share-btn svg { flex-shrink: 0; }

/* ── Affiliate Card ── */
.affiliate-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1.5px solid rgba(35,13,8,.12);
  border-radius: 16px;
  padding: 18px 22px;
  margin: 28px 0;
  background: var(--f0, #faf8f6);
  text-decoration: none;
}
.affiliate-card svg { flex-shrink: 0; opacity: .45; }
.affiliate-card-content { flex: 1; min-width: 0; }
.affiliate-card-name {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-1);
}
.affiliate-card-tag {
  display: block;
  font-size: .76rem;
  opacity: .4;
  margin-top: 3px;
}
.affiliate-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 9999px;
  background: var(--text-1, #230D08);
  color: #fff !important;
  font-size: .84rem;
  font-weight: 500;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .2s;
}
.affiliate-card-btn:hover { opacity: .8; }
.affiliate-card-edit { display: none; }

@media (max-width: 600px) {
  .affiliate-card { flex-wrap: wrap; }
  .affiliate-card-btn { width: 100%; justify-content: center; }
}

/* ── Back to Top ── */
#back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brown);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, background 0.2s;
  transform: translateY(8px);
  z-index: 200;
  box-shadow: 0 4px 20px rgba(107, 58, 42, 0.28);
}
#back-to-top.btt-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-to-top:hover { background: var(--accent); }

/* ── Related Articles (Placeholder) ── */
.related-section {
  background: var(--f5);
  padding: 72px 24px;
}
.related-inner { max-width: 1200px; margin: 0 auto; }
.related-inner .section-head { margin-bottom: 40px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  nav.nav-open .nav-links a { color: rgba(255,219,210,0.72) !important; }
  nav.nav-open .nav-links li { border-bottom-color: rgba(255,219,210,0.08) !important; }
}
@media (max-width: 768px) {
  .article-header { padding: 72px 20px 36px; }
  .article-featured-img { padding: 0 20px 56px; }
  .article-body { padding: 0 20px 72px; }
  .article-body figure { margin: 36px 0; }
  .article-body blockquote { padding: 32px 28px 32px 36px; margin: 40px 0; }
  .article-title { letter-spacing: -0.025em; }
  #back-to-top { bottom: 20px; right: 20px; }
}
@media (max-width: 480px) {
  .article-excerpt { font-size: 17px; }
  .article-body p,
  .article-body li { font-size: 16.5px; }
  .article-body blockquote p { font-size: 18px; }
  .article-body figure { margin: 32px 0; }
  .related-grid { grid-template-columns: 1fr; }
}
