/* --- Container-Struktur --- */
.cc-random-jahr-container {
    display: inline-block;
    position: relative;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
}

.cc-random-jahr-image-wrapper {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
}

/* --- Bild (1024px, skaliert) --- */
.cc-random-jahr-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* --- Overlay in Elementor-Akzentfarbe, 100% deckend --- */
.cc-random-jahr-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--e-global-color-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.cc-random-jahr-image-wrapper:hover .cc-random-jahr-overlay {
    opacity: 1;
}

/* --- Wrapper: zentriert gesamten Textblock --- */
.cc-random-jahr-info-wrapper {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
    pointer-events: none;
    padding: 1rem;
}

.cc-random-jahr-image-wrapper:hover .cc-random-jahr-info-wrapper {
    opacity: 1;
    pointer-events: auto;
}

/* --- Innerer Infoblock --- */
.cc-random-jahr-info {
    color: white;
    max-width: 90%;
}

/* --- Titel des Beitrags --- */
.cc-random-jahr-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    color: white;
}

/* --- Meta-Infos: Jahr, Hersteller, etc. --- */
.cc-random-jahr-info p {
    margin: 4px 0;
}

/* --- Links weiß, keine Hoverfarbe --- */
.cc-random-jahr-info a {
    color: white;
    text-decoration: none;
}

.cc-random-jahr-info a:hover,
.cc-random-jahr-info a:focus {
    color: white;
    text-decoration: none;
}