/* =====================================================
   1. BASE / RESET
===================================================== */

html,
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #000;
  scroll-behavior: smooth;
}

/* =====================================================
   2. GLOBAL SECTIONS
===================================================== */

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.section-bookbg {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0rem;
  position: relative;
}

.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #e2e2e2;
}

.contact {
  padding-left: 15%;
  padding-right: 15%;
  padding-bottom: 2rem;
  align-items: center;
  justify-content: center;
  text-align: left;
  color: #e2e2e2;
  background-image: url('img/03.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.contact h1 {
  text-align: center;
}

.normal {
  background: #160d13;
  color: #e2e2e2;
}

#covers {
  display: block;

  position: relative;

  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  color: #e2e2e2;
  padding: 4rem 2rem;
}

/* =====================================================
   3. SCROLL INDICATOR
===================================================== */

.scroll-indicator {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.arrow {
  animation: slideDown 1.8s infinite ease-in-out;
  opacity: 0;
}

.arrow:nth-child(2) {
  animation-delay: 0.2s;
}

.arrow span {
  display: block;
  width: 20px;
  height: 20px;
  border-right: 4px solid #e2e2e2;
  border-bottom: 4px solid #e2e2e2;
  transform: rotate(45deg);
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(15px);
  }
}

/* =====================================================
   4. NAVIGATION
===================================================== */

.burger {
  position: fixed;
  top: 30px;
  left: 30px;
  font-size: 32px;
  cursor: pointer;
  color: #fff;
  z-index: 1001;
  transition: 0.5s ease;
  background: none;
  border: 0;
}

.burger:hover {
  color: #85729d;
}

.side-nav {
  position: fixed;
  top: 0;
  left: -250px;

  width: 250px;
  height: 100%;

  background: rgba(22, 13, 19, 0.7);
  padding-top: 80px;
  transition: 0.5s ease;
  z-index: 1000;
}

.side-nav.active {
  left: 0;
}

.side-nav a {
  display: block;
  padding: 15px 25px;
  text-decoration: none;
  color: #e2e2e2;
  font-size: 1rem;
}

.side-nav a:hover {
  background: #2a1a22;
}

.nav-legal .sub-links a {
  font-size: 0.9rem;
  color: #cfcfcf;
}

/* =====================================================
   5. BOOK COMPONENTS
===================================================== */

.book-covers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(4rem, 8vw, 8rem);
  margin: 0 0 1rem 0;
}

.book-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  padding: 2rem;
}

.book-card img {
  width: 100%;
  height: auto;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {

.book-card img {
  width: auto;
  height: 300px;
  margin-bottom: 0.5rem;
  }   
}

.book-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #e2e2e2;
}

.book-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #85729d;
}

.book-card .btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 1.3rem;

  background: #1c1c1c;
  color: #e2e2e2;
  text-decoration: none;
  font-size: 0.9rem;

  transition: color 0.5s;
}

.book-card .btn:hover {
  color: #85729d;
}

.more-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* max. 3 pro Reihe */
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
}

@media (max-width: 768px) {
  .more-covers {
    grid-template-columns: 1fr;
  }
}


/* =====================================================
   6. FEATURE / PREVIEW SECTIONS
===================================================== */

.section-feature.new-arrivals {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: #e2e2e2;
}

.section-preview {
  margin-top: 3rem;
  flex: 1;
}

h2 {
  color: #85729d;
}

.section-feature h1,
.section-books h1,
.section-preview h1,
.section-preview h3 {
  color: #85729d;
}

.section-books h1 {
  font-size: clamp(1rem, 3.4vw, 2.5rem);
  text-shadow: 2px 2px 2px #000000;
}

.section-preview {
  padding: 20px;
  color: #e2e2e2;
}

.featured-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  margin-bottom: 1rem;
  text-align: center;
  color: #e2e2e2;
}


/* Preview Layout */

.preview-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding-bottom: 5rem;
}

.preview-image {
  display: flex;
  justify-content: center;
}

.preview-image img {
  max-width: 70%;
  height: auto;
  display: block;
}

.preview-text {
  max-width: 600px;
  text-align: center;
}


.preview-text h1 {
  text-align: center;
}
/* =====================================================
   7. PRICE
===================================================== */

.price-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 20px;
}

.price-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.price-title {
  font-size: 1.3rem;
}

.price-sub {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: -0.5rem;
}

.price-sub.placeholder {
  visibility: hidden;
}

.price-value {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 8px;
  color: #85729d;
}

/* =====================================================
   8. AGB / FAQ
===================================================== */

.section-agb,
.section-faq {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
  text-align: left;
}

.section-agb h1,
.section-agb h4,
.section-faq h1,
.section-faq h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #85729d;
}

.section-agb h1,
.section-faq h1 {
  font-size: 2rem;
  text-align: center;
}

.section-agb h4 {
  font-size: 1.2rem;
  text-decoration: underline;
}

.section-agb p,
.section-agb li,
.section-preview li {
  color: #cfcfcf;
}

.section-agb ul,
.section-preview ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.section-agb li,
.section-preview li {
  margin-bottom: 0.2rem;
  text-align: left;
}

.section-agb a {
  color: #85729d;
  text-decoration: underline;
}

.section-agb a:hover {
  color: #e2e2e2;
}

.faq {
  text-align: left;
}

/* =====================================================
   9. FOOTER
===================================================== */

.site-footer {
  background: rgba(22, 13, 19, 0.85);
  color: #e2e2e2;
  text-align: center;
  padding: 10px 0;
  font-size: 0.9rem;
  margin-top: 0rem;
}

.site-footer .footer-nav a {
  margin: 0 12px;
  color: #e2e2e2;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer .footer-nav a:hover {
  color: #85729d;
}

/* =====================================================
   10. LINKS
===================================================== */

.contact-link {
  color: #85729d;
  text-decoration: none;
  font-weight: 500;
  transition: 0.5s ease;
}

.contact-link:hover {
  color: #e2e2e2;
  text-decoration: underline;
}

/* =====================================================
   11. MEDIA QUERIES
===================================================== */

@media (max-width: 768px) {

  .parallax {
    background-attachment: scroll;
  }

  .book-covers {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    width: 100%;
  }

  .preview-container {
    flex-wrap: wrap;
  }

  .preview-text {
    text-align: center;
  }

  .section-preview li {
    font-size: 0.9rem;
  }

  .section-agb li::marker,
  .section-preview li::marker {
    color: #85729d;
  }
}

@media (min-width: 768px) {

  .preview-container {
    flex-wrap: nowrap;
  }

  .preview-text {
    text-align: left;
  }
}

/* ----------------------------------------------
   ACCORDION
------------------------------------------------*/

.accordion {
  max-width: 70%;
  margin: 0 auto;
}

.accordion ul {
  margin-top: -0.5rem;
  margin-bottom: -0.5rem;
}

@media (max-width: 768px) {

.accordion {
  max-width: 95%;
  margin: 0 auto;
  }
}

.accordion-text {
    margin-top: 0 !important;
    margin-bottom: 0.5em !important;
    line-height: 1.3 !important;
}

.anchor {
    scroll-margin-top: 65px;
}


.accordion .accordion-item {
    border-bottom: 0px solid #353535;
}

.accordion .accordion-item[aria-expanded="true"] {
    border-bottom: 0px solid #353535;
}

.accordion button {
    position: relative;
    display: block;
    text-align: left;
    width: 100%;
    padding: 1em 0;
    margin-bottom: 1em;
    color: #e1e1e1;
    font-size: 1.10rem;
    font-weight: 400;
    border: none;
    background-color:rgba(0, 0, 0, 1);
    outline: none;
}

.accordion button:hover, .accordion button:focus {
    cursor: pointer;
    background-color:rgba(0, 0, 0, 1);
    color: #85729d;
}
.accordion button:hover::after, .accordion button:focus::after {
    cursor: pointer;
    color: #03b5d2;
    border: 0px solid #03b5d2;
}

.accordion button .accordion-title {
    padding: 0;
    margin-left: 40px;
    display: block;
    padding-right: 1.5em;
}

.accordion button[aria-expanded=true] {
    color: #85729d;
}

.accordion button[aria-expanded=true] .icon::after {
    width: 0;
}

.accordion button .icon {
    display: inline-block;
    position: absolute;
    top: 18px;
    left: 10px;
    width: 22px;
    height: 22px;
    border: 0px solid;
    border-radius: 0px;
    color: #85729d;
}

.accordion button .icon::before {
    display: block;
    position: absolute;
    content: "";
    top: 9px;
    left: 5px;
    width: 10px;
    height: 2px;
    background: currentColor;
}

.accordion button .icon::after {
    display: block;
    position: absolute;
    content: "";
    top: 5px;
    left: 9px;
    width: 2px;
    height: 10px;
    background: currentColor;
}

.accordion button[aria-expanded=true] + .accordion-content {
    opacity: 1;
    max-height: 35em;
    margin-bottom: 1em;
    transition: opacity 600ms linear, max-height 600ms linear;
}

.accordion .accordion-content {
    opacity: 0;
    background-color:rgba(0, 0, 0, 1);
    max-height: 0;
    overflow: hidden;
    transition: opacity 600ms linear, max-height 600ms linear;
    will-change: opacity, max-height;
}

.accordion .accordion-content p {
    text-align: left;
    font-size: 15px;
    font-weight: 300;
    margin: 2em 0;
    padding: 20px;
}

/* ----------------------------------------------
   COOKIE BANNER
------------------------------------------------*/

.cookie-banner {
    position: fixed;
    bottom: 54px;
    right: 0;
    left: 10px;
    background-color: #0f0f0f;
    color: #fff;
    padding: 14px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 9999;
    max-width: 400px;
    display: none;
}

@media (max-width: 450px) {
.cookie-banner {
    position: fixed;
    bottom: 54px;
    right: 0;
    left: 0;
    background-color: #0f0f0f;
    color: #fff;
    padding: 14px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 9999;
    max-width: 100%;
    display: none;
  }
}

.cookie-banner p {
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.cookie-banner a {
    color: #9e9e9e;
    text-decoration: underline;
}

.cookie-banner a:hover {
    color: #fff;
}

.cookie-banner .buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cookie-banner button {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

#accept-all {
    background-color: #fff;
    color: #000;
}

#accept-all:hover {
    background-color: #e0e0e0;
}

#reject-all {
    background-color: #2b2b2b;
    color: #ccc;
}

#reject-all:hover {
    background-color: #3a3a3a;
}

#open-settings {
    background-color: transparent;
    color: #9e9e9e;
    text-decoration: underline;
}

.cookie-settings {
    position: fixed;
    bottom: 60px;
    right: 20px;
    background-color: #0f0f0f;
    color: #fff;
    padding: 16px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 10000;
    max-width: 360px;
    display: none;
}

.cookie-settings h3 {
    margin-top: 0;
    font-size: 16px;
}

.cookie-settings label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.cookie-settings button {
    margin-top: 10px;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background-color: #fff;
    color: #000;
}

.cookie-settings button:hover {
    background-color: #e0e0e0;
}