/* ==========================================================================
   privadent intro band
   Shared component (app/views/components/privadent-intro-bar.ejs): the
   ratgeber hero renders it below the split layout, the homepage below the
   Google reviews section. Loaded automatically via includeWithCSS.
   Every selector is prefixed with .privadent-intro-bar, so nothing here
   can reach into the pages that embed it.
   ========================================================================== */
.privadent-intro-bar {
    margin-top: 52px; /* breathing room between the hero CTA and the band */
    padding: 30px 34px 26px;
    border: 1px solid #e4e9ee;
    border-radius: 16px;
    background: #fff;
    /* Lifts the band off the white page. A heavier border alone barely showed,
       because the border colour is very light to begin with. Two layers — a
       tight one for the edge, a wide soft one for the drop — read as a real
       shadow instead of a grey halo. */
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05),
                0 8px 24px rgba(15, 23, 42, 0.07);
}

.privadent-intro-bar__top {
    display: flex;
    align-items: stretch;
    gap: 34px;
}

/* Left column: logo and claim. 288px is the narrowest width that still keeps
   "Ihr unabhängiger Zahnzusatz-Vergleich" on a single line. */
.privadent-intro-bar__brand {
    flex: 0 0 288px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.privadent-intro-bar__logo {
    height: 44px;
    width: auto;
    align-self: flex-start;
}

.privadent-intro-bar__claim {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    color: #1f2937; /* same dark grey as the USP headlines next to it */
    line-height: 1.3;
}

.privadent-intro-bar__claim-nowrap {
    white-space: nowrap;
}

/* Right column: the key-figure strip. Each tile carries its own hairline rule
   in front, which also does the job of separating the strip from the brand
   column — so there is no separate divider element any more. */
.privadent-intro-bar__usps {
    flex: 1;
    align-self: center;
    display: flex;
    align-items: stretch;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* flex-basis 0 so all three tiles get exactly the same width, regardless of
   how long their labels are. */
.privadent-intro-bar__usp {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    padding: 4px 18px;
    border-left: 1px solid #d9f0ec;
}

.privadent-intro-bar__figure {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 30px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.05;
    letter-spacing: -0.5px;
}

/* The "+" is the one branded element in an otherwise neutral figure. */
.privadent-intro-bar__plus {
    color: #1C8A7F;
    font-weight: 700;
}

.privadent-intro-bar__stars {
    font-size: 13px;
    line-height: 1;
    color: #fbbc05;
    letter-spacing: 0.5px;
}

.privadent-intro-bar__figure-label {
    font-size: 13px;
    color: #64748b;
    line-height: 1.35;
}

/* Google mark inside the rating label — keeps its own brand colours and sits
   on the text baseline. */
.privadent-intro-bar__google {
    vertical-align: -2px;
    margin-right: 5px;
}

/* Bottom row: tariff line above the insurer logos, logos in one single line */
.privadent-intro-bar__bottom {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e4e9ee;
}

.privadent-intro-bar__tariffs {
    margin: 0 0 8px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.privadent-intro-bar__logos .insurer-logos-container {
    flex-wrap: nowrap;
    max-width: 100%;
    gap: 0;
}

/* Every logo gets an equal share of the row; the image is then fitted into
   that share with object-fit, so no logo can spill over or be clipped once
   all 16 are squeezed into a single line. */
.privadent-intro-bar__logos .insurer-logo-item {
    flex: 1 1 0;
    min-width: 0;
    height: 34px;
    padding: 0 4px;
}

.privadent-intro-bar__logos .insurer-logo-item img {
    width: 100%;
    height: 24px;
    max-width: 100%;
    max-height: 24px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .privadent-intro-bar {
        margin-top: 36px; /* same intent as desktop, smaller step */
        padding: 18px 16px 14px;
        border-radius: 12px;
    }

    .privadent-intro-bar__top {
        flex-direction: column;
        gap: 26px;
    }

    .privadent-intro-bar__brand {
        flex: 0 0 auto;
        align-items: center;
        text-align: center;
    }

    .privadent-intro-bar__logo {
        align-self: center;
    }

    /* Three key figures stay side by side — stacked they would push the
       insurer logos far below the fold. */
    .privadent-intro-bar__usps {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
    }

    .privadent-intro-bar__usp {
        padding: 2px 4px 2px 9px;
        gap: 5px;
    }

    /* On mobile the brand block sits above the figures, so the first tile's
       rule would point at nothing — the remaining two still separate the row. */
    .privadent-intro-bar__usp:first-child {
        border-left: none;
        padding-left: 0;
    }

    /* 19px is the largest size at which "100.000+" still fits a third of a
       360px-wide band without touching its neighbour. */
    .privadent-intro-bar__figure {
        font-size: 19px;
        gap: 3px;
        letter-spacing: -0.3px;
    }

    .privadent-intro-bar__stars {
        font-size: 10px;
    }

    .privadent-intro-bar__figure-label {
        font-size: 11.5px;
        line-height: 1.3;
    }

    .privadent-intro-bar__google {
        width: 12px;
        height: 12px;
        margin-right: 3px;
    }

    .privadent-intro-bar__bottom {
        margin-top: 18px;
        padding-top: 16px;
    }
}
