/* ==========================================================================
   Firmenkunden-Startseite (front-page.php im Child-Theme "Visana")
   Plain CSS mit Präfix .ehp-, baut auf den Variablen/Utilities des Parent-Themes auf
   (--primary-color*, --content-gap-*, .btn-*). Kein Tailwind-Build nötig.
   ========================================================================== */

.ehp {
    --ehp-munter: #E30613;
    --ehp-munter-dark: #B8040F;
    --ehp-apotheke: var(--green-900-color, #00792A);
    --ehp-apotheke-100: var(--green-100-color, #DEF7E7);
    --ehp-praxis: var(--red-900-color, #B11901);
    --ehp-praxis-100: var(--red-100-color, #F7E2DE);
    --ehp-open: #13804A;
    --ehp-soon: #B26A00;
    --ehp-closed: #6B6B6B;
    --ehp-radius: 1.5rem;
}

.ehp svg {
    flex: none;
}

.ehp :is(.ehp-hero-chips, .ehp-ways, .ehp-munter-benefits, .ehp-location-contact) > li {
    list-style: none;
}

.ehp :is(.ehp-hero-chips, .ehp-ways, .ehp-munter-benefits, .ehp-location-contact) > li::marker {
    content: none;
}


/* --- Buttons (eigene Varianten für farbige Flächen) ----------------------- */

.ehp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ehp-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

.ehp-btn--solid {
    background-color: var(--ehp-accent, var(--primary-color-900));
    border-color: var(--ehp-accent, var(--primary-color-900));
    color: #ffffff;
}

.ehp-btn--solid:hover,
.ehp-btn--solid:focus-visible {
    background-color: #ffffff;
    color: var(--ehp-accent, var(--primary-color-900));
}

.ehp-btn--outline {
    border-color: var(--ehp-accent, var(--primary-color-900));
    color: var(--ehp-accent, var(--primary-color-900));
}

.ehp-btn--outline:hover,
.ehp-btn--outline:focus-visible {
    background-color: var(--ehp-accent, var(--primary-color-900));
    color: #ffffff;
}

.ehp-btn--white {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--ehp-munter);
}

.ehp-btn--white:hover,
.ehp-btn--white:focus-visible {
    background-color: transparent;
    color: #ffffff;
}

.ehp-btn--white-outline {
    border-color: rgb(255 255 255 / 0.8);
    color: #ffffff;
}

.ehp-btn--white-outline:hover,
.ehp-btn--white-outline:focus-visible {
    background-color: #ffffff;
    color: var(--ehp-munter);
}

.ehp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

.ehp-link svg {
    width: 1rem;
    height: 1rem;
}


/* --- Live-Status (befüllt von partner.js) --------------------------------- */

.ehp-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    background-color: #ffffff;
    color: var(--ehp-closed);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 4px 14px rgb(0 0 0 / 0.12);
}

.ehp-status[hidden] {
    display: none;
}

.ehp-status::before {
    content: "";
    flex: none;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background-color: currentColor;
}

.ehp-status.is-open {
    color: var(--ehp-open);
}

.ehp-status.is-open::before {
    animation: ehp-pulse 2s ease-out infinite;
}

.ehp-status.is-soon {
    color: var(--ehp-soon);
}

.ehp-status--inline {
    padding: 0;
    background: none;
    box-shadow: none;
    font-size: 0.8125rem;
}

@keyframes ehp-pulse {
    0% { box-shadow: 0 0 0 0 rgb(19 128 74 / 0.55); }
    70% { box-shadow: 0 0 0 0.45rem rgb(19 128 74 / 0); }
    100% { box-shadow: 0 0 0 0 rgb(19 128 74 / 0); }
}

@media (prefers-reduced-motion: reduce) {
    .ehp-status.is-open::before {
        animation: none;
    }
}


/* --- 1. Hero --------------------------------------------------------------- */

.ehp-hero-wrap {
    width: min(var(--max-width-wide, 1700px), calc(100% - 2 * var(--content-gap-x)));
    margin: 0 auto;
}

.ehp-hero {
    position: relative;
    display: grid;
    gap: 2rem;
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 2rem;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(90% 120% at 100% 0%, rgb(255 255 255 / 0.14) 0%, rgb(255 255 255 / 0) 55%),
        radial-gradient(70% 90% at 0% 100%, rgb(16 110 180 / 0.55) 0%, rgb(16 110 180 / 0) 60%),
        linear-gradient(135deg, var(--primary-color-900) 0%, #002450 100%);
}

.ehp-hero > * {
    position: relative;
    z-index: 1;
}

.ehp-hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.ehp-eyebrow {
    padding: 0.375rem 0.875rem;
    border: 1px solid rgb(255 255 255 / 0.45);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
}

.ehp-hero-title {
    font-size: clamp(2.25rem, 6vw, 4.25rem);
    line-height: 1.02;
    text-wrap: balance;
    color: #ffffff;
}

.ehp-hero-lead {
    max-width: 34rem;
    font-size: 1.0625rem;
    line-height: 1.55;
    color: rgb(255 255 255 / 0.88);
}

.ehp-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.ehp-hero-visual {
    position: relative;
    min-height: 20rem;
}

.ehp-hero-image {
    position: absolute;
    inset: 0;
    border-radius: var(--ehp-radius);
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 40px rgb(0 0 0 / 0.25);
}

.ehp-hero-chips {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ehp-hero-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 1rem;
    background-color: rgb(255 255 255 / 0.94);
    backdrop-filter: blur(6px);
    color: #1d1d1b;
    text-decoration: none;
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
    transition: transform 0.2s ease;
}

.ehp-hero-chip:hover {
    transform: translateY(-2px);
    color: #1d1d1b;
}

.ehp-hero-chip-icon {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    background-color: var(--ehp-apotheke-100);
    color: var(--ehp-apotheke);
}

.ehp-hero-chip--praxis .ehp-hero-chip-icon {
    background-color: var(--ehp-praxis-100);
    color: var(--ehp-praxis);
}

.ehp-hero-chip-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.ehp-hero-chip-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    line-height: 1.25;
}

.ehp-hero-chip-text strong {
    font-size: 0.9375rem;
}

.ehp-hero-badge {
    position: absolute;
    top: -0.75rem;
    right: -0.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 7.5rem;
    aspect-ratio: 1;
    border-radius: 999px;
    background-color: var(--ehp-munter);
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 0.75rem;
    line-height: 1.15;
    box-shadow: 0 12px 28px rgb(227 6 19 / 0.4);
    transform: rotate(-8deg);
    transition: transform 0.25s ease;
}

.ehp-hero-badge:hover {
    color: #ffffff;
    transform: rotate(0deg) scale(1.04);
}

.ehp-hero-badge img {
    width: 4.25rem;
    height: auto;
}

.ehp-hero-badge strong {
    display: block;
    font-size: 1.375rem;
}

@media (min-width: 640px) {
    .ehp-hero {
        padding: 2.5rem;
    }

    .ehp-hero-visual {
        min-height: 24rem;
    }

    .ehp-hero-chips {
        left: 1rem;
        right: auto;
        bottom: 1rem;
        max-width: 20rem;
    }

    .ehp-hero-badge {
        top: -1rem;
        right: -1rem;
        width: 8.5rem;
    }
}

@media (min-width: 1024px) {
    .ehp-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        align-items: stretch;
        gap: 3rem;
        padding: 3.5rem;
        min-height: 30rem;
    }

    .ehp-hero-text {
        justify-content: center;
    }

    .ehp-hero-visual {
        min-height: 26rem;
    }

    .ehp-hero-chips {
        left: -1.75rem;
        bottom: 1.5rem;
    }
}


/* --- 2. Drei Wege ---------------------------------------------------------- */

.ehp-ways {
    display: grid;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.ehp-way {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-grey-200);
    border-radius: var(--ehp-radius);
    background-color: #ffffff;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

/* Hover nur mit Schatten, ohne Anheben - die Kacheln bleiben auf einer Linie. */
.ehp-way:hover {
    box-shadow: 0 16px 36px rgb(0 52 108 / 0.12);
}

/* Alle drei Bilder gleich gross: feste Bildhöhe, darf im Flex-Layout nicht schrumpfen. */
.ehp-way-media {
    position: relative;
    flex: none;
    height: 14rem;
}

/* Das Bild ist beschnitten, die Nummer darf über die Bildkante ragen. */
.ehp-way-img {
    height: 100%;
    overflow: hidden;
}

.ehp-way-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ehp-way:hover .ehp-way-media img {
    transform: scale(1.04);
}

.ehp-way-number {
    position: absolute;
    left: 1rem;
    bottom: -1.375rem;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 3px solid #ffffff;
    border-radius: 999px;
    background-color: var(--primary-color-900);
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
}

.ehp-way:last-child .ehp-way-number {
    background-color: var(--ehp-munter);
}

.ehp-way-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 2rem 1.5rem 1.5rem;
}

.ehp-way-step {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.ehp-way-step svg {
    width: 1rem;
    height: 1rem;
}

.ehp-way-title {
    font-size: 1.375rem;
    line-height: 1.2;
}

.ehp-way-text {
    flex: 1;
    color: var(--color-grey-700, #5F5F5F);
}

.ehp-way-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    margin-top: 0.5rem;
    font-weight: 700;
    color: var(--primary-color-900);
    text-decoration: none;
}

.ehp-way-link svg {
    width: 1.125rem;
    height: 1.125rem;
    transition: transform 0.2s ease;
}

.ehp-way-link:hover svg {
    transform: translateX(3px);
}

.ehp-way:last-child .ehp-way-link,
.ehp-way:last-child .ehp-way-step {
    color: var(--ehp-munter);
}

@media (min-width: 768px) {
    .ehp-ways {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
    }
}

@media (min-width: 1280px) {
    .ehp-way-media {
        height: 16rem;
    }
}


/* --- 3. Munter (Aufbau wie HMO plus auf der Hausarztmodell-Seite) -------- */

.ehp-munter {
    display: grid;
    border: 1px solid var(--color-grey-200);
    border-radius: 2rem;
    background-color: #ffffff;
    overflow: hidden;
}

.ehp-munter-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.75rem;
    color: #ffffff;
    background:
        radial-gradient(110% 80% at 100% 0%, rgb(255 255 255 / 0.16) 0%, rgb(255 255 255 / 0) 60%),
        var(--ehp-munter);
    overflow: hidden;
}

/* Der Bogen aus dem Munter-Logo als grosses Hintergrundmotiv */
.ehp-munter-intro::after {
    content: "";
    position: absolute;
    right: -30%;
    bottom: -55%;
    width: 120%;
    aspect-ratio: 1;
    border-radius: 50%;
    border-top: 2.5rem solid rgb(255 255 255 / 0.07);
    transform: rotate(-18deg);
    pointer-events: none;
}

.ehp-munter-intro > * {
    position: relative;
    z-index: 1;
}

.ehp-munter-tag {
    padding: 0.375rem 0.875rem;
    border: 1px solid rgb(255 255 255 / 0.6);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
}

.ehp-munter-logo {
    width: 11rem;
    height: auto;
    margin: 0.5rem 0;
}

.ehp-munter-claim {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.ehp-munter-partner {
    font-size: 0.9375rem;
    font-weight: 700;
    color: rgb(255 255 255 / 0.85);
}

.ehp-munter-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.ehp-munter-note {
    font-size: 0.875rem;
    color: rgb(255 255 255 / 0.85);
}

.ehp-munter-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    padding: 1.25rem;
    list-style: none;
}

.ehp-munter-benefit {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1.25rem;
    background-color: var(--color-grey-50);
}

.ehp-munter-benefit-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background-color: #FCE1E2;
    color: var(--ehp-munter);
    flex: none;
}

.ehp-munter-benefit-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.ehp-munter-benefit-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
}

.ehp-munter-benefit-text {
    margin-top: 0.25rem;
    color: var(--color-grey-700, #5F5F5F);
}

.ehp-munter-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.ehp-code {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border: 1px dashed var(--ehp-munter);
    border-radius: 0.625rem;
    background-color: #ffffff;
    color: var(--ehp-munter-dark);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9375rem;
    font-weight: 700;
}

.ehp-code--copy {
    cursor: pointer;
}

.ehp-code--copy svg {
    width: 1rem;
    height: 1rem;
}

.ehp-code--copy.is-copied {
    border-style: solid;
    background-color: #FCE1E2;
}

@media (min-width: 640px) {
    .ehp-munter-intro {
        padding: 2.5rem;
    }

    .ehp-munter-benefits {
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .ehp-munter {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .ehp-munter-intro {
        padding: 3rem;
        justify-content: center;
    }

    .ehp-munter-benefits {
        justify-content: center;
        padding: 2.5rem;
    }
}


/* --- 4. Standorte ---------------------------------------------------------- */

.ehp-standorte-intro {
    max-width: 48rem;
    margin-bottom: 2rem;
    font-size: 1.0625rem;
}

.ehp-standorte {
    position: relative;
    display: grid;
    gap: 1.25rem;
}

.ehp-standorte-plus {
    display: none;
}

.ehp-standorte-note {
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--color-grey-700, #5F5F5F);
}

.ehp-location {
    --ehp-accent: var(--ehp-apotheke);
    --ehp-accent-100: var(--ehp-apotheke-100);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-grey-200);
    border-radius: var(--ehp-radius);
    background-color: #ffffff;
    overflow: hidden;
    scroll-margin-top: calc(var(--middle-header-height) + 1rem);
}

.ehp-location--praxis {
    --ehp-accent: var(--ehp-praxis);
    --ehp-accent-100: var(--ehp-praxis-100);
}

.ehp-location-media {
    position: relative;
    aspect-ratio: 16 / 8;
    overflow: hidden;
    background-color: var(--ehp-accent-100);
}

.ehp-location-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ehp-location-type {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    background-color: var(--ehp-accent);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 700;
}

.ehp-location-type svg {
    width: 1rem;
    height: 1rem;
}

.ehp-location-media .ehp-status {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
}

.ehp-location-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
}

.ehp-location-title {
    font-size: 1.5rem;
    line-height: 1.2;
}

.ehp-location-lead {
    margin-top: 0.25rem;
    color: var(--color-grey-700, #5F5F5F);
}

.ehp-location-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ehp-location-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.ehp-location-contact a {
    color: inherit;
    text-decoration: none;
}

.ehp-location-contact a:hover {
    text-decoration: underline;
}

.ehp-location-contact-icon {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    background-color: var(--ehp-accent-100);
    color: var(--ehp-accent);
    flex: none;
}

.ehp-location-contact-icon svg {
    width: 1rem;
    height: 1rem;
}

.ehp-hours {
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background-color: var(--color-grey-50);
}

.ehp-hours-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.ehp-hours-title svg {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--ehp-accent);
}

.ehp-hours-table {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin: 0;
}

.ehp-hours-row {
    display: grid;
    grid-template-columns: 9.5rem 1fr;
    gap: 0.75rem;
    padding: 0.375rem 0.5rem;
    margin: 0 -0.5rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
}

.ehp-hours-row dt {
    font-weight: 600;
}

.ehp-hours-row dd {
    margin: 0;
}

/* Heutiger Tag (von partner.js gesetzt) */
.ehp-hours-row.is-today {
    background-color: var(--ehp-accent-100);
}

.ehp-hours-row.is-today dt::after {
    content: " · heute";
    font-weight: 400;
    color: var(--ehp-accent);
}

.ehp-location-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: auto;
}

@media (max-width: 439px) {
    .ehp-hours-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (min-width: 1024px) {
    .ehp-standorte {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 2.5rem;
    }

    /* "+" zwischen den beiden Kacheln: Apotheke + Hausarztpraxis = Gesundheit aus einer Hand */
    .ehp-standorte-plus {
        position: absolute;
        top: 7rem;
        left: 50%;
        z-index: 2;
        display: grid;
        place-items: center;
        width: 3.5rem;
        height: 3.5rem;
        border: 4px solid #ffffff;
        border-radius: 999px;
        background-color: var(--primary-color-900);
        color: #ffffff;
        transform: translateX(-50%);
        box-shadow: 0 8px 20px rgb(0 0 0 / 0.18);
    }

    .ehp-standorte-plus svg {
        width: 1.5rem;
        height: 1.5rem;
        stroke-width: 2.4;
    }

    .ehp-location-body {
        padding: 2rem;
    }
}
