/* ==============================
   Allgemeine Stile
   ============================== */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom right, blue, red);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==============================
   Header
   ============================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.25);
    position: relative;
}

.logo img {
    width: 120px;
    height: auto;
}

.header-title {
    text-align: center;
    flex: 1;
    color: white;
}
.header-title h1 {
    font-size: 2.2rem;
    margin: 0;
}
.header-title h2 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 400;
}

/* ==============================
   Menü / Fußball-Icon
   ============================== */
.menu-icon {
    position: relative;
}
.menu-icon img {
    width: 90px;
    height: 90px;
    cursor: pointer;
    transition: transform 1.5s ease;
}
#menu {
    position: absolute;
    top: 100px;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    display: none;
    min-width: 160px;
    z-index: 1000;
}
#menu.show {
    display: block;
}
#menu ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}
#menu ul li a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
}
#menu ul li a:hover {
    background: orange;
    color: black;
}
.rotate {
    transform: rotate(360deg);
}

/* ==============================
   Textbox im Main
   ============================== */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}
.textbox {
    background: rgba(0, 0, 0, 0.5);
    padding: 25px;
    border-radius: 12px;
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    text-align: center;
}
.textbox h1 {
    margin-top: 0;
    font-size: 2rem;
}

/* ==============================
   Footer
   ============================== */
footer {
    background: rgba(0, 0, 0, 0.6);
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
}
footer a {
    color: orange;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* ==============================
   Responsive Header
   ============================== */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .logo img { width: 80px; }
    .menu-icon img { width: 70px; height: 70px; }
    .header-title h1 { font-size: 1.6rem; }
    .header-title h2 { font-size: 1rem; }
}

/* ==============================
   Kader Tabelle
   ============================== */
#kaderTable th {
    background: rgba(0, 0, 0, 0.8);
    color: orange;
    padding: 12px;
    cursor: pointer;
    font-weight: 700;
}
#kaderTable td {
    padding: 12px;
    color: white;
}
#kaderTable tbody tr td:nth-child(odd) {
    background: rgba(51, 51, 51, 0.5);
}
#kaderTable tbody tr td:nth-child(even) {
    background: rgba(85, 85, 85, 0.5);
}
#kaderTable tbody tr:hover td {
    background: rgba(255, 165, 0, 0.8) !important;
    color: black !important;
}

/* ==============================
   Vorstandschaft Karten
   ============================== */
.vorstandschaft-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
    width: 100%;
}
.card {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    text-align: center;
    padding: 20px;
    width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 15px; /* zusätzlicher Abstand nach außen */
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}
.card p {
    margin: 0;
    color: #fff;
    flex-grow: 1;
    font-size: 1.2rem;
}

/* ==============================
   Galerie Events
   ============================== */
.event {
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 25px;
  border-radius: 12px;
  max-width: 900px;
  margin: 30px auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}
.event h2 {
  margin-top: 0;
  color: orange;
  text-align: center;
}

.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.carousel-track {
  display: flex;
  gap: 15px;
  overflow: hidden;
  max-width: 700px;
  align-items: center;
}
.carousel-track img {
  width: 150px;
  height: 200px;
  object-fit: cover;
  opacity: 0.7;
  transition: all 0.4s ease;
  cursor: default;
  border-radius: 8px;
}
.carousel-track img.active {
  width: 180px;
  height: 240px; /* gleiches Verhältnis, aber größer */
  opacity: 1;
  cursor: pointer;
}

.carousel-btn {
  background: rgba(0,0,0,0.7);
  border: none;
  color: orange;
  font-size: 2rem;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 2;
}
.carousel-btn:hover {
  background: rgba(255,165,0,0.8);
  color: black;
}

/* ==============================
   Lightbox
   ============================== */
.lightbox {
  display: flex;              /* bleibt Flex */
  visibility: hidden;         /* unsichtbar standard */
  opacity: 0;
  position: fixed;
  top:0;
  left:0;
  width: 100%;
  height:100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}
.lightbox.show {
  visibility: visible;
  opacity: 1;
}
.lightbox img {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border: 3px solid orange;
  border-radius: 8px;
}
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
}
.lightbox-btn {
  background: rgba(0,0,0,0.6);
  border: none;
  color: orange;
  font-size: 3rem;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-btn.left { left: 30px; }
.lightbox-btn.right { right: 30px; }

/* ==============================
   Responsive Galerie
   ============================== */
@media (max-width: 900px) {
  main {
    flex-direction: column;
    align-items: center;
  }
  .event {
    width: 100%;
    max-width: 600px;
  }
  .carousel-track img {
    width: 100px;
    height: 130px;
  }
  .carousel-track img.active {
    width: 130px;
    height: 170px;
  }
}
