/* Grundlegende Einstellungen */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f6dd9f;
  font-family: Georgia, serif;
}

/* Header */
header {
  position: fixed;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 93%;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: linear-gradient(to left, #fff, #974715);
  border-bottom: 2px solid #fff;
  border-radius: 20px;
  box-shadow: 5px 2px 1px #fff;
  z-index: 100;
}

/* Hauptbereich */
#wrapper {
  max-width: 98%;
  margin: 0px auto 40px auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Sektionen oben */
.language-section,
.top-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px;
  background-color: transparent;
}

/* Einzelnes Buch */
.book-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background-color: transparent;
}

/* Buchinhalt */
.Abstand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  background-image: linear-gradient(to left, #fff, #f6dd9f);
  border-radius: 20px;
  box-shadow: 1px 2px 2px gray;
  border-bottom: 2px solid #fff;
  padding: 12px;
 
}
.Abstand h2,
.Abstand h3,
.Abstand p {
  line-height: 1.2rem;
}


/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1f1f1f;
  color: #d2691e;
  font-size: 1.2rem;
}


/* Mobile-Layout ab 800px */
@media screen and (max-width: 800px) {
  .top-banner {
    flex-direction: column;
    align-items: stretch;
  }

  #linksOben,
  #rightOben {
    width: 100%;
    height: 10px; /* Platzhalterhöhe */
  }

  #middleOben {
    width: 100%;
  }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  header {
    flex-wrap: wrap;
    height: auto;
    padding: 10px;
  } 
  
  .Abstand h2,
.Abstand h3{
 font-size: 1.6rem;
}
.Abstand p {
 font-size: 1.2rem;
}
}

/* Zusätzliche Anpassung für 540px */
@media screen and (max-width: 540px) {
  #linksOben {
    width: 4%;
  }

  #middleOben {
    width: 91%;
    height: auto;
  }

  #rightOben {
    width: 1%;
  }
}

