/*
Theme Name: Vermis Chroniken
Theme URI: https://www.vermischronicles.com
Author: Ahmet Beger-Ongan
Author URI: https://www.vermischronicles.com
Description: Dunkles, cineastisches Theme für Die Vermis-Chroniken. Noir-Atmosphäre mit Gold-Akzenten.
Version: 1.0.0
License: Private
Text Domain: vermis-chroniken
*/

/* ============================================
   CSS VARIABLEN
   ============================================ */
:root {
  --noir:       #0a0a0c;
  --deep:       #0e0e12;
  --surface:    #13131a;
  --card:       #1a1a24;
  --border:     rgba(180, 160, 120, 0.18);
  --gold:       #c9a84c;
  --gold-dim:   #8a6f30;
  --gold-hover: #e0c070;
  --text:       #e8e0d0;
  --muted:      #8a8070;
  --danger:     #8b2020;
  --danger-hover: #a02828;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--noir);
  color: var(--text);
  font-family: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); }

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

ul, ol { list-style: none; }

/* ============================================
   GOOGLE FONTS EINBINDUNG (in functions.php)
   ============================================ */

/* ============================================
   TYPOGRAFIE
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', 'Palatino Linotype', serif;
  font-weight: 700;
  line-height: 1.1;
  color: #f0e8d8;
  letter-spacing: 0.03em;
}

h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 900; }
h2 { font-size: clamp(22px, 3.5vw, 32px); }
h3 { font-size: clamp(16px, 2.5vw, 22px); }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 2px solid var(--gold-dim);
  padding: 12px 0 12px 28px;
  font-style: italic;
  font-size: 1.2em;
  color: #d0c8b8;
  margin: 2em 0;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   NAVIGATION
   ============================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.site-logo {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.site-logo:hover { color: var(--gold-hover); }

/* Hauptnavigation */
#primary-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}

#primary-nav a {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

#primary-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.2s;
}

#primary-nav a:hover,
#primary-nav .current-menu-item > a {
  color: var(--gold);
}

#primary-nav a:hover::after,
#primary-nav .current-menu-item > a::after {
  width: 100%;
}

/* Dropdown */
#primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 200px;
  padding: 8px 0;
  z-index: 200;
}

#primary-nav li { position: relative; }
#primary-nav li:hover > .sub-menu { display: block; }

#primary-nav .sub-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 11px;
}

#primary-nav .sub-menu a:hover { background: var(--card); }

/* Hamburger Mobile */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--gold);
  padding: 8px 12px;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.15em;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 65% 50%, rgba(139, 32, 32, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(201, 168, 76, 0.05) 0%, transparent 45%);
  pointer-events: none;
}

.hero__bg-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__text {
  padding: 80px 48px 80px 40px;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.45em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.hero__title {
  font-family: 'Cinzel', serif;
  font-size: clamp(52px, 7vw, 80px);
  font-weight: 900;
  color: #f0e8d8;
  line-height: 1.0;
  margin-bottom: 6px;
  text-shadow: 0 0 80px rgba(139, 32, 32, 0.35);
  letter-spacing: 0.06em;
}

.hero__subtitle {
  font-family: 'Cinzel', serif;
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 32px;
}

.hero__divider {
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dim), transparent);
  margin-bottom: 28px;
}

.hero__desc {
  font-size: 17px;
  font-weight: 300;
  color: #b0a898;
  line-height: 1.8;
  max-width: 400px;
  font-style: italic;
  margin-bottom: 40px;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* CTA Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 14px 28px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}

.btn--outline {
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  background: transparent;
}
.btn--outline:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: var(--gold);
  color: var(--gold-hover);
}

.btn--amazon {
  background: var(--danger);
  color: #f8ece0;
  border: 1px solid rgba(255,100,100,0.2);
}
.btn--amazon:hover {
  background: var(--danger-hover);
  color: #fff;
}

/* Hero Buchcover */
.hero__image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  z-index: 1;
}

.hero__image-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(139,32,32,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.book-cover {
  position: relative;
  transform: perspective(700px) rotateY(-10deg) rotateX(2deg);
  transition: transform 0.4s ease;
  filter: drop-shadow(-8px 16px 40px rgba(0,0,0,0.8));
}

.book-cover:hover {
  transform: perspective(700px) rotateY(-4deg) rotateX(1deg) translateY(-6px);
}

.book-cover img {
  width: clamp(240px, 28vw, 380px);
  height: auto;
  display: block;
  border: 1px solid var(--gold-dim);
}

.book-cover__spine {
  position: absolute;
  left: -6px;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(90deg, #1a1206, #2a1f0a);
  transform-origin: right;
}

/* ============================================
   TICKER BAND
   ============================================ */
.ticker-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-block;
  animation: ticker 30s linear infinite;
}

.ticker-inner:hover { animation-play-state: paused; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-text {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.38em;
  color: var(--gold-dim);
  text-transform: uppercase;
  display: inline;
}

.ticker-sep {
  display: inline;
  color: var(--gold-dim);
  margin: 0 24px;
}

/* ============================================
   TEASER / ZITAT SECTION
   ============================================ */
.section-teaser {
  padding: 80px 0;
}

.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.teaser-quote blockquote {
  font-size: 1.35em;
  line-height: 1.55;
}

.teaser-quote cite {
  display: block;
  margin-top: 16px;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--muted);
  text-transform: uppercase;
  font-style: normal;
}

.section-eyebrow {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.42em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.teaser-text h2 {
  font-size: clamp(20px, 3vw, 26px);
  margin-bottom: 20px;
  color: #f0e8d8;
}

.teaser-text p {
  font-size: 16px;
  color: #a09888;
  line-height: 1.8;
}

/* ============================================
   WELT DES VERMIS — CHARAKTERE
   ============================================ */
.section-world {
  padding: 64px 0 80px;
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 40px;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(22px, 3vw, 30px);
  color: #f0e8d8;
  margin-top: 8px;
}

.chars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.char-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 24px 20px;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.char-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
}

.char-initials {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
  transition: border-color 0.2s;
}

.char-card:hover .char-initials { border-color: var(--gold-dim); }

.char-name {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #d0c8b8;
  margin-bottom: 4px;
}

.char-role {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

/* ============================================
   BÄNDE SECTION
   ============================================ */
.section-books {
  padding: 64px 0 80px;
  border-top: 1px solid var(--border);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.book-card {
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s;
  display: block;
  text-decoration: none;
}

.book-card:hover { border-color: var(--gold-dim); }

.book-card__cover {
  aspect-ratio: 2/3;
  background: var(--surface);
  overflow: hidden;
}

.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.book-card:hover .book-card__cover img { transform: scale(1.04); }

.book-card__info {
  padding: 20px;
}

.book-card__band {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.35em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.book-card__title {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  color: #d8d0c0;
  margin-bottom: 12px;
  line-height: 1.3;
}

.book-card__link {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--gold-dim);
  text-transform: uppercase;
}

/* ============================================
   CONTENT PAGES (Einzelne Seiten)
   ============================================ */
.page-hero {
  padding: 80px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}

.page-hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  margin-top: 12px;
}

.entry-content {
  max-width: 720px;
}

.entry-content p {
  font-size: 17px;
  color: #b8b0a0;
  line-height: 1.85;
  margin-bottom: 1.4em;
}

.entry-content h2 {
  margin: 2em 0 0.8em;
  padding-top: 1em;
  border-top: 1px solid var(--border);
}

.entry-content h3 { margin: 1.5em 0 0.6em; }

.entry-content strong { color: #e0d8c8; font-weight: 500; }

.entry-content a {
  color: var(--gold);
  border-bottom: 1px solid var(--gold-dim);
}

.entry-content a:hover { border-color: var(--gold); }

/* ============================================
   FOOTER
   ============================================ */
#site-footer {
  border-top: 1px solid var(--border);
  background: var(--deep);
  padding: 32px 0;
  margin-top: 80px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--gold-dim);
  text-transform: uppercase;
}

.footer-nav ul {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 12px;
  text-transform: uppercase;
  transition: all 0.2s;
}

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

.footer-copy {
  font-size: 12px;
  color: #5a5550;
  margin-top: 24px;
  text-align: center;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.1em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__image { display: none; }

  .hero__text { padding: 60px 24px; }

  .teaser-grid { grid-template-columns: 1fr; gap: 40px; }

  .chars-grid { grid-template-columns: repeat(2, 1fr); }

  #primary-nav { display: none; }
  #primary-nav.is-open { display: block; }

  #primary-nav ul {
    flex-direction: column;
    padding: 20px 32px;
    gap: 16px;
    background: var(--surface);
    border-top: 1px solid var(--border);
  }

  .menu-toggle { display: block; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .header-inner { padding: 14px 24px; }

  .container { padding: 0 20px; }
}

@media (max-width: 480px) {
  .chars-grid { grid-template-columns: 1fr 1fr; }
  .hero__title { font-size: 42px; }
}

/* ============================================
   WORDPRESS CORE KLASSEN
   ============================================ */
.wp-block-image { margin: 2em 0; }
.aligncenter { text-align: center; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1em; }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
