* {
  font-family: "Lato", sans-serif;
  color: rgb(32, 32, 32);
}

.hidden {
  display: none;
}

body {
  padding: 0px;
  margin: 0px;
}
body header {
  padding: 10px 20px;
  height: 100vh;
}
body header h1, body header h2, body header h3 {
  display: inline-block;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin: 0;
}
body header #logo {
  margin-right: 20px;
}
body header .flexhorizontal {
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
body header .flexverticalcenter {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-line-pack: center;
      align-content: center;
}
body #successmessage {
  position: absolute;
  padding: 10px;
  top: 0;
  left: 0;
  width: calc(100% - 20px);
  background-color: #007310;
  color: white;
}
body navigation {
  display: block;
  position: sticky;
  top: 5px;
  max-width: 740px;
  margin: 0 auto;
  padding: 0 20px;
}
body navigation .menu {
  list-style-type: none;
  width: 100%;
  margin-bottom: 10px;
  padding: 0px;
  text-align: right;
}
body navigation .menu .menuitem {
  background-color: #007310;
  display: inline-block;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  padding: 7px 10px;
  font-size: 20px;
  margin: 0 0 0 10px;
  cursor: pointer;
}
body navigation .menu .menuitem:hover {
  background-color: rgb(94, 206, 94);
}
body navigation .menu .menuitem a {
  text-decoration: none;
  color: white;
}
body main {
  padding: 10px 20px;
  background: url("img/volleyball-banner.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}
body main section {
  max-width: 700px;
  background: rgba(255, 255, 255, 0.758);
  padding: 10px 20px;
  margin: 0 auto;
}
body main section .sectiontitle {
  font-size: 30px;
  margin-bottom: 10px;
  font-weight: bolder;
}
body main section .infobox {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
}
body main section .infobox .boxicon {
  text-align: center;
  margin: 0 auto;
  font-size: 80px;
}
body main section .infobox .boxtext {
  text-align: center;
  font-weight: bold;
  font-size: 20px;
}
body main section .infobox .boxtextl {
  text-align: left;
  font-weight: normal;
  font-size: 20px;
}

body main a:hover {
  color: #007310;
}
body main p {
  font-size: 16px;
}
body footer {
  background-color: lightgray;
  padding: 10px;
}
body footer ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
body footer ul li {
  display: inline-block;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}
body footer ul li a {
  margin: 0 10px;
}
body footer ul li a:hover {
  color: black;
  text-decoration: none;
}

form .inputgroup {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  margin-bottom: 10px;
}
form .inputgroup #email {
  width: 50%;
}
form button {
  padding: 5px 10px;
  font-size: 16px;
  color: white;
  background-color: #007310;
  border: 1px solid #007310;
  cursor: pointer;
}
form button:hover {
  background-color: rgb(94, 206, 94);
}

/* COMPACT CAPTCHA */
.capbox {
  background-color: #BBBBBB;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#BBBBBB), to(#9E9E9E));
  background-image: linear-gradient(#BBBBBB, #9E9E9E);
  border: #007310 0px solid;
  border-width: 2px 2px 2px 20px;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  display: inline-block;
  padding: 5px 8px 5px 8px;
  border-radius: 4px 4px 4px 4px;
}

.capbox-inner {
  font: bold 12px arial, sans-serif;
  color: #000000;
  background-color: #E3E3E3;
  margin: 0px auto 0px auto;
  padding: 3px 10px 5px 10px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
}

#CaptchaDiv {
  color: #000000;
  font: normal 25px Impact, Charcoal, arial, sans-serif;
  font-style: italic;
  text-align: center;
  vertical-align: middle;
  background-color: #FFFFFF;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  display: inline-block;
  padding: 3px 14px 3px 8px;
  margin-right: 4px;
  border-radius: 4px;
}

#CaptchaInput {
  border: #007310 2px solid;
  margin: 3px 0px 1px 0px;
  width: 100%;
}

/* === Galerie-Grid === */
/* #galerie als flexibles Zeilen-Layout */
#galerie {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Überschrift, Text etc. sollen volle Breite bleiben */
#galerie > :not(img):not(figure) {
  flex-basis: 100%;
}

/* Bilder bzw. <figure> nebeneinander (~40% Breite) */
#galerie > img,
#galerie > figure {
  flex: 1 1 40%;
  max-width: 40%;
}

/* Bild-Optik */
#galerie img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;   /* deine Rundungen */
  object-fit: cover;
}

/* Auf kleinen Screens einspaltig */
@media (max-width: 700px) {
  #galerie > img,
  #galerie > figure { flex-basis: 100%; max-width: 100%; }
}

/* Galerie-Layout bleibt gleich (falls du schon Flex/Grid hast) */
/* Positionierung fürs Overlay */
#galerie figure {
  position: relative;
  flex: 1 1 40%;      /* passt zur bisherigen 2-Spalten-Logik */
  max-width: 40%;
  overflow: hidden;
  margin: 0;
}

#galerie img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Overlay-Text */
#galerie figure figcaption {
  position: absolute;
  inset: 0; /* füllt die ganze Fläche */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.5rem;
  color: #fff;
  font-size: 0.95rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px; /* gleich wie Bild */
}

/* Hover-Effekt */
#galerie figure:hover figcaption {
  opacity: 1;
}

#galerie img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

#galerie img:hover {
  transform: scale(1.05);
  filter: brightness(0.85);
}
