/* ============================================================
   Verlagshaus Rathmer – Hauptstylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

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

:root {
  --cream:        #F5F3EE;
  --anthracite:   #2C2A27;
  --gold:         #C9A84C;
  --gold-dark:    #A8872D;
  --gray-mid:     #5A5550;
  --gray-light:   #CCCCCC;
  --white:        #FFFFFF;
  --mint:         #9CC3B4;
  --mint-tint:    #EAF3EF;
  --mint-border:  #D6E5DE;
  --font:         'EB Garamond', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--anthracite);
  background: var(--cream);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* === Navigation === */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--gray-light);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: start;
  line-height: 1.2;
}

.nav-logo-img {
  height: 46px !important;
  max-height: 46px !important;
  width: auto !important;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--anthracite);
}

.nav-logo-name {
  display: inline;
  color: var(--gold);
}

.nav-logo-url {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--gray-mid);
  letter-spacing: 0.06em;
}

/* Nav links centered in the middle column */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.nav-links li,
.nav-links li *,
.nav-dropdown,
.nav-dropdown li {
  list-style: none;
  list-style-type: none;
}

.nav-links li::marker,
.nav-dropdown li::marker {
  display: none;
  content: "";
}

.nav-links > li {
  position: relative;
}

/* Hamburger sits in the right column (grid), hidden on desktop */
.nav-toggle {
  justify-self: end;
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--anthracite);
  transition: all 0.25s;
}

.nav-links a,
.nav-links button.nav-dropdown-toggle {
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--gray-mid);
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: var(--font);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links button.nav-dropdown-toggle:hover,
.nav-has-dropdown.active > button.nav-dropdown-toggle {
  color: var(--gold);
}

.nav-caret {
  font-size: 0.68rem;
  transition: transform 0.2s;
  line-height: 1;
  opacity: 0.7;
}



.nav-has-dropdown:hover .nav-caret,
.nav-has-dropdown.open .nav-caret {
  transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--cream);
  border: 1px solid var(--gray-light);
  border-top: 2px solid var(--gold);
  box-shadow: 0 8px 24px rgba(44,42,39,0.10);
  min-width: 220px;
  list-style: none;
  padding: 0.5rem 0;
  z-index: 200;
  border-radius: 0 0 4px 4px;
}

/* Unsichtbare Brücke über die Lücke, damit der Hover beim Runterfahren erhalten bleibt */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown.open .nav-dropdown {
  display: block;
}

.nav-dropdown li a {
  display: block;
  padding: 0.6rem 1.3rem;
  font-size: 0.85rem;
  white-space: nowrap;
  color: var(--gray-mid);
  letter-spacing: 0.03em;
}

.nav-dropdown li a:hover,
.nav-dropdown li a.active {
  color: var(--gold);
  background: var(--mint-tint);
}

/* === Hero (Startseite – Buchhandlungs-Atmosphäre) === */
.hero-home {
  position: relative;
  background:
    radial-gradient(circle at 80% 22%, rgba(156,195,180,0.18), transparent 44%),
    radial-gradient(circle at 16% 80%, rgba(201,168,76,0.12), transparent 42%),
    linear-gradient(160deg, #FBF9F3 0%, #F4F2EA 55%, #ECEDE6 100%);
  border-bottom: 1px solid var(--gray-light);
  overflow: hidden;
}

/* Angedeutete Buchrücken – Tiefe im Hintergrund (vier Ecken) */
.hero-deco {
  position: absolute;
  width: 230px;
  max-width: 20vw;
  height: auto;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.hero-deco-bl { left: 0;  bottom: 0; }
.hero-deco-br { right: 0; bottom: 0; transform: scaleX(-1); }
.hero-deco-tl { left: 0;  top: 0;    transform: scaleY(-1); }
.hero-deco-tr { right: 0; top: 0;    transform: scale(-1, -1); }

.hero-home-center, .hero-shelf { position: relative; z-index: 2; }

@media (max-width: 1000px) {
  .hero-deco { display: none; }
}

.hero-home-center {
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem 2rem 2.5rem;
  text-align: center;
}

.hero-home-center h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1.12;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 1.6rem;
}

.hero-home-center .hero-text { margin-left: auto; margin-right: auto; }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

/* === Bücherregal === */
.hero-shelf {
  max-width: 1100px;
  margin: 1rem auto 0;
  padding: 0 2rem 3.5rem;
}

.hero-shelf-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.4rem;
  min-height: 240px;
}

.shelf-vol {
  display: block;
  flex: 0 0 auto;
  transition: transform 0.3s ease;
}

.shelf-vol img {
  height: 200px;
  width: auto;
  max-width: none;
  display: block;
  border-radius: 2px;
  box-shadow: 0 14px 26px rgba(44,42,39,0.26), 0 3px 8px rgba(44,42,39,0.16);
}

.shelf-vol.tall img { height: 230px; }

.shelf-vol:hover { transform: translateY(-14px); }

/* Regalbrett */
.hero-shelf-plank {
  height: 14px;
  margin-top: -7px;
  border-radius: 3px;
  background: linear-gradient(180deg, #C9A84C 0%, #A8872D 55%, #8A6F22 100%);
  box-shadow: 0 10px 22px rgba(138,111,34,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}

/* === Zitat-Band === */
.quote-band {
  position: relative;
  overflow: hidden;
  background: var(--anthracite);
  color: var(--cream);
  text-align: center;
  padding: 2.8rem 2rem;
}

.quote-band::before {
  content: '\201C';
  position: absolute;
  top: -0.15em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.07;
  font-family: var(--font);
  pointer-events: none;
  z-index: 0;
}

.quote-band p {
  position: relative;
  z-index: 1;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-style: italic;
  font-weight: 500;
  max-width: 820px;
  margin: 0 auto 0.8rem;
  line-height: 1.5;
}

.quote-band span {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* === Hero (Unterseiten – Alt, weiterhin genutzt) === */
.hero {
  background: var(--cream);
  padding: 7rem 2rem 6rem;
  text-align: center;
  border-bottom: 1px solid var(--gray-light);
}

.hero-eyebrow {
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--anthracite);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1.25;
  max-width: 780px;
  margin: 0 auto 1.8rem;
}

.hero-text {
  font-size: 1.15rem;
  color: var(--gray-mid);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* === Buttons === */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.65rem 1.8rem;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: all 0.22s;
}

.btn:hover {
  background: var(--gold);
  color: var(--white);
}

.btn-filled {
  background: var(--gold);
  color: var(--white);
}

.btn-filled:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

/* === Section Wrapper === */
.section {
  padding: 5rem 2rem;
}

/* Alternierende Abschnitte für visuellen Rhythmus */
.section:nth-child(even):not(.about-strip) {
  background: #F2EDE3;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--anthracite);
  margin-bottom: 0.8rem;
}

.section-header p {
  color: var(--gray-mid);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0.5rem auto 0;
}

/* === Category Grid === */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.cat-card {
  background: linear-gradient(165deg, #FFFDF5 0%, #F5EFE3 100%);
  border: 1px solid #E8DFD0;
  border-top: 3px solid var(--gold);
  padding: 2.2rem 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s, transform 0.22s, border-top-color 0.22s;
}

.cat-card:hover {
  box-shadow: 0 8px 26px rgba(201,168,76,0.18);
  transform: translateY(-3px);
  border-top-color: var(--gold-dark);
}

.cat-icon {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  color: var(--gold);
}

.cat-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--anthracite);
  margin-bottom: 0.7rem;
}

.cat-card p {
  font-size: 0.95rem;
  color: var(--gray-mid);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.5rem;
}

/* === About Strip === */
.about-strip {
  background: var(--anthracite);
  color: var(--cream);
  padding: 5rem 2rem;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.about-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.about-strip h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.about-strip .subtitle {
  color: var(--gray-light);
  font-size: 0.95rem;
  font-style: italic;
}

.about-text p {
  color: #C8C4BC;
  line-height: 1.75;
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
}

.about-text p:last-of-type { margin-bottom: 2rem; }

.focus-list {
  list-style: none;
  margin-bottom: 2rem;
}

.focus-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  gap: 1rem;
  color: #C8C4BC;
  font-size: 0.95rem;
}

.focus-list li strong {
  color: var(--cream);
  display: block;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.focus-marker {
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* === Seminare Grid === */
.seminar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.seminar-card {
  border: 1px solid var(--gray-light);
  border-top: 3px solid var(--gold);
  background: var(--white);
  padding: 1.8rem;
  transition: box-shadow 0.22s, transform 0.22s;
}

.seminar-card:hover {
  box-shadow: 0 8px 26px rgba(201,168,76,0.16), 0 2px 8px rgba(44,42,39,0.07);
  transform: translateY(-2px);
}

.seminar-num {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.seminar-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--anthracite);
  margin-bottom: 0.7rem;
  line-height: 1.3;
}

.seminar-card p {
  font-size: 0.9rem;
  color: var(--gray-mid);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.seminar-format {
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}

/* === Contact Section === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-block h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--anthracite);
  margin-bottom: 1.4rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.1rem;
  font-size: 0.97rem;
  color: var(--gray-mid);
}

.contact-item-icon {
  color: var(--gold);
  width: 20px;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-note {
  font-size: 0.85rem;
  color: var(--gray-mid);
  font-style: italic;
  margin-top: 1.5rem;
  line-height: 1.6;
}

/* === Category Pages === */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 2rem 3.5rem;
  border-bottom: 1px solid var(--gray-light);
  text-align: center;
  background:
    radial-gradient(circle at 82% 30%, rgba(156,195,180,0.16), transparent 46%),
    radial-gradient(circle at 14% 78%, rgba(201,168,76,0.10), transparent 44%),
    linear-gradient(160deg, #FBF9F3 0%, #F4F2EA 60%, #ECEDE6 100%);
}

.page-hero .eyebrow,
.page-hero h1,
.page-hero p { position: relative; z-index: 2; }

.page-hero .eyebrow {
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--anthracite);
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero p {
  font-size: 1.08rem;
  color: var(--gray-mid);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.75;
}

/* === Book badge ribbon === */
.book-badge {
  position: absolute;
  top: 14px;
  right: 0;
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.26rem 0.72rem;
  z-index: 4;
  border-radius: 3px 0 0 3px;
  pointer-events: none;
}
.book-badge--neu        { background: var(--gold); color: var(--white); }
.book-badge--bestseller { background: var(--anthracite); color: var(--gold); border: 1px solid var(--gold); border-right: none; }

/* === Book Cards === */
.books-note {
  background: var(--white);
  border: 1px dashed var(--gray-light);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--gray-mid);
  font-size: 0.95rem;
  font-style: italic;
  margin-top: 2rem;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.book-card {
  position: relative;
  background: #FFFDF8;
  border: 1px solid var(--gray-light);
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s, transform 0.22s;
}

.book-card:hover {
  box-shadow: 0 8px 30px rgba(201,168,76,0.18), 0 3px 10px rgba(44,42,39,0.08);
  transform: translateY(-3px);
}

.book-cover {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: linear-gradient(145deg, #F8F0E0 0%, #EDE4D0 100%);
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.book-cover img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 3px 12px rgba(44,42,39,0.14);
  transition: transform 0.3s;
}

.book-card:hover .book-cover img { transform: scale(1.04); }
.book-cover a { display: contents; cursor: pointer; }

.book-body {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-format {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.book-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--anthracite);
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.book-desc {
  font-size: 0.88rem;
  color: var(--gray-mid);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.book-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--anthracite);
  margin-bottom: 1rem;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-sm {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.45rem 1.1rem;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.06);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-sm:hover { background: var(--gold); color: var(--white); }

.btn-sm.filled { background: var(--gold); color: var(--white); }
.btn-sm.filled:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

.btn-sm.secondary {
  border-color: var(--gray-light);
  color: var(--gray-mid);
}
.btn-sm.secondary:hover { background: var(--gray-light); color: var(--anthracite); }

/* Primary button for book detail pages */
.btn-primary {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.8rem 2rem;
  border: 1.5px solid var(--gold);
  color: var(--white);
  background: var(--gold);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  border-radius: 2px;
}
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

/* Stripe badge */
.stripe-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: #6772E5;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Section subtitle */
.cat-subtitle {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  margin-top: 3.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--gray-light);
}

.cat-subtitle::before {
  content: '✦ ';
  font-size: 0.7rem;
  opacity: 0.8;
}

/* Cart / Order panel */
.order-note {
  background: var(--white);
  border: 1px solid var(--gray-light);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  font-size: 0.9rem;
  color: var(--gray-mid);
}

.order-note svg { flex-shrink: 0; }

@media (max-width: 900px) {
  .book-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .book-grid { grid-template-columns: 1fr; }
}

/* === Geschenkideen === */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.gift-grid--single {
  grid-template-columns: 1fr;
  max-width: 420px;
}

.gift-card {
  background: var(--white);
  border: 1px solid var(--mint-border);
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.gift-card:hover {
  box-shadow: 0 8px 28px rgba(44,42,39,0.10);
  transform: translateY(-3px);
}

.gift-icon { margin-bottom: 0.25rem; }

.gift-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--anthracite);
}

.gift-card p {
  font-size: 1rem;
  color: var(--gray-mid);
  line-height: 1.6;
}

.btn-gift {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.65rem 1.8rem;
  background: var(--gold);
  color: var(--white);
  border-radius: 3px;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}

.btn-gift:hover { background: var(--gold-dark); }

.gift-note {
  font-size: 0.8rem;
  color: #9A9590;
  margin-top: -0.25rem;
}

@media (max-width: 640px) {
  .gift-grid { grid-template-columns: 1fr; }
}

/* === Scroll-Einblende-Animation === */
.book-card {
  opacity: 0;
  transform: translateY(24px) !important;
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.22s !important;
}

.book-card.visible {
  opacity: 1;
  transform: translateY(0) !important;
}

.book-card.visible:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 30px rgba(201,168,76,0.18), 0 3px 10px rgba(44,42,39,0.08) !important;
}

/* === Nav scrolled state === */
.site-nav.scrolled {
  border-bottom-color: transparent;
  box-shadow: 0 2px 22px rgba(44,42,39,0.13);
}

/* === Back to top === */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--anthracite);
  color: var(--gold);
  border: 1.5px solid rgba(201,168,76,0.55);
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s, color 0.2s;
  z-index: 900;
  pointer-events: none;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#back-to-top:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* === Footer === */
.site-footer {
  background: var(--anthracite);
  color: #8A8680;
  padding: 3rem 2rem 2rem;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
}

.footer-logo-img {
  height: 36px;
  width: auto;
  border-radius: 4px;
  opacity: 0.9;
}

.ebook-tag {
  display: inline-block;
  margin-left: 0.45rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--mint);
  background: var(--mint-tint);
  border: 1px solid var(--mint-border);
  border-radius: 3px;
  padding: 0.08rem 0.32rem;
  vertical-align: middle;
  text-transform: uppercase;
}

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

.footer-links a { color: #8A8680; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1200px;
  margin: 1.2rem auto 0;
  font-size: 0.8rem;
  color: #6A6560;
}

/* === Responsive === */
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .seminar-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-actions { justify-content: center; }
  .hero-shelf-row {
    justify-content: flex-start;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .shelf-vol img { height: 170px; }
  .shelf-vol.tall img { height: 190px; }
}

@media (max-width: 760px) {
  .nav-inner {
    grid-template-columns: 1fr auto;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 2px solid var(--gold);
    padding: 0.8rem 1.5rem 1rem;
    gap: 0;
    z-index: 150;
    box-shadow: 0 6px 18px rgba(44,42,39,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-links > li {
    width: 100%;
    border-bottom: 1px solid #E8E5DF;
  }
  .nav-links > li:last-child { border-bottom: none; }
  .nav-links a,
  .nav-links button.nav-dropdown-toggle {
    padding: 0.75rem 0;
    width: 100%;
    justify-content: space-between;
  }
  .nav-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid #E8E5DF;
    border-radius: 0;
    padding: 0.3rem 0 0.5rem 1rem;
    min-width: unset;
  }
  .nav-has-dropdown:hover .nav-dropdown { display: none; }
  .nav-has-dropdown.open .nav-dropdown { display: block; }
  .cat-grid { grid-template-columns: 1fr; }
  .seminar-grid { grid-template-columns: 1fr; }
  .hero { padding: 4rem 1.5rem; }
  .section { padding: 3.5rem 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
