/* Preserve the source page's readable text against its dark panels. */
.iglhaut-source-7028-row-4 .iglhaut-testimonials .wp-block-quote,
.iglhaut-source-7028-row-4 .iglhaut-testimonials .wp-block-quote p,
.iglhaut-source-7028-row-4 .iglhaut-testimonials .wp-block-quote cite,
.iglhaut-source-7092-row-2 .wp-block-heading,
.iglhaut-source-7096-row-2 .wp-block-heading,
.iglhaut-source-7096-row-2 p {
    color: #fff;
}

/* Keep the long service-recall CTA word intact without changing its band height. */
@media (max-width: 600px) {
    .iglhaut-source-7271-row-7 {
        padding-block: calc(4vw + 82.25px) !important;
    }
    .iglhaut-source-7271-row-7 > .wp-block-columns {
        max-width: calc(100% - 20px) !important;
    }
}

.iglhaut-source-7028-row-4 .iglhaut-testimonials .iglhaut-review-rating {
    color: #00adef;
}

/* The archived thank-you page places both headings over its photograph. */
.iglhaut-source-7064-row-1 .wp-block-heading {
    color: #fff;
}
.site-main:has(>.wp-block-post-content>.iglhaut-source-7064-row-1) {
    min-height: 0;
}

/* Keep German compounds together or break them at a real hyphenation point. */
@media (max-width: 690px) {
    .iglhaut-source-section.iglhaut-source-hero.iglhaut-source-7271-row-1 h1 {
        font-size: clamp(18px, 6.15vw, 36px);
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }
    .iglhaut-source-6925-row-1 h1,
    .iglhaut-source-6927-row-1 h1,
    .iglhaut-source-6935-row-1 h1,
    .iglhaut-source-7260-row-1 h1,
    .iglhaut-source-10757-row-1 h1 {
        overflow-wrap: normal;
        word-break: normal;
        hyphens: auto;
    }
    .iglhaut-source-6925-row-1 h1 {
        hyphens: manual;
    }
    .iglhaut-source-6927-row-1 h1 {
        font-size: clamp(24px, 6.15vw, 36px);
    }
    .iglhaut-source-section.iglhaut-source-hero.iglhaut-source-6935-row-1 h1 {
        max-width: 280px;
        font-size: clamp(24px, 6.15vw, 36px);
        hyphens: none;
    }
    .iglhaut-source-7260-row-1 h1 {
        font-size: clamp(25px, 6.4vw, 36px);
        hyphens: none;
    }
    .iglhaut-source-section.iglhaut-source-hero.iglhaut-source-10757-row-1 h1 {
        font-size: clamp(22px, 5.65vw, 36px);
        hyphens: none;
    }
    .iglhaut-source-6588-row-1 h1 {
        font-size: clamp(24px, 6.15vw, 36px);
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }
    .iglhaut-source-5979-row-1 h1,
    .iglhaut-source-hero.iglhaut-source-6618-row-1 h1 {
        font-size: clamp(28px, 7.7vw, 32px);
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }
    .iglhaut-portfolio-article:has(.iglhaut-portfolio-image img[src*="Iglhaut-Nutzfahrzeugservice"]) .iglhaut-portfolio-heading h1 {
        font-size: clamp(26px, 7.2vw, 36px);
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }
    .iglhaut-news-hero:has(img[src*="20220124_Auto_der_Woche_007"]) .wp-block-post-title {
        font-size: clamp(18px, 4.7vw, 28px);
        line-height: 1.25;
        overflow-wrap: anywhere;
        word-break: normal;
        hyphens: auto;
    }
    .iglhaut-source-6016-row-8 > .wp-block-columns > .wp-block-column > .wp-block-columns:last-child {
        flex-wrap: wrap !important;
        gap: 12px;
    }
    .iglhaut-source-6016-row-8 > .wp-block-columns > .wp-block-column > .wp-block-columns:last-child > .wp-block-column {
        flex-basis: 100% !important;
    }
    .iglhaut-source-6016-row-8 h4 {
        overflow-wrap: normal;
        word-break: normal;
        white-space: nowrap;
    }
    .iglhaut-source-6016-row-8 .wp-block-image a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }
}

/* On phones the year choices precede the story instead of squeezing it. */
@media (max-width: 600px) {
    .site-main .iglhaut-history.is-enhanced .iglhaut-history-navigation {
        position: relative;
        top: auto;
        left: auto;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
        width: 100%;
        height: auto;
        max-height: none;
        padding: 8px;
        overflow: visible;
    }
    .site-main .iglhaut-history-navigation .wp-block-buttons {
        min-width: 0;
        margin-bottom: 0 !important;
    }
    .site-main .iglhaut-history-navigation .wp-block-button__link {
        min-height: 44px;
        padding: 6px 4px;
        font-size: clamp(16px, 4.5vw, 18px);
        line-height: 1.2;
    }
    .site-main .iglhaut-history-panel {
        min-height: 0;
    }
    .site-main .iglhaut-history-caption {
        margin: 0 !important;
        padding: 32px 20px 40px !important;
        text-align: left;
    }
    .site-main .iglhaut-history-caption > * {
        max-width: none;
    }
    .site-main .iglhaut-history-caption > .wp-block-heading:first-child::after {
        margin-left: 0;
    }
}
