/* === Grundlayout & Farben === */
body {
  margin: 0;
  font-family: 'Cinzel', serif;
  background-color: #1e1b2c;
  color: #f5f5dc;
}

header {
  background-color: #2c2540;
  padding: 20px;
  text-align: center;
}

.logo img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #2c2540;
  font-size: 0.9em;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

nav a {
  color: #ffd700;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
}

/* === Tab-Navigation für Medienwahl === */
.gallery-wrapper {
  padding: 40px 20px;
}

.gallery-tabs {
  text-align: center;
  margin-bottom: 30px;
}

.tab-button {
  background: none;
  border: none;
  color: #ffd700;
  font-family: 'Cinzel', serif;
  font-size: 1.2em;
  font-weight: bold;
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s;
}

.tab-button.active {
  border-bottom: 2px solid #ffd700;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.gallery-title {
  font-size: 2em;
  color: #ffd700;
  text-align: center;
  margin-bottom: 30px;
  font-family: 'Cinzel', serif;
}

/* === Upload-Bereich === */
.upload-section {
  text-align: center;
  margin-bottom: 40px;
  background-color: #2e2a3f;
  padding: 40px;
}

.upload-intro {
  font-size: 1.1em;
  color: #c0b283;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

input[type="file"] {
  padding: 10px;
  background-color: #1e1b2c;
  color: #f5f5dc;
  border: 1px solid #ffd700;
  border-radius: 5px;
}

button[name="upload"] {
  background-color: #ffd700;
  color: #1e1b2c;
  padding: 10px 20px;
  border: none;
  font-weight: bold;
  border-radius: 5px;
  margin-left: 10px;
  cursor: pointer;
}

button[name="upload"]:hover {
  background-color: #e6c200;
}

.upload-hint,
.upload-feedback {
  font-size: 0.9em;
  color: #c0b283;
  margin-top: 10px;
}

.upload-feedback {
  color: #ffd700;
  font-weight: bold;
}

/* === Bilder-Galerie === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-item {
  position: relative;
  text-align: center;
}

.gallery-image {
  width: 100%;
  border: 2px solid #ffd700;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  cursor: pointer;
}

/* === Voting-System === */
.vote-bar {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.vote-btn {
  background-color: #2c2540;
  color: #ffd700;
  border: 1px solid #ffd700;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.vote-btn:hover {
  background-color: #ffd700;
  color: #1e1b2c;
}

.vote-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* === Lightbox === */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 27, 44, 0.95);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border: 2px solid #ffd700;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

.lightbox .close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2em;
  color: #ffd700;
  cursor: pointer;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1em;
  color: #ffd700;
  cursor: pointer;
  user-select: none;
  padding: 0 20px;
}

.nav.left {
  left: 20px;
}

.nav.right {
  right: 20px;
}

/* === Video-Galerie === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center;
}

.video-card {
  max-width: 650px;
  width: 100%;
  background-color: #1e1b2c;
  border: 1px solid #444;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-thumb iframe {
  width: 100%;
  height: 100%;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2em;
  color: #ffd700;
  opacity: 0.8;
  pointer-events: none;
}

.video-title {
  font-family: 'Cinzel', serif;
  color: #f5f5dc;
  text-align: center;
  padding: 10px;
  font-size: 1em;
}
