/* Created by Content Blocks */

#badge {
    position: absolute;
    z-index: 2;
    /*    bottom: -50px;
        right: -600px;*/
    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(200px, 50vw); /* Maximal 300px, aber responsive */
    height: min(200px, 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(19deg); /* Dreht den gesamten Kreis um 19° */
    box-shadow: 6px 5px 12px 0rem rgb(0 0 0 / 6%);
    opacity: 0; /* Unsichtbar zu Beginn */
    transition: opacity .7s ease-in-out; /* Sanfte Einblendung */
}

#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: 767px) {
    #badge {
        position: absolut;
        right: 0;
        top: 0;
        border-radius: 0;
        transform: rotate(0deg);
        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: 768px) {
    #badge {
    right: -20px;
    top: 20px;
    }
}

@media (min-width: 1200px) {
    #badge {
    right: 0;
    top: 250px;
    }
}

@media (min-width: 1400px) {
    #badge {
    right: 5px;
    top: 310px;
    }
}
