body {
  font-family: system-ui, sans-serif;
  margin: 2rem;
}

.cards {
  display: flex;
  gap: 1rem;
}

.card {
  padding: 1rem 1.5rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
}

/* Modal: versteckt per default, sichtbar wenn Ziel des Fragment-Links */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(90vw, 30rem);
  height: fit-content;
  background: #fff;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
}

.modal:target {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .modal:target {
    animation: fade-in 0.2s ease-out;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
}

.close {
  float: right;
  text-decoration: none;
  color: inherit;
  font-size: 1.5rem;
}
