/* ==================== GLOBAL ==================== */
html, body {
  font-family: 'Open Sans', sans-serif !important;
  box-sizing: border-box;
  height: 100%;
}

*, *::before, *::after {
  box-sizing: inherit;
}

h1, h2, h3, h4 {
    font-family: 'Open Sans', sans-serif; 
}

h1 {
    font-size:40px; 
    color: #000;
    margin-bottom: 0.5rem;
}

h3 {
    font-size:20px; 
}
h4 {
    font-size:18px; 
}





/* ==================== Intro ==================== */


.intro {
  width: 65%;
  padding-top: 100px; 
  padding-bottom: 80px;
  padding-left: 0;
  padding-right: 0;
  margin-left: auto; 
  margin-right: auto;
}

.intro p {
  font-family: 'Open Sans', sans-serif; 
  font-size: 28px;
  font-style: normal;
  font-weight: 300;
  line-height: 140%; /* 33.6px */
}

.intro a {
    text-decoration: none; /* Entfernt die Standard-Unterstreichung */
    font-weight: 400;
    color: black;
    background-color: #FFF600; /* Gelber Hintergrund */
    padding: 2px 4px; /* Fügt etwas Platz um den Text hinzu */
    border-radius: 4px; /* Leicht abgerundete Ecken für einen sanfteren Look */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.intro a:hover {
    background-color: black; /* Invertiert auf Schwarz beim Hover */
    color: white; /* Text wird weiß für Kontrast */
}


/* ==================== FILTERS ==================== */


.filters-wrapper {
  height: auto; /* fallback */
  min-height: 100px; /* oder genaue Höhe des Filters */
}


.filters {
  position: relative; /* Startzustand */
  top: auto;
  z-index: 999;
  padding: 16px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  transition: all 0.3s ease;
}

.filters.sticky {
  position: fixed;
  top: 80px; /* Abstand zum Header */
  left: 0;
  width: 100%;
}


/*
.filters {
  background-color: transparent;
  padding: 16px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  align-items: center;
}

*/

.custom-dropdown {
  position: relative;
  width: 260px;
  background-color: black;
  border-radius: 20px;
  font-family: "Open Sans", sans-serif;
  cursor: pointer;
  overflow: visible;
}

.custom-dropdown.open {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.dropdown-selected {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: #FFF600;
  background-color: black;
  border-radius: 20px;
  cursor: pointer;
}

.dropdown-selected .chevron-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.custom-dropdown.open .dropdown-selected .chevron-icon {
  transform: rotate(180deg);
}

.dropdown-options {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: black;
  border-radius: 0 0 20px 20px;
  z-index: 100;
}

.custom-dropdown.open .dropdown-options {
  display: flex;
}

.dropdown-option:last-of-type {
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  padding-bottom: 40px;
}

.dropdown-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  cursor: pointer;
}


.dropdown-option input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #FFF600;
  border-radius: 50%; /* ← wie Radio-Buttons */
  position: relative;
  background-color: transparent;
  cursor: pointer;
}

/* Checkmark im Inneren */
.dropdown-option input[type="checkbox"]:checked::before {
  content: '';
  width: 10px;
  height: 10px;
  background-color: #FFF600;
  border-radius: 50%; /* ← wie Radio-Buttons */
  position: absolute;
  top: 3px;
  left: 3px;
}



.dropdown-option .label {
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: #FFF600;
}

.divider {
  height: 1px;
  background-color: #666;
  margin: 0 20px;
}


/* ==================== reset ==================== */


.reset-button {
  width: 54px;
  height: 54px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.reset-button::before,
.reset-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transition: opacity 0.3s ease;
}

.reset-button::before {
  background-image: url("../files/reset-default.svg");
  opacity: 1;
}

.reset-button::after {
  background-image: url("../files/reset-hover.svg");
  opacity: 0;
}

.reset-button:hover::before {
  opacity: 0;
}

.reset-button:hover::after {
  opacity: 1;
}



/* ==================== sref count ==================== */


.sref-count {
  font-family: "Open Sans", sans-serif;
  font-size: 24px;
  font-weight: 400;
  margin: 32px auto 64px auto;
  text-align: center;
  color: #000;
}



/* ==================== GALLERY / CLUSTER ==================== */




#gallery {
  width: 100%;
}

.cluster {
  width: 100%;
  border: 1px solid white; /* weiße Outline */
  background: white; /* wichtig für sichtbaren Shadow */
  box-shadow: 0px 50px 60px -30px rgba(0, 0, 0, 0.15);
  position: relative; /* falls du später noch absolute Elemente hast */
  z-index: 1; /* falls es verdeckt wird */
  margin-top: 5rem;
}

.cluster-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  gap: 1px;
  box-sizing: border-box;
}



.image-block {
  display: flex;
  width: 65%;
  gap: 1px;
  box-sizing: border-box;
}

.hero {
  width: 66%;
  flex-shrink: 0;
  overflow: hidden;
  margin-bottom: 0px!important;
}

.hero .img-wrap {
  width: 100%;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  transform-origin: center center;
}

.hero img:hover {
  transform: scale(1.05);
}


.hero video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
  transform-origin: center center;
}

.hero video:hover {
  transform: scale(1.05);
}



.thumbs {
  width: 32.95%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  box-sizing: border-box;
}

.thumbs .img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  transform-origin: center center;
}

.thumbs img:hover {
  transform: scale(1.05);
}







.info-block {
  width: 35%;
  padding: 32px 32px 32px 40px; /* weniger padding-left für weniger Abstand */
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  color: #000;
}


.cluster-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 50px;
  border-bottom: 1px solid black;
}

.cluster-actions {
  display: flex;
  gap: 12px; /* Abstand zwischen Copy- und Fav-Icon */
  align-items: center;
}

.sref-code {
  font-size: 28px;
  font-weight: 500;
}


/* ======= FILTER-FAV BUTTON ======= */
.fav-toggle-btn {
  width: 54px;
  height: 54px;
  border: none;
  cursor: pointer;
  position: relative;
  background: none;
}

.fav-toggle-btn::before,
.fav-toggle-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: opacity 0.3s ease;
}

.fav-toggle-btn::before {
  background-image: url("../files/fav.svg");
  opacity: 1;
}

.fav-toggle-btn::after {
  background-image: url("../files/fav-active.svg");
  opacity: 0;
}

.fav-toggle-btn.active::before {
  opacity: 0;
}

.fav-toggle-btn.active::after {
  opacity: 1;
}




/* ======= GALLERY-FAV BUTTON ======= */
.fav-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
}

.fav-btn::before,
.fav-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity 0.3s ease;
}

.fav-btn::before {
  background-image: url("../files/fav.svg");
  opacity: 1;
}

.fav-btn::after {
  background-image: url("../files/fav-active.svg");
  opacity: 0;
}

.fav-btn.active::before {
  opacity: 0;
}

.fav-btn.active::after {
  opacity: 1;
}





/* ==================== copy code ==================== */

.copy-btn {
  width: 40px;
  height: 40px;
  position: relative;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
}

/* Basisbild */
.copy-btn::before,
.copy-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40px 40px;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.copy-btn::before {
  background-image: url("../files/copy.svg");
  opacity: 1;
}

.copy-btn::after {
  background-image: url("../files/copy-hover.svg");
  opacity: 0;
}

.copy-btn:hover::before {
  opacity: 0;
}

.copy-btn:hover::after {
  opacity: 1;
}



.copy-alert {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #000;
  color: #FFF600;
  font-size: 12px;
  padding: 4px 16px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.copy-alert.show {
  opacity: 1;
}




/* Startzustand */
.cluster {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.6s ease, transform 0.6s ease;
}

.cluster.fade-in {
  opacity: 1;
  transform: translateY(0);
}



.cluster-meta {
  padding-top: 20px;
}

.cluster-meta p {
  margin: 0 0 8px 0;
  font-size: 16px;
}


/* ==================== load more ==================== */


#loadMoreContainer {
  display: flex;
  justify-content: center;
  margin: 64px 0;
}

#loadMoreBtn {
  display: flex;
  padding: 22px 20px;
  align-items: center;
  border-radius: 20px;
  background: #FFF600;
  color: #000;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

#loadMoreBtn:hover {
  background: #000;
  color: #FFF600;
}






/* ==================== MODAL ==================== */

#modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#modal.active {
  opacity: 1;
  visibility: visible;
}

#modal img,
#modal video {
  max-width: 90vw;
  max-height: 90vh;
  min-height: 40vh;
  min-width: 40vw;
  border-radius: 60px;
  border: 20px solid #fff;
  display: block;
}









/* ==================== Breakpoint ==================== */

@media (max-width: 1024px) {

  /* 1. Cluster-Aufbau ändern */
  .cluster-inner {
    flex-direction: column;
  }

  .image-block {
    flex-direction: column;
    width: 100%;
  }

  .hero {
    width: 100%;
    margin-bottom: 1px;
  }

  .thumbs {
  width: 100%;
  grid-template-columns: repeat(4, 1fr);
  }

  .info-block {
    width: 100%;
    padding: 24px 20px;
  }

  /* 2. Filter-Bereich komplett ausblenden */
  .filters-wrapper,
  .filters {
    display: none !important;
  }

  /* Modal Border */{
  .modal img,
  .modal video;
    border: 10px solid #fff;
    border-radius: 30px;
  }


  /* Fav und Copy Iocn */
  .fav-btn {
    display: none !important;
  }

  .copy-btn {
    display: none !important;
  }

  .intro {
    width: 80%;
    padding-top: 100px; 
    padding-bottom: 80px;
    padding-left: 0;
    padding-right: 0;
    margin-left: 24px; 
    margin-right: 24px;
  }

  .intro p {
    font-size: 16px;
  }

}
