/**
 * Ribbon "kostenlos und unverbindlich"
 * Für korrekte Positionierung oben rechts in .pflegeWrapper und .vergleich-eingabe
 */
.ribbon-kostenlos-und-unverbindlich {
    position: absolute;
    top: -8px;
    right: -12px;
    width: 120px;
    height: auto;
    z-index: 999;
}

/* Sicherstellen, dass die Container relative Positionierung haben */
.pflegeWrapper {
    position: relative !important;
}

#vergleich .vergleich-eingabe {
    position: relative !important;
}

/* Bootstrap Breakpoints für ribbon-kostenlos-und-unverbindlich */
/* Extra small devices (portrait phones, less than 576px) */
/* Extra small devices (portrait phones, 360px to 411px)
 *
 * Bis #258 zog dieser Bereich #vergleich um 13px nach links und schob das
 * Band 35px ueber die Karte hinaus: der Ausgleich fuer eine Karte, die bei
 * 320px bis 362 reichte (#243) und bei 375px noch aus ihrem Kasten ragte.
 * Seit die Karte in ihrem Kasten bleibt, stand sie bei 375px 6px links der
 * Mitte, und das Band endete 22px hinter dem Schirmrand, abgeschnitten von
 * html{overflow-x:hidden}. Jetzt wie 384 bis 411px: Karte mittig, Band
 * 12px ueber der Kartenecke wie auf jeder anderen Breite. */
@media (min-width: 360px) and (max-width: 411px) {
    .ribbon-kostenlos-und-unverbindlich {
        top: 2px;
        right: -12px;
    }
}

@media (min-width: 412px) {
    .ribbon-kostenlos-und-unverbindlich {
        top: 2px;
        right: -2px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .ribbon-kostenlos-und-unverbindlich {
        top: 3px;
        right: -1px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .ribbon-kostenlos-und-unverbindlich {
        right: 12px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .ribbon-kostenlos-und-unverbindlich {
        right: -12px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .ribbon-kostenlos-und-unverbindlich {
        right: -12px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1400px) {
    .ribbon-kostenlos-und-unverbindlich {
        right: 12px;
    }
}
