/* ============================================================
   H. SINTHER — FÜNFGROSCHENVERLAG
   Global Stylesheet
   ============================================================ */

/* ==================== RESET & BASE ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Colors */
  --bg-deep: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a26;
  --bg-elevated: #16161f;
  --text-primary: #e8e4df;
  --text-secondary: #8a8590;
  --text-muted: #5a5560;
  --accent: #c4956a;
  --accent-glow: #d4a574;
  --accent-dark: #8a6540;
  --danger: #8b3a3a;
  --border: #1e1e2a;
  --border-light: #2a2a38;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400&display=swap');

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--bg-deep);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
a:hover { color: var(--accent-glow); }

img { max-width: 100%; display: block; }

/* ==================== AMBIENT BACKGROUND ==================== */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.ambient-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 20% 50%, rgba(196, 149, 106, 0.03) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(139, 58, 58, 0.03) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(100, 80, 140, 0.02) 0%, transparent 50%);
  animation: ambientDrift 30s ease-in-out infinite;
}

@keyframes ambientDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-2%, 1%) rotate(1deg); }
  66% { transform: translate(1%, -1%) rotate(-1deg); }
}

/* ==================== NAVIGATION ==================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(196, 149, 106, 0.08);
  transition: all 0.4s var(--ease);
}

nav.scrolled {
  padding: 0.6rem 2rem;
  background: rgba(10, 10, 15, 0.95);
}

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

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.nav-brand span {
  color: var(--accent);
  font-weight: 400;
  font-style: italic;
  font-size: 0.85em;
  margin-left: 0.5rem;
  opacity: 0.7;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

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

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

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

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

.container--narrow {
  max-width: var(--max-width-narrow);
}

section {
  padding: var(--space-2xl) 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ==================== TYPOGRAPHY ==================== */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 650px;
  margin-bottom: 3rem;
  line-height: 1.8;
}

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(196, 149, 106, 0.06) 0%, transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(139, 58, 58, 0.05) 0%, transparent 50%);
}

.hero-content {
  max-width: 800px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.5s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.7s forwards;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
}

.hero-stat { text-align: center; }

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeUp 1s ease 1.2s forwards;
}

.hero-scroll span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ==================== CARDS ==================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

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

.card:hover::before { opacity: 1; }

/* Series Cards */
.series-card-genre {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.series-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.series-card-subtitle {
  font-size: 0.9rem;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 1rem;
}

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

/* ==================== TAGS ==================== */
.tag {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  letter-spacing: 0.03em;
  display: inline-block;
}

.tag.accent {
  border-color: var(--accent-dark);
  color: var(--accent);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ==================== BUTTONS ==================== */
.btn {
  padding: 0.9rem 1.8rem;
  background: var(--accent);
  color: var(--bg-deep);
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--duration);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent-glow);
  color: var(--bg-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(196, 149, 106, 0.25);
}

.btn-outline {
  padding: 0.7rem 1.5rem;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-dark);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(196, 149, 106, 0.08);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-amazon {
  background: #ff9900;
  color: #111;
}

.btn-amazon:hover {
  background: #ffaa22;
  color: #111;
  box-shadow: 0 4px 20px rgba(255, 153, 0, 0.3);
}

/* ==================== GRIDS ==================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
}

/* ==================== QUOTE DIVIDER ==================== */
.quote-divider {
  text-align: center;
  padding: 5rem 2rem;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.quote-divider::before,
.quote-divider::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dark), transparent);
}

.quote-divider::before { top: 0; }
.quote-divider::after { bottom: 0; }

.quote-divider blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
}

.quote-divider cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: normal;
  letter-spacing: 0.1em;
}

/* ==================== SERIE ITEM (Katalog) ==================== */
.serie-item {
  padding: 0.9rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all var(--duration);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.serie-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-dark);
  color: var(--text-primary);
}

.serie-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-dark);
  flex-shrink: 0;
  transition: all var(--duration);
}

.serie-item:hover .serie-dot {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(196, 149, 106, 0.4);
}

/* ==================== NEWSLETTER ==================== */
.newsletter-section {
  text-align: center;
  padding: 5rem 2rem;
  max-width: 600px;
  margin: 3rem auto;
  position: relative;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(196, 149, 106, 0.15), transparent, rgba(139, 58, 58, 0.1));
  z-index: -1;
}

.newsletter-inner {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 3rem;
}

.newsletter-form {
  display: flex;
  gap: 0.8rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--duration);
}

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

/* ==================== FOOTER ==================== */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  margin-top: var(--space-xl);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

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

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

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ==================== SERIE DETAIL PAGE ==================== */
.serie-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

.serie-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(196, 149, 106, 0.06) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(139, 58, 58, 0.04) 0%, transparent 50%);
}

.serie-hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
}

.serie-meta-line {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.serie-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.serie-hero .subtitle {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.serie-hero .logline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.serie-quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.quick-fact {
  display: flex;
  flex-direction: column;
}

.quick-fact-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quick-fact-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Characters */
.character-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.character-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.character-card .role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

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

/* Hefte Liste */
.heft-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--duration);
}

.heft-item:last-child { border-bottom: none; }

.heft-item:hover { padding-left: 0.5rem; }

.heft-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  min-width: 2.5rem;
}

.heft-title {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.heft-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: auto;
  text-align: right;
  max-width: 50%;
}

.heft-item a {
  color: var(--text-primary);
  text-decoration: none;
}

.heft-item a:hover { color: var(--accent); }

/* Phase headers */
.phase-header {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-light);
}

.phase-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.phase-header .phase-range {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
}

@media (max-width: 600px) {
  nav { padding: 0.8rem 1rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .newsletter-form { flex-direction: column; }
  section { padding: 4rem 1.2rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .heft-desc { display: none; }
}
