/* ═══════════════════════════════════════════════════════════════
   HC PRICING TABLES  ·  Standalone stylesheet
   Alle Klassen mit .hcp- präfixiert (kein Konflikt mit Theme)
   ═══════════════════════════════════════════════════════════════ */

/* ── Section & Container ───────────────────────────────────────── */
.hcp-section {
    padding: 0.25rem 1.5rem 4rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: transparent;
}
.hcp-section.wp-block-group,
.hcp-container.wp-block-group,
.hcp-header.wp-block-group {
    padding: 0;
}
.hcp-container {
    max-width: 1060px;
    margin: 0 auto;
}

/* ── Header ─────────────────────────────────────────────────────── */
.hcp-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
h2.hcp-title {
    font-size: clamp(1.875rem, 3vw, 2.6rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #111827 !important;
    margin-bottom: 0.8rem !important;
}
p.hcp-subtitle {
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.65;
    color: #4b5563;
}

/* ── Grid (overrides wp-block-columns flexbox) ──────────────────── */
.hcp-grid.wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    align-items: stretch;
}
.hcp-grid .wp-block-column {
    flex-basis: unset !important;
    max-width: unset !important;
    width: unset !important;
    margin: 0 !important;
}

/* ── Base Card ───────────────────────────────────────────────────── */
.hcp-card.wp-block-column {
    border-radius: 18px;
    padding: 2rem 1.75rem 1.75rem !important;
    display: flex !important;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e4e9f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hcp-card.wp-block-column:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* ── Plan name (H3) ──────────────────────────────────────────────── */
h3.hcp-plan-name {
    font-size: 1rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    color: #007aae !important;
    margin-bottom: 1.5rem !important;
    margin-top: 0 !important;
}

/* ── Price block (group + H4) ────────────────────────────────────── */
.hcp-price-block {
    border-bottom: 1px solid #e4e9f0;
    padding-bottom: 2rem !important;
    margin-bottom: 2rem;
    text-align: center;
}
@media (max-width: 620px) {
    .hcp-price-block {
        padding-bottom: 1.25rem !important;
        margin-bottom: 1.25rem;
    }
}
h4.hcp-price-value {
    font-size: clamp(1.9rem, 2.8vw, 2.4rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    color: #111827 !important;
    margin: 0 !important;
    line-height: 1;
    text-align: center;
}
h4.hcp-price-value sup {
    font-size: 0.45em;
    font-weight: 700;
    vertical-align: super;
    letter-spacing: 0;
}

/* ── Features list ───────────────────────────────────────────────── */
ul.hcp-features.wp-block-list {
    list-style: none !important;
    margin: 0 0 1.5rem 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex-grow: 1;
}
ul.hcp-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    line-height: 1.35;
    font-weight: 500;
    color: #111827;
    padding-left: 0 !important;
}
/* Checkmark icon via Font Awesome ::before – no extra HTML needed */
ul.hcp-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.5rem;
    width: 18px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 122, 174, 0.1);
    color: #007aae;
    flex-shrink: 0;
    margin-top: 0.14rem;
    box-sizing: content-box;
}
/* Sublabel – sits below feature text */
ul.hcp-features li small {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #007aae;
    display: block;
    margin-top: 0.2rem;
    white-space: nowrap;
}

/* ── Duration block ──────────────────────────────────────────────── */
.hcp-duration {
    border-top: 1px solid #e4e9f0;
    padding-top: 1.75rem !important;
    margin-top: auto;
    margin-bottom: 1.25rem;
    text-align: center;
}
p.hcp-duration-label {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 0.25rem 0 !important;
    text-align: center;
}
h5.hcp-duration-value {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em;
    color: #111827 !important;
    margin: 0 !important;
    text-align: center;
}

/* ── Labor Details button ────────────────────────────────────────── */
.hcp-labor-section {
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding-top: 1rem;
    margin-bottom: 1.25rem;
}
.hcp-labor-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: underline;
    text-underline-offset: 3px;
    color: #007aae;
    opacity: 0.65;
    padding: 0;
    transition: opacity 0.2s ease;
}
.hcp-labor-btn:hover {
    opacity: 1;
}

/* ── CTA / Buchen button ─────────────────────────────────────────── */
.hcp-cta {
    display: block;
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: none;
    font-family: inherit;
}
.hcp-cta-outline {
    color: #007aae;
    border-color: #007aae;
}
.hcp-cta-outline:hover {
    background: #e0f4f8;
}
.hcp-cta-solid {
    background: #007aae;
    color: #ffffff;
    border-color: #007aae;
    box-shadow: 0 4px 16px rgba(0, 122, 174, 0.3);
}
.hcp-cta-solid:hover {
    background: #005d85;
    border-color: #005d85;
    box-shadow: 0 8px 32px rgba(0, 122, 174, 0.42);
    transform: translateY(-1px);
}

/* ── Footnotes ───────────────────────────────────────────────────── */
p.hcp-footnotes {
    text-align: center;
    font-size: 0.8rem !important;
    margin-top: 2.5rem;
    line-height: 1.8;
    color: #6b7280;
}

/* ── Featured card (Classic) ─────────────────────────────────────── */
.hcp-card.hcp-featured.wp-block-column {
    border-color: rgba(0, 122, 174, 0.35);
    box-shadow: 0 8px 40px rgba(0, 122, 174, 0.18);
    transform: translateY(-8px);
}
.hcp-card.hcp-featured.wp-block-column:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 56px rgba(0, 122, 174, 0.26);
}

/* ── Modal ───────────────────────────────────────────────────────── */
.hcp-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 13, 26, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.hcp-modal-overlay.hcp-modal-open {
    display: flex;
}
.hcp-modal {
    background: #ffffff;
    border-radius: 18px;
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    animation: hcp-modal-in 0.22s ease;
}
@keyframes hcp-modal-in {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hcp-modal-header {
    padding: 1.75rem 2rem 1.25rem;
    border-bottom: 1px solid #e4e9f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    background: #fff;
    border-radius: 18px 18px 0 0;
    z-index: 1;
}
.hcp-modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #004f70;
    letter-spacing: -0.02em;
}
.hcp-modal-close {
    background: #f7f9fc;
    border: 1px solid #e4e9f0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4b5563;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.hcp-modal-close:hover {
    background: #e0f4f8;
    color: #007aae;
    border-color: #007aae;
}
.hcp-modal-body {
    padding: 1.75rem 2rem 2rem;
}
.hcp-modal-body p {
    font-size: 0.925rem;
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 1rem;
}
.hcp-modal-body p:last-child {
    margin-bottom: 0;
}
.hcp-modal-body h4 {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #007aae;
    margin: 1.5rem 0 0.65rem;
}
.hcp-modal-body h4:first-child {
    margin-top: 0;
}
.hcp-modal-labor-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.hcp-modal-labor-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.875rem;
    color: #111827;
    line-height: 1.5;
}
.hcp-modal-labor-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #007aae;
    flex-shrink: 0;
    margin-top: 0.47rem;
}

/* ── Scroll dots (mobile) ────────────────────────────────────────── */
.hcp-scroll-dots {
    display: none; /* hidden on desktop, shown via media query below */
    justify-content: center;
    gap: 0.45rem;
    margin: 0.75rem 0 0;
}
.hcp-scroll-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c5d5e8;
    transition: background 0.25s ease, transform 0.25s ease;
}
.hcp-scroll-dot.active {
    background: #007aae;
    transform: scale(1.3);
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hcp-grid.wp-block-columns {
        grid-template-columns: 1fr 1fr !important;
    }
    .hcp-card.hcp-featured.wp-block-column {
        transform: none !important;
        grid-column: 1 / -1;
        max-width: 460px;
        margin: 0 auto !important;
        width: 100%;
    }
    .hcp-card.hcp-featured.wp-block-column:hover {
        transform: translateY(-4px) !important;
    }
}
@media (max-width: 620px) {
    .hcp-section {
        padding: 1rem 0 3rem;
        overflow: visible !important;
    }
    .hcp-container.wp-block-group {
        padding: 0;
        overflow: visible !important;
    }
    .hcp-header,
    .hcp-header.wp-block-group {
        padding: 0 1.25rem;
    }
    .hcp-grid.wp-block-columns {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem !important;
        padding: 0.5rem 1.25rem 1.25rem !important;
        scroll-padding-left: 1.25rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .hcp-grid.wp-block-columns::-webkit-scrollbar {
        display: none;
    }
    .hcp-card.wp-block-column {
        scroll-snap-align: start;
        flex: 0 0 85vw !important;
        max-width: 360px !important;
        padding: 1.5rem 1.25rem !important;
    }
    .hcp-card.hcp-featured.wp-block-column {
        grid-column: auto;
        max-width: 360px !important;
        transform: none !important;
    }
    .hcp-card.wp-block-column,
    .hcp-card.hcp-featured.wp-block-column {
        box-shadow: none !important;
    }
    .hcp-card.wp-block-column:hover,
    .hcp-card.hcp-featured.wp-block-column:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    p.hcp-footnotes {
        padding: 0 1.25rem;
    }
    .hcp-modal-header,
    .hcp-modal-body {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .hcp-scroll-dots {
        display: flex;
    }
}
