.container {
    position: absolute;
    top: 105px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    width: min(1100px, calc(100% - 40px));
    text-align: center;
}

.menu-link {
    color: black;
    text-decoration: none;
    margin: 0;
    background-color: #ffdd03;
    padding: 1px 8px;
    border-radius: 6px;
    box-shadow: 3.5px 3.5px 0.8px rgba(0, 0, 0, 0.5);
    display: inline-block;
}

.menu-link:hover {
    text-decoration: underline;
}

.container > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.logos {
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.verein_logo {
    height: 60px;
    width: 180px;
}

.tt_logo {
    margin-left: 10px;
    height: 87px;
    width: 100px;
} 

.box {
    position: absolute;
    top: 170px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, calc(100% - 40px));
    text-align: center;
}

h1 {
    margin-top: 15px;
    color: white;
    font-size: 30px;
    text-shadow: 5px 5px 0.8px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.text {
    text-align: left;
    max-width: 700px;
    width: 80%;
    background-color: rgba(158, 158, 158, 0.7);
    border-radius: 8px;
    margin: 30px auto 0;
    padding: 1em;
    color: black;
    line-height: 150%;
    box-shadow: 3.5px 3.5px 0.8px rgba(0, 0, 0, 0.5);
}

.text img {
    max-width: 100%;
    height: auto;
}


.anlage {
    margin-top: 10px;
    color: white;
    font-size: 25px;
    text-shadow: 5px 5px 0.8px rgba(0, 0, 0, 0.5);
}

.sponsoren {
       display: inline-block;
    overflow: hidden;
    margin-left: 20px;
    margin-bottom: 20px;
    max-width: 130px;
      width: 80%;
      border-radius: 8px;
}

.img-butten {
    
    display: inline-block;
    overflow: hidden;
    margin: 0 10px 20px;
}

.img-link {
    display: inline-block;
    overflow: hidden;
    margin: 0 10px 20px;
    width: 280px;
    height: 100%;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.img-link.gross {
    width: 90vw;
    z-index: 9999;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

    /* Hintergrund für Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  gap: 10px; /* Abstand zwischen Buttons und Bild */
}

.lightbox-overlay img {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(255,255,255,0.9);
  cursor: default;
}

.lightbox-overlay button {
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 40px;
  padding: 10px 20px;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s ease;
}

.lightbox-overlay button:hover {
  background: rgba(0,0,0,0.8);
}



.img-link-anlagen {
    width: 250px;
    height: 100%;
    border-radius: 8px;
}

.img-butten-anlagen {
    background-color: #ffdd03;
    text-decoration: none;
    color: black;
    border-radius: 8px;
    display: inline-block;
    overflow: hidden;
    margin: 0 10px 20px;
}

body > details {
    position: fixed;
    top: 10px;
    right: 15px;
    left: auto;
    transform: none;
    z-index: 1000;
    text-align: right;
}

.language {
    width: 10%;
    min-width: 42px;
    max-width: 65px;
    background-color: rgba(255, 221, 3, 0.65);
    border-radius: 10px;
    box-shadow: 3.5px 3.5px 0.8px rgba(0, 0, 0, 0.5);
    transition: background-color 0.7s ease;
}

.language:hover {
    background-color: rgba(255, 221, 3);
}

details summary {
    list-style: none;
    cursor: pointer;
}

details summary::-webkit-details-marker {
    display: none;
}

body > details .language {
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: block;
    margin: 0 0 0 auto;
}

body > details .language_details {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    margin-top: 0;
    display: inline-block;
    background-color: #ffdd03;
    color: black;
    text-decoration: none;
    padding: 0.2px 1.5px;
    border-radius: 6px;
    box-shadow: 3.5px 3.5px 0.8px rgba(0, 0, 0, 0.5);
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    position: relative;
    z-index: 0;
    overflow-x: hidden;
}

#besucherzaehler * {
    color: #000000 !important;
    font-weight: bold;
    padding: 1em;
    line-height: 150%;
}

.headline {
    margin-top: 10px;
    color: white;
    font-size: 30px;
    text-shadow: 5px 5px 0.8px rgba(0, 0, 0, 0.5);
}

a {
    color: black;
}

.nachwort {
    font-size: 13px;
}

.gallery-video-wrap {
  margin: 10px 20px 30px 20px;
}

.gallery-video-player {
  width: min(900px, 95%);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  background: #000;
}