/* =========================
   HEADER (THEKEMODAL)
========================= */

.thekemodal-header {
  width: 100%;
  height: 70px;
  padding: 16px;

  background-image: url(../images/bg_wood.jpg);
  background-color: #5cb85c;

  color: goldenrod;
  text-align: center;

  position: absolute; /* WICHTIG: nicht fixed! */
  top: 0;
  left: 0;

  z-index: 5;

  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* Close Button */
.thekemodal-header a {
  position: absolute;
  top: 0;
  right: 0;

  text-decoration: none;
  color: goldenrod;
  font-weight: bold;

  padding: 0 20px;
  font-size: 28px;
  line-height: 70px;

  cursor: pointer;
}

.thekemodal-header a:hover,
.thekemodal-header a:focus {
  color: #000;
}

/* Body Abstand wegen Header */
.thekemodal-body {
  padding-top: 80px; /* Platz für Header */
}

/* =========================
   THEKE MODAL (IMAGE MODAL)
========================= */

.thekemodal {
  position: fixed;
  inset: 0;
  z-index: 3000;

  background: rgba(0, 0, 0, 0.85);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.thekemodal.visible {
  opacity: 1;
  visibility: visible;
}

/* Box */
.thekemodal-content {
  position: relative;

  width: 90%;
  max-width: 600px;

  background-image: url(../images/modal_bg.png);
  background-size: cover;

  border-radius: 10px;
  overflow: hidden;

  animation: thekeFadeIn 0.3s ease;
}

/* Body */
.thekemodal-body {
  text-align: center;
}

/* Bild = DIN A4 Look */
.thekemodal-body img {
  width: 100%;
  height: auto;

  max-height: 75vh;
  object-fit: contain;

  border-radius: 6px;
  background: #fff;
}

/* Footer */
.thekemodal-footer {
  padding: 10px;
  background-image: url(../images/bg_wood.jpg);
  color: goldenrod;
  text-align: center;
}

/* Close Button */
.thekemodal-close {
  position: absolute;
  top: 10px;
  right: 15px;

  font-size: 28px;
  color: white;
  text-decoration: none;
  z-index: 10;
}

/* Animation */
@keyframes thekeFadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   MOBILE OPTIMIERUNG
========================= */

@media (max-width: 768px) {
  .thekemodal-content {
    width: 95%;
  }

  .thekemodal-body img {
    max-height: 70vh;
  }
}
