.hovereffect {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.img-hover {
    transition: transform 0.4s ease;
}

.hovereffect:hover .img-hover {
    transform: scale(1.05);
}

.hovereffect .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
    color: white;

    display: flex;
    flex-direction: column;
    justify-content: center;   /* <--- HIER: vertikal zentriert */
    align-items: center;       /* <--- HIER: horizontal zentriert */

    text-align: center;
    gap: 0.75rem;              /* Abstand zwischen Titel & Info */
    padding: 0 1rem;           /* optional: horizontaler Innenabstand */
}

.hovereffect:hover .overlay {
    opacity: 1;
}

.hovereffect h2 {
    font-size: 2rem;
    margin: 0;
}

.hovereffect .info {
    display: inline-block;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 2rem;
}
