/* ===================================
   Basis
=================================== */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  height: 100vh;
  overflow: hidden;
}

a {
  color: lightslategray;
  text-decoration: none;
}
a:hover {
  color: white;
}
a:active {
  color: lightslategray;
}
a:visited {
  color: white;
  text-decoration: none;
}

/* ===================================
   Layout Hauptbereich
=================================== */
.mockup-container {
  position: relative;
  width: 100%;
  height: 100vh;
}

.background-mockup {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.gemaelde-overlay {
  position: absolute;
  top: 25%;
  left: 60%;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

#bildInfo {
  position: absolute;
  top: 50%;
  left: 60%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 5;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ===================================
   Sidebar (Filter & Vorschaubilder)
=================================== */
.sidebar {
  direction: rtl;
  position: absolute;
  left: 0;
  top: 0;
  width: 200px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 200px 20px 40px;
  overflow-y: auto;
  z-index: 3;
  background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 53%, rgba(255, 255, 255, 0) 100%);
}

.sidebar img {
  width: 100%;
  cursor: pointer;
  border: 2px solid transparent;
  filter: grayscale(0.7);
  transition: border 0.3s;
}
.sidebar img:hover {
  filter: grayscale(0);
  border: 2px solid #fff;
}

#werkeListe {
  display: flex;
	flex-direction: column;
}

/* ===================================
   Filterbereich
=================================== */
.filterbereich {
  padding: 10px;
  width: 200px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  z-index: 4;
}

.filterbereich select {
  width: 100%;
  margin-top: 5px;
  margin-bottom: 10px;
  padding: 3px;
  font-size: 12px;
  background: #111;
  color: white;
  border: 1px solid #666;
}

#resetFilter {
  background-color: #333;
  color: white;
  border: 1px solid #666;
  padding: 5px 10px;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}
#resetFilter:hover {
  background-color: #555;
}

/* ===================================
   Schriftzug Name
=================================== */
.name {
  position: absolute;
  right: 3rem;
  transform: rotate(270deg) translateY(-50%);
  transform-origin: right top;
  font-size: 10vh;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.3);
  padding: 10px;
  z-index: 3;
  letter-spacing: 2px;
}

/* ===================================
   Hinweis bei Fenstergrösse
=================================== */
#reloadBanner {
  display: none;
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #ffcc00;
  color: #000;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  z-index: 1000;
}
#reloadBanner a {
  color: #000;
  text-decoration: underline;
  margin-left: 10px;
}

/* ===================================
   Detailseite
=================================== */
.detail-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #111;
  color: #fff;
  gap: 40px;
  padding: 40px;
  box-sizing: border-box;
}

.text-section {
  text-align: right;
}
.text-section h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
#werkInfo {
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.back-link {
  text-decoration: none;
  color: #00aaff;
  font-size: 1rem;
}
.bild-wrapper {
  flex: 1.5;
  max-width: 1000px;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bild-wrapper img {
  max-height: 80vh;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* ===================================
   Responsive (Mobile)
=================================== */
@media (max-width: 768px) {

  .detail-container {
    flex-direction: column;
  }

  .text-section,
  .bild-wrapper {
    width: 100%;
    max-width: none;
  }

  .sidebar {
    direction: ltr;
    flex-direction: row;
    width: 100%;
    height: 25vh;
    top: auto;
    bottom: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 80%, rgba(255, 255, 255, 0) 100%);
  }

  .sidebar img {
    height: 12vh;
    filter: grayscale(0);
  }
	
	#werkeListe {
	  display: flex;
		flex-direction: row;
	}
	
	
  .gemaelde-overlay {
    top: 30%;
    left: 50%;
    width: 20vw;
    height: auto;
  }

  .name {
    font-size: 28px;
    top: auto;
    bottom: 27vh;
    transform: none;
    right: 10px;
  }

  #bildInfo {
    top: 50%;
    left: 50%;
    font-size: 10px;
  }

  .filterbereich {
    position: fixed;

    top: 0;
	 height:50px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 5px 10px;
    font-size: 10px;
    background: rgba(0, 0, 0, 0.8);
	  z-index: 999;
  }

  .filterbereich label {
    display: none;
  }

  .filterbereich select {
    width: 45%;
    font-size: 12px;
  }
}
