body {
  font-family: "Georgia", serif;
  background: #f5f5dc;
  color: #3b2f2f;
  margin: 0;
  padding: 0 200px; /* links & rechts Platz für die Regale */
  background: url("../images/door_1.png") no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
}

.wrapper {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

/* Bücherregale links und rechts */
body::before,
body::after {
  content: "";
  position: fixed; /* bleiben stehen beim Scrollen */
  top: 0;
  bottom: 0;
  width: 200px; /* Regalbreite */
  background: url("../images/shelf_red.png") repeat-y top center;
  background-size: auto;
  z-index: 0;
}

body::before { left: 0; }
body::after { right: 0; }

/* Header */
header {
  background: #e6d9b3e6;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
}

/* Navigation */
nav {
  margin-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 800px;
}

.nav-left a {
  margin: 0 12px;
  padding: 6px 0;
  text-decoration: none;
  color: #3b2f2f;
  font-weight: bold;
  font-size: 1rem;
  line-height: 1.4;
}

.nav-left a:hover { text-decoration: underline; }

/* Dropdown */
.dropdown { position: relative; display: inline-block; }
.dropdown>a::after { content: " ▾"; font-size: 0.8rem; }

.dropdown-content {
  display: none;
  position: absolute;
  background: #fdf6e3;
  width: max-content;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  z-index: 1;
}

.dropdown-content a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #3b2f2f;
  font-size: 0.9rem;
  white-space: nowrap;
}

.dropdown-content a:hover { background: #fdf6e3; }
.dropdown:hover .dropdown-content { display: block; }

/* Sprachumschalter */
.lang-switch { font-weight: bold; font-size: 1rem; }
.lang-switch span { cursor: pointer; }
.lang-switch span:hover { text-decoration: underline; }

/* Main */
main {
  text-align: center;
  padding: 2rem;
  background: #e6d9b3e6; /* warmes Beige, 80% Deckkraft */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 1280px;
  margin: 2rem auto;
}

main h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Sneak Peek Buch */
.sneakpeek-wrapper {
  position: relative;
  display: inline-block;
  max-width: 220px;
}

.sneakpeek-book {
  max-width: 220px;
  height: auto;
}

/* Titel */
.sneakpeek-wrapper > .title_link {
  position: absolute;
  top: 49%;   /* Zentrierung */
  left: 48%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Lora", serif;
  font-size: 1.5rem;
  color: #e6d9b3e6;
  text-shadow: 2px 2px 3px black;
}

.title_link span {
  display: block;   /* jede Zeile untereinander */
  line-height: 1.2; /* Abstand zwischen Zeilen */
}

.title-mid {
  margin-top: 90px; /* Abstand für Ornament */
}

.sneakpeek-wrapper:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* Footer */
footer {
  background: #e6d9b3e6;
  border-radius: 12px;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.9rem;
}

footer a {
  margin: 0 5px;
  text-decoration: none;
  color: #3b2f2f;
  font-weight: bold;
}

footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
  body::before, body::after { display: none; }
  body {
    background-size: cover;
    background-position: top center;
    padding: 0 !important;
  }

  .wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 10px;
    background: none;
  }

  header, footer {
    display: block;
    width: 100%;
    background: #e6d9b3e6;
    padding: 0.5rem;
    text-align: center;
    border-radius: 12px;
  }

  nav { display: block; text-align: center; }
  nav a { display: inline-block; margin: 5px; }

  main {
    display: block;
    width: 90%;
    background: #e6d9b3e6;
    margin: 1rem auto;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
  }
}
