@charset "UTF-8";

/* =========================
   WRAPPER
========================= */
.wrapper {
  padding: 20px 40px;
}

/* =========================
   GRID (modern + stabil)
   → letzte Reihe zentriert automatisch
========================= */
.grid {
  display: grid;
  gap: 20px;

  grid-template-columns: repeat(4, 280px);

  justify-content: center;
  align-content: start;
}

/* =========================
   CARD (gleich hoch)
========================= */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;

  min-height: 240px;
  height: 100%;

  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

/* Background */
.bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.card:hover .bg {
  transform: scale(1.08);
}

/* Overlay */
.overlay {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;

  padding: 16px;
  background: rgba(0,0,0,0.55);
  color: antiquewhite;
}

/* Titel */
h4 {
  margin: 0 0 10px 0;
  color: antiquewhite;
}

/* Beschreibung */
.desc {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}
.euro{
	font-size: 9pt;
}

/* Links */
.links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.links a {
  color: #ddd;
  font-size: 13px;
  text-decoration: underline;
}

.links a:hover {
  color: darkorange;
}

.links button {
  align-self: flex-end;
  background: white;
  color: black;
  border: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
}

/* =========================
   MODAL (smooth + center)
========================= */
#modal {
  position: fixed;
  inset: 0;

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

  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);

  opacity: 0;
  pointer-events: none;

  transition: all 0.35s ease;
  z-index: 9999;
}

#modal.open {
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(14px);
  opacity: 1;
  pointer-events: auto;
}

/* Modal Box */
.modal-box {
  width: 100%;
  max-width: 900px;
  max-height: 80vh;

  background: rgba(34,34,34,0.96);
  border-radius: 18px;
  padding: 30px;

  transform: scale(0.85) translateY(20px);
  opacity: 0;

  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);

  overflow: hidden;
}

#modal.open .modal-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Close */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  color: white;
}

/* Flow Content */
.flow {
  max-height: 60vh;
  overflow-y: auto;
  color: white;
  line-height: 1.55;
}

.flow h2 {
  margin-top: 0;
}

.flow p {
  margin-bottom: 0.6em;
  font-size: 11pt;
}

.flow a {
  color: orange;
}

.flow a:hover {
  color: darkorange;
}

/* =========================
   RESPONSIVE (optional clean override)
========================= */
@media (max-width: 600px) {
  .wrapper {
    padding: 20px 10px;
  }
}
@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(3, 280px);
  }
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 280px);
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}