/* Grundlegende Stile */
body {
  margin: 0;
  font-family: 'Caveat', cursive, Helvetica, Arial, sans-serif;
  font-size: 1.7em;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 1.0);
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}
a {
  color: #fff;
  text-decoration: none;
}
h1 {
  text-align: center;
}
h4 {
  text-align: center;
  font-size: 2.5em;
}

/* Background-Video */
video.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Logo */
.logo {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 12%;
  height: auto;
  z-index: 10;
}


/* Inhalte */
section {
  min-height: 80vh;
  padding: 20px;
  margin-bottom: 100px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
}
.notice {
  margin: 1.2em 0.1em;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
}
section:nth-of-type(even) {
  background-color: rgba(0, 0, 0, 0.4);
}
.image-section {
  text-align: center;
  padding: 20px;
}
.image-section img {
  max-width: 40%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Medien */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: auto;
}

.video-card {
  background: rgba(0, 0, 0, 0);
  border-radius: 10px;
  padding: 0.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.preview-img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.preview-img:hover {
  transform: scale(1.03);
}

.caption {
  margin-top: 0.5rem;
  text-align: center;
  text-decoration: none;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.0);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.modal video {
  width: 100%;
  height: auto;
  display: block;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* Fußzeile */
footer {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 10px;
  text-align: center;
  position: relative;
  z-index: 0;
}

.footnote-container {
  padding-top: 10px;
  margin-top: 10px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Übersetzungs-Banner */
#translate-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  z-index: 1200;
  display: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
}

#translate-banner button {
  background-color: #f60883;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
  font-family: 'Caveat', cursive;
  font-size: 1em;
}

#translate-banner button:hover {
  background-color: #e0007b;
}

/* Google Translate Specific Overrides */
.skiptranslate.goog-te-gadget {
  font-family: 'Caveat', cursive !important;
  color: #fff !important;
  background-color: transparent !important;
  border: none !important;
}

.goog-te-combo {
  font-family: 'Caveat', cursive !important;
  font-size: 1.2em !important;
  border: 1px solid #f60883 !important;
  border-radius: 5px !important;
  background-color: rgba(0, 0, 0, 0.7) !important;
  color: #fff !important;
  padding: 5px !important;
}

.goog-te-banner-frame.skiptranslate {
  display: none !important;
}
body {
  top: 0px !important;
}

/*----- font -----*/
/* caveat-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  src: url('https://muenzner.com/fonts/caveat-v18-latin-regular.woff2') format('woff2');
}
/* caveat-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  src: url('https://muenzner.com/fonts/caveat-v18-latin-500.woff2') format('woff2');
}

/* Back to top button */
#backToTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  border: none;
  outline: none;
  background-color: #f60883;
  color: white;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  font-size: 28px;
  line-height: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
  width: 50px;
  height: 50px;
  display: none;
  justify-content: center;
  align-items: center
}
#backToTopBtn:hover {
  background-color: #c71585;
}

/* Zurück button */
.back-button {
  width: 52px;
  height: 52px;
  background-color: #f60883;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 28px;
  line-height: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  /* Positionierung unten rechts */
  position: fixed;
  top: 15px;
  left: 80px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  /* optional: Schatten für besseren Kontrast */
}

.back-button:hover {
  background-color: deeppink;
}

/* Responsive */
@media screen and (max-width : 600px) {
  .image-section img {
    max-width: 100%;
  }
  .logo {
    top: 10px;
    width: 30%;
  }
  h4 {
    font-size: 2.0em;
  }
}

/* Color scheme */
@media (prefers-color-scheme: dark) {
  body, a, sidebar-menu, footer {
    color: #cecece;
  }
  section {
    background-color: rgba(0, 0, 0, 0.5);
  }
}