/* Die Wadrán-Chroniken — Site-Stylesheet (Blutmond) */

:root {
  --bg: oklch(0.12 0.01 25);
  --bg2: oklch(0.17 0.015 25);
  --text: oklch(0.94 0.008 25);
  --muted: oklch(0.70 0.02 25);
  --accent: oklch(0.52 0.19 27);
  --accent-text: oklch(0.97 0.01 25);
  --border: oklch(0.30 0.02 25);
  --font-head: 'Cinzel', serif;
  --font-body: 'Barlow', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; background: var(--bg); }
body {
  font-family: var(--font-body);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
main {
  position: relative;
  isolation: isolate;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text); margin: 0; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 60px; }

/* ---------- Header / Nav ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 60px;
  position: relative;
  z-index: 2;
}
.site-brand { display: flex; align-items: center; gap: 10px; }
.site-brand img { width: 26px; height: 26px; object-fit: contain; opacity: .9; }
.site-brand span {
  font-family: var(--font-head); font-weight: 600; font-size: 19px;
  letter-spacing: .04em; color: var(--text);
}
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  letter-spacing: .02em; color: var(--muted);
  padding-bottom: 4px; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.active { color: var(--accent); font-weight: 600; border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 2px;
  background: transparent; cursor: pointer;
}
.nav-toggle svg { stroke: var(--text); }
.nav-current-label { display: none; font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--accent); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 2px; min-height: 44px;
}
.btn-primary { background: var(--accent); color: var(--accent-text); border: none; }
.btn-secondary { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-row { display: flex; gap: 16px; }

/* ---------- Hero (Landing) ---------- */

.hero-section { position: relative; text-align: center; padding: 10px 0 40px; }
.hero-texture {
  position: absolute; inset: 0; background-image: url(/pics/background.jpg);
  background-repeat: repeat; background-position: center; background-attachment: fixed; opacity: .22; z-index: 0;
}
.page-texture {
  position: absolute; inset: 0; background-image: url(/pics/background.jpg);
  background-repeat: repeat; background-position: center; background-attachment: fixed; opacity: .22; z-index: -1;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-wappen { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 22px; }
.hero-title { font-weight: 700; font-size: 52px; line-height: 1.12; margin: 0 auto 18px; max-width: 700px; }
.hero-tagline { font-family: var(--font-body); font-style: italic; font-size: 15px; color: var(--muted); margin-bottom: 34px; }
.hero-video {
  max-width: 720px; margin: 0 auto 30px; height: 320px;
  background: radial-gradient(ellipse at 50% 40%, var(--bg2), var(--bg));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.hero-video video { width: 100%; height: 100%; object-fit: cover; }
.hero-video .caption {
  position: absolute; bottom: 16px; left: 0; right: 0; text-align: center;
  font-family: var(--font-body); font-size: 13px; letter-spacing: .04em; color: var(--muted);
}
.hero-intro { font-size: 15px; line-height: 1.75; color: var(--muted); max-width: 600px; margin: 0 auto 10px; }
.hero-intro.hero-justify { text-align: justify; }

.lang-switch { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.lang-switch select {
  font-family: var(--font-body); font-size: 13px; color: var(--text);
  background: var(--bg2); border: 1px solid var(--border); border-radius: 2px;
  padding: 6px 10px; cursor: pointer;
}

/* ---------- Bücher ---------- */

.page-head { padding: 14px 0 0; }
.page-head h1 { font-weight: 700; font-size: 38px; margin-bottom: 4px; }
.page-head p { font-family: var(--font-body); font-size: 14px; color: var(--muted); }

.books-banner {
  width: 100%; height: 96px; margin: 26px 0; position: relative;
  background-image: url(/pics/Banner/Banner.jpg); background-size: cover; background-position: center;
}
.books-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
}

.book-row { display: grid; grid-template-columns: 180px 1fr; gap: 36px; padding: 36px 0; }
.book-row + .book-row { border-top: 1px solid var(--border); }
.book-cover { width: 180px; height: 260px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.4); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-meta-row { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.book-band { font-family: var(--font-body); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.status-badge {
  display: inline-block; font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 2px; padding: 4px 10px;
}
.book-title { font-weight: 700; font-size: 28px; margin-bottom: 12px; }
.book-blurb { font-family: var(--font-body); font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 560px; margin-bottom: 12px; }
.leseprobe-pending { font-family: var(--font-body); font-size: 13px; font-style: italic; color: var(--muted); }

.purchase { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.purchase h4 { font-weight: 600; font-size: 17px; margin-bottom: 8px; }
.purchase p { font-family: var(--font-body); font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.purchase ul { margin: 0 0 4px; }
.purchase li { display: flex; gap: 10px; margin-bottom: 7px; font-family: var(--font-body); font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.purchase li .dash { color: var(--accent); flex-shrink: 0; }
.purchase .price { font-weight: 300; color: var(--accent); }
.purchase a { color: var(--text); font-weight: 600; }
.purchase a:hover { color: var(--accent); }
.purchase-also { margin-top: 14px; }

/* ---------- Veranstaltungen ---------- */

.events-section { padding: 12px 0 10px; text-align: center; }
.events-section h1 { font-weight: 700; font-size: 36px; margin-bottom: 8px; }
.events-note { font-family: var(--font-body); font-size: 13px; font-style: italic; color: var(--muted); margin-bottom: 30px; }
.events-cols { display: flex; gap: 56px; text-align: left; }
.events-col { flex: 1; }
.events-col h2 { font-weight: 600; font-size: 22px; margin-bottom: 6px; }
.events-band {
  max-width: 640px; margin: 0 auto 34px; height: 130px;
  background-image: url(/pics/romane/gallery/mini-Chrorchtua_Hoehle.jpg);
  background-size: cover; background-position: center 35%; filter: grayscale(.2);
}
.event-row { display: flex; align-items: baseline; gap: 20px; padding: 16px 0; border-top: 1px solid var(--border); }
.event-date { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--accent); width: 110px; flex-shrink: 0; }
.event-info { flex: 1; }
.event-title { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--text); }
.event-place { font-family: var(--font-body); font-size: 13px; color: var(--muted); }
.event-kind { font-family: var(--font-body); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

/* ---------- Galerie ---------- */

.gallery-head {
  padding: 14px 0 0; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.gallery-admin-hint {
  display: inline-flex; align-items: center; gap: 8px; border: 1px dashed var(--border);
  padding: 10px 18px; border-radius: 2px; flex-shrink: 0; min-height: 44px;
}
.gallery-admin-hint svg { stroke: var(--muted); }
.gallery-admin-hint span { font-family: var(--font-body); font-size: 13px; color: var(--muted); }
.gallery-admin-hint em { opacity: .75; font-style: italic; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 30px 0 50px; }
.gallery-item a { display: block; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.gallery-thumb { width: 100%; aspect-ratio: 280 / 194; border: 1px solid var(--border); overflow: hidden; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption { font-family: var(--font-body); font-size: 12px; color: var(--muted); margin-top: 8px; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  padding: 60px 20px;
}
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 90vw; max-height: 78vh; object-fit: contain; border: 1px solid var(--border); }
.lightbox-caption { font-family: var(--font-body); font-size: 13px; color: var(--muted); text-align: center; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; border: 1px solid var(--border); background: var(--bg2); color: var(--text);
  width: 44px; height: 44px; border-radius: 2px; cursor: pointer; touch-action: manipulation;
  display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: var(--accent); border-color: var(--accent); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */

.legal-page { padding: 20px 0 60px; max-width: 760px; }
.legal-page h1 { font-weight: 700; font-size: 34px; margin-bottom: 26px; }
.legal-page h2 { font-weight: 600; font-size: 20px; margin: 30px 0 10px; }
.legal-page h3 { font-weight: 600; font-size: 16px; margin: 22px 0 8px; color: var(--accent); }
.legal-page p { font-family: var(--font-body); font-size: 14px; line-height: 1.75; color: var(--muted); margin-bottom: 14px; }
.legal-page ul, .legal-page ol { margin: 0 0 14px 22px; font-family: var(--font-body); font-size: 14px; line-height: 1.7; color: var(--muted); }
.legal-page ul { list-style: disc; }
.legal-page ol { list-style: decimal; }
.legal-page li { margin-bottom: 6px; }
.legal-page strong { color: var(--text); }
.legal-page a { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 28px 0; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 14px; }
.footer-nav a { font-family: var(--font-body); font-size: 13px; color: var(--muted); }
.footer-copyright { font-family: var(--font-body); font-size: 12px; color: var(--muted); opacity: .7; }

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  .wrap, .site-header, .hero-section, .page-head, .events-section, .gallery-head { padding-left: 20px; padding-right: 20px; }
  .site-header { padding-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
  .site-brand span { font-size: 15px; }
  .site-header { position: relative; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 10;
    flex-direction: column; gap: 16px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 18px 20px;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-current-label { display: inline; }

  .hero-wappen { width: 64px; height: 64px; }
  .hero-title { font-size: 30px; }
  .hero-video { height: 200px; }
  .hero-intro { text-align: left; }
  .btn-row { flex-direction: column; }
  .btn { width: 100%; }

  .books-banner { height: 56px; }
  .book-row { grid-template-columns: 1fr; text-align: center; }
  .book-cover { margin: 0 auto 18px; }
  .book-meta-row { justify-content: center; flex-wrap: wrap; }
  .book-blurb { text-align: left; }
  .purchase { text-align: left; }

  .events-cols { flex-direction: column; gap: 6px; }
  .events-band { height: 110px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .gallery-head { flex-direction: column; align-items: flex-start; }

  .lightbox { padding: 70px 12px 20px; }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: 18px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
}
