/* =====================================================
   Bert van Riel – Bücher & Lesungen
   Stil: klassisch-elegant, warmer Buchladen
   ===================================================== */

:root {
  --cream: #faf6ef;
  --paper: #fffdf8;
  --ink: #2b211b;
  --ink-soft: #5b4a40;
  --line: #e3d9c8;
  --burgundy: #6b1f2a;
  --burgundy-dark: #501823;
  --gold: #b3873a;
  --shadow: 0 10px 40px rgba(56, 36, 24, 0.10);
  --radius: 6px;
  --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.2px;
  margin: 0 0 0.5em;
  line-height: 1.15;
}

a { color: var(--burgundy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--burgundy-dark); }

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

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }

.brand-mark {
  width: 38px; height: 38px;
  border: 1.5px solid var(--burgundy);
  color: var(--burgundy);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
}

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
}
.main-nav a:hover { color: var(--burgundy); border-bottom-color: var(--burgundy); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  overflow: hidden;
}
.lang-switch button {
  background: transparent;
  border: 0;
  padding: 6px 14px;
  font: 600 13px 'Inter', sans-serif;
  color: var(--ink-soft);
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background .2s, color .2s;
}
.lang-switch button.active {
  background: var(--burgundy);
  color: #fff;
}

/* ============ HERO ============ */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(60% 80% at 80% 10%, rgba(179,135,58,.12), transparent 60%),
    radial-gradient(60% 80% at 10% 100%, rgba(107,31,42,.08), transparent 60%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}

.hero-inner { max-width: 780px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  margin-bottom: 22px;
}

.lead {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 620px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 12px 22px;
  font: 600 14px/1.2 'Inter', sans-serif;
  letter-spacing: 0.4px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}

.btn-primary {
  background: var(--burgundy);
  color: #fff;
  border-color: var(--burgundy);
}
.btn-primary:hover {
  background: var(--burgundy-dark);
  border-color: var(--burgundy-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}
.btn-secondary:hover { background: var(--burgundy); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-soft); }

.btn-block { width: 100%; padding: 14px; font-size: 15px; }

/* ============ SECTIONS ============ */
.section { padding: 88px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { font-size: clamp(32px, 4vw, 44px); }
.section-head p { color: var(--ink-soft); margin: 0; }

/* ============ BOOKS GRID ============ */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
}

.book-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(56, 36, 24, 0.16);
}

.book-cover {
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  border-radius: 4px;
  margin-bottom: 22px;
  position: relative;
  display: grid;
  place-items: center;
  color: #f3e2c4;
  text-align: center;
  padding: 28px;
  box-shadow: inset 6px 0 12px rgba(0,0,0,.18), 0 6px 22px rgba(0,0,0,.15);
  overflow: hidden;
}
.book-cover::before {
  content: "";
  position: absolute;
  left: 8px; top: 0; bottom: 0; width: 1px;
  background: rgba(255,255,255,.15);
}
.book-cover .cover-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-style: italic;
  line-height: 1.15;
}
.book-cover .cover-author {
  position: absolute;
  bottom: 18px; left: 0; right: 0;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(243, 226, 196, .85);
}

.book-title {
  font-size: 26px;
  margin-bottom: 6px;
}
.book-meta {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 12px;
  font-weight: 600;
}
.book-desc {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 22px;
  flex-grow: 1;
}
.book-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}
.book-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
}

.book-langs {
  display: flex;
  gap: 6px;
  margin: 0 0 18px;
}
.book-langs span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--cream);
}

.hint {
  margin-top: 32px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
  font-style: italic;
}

/* ============ COMICS ============ */
.comic-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 auto 40px;
  max-width: 720px;
}
.comic-toolbar input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font: 400 15px 'Inter', sans-serif;
  color: var(--ink);
}
.comic-toolbar input:focus { outline: 2px solid var(--burgundy); outline-offset: 1px; }
.comic-count {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.comic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.comic-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.comic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.comic-cover {
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  position: relative;
  padding: 12px;
  background: linear-gradient(160deg, #2b5b6b 0%, #1a3d4a 100%);
  box-shadow: inset 4px 0 8px rgba(0,0,0,.15);
  overflow: hidden;
}
.comic-cover .c-num {
  position: absolute;
  top: 8px; right: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-style: italic;
  color: rgba(255,255,255,.7);
}
.comic-cover .c-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  line-height: 1.15;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.comic-cover .c-author {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(255,255,255,.6);
}
.comic-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  margin: 4px 0;
}
.comic-meta {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.comic-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 10px;
}
.comic-card .btn {
  padding: 8px 12px;
  font-size: 12px;
  width: 100%;
}
.comic-card .book-langs {
  justify-content: center;
  margin-bottom: 10px;
}
.comic-card .book-langs span {
  font-size: 10px;
  padding: 2px 6px;
}

/* Färbungen für die einzelnen Hefte (durchlaufende Palette) */
.comic-cover.v1 { background: linear-gradient(160deg, #2b5b6b, #1a3d4a); }
.comic-cover.v2 { background: linear-gradient(160deg, #6b2b2b, #4a1a1a); }
.comic-cover.v3 { background: linear-gradient(160deg, #2b6b3a, #1a4a25); }
.comic-cover.v4 { background: linear-gradient(160deg, #6b552b, #4a3a1a); }
.comic-cover.v5 { background: linear-gradient(160deg, #4d2b6b, #341a4a); }
.comic-cover.v6 { background: linear-gradient(160deg, #6b3a2b, #4a261a); }

/* ============ READINGS ============ */
.reading-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.reading-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.reading-thumb {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--burgundy);
  color: #fff;
  font-size: 28px;
  display: grid; place-items: center;
}
.reading-card h3 { font-size: 22px; margin-bottom: 8px; }
.reading-card p { color: var(--ink-soft); font-size: 14px; margin: 0 0 18px; }

/* ============ ABOUT ============ */
.about-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
}
.about-portrait { display: flex; justify-content: center; }
.portrait-placeholder {
  width: 240px; height: 240px;
  border-radius: 50%;
  background: var(--burgundy);
  color: #f3e2c4;
  display: grid; place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-style: italic;
  box-shadow: var(--shadow);
}
.about-text h2 { font-size: 36px; margin-bottom: 18px; }
.about-text p { margin: 0 0 14px; color: var(--ink-soft); }

@media (max-width: 720px) {
  .about-wrap { grid-template-columns: 1fr; text-align: center; }
}

/* ============ FOOTER ============ */
.site-footer {
  background: #2b211b;
  color: #d6c7b3;
  padding: 56px 0 24px;
  margin-top: 64px;
}
.site-footer a { color: #d6c7b3; }
.site-footer a:hover { color: #fff; }

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: #fff;
  margin: 0 0 6px;
}
.footer-heading {
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.copy {
  border-top: 1px solid #3d3127;
  padding-top: 18px;
  font-size: 13px;
  color: #a6957f;
}

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
}

/* ============ MOBILE NAV ============ */
@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-wrap { gap: 12px; }
  .brand-name { font-size: 18px; }
}

/* ============ MODAL ============ */
.modal {
  position: fixed; inset: 0;
  display: none;
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.modal.is-open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(43, 33, 27, 0.55);
  backdrop-filter: blur(3px);
}
.modal-card {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 36px;
  width: min(440px, 92vw);
  box-shadow: 0 30px 60px rgba(0,0,0,.3);
  border: 1px solid var(--line);
}
.modal-close {
  position: absolute;
  top: 10px; right: 14px;
  background: none; border: 0;
  font-size: 28px;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1;
}
.modal-card h3 { font-size: 28px; margin: 0 0 6px; }
.modal-item { color: var(--ink-soft); margin: 0 0 22px; font-size: 15px; }

.modal-row { margin-bottom: 16px; }
.modal-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.modal-row select,
.modal-row input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--cream);
  font: 400 15px 'Inter', sans-serif;
  color: var(--ink);
}
.modal-row select:focus,
.modal-row input:focus {
  outline: 2px solid var(--burgundy);
  outline-offset: 1px;
}

.modal-total {
  text-align: right;
  margin: 18px 0;
  font-size: 16px;
  color: var(--ink-soft);
}
.modal-total strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  color: var(--ink);
}

.modal-note {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 14px 0 0;
  text-align: center;
  font-style: italic;
}
