.basic-element {
  display: flex;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.compa {
  width: 100%;
  min-height: 30rem;
  margin: 1.5rem 0;
}

.zine {
  position: relative; 
  border-radius: 10px;
  display: flex;
  flex-direction: column; 
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: 'Parasitype Bold', 'Kodomo';
  cursor: pointer;
  color: var(--neon);
  overflow: hidden;
  transition: color 1s ease-in-out, text-shadow 1s ease-in-out;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 11px 11px 11px var(--rose);
  height: 16rem;
  width: 16rem;
  justify-content: space-around;
  margin: 1rem;
}

.zine::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: brightness(40%);
  transition: filter 0.3s ease;
  z-index: 1;
}

.zine:hover::before {
  filter: brightness(80%);
}

.zine h6, 
.zine p {
  position: relative;
  z-index: 2; /* Text schwebt über dem dunklen Hintergrund */
  margin: 0rem;
}

.zine h6 {
  font-size: clamp(0.8rem, 3.5vw, 1.5rem); 
  line-height: 1.2;
}

.zine:hover p {
  background: var(--blue);
  color: var(--rose);
}

.profile {
  width: 20rem;
  height: 20rem;
}

.profile:hover {
  filter: brightness(80%);
}

.element.profile {
  box-shadow: var(--blue) 10px 10px 25px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media screen and (max-width: 700px) {
  .zine {
    height: 10rem;
    width: 10rem;
    filter: none;
    transition: none;
    box-shadow: 5px 5px 5px var(--rose); 
    margin: 0.5rem;   
  }
  .zine h6 {
    margin: 1rem 0; 
    line-height: 1.5;
  }
}

@media screen and (max-width: 400px) {
  .compa {
    height: 20rem;
  }
  .zine {
    height: 8rem;
    width: 8rem;
    filter: none;
    transition: none;
    margin: 0.25rem;
  }
}

@media (hover: none) {
  .zine:active::before,
  .zine:focus::before {
    filter: brightness(40%) !important;
  }
  
  .zine:active p,
  .zine:focus p {
    background: transparent !important;
    color: inherit !important;
  }
}

@media (hover: hover) {
  .zine:hover::before {
    filter: brightness(80%);
  }

  .zine:hover p {
    background: var(--blue);
    color: var(--rose);
  }
}

@media (min-width: 768px) {
  .basic-element.compa {
    min-height: 500px; /* Adjust desktop height if needed */
  }
}
