* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- Ladebildschirm (Preloader) ----------
   Liegt beim ersten Aufruf jeder Seite über allem (deswegen der hohe
   z-index, höher als das Such-Overlay mit 3000) und zeigt kurz ein Logo/
   Bild, während im Hintergrund Seite, Bilder und Scripts fertig laden.
   Blendet sich erst aus, wenn global.js das per JS auslöst (siehe dort) -
   die eigentliche Ausblend-Logik inkl. Mindest-/Maximaldauer steht dort,
   hier nur die Optik. src von #preloaderLogo bewusst leer gelassen -
   eigenes Bild/Logo einsetzen. */
#preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 1;
  transition: opacity 1.2s ease;
}

#preloader.preloader-hidden {
  opacity: 0;
  pointer-events: none;
}

#preloaderLogo {
  width: clamp(140px, 22vw, 260px);
  height: auto;
  opacity: 0;
  animation: fp-preloader-fade-in 0.8s ease forwards;
}

@keyframes fp-preloader-fade-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  #preloaderLogo {
    animation: none;
    opacity: 1;
  }
}

.sidebar,
.sbMain,
.searchButton,
.smallScreenHeaderLogo {
  display: none;
}

body {
  margin: 0;
  padding: 0;
  height: auto;
  background: #0097a9;
  color: white;
  font-family: "Times New Roman", Times, serif;
}

.bigHeaderCollectionBtn {
  background: transparent;
  border: none;
  color: #e7c250;
  font-family: "Times New Roman", Times, serif;
  font-size: 20px;
  cursor: pointer;
  text-shadow:
    0 4px 10px rgba(0, 0, 0, 0.5),
    0 8px 20px rgba(0, 0, 0, 0.8),
    0 10px 40px rgba(0, 0, 0, 0.7);
  transition: color 0.3s ease;
}

.bigHeaderCollectionBtn:hover {
  color: #f5da8a;
}

.bigCollectionBar {
  position: fixed;
  top: -400px;
  left: 0;
  width: 100%;
  height: 400px;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  z-index: 999;
  transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow:
    0 4px 10px rgba(0, 0, 0, 0.5),
    0 8px 20px rgba(0, 0, 0, 0.8),
    0 10px 40px rgba(0, 0, 0, 0.7);
}

.bigCollectionBar.active {
  top: 160px;
}

.bigCollectionBar a {
  color: white;
  text-decoration: none;
  font-size: 23px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.bigCollectionBar a:hover {
  color: #f5da8a;
  transition: color 0.3s ease;
}

.closeBigCollection {
  position: absolute;
  right: 40px;
  background: none;
  border: none;
  color: white;
  font-size: 36px;
  font-family: "Times New Roman", Times, serif;
  font-weight: 100;
  cursor: pointer;
  transition: color 0.3s ease;
}

.closeBigCollection:hover {
  color: #f5da8a;
}

@media screen and (max-width: 1919px) {
  .bigCollectionBar {
    display: none !important;
  }
}

.bigHeader {
  position: fixed;
  width: 100%;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  gap: 30px;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

.bigHeaderLeft,
.bigHeaderRight {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
}

.bigHeaderLeft {
  justify-content: flex-end;
}

.bigHeaderRight {
  justify-content: flex-start;
}

.bigHeader a {
  color: #e7c250;
  text-decoration: none;
  font-size: 20px;
  text-shadow:
    0 4px 10px rgba(0, 0, 0, 0.5),
    0 8px 20px rgba(0, 0, 0, 0.8),
    0 10px 40px rgba(0, 0, 0, 0.7);
}

.bigHeader a:hover {
  color: #f5da8a;
}

.bigHeaderLogo {
  margin: 0;
  display: block;
  width: 300px;
  height: auto;
  padding-top: 10px;
}

.searchButtonBig {
  display: block;
  position: relative;
  top: 0;
  transform: none;
  background-color: transparent;
  color: #e7c250;
  border: none;
  cursor: pointer;
}

.searchButton {
  display: block;
  position: relative;
  right: clamp(20px, 10vw, 100px);
  top: 0;
  transform: none;
  background-color: transparent;
  color: #e7c250;
  border: none;
  cursor: pointer;
}

.searchButtonBig:hover svg,
.searchButton:hover svg {
  stroke: #f5da8a;
  transition: stroke 0.3s ease;
}

.searchOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  z-index: 3000;
  color: white;
  text-align: center;
}

.searchResults {
  position: absolute;
  top: 70px;
  width: 100%;
  background: transparent;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.search-item {
  display: flex;
  align-items: center;
  padding: 20px 25px;
  text-decoration: none;
  color: white;
  font-size: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.search-item img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin-right: 25px;
  border-radius: 5px;
}

@media screen and (max-width: 768px) {
  .search-item {
    max-width: 90%;
    padding: 10px 15px;
    font-size: 18px;
  }

  .search-item img {
    width: 110px;
    height: 110px;
    margin-right: 15px;
  }
}

.overlayContent {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 700px;
  padding: 0 20px;
}

.search-wrapper {
  display: flex;
  align-items: center;
  border-bottom: 2px solid white;
  padding-bottom: 5px;
}

.overlayContent input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(24px, 4vw, 30px);
  padding: 10px 0;
  outline: none;
  text-align: left;
}

.overlayContent input:focus {
  outline: none;
}

.search-icon-overlay {
  color: white;
  margin-left: 15px;
  flex-shrink: 0;
}

.overlayContent input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.closeSearch {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  font-family: "Times New Roman", Times, serif;
  font-weight: 100;
  background: none;
  border: none;
  color: #e7c250;
  cursor: pointer;
  line-height: 2;
  transition: 0.3s;
}

.closeSearch:hover {
  color: #f5da8a;
}

.smallHeader {
  display: none;
}

/* ===== Buttons in der großen Collection-Bar (Desktop, >1919px) ===== */
.BigAllButton,
.BigCompliButton,
.BigCoreButton,
.BigFpskButton {
  position: relative;
  width: 220px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  flex-shrink: 0;
}

.BigAllButton img,
.BigCompliButton img,
.BigCoreButton img,
.BigFpskButton img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.5s ease,
    filter 0.3s ease;
  filter: brightness(0.7);
}

.BigAllButton:hover img,
.BigCompliButton:hover img,
.BigCoreButton:hover img,
.BigFpskButton:hover img {
  transform: scale(1.08);
  filter: brightness(0.9);
}

.BigAllButton a,
.BigCompliButton a,
.BigCoreButton a,
.BigFpskButton a {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  color: white;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: 1px;
  z-index: 2;
}

/* ===== Collection-Sidebar (mobiler Slide-in, <=1919px) =====
   Bild oben (echtes 1:1-Quadrat, unabhängig von der Quellbild-Größe),
   Beschriftung als eigene Zeile darunter. */

.allButton,
.compliButton,
.coreButton,
.fpskButton {
  display: block;
  margin: 14px 22px;
}

.allButton > a:first-child,
.compliButton > a:first-child,
.coreButton > a:first-child,
.fpskButton > a:first-child {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
}

.allButton img,
.compliButton img,
.coreButton img,
.fpskButton img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.65);
  transition: filter 0.25s ease;
}

.allButton:hover img,
.compliButton:hover img,
.coreButton:hover img,
.fpskButton:hover img {
  filter: brightness(0.85);
}

.allButton > a:last-child,
.compliButton > a:last-child,
.coreButton > a:last-child,
.fpskButton > a:last-child {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  color: #e7c250;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.25s ease;
}

.allButton:hover > a:last-child,
.compliButton:hover > a:last-child,
.coreButton:hover > a:last-child,
.fpskButton:hover > a:last-child {
  color: #f5da8a;
}

@media screen and (max-width: 1919px) {
  .smallHeader {
    position: fixed;
    width: 100%;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
    z-index: 1000;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.8),
      rgba(0, 0, 0, 0)
    );
    text-shadow:
      0 4px 10px rgba(0, 0, 0, 0.5),
      0 8px 20px rgba(0, 0, 0, 0.8),
      0 10px 40px rgba(0, 0, 0, 0.7);
  }

  .bigHeader {
    display: none;
  }

  .smallScreenHeaderLogo {
    margin: 0;
    display: block;
    justify-content: center;
    width: clamp(190px, 30vw, 300px);
    height: auto;
    padding-top: 10px;
  }

  .sbMain {
    display: block;
    position: relative;
    left: clamp(20px, 10vw, 100px);
    top: 0;
    transform: none;
  }

  sbMain div:hover {
    stroke: #f5da8a;
    transition: stroke 0.3s ease;
  }

  .sbMain p {
    font-size: 15px;
    color: white;
  }

  .sidebar {
    display: block;
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 0;
    background-color: transparent;
    backdrop-filter: none;
    overflow-x: hidden;
    padding-top: 60px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  #sidebar-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 999;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sidebar a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 21px;
    color: #e7c250;
    display: block;
  }

  .sidebar button {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 21px;
    color: #e7c250;
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    font-family: "Times New Roman", Times, serif;
  }

  .sidebar a:hover,
  .sidebar button:hover {
    color: #f5da8a;
    transition: color 0.3s ease;
  }

  .sidebar .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
    transition: opacity 0.3s ease;
  }

  .openbtn {
    background: transparent;
    border: none;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    width: 50px;
  }

  .openbtn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #e7c250;
    transition: 0.3s;
  }

  .openbtn:hover span {
    background-color: #f5da8a;
  }

  #collectionSidebar {
    left: 350px;
    z-index: 1000;
  }

  @media screen and (max-width: 700px) {
    #collectionSidebar {
      left: 0;
      z-index: 1005;
    }

    #sidebar-bg-overlay.collection-active {
      z-index: 1003;
    }
  }

  @media screen and (max-width: 520px) {
    .openbtn span {
      display: block;
      width: 80%;
      height: 2px;
      background-color: #e7c250;
      transition: 0.3s;
    }
  }

  #sbMain {
    transition: margin-left 0.5s;
    padding: 20px;
  }

  @media screen and (max-height: 450px) {
    .sidebar {
      padding-top: 15px;
    }
    .sidebar a {
      font-size: 20px;
    }
  }
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: black;
  color: white;
  font-family: "Times New Roman", Times, serif;
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
}

.headingWithSubtext {
  position: absolute;
  display: block;
  top: 60%;
  left: 5%;
  text-align: center;
  color: white;
  z-index: 4;
  padding: 10px;
}

.headingWithSubtext h2 {
  font-size: clamp(37px, 5vw, 90px);
  font-weight: 150;
}

.headingWithSubtext p {
  margin: 10px auto;
  font-size: clamp(18px, 2vw, 25px);
  max-width: 600px;
}

.headingWithSubtext a {
  font-size: clamp(20px, 2vw, 30px);
  text-decoration: none;
  color: rgb(255, 255, 255);
}

.headingWithSubtext h3 {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 150;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background-color: #0097a9;
  color: white;
  width: 100%;
  gap: 50px;
}
footer:hover {
  color: rgb(171, 171, 171);
  transition: color 0.3s ease;
}

footer img {
  height: auto;
  width: 200px;
}

.footerSites,
.footerLegal,
.footerRightSection {
  color: white;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.social-linksSidebar {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 50px;
  margin-right: 30px;
}

.social-icon svg {
  width: 24px;
  height: 24px;
  color: #e7c250;
  transition: all 0.3s ease;
}

.social-icon:hover svg {
  color: #f5da8a;
  transform: translateY(-3px);
}

/* Sidebar-Icons: Gold statt Grau (Footer bleibt unverändert) */
.social-linksSidebar .social-icon svg {
  color: #e7c250;
}

.social-linksSidebar .social-icon:hover svg {
  color: #f5da8a;
}

.footerSites a,
.footerLegal a {
  color: #e7c250;
  font-size: 20px;
  text-decoration: none;
}

.footerSites a:hover,
.footerLegal a:hover {
  color: #f5da8a(171, 171, 171);
  transition: color 0.3s ease;
}

.footerLegal h3 {
  margin-bottom: 10px;
  font-size: 25px;
  font-weight: 50;
}

.footerRightSection h4 {
  color: #a89f90;
  font-weight: 100;
  font-size: 20px;
}

@media screen and (max-width: 1300px) {
  footer {
    padding-top: 10px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #0097a9;
    color: #e7c250;
    width: 100%;
    height: 100vh;
  }

  .footerLogo {
    display: none;
  }

  .footerSites,
  .footerLegal,
  .footerRightSection {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 15px;
    width: 100%;
  }

  .footerSites a,
  .footerLegal a {
    color: #e7c250;
    font-size: 18px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: opacity 0.3s ease;
  }

  .footerLegal h3 {
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 1px;

    text-transform: uppercase;
  }

  .footerRightSection h4 {
    color: #e7c250;
    font-weight: 200;
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0.5px;
    margin: 0;
  }
}
