/* Card group / card menu: right-align the link button in the card footer */
.card-group-element-item .card-footer,
.card-menu-item .card-footer {
    text-align: right;
}

/* Accordion and panel headers: use body font instead of headings font */
:is(h1, h2, h3, h4, h5).accordion-header,
.card-panel > :is(h1, h2, h3, h4, h5).card-header {
    font-family: var(--bs-body-font-family);
    font-weight: 700;
}

/* Quote with portrait: round image centered on the top left corner */
blockquote.quote-has-image {
    --quote-image-size: 96px;
    margin-top: calc(var(--quote-image-size) / 2);
    margin-left: calc(var(--quote-image-size) / 2);
    padding-top: calc(var(--quote-image-size) / 2 + 0.75rem);
    padding-left: calc(var(--quote-image-size) / 2 + 0.75rem);
}

blockquote.quote-has-image .quote-image {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--quote-image-size);
    height: var(--quote-image-size);
    margin: 0;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
    transform: translate(-50%, -50%);
}

@media (max-width: 575.98px) {
    blockquote.quote-has-image {
        --quote-image-size: 72px;
    }
}

/* Quote footer: name of the quoted person before the source */
blockquote footer .quote-name {
    font-weight: 700;
}

/* Hero "direct bookings" (HTML content element): headline size, arrow next to the CTA button */
.hero-direct .hero-direct-title {
    font-weight: 700;
    font-size: calc(1.6rem + 1.5vw);
    line-height: 1.15;
}

.hero-direct-action {
    position: relative;
    width: fit-content;
}

.hero-direct-arrow {
    position: absolute;
    top: 44px;
    left: calc(100% + 22px);
    width: 106px;
    height: auto;
    pointer-events: none;
}

@media (min-width: 1200px) {
    .hero-direct .hero-direct-title {
        font-size: 3rem;
    }
}

@media (max-width: 575.98px) {
    .hero-direct-action,
    .hero-direct-action .btn {
        width: 100%;
    }

    .hero-direct-arrow {
        display: none;
    }
}

/* "Why ferienimmo.media" (HTML content element on primary background): two white cards */
.why-ferienimmo .why-ferienimmo-title {
    font-family: var(--bs-body-font-family);
    font-weight: 700;
    font-size: calc(1.4rem + 1.2vw);
    color: inherit;
}

.why-ferienimmo-card {
    color: var(--bs-body-color);
    font-size: 1.125rem;
}

.why-ferienimmo-top {
    min-height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-ferienimmo-percent {
    font-weight: 700;
    font-size: clamp(4rem, 8vw, 6.25rem);
    line-height: 1;
}

.why-ferienimmo-divider {
    margin: 1.5rem 0 2rem;
    border-top: 1px solid var(--bs-primary);
    opacity: 1;
}

.why-ferienimmo .why-ferienimmo-card-title {
    font-family: var(--bs-body-font-family);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.why-ferienimmo-list {
    padding-left: 1.5rem;
}

.why-ferienimmo-list li + li {
    margin-top: 1.5rem;
}

.why-ferienimmo-list strong {
    font-weight: 600;
}

@media (min-width: 1200px) {
    .why-ferienimmo .why-ferienimmo-title {
        font-size: 2.625rem;
    }

    .why-ferienimmo-card {
        font-size: 1.25rem;
    }
}
