/* ============================================================
   Article Page: Magazin-Kapitel (C6) Design
   Used by wissen-artikel.php
   Scoped under #main for specificity over base styles.
   ============================================================ */

/* --- Reading Progress Bar --- */
.art-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  z-index: 9999;
  background: rgba(31, 26, 22, 0.06);
  pointer-events: none;
}
.art-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d81e2a, #ff6a56);
  box-shadow: 0 1px 4px rgba(216, 30, 42, 0.35);
  transition: width 0.1s linear;
}
[data-theme="dark"] .art-progress {
  background: rgba(248, 246, 244, 0.08);
}
[data-theme="dark"] .art-progress-bar {
  background: linear-gradient(90deg, #ff4757, #ffa78d);
  box-shadow: 0 1px 6px rgba(255, 71, 87, 0.45);
}

/* --- Draft Banner --- */
.art-draft-banner {
  background: #fff3cd;
  color: #856404;
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom: 2px solid #ffc107;
  letter-spacing: 0.02em;
}

/* --- Hero Header (left-aligned) --- */
#main .art-hero {
  padding: 4.5rem 1.5rem 0;
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
  background: none;
}
#main .art-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

#main .art-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #d81e2a;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  margin: 0;
}

#main h1.art-title {
  font-family: var(--font-serif, 'Fraunces', Georgia, serif);
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink, #1a1a1a);
  margin: 0;
  padding: 0;
  letter-spacing: -0.02em;
  text-align: left;
  max-width: 100%;
}

#main .art-teaser {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--muted, #555);
  margin: 0.4rem 0 0;
  text-align: left;
}

#main .art-byline {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  font-size: 0.78rem;
  color: var(--muted, #999);
  margin-top: 0.3rem;
}
#main .art-byline time,
#main .art-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.art-byline-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
}

/* --- TTS Button --- */
#main .art-tts-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: #d81e2a;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
  font-family: inherit;
  line-height: 1.4;
}
#main .art-tts-btn:hover { opacity: 0.7; }
#main .art-tts-btn:focus-visible {
  outline: 2px solid rgba(216, 30, 42, 0.4);
  outline-offset: 2px;
}

/* --- Speed selector --- */
#main .art-tts-speed {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted, #888);
  background: none;
  border: 1px solid var(--line, #ddd);
  border-radius: 6px;
  padding: 0.2rem 0.35rem;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
  min-width: 3rem;
}
#main .art-tts-speed:hover { border-color: #d81e2a; color: #d81e2a; }
#main .art-tts-speed:focus-visible { outline: 2px solid rgba(216,30,42,0.4); outline-offset: 1px; }

.art-tts-icon--pause { display: none; }
.art-tts-btn--active .art-tts-icon--play { display: none; }
.art-tts-btn--active .art-tts-icon--pause { display: block; }
.art-tts-btn--paused .art-tts-icon--play { display: block; }
.art-tts-btn--paused .art-tts-icon--pause { display: none; }

/* --- Stat Strip --- */
#main .art-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2.5px solid var(--ink, #1a1a1a);
  border-bottom: 1px solid var(--line, #eee);
  padding: 0.85rem 0;
  margin: 1.5rem 0 2.5rem;
  max-width: 700px;
}
#main .art-stat {
  text-align: center;
}
#main .art-stat + .art-stat {
  border-left: 1px solid var(--line, #eee);
}
#main .art-stat-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink, #1a1a1a);
  font-family: var(--font-serif, 'Fraunces', Georgia, serif);
  line-height: 1.2;
}
#main .art-stat-label {
  display: block;
  font-size: 0.6rem;
  color: var(--muted, #999);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
}

/* --- Hero Image --- */
#main .art-hero-image {
  max-width: 900px;
  margin: 2rem auto 2.5rem;
  padding: 0 1.5rem;
}
#main .art-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  border: none;
}

/* --- Article Body --- */
#main .art-body {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* --- Article Content Typography --- */
#main .art-content {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--ink, #2a2a2a);
  counter-reset: art-section;
}

#main .art-content h2 {
  font-family: var(--font-serif, 'Fraunces', Georgia, serif);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 3rem 0 1rem;
  padding: 0;
  color: var(--ink, #1a1a1a);
  letter-spacing: -0.01em;
  text-align: left;
}

/* Section headings with red accent line */
#main .art-content h3 {
  font-family: var(--font-serif, 'Fraunces', Georgia, serif);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 3rem 0 0.8rem;
  padding: 2rem 0 0 0;
  color: var(--ink, #1a1a1a);
  position: relative;
  text-align: left;
}
#main .art-content h3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: linear-gradient(90deg, #d81e2a, transparent);
  border-radius: 2px;
}

#main .art-content p {
  margin: 0 0 1.25rem;
  padding: 0;
}

#main .art-content strong {
  font-weight: 700;
  color: var(--ink, #1a1a1a);
}

/* --- Lists --- */
#main .art-content ul,
#main .art-content ol {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
#main .art-content ul li,
#main .art-content ol li {
  position: relative;
  padding: 0 0 0 1.2rem;
  margin: 0 0 0.5rem;
  line-height: 1.75;
}
#main .art-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d81e2a;
}
#main .art-content ol { counter-reset: article-ol; }
#main .art-content ol li { counter-increment: article-ol; }
#main .art-content ol li::before {
  content: counter(article-ol) '.';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #d81e2a;
  font-size: 0.95rem;
}

/* --- Inline article images --- */
#main .art-content figure {
  margin: 2rem 0;
  padding: 0;
}
#main .art-content figure img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
#main .art-content figcaption {
  font-size: 0.78rem;
  color: var(--muted, #888);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* --- Blockquotes --- */
#main .art-content blockquote {
  margin: 2rem 0;
  padding: 1.15rem 1.4rem;
  background: var(--bg-alt, #faf8f5);
  border: none;
  border-left: 3px solid #d81e2a;
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--ink, #555);
  position: relative;
}
#main .art-content blockquote strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d81e2a;
  font-weight: 700;
}
#main .art-content blockquote p {
  margin: 0;
  padding: 0;
}

/* --- Article Footer/Nav --- */
#main .art-footer {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px solid var(--line, #eee);
}

/* ============================================================
   Dark Mode
   ============================================================ */
[data-theme="dark"] .art-draft-banner {
  background: #3d3520;
  color: #ffc107;
  border-color: #665a30;
}
[data-theme="dark"] #main .art-category {
  color: #ff6b73;
}
[data-theme="dark"] #main .art-stats {
  border-top-color: #e0e0e0;
  border-bottom-color: #2a2a2a;
}
[data-theme="dark"] #main .art-stat + .art-stat {
  border-left-color: #2a2a2a;
}
[data-theme="dark"] #main .art-stat-value {
  color: #f0f0f0;
}
[data-theme="dark"] #main .art-hero-image img {
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
[data-theme="dark"] #main .art-content h3::before {
  background: linear-gradient(90deg, #ff6b73, transparent);
}
[data-theme="dark"] #main .art-content ul li::before {
  background: #ff6b73;
}
[data-theme="dark"] #main .art-content ol li::before {
  color: #ff6b73;
}
[data-theme="dark"] #main .art-content blockquote {
  background: #1e1e1e;
  border-left-color: #ff6b73;
}
[data-theme="dark"] #main .art-content blockquote strong {
  color: #ff6b73;
}
[data-theme="dark"] #main .art-tts-btn {
  color: #ff6b73;
}
[data-theme="dark"] #main .art-tts-speed {
  border-color: var(--line, #3a3a3a);
  color: #888;
}
[data-theme="dark"] #main .art-tts-speed:hover {
  border-color: #ff6b73;
  color: #ff6b73;
}
[data-theme="dark"] #main .art-footer {
  border-top-color: #2a2a2a;
}

/* ============================================================
   Related Articles (Weiterlesen)
   ============================================================ */
#main .art-related {
  max-width: 780px;
  margin: 3rem auto 0;
  padding: 2.5rem 1.5rem 0;
  border-top: 1px solid rgba(31, 26, 22, 0.08);
}
#main .art-related-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 600;
  color: var(--ink, #1f1a16);
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}
#main .art-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
#main .art-related-item {
  margin: 0;
}
#main .art-related-link {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.1rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(31, 26, 22, 0.08);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
#main .art-related-link:hover {
  border-color: rgba(216, 30, 42, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 26, 22, 0.08);
}
#main .art-related-link:focus-visible {
  outline: 3px solid rgba(216, 30, 42, 0.4);
  outline-offset: 2px;
}
#main .art-related-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(31, 26, 22, 0.05);
}
#main .art-related-img--placeholder {
  background: linear-gradient(135deg, rgba(216, 30, 42, 0.08), rgba(31, 122, 56, 0.08));
}
#main .art-related-meta {
  min-width: 0;
}
#main .art-related-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d81e2a;
  margin-bottom: 0.35rem;
}
#main .art-related-heading {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink, #1f1a16);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}
#main .art-related-teaser {
  font-size: 0.88rem;
  color: var(--muted, #3d332c);
  margin: 0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-theme="dark"] #main .art-related { border-top-color: #2a2a2a; }
[data-theme="dark"] #main .art-related-link {
  border-color: #2a2a2a;
  background: rgba(255, 255, 255, 0.02);
}
[data-theme="dark"] #main .art-related-link:hover {
  border-color: rgba(255, 106, 86, 0.5);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] #main .art-related-heading { color: #f5f0eb; }
[data-theme="dark"] #main .art-related-category { color: #ff6a56; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
  #main .art-hero { padding: 2.5rem 1rem 0; }
  #main .art-body { padding: 0 1rem 2rem; }
  #main .art-footer { padding: 1.5rem 1rem 3rem; }
  #main .art-hero-image { padding: 0 1rem; }
  #main .art-content h3 { padding-top: 1.5rem; }
  #main .art-byline { gap: 0.5rem; }
  #main .art-stats { grid-template-columns: repeat(3, 1fr); }
  #main .art-related { padding: 2rem 1rem 0; }
  #main .art-related-link { grid-template-columns: 80px 1fr; gap: 0.85rem; padding: 0.75rem; }
  #main .art-related-img { height: 80px; }
  #main .art-related-heading { font-size: 1rem; }
  #main .art-related-teaser { -webkit-line-clamp: 2; }
}

@media (max-width: 480px) {
  #main .art-tts-label { display: none; }
  #main .art-tts-btn { padding: 0.35rem 0.5rem; }
}

/* ============================================================
   Segmentierte Artikel: TOC + Collapsible Sections
   ============================================================ */

#main .art-intro,
#main .art-outro {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
  color: var(--ink, #1f1a16);
}
#main .art-intro > p:first-child { font-size: 1.08rem; line-height: 1.65; }

/* TOC */
#main .art-toc {
  max-width: 760px;
  margin: 2.5rem auto 1.25rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(31, 26, 22, 0.08);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(216, 30, 42, 0.03), rgba(31, 122, 56, 0.03));
}
#main .art-toc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}
#main .art-toc-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #d81e2a;
}
#main .art-toc-toggle-all {
  background: transparent;
  border: 1px solid rgba(31, 26, 22, 0.18);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink, #1f1a16);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
#main .art-toc-toggle-all:hover {
  background: rgba(216, 30, 42, 0.08);
  border-color: rgba(216, 30, 42, 0.4);
}
#main .art-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: art-toc;
}
#main .art-toc-list li { margin: 0 0 0.25rem; }
#main .art-toc-list a {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink, #1f1a16);
  font-size: 0.95rem;
  transition: background 0.15s ease;
}
#main .art-toc-list a:hover {
  background: rgba(216, 30, 42, 0.06);
}
#main .art-toc-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #d81e2a;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
#main .art-toc-title { line-height: 1.4; }
#main .art-toc-duration {
  font-size: 0.78rem;
  color: var(--muted, #3d332c);
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}

/* Sections (<details>) */
#main .art-section {
  max-width: 760px;
  margin: 0 auto 0.7rem;
  padding: 0;
  border: 1px solid rgba(31, 26, 22, 0.1);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface, #fff);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#main .art-section:hover { border-color: rgba(216, 30, 42, 0.3); }
#main .art-section[open] {
  border-color: rgba(216, 30, 42, 0.35);
  box-shadow: 0 4px 20px rgba(31, 26, 22, 0.05);
}

#main .art-section-summary {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}
#main .art-section-summary::-webkit-details-marker { display: none; }
#main .art-section-summary:hover { background: rgba(216, 30, 42, 0.03); }
#main .art-section[open] > .art-section-summary {
  border-bottom: 1px solid rgba(31, 26, 22, 0.08);
  background: rgba(216, 30, 42, 0.03);
}

#main .art-section-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #d81e2a;
  letter-spacing: 0.05em;
  min-width: 1.6rem;
}
#main .art-section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink, #1f1a16);
}
#main .art-section-play {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(216, 30, 42, 0.35);
  background: rgba(216, 30, 42, 0.06);
  color: #d81e2a;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: background 0.15s ease, transform 0.12s ease;
}
#main .art-section-play:hover { background: rgba(216, 30, 42, 0.14); transform: translateY(-1px); }
#main .art-section-play .art-section-pause-icon { display: none; }
#main .art-section-play.is-playing {
  background: #d81e2a;
  color: #fff;
  border-color: #d81e2a;
}
#main .art-section-play.is-playing .art-section-play-icon:not(.art-section-pause-icon) { display: none; }
#main .art-section-play.is-playing .art-section-pause-icon { display: inline; }

#main .art-section-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(31, 26, 22, 0.5);
  border-bottom: 2px solid rgba(31, 26, 22, 0.5);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.25s ease, margin 0.25s ease;
}
#main .art-section[open] > .art-section-summary .art-section-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
  border-color: #d81e2a;
}
#main .art-section-summary:focus-visible {
  outline: 3px solid rgba(216, 30, 42, 0.35);
  outline-offset: -2px;
}

#main .art-section-body {
  padding: 1.2rem 1.4rem 1.5rem;
  animation: art-section-open 0.35s ease;
}
@keyframes art-section-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  #main .art-section-body { animation: none; }
  #main .art-section,
  #main .art-section-chevron { transition: none; }
}

/* Outro */
#main .art-outro {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px dashed rgba(216, 30, 42, 0.25);
}
#main .art-outro h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 600;
  color: #d81e2a;
  margin: 0 0 1rem;
}

/* Print: alle Sections offen */
@media print {
  #main .art-section[open],
  #main .art-section { border: none; box-shadow: none; }
  #main .art-section > .art-section-body { display: block !important; padding: 0; }
  #main .art-section > .art-section-summary { padding: 0.6rem 0; border: none; background: none; }
  #main .art-section-chevron,
  #main .art-section-play { display: none !important; }
  #main .art-toc-toggle-all { display: none !important; }
}

/* Theme-Varianten */
[data-theme="dark"] #main .art-toc {
  background: linear-gradient(135deg, rgba(255, 106, 86, 0.05), rgba(126, 192, 136, 0.05));
  border-color: rgba(248, 246, 244, 0.1);
}
[data-theme="dark"] #main .art-section {
  background: #221d1b;
  border-color: rgba(248, 246, 244, 0.1);
}
[data-theme="dark"] #main .art-section:hover { border-color: rgba(255, 106, 86, 0.4); }
[data-theme="dark"] #main .art-section[open] {
  border-color: rgba(255, 106, 86, 0.5);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] #main .art-section[open] > .art-section-summary { background: rgba(255, 106, 86, 0.06); }
[data-theme="dark"] #main .art-section-title { color: #f5f0eb; }
[data-theme="sepia"] #main .art-toc { border-color: rgba(74, 58, 44, 0.2); }
[data-theme="sepia"] #main .art-section { background: #faf3e0; border-color: rgba(74, 58, 44, 0.18); }
[data-theme="sepia"] #main .art-section-title { color: #3a2d21; }
[data-theme="contrast"] #main .art-section {
  background: #000 !important;
  border: 2px solid #ffd400 !important;
}
[data-theme="contrast"] #main .art-section-title,
[data-theme="contrast"] #main .art-section-num,
[data-theme="contrast"] #main .art-toc-num,
[data-theme="contrast"] #main .art-toc-kicker { color: #ffd400 !important; }
[data-theme="contrast"] #main .art-section-play {
  background: #ffd400 !important;
  color: #000 !important;
  border-color: #ffd400 !important;
  font-weight: 800;
}
[data-theme="contrast"] #main .art-section-chevron { border-color: #ffd400 !important; }

/* Lese-Statistik + Share-Tools (#207 + #204) */
#main .art-view-count {
  max-width: 720px;
  margin: 2rem auto 0.5rem;
  padding: 0 1.5rem;
  font-size: 0.85rem;
  color: var(--muted, #3d332c);
  text-align: right;
}
#main .art-view-count strong { color: var(--ink, #1f1a16); font-weight: 600; }
#main .art-share-tools {
  max-width: 720px;
  margin: 1rem auto 0;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}
#main .art-share-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  background: rgba(31, 26, 22, 0.05);
  color: var(--ink, #1f1a16);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease;
}
#main .art-share-link:hover {
  background: rgba(216, 30, 42, 0.08);
  color: var(--accent, #d81e2a);
}
[data-theme="dark"] #main .art-share-link {
  background: rgba(255, 255, 255, 0.06);
  color: #f5f0eb;
}
[data-theme="dark"] #main .art-share-link:hover {
  background: rgba(255, 106, 86, 0.15);
  color: #ff6a56;
}

/* Zitat-Popover (#208) */
.art-quote-popover {
  position: absolute;
  z-index: 100;
  pointer-events: auto;
}
.art-quote-popover[hidden] { display: none; }
.art-quote-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: #1f1a16;
  color: #f5f0eb;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}
.art-quote-btn:hover { background: #d81e2a; transform: translateY(-1px); }
[data-theme="contrast"] .art-quote-btn { background: #ffd400; color: #000; }
