/* ═══════════════════════════════════════════
   CHINA MUSEUM — Dark Edition
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #C0392B;
  --red-dim:    #7A1A10;
  --gold:       #D4A843;
  --bg:         #0C0C0E;
  --bg2:        #111116;
  --bg3:        #16161C;
  --surface:    #1C1C24;
  --surface2:   #22222C;
  --ink:        #E8E4DC;
  --ink-mid:    rgba(232,228,220,0.6);
  --ink-muted:  rgba(232,228,220,0.32);
  --border:     rgba(255,255,255,0.07);
  --border-mid: rgba(255,255,255,0.13);
  --glow-red:   rgba(192,57,43,0.14);
  --glow-gold:  rgba(212,168,67,0.1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'EB Garamond', Georgia, serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* NAV */
#sticky-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12,12,14,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: stretch; justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 0.78rem; color: var(--gold);
  padding: 0 1.5rem; display: flex; align-items: center;
  white-space: nowrap; letter-spacing: 0.12em;
  text-decoration: none; text-transform: uppercase;
}
.nav-rooms { display: flex; flex: 1; justify-content: flex-end; }
.nav-room-btn {
  background: none; border: none;
  border-left: 1px solid var(--border);
  padding: 0 1rem; color: var(--ink-muted);
  font-family: 'EB Garamond', serif; font-size: 0.76rem;
  cursor: pointer; transition: background 0.18s, color 0.18s;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; min-height: 52px;
  min-width: 85px; text-align: center; line-height: 1.3;
  text-decoration: none;
}
.nav-room-btn:hover { color: var(--ink); background: rgba(255,255,255,0.03); }
.nav-room-btn.active { color: var(--ink); background: var(--red); }
.nav-room-num { font-family: 'Playfair Display', serif; font-size: 0.9rem; color: var(--gold); }
.nav-room-btn.active .nav-room-num { color: rgba(255,255,255,0.55); }

/* ROOM BANNER */
.room-banner {
  background: var(--bg2); padding: 5rem 3rem 3.5rem;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.room-banner::before {
  content: attr(data-roman);
  position: absolute; right: -1rem; top: 50%;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 16rem; font-weight: 700;
  color: rgba(255,255,255,0.018);
  line-height: 1; pointer-events: none; user-select: none;
}
.room-banner-inner { max-width: 900px; position: relative; z-index: 1; }
.room-eyebrow { font-size: 0.66rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; opacity: 0.85; font-family: 'EB Garamond', serif; }
.room-heading { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 600; color: var(--ink); line-height: 1.15; margin-bottom: 1rem; max-width: 700px; }
.room-intro { font-size: 1rem; color: var(--ink-muted); font-style: italic; max-width: 580px; line-height: 1.8; }

/* GRID */
.room-body { padding: 3rem; }
.exhibit-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; max-width: 1100px; margin: 0 auto; }
.col-12 { grid-column: span 12; }
.col-8  { grid-column: span 8; }
.col-6  { grid-column: span 6; }
.col-4  { grid-column: span 4; }

/* CARDS */
.exhibit-card { background: var(--bg3); border: 1px solid var(--border); border-radius: 3px; overflow: hidden; transition: border-color 0.25s, box-shadow 0.25s; }
.exhibit-card:hover { border-color: var(--border-mid); box-shadow: 0 8px 40px rgba(0,0,0,0.5); }
.card-body { padding: 1.25rem 1.4rem 1.5rem; }
.card-tag { font-size: 0.63rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; font-family: 'EB Garamond', serif; }
.card-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; line-height: 1.3; }
.card-text { font-size: 0.88rem; color: var(--ink-mid); line-height: 1.8; }
.dark-card { background: var(--surface); border: 1px solid var(--border); border-radius: 3px; padding: 1.75rem; }
.dark-card .card-tag { color: var(--gold); }
.dark-card .card-title { color: var(--ink); }
.dark-card .card-text { color: var(--ink-mid); }

/* QUOTE */
.quote-block { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--red); border-radius: 0 3px 3px 0; padding: 2rem 2.25rem; display: flex; gap: 1.25rem; align-items: flex-start; position: relative; overflow: hidden; }
.quote-block::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 5% 50%, var(--glow-red), transparent); pointer-events: none; }
.q-mark { font-family: 'Playfair Display', serif; font-size: 5rem; line-height: 0.65; color: var(--red); opacity: 0.35; flex-shrink: 0; margin-top: 4px; }
.q-text { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.1rem; color: var(--ink); line-height: 1.65; margin-bottom: 0.6rem; }
.q-attr { font-size: 0.74rem; color: var(--ink-muted); font-style: normal; font-family: 'EB Garamond', serif; letter-spacing: 0.03em; }

/* STAT */
.stat-strip { display: flex; background: var(--bg3); border: 1px solid var(--border); border-radius: 3px; overflow: hidden; }
.stat-item { flex: 1; padding: 1.5rem 1rem; border-right: 1px solid var(--border); text-align: center; }
.stat-item:last-child { border-right: none; }
.stat-value { display: block; font-family: 'Playfair Display', serif; font-size: 1.45rem; font-weight: 600; color: var(--gold); margin-bottom: 5px; }
.stat-label { font-size: 0.7rem; color: var(--ink-muted); line-height: 1.5; }

/* ROOM FOOTER */
.room-footer { display: flex; justify-content: space-between; align-items: center; padding: 2rem 3rem 3rem; max-width: 1100px; margin: 0 auto; }
.foot-btn { background: none; border: 1px solid var(--border-mid); border-radius: 2px; padding: 0.6rem 1.4rem; font-family: 'EB Garamond', serif; font-size: 0.88rem; color: var(--ink-muted); cursor: pointer; transition: all 0.15s; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.foot-btn:hover { border-color: var(--gold); color: var(--gold); }
.foot-btn.primary { background: var(--red); color: var(--ink); border-color: var(--red); }
.foot-btn.primary:hover { background: var(--red-dim); }
.foot-btn:disabled { opacity: 0.25; pointer-events: none; }
.foot-indicator { font-size: 0.7rem; color: var(--ink-muted); letter-spacing: 0.12em; text-transform: uppercase; }

/* TIMELINE (simple) */
.timeline-wrap { background: var(--bg3); border: 1px solid var(--border); border-radius: 3px; padding: 2rem 1.75rem; position: relative; overflow: hidden; }
.timeline-wrap::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 50% at 50% 100%, var(--glow-gold), transparent); pointer-events: none; }
.tl-label { font-size: 0.63rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 2rem; }
.tl-track { display: flex; position: relative; overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: none; }
.tl-track::-webkit-scrollbar { display: none; }
.tl-track::before { content: ''; position: absolute; top: 7px; left: 4%; right: 4%; height: 1px; background: linear-gradient(90deg, transparent, var(--border-mid), transparent); }
.tl-item { flex: 1; min-width: 110px; text-align: center; padding: 0 6px; }
.tl-dot { width: 15px; height: 15px; border-radius: 50%; background: var(--red); border: 2px solid var(--bg3); outline: 1.5px solid var(--red); margin: 0 auto 0.75rem; position: relative; z-index: 1; transition: transform 0.2s, box-shadow 0.2s; }
.tl-item:hover .tl-dot { transform: scale(1.3); box-shadow: 0 0 10px var(--red); }
.tl-year { font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 600; color: var(--gold); margin-bottom: 3px; }
.tl-event { font-size: 0.73rem; color: var(--ink-muted); line-height: 1.45; }

/* INTERACTIVE TIMELINE */
.itl-section { background: var(--bg2); padding: 4rem 3rem; border-top: 1px solid var(--border); }
.itl-wrap { max-width: 1100px; margin: 0 auto; }
.itl-heading { font-family: 'Playfair Display', serif; font-size: clamp(1.2rem, 2.5vw, 1.8rem); color: var(--ink); margin-bottom: 0.5rem; }
.itl-sub { font-size: 0.8rem; color: var(--ink-muted); font-style: italic; margin-bottom: 2rem; }
.itl-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.itl-filter-btn { background: var(--bg3); border: 1px solid var(--border); border-radius: 2px; padding: 0.35rem 0.85rem; color: var(--ink-muted); font-family: 'EB Garamond', serif; font-size: 0.76rem; cursor: pointer; transition: all 0.2s; }
.itl-filter-btn:hover { color: var(--ink); border-color: var(--border-mid); }
.itl-filter-btn.active { background: var(--red); border-color: var(--red); color: var(--ink); }
.itl-track-wrap { position: relative; padding-bottom: 1.5rem; }
.itl-spine { position: absolute; top: 22px; left: 0; right: 0; height: 1px; background: var(--border); }
.itl-spine-progress { height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); width: 0%; transition: width 0.8s ease; }
.itl-events { display: flex; overflow-x: auto; padding-bottom: 1rem; scrollbar-width: none; }
.itl-events::-webkit-scrollbar { display: none; }
.itl-event { flex: 0 0 auto; width: 118px; text-align: center; cursor: pointer; padding: 0 5px; transition: opacity 0.3s; }
.itl-event.hidden { opacity: 0.1; pointer-events: none; }
.itl-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-mid); background: var(--bg2); margin: 0 auto 10px; position: relative; z-index: 2; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.itl-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--border-mid); transition: all 0.2s; }
.itl-event[data-cat="biografie"] .itl-dot { border-color: var(--gold); }
.itl-event[data-cat="biografie"] .itl-dot::after { background: var(--gold); }
.itl-event[data-cat="politik"] .itl-dot { border-color: var(--red); }
.itl-event[data-cat="politik"] .itl-dot::after { background: var(--red); }
.itl-event[data-cat="wirtschaft"] .itl-dot { border-color: #4A9C5A; }
.itl-event[data-cat="wirtschaft"] .itl-dot::after { background: #4A9C5A; }
.itl-event[data-cat="global"] .itl-dot { border-color: #4A7AB5; }
.itl-event[data-cat="global"] .itl-dot::after { background: #4A7AB5; }
.itl-event:hover .itl-dot, .itl-event.active .itl-dot { transform: scale(1.4); box-shadow: 0 0 0 4px rgba(255,255,255,0.05); }
.itl-year-label { font-family: 'Playfair Display', serif; font-size: 0.88rem; font-weight: 600; color: var(--ink-muted); margin-bottom: 4px; transition: color 0.2s; }
.itl-event:hover .itl-year-label, .itl-event.active .itl-year-label { color: var(--ink); }
.itl-event[data-cat="biografie"]:hover .itl-year-label, .itl-event[data-cat="biografie"].active .itl-year-label { color: var(--gold); }
.itl-event[data-cat="wirtschaft"]:hover .itl-year-label, .itl-event[data-cat="wirtschaft"].active .itl-year-label { color: #6DBF6D; }
.itl-event[data-cat="global"]:hover .itl-year-label, .itl-event[data-cat="global"].active .itl-year-label { color: #7AAEE8; }
.itl-short { font-size: 0.63rem; color: var(--ink-muted); opacity: 0.45; line-height: 1.4; transition: opacity 0.2s; }
.itl-event:hover .itl-short, .itl-event.active .itl-short { opacity: 0.85; }
.itl-detail { background: var(--surface); border: 1px solid var(--border-mid); border-radius: 3px; margin-top: 2rem; max-height: 0; overflow: hidden; transition: max-height 0.45s ease, opacity 0.35s ease; opacity: 0; }
.itl-detail.open { max-height: 350px; opacity: 1; padding: 1.75rem 2rem; }
.detail-inner { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: start; }
.detail-year-big { font-family: 'Playfair Display', serif; font-size: 4rem; font-weight: 700; line-height: 1; color: var(--gold); opacity: 0.12; user-select: none; }
.detail-cat-badge { display: inline-block; font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; padding: 3px 10px; border-radius: 2px; margin-bottom: 0.65rem; font-family: 'EB Garamond', serif; }
.badge-biografie { background: rgba(212,168,67,0.15); color: var(--gold); }
.badge-politik { background: rgba(192,57,43,0.15); color: #E07070; }
.badge-wirtschaft { background: rgba(74,156,90,0.15); color: #6DBF6D; }
.badge-global { background: rgba(74,122,181,0.15); color: #7AAEE8; }
.detail-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 600; color: var(--ink); margin-bottom: 0.6rem; line-height: 1.25; }
.detail-text { font-size: 0.87rem; color: var(--ink-mid); line-height: 1.8; max-width: 680px; }
.detail-significance { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--ink-muted); font-style: italic; line-height: 1.6; }
.tl-legend { display: flex; gap: 1.5rem; margin-top: 1.5rem; flex-wrap: wrap; }
.tl-legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; color: var(--ink-muted); }
.tl-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ARG GRID */
.arg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.arg-card { background: var(--bg3); border: 1px solid var(--border); border-radius: 3px; overflow: hidden; }
.arg-header { padding: 0.65rem 1rem; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; font-family: 'EB Garamond', serif; }
.arg-header.pro { background: rgba(74,140,74,0.12); color: #6DBF6D; border-bottom: 1px solid rgba(74,140,74,0.2); }
.arg-header.con { background: rgba(192,57,43,0.12); color: #E07070; border-bottom: 1px solid rgba(192,57,43,0.2); }
.arg-list { list-style: none; padding: 0.75rem 1rem; }
.arg-list li { font-size: 0.84rem; color: var(--ink-mid); padding: 0.4rem 0 0.4rem 1.1rem; border-bottom: 1px solid var(--border); line-height: 1.5; position: relative; }
.arg-list li:last-child { border-bottom: none; }
.arg-list li::before { content: '—'; position: absolute; left: 0; color: var(--ink-muted); font-size: 0.7rem; top: 0.48rem; }
.thesis-strip { background: var(--bg3); border: 1px solid var(--border); border-left: 3px solid var(--red); padding: 1.5rem 1.75rem; font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.05rem; line-height: 1.8; color: var(--ink); border-radius: 0 3px 3px 0; }
.rq-item { background: var(--bg3); border: 1px solid var(--border); border-left: 3px solid transparent; border-radius: 0 3px 3px 0; padding: 1rem 1.25rem; margin-bottom: 0.5rem; font-size: 0.9rem; line-height: 1.55; display: flex; align-items: flex-start; gap: 0.85rem; color: var(--ink-mid); transition: border-color 0.15s, background 0.15s; }
.rq-item:hover { border-left-color: var(--gold); background: var(--surface); }
.rq-arr { color: var(--gold); font-size: 1rem; flex-shrink: 0; margin-top: 2px; }

/* PHOTO */
.photo-wrap { overflow: hidden; position: relative; background: var(--bg2); }
.photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; filter: brightness(0.88) saturate(0.85); }
.photo-wrap:hover img { transform: scale(1.04); filter: brightness(1) saturate(1); }
.photo-credit { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.6)); padding: 0.5rem 0.75rem; }
.photo-credit span { font-size: 0.59rem; color: rgba(255,255,255,0.4); letter-spacing: 0.06em; font-family: 'EB Garamond', serif; }

/* FADE IN */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* SITE FOOTER */
#site-footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 2.5rem; text-align: center; color: var(--ink-muted); font-size: 0.76rem; letter-spacing: 0.08em; }
#site-footer strong { color: var(--gold); font-weight: 400; font-style: italic; }

/* ANIMATIONS */
@keyframes wv { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(3.5); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* RESPONSIVE */
@media (max-width: 900px) {
  .col-8, .col-6, .col-4 { grid-column: span 12; }
  .room-body { padding: 1.5rem; }
  .room-banner { padding: 3rem 1.5rem 2rem; }
  .arg-grid { grid-template-columns: 1fr; }
  .stat-strip { flex-wrap: wrap; }
  .stat-item { min-width: 50%; border-bottom: 1px solid var(--border); }
  .room-footer { padding: 1.5rem; }
  .nav-logo { display: none; }
  .nav-room-btn { min-width: 60px; font-size: 0.68rem; padding: 0 0.35rem; }
  .detail-inner { grid-template-columns: 1fr; }
  .detail-year-big { display: none; }
  .itl-section { padding: 2.5rem 1.5rem; }
}
@media (max-width: 600px) {
  .exhibit-grid { gap: 0.75rem; }
  .quote-block { padding: 1.25rem; }
  .q-mark { font-size: 3rem; }
}
