/* ==========================================================
   GALAXIS-TV Startseite – Master: Trust(4) + Code-Accordion + Hero Background Photo
   File: /templates/bootstrap5a/css/galx-images.css
   Loaded only on the homepage via module/main_content.html
   ========================================================== */

/* Match Bootstrap container widths (container-xxl feeling) */
.galx-home .galx-container{
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5);
  padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5);
}

/* Bootstrap 5 container widths */
@media (min-width: 576px){ .galx-home .galx-container{ max-width: 540px; } }
@media (min-width: 768px){ .galx-home .galx-container{ max-width: 720px; } }
@media (min-width: 992px){ .galx-home .galx-container{ max-width: 960px; } }
@media (min-width: 1200px){ .galx-home .galx-container{ max-width: 1140px; } }
@media (min-width: 1400px){ .galx-home .galx-container{ max-width: 1320px; } }
/* ----------------------------------------------------------
   Full-bleed HERO background band (content stays aligned)
   ---------------------------------------------------------- */
.galx-home .galx-hero{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* keep inner content aligned like the rest of the page */
.galx-home .galx-hero__inner{
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5);
  padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5);
}

/* Hero background photo (desktop only) */
.galx-home .galx-hero{
  background-image:
    radial-gradient(1200px 420px at 20% 0%, rgba(255,255,255,.18), rgba(255,255,255,0)),
    linear-gradient(135deg, rgba(11,42,69,.92) 0%, rgba(18,58,106,.92) 55%, rgba(28,76,143,.92) 100%);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

/* Only add photo layer on larger screens for better readability */
@media (min-width: 992px){
  .galx-home .galx-hero{
    background-image:
      linear-gradient(90deg, rgba(11,42,69,.98) 0%, rgba(11,42,69,.92) 45%, rgba(11,42,69,.70) 70%, rgba(11,42,69,.55) 100%),
      url("../img/galx/hero-bg.webp");
  }
  /* JPG fallback if webp not supported */
  @supports not (background-image: url("../img/galx/hero-bg.webp")){
    .galx-home .galx-hero{
      background-image:
        linear-gradient(90deg, rgba(11,42,69,.98) 0%, rgba(11,42,69,.92) 45%, rgba(11,42,69,.70) 70%, rgba(11,42,69,.55) 100%),
        url("../img/galx/hero-bg.jpg");
    }
  }
}

/* Accordion (details/summary) */
.galx-code{
  margin-top: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 30px rgba(16,24,40,.10);
  overflow: hidden;
}

.galx-code > summary{
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.galx-code > summary::-webkit-details-marker{ display:none; }

.galx-code > summary:after{
  content: "⌄";
  opacity: .9;
  font-weight: 900;
  transform: translateY(-1px);
}

.galx-code[open] > summary:after{
  content: "⌃";
}

.galx-code__body{
  padding: 0 16px 16px 16px;
}

.galx-code__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 12px;
}

@media (min-width: 768px){
  .galx-code__grid{
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.galx-code__item{
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  padding: 12px;
}

.galx-code__img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.galx-code__title{
  font-weight: 900;
  margin-top: 10px;
}

.galx-code__text{
  opacity: .9;
  margin-top: 4px;
  line-height: 1.45;
}
