/* Basis */
* {
  box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Poppins&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background: #fff9f4;
  color: #333;
  margin: 2rem;
}

h1, h2 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
  text-align: center;
}

h1 {
  font-size: 3rem;
  color: #b28900;
}

h2 {
  font-size: 2rem;
  color: #a05f00;
}

/* Navigation */
.nav {
  margin-bottom: 1.5rem;
}

.nav a {
  margin-right: 1rem;
  text-decoration: none;
  color: #0066cc;
}

.nav a:hover {
  text-decoration: underline;
}

/* Meldungen */
.meldung,
.fehler {
  display: block;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid;
  border-radius: 6px;
}

.meldung {
  background-color: #e6ffed;
  color: #2e7d32;
  border-color: #a5d6a7;
}

.fehler {
  background-color: #ffebee;
  color: #c62828;
  border-color: #ef9a9a;
}

.meldung:empty,
.fehler:empty {
  display: none !important;
}

/* Galerie */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery img,
.gallery video {
  max-height: 110px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery img:hover,
.gallery video:hover {
  transform: scale(1.02);
}

/* Album-Liste */
.album-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1em;
}

.album-list li {
  background: white;
  padding: 1em;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  text-align: center;
  font-weight: bold;
}

.album-list li a {
  color: #b28900;
  text-decoration: none;
}

.album-list li a:hover {
  text-decoration: underline;
}

/* Formulare */
form {
  margin-bottom: 2rem;
}

label {
  display: block;
  margin: 0.5rem 0 0.3rem;
  font-weight: bold;
}

input[type=text],
select,
input[type=file] {
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  background: #f9f9f9;
  transition: border 0.2s;
}

input:focus,
select:focus {
  border-color: #3399ff;
  outline: none;
}

button {
  padding: 0.75rem 1.2rem;
  margin-top: 1rem;
  background: #007bff;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #0056b3;
}

/* Eleganter Button */
.btn-elegant {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: #d4af37;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: background 0.3s ease;
}

.btn-elegant:hover {
  background: #c29e2e;
}

/* Overlay für großes Bild */
.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  flex-direction: column;
}

.overlay.active {
  display: flex;
}

.overlay img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255,255,255,0.7);
}

.overlay .close-btn,
.overlay .prev-btn,
.overlay .next-btn {
  position: absolute;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  font-weight: bold;
  transition: background 0.3s;
  user-select: none;
}

.overlay .close-btn:hover,
.overlay .prev-btn:hover,
.overlay .next-btn:hover {
  background: rgba(0,0,0,0.7);
}

.overlay .close-btn {
  top: 20px;
  right: 30px;
}

.overlay .prev-btn {
  top: 50%;
  left: 30px;
  transform: translateY(-50%);
}

.overlay .next-btn {
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
}

/* Login-Bereich */
.login-wrapper {
  max-width: 400px;
  margin: 5vh auto;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  text-align: center;
}

.login-wrapper h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: #333;
}

.login-wrapper input[type="text"],
.login-wrapper input[type="password"] {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.login-wrapper button {
  width: 100%;
  padding: 0.8rem;
}

/* Upload-Bereich */
.upload-wrapper {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.upload-wrapper h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.upload-wrapper form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Fortschrittsbalken */
#progressContainer {
  margin-top: 1.5rem;
}

#progressBar {
  width: 100%;
  height: 20px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 5px #aaa;
}

#progressBar > div {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #4caf50, #2e7d32);
  transition: width 0.2s ease;
}

#progressText {
  text-align: center;
  margin-top: 0.5rem;
  font-weight: bold;
  color: #333;
}

/* Mobile Optimierung */
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .btn-elegant {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    display: block;
    width: 90%;
    margin: 1rem auto;
    text-align: center;
  }

  .album-list {
    grid-template-columns: 1fr;
  }

  .gallery img,
  .gallery video {
    max-width: 100%;
    height: auto;
  }

  .nav a {
    display: inline-block;
    margin-bottom: 0.5rem;
  }
}
.video-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.video-thumb {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Play-Button-Stil */
.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
}

.play-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid white;
}









