/* ============================================
   RUSSLANDDEUTSCHE — Editorial Documentary Site
   Images: Unsplash License + Pexels License (free for commercial use)
   ============================================ */

:root {
  --bg-primary: #10131a;
  --bg-secondary: #151921;
  --bg-card: #1a1f2b;
  --bg-card-hover: #212838;
  --text-primary: #edeae5;
  --text-secondary: #a3aab8;
  --text-muted: #727d8f;
  --gold: #d4a94c;
  --gold-dim: #b89340;
  --gold-glow: rgba(212, 169, 76, 0.18);
  --amber: #d97a2e;
  --amber-dim: rgba(217, 122, 46, 0.15);
  --red: #c93838;
  --red-dim: rgba(201, 56, 56, 0.12);
  --purple: #7c3aed;
  --purple-dim: rgba(124, 58, 237, 0.15);
  --warm: #e8c88a;
  --border: rgba(255, 255, 255, 0.07);
  --border-light: rgba(255, 255, 255, 0.12);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;
}

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

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--gold), var(--warm));
  z-index: 1100;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(217, 122, 46, 0.3);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.4s var(--ease);
  background: transparent;
}

.nav.scrolled {
  background: rgba(16, 19, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav-logo-small {
  display: block;
  font-size: 0.55em;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 0.1em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16,19,26,0.5) 0%, rgba(16,19,26,0.2) 40%, rgba(16,19,26,0.6) 80%, rgba(16,19,26,1) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(16,19,26,0.4) 100%);
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 169, 76, 0.08) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: left 0.3s ease-out, top 0.3s ease-out;
  z-index: 1;
  will-change: left, top;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
  z-index: 2;
}

.hero-subtitle {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease) 0.3s forwards;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s var(--ease) 0.5s forwards;
}

.hero-text {
  font-size: 1.15rem;
  color: rgba(232, 230, 225, 0.85);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease) 0.7s forwards;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 1px solid rgba(200, 164, 78, 0.6);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease);
  backdrop-filter: blur(10px);
  background: rgba(200, 164, 78, 0.08);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease) 0.9s forwards;
}

.hero-cta:hover {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
  box-shadow: 0 8px 40px rgba(212, 169, 76, 0.35), 0 0 80px rgba(212, 169, 76, 0.15);
  transform: translateY(-2px);
  letter-spacing: 0.15em;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 1.3s forwards;
}

.hero-scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.hero-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

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

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-header::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 2rem auto 0;
  transition: width 1.2s var(--ease) 0.3s;
}

.section-header.visible::after {
  width: 120px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto;
}

/* ============================================
   INTRO
   ============================================ */

/* Warm light transitions between sections */
.section-glow {
  position: relative;
}

.section-glow::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(212, 169, 76, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.intro {
  padding: 8rem 0;
  border-bottom: 1px solid var(--border);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.intro-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.intro-left h2 {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  position: sticky;
  top: 120px;
}

.intro-lead {
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.intro-right p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.intro-right p:last-child { margin-bottom: 0; }

/* ============================================
   FULLSCREEN DIVIDERS
   ============================================ */

.divider-image {
  position: relative;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
}

.divider-image img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  position: absolute;
  top: -10%;
  will-change: transform;
}

.divider-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 19, 26, 0.55);
}

.divider-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.divider-text blockquote {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-style: italic;
  line-height: 1.5;
  max-width: 800px;
  color: var(--text-primary);
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}

.divider-text.visible blockquote {
  opacity: 1;
  transform: scale(1);
}

.divider-text cite {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--gold);
  font-style: normal;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.8s var(--ease) 0.6s;
}

.divider-text.visible cite {
  opacity: 1;
}

/* "Wussten Sie?" Divider */
.divider-facts {
  padding: 3rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.divider-facts-title {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.facts-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.facts-track {
  display: flex;
  gap: 4rem;
  animation: marquee 45s linear infinite;
  width: max-content;
}

.fact-item {
  white-space: nowrap;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 0 1rem;
  position: relative;
}

.fact-item::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: 1rem;
  vertical-align: middle;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   TIMELINE
   ============================================ */

.timeline-section {
  padding: 8rem 0;
  background: var(--bg-secondary);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 80px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-dim) 5%, var(--gold-dim) 95%, transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
  opacity: 0;
  transform: translateX(60px) translateY(20px);
  transition: all 0.9s var(--ease);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.timeline-marker {
  position: absolute;
  left: -54px;
  top: 2rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
  transition: all 0.3s;
}

.timeline-marker--red {
  background: var(--red);
  box-shadow: 0 0 20px var(--red-dim);
}

.timeline-marker--gold {
  background: var(--gold);
  width: 14px;
  height: 14px;
  left: -56px;
  box-shadow: 0 0 30px rgba(200, 164, 78, 0.4);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.5s var(--ease);
  transform-style: preserve-3d;
}

.timeline-card:hover {
  border-color: var(--border-light);
  transform: translateX(6px) translateY(-2px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(212, 169, 76, 0.05);
}

.timeline-card--dark {
  background: linear-gradient(135deg, #1a1316, #1f171a);
  border-color: rgba(201, 56, 56, 0.12);
}

.timeline-card--gold {
  background: linear-gradient(135deg, #1f1c12, #242014);
  border-color: rgba(212, 169, 76, 0.2);
}

.timeline-card-img {
  height: 280px;
  overflow: hidden;
  position: relative;
}


.timeline-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
  filter: brightness(0.93);
  will-change: transform;
}

.timeline-card:hover .timeline-card-img img {
  transform: scale(1.05);
  filter: brightness(1);
}

.timeline-card-body {
  padding: 2rem;
}

.timeline-card-body h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.timeline-card-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.timeline-tag {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200, 164, 78, 0.25);
  border-radius: 20px;
}

.timeline-tag--red {
  color: var(--red);
  border-color: rgba(220, 38, 38, 0.25);
}

.timeline-tag--gold {
  color: var(--gold);
  background: rgba(200, 164, 78, 0.1);
  border-color: rgba(200, 164, 78, 0.3);
}

.timeline-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
}

.timeline-more {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s var(--ease);
}

.timeline-card:hover .timeline-more {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item[data-detail] .timeline-card {
  cursor: pointer;
}

/* ============================================
   DETAIL MODAL
   ============================================ */

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.detail-modal.open {
  opacity: 1;
  visibility: visible;
}

.detail-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.detail-modal-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.5s var(--ease);
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) transparent;
}

.detail-modal.open .detail-modal-container {
  transform: translateY(0) scale(1);
}

.detail-modal-container::-webkit-scrollbar {
  width: 6px;
}
.detail-modal-container::-webkit-scrollbar-track {
  background: transparent;
}
.detail-modal-container::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 3px;
}

.detail-modal-close {
  position: sticky;
  top: 1rem;
  float: right;
  margin: 1rem 1rem 0 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: rgba(8, 9, 14, 0.8);
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}

.detail-modal-close:hover {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
}

.detail-modal-content {
  padding: 3rem;
}

.detail-hero {
  margin: -3rem -3rem 2.5rem -3rem;
  height: 360px;
  overflow: hidden;
  position: relative;
  border-radius: 16px 16px 0 0;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) brightness(0.97);
}

.detail-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, var(--bg-secondary) 0%, transparent 100%);
}

.detail-date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.detail-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.detail-lead {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.detail-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(200, 164, 78, 0.04);
  border: 1px solid rgba(200, 164, 78, 0.12);
  border-radius: 10px;
}

.detail-fact {
  text-align: center;
}

.detail-fact-value {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}

.detail-fact-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.4;
}

.detail-quote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--gold);
  background: rgba(200, 164, 78, 0.04);
  border-radius: 0 8px 8px 0;
}

.detail-quote blockquote {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.8;
}

.detail-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: normal;
}

.detail-section-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem 0;
  color: var(--text-primary);
}

/* Detail Gallery (inline images from former standalone gallery) */
.detail-gallery {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.detail-gallery-item {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.detail-gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}
.detail-gallery-item:hover img {
  transform: scale(1.03);
}
.detail-gallery-item figcaption {
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-card);
}

.detail-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.detail-links h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.detail-link {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold);
  border: 1px solid rgba(200, 164, 78, 0.25);
  border-radius: 20px;
  transition: all 0.3s;
}

.detail-link:hover {
  background: rgba(200, 164, 78, 0.1);
  border-color: var(--gold);
}

.detail-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.detail-nav-btn {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: 1px solid var(--border);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  transition: all 0.3s;
}

.detail-nav-btn:hover {
  color: var(--gold);
  border-color: rgba(200, 164, 78, 0.3);
}

.detail-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

@media (max-width: 768px) {
  .detail-modal-container {
    width: 95%;
    max-height: 90vh;
  }
  .detail-modal-content {
    padding: 1.5rem;
  }
  .detail-hero {
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    height: 200px;
  }
  .detail-title {
    font-size: 1.5rem;
  }
  .detail-facts {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   KULTUR
   ============================================ */

.kultur-section {
  padding: 8rem 0;
  border-bottom: 1px solid var(--border);
}

.kultur-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.kultur-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.5s var(--ease);
}

.kultur-card:hover {
  border-color: var(--border-light);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(212, 169, 76, 0.06);
}

.kultur-card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.kultur-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.kultur-card--wide .kultur-card-img {
  height: 100%;
  min-height: 320px;
}

.kultur-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.kultur-card:hover .kultur-card-img img {
  transform: scale(1.05);
}

.kultur-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26, 31, 43, 0.9) 100%);
}

.kultur-card--wide .kultur-card-img-overlay {
  background: linear-gradient(90deg, transparent 60%, rgba(26, 31, 43, 1) 100%);
}

.kultur-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kultur-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.kultur-card-body h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.kultur-card--wide .kultur-card-body h3 {
  font-size: 1.6rem;
}

.kultur-card-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.kultur-card-body strong {
  color: var(--text-primary);
  font-weight: 500;
}

.kultur-card-body p + p {
  margin-top: 0.75rem;
}

.kultur-more {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s var(--ease);
}

.kultur-card:hover .kultur-more {
  opacity: 1;
  transform: translateX(0);
}

.kultur-card[data-kultur] {
  cursor: pointer;
}

/* ============================================
   REZEPTE
   ============================================ */

.rezepte-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, #181a1f 50%, var(--bg-secondary) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.rezepte-header {
  text-align: center;
  margin-bottom: 3rem;
}

.rezepte-header h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.rezepte-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.rezepte-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.rezept-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}

.rezept-card:hover {
  border-color: var(--border-light);
}

.rezept-img {
  height: 220px;
  overflow: hidden;
}

.rezept-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.rezept-card:hover .rezept-img img {
  transform: scale(1.05);
}

.rezept-body {
  padding: 1.5rem;
}

.rezept-body h4 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.rezept-intro {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.rezept-details {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.rezept-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.rezept-meta span {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(200, 164, 78, 0.2);
  border-radius: 4px;
}

.rezept-zutaten h5,
.rezept-schritte h5 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 1rem 0 0.5rem;
}

.rezept-zutaten ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
}

.rezept-zutaten ul li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.2rem 0;
  padding-left: 0.8rem;
  position: relative;
}

.rezept-zutaten ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.rezept-schritte ol {
  list-style: none;
  counter-reset: step;
}

.rezept-schritte ol li {
  counter-increment: step;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 0.4rem 0 0.4rem 2rem;
  position: relative;
}

.rezept-schritte ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: rgba(200, 164, 78, 0.12);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rezept-tipp {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(200, 164, 78, 0.04);
  border-left: 2px solid var(--gold-dim);
  border-radius: 0 6px 6px 0;
  line-height: 1.5;
}

.rezept-tipp strong {
  color: var(--gold);
}

/* New Rezepte Grid — Tile Layout */
.rezepte-filter {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.rezepte-filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--sans);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.rezepte-filter-btn:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}
.rezepte-filter-btn.active {
  background: rgba(200, 164, 78, 0.12);
  border-color: var(--gold-dim);
  color: var(--gold);
}

.rezepte-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.rezept-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  cursor: pointer;
}
.rezept-tile:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.rezept-tile.hidden {
  display: none;
}

.rezept-tile-img {
  height: 200px;
  overflow: hidden;
}
.rezept-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.rezept-tile:hover .rezept-tile-img img {
  transform: scale(1.05);
}

.rezept-tile-body {
  padding: 1.25rem 1.5rem;
}
.rezept-tile-body h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.rezept-tile-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.rezept-tile-meta {
  display: flex;
  gap: 0.75rem;
}
.rezept-tile-meta span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(200, 164, 78, 0.15);
  border-radius: 4px;
}

/* Expandable Detail */
.rezept-tile-detail {
  display: none;
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0;
}
.rezept-tile.open .rezept-tile-detail {
  display: block;
  animation: fadeSlideDown 0.3s ease;
}
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.rezept-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1.5rem;
  margin-top: 1rem;
}
.rezept-detail-grid h5 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0.75rem 0 0.4rem;
}
.rezept-detail-grid h5:first-child { margin-top: 0; }
.rezept-detail-grid ul {
  list-style: none;
  padding: 0;
}
.rezept-detail-grid ul li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.15rem 0 0.15rem 0.8rem;
  position: relative;
}
.rezept-detail-grid ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.rezept-detail-grid ol {
  list-style: none;
  counter-reset: step;
  padding: 0;
}
.rezept-detail-grid ol li {
  counter-increment: step;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 0.3rem 0 0.3rem 2rem;
  position: relative;
}
.rezept-detail-grid ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: rgba(200, 164, 78, 0.1);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   MENSCHEN / PORTRAITS
   ============================================ */

.menschen-section {
  padding: 8rem 0;
  background: var(--bg-secondary);
}

.portraits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}

.portrait-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}

.portrait-card:hover {
  border-color: var(--border-light);
}

.portrait-card--feature {
  grid-column: auto;
}

.portrait-image {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.portrait-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(5%) brightness(0.95);
  transition: all 0.6s var(--ease);
}

.portrait-card:hover .portrait-image img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.03);
}

.portrait-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(21, 25, 33, 0.75) 100%);
}

.portrait-card--feature .portrait-image-overlay {
  background: linear-gradient(180deg, transparent 50%, rgba(21, 25, 33, 0.75) 100%);
}

.portrait-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portrait-gen {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.portrait-quote {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  border: none;
}

.portrait-card--feature .portrait-quote {
  font-size: 1.1rem;
}

.portrait-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.portrait-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Persönlichkeiten */
.persoenlichkeiten {
  padding-top: 2rem;
}

.sub-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.persoenlichkeiten-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.person-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  transition: all 0.3s var(--ease);
}

.person-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

.person-initial {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--bg-primary);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.person-card:hover .person-initial {
  transform: scale(1.08);
}

.person-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.person-info strong {
  font-size: 0.9rem;
  font-weight: 500;
}

.person-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================
   ZAHLEN & FAKTEN
   ============================================ */

.fakten-section {
  padding: 8rem 0;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.stat-card {
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.4s var(--ease);
}

.stat-card:hover {
  border-color: rgba(212, 169, 76, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(212, 169, 76, 0.08);
}

.stat-number {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 0.5rem;
  line-height: 1;
  transition: text-shadow 0.5s var(--ease);
}

.stat-number.counted {
  text-shadow: 0 0 30px rgba(212, 169, 76, 0.3);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.stat-bar {
  height: 3px;
  background: rgba(255,255,255,0.04);
  border-radius: 2px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  border-radius: 2px;
  transition: width 1.5s var(--ease);
}

.stat-bar-fill.animated {
  width: var(--fill);
}

/* Map & Chart */
.map-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.map-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
}

.map-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.map-visual { border-radius: 8px; overflow: hidden; }
.map-svg { width: 100%; height: auto; }

.deportation-path {
  stroke-dashoffset: 200;
  animation: drawPath 3s ease-in-out forwards;
}

/* Interactive Map */
.imap-section { margin-top: 3rem; }
.imap-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}
.imap-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.imap-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0c1018;
  min-height: 450px;
}
.imap-canvas {
  position: relative;
}
.imap-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.imap-point { transition: opacity 0.2s; }
.imap-point:hover circle { opacity: 0.6 !important; }
.imap-point:hover text { opacity: 1 !important; }
.imap-point.active circle:nth-child(2) {
  opacity: 0.5 !important;
  r: 16;
}
.imap-point.active circle:nth-child(3) {
  r: 7;
}

/* Info Panel */
.imap-panel {
  background: rgba(22, 26, 38, 0.95);
  border-left: 1px solid var(--border);
  padding: 0;
  overflow-y: auto;
  max-height: 500px;
}
.imap-panel-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
  color: var(--text-muted);
  gap: 12px;
  font-size: 0.9rem;
}
.imap-panel-content {
  animation: fadeSlideDown 0.3s ease;
}
.imap-panel-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.imap-panel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.imap-panel-body {
  padding: 20px 24px;
}
.imap-panel-type {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.imap-panel-type.siedlung { color: #c8a44e; }
.imap-panel-type.deportation { color: #7c3aed; }
.imap-panel-type.rueckkehr { color: #22c55e; }
.imap-panel-body h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.imap-panel-body .imap-period {
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 12px;
}
.imap-panel-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 10px;
}
.imap-panel-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}
.imap-fact {
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  padding: 10px 12px;
  text-align: center;
}
.imap-fact-val {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.imap-fact-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.imap-panel-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-left: 2px solid var(--gold-dim);
  padding: 8px 14px;
  margin: 14px 0;
  line-height: 1.6;
}

/* Leaflet Overrides */
.imap-canvas .leaflet-container { background: #0c1018; }
.imap-canvas .leaflet-control-zoom {
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
}
.imap-canvas .leaflet-control-zoom a {
  background: rgba(22, 26, 38, 0.9) !important;
  color: #94a3b8 !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  font-size: 16px !important;
  transition: all 0.15s;
}
.imap-canvas .leaflet-control-zoom a:hover {
  background: rgba(200, 164, 78, 0.12) !important;
  color: #c8a44e !important;
}
.imap-canvas .leaflet-control-zoom a:last-child {
  border-bottom: none !important;
}
.imap-label {
  background: rgba(12, 16, 24, 0.8) !important;
  border: none !important;
  box-shadow: none !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
}
.imap-label--gold { color: #c8a44e !important; }
.imap-label--purple { color: #7c3aed !important; }
.imap-label--green { color: #22c55e !important; }
.imap-label::before { border-top-color: rgba(12, 16, 24, 0.8) !important; }
.imap-legend {
  background: rgba(12, 16, 24, 0.8);
  padding: 8px 14px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}
.imap-leg-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 8px;
}
.imap-leg-dot:first-child { margin-left: 0; }

@media (max-width: 1024px) {
  .imap-container {
    grid-template-columns: 1fr;
  }
  .imap-canvas { min-height: 400px; }
  .imap-canvas #imapLeaflet { border-radius: 12px 12px 0 0 !important; }
  .imap-panel {
    border-left: none;
    border-top: 1px solid var(--border);
    max-height: none;
  }
  .imap-panel-placeholder { min-height: 200px; }
}

@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}

.chart-bars { display: flex; flex-direction: column; gap: 1rem; }

.chart-bar-row {
  display: grid;
  grid-template-columns: 55px 1fr 85px;
  align-items: center;
  gap: 1rem;
}

.chart-bar-row.highlight-row .chart-label,
.chart-bar-row.highlight-row .chart-value {
  color: var(--gold);
  font-weight: 600;
}

.chart-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
}

.chart-bar-track {
  height: 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 5px;
  overflow: hidden;
}

.chart-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  border-radius: 5px;
  transition: width 1.2s var(--ease);
}

.chart-bar-fill.animated {
  width: var(--target-width);
}

.chart-value {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.chart-note {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   GALLERY
   ============================================ */

.gallery-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s;
  filter: brightness(0.93);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  font-size: 0.8rem;
  color: rgba(255,255,255,0.9);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
  cursor: zoom-out;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.9);
  transition: transform 0.6s var(--ease);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.lightbox.open img {
  transform: scale(1);
}

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  text-align: center;
  max-width: 600px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 10px 24px;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.4);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.lightbox-close:hover {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
}

/* ============================================
   MEDIATHEK
   ============================================ */

.mediathek-section {
  padding: 8rem 0;
  border-bottom: 1px solid var(--border);
}

/* Video Highlight */
.video-highlight {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  cursor: pointer;
  border-radius: 8px;
}

.video-wrapper iframe,
.video-wrapper .video-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.video-play svg {
  width: 68px;
  height: 48px;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.4));
}

.video-wrapper:hover .video-play {
  transform: translate(-50%, -50%) scale(1.12);
}

.video-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.3s;
  pointer-events: none;
}

.video-wrapper:hover::after {
  background: rgba(0, 0, 0, 0.1);
}

.video-wrapper:has(iframe)::after {
  display: none;
}

.video-info {
  padding: 2.5rem 2.5rem 2.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video-info h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.video-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .video-highlight {
    grid-template-columns: 1fr;
  }
  .video-info {
    padding: 1.5rem;
  }
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.media-category-icon {
  width: 40px;
  height: 40px;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.media-category-icon.film { color: var(--purple); }
.media-category-icon.museum { color: var(--text-secondary); }

.media-category h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.media-list { display: flex; flex-direction: column; gap: 0.5rem; }

.media-item {
  padding: 1rem;
  border-radius: 8px;
  transition: background 0.3s;
  border-left: 2px solid transparent;
}

.media-item:hover {
  background: var(--bg-card);
  border-left-color: var(--gold);
}

.media-info { display: flex; flex-direction: column; gap: 0.3rem; }

.media-info strong {
  font-size: 0.9rem;
  font-weight: 500;
}

.media-info strong a {
  color: var(--text-primary);
  transition: color 0.3s;
}

.media-info strong a:hover {
  color: var(--gold);
}

.media-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   GLOSSAR
   ============================================ */

.glossar-section {
  padding: 8rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.glossar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.glossar-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  transition: all 0.3s var(--ease);
}

.glossar-item:hover {
  border-color: rgba(212, 169, 76, 0.15);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

.glossar-item h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.glossar-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ============================================
   COMMUNITY
   ============================================ */

.community-section {
  padding: 8rem 0;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.community-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: all 0.4s var(--ease);
}

.community-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-3px);
}

.community-card-icon {
  width: 32px;
  height: 32px;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.community-card h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.community-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.community-link {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 1rem;
  transition: opacity 0.3s;
}

.community-link:hover { opacity: 0.7; }

.community-tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200, 164, 78, 0.25);
  border-radius: 20px;
}

/* CTA */
.cta-section {
  position: relative;
  text-align: center;
  padding: 5rem 3rem;
  border-radius: 12px;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 19, 26, 0.75);
  backdrop-filter: blur(2px);
}

.cta-content {
  position: relative;
}

.cta-content h3 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: var(--gold);
  color: var(--bg-primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.3s var(--ease);
  border: 1px solid var(--gold);
}

.cta-button:hover {
  background: #d4b05e;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 164, 78, 0.3);
}

.cta-button--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
}

.cta-button--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
  box-shadow: none;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.footer-social a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-links h4,
.footer-newsletter h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

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

.footer-newsletter p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 4px 0 0 4px;
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s;
}

.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form input::placeholder { color: var(--text-muted); }

.newsletter-form button {
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 0 4px 4px 0;
  color: var(--bg-primary);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
}

.newsletter-form button:hover { background: #d4b05e; }
.newsletter-form button:disabled { opacity: 0.7; cursor: default; }

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-credits {
  margin-top: 0.25rem;
  font-size: 0.75rem !important;
  color: rgba(100, 116, 139, 0.5) !important;
  font-style: italic;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide from left/right for alternating items */
.slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.slide-left.visible,
.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale-in for stats */
.scale-in {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

::selection {
  background: rgba(200, 164, 78, 0.3);
  color: var(--text-primary);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .intro-grid { grid-template-columns: 1fr; gap: 2rem; }
  .intro-left h2 { position: static; }
  .kultur-grid { grid-template-columns: repeat(2, 1fr); }
  .kultur-card--wide { grid-template-columns: 1fr; }
  .kultur-card--wide .kultur-card-img { min-height: 250px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .persoenlichkeiten-grid { grid-template-columns: repeat(2, 1fr); }
  .media-grid { grid-template-columns: 1fr; gap: 3rem; }
  .map-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .rezepte-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .glossar-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(16, 19, 26, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .kultur-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .portraits-grid { grid-template-columns: 1fr; }
  .portrait-card--feature .portrait-image { min-height: 250px; }
  .persoenlichkeiten-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-section { padding: 3rem 1.5rem; }
  .rezepte-grid { grid-template-columns: 1fr; }
  .glossar-grid { grid-template-columns: 1fr; }
  .rezept-zutaten ul { grid-template-columns: 1fr; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .divider-image { height: 50vh; min-height: 300px; }

  .timeline { padding-left: 50px; }
  .timeline::before { left: 15px; }
  .timeline-marker { left: -39px; }
  .timeline-marker--gold { left: -41px; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 2.2rem; }
  .chart-bar-row { grid-template-columns: 45px 1fr 65px; gap: 0.5rem; }
  .hero-title { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item--tall { grid-row: span 1; }
  .gallery-item--wide { grid-column: span 1; }
  .portrait-image { min-height: 220px; }
}
