/* style.css */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Merriweather&family=Work+Sans:wght@700&display=swap');

body {
  margin: 0;
  font-family: 'Merriweather', serif;
  background-color: #ffffff;
  color: #111;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.5em;
}

header {
  text-align: center;
  padding: 2em 1em 0.5em;
}

header .logo {
  max-width: 220px;
  height: auto;
  margin-bottom: 1em;
}

nav {
  background-color: #f0f0f0;
  font-family: 'Roboto', sans-serif;
  height: 1.5cm;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 2em;
  gap: 1.5em;
  box-sizing: border-box;
  margin: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

nav a {
  text-decoration: none;
  font-weight: 700;
  color: #333;
}

nav a:hover {
  text-decoration: underline;
}

.banner {
  position: relative;
  height: 360px;
  background-image: url('bilder/Buecher-Banner.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin: 0;
}

.banner-text {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 1.5em 2em;
  border-radius: 8px;
}

.banner-text h1 {
  font-family: 'Work Sans', sans-serif;
  font-size: 2.2em;
  margin-bottom: 0.5em;
  color: #fff;
}

.banner-text p {
  font-family: 'Merriweather', serif;
  font-size: 1.1em;
  margin: 0;
}

.intro {
  max-width: 800px;
  margin: 2em auto;
  padding: 0 1em;
  text-align: center;
}

.buch-block {
  max-width: 1100px;
  margin: 3em auto;
  padding: 0 1em;
  display: flex;
  flex-direction: column;
  gap: 3em;
}

.buch {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2em;
}

.buch.rechts {
  flex-direction: row-reverse;
}

.buch img {
  width: 180px;
  height: auto;
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-top: 0.3em;
}

.beschreibung {
  flex: 1;
}

.button {
  display: inline-block;
  margin-top: 1em;
  padding: 0.5em 1em;
  background-color: #333;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  transition: background-color 0.2s;
}

.button:hover {
  background-color: #555;
}

/* Detailseite Layout */
.buch-detail {
  max-width: 1000px;
  margin: 2em auto;
  padding: 0 1em;
  display: flex;
  flex-direction: row;
  gap: 2em;
  align-items: flex-start;
}

.buchcover-detail {
  width: 280px;
  height: auto;
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.buchtext-detail {
  flex: 1;
}

.autor-section {
  max-width: 900px;
  margin: 3em auto;
  padding: 0 1em;
  display: flex;
  flex-direction: row;
  gap: 2em;
  align-items: center;
}

.autor-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.autor-kurztext {
  font-family: 'Merriweather', serif;
  font-size: 1.05em;
  color: #333;
}

.autor-langtext {
  max-width: 800px;
  margin: 2em auto;
  padding: 0 1em;
  line-height: 1.8;
}


@media (max-width: 768px) {
  .autor-section {
    flex-direction: column;
    text-align: center;
  }

  .autor-img {
    margin-bottom: 1em;
  }

  .buch {
    flex-direction: column !important;
    text-align: center;
  }

  .buch img {
    width: 60%;
    max-width: 300px;
  }

  .buch-detail {
    flex-direction: column;
    text-align: center;
  }

  .buchcover-detail {
    width: 70%;
    max-width: 300px;
    margin: 0 auto;
  }

  nav {
    flex-direction: column;
    height: auto;
    padding: 1em;
    transform: none;
    left: 0;
    width: 100%;
  }
}

.presse-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 20px;
}

.presse-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border-bottom: 1px solid #ddd;
  padding-bottom: 20px;
}

.presse-box img {
  width: 120px;
  height: auto;
  object-fit: cover;
}

.presse-box h3 {
  margin: 0;
  font-size: 1em;
}

.presse-box p {
  margin: 0.5em 0 0 0;
  font-size: 0.9em;
}

footer {
  text-align: center;
  padding: 2em 1em;
  background-color: #f9f9f9;
  font-size: 0.9em;
  color: #666;
}

/* Eingabefelder schöner */
#downloadForm input {
  display: block;
  width: 100%;
  max-width: 500px;
  font-size: 1rem;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Button größer & mit leichtem Hover */
#downloadForm button {
  padding: 12px 20px;
  font-size: 1rem;
  background-color: #444;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 8px;
}

#downloadForm button:hover {
  background-color: #222;
}

/* Zahlungsblock optisch etwas eingrenzen */
#zahlungshinweis {
  margin-top: 24px;
  max-width: 600px;
}

/* Mobile: Zahlungsblock und QR sauber zentrieren */
@media screen and (max-width: 768px) {
  /* gesamte Box mittig (nicht nur Text) */
  #zahlungshinweis {
    margin-left: auto;
    margin-right: auto;
  }

  /* QR-Container als Flex-Zeile, Inhalt mittig */
  #epcQR {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* schadet nicht */
  }

  /* falls Canvas/IMG eigene Inline-Styles hat */
  #epcQR > canvas,
  #epcQR > img {
    display: block;
    margin: 0 auto;
  }
}

.legalbox {
  max-width: 600px;
  margin: 10px 0 6px;
  line-height: 1.35;
  font-size: 0.95rem;
}
.legalbox input[type="checkbox"] {
  transform: translateY(2px);
  margin-right: 8px;
}
.legalbox a { text-decoration: underline; }