/* Created by Content Blocks */

#badge {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center; /* Vertikale Zentrierung */
    justify-content: center; /* Horizontale Zentrierung */
    background-color: white;
    font-weight: bold;
    text-align: center;
    border-radius: 50%;
    width: min(180px, 50vw); /* Maximal 300px, aber responsive */
    height: min(180px, 50vw); /* Höhe = Breite (perfekter Kreis) */
    aspect-ratio: 1 / 1; /* Sorgt für eine stets runde Form */
    padding: 12px;
    overflow: hidden; /* Verhindert, dass Text über den Kreis hinausgeht */
    transform: rotate(353deg); /* Dreht den gesamten Kreis um 19° */
    box-shadow: inset -8px 18px 17px 0rem rgb(0 0 0 / 10%), -8px 18px 17px 0rem rgb(0 0 0 / 5%);
    opacity: 0; /* Unsichtbar zu Beginn */
    transition: opacity 0.85s ease-in-out; /* Sanfte Einblendung */
    animation: badge-load-from-top 500ms ease-out 80ms forwards;
    will-change: transform;
}

@keyframes badge-load-from-top {
    0% {
        transform: translateY(-1012px) rotate(353deg);
    }

    100% {
        transform: translateY(0) rotate(353deg);
    }
}

#badge span {
    display: block;
    width: 80%; /* Begrenzung für bessere Skalierung */
    text-align: center;
    line-height: 1.3;
    font-weight: 500;
    font-size: 10px; /* Fallback */
    margin-top: 10px;
    white-space: normal; /* Standard-Textfluss */
}

@media (max-width: 699px) {
    #badge {
            right: -1em;
    top: -17em;
        transform: rotate(12deg) !important;
/*        position: absolute;
        right: 0;
        top: 0;
        border-radius: 0;
!*        transform: none !important;*!
        width: 100%;
        height: auto;
        width: 100%;
        min-height: 60px;
        aspect-ratio: inherit;
        opacity: 1;
        transition: none;
        background-color: rgba(255,255,255, 0.8);*/
    }

    #badge span {
        font-size: 8px; /* Kleinere Schrift auf kleinen Bildschirmen */
        width: 100%;

    }
}

@media (min-width: 700px) {
    #badge {
    right: -9em;
    top: -37em;
    }
}

@media (min-width: 1100px) {
    #badge {
    right: 20em;
    top: -43em;
    }
}

@media (min-width: 1400px) {
    #badge {
    right: 20em;
    top: -43em;
    }
}
