/* style/fortuneox.css */
/* Base styles for the page-fortuneox scope */
.page-fortuneox {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smart contrast for sections with brand colors */
.page-fortuneox__dark-section {
  background-color: #C61F1F; /* Main color */
  color: #FFF1E8; /* Light text for dark background */
}

.page-fortuneox__dark-bg {
  background-color: #2A1212; /* Card BG */
  color: #FFF1E8; /* Light text for dark background */
}

/* General layout containers */
.page-fortuneox__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-fortuneox__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-fortuneox__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-fortuneox__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-fortuneox__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  z-index: 1; /* Ensure content is above potential background elements */
}

.page-fortuneox__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F3C54D; /* Gold accent */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-fortuneox__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF1E8;
}

.page-fortuneox__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* General section styling */
.page-fortuneox__section {
  padding: 60px 0;
  background-color: #140C0C; /* Background */
  color: #FFF1E8; /* Text Main */
}

.page-fortuneox__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F3C54D; /* Gold accent */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-fortuneox__btn-primary,
.page-fortuneox__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.page-fortuneox__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-fortuneox__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-fortuneox__btn-secondary {
  background-color: transparent;
  color: #F3C54D; /* Gold */
  border: 2px solid #F3C54D; /* Gold */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-fortuneox__btn-secondary:hover {
  background-color: rgba(243, 197, 77, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-fortuneox__btn-small {
  padding: 10px 20px;
  font-size: 1rem;
}

.page-fortuneox__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Content Grid for text and image */
.page-fortuneox__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.page-fortuneox__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-fortuneox__text-block,
.page-fortuneox__image-block {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.page-fortuneox__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Feature Grid for cards */
.page-fortuneox__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fortuneox__card {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF1E8;
}

.page-fortuneox__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-fortuneox__card-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-fortuneox__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F3C54D; /* Gold */
}

/* List styles for Why Choose bauern */
.page-fortuneox__list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-fortuneox__list-item {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: #FFF1E8;
}

.page-fortuneox__list-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #F3C54D; /* Gold */
}

/* Responsible Gaming Section */
.page-fortuneox__responsible-gaming p {
  max-width: 800px;
  margin: 0 auto 20px auto;
  text-align: center;
}

/* FAQ Section */
.page-fortuneox__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-fortuneox__faq-item {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF1E8;
}

.page-fortuneox__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #C61F1F; /* Main color */
  color: #FFF1E8;
  border-bottom: 1px solid #6A1E1E;
  transition: background-color 0.3s ease;
}

.page-fortuneox__faq-question:hover {
  background-color: #E53030; /* Auxiliary color */
}

.page-fortuneox__faq-item[open] .page-fortuneox__faq-question {
  border-bottom: 1px solid #6A1E1E;
}

.page-fortuneox__faq-qtext {
  flex-grow: 1;
}

.page-fortuneox__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-fortuneox__faq-item[open] .page-fortuneox__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or use '-' */
}

/* Hide default details marker */
.page-fortuneox__faq-item summary {
  list-style: none;
}
.page-fortuneox__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-fortuneox__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #FFF1E8;
  background-color: #2A1212; /* Card BG */
}

/* Final CTA Section */
.page-fortuneox__cta-final {
  text-align: center;
  padding: 80px 0;
}

.page-fortuneox__cta-content {
  max-width: 900px;
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-fortuneox__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-fortuneox__hero-section {
    padding-bottom: 40px;
  }

  .page-fortuneox__main-title {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 15px;
  }

  .page-fortuneox__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-fortuneox__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-fortuneox__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-fortuneox__btn-primary,
  .page-fortuneox__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-fortuneox__content-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-fortuneox__text-block,
  .page-fortuneox__image-block {
    max-width: 100%;
  }

  .page-fortuneox__feature-grid {
    grid-template-columns: 1fr;
  }

  .page-fortuneox__card {
    padding: 25px;
  }

  .page-fortuneox__card-title {
    font-size: 1.3rem;
  }

  .page-fortuneox__list-item {
    padding: 25px;
  }

  .page-fortuneox__list-title {
    font-size: 1.4rem;
  }

  .page-fortuneox__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-fortuneox__faq-answer {
    padding: 15px 20px;
  }
  
  /* Mobile image responsiveness */
  .page-fortuneox img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-fortuneox__section,
  .page-fortuneox__card,
  .page-fortuneox__container,
  .page-fortuneox__hero-section,
  .page-fortuneox__hero-content,
  .page-fortuneox__content-grid,
  .page-fortuneox__feature-grid,
  .page-fortuneox__list,
  .page-fortuneox__faq-list,
  .page-fortuneox__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Specific override for hero-section padding-top, as it's the first element in main */
  .page-fortuneox__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
  }

  /* Ensure button containers handle flex-wrap for multiple buttons */
  .page-fortuneox__cta-buttons {
    flex-wrap: wrap !important;
    gap: 15px; /* Adjust gap for mobile */
  }
}