/* Container-Styling mit Hover-Animationen */
.containerpdf {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 130px;
  background: linear-gradient(135deg, #f9f9f9, #eaeaea);
  border-radius: 15px;
  box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.1), 0 8px 10px rgba(0, 0, 0, 0.1);
}

/* Kacheln mit interaktiven Hover- und Übergangseffekten */
.tile {
  width: 230px;
  height: auto;
  background: linear-gradient(135deg, #ffffff, #f4f4f4);
  border: 2px solid #ddd;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), inset 0 -2px 6px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tile:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), inset 0 -3px 8px rgba(0, 0, 0, 0.1);
}

/* Animierter Glanz-Effekt beim Hover */
.tile::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.5s ease;
}

.tile:hover::before {
  opacity: 1;
  transform: rotate(30deg) translateY(40px);
}

/* Vorschau-Bild mit Hover-Effekten */
.tile img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tile:hover img {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Titel-Styling mit animierter Unterstreichung */
.tile p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  color: #444;
  position: relative;
  overflow: hidden;
}

.tile p::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #444;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.tile:hover p::after {
  width: 100%;
}

/* Modal-Styling mit weichem Hintergrund und Animationen */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.4s ease forwards;
}

.modal iframe {
  width: 80%;
  height: 80%;
  border: 5px solid #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.modal-close:hover {
  transform: scale(1.2);
}

/* Keyframes für Modal-Fade-In */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
