html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #333;
  background-color: #e8e6dc;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
}

.site-header {
  /* später */
}

.logo img {
  width: 100%;
  max-width: 250px;
  height: auto;
  display: block;
  margin: 0 auto;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.buch-header-layout-container {
  background-color: #e8e6dc;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 110px;
}

.buch-header {
  margin: 0;
}

.buch-header h1 {
  font-size: 2.25rem;
  margin: 0;
  font-weight: bold;
}

.buch-header a {
  color: #333;
  text-decoration: none;
}

.buch-header a:hover {
  color: #1B457F;
}

.buch-untertitel {
  font-size: 1.25rem;
  color: #1B457F;
  margin: 0;
}

.buch-layout-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.buch-seitenleiste {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.buch-cover img {
  display: block;
  width: 100%;
  max-width: 250px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.buch-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.buch-navigation a {
  display: block;
  text-align: center;
  background: #ffffff;
  color: #1B457F; 
  padding: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  border-radius: 12px;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.buch-navigation a:hover {
  background: #1B457F;
  color: #ffffff;
}

.buch-hauptinhalt dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0 1rem;
}

.buch-hauptinhalt dt {
  margin: 0;
  font-weight: bold;
}

.buch-hauptinhalt dd {
  margin: 0;
}

.buch-hauptinhalt h2 {
  font-size: 1.75rem;
  margin: 0 0 30px 0;
}

.buch-hauptinhalt h3 {
  font-size: 1.25rem;
  margin: 0 0 15px 0;
}

.buch-hauptinhalt h4 {
  font-size: 1.1rem;
  margin: 20px 0 10px 0;
}

.buch-hauptinhalt h5 {
  font-size: 1rem;
  margin: 20px 0 10px 0;
}

.buch-abschnitt {
  margin-bottom: 50px;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  scroll-margin-top: 110px;
}

.box-gray { 
  background-color: #f0f0f0; 
  border: 1px solid #333; 
  padding: 0 1rem; 
}

.box {
  border: 1px solid #333; 
  padding: 0 1rem; 
}

.image-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  justify-content: center;
}

.image-item {
  width: auto;
  max-width: 100%;
  height: auto;
}

.buch-kauf-box {
  margin-top: -40px;
  margin-bottom: 50px;
  background: #f3f2ed;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.buch-kauf-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.buch-kauf-box a {
  display: block;
  text-align: center;
  background: #1B457F;
  color: #ffffff;
  padding: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  border-radius: 12px;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.buch-kauf-box a:hover {
  background: #ffffff;
  color: #1B457F;
}

.kauf-hinweis {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0 0 10px 0;
  color: #1B457F;
}

.site-footer {
  padding: 10px;
  text-align: center;
  font-size: 0.95rem;
}

.footer-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.footer-navigation a {
  color: #a38465;
  text-decoration: none;
  font-weight: bold;
}

.footer-navigation a:hover {
  color: #ffffff;
}

@media (min-width: 992px) {

.buch-header-layout-container {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  align-items: start;
  position: sticky;
  top: 0;
}

.buch-layout-container {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  gap: 30px;
  align-items: start;
}

.buch-seitenleiste {
  margin-top: 0;
  position: sticky;
  top: 110px;
}

.buch-cover img {
  margin: 0;
  max-width: 100%;
}

.image-item {
  width: 30%;             
  height: auto; 
}

.buch-kauf-box {
  margin-top: 0;
  margin-bottom: 0;
  position: sticky;
  top: 110px;
}

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
