/*
Theme Name: S.V. Lysian - Dark Romance
Author: S.V. Lysian
Description: Elegant Dark Romance Author Theme with Books, Blog and Newsletter
Version: 2.0
*/

/* Alle Fonts lokal gehostet - DSGVO-konform, kein Google-Kontakt */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Cinzel';
  src: url('fonts/Cinzel-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/EBGaramond-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/EBGaramond-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --black: #0a0a0a;
  --deep: #111018;
  --surface: #16141f;
  --card: #1c1928;
  --border: #2a2535;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-dim: #7a6230;
  --cream: #f0e6d3;
  --muted: #9b8fa8;
  --rose: #8b3a52;
  --rose-dark: #5c1f33;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; height: -webkit-fill-available; }

body {
  background-color: var(--black);
  color: var(--cream);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
}

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

/* Touch-Scrollen auf Mobilgeraeten sicherstellen */
html, body {
  touch-action: pan-y;
  overflow-x: hidden;
}

.hero-bg, .hero svg, .about::before, .blog::after, .newsletter::before {
  pointer-events: none;
  touch-action: none;
}

/* NAV HAMBURGER */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--cream);
  transition: all 0.3s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  top: -100vh;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10,10,10,0.98);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  display: flex;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s, top 0.3s;
}
.nav-mobile.open {
  top: 0;
  visibility: visible;
  opacity: 1;
}
.nav-mobile ul { list-style: none; padding: 0; margin: 0; text-align: center; }
.nav-mobile ul li { margin-bottom: 32px; }
.nav-mobile ul li a {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-mobile ul li a:hover { color: var(--gold); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* NAV */
nav#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: linear-gradient(to bottom, rgba(10,10,10,0.95), transparent);
  backdrop-filter: blur(4px);
  transition: background 0.3s;
}

.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* SECTIONS */
section { padding: 100px 60px; }

.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 60px;
}

.section-title em { font-style: italic; color: var(--gold); }

.ornament {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.ornament::before, .ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border));
}

.ornament::after { background: linear-gradient(to left, transparent, var(--border)); }
.ornament-diamond { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

/* HERO */
.hero {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(139,58,82,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(201,168,76,0.08) 0%, transparent 60%),
    linear-gradient(180deg, #0a0a0a 0%, #16101a 50%, #0a0a0a 100%);
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 0 20px;
  animation: fadeUp 1.4s ease both;
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: block;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 8px;
}

.hero-title em { font-style: italic; color: var(--gold); display: block; }

.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--muted);
  margin-top: 28px;
  letter-spacing: 0.05em;
}

.hero-divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  margin: 40px auto;
}

.hero-scroll {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-dim);
  animation: pulse 3s infinite;
}

/* ABOUT */
.about {
  background: var(--deep);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,58,82,0.12), transparent 70%);
  pointer-events: none;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.about-image-wrap {
  float: left;
  margin: 0 40px 24px 0;
  max-width: 320px;
  width: 40%;
}

.about-image-frame {
  display: block;
  width: 100%;
}

.about-image-frame img,
.about-image-frame .img-placeholder {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  max-width: 100% !important;
  filter: sepia(20%) contrast(1.1);
}

.about-text p { color: var(--muted); margin-bottom: 20px; font-size: 1.05rem; }
.about-text p strong { color: var(--cream); font-weight: 400; }

/* BOOKS */
.books { background: var(--black); }
.books-inner { max-width: 1200px; margin: 0 auto; }

.book-entry {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.book-entry.visible { opacity: 1; transform: translateY(0); }
.book-entry:last-child { border-bottom: none; }

.book-entry:nth-child(even) { grid-template-columns: 1fr 280px; }
.book-entry:nth-child(even) .book-cover { order: 2; }
.book-entry:nth-child(even) .book-info { order: 1; }

.book-cover { position: relative; }

.book-cover img,
.book-cover .img-placeholder {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 20px 20px 60px rgba(0,0,0,0.8);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.book-cover:hover img { transform: translateY(-6px) rotate(-1deg); box-shadow: 30px 30px 80px rgba(0,0,0,0.9); }

.book-badge {
  position: absolute;
  top: 12px; right: 0;
  background: var(--rose-dark);
  border: 1px solid var(--rose);
  color: var(--cream);
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 12px;
}

.book-series { font-family: 'Cinzel', serif; font-size: 0.65rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }

.book-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 300; line-height: 1.1; color: var(--cream); margin-bottom: 8px; }
.book-title em { font-style: italic; color: var(--gold); }

.book-tagline { font-style: italic; color: var(--rose); font-size: 1rem; margin-bottom: 24px; }

.book-desc { color: var(--muted); font-size: 1rem; line-height: 1.8; margin-bottom: 32px; }

.book-meta { display: flex; gap: 30px; margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.book-meta-item { display: flex; flex-direction: column; gap: 4px; }
.book-meta-label { font-family: 'Cinzel', serif; font-size: 0.55rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-dim); }
.book-meta-value { font-size: 0.9rem; color: var(--cream); }

.book-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.3); }

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

.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.btn-ghost:hover { border-color: var(--muted); color: var(--cream); }

/* BLOG */
.blog { background: var(--deep); position: relative; overflow: hidden; }
.blog-inner { max-width: 1200px; margin: 0 auto; }

.blog-featured {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 60px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.blog-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--rose), var(--gold));
}

.blog-featured-label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-featured-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.blog-featured-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 300; line-height: 1.15; color: var(--cream); margin-bottom: 24px; }
.blog-featured-title em { font-style: italic; color: var(--gold); }

.blog-featured-text { color: var(--muted); font-size: 1rem; line-height: 1.9; max-width: 720px; margin-bottom: 32px; }

.blog-featured-meta { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 0.85rem; margin-bottom: 32px; flex-wrap: wrap; }
.blog-featured-meta .cat { color: var(--rose); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); }

.blog-card {
  background: var(--surface);
  padding: 48px 40px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.3s ease;
  cursor: pointer;
}

.blog-card:hover { background: var(--card); }
.blog-card:hover .blog-card-arrow { transform: translate(4px, -4px); }

.blog-card-date { font-family: 'Cinzel', serif; font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-dim); }
.blog-card-cat { display: inline-block; font-family: 'Cinzel', serif; font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rose); border: 1px solid var(--rose-dark); padding: 3px 10px; align-self: flex-start; }
.blog-card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 300; line-height: 1.25; color: var(--cream); flex: 1; }
.blog-card-excerpt { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.blog-card-arrow { color: var(--gold); font-size: 1.2rem; transition: transform 0.3s ease; align-self: flex-end; }

/* NEWSLETTER */
.newsletter { background: var(--black); text-align: center; position: relative; overflow: hidden; }
.newsletter::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(139,58,82,0.15), transparent 60%); pointer-events: none; }
.newsletter-inner { max-width: 560px; margin: 0 auto; position: relative; }
.newsletter-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 300; color: var(--cream); margin-bottom: 16px; line-height: 1.1; }
.newsletter-title em { font-style: italic; color: var(--gold); }
.newsletter-text { color: var(--muted); margin-bottom: 40px; font-size: 1rem; }

.newsletter-form { display: flex; gap: 0; }
.newsletter-input { flex: 1; background: var(--surface); border: 1px solid var(--border); border-right: none; color: var(--cream); padding: 14px 20px; font-family: 'EB Garamond', serif; font-size: 1rem; outline: none; transition: border-color 0.3s; }
.newsletter-input:focus { border-color: var(--gold-dim); }
.newsletter-input::placeholder { color: var(--muted); }
.newsletter-btn { background: var(--gold); border: 1px solid var(--gold); color: var(--black); padding: 14px 28px; font-family: 'Cinzel', serif; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; transition: background 0.3s; }
.newsletter-btn:hover { background: var(--gold-light); }

/* FOOTER */
footer { background: var(--deep); border-top: 1px solid var(--border); padding: 60px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; }
.footer-logo { font-family: 'Cinzel', serif; font-size: 1.1rem; letter-spacing: 0.3em; color: var(--gold); text-transform: uppercase; }
.footer-links { display: flex; gap: 32px; list-style: none; }
.footer-links a { font-family: 'Cinzel', serif; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.8rem; color: var(--muted); font-style: italic; }

.footer-social { display: flex; gap: 16px; align-items: center; }

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* PLACEHOLDERS */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--muted);
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(139,58,82,0.2), transparent 60%), radial-gradient(circle at 70% 30%, rgba(201,168,76,0.08), transparent 50%);
}

.img-placeholder span { position: relative; z-index: 1; }
.img-portrait { aspect-ratio: 3/4; }
.img-cover { aspect-ratio: 2/3; }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav#site-nav { padding: 20px 24px; }
  .nav-links { display: none; }
  section { padding: 70px 24px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .book-entry, .book-entry:nth-child(even) { grid-template-columns: 1fr; }
  .about-image-wrap { float: none; width: 100%; max-width: 280px; margin: 0 auto 32px; }
  .book-entry:nth-child(even) .book-cover, .book-entry:nth-child(even) .book-info { order: unset; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-featured { padding: 36px; }
  footer { padding: 40px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-input { border-right: 1px solid var(--border); border-bottom: none; }
}

/* ===== GENRE FILTER ===== */
.genre-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 12px;
}

.genre-btn {
  background: transparent;
  border: 1px solid #2a2535;
  color: #9b8fa8;
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.3s;
}

.genre-btn:hover {
  border-color: #7a6230;
  color: #c9a84c;
}

.genre-btn.active {
  background: #c9a84c;
  border-color: #c9a84c;
  color: #000;
}

.book-genre-tag {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 6px;
}

.overview-card {
  transition: opacity 0.3s ease;
}

/* ===== GENRE BADGE AUF COVER ===== */
.book-genre-badge {
  position: absolute;
  top: 52px; right: 0;
  background: #3a1f5c;
  border: 1px solid #7b4fa6;
  color: #d4a8f0;
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
  pointer-events: none;
  z-index: 2;
}

.hero-desc { font-size: 1.1rem; color: var(--muted); font-style: italic; max-width: 500px; margin: 0 auto 32px; line-height: 1.8; }

/* ===== UNIVERSUM BANNER ===== */
.universum-banner {
  position: relative;
  background: linear-gradient(135deg, #0f0d14 0%, #1a0a1a 50%, #0a0a0a 100%);
  border-top: 1px solid #2a2535;
  border-bottom: 1px solid #2a2535;
  overflow: hidden;
}

.universum-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(139,58,82,0.15), transparent 70%);
  pointer-events: none;
}

.universum-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.universum-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--cream);
  margin: 12px 0 16px;
  line-height: 1.2;
}

.universum-title em {
  color: var(--gold);
  font-style: italic;
}

.universum-sub {
  color: var(--muted);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .universum-inner { padding: 60px 24px; }
  .universum-title { font-size: 1.8rem; }
}
