
/* Grundlayout */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f2efe6; /* Einheitlicher, warmer Naturton */
  color: #333;
}

.banner-header {
  height: 120px;                       /* feste Höhe */
  width: 100%;                         /* volle Breite */
  overflow: hidden;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.banner-header img {
  width: 100%;                         /* immer auf volle Breite strecken */
  height: 120px;                       /* feste Höhe */
  object-fit: fill;                    /* verzerrt, aber füllt genau */
  display: block;
}



/* Inhaltsbereich */
.content {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
}

/* Seitenleiste */
.sidebar {
  width: 220px;
  background: #e9e6dc; /* Etwas heller als der Body, aber harmonisch */
  padding: 20px;
  border-right: 1px solid #ccc;
}

.sidebar h3 {
  margin-top: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin: 8px 0;
}

.sidebar a {
  color: #2f4f4f;
  text-decoration: none;
}

.sidebar a.active,
.sidebar a:hover {
  text-decoration: underline;
  font-weight: bold;
}

/* Galerie */
.gallery {
  column-width: 220px;
  column-gap: 15px;
  padding: 20px;
  width: 100%;
  max-width: 100%;
  background-color: #f2efe6; /* gleiche Farbe wie Body für weichen Übergang */
}

.tile {
  break-inside: avoid;
  margin-bottom: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  overflow: hidden;
}

.tile img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.tile:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Formulare & Container */
form input,
form button {
  padding: 8px;
  margin: 5px 0;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
}

form button {
  background: #406450;
  color: white;
  border: none;
  cursor: pointer;
}

form button:hover {
  background: #2f4f4f;
}

.login-container,
.upload-container,
.pwchange-container,
.admin-container {
  max-width: 400px;
  margin: 60px auto;
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Texte */
h1, h2, h3 {
  color: #3b3a36;
}

.error {
  color: red;
  margin-top: 10px;
}

.info {
  color: green;
  margin-top: 10px;
}

progress {
  width: 100%;
  height: 18px;
  margin-top: 5px;
}

/* Responsive Verhalten */
@media (max-width: 600px) {
  .gallery {
    column-width: 140px;
  }

  .content {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ccc;
  }

}

.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.lightbox.show {
  display: flex;
  opacity: 1;
}

.play-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 2em;
  color: white;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  padding: 0.2em 0.4em;
}

.lightbox-image {
  max-width: 70vw;
  max-height: 70vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
  display: block;
  margin: 0 auto;
  transition: opacity 0.3s ease;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  width: 40px;
  height: 40px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 10001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0,0,0,0.9);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}

.lightbox-next {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}
