/* ====== Globales Grundlayout ====== */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #333;
}

.content-wrapper {
  max-width: 620px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
}

.content-wrapper h1 {
  text-align: center;
  font-size: 2.5rem;
  line-height: 1.3;
  padding: 2rem 1rem;
  max-width: 620px;
  margin-top: 1.5rem;
}

header {
  padding: 1rem;
  background-color: #f8f8f8;
  text-align: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
}

.hero {
  position: relative;
  height: 40vh;
  overflow: hidden;
}

.hero-background {
  background-image: url("img/bibliothek.gif");
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 128, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 4rem 1rem;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-family: 'Roboto', Arial, sans-serif !important;
}

.hero-content p {
  font-size: 1.5rem;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  background-color: #eee;
  margin: 0;
}

.main-nav ul li {
  position: relative;
  padding: 1rem;
}

.main-nav ul li a {
  display: block;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.main-nav ul li a:hover {
  transform: scale(1.4);
  color: #006633;
}

.main-nav ul li .submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  min-width: 180px;
  z-index: 9999;
  background-color: #f0f0f0;
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(.42,.24,.5,1.32);
  display: block;
}

.main-nav ul li .submenu a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.5em 2em 0 0.5em;
  box-sizing: border-box;
}

.main-nav ul li:hover .submenu {
  opacity: 1;
  pointer-events: auto;
}

.main-nav ul li .submenu li {
  display: block;
  width: 100%;
}

.verlagsvorstellung .content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.vorschau {
  padding: 2rem 0;
}

/* ————— BUCHGALERIE-GRID (Startseite) ————— */
.vorschau .buch-galerie {
  display: flex;
  flex-wrap: wrap;
  gap: 1.7rem 1rem;
  justify-content: center;
  margin: 0 auto 3rem auto;
  max-width: 1850px;
  padding: 0 0.5rem;
}

/* ————— GROSSE COVER-FLÄCHEN (Startseite) ————— */
.vorschau .buchcover {
  width: 256px;
  height: 520px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: transform 0.55s cubic-bezier(.24,.77,.44,1.18), box-shadow 0.25s;
}

.vorschau .buchcover img {
  width: 250px;
  height: 384px;
  object-fit: contain;
  border-radius: 15px 15px 0 0;
  background: #ececec;
  margin: 0 0 0.5rem 0;
  display: block;
}

.vorschau .buchcover .buchinfo {
  width: 98%;
  text-align: center;
  font-size: 1.2rem;
  margin-top: 0.12rem;
  color: #232323;
  display: flex;
  flex-direction: column;
  gap: 0.08em;
}

.vorschau .buchcover .buchinfo p {
  margin: 0;
  line-height: 1.14;
}

.vorschau .buchcover .buchinfo p:nth-child(2) {
  margin-bottom: 0.35em;
}

.vorschau .buchcover:hover {
  transform: scale(1.16);
  box-shadow: 0 24px 92px rgba(0,0,0,0.24);
  z-index: 22;
}

/* ——— Allgemeine Buchgalerie für Unterseiten ——— */
body:not(.vorschau) .buch-galerie,
.buch-galerie:not(.vorschau .buch-galerie) {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  justify-content: center;
  max-width: 1500px;
  margin: 0 auto 3rem auto;
  padding: 0 0.5rem;
}

.buch-galerie:not(.vorschau .buch-galerie) .buchcover {
  width: 220px;
  height: 360px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3.5rem;
  transition: transform 0.55s cubic-bezier(.24,.77,.44,1.12), box-shadow 0.25s;
}

.buch-galerie:not(.vorschau .buch-galerie) .buchcover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #ececec;
  border-radius: 13px 13px 0 0;
  margin-bottom: 0.6rem;
}

.buch-info {
  padding: 0.7rem 0.5rem 1.2rem 0.5rem;
  text-align: center;
  font-size: 1rem;
  min-height: 110px;
}

.buchcover:hover {
  transform: scale(1.3);
}

.buchcover .cover-box {
  width: 100%;
  height: 300px;
  background-color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.buchcover p {
  margin: 0.3rem 0;
  font-size: 1rem;
}

.info-section {
  padding: 2rem 1rem;
}

.info-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.map {
  flex: 1 1 45%;
}

.map img {
  width: 100%;
  height: auto;
  border: 1px solid #ccc;
  transition: transform 0.75s ease;
  cursor: zoom-in;
}

.map img:hover {
  transform: scale(1.5);
  z-index: 10;
  position: relative;
}

.events {
  flex: 1 1 45%;
}

.event-list {
  list-style: none;
  padding: 0;
}

.event-box {
  background-color: #f2f2f2;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid #888;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.event-gap {
  display: inline-block;
  width: 2em;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #f8f8f8;
  margin-top: 2rem;
}

/* Navigation Hover Scaling */
.main-nav ul li a {
  transition: transform 0.3s ease;
}

.main-nav ul li a:hover {
  transform: scale(1.4);
  color: #006633;
}

.submenu {
  border-radius: 15px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.11);
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #f7f7f7;
}

.submenu li a {
  display: block;
  padding: 0.6em 1.3em;
  color: #232323;
  text-decoration: none;
  font-size: 1.08rem;
  transition: background 0.22s, color 0.22s, transform 0.22s;
}

.submenu li:nth-child(even):not(.submenu-divider) {
  background-color: #ebebeb;
}
.submenu li:nth-child(odd):not(.submenu-divider) {
  background-color: #f5f5f5;
}
.submenu li:not(.submenu-divider):not(:last-child) {
  border-bottom: 1px solid #e9e9e9;
}