* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  font-family: "Comic Sans MS", Lato, Helvetica, Arial, sans-serif;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #cfcfcf;
  margin: 0;
}

.navigation {
  overflow: hidden;
  background-color: #333;
}
	
.navigation a {
  float: left; 
  display: block; 
  color: #777; 
  padding: 0.7em 0.8em; 
  text-decoration: none;
  background-color: #333;
}

.navigation a:hover {
  color: #fff;
  text-decoration: none; 
  background-color: #333; 
}

.title {
  padding: 0.5em 0.7em 0em 0.7em;  
  background-color: #fff; 
  font-size: 1.5em; 
  font-weight: 700; 
}

.subtitle {
  padding: 0em 1em 1em 1em;  
  background-color: #fff; 
  font-size: 1em; 
}

.mainpicture {
  background-color: #cfcfcf;
  position: relative;
  width: 100%; 
}

.mainpicturetxt {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  text-shadow: 2px 2px #fff;
  font-size: 2.8vw; 
  text-align: center; 
}

.footercol::after {
  content: "";
  display: table;
  clear: both;
}

.footer {
  float: left;
  font-size: 0.9em; 
  display: flex;
  flex-wrap: nowrap;
  color: #404040; 
  background-color: #cfcfcf;
  padding: 1.5em 1.5em; 
  width: 33.33%;
}

.events {
  font-size: 1em; 
  background-color: #8000ff;
  text-align: center;
  color: #fff;
  padding: 1.5em; 
  border-radius: 10px;
  height: auto; 
}

.copy {
  color: #818181 !important; 
  font-size: 0.8em;
  font-weight: 200; 
}

/* Für Mobile Geräte  */
@media screen and (max-width: 650px) { 
.navigation, .footer {
  width: 100%;
 }
}

/* EMail Link */ 
div.email > span:nth-child(2) {
	display: none;
}
 
/* Weitere Formatierungen */
a {
  color: #8000ff;
}

a:link, a:visited, a:hover, a:active {
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 { 
	text-align: left; 
    color: #1e1e1e;
    clear: both;
    margin: 0 0;
    font-family: "Comic Sans MS", Lato, Helvetica, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.5;
}

.content,
.formularcontent {
  padding: 1em; 
  background-color: #e6e6e6; /* Hintergrundfarbe Inhalt */
}

.eventtable table {
  padding: 1em; 
  width: 100%;
  border-collapse: collapse; 
  text-align: left; 
  table-layout: fixed;
  background: #e6e6e6; 
}
.eventtable tr {
  border-bottom: 1px dashed #8000ff;
  height: 2em; 
}

.eventtable tr:hover {
	background-color: #f3e6ff; 
}

.buvettefotos img {
  padding: 0.5em; 
  width: 100%;
  border-bottom: 1px solid grey;
  border-right: 1px solid grey;
  border-collapse: collapse; 
  text-align: left; 
  table-layout: fixed;
  background: #fff; 
}

/* ------- Markt ------- */ 
.markt-gal img {
  padding: 0.5em; 
  width: 300px;
  height: auto; 
  border-bottom: 1px solid grey;
  border-right: 1px solid grey;
  border-collapse: collapse; 
  text-align: left; 
  table-layout: fixed;
  background: #efefef; 
}

/* ------- Galerie ------- */ 
.gal-row {
  display: flex;
  flex-wrap: wrap;
}

.gal-column {
  flex: 40%;
  max-width: 90%;
  margin-bottom: 1em; 
  position: relative;
  text-align: center;
  color: white;
}

.centertxt {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.7em; 
  text-shadow: 4px 4px 4px black, 0 0 0.5em #000, 0 0 8px darkblue;
}

.centertxt {
  color: #fff; 
}

.gal-column img {
  width: 90%;
}

@media screen and (max-width: 800px) {
.gal-column {
  flex: 50%;
  max-width: 50%;
  }
}

@media screen and (max-width: 600px) {
.gal-column {
  flex: 100%;
  max-width: 100%;
  }
}

.gal-shadow {
  margin: 0 1em 1em 0;
  box-shadow: 0.2em 0.2em 0.6em #000;
  border-radius: 10px;
}

/* ----------- Galerie Bilder & Lightbox ----------- */ 
.gallery {
  display: grid;
  grid-template-columns: auto auto auto auto auto auto;
  gap: 1em;
  object-fit: cover !important;
  width: 100%;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 1px 1px 2px #000;
}
.gallery img:hover {
  transform: scale(1.05);
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.lightbox img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
}
.lightbox .prev,
.lightbox .next {
  height: 50px;
  width: 50px;
  position: absolute;
  transform: translateY(-50%);
  font-size: 2.5rem;
  background-color: transparent;
  color: #ffffff;
  padding: 10px;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  z-index: 1001;
}
.lightbox .prev {
  left: 20px;
}
.lightbox .next {
  right: 20px;
}
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #ffffff;
  background: none;
  cursor: pointer;
  border: none;
  z-index: 1001;
}