body {
  background-color: #F0CE6C;
  font-family: Georgia, serif;
  color: #333;
  text-align: center;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow-x: hidden;
}

nav {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background-color: #F0CE6C;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
}

nav a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

nav a:not(.active):hover {
  color: #00bcd4;
}

nav a.active {
  color: orange;
}

footer {
  background-color: #f8b94e;
  color: #000;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 80px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: left;
}

.footer-inner img {
  height: 60px;
}

.footer-text {
  text-align: left;
  margin: 0;
}

.container {
  max-width: 800px;
  margin: auto;
  padding: 0 1rem 6rem;
  flex: 1;
  text-align: center;
}

h1, h2 {
  text-align: center;
}

h1 {
  font-size: 2rem;
  margin-top: 1rem;
}

h2 {
  font-size: 2rem;
  margin-top: 5rem;
  margin-bottom: 0.1rem;
}

p {
  line-height: 1.4;
  font-size: 1.1rem;
  margin: 0.55rem 0 1rem;
  text-align: center;
}

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

.button, button, .anmelde-button {
  font-family: Georgia, serif;
  font-size: 0.95rem;
  margin-top: 1.5rem;
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(to bottom, #00bcd4 0%, #0097a7 100%);
  color: #fff;
  font-weight: bold;
  border: 2px solid #000;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.button:hover, .anmelde-button:hover {
  background: linear-gradient(to bottom, #4dd0e1 0%, #00acc1 100%);
  transform: translateY(-2px);
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.4);
}

form {
  background: rgba(255, 255, 255, 0.7);
  padding: 1rem;
  border-radius: 5px;
  margin: 2rem 0;
}

form label {
  display: block;
  margin-top: 0.8rem;
}

form input, form textarea, form select {
  width: calc(100% - 2rem);
  padding: 0.5rem;
  margin-top: 0.3rem;
  border: 1px solid #999;
  border-radius: 4px;
}

.highlight-box {
  background: rgba(255, 255, 255, 0.7);
  padding: 1rem;
  margin: 1rem auto;
  border-radius: 5px;
}

.ticket-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  font-size: 1rem;
  background-color: #fff;
  border: 2px solid #000;
}

.ticket-table th, .ticket-table td {
  border: 1px solid #000;
  padding: 0.8rem;
  text-align: left;
}

.ticket-table th {
  background-color: #f8b94e;
  color: #000;
}

.ticket-hoverable {
  background: linear-gradient(to bottom, #00bcd4 0%, #0097a7 100%);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.ticket-hoverable a {
  display: block;
  width: 100%;
  height: 100%;
  color: white;
  text-decoration: none;
  padding: 0.5rem 0;
}

.ticket-hoverable:hover {
  background: linear-gradient(to bottom, #4dd0e1 0%, #00acc1 100%);
}

.illustration {
  display: block;
  margin: 1.5rem auto 0;
  height: 180px;
  max-width: 100%;
}

.ticket-table {
  font-size: 0.9rem;
  max-width: 600px;
}

/* Galerie */
.filmrolle-rahmen {
  background-color: #F0CE6C;
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-inline: 2.5rem; /* Platz für Pfeile */
}

.filmrolle-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
  scroll-behavior: smooth;
  scroll-padding-inline: calc((100% - 180px) / 2);
}

.filmrolle-container::before,
.filmrolle-container::after {
  content: "";
  flex: 0 0 calc((100% - 180px) / 2);
}

.filmrolle-container::-webkit-scrollbar {
  display: none;
}

.kunst-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  background-color: #fff;
  border-radius: 6px;
  text-align: center;
  width: 180px;
  color: #000;
  padding: 1rem;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.kunst-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border: 2px solid #00bcd4;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.kunst-item:hover {
  transform: scale(1.03);
}

.kunst-item p {
  font-size: 0.9rem;
  line-height: 1.3;
  margin: 0.5rem 0 0;
}

.kunst-item a {
  color: #00bcd4;
  text-decoration: underline;
}

.kunst-item em {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.kunst-item.leer {
  background-color: transparent;
  border: none;
  box-shadow: none;
  width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Pfeile */
.pfeil-links,
.pfeil-rechts {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #00bcd4;
  cursor: pointer;
  padding: 0.8rem;
  transition: color 0.3s, transform 0.2s;
  user-select: none;
  z-index: 10;
}

.pfeil-links:hover,
.pfeil-rechts:hover {
  color: #007c9a;
  transform: scale(1.1);
}

.pfeil-links  { left: 0.25rem; }
.pfeil-rechts { right: 0.25rem; }

@media (max-width: 800px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  nav { flex-direction: column; align-items: center; font-size: 1.1rem; gap: 1rem; }
  body { background-attachment: scroll; }
  .kunst-item { width: 140px; padding: 0.8rem; }
  .kunst-item img { height: 110px; }
  .filmrolle-container { scroll-padding-inline: calc((100% - 140px) / 2); }
  .filmrolle-container::before,
  .filmrolle-container::after { flex-basis: calc((100% - 140px) / 2); }
  .filmrolle-rahmen { padding-inline: 1.5rem; }
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.3s ease-in-out;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border: 4px solid #00bcd4;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.filmrolle-rahmen,
.filmrolle-container,
.kunst-item,
.kunst-item p,
.kunst-item a {
  overflow-wrap: anywhere;
  word-break: normal;
}

.kunst-item p a {
  word-break: break-word;
}
.container {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 800px) {
  nav {
    width: 100%;
    max-width: 100%;        /* darf nicht breiter als der Screen werden */
    box-sizing: border-box;
  }
  nav a {
    display: block;         /* Link nimmt Zeilenbreite ein */
    max-width: 100%;
    white-space: normal;    /* nicht in einer Zeile kleben */
    overflow-wrap: anywhere;/* lange Wörter dürfen umbrechen */
    word-break: break-word; /* Sicherheitsnetz */
    text-align: center;
  }
}