body {
  font-family: Arial, sans-serif;
  background: #f8f9fa;
  color: #333;
  margin: 0;
}

.left a {
    text-decoration: none;
    color: inherit;
}



/* Hover-Effekt */
ul li a:hover {
    background: #eaebf5;
    border-color: #d1d2df;
    transform: translateX(4px);
    font-weight: bold; /* Schrift fett */
    transition: transform 0.2s ease; /* weiche Animation */
}


ul li a,
ul li a:visited,
ul li a:active,
ul li a:focus {
    color: #333 !important;
}


ul li a {
   font-family: "Open Sans", sans-serif;
}






.link-small {
  text-decoration: none;
  color: #000;
  font-size: 0.9em;
}
.link-small:hover {
  color: #0078d4;
  text-decoration: underline;
}

.pagination {
  display: inline-block;
}

.pagination .page-link {
  color: #0078d4;
  padding: 8px 14px;
  margin: 0 3px;
  text-decoration: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95em;
}

.pagination .page-link:hover {
  background-color: #0078d4;
  color: white;
}

.pagination .page-link.active {
  background-color: #0078d4;
  color: #fff;
  border: 1px solid #0078d4;
  font-weight: bold;
}

h1, h2 {
  text-align: center;
  color: #222;
}
h1 {
  padding: 20px;
}
h2 {
  padding: 10px;
}

form {
  text-align: center;
  margin: 20px;
}

input[type=text] {
  width: 300px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button {
  padding: 8px 16px;
  background: #0078d4;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
button:hover {
  background: #005fa3;
}

.container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 15px;
  width: 280px;
  text-align: center;
  transition: 0.2s;
}
.card:hover {
  transform: scale(1.02);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.price {
  font-size: 1.2em;
  font-weight: bold;
  color: #d32f2f;
  margin-top: 5px;
}
.old-price {
  text-decoration: line-through;
  color: #777;
  margin-left: 8px;
}
.discount {
  background: #4caf50;
  color: #fff;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.9em;
  margin-left: 5px;
}

.feature {
  font-size: 0.9em;
  color: #333;
}
.prime {
  color: #0073bb;
  font-weight: bold;
}
.rating {
  color: #f90;
  font-weight: bold;
}
.meta {
  font-size: 0.9em;
  color: #555;
  margin-top: 8px;
}
.card.sale {
  border: 2px solid #4caf50;
}

.small-note {
  font-size: 0.75em;
  color: #0a0a0aff;
}

/* Feature-Hover-Bereich */
.features {
  position: relative;
  display: inline-block;
  cursor: pointer;
  font-size: 0.95em;
}
.toggle-features {
  cursor: pointer;
  color: #0073bb;
  user-select: none;
  font-size: 15.2px;
}
.toggle-features:hover {
  text-decoration: underline;
}

.toggle-features2 {
  cursor: pointer;
  color: #0073bb;
  user-select: none;
  font-size: 13px;
}
.toggle-features2:hover {
  text-decoration: underline;
}



.features-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;               /* Mittelpunkt der Box anpeilen */
  transform: translateX(-50%); /* zentriert horizontal */
  z-index: 1000;
  background: #fff;
  border: 1px solid #ddd;
  font-size: 0.9em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  padding: 12px 15px;
  min-width: 320px;
  max-width: 400px;
  line-height: 1.5em;
  overflow-y: auto;
  max-height: calc(1.5em * 18 + 12px);
  border-radius: 6px;
}


.features-list .feature {
  margin-bottom: 10px;
}
.features-list .feature:last-child {
  margin-bottom: 0;
}
.features-list .feature.more-info a {
  color: #0073bb;
  font-weight: bold;
  text-decoration: none;
}
.features-list .feature.more-info a:hover {
  text-decoration: underline;
}
.features:hover .features-list {
  display: block;
}
.features-list::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 15px;
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent #fff transparent;
  filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.1));
}

.footer {
  margin-left: 80px;
}


.container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;   /* <<< WICHTIG! Karten in der Mitte */
  padding: 20px;
}

/* Buch-Karten-Layout (sauber zusammengefasst) */
.card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 15px;
  width: 280px;
  text-align: center;
  transition: 0.2s;
}
.card:hover {
  transform: scale(1.02);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

/* Container für komplette Kategorie */
.books-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;   /* <<< FEHLTE! */
}

.books-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;   /* Karten horizontal zentrieren */
}
