/* Haller Lend Apotheke – Child-Theme */

/* Testkopie-Hinweis (nur in der Testkopie ausgegeben) */
.hlc-testkopie-hinweis {
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 99999;
    padding: 6px 12px;
    border-radius: 999px;
    background: #b45309;
    color: #fff;
    font: 600 12px/1.2 system-ui, sans-serif;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

/* P12: längerer Verfügbarkeitstext auf den Produktkarten */
.shop-product-card .stock-badge.in-stock {
    white-space: normal;
    max-width: calc(100% - 1.5rem);
    line-height: 1.25;
}

/* ─── Produktseite (P9–P11) ─── */
.hlc-product-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
}
.hlc-product-meta-line .product-category { margin-bottom: 0; }
.hlc-product-type {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.hlc-product-type--medizinprodukt,
.hlc-product-type--biozid {
    background: #FEF3E7;
    color: #8A4B12;
}

.hlc-size-select { margin-bottom: 1rem; }
.hlc-size-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}
.hlc-size-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
    gap: 0.5rem;
}
.hlc-size-option {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.625rem 0.75rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--gray-700);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.hlc-size-option:hover { border-color: var(--primary-light); }
.hlc-size-option:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 2px; }
.hlc-size-option.is-current {
    border-color: var(--primary);
    background: var(--secondary);
    color: var(--primary-dark);
}
.hlc-size-name { font-weight: 600; font-size: 0.875rem; }
.hlc-size-price { font-size: 0.8125rem; color: var(--gray-500); }
.hlc-size-option.is-current .hlc-size-price { color: var(--primary); }

.hlc-notices {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    font-size: 0.8125rem;
    color: var(--gray-600);
    line-height: 1.5;
}
.hlc-notices-title { margin: 0 0 0.375rem; display: flex; align-items: center; gap: 0.375rem; }
.hlc-notices ul { list-style: disc; padding-left: 1.25rem; margin: 0; }
.hlc-notices li + li { margin-top: 0.25rem; }

/* ─── Shop: Sortierung und zwei Spalten am Handy (X7) ─── */
.hlc-filter-results {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}
.hlc-sort { display: inline-flex; align-items: center; gap: 0.5rem; }
.hlc-sort label { font-size: 0.875rem; color: var(--gray-600); }
.hlc-sort select {
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--gray-700);
    font: inherit;
    font-size: 0.875rem;
}
.hlc-sizes-hint { color: var(--primary); font-weight: 500; }

@media (max-width: 639px) {
    .shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
    .shop-product-card .stock-badge {
        top: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
        max-width: none;
        padding: 0.2rem 0.5rem;
        font-size: 0.5625rem;
        letter-spacing: 0.02em;
    }
    .shop-product-image img { padding: 0.75rem; }
    .shop-product-info { padding: 0.75rem 0.75rem 0.5rem; }
    .shop-product-category { font-size: 0.625rem; margin-bottom: 0.25rem; }
    .shop-product-name { font-size: 0.9375rem; }
    .shop-product-subtitle {
        font-size: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .shop-product-footer {
        padding: 0.75rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    .price-amount { font-size: 1rem; }
    .shop-product-footer .btn-add-cart {
        flex: 1 1 100%;
        justify-content: center;
        padding: 0.5rem;
    }
    .shop-product-footer .btn-add-cart .btn-text { display: inline; }
    .shop-product-footer .btn-outline[disabled] { flex: 1 1 100%; font-size: 0.75rem; padding: 0.5rem; }
    .hlc-filter-results { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════ Version 1.2 (X2–X12, N2) ═══════════════ */

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ─── X8: ruhigeres Laden ─── */
body.page-loading {
    opacity: 1;
}
.reveal,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: translateY(12px);
    transition: transform 0.45s var(--ease-out-expo);
}
.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    transform: none;
}
.delay-1 { transition-delay: 0.03s; }
.delay-2 { transition-delay: 0.06s; }
.delay-3 { transition-delay: 0.09s; }
.delay-4 { transition-delay: 0.12s; }
@media (max-width: 768px) {
    .reveal-left,
    .reveal-right {
        transform: translateY(12px);
    }
}
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-right {
        transform: none;
    }
}

/* X8: Notdienst-Hinweis am Handy einzeilig */
@media (max-width: 768px) {
    .notdienst-banner-inner {
        flex-direction: row;
        text-align: left;
        gap: 0.5rem;
    }
    .notdienst-banner-inner svg {
        flex-shrink: 0;
    }
}

/* X8: kurzer Cookie-Hinweis */
.hlc-more-toggle {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}
.hlc-more-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.cookie-consent-text .hlc-cookie-details {
    margin-top: 0.5rem;
}
.hlc-cookie-details[hidden] {
    display: none !important;
}
@media (max-width: 768px) {
    .cookie-consent-inner {
        gap: 0.75rem;
        padding: 0.875rem 1rem;
    }
    .cookie-consent-buttons {
        flex-direction: row;
        gap: 0.5rem;
    }
    .cookie-consent-buttons .btn {
        flex: 1 1 0;
        width: auto;
        padding: 0.5rem 0.75rem;
        white-space: normal;
        line-height: 1.25;
    }
}

/* ─── X3: Live-Öffnungsstatus ─── */
.hlc-open-status [data-hlc-status-text] {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}
.hlc-open-status [data-hlc-status-text]::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.top-bar .hlc-open-status.is-open [data-hlc-status-text]::before { background: #6EE7A0; }
.top-bar .hlc-open-status.is-closed [data-hlc-status-text]::before { background: #FCA5A5; }
.top-bar .hlc-open-status.is-notdienst [data-hlc-status-text]::before { background: #FCD34D; }
.top-bar .hlc-open-status.is-notdienst { font-weight: 600; }
.top-bar .hlc-open-status-link {
    margin-left: 0.25rem;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.hlc-quicklink .hlc-open-status,
.hlc-hours .hlc-open-status {
    font-weight: 600;
}
.hlc-quicklink .hlc-open-status.is-open,
.hlc-hours .hlc-open-status.is-open { color: #15803D; }
.hlc-quicklink .hlc-open-status.is-closed,
.hlc-hours .hlc-open-status.is-closed { color: #B91C1C; }
.hlc-quicklink .hlc-open-status.is-notdienst,
.hlc-hours .hlc-open-status.is-notdienst { color: #B45309; }

/* ─── X6: Suche ─── */
.hlc-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: var(--radius-full);
    background: none;
    color: var(--gray-700);
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}
.hlc-search-toggle:hover,
.hlc-search-toggle[aria-expanded="true"] {
    background: var(--secondary);
    color: var(--primary);
}
.hlc-search-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.hlc-search-panel {
    border-top: 1px solid var(--gray-100);
    padding: 0.875rem 0 1rem;
    background: rgba(255, 255, 255, 0.98);
}
.hlc-search-panel[hidden] {
    display: none;
}
.hlc-search-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
}
.hlc-search-form input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.6875rem 1.125rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--gray-800);
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.hlc-search-form input[type="search"]::placeholder {
    color: var(--gray-400);
}
.hlc-search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 107, 53, 0.15);
}
.hlc-search-form .btn {
    flex-shrink: 0;
    padding: 0.6875rem 1.25rem;
}
.hlc-mobile-search {
    padding: 0.25rem 0 0.75rem;
}
@media (max-width: 479px) {
    .hlc-search-form .btn span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }
    .hlc-search-form .btn {
        padding: 0.6875rem 0.875rem;
    }
}
@media (min-width: 1024px) and (max-width: 1279px) {
    .nav {
        gap: 1.25rem;
    }
    .header-cta {
        gap: 0.5rem;
    }
    .header-cta .btn {
        padding: 0.625rem 1.125rem;
    }
}

/* Suchergebnisse */
.hlc-search-page .section-header {
    margin-bottom: 1.5rem;
}
.hlc-search-page-form {
    margin: 0 auto 2.5rem;
    max-width: 40rem;
}
.hlc-search-empty {
    max-width: 40rem;
    margin: 0 auto 2rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-xl);
    background: var(--secondary);
    color: var(--gray-700);
}
.hlc-search-empty p + p {
    margin-top: 0.5rem;
}
.hlc-search-group {
    max-width: 56rem;
    margin: 0 auto 2.5rem;
}
.hlc-search-group-title {
    font-size: 1.25rem;
    color: var(--gray-800);
    margin-bottom: 0.875rem;
}
.hlc-search-group-title span {
    color: var(--gray-400);
    font-weight: 500;
}
.hlc-search-results {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.625rem;
}
.hlc-search-result a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.125rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.hlc-search-result a:hover,
.hlc-search-result a:focus-visible {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}
.hlc-search-thumb {
    flex: 0 0 3.5rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}
.hlc-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.hlc-search-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}
.hlc-search-type {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
}
.hlc-search-title {
    font-weight: 600;
    color: var(--gray-800);
}
.hlc-search-excerpt {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.45;
}
.hlc-search-price {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

/* ─── X4: Menü „Produkte“ mit zwei Gruppen ─── */
.dropdown-menu.mega-menu.hlc-mega-groups {
    width: min(720px, calc(100vw - 2rem));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    left: -1rem;
    transform: translateY(10px);
}
.nav-item-dropdown:hover .dropdown-menu.mega-menu.hlc-mega-groups,
.nav-item-dropdown:focus-within .dropdown-menu.mega-menu.hlc-mega-groups {
    transform: translateY(0);
}
.hlc-mega-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-100);
    font-weight: 700;
    color: var(--gray-800);
}
.hlc-mega-title span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}
.hlc-mega-title:hover span {
    text-decoration: underline;
}
.hlc-mega-groups .mega-menu-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.375rem;
}
.hlc-mega-groups .mega-menu-item {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 0.625rem;
    padding: 0.4375rem 0.625rem;
}
.hlc-mega-groups .mega-menu-icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}
.hlc-mega-groups .mega-menu-icon svg {
    width: 18px;
    height: 18px;
}
.hlc-mega-groups .mega-menu-text {
    font-size: 0.8125rem;
    line-height: 1.3;
}

/* ─── X2: Schnellzugriffe ─── */
.hlc-quicklinks {
    position: relative;
    z-index: 3;
    padding: 1.25rem 0 0.5rem;
    background: var(--white);
}
.hlc-quicklinks-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
@media (min-width: 1024px) {
    .hlc-quicklinks-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }
}
.hlc-quicklink {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    height: 100%;
    padding: 1rem 1.125rem;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
    color: inherit;
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s var(--ease-out-expo);
}
.hlc-quicklink:hover,
.hlc-quicklink:focus-visible {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.hlc-quicklink-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--primary);
}
.hlc-quicklink-body {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}
.hlc-quicklink-title {
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.3;
}
.hlc-quicklink-text {
    font-size: 0.8125rem;
    color: var(--gray-500);
    line-height: 1.35;
}
@media (max-width: 639px) {
    .hlc-quicklink {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.875rem;
    }
    .hlc-quicklink-icon {
        flex-basis: 2.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    .hlc-quicklink-title {
        font-size: 0.9375rem;
    }
}

/* ─── X5 / N2: Neuigkeiten mit Bild ─── */
.hlc-news-card-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--secondary);
    background: color-mix(in srgb, var(--hlc-news-color, #1B6B35) 12%, #ffffff);
}
.hlc-news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}
.hlc-news-card:hover .hlc-news-card-image img {
    transform: scale(1.04);
}
.hlc-news-card-image .news-icon {
    margin: 0;
}
.hlc-news-card .news-title a {
    color: inherit;
}
.hlc-season-chip {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.hlc-news-more {
    margin-top: 2.5rem;
    text-align: center;
}

/* Aktuelles-Übersicht */
.hlc-news-group .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    padding: 1.5rem 0 3rem;
}
.hlc-season-title {
    font-size: 1.5rem;
    color: var(--gray-800);
}
.hlc-blog-card-header.has-image {
    padding: 0;
    height: auto;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}
.hlc-blog-card-header.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}
.hlc-blog-card:hover .hlc-blog-card-header.has-image img {
    transform: scale(1.04);
}

/* ─── X5 / E4: Eigenprodukte mit Foto und Preis ─── */
.hlc-product-card-image {
    aspect-ratio: 1 / 1;
    margin: -0.5rem -0.5rem 1rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
}
.hlc-product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s var(--ease-out-expo);
}
.hlc-product-card:hover .hlc-product-card-image img {
    transform: scale(1.03);
}
.hlc-products-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* ─── X5 / X10: Kontakt & Anfahrt ─── */
.hlc-contact .section-header {
    margin-bottom: 2.5rem;
}
.hlc-contact-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 72rem;
    margin: 0 auto;
}
@media (min-width: 1024px) {
    .hlc-contact-grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        align-items: start;
    }
}
.hlc-contact-card,
.hlc-anfahrt {
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-2xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
}
.hlc-contact-card {
    padding: 1.5rem;
}
.hlc-contact-list {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    gap: 0.875rem;
}
.hlc-contact-list li {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: var(--gray-700);
    line-height: 1.45;
}
.hlc-contact-list a {
    color: var(--gray-800);
    font-weight: 600;
    word-break: break-word;
}
.hlc-contact-list a:hover {
    color: var(--primary);
}
.hlc-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--primary);
}
.hlc-hours {
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-100);
}
.hlc-hours-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
}
.hlc-hours-head h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.0625rem;
    color: var(--gray-800);
}
.hlc-hours-head h3 svg {
    color: var(--primary);
}
.hlc-hours-head .hlc-open-status {
    font-size: 0.875rem;
}
.hlc-hours-list {
    margin: 0;
}
.hlc-hours-list div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4375rem 0;
    border-bottom: 1px dashed var(--gray-200);
    font-size: 0.9375rem;
}
.hlc-hours-list dt {
    color: var(--gray-600);
}
.hlc-hours-list dd {
    margin: 0;
    font-weight: 600;
    color: var(--gray-800);
    text-align: right;
}
.hlc-hours-list dd.closed {
    color: var(--gray-400);
    font-weight: 500;
}
.hlc-hours-notdienst {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary);
}
.hlc-hours-notdienst:hover {
    text-decoration: underline;
}
.hlc-anfahrt {
    overflow: hidden;
}
.hlc-anfahrt-map {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--gray-100);
}
.hlc-anfahrt-map-link,
.hlc-anfahrt-map-link img {
    display: block;
    width: 100%;
    height: 100%;
}
.hlc-anfahrt-map-link img {
    object-fit: cover;
}
.hlc-anfahrt-map-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    color: var(--primary);
}
.hlc-anfahrt-map-fallback span {
    color: var(--gray-700);
}
.hlc-anfahrt-credit {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 0.125rem 0.375rem;
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.6875rem;
    color: var(--gray-600);
}
.hlc-anfahrt-credit a {
    color: inherit;
    text-decoration: underline;
}
.hlc-anfahrt-map .consent-iframe {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    border: 0;
}
.hlc-anfahrt-body {
    padding: 1.5rem;
}
.hlc-anfahrt-body h3 {
    font-size: 1.0625rem;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}
.hlc-anfahrt-facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}
.hlc-anfahrt-facts li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    line-height: 1.45;
}
.hlc-anfahrt-facts svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: var(--primary);
}
.hlc-anfahrt-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.25rem 0 0.75rem;
}
.hlc-anfahrt-note {
    font-size: 0.75rem;
    color: var(--gray-500);
    line-height: 1.5;
}
.hlc-anfahrt-note a {
    color: var(--primary);
    text-decoration: underline;
}

/* ─── X9: nächste Notdienste ─── */
.hlc-notdienst-upcoming {
    margin: 0 0 2.5rem;
    padding: 1.5rem;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
}
.hlc-notdienst-upcoming-title,
.hlc-notdienst-calendar-title {
    font-size: 1.25rem;
    color: var(--gray-800);
    margin-bottom: 1rem;
}
.hlc-notdienst-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.625rem;
}
@media (min-width: 640px) {
    .hlc-notdienst-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .hlc-notdienst-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.hlc-notdienst-list li {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--primary);
    border-radius: var(--radius);
    background: var(--gray-50);
}
.hlc-notdienst-list li.is-today {
    border-left-color: var(--accent);
    background: var(--secondary);
}
.hlc-nd-day {
    font-size: 0.8125rem;
    color: var(--gray-500);
}
.hlc-nd-date {
    font-weight: 700;
    color: var(--gray-800);
}
.hlc-nd-time {
    font-size: 0.8125rem;
    color: var(--gray-600);
}

/* ═══════════════ Version 1.3 ═══════════════ */

/* X2: Schnellzugriffe am Computer im ersten Bildschirm */
@media (min-width: 1024px) {
    body.home .hero {
        min-height: 0;
        padding: 1.5rem 0 3.75rem;
    }
    body.home .hero .scroll-indicator {
        display: none;
    }
    body.home .hero-badge { margin-bottom: 1rem; }
    body.home .hero-title { font-size: 3.25rem; margin-bottom: 1rem; }
    body.home .hero-description { margin-bottom: 1.5rem; }
    body.home .hero-buttons { margin-bottom: 1.75rem; }
    body.home .hero-card-img { aspect-ratio: 16 / 9; max-height: 300px; }
    body.home .hero-stat { padding: 0.75rem 1rem; }
    .hlc-quicklinks {
        margin-top: -2.75rem;
        padding-top: 0;
        background: transparent;
    }
}
@media (min-width: 1024px) and (max-width: 1279px) {
    body.home .hero-title { font-size: 2.75rem; }
    body.home .hero-description { font-size: 1rem; }
}

/* X4: Menü „Gesundheitsthemen“ kompakt */
.dropdown-menu.mega-menu.hlc-mega-compact {
    width: min(640px, calc(100vw - 2rem));
}
.hlc-mega-compact .mega-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.375rem;
}
.hlc-mega-compact .mega-menu-item {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 0.625rem;
    padding: 0.4375rem 0.625rem;
}
.hlc-mega-compact .mega-menu-icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}
.hlc-mega-compact .mega-menu-icon svg {
    width: 18px;
    height: 18px;
}
.hlc-mega-compact .mega-menu-text {
    font-size: 0.8125rem;
    line-height: 1.3;
}

/* X5: Artikelbilder am Handy flacher */
@media (max-width: 639px) {
    .hlc-news-card-image,
    .hlc-blog-card-header.has-image {
        aspect-ratio: 16 / 9;
    }
}

/* K4: Box „Wann zum Arzt?“ */
.hlc-arzt-box {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border: 1px solid #F5D0A9;
    border-left: 4px solid #D97706;
    border-radius: var(--radius-lg);
    background: #FFFAF3;
}
.hlc-arzt-box .hlc-arzt-title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    color: #92400E;
}
.hlc-arzt-box p {
    margin: 0 0 0.5rem;
}
.hlc-arzt-box ul {
    margin: 0 0 0.75rem;
    padding-left: 1.25rem;
}
.hlc-arzt-box li {
    margin-bottom: 0.25rem;
}
.hlc-arzt-box .hlc-arzt-notruf,
.hlc-arzt-box .hlc-arzt-tipp {
    font-size: 0.9375rem;
    color: var(--gray-600);
}
.hlc-arzt-box .hlc-arzt-notruf a {
    font-weight: 700;
    color: #B91C1C;
    white-space: nowrap;
}

/* X4: Block „Darum zu uns“ auf der Leistungen-Seite */
.hlc-vorteile-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}
@media (min-width: 768px) {
    .hlc-vorteile-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.hlc-vorteile-list a {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    height: 100%;
    padding: 1rem 1.125rem;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    background: var(--white);
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.hlc-vorteile-list a:hover,
.hlc-vorteile-list a:focus-visible {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}
.hlc-vorteile-list strong {
    display: block;
    color: var(--gray-800);
}
.hlc-vorteile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--primary);
}
.hlc-vorteile-text {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.45;
}

/* R1: Vorbestellung mit Rezept-Upload */
.hlc-rezept {
    margin: 1.5rem 0 2rem;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    background: var(--gray-50);
}
.hlc-rezept-msg {
    margin-bottom: 1rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg);
    line-height: 1.5;
}
.hlc-rezept-msg.is-ok {
    background: var(--secondary);
    border: 1px solid #B7DCC2;
    color: var(--primary-dark);
}
.hlc-rezept-msg.is-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}
.hlc-rezept-form {
    display: grid;
    gap: 1rem;
}
.hlc-rezept-row {
    display: grid;
    gap: 1rem;
}
@media (min-width: 640px) {
    .hlc-rezept-row { grid-template-columns: 1fr 1fr; }
}
.hlc-rezept-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin: 0;
}
.hlc-rezept-field label {
    font-weight: 600;
    color: var(--gray-800);
}
.hlc-rezept-optional {
    font-weight: 400;
    color: var(--gray-500);
}
.hlc-rezept-field input[type="text"],
.hlc-rezept-field input[type="tel"],
.hlc-rezept-field input[type="email"],
.hlc-rezept-field textarea {
    width: 100%;
    padding: 0.6875rem 0.875rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    font: inherit;
    font-size: 1rem;
    color: var(--gray-800);
}
.hlc-rezept-field input[type="file"] {
    width: 100%;
    padding: 0.625rem;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    background: var(--white);
    font: inherit;
}
.hlc-rezept-field input:focus,
.hlc-rezept-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 107, 53, 0.15);
}
.hlc-rezept-hint {
    font-size: 0.8125rem;
    color: var(--gray-500);
    line-height: 1.45;
}
.hlc-rezept-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}
.hlc-rezept-consent input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 0.125rem;
    accent-color: var(--primary);
}
.hlc-rezept-consent a {
    color: var(--primary);
    text-decoration: underline;
}
.hlc-rezept-submit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin: 0;
}
.hlc-rezept-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ─── 1.3.2 (01.11.2026): angenommene Vorschläge ─── */

/* v-handy-kacheln: Schnellzugriffe am Handy direkt unter dem Begrüßungstext */
.hlc-quicklinks--hero { display: none; }
@media (max-width: 1023px) {
    .hlc-quicklinks--page { display: none; }
    .hlc-quicklinks--hero {
        display: block;
        padding: 0;
        margin: 0 0 1.75rem;
        background: transparent;
    }
    .hlc-quicklinks--hero > .container {
        padding: 0;
        max-width: none;
        width: auto;
    }
    body.home .hero .hero-description { margin-bottom: 1.25rem; }
}

/* v-artikel-lesbarkeit: Absätze, Aufzählungen, erkennbare Links in Artikeln */
.article-section > p,
.article-section > ul,
.article-section > ol { margin: 0 0 1.25rem; }
.article-section > p:last-child,
.article-section > ul:last-child,
.article-section > ol:last-child { margin-bottom: 0; }
.article-section ul.wp-block-list { list-style: disc; padding-left: 1.4rem; }
.article-section ol.wp-block-list { list-style: decimal; padding-left: 1.4rem; }
.article-section ul.wp-block-list li,
.article-section ol.wp-block-list li { margin-bottom: 0.45rem; padding-left: 0.2rem; }
.article-section ul.wp-block-list li::marker { color: var(--primary); }
.article-section > h3 { margin: 1.75rem 0 0.75rem; }
.article-section p a,
.article-section li a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.article-section p a:hover,
.article-section li a:hover {
    color: var(--primary-dark);
    text-decoration-thickness: 2px;
}

/* ─── 1.3.4 (01.11.2026): I3 Download-Liste (Checklisten) ─── */
.hlc-downloads { list-style: none; padding: 0; margin: 0.5rem 0 1.5rem; }
.hlc-downloads li { position: relative; margin: 0 0 0.6rem; padding-left: 1.7rem; }
.hlc-downloads li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 1.1rem;
    height: 1.25rem;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B6B35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M12 12v6m-3-3 3 3 3-3'/%3E%3C/svg%3E");
}
.hlc-downloads a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.hlc-downloads a:hover { color: var(--primary-dark); text-decoration-thickness: 2px; }

/* ─── 1.3.6: Shop – Umschalter Eigenmarke/Kosmetik (Punkt 6) und Suche (Punkt 5) ─── */
.hlc-brand-tabs {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.25rem;
    margin: 0.25rem 0 1.25rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    background: var(--white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.hlc-brand-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.5rem 1.375rem;
    border-radius: var(--radius-full);
    color: var(--gray-700);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}
.hlc-brand-tab:hover { background: var(--secondary); color: var(--primary); }
.hlc-brand-tab.is-active,
.hlc-brand-tab.is-active:hover { background: var(--primary); color: var(--white); }
.hlc-brand-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.hlc-brand-tab svg { flex-shrink: 0; }
.hlc-shop-search { margin: 0 auto 1rem; }
.hlc-search-reset {
    margin-left: 0.5rem;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.no-products .btn + .btn { margin-left: 0.5rem; }

@media (max-width: 639px) {
    .shop-hero { padding: 2rem 0; }
    .hlc-brand-tabs { display: flex; width: 100%; margin-bottom: 1rem; }
    .hlc-brand-tab { flex: 1 1 0; padding: 0.5rem 0.75rem; }
    .no-products .btn { margin: 0.25rem; }
    .no-products .btn + .btn { margin-left: 0.25rem; }
}
#shop-suche { scroll-margin-top: 6rem; }
/* Trefferseite: Kopfbereich kompakt, Treffer schneller sichtbar */
.shop-hero.hlc-shop-hero-search { padding: 2rem 0 1.25rem; }
.hlc-shop-hero-search .shop-hero-description,
.hlc-shop-hero-search .shop-hero-badges { display: none; }
.hlc-shop-hero-search .hlc-brand-tabs { margin-bottom: 0; }

/* ─── 1.3.7: Handy – lange Wörter in Überschriften umbrechen statt über den Rand (Ideen-Liste 1) ─── */
h1, h2, h3, .product-title, .shop-product-name { overflow-wrap: break-word; }
@media (max-width: 639px) {
    h1, h2, .product-title, .shop-product-name { -webkit-hyphens: auto; hyphens: auto; }
    .themen-hero h1 { font-size: clamp(1.5rem, 8.4vw, 2.25rem); } /* „Gesundheitsthemen“ passt in eine Zeile */
}

/* ─── 1.3.7: Handy – Verfügbarkeits-Badge über dem Bild statt darauf (Ideen-Liste 2) ─── */
@media (max-width: 639px) {
    .shop-product-card .stock-badge,
    .shop-product-card .stock-badge.in-stock {
        position: static;
        align-self: stretch;
        justify-content: center;
        text-align: center;
        margin: 0.5rem 0.5rem 0;
        max-width: none;
        font-size: 0.625rem;
    }
}

/* ─── 1.3.7: Unterkategorien im Shop-Filter (z. B. Gesichtspflege) ─── */
.hlc-subcats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 60rem;
    margin: 1rem auto 0;
}
.hlc-subcat {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.375rem 0.875rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.hlc-subcat:hover { border-color: var(--primary); color: var(--primary); }
.hlc-subcat.is-active { border-color: var(--primary); background: var(--secondary); color: var(--primary); font-weight: 600; }
.hlc-subcat:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 639px) {
    .hlc-subcats {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        margin: 0.75rem -1rem 0;
        padding: 0 1rem 0.25rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .hlc-subcats::-webkit-scrollbar { display: none; }
    .hlc-subcat { flex: 0 0 auto; white-space: nowrap; }
}

/* ─── 1.3.8: Sichtbarkeit – Kasten „So finden Sie uns“ (Leistungsseiten) ─── */
.hlc-standort-box {
    margin: 2.5rem 0 0;
    padding: 1.25rem 1.5rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 16px;
    background: var(--secondary);
}
.hlc-standort-box .hlc-standort-title { margin: 0 0 0.5rem; font-size: 1.25rem; line-height: 1.3; }
.hlc-standort-box p { margin: 0 0 0.5rem; }
.hlc-standort-liste { margin: 0.25rem 0 0.75rem; padding-left: 1.25rem; }
.hlc-standort-liste li { margin: 0.2rem 0; }
.hlc-standort-link { margin-bottom: 0 !important; }
.hlc-standort-link a { font-weight: 600; }

/* ─── 1.3.8: Kontaktseite (/kontakt/) ─── */
.hlc-kontakt { display: grid; gap: 1.5rem; margin: 1.5rem 0 2rem; }
@media (min-width: 900px) { .hlc-kontakt { grid-template-columns: 1fr 1fr; align-items: start; } }
.hlc-kontakt-daten p { margin: 0 0 0.75rem; }
.hlc-kontakt-route { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hlc-kontakt-karte { margin: 0; }
.hlc-kontakt-karte img { display: block; width: 100%; height: auto; border-radius: 16px; }
.hlc-kontakt-karte figcaption { margin-top: 0.25rem; font-size: 0.75rem; color: var(--gray-500, #6b7280); }

/* ─── 1.3.8: Häufige Fragen (aufklappbar) ─── */
.hlc-faq { margin: 1rem 0 2rem; }
.hlc-faq-item { margin: 0 0 0.75rem; border: 1.5px solid var(--gray-200); border-radius: 12px; background: var(--white); }
.hlc-faq-item > summary {
    position: relative;
    padding: 0.9rem 2.75rem 0.9rem 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}
.hlc-faq-item > summary::-webkit-details-marker { display: none; }
.hlc-faq-item > summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 1.1rem;
    transform: translateY(-50%);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--primary);
}
.hlc-faq-item[open] > summary::after { content: "–"; }
.hlc-faq-item > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 12px; }
.hlc-faq-item .hlc-faq-a { padding: 0 1.1rem 1rem; }
.hlc-faq-item .hlc-faq-a p { margin: 0 0 0.5rem; }
.hlc-faq-item .hlc-faq-a p:last-child { margin-bottom: 0; }
