/* redGARAN – EU-Garantiekennzeichnung (Durchführungsverordnung (EU) 2025/1960) */

/* Inter is mandatory for the GARAN label (Annex II, note 6). Only used inside the label SVG. */
@font-face {
    font-family: "RedGaranInter";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/Inter-ExtraBold.woff2") format("woff2");
}

.redgaran-labels {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .75rem 0 1rem;
}

.redgaran-btn {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 12rem;
    max-width: 16rem;
    height: 2.5rem;
    padding: 0;
    overflow: hidden;
    border-radius: .25rem;
    cursor: pointer;
    font: inherit;
    line-height: 1.2;
    transition: box-shadow .15s ease-in-out, transform .15s ease-in-out;
}

.redgaran-btn:hover,
.redgaran-btn:focus-visible {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .15);
}

.redgaran-btn:focus-visible {
    outline: 2px solid #003399;
    outline-offset: 2px;
}

/* "x Jahre Gewährleistung" — EU reflex blue with the shield on the left */
.redgaran-btn-notice {
    background: #003399;
    border: 0;
    color: #fff;
}

/* Shield hangs from the top edge; the SVG viewBox is cropped so that the star circle sits
   exactly on the vertical centre of the button and the tip ends at its bottom edge. */
.redgaran-shield {
    flex: 0 0 auto;
    align-self: stretch;
    margin-left: .375rem;
}

.redgaran-shield svg {
    display: block;
    height: 100%;
    width: auto;
}

.redgaran-btn-text {
    flex: 1 1 auto;
    padding: 0 .75rem 0 .5rem;
    font-size: .8125rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

/* GARAN label in the official nested display format */
.redgaran-btn-garan {
    justify-content: center;
    background: #fff;
    border: 1px solid #ced4da;
}

.redgaran-btn-garan .garan-nested-svg {
    display: block;
    height: calc(100% + 2px);
    width: auto;
    max-width: 100%;
    margin-top: -1px;
}

.redgaran-compact {
    margin: .5rem 0 .25rem;
}

.redgaran-compact .redgaran-btn {
    flex-basis: 11rem;
    max-width: 14rem;
}

/* Popup */
.redgaran-modal .modal-dialog {
    max-width: 380px;
}

.redgaran-modal.redgaran-modal-notice .modal-dialog {
    max-width: 560px;
}

.redgaran-modal .modal-body {
    padding: 1rem;
}

.redgaran-modal .modal-footer {
    display: flex;
    gap: .5rem;
    justify-content: flex-start;
}

.redgaran-modal .modal-footer > * {
    margin: 0;
}

.redgaran-modal .modal-footer .ml-auto {
    margin-left: auto !important;
}

.redgaran-notice-img,
.redgaran-label-img {
    display: block;
    width: 100%;
    height: auto;
}

/* Tab */
.redgaran-label-framed {
    max-width: 380px;
}

.redgaran-notice-framed {
    max-width: 640px;
    box-shadow: 0 .125rem .5rem rgba(0, 0, 0, .12);
    border-radius: .25rem;
}

.redgaran-tab-actions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-width: 380px;
    margin-top: .75rem;
}

.redgaran-tab-actions .btn-block + .btn-block {
    margin-top: 0;
}

@media print {
    .redgaran-labels {
        display: none;
    }
}
