/* ==========================================================================
   PflegeZentrale / PflegeVibe – MEDIFOX DAN Typography & UI Craftsmanship (1:1)
   Source Reference: https://www.medifoxdan.de/ & /software-ambulante-pflege
   Typeface: Self-hosted Variable Font "Plus Jakarta Sans" (Normal + Italic)
   Inks: Warm Charcoal #3c3c3b (primary) · Calm Muted #6e6d6c (secondary)
   Weights: 400 (Regular), 500 (Medium), 600 (SemiBold), 700 (Bold – Headlines/Cards)
   ========================================================================== */

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('/fonts/PlusJakartaSans-VariableFont_wght.woff2') format('woff2'),
         url('/fonts/PlusJakartaSans-VariableFont_wght.ttf') format('truetype');
    font-weight: 1 999;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('/fonts/PlusJakartaSans-Italic-VariableFont_wght.woff2') format('woff2'),
         url('/fonts/PlusJakartaSans-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 1 999;
    font-style: italic;
    font-display: swap;
}

:root,
:host {
    /* Primary MEDIFOX DAN Font Stack */
    --font-plus-jakarta-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-base: var(--font-plus-jakarta-sans);
    --font-family-heading: var(--font-plus-jakarta-sans);
    --bs-font-sans-serif: var(--font-plus-jakarta-sans);
    --bs-body-font-family: var(--font-plus-jakarta-sans);

    /* MEDIFOX DAN Exact Warm Neutral Ink & Surface Palette (app-gX6bIo8q.css) */
    --mfd-neutral-50: #f5f5f6;
    --mfd-neutral-100: #e6e6e7;
    --mfd-neutral-200: #d1d1d0;
    --mfd-neutral-300: #b1b0af;
    --mfd-neutral-400: #898887;
    --mfd-neutral-500: #6e6d6c;
    --mfd-neutral-600: #5e5d5c;
    --mfd-neutral-700: #50504e;
    --mfd-neutral-900: #3c3c3b;
    --mfd-neutral-950: #262626;

    --mfd-content-primary: var(--mfd-neutral-900);         /* #3c3c3b warm charcoal */
    --mfd-content-primary-strong: var(--mfd-neutral-950);  /* #262626 hover/pressed */
    --mfd-content-secondary: var(--mfd-neutral-500);       /* #6e6d6c calm secondary ink */
    --mfd-surface-primary: #ffffff;
    --mfd-surface-secondary: var(--mfd-neutral-50);        /* #f5f5f6 */
    --mfd-stroke-subtle: var(--mfd-neutral-100);           /* #e6e6e7 */

    /* MEDIFOX DAN Product Accent (MD Ambulant Blue) */
    --mfd-product-subtle: #f0f7ff;
    --mfd-product-stroke: #e0effe;
    --mfd-product-primary: #0071ce;
    --mfd-product-strong: #002243;

    /* Harmonize Legacy Tokens */
    --beyond-text: var(--mfd-content-primary);
    --beyond-text-body: var(--mfd-content-primary);
    --beyond-muted: var(--mfd-content-secondary);
    --bs-body-color: var(--mfd-content-primary);
    --bs-heading-color: var(--mfd-content-primary);
    --bs-secondary-color: var(--mfd-content-secondary);

    /* MEDIFOX DAN Strict Weight Scale (never 800/900) */
    --mfd-weight-regular: 400;
    --mfd-weight-medium: 500;
    --mfd-weight-semibold: 600;
    --mfd-weight-bold: 700;

    /* MEDIFOX DAN Exact Line-Height Ratios */
    --mfd-lh-h1: 1.15;
    --mfd-lh-heading: 1.2;
    --mfd-lh-lead: 1.44;
    --mfd-lh-small: 1.42;
    --mfd-lh-body: 1.5;

    /* MEDIFOX DAN Responsive Type Scale */
    --mfd-headline-1: 34px;
    --mfd-headline-2: 28px;
    --mfd-headline-3: 24px;
    --mfd-headline-4: 22px;
    --mfd-headline-5: 20px;
    --mfd-headline-6: 18px;

    --mfd-body-xs: 12px;
    --mfd-body-sm: 14px;
    --mfd-body-md: 16px;
    --mfd-body-lg: 18px;

    --mfd-ui-xs: 12px;
    --mfd-ui-sm: 14px;
    --mfd-ui-md: 16px;
    --mfd-ui-lg: 18px;

    --mfd-tracking-wide: 0.025em;
}

@media (min-width: 768px) {
    :root {
        --mfd-headline-1: 44px;
        --mfd-headline-2: 36px;
        --mfd-headline-3: 28px;
        --mfd-headline-4: 26px;
        --mfd-headline-5: 22px;
        --mfd-headline-6: 20px;
        --mfd-body-lg: 20px;
        --mfd-ui-lg: 20px;
    }
}

@media (min-width: 1024px) {
    :root {
        --mfd-headline-1: 52px;
        --mfd-headline-2: 40px;
        --mfd-headline-3: 34px;
        --mfd-headline-4: 28px;
        --mfd-headline-5: 24px;
        --mfd-headline-6: 20px;
        --mfd-body-lg: 20px;
    }
}

@media (min-width: 1366px) {
    :root {
        --mfd-headline-1: 56px;
        --mfd-headline-2: 44px;
        --mfd-headline-3: 36px;
        --mfd-headline-4: 32px;
        --mfd-headline-5: 24px;
        --mfd-headline-6: 20px;
        --mfd-body-lg: 20px;
    }
}

/* ==========================================================================
   1. GLOBAL DOCUMENT, OPENTYPE & TABULAR NUMERALS FOUNDATION
   ========================================================================== */
html {
    font-size: 16px !important; /* Overrides legacy site.css 14px mobile shrink */
    font-family: var(--font-plus-jakarta-sans);
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    font-variant-numeric: lining-nums proportional-nums;
}

html body,
html body .bc-unified-dashboard,
html body button,
html body input,
html body select,
html body textarea,
html body optgroup {
    font-family: var(--font-plus-jakarta-sans) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html body {
    font-size: var(--mfd-body-md);
    font-weight: var(--mfd-weight-regular);
    line-height: var(--mfd-lh-body);
    letter-spacing: normal;
    color: var(--mfd-content-primary);
}

html body .text-dark {
    color: var(--mfd-content-primary) !important;
}

html body .text-muted,
html body .text-secondary {
    color: var(--mfd-content-secondary) !important;
}

/* Preserve Bootstrap Icons & Monospace Code Blocks */
html body i.bi,
html body [class^="bi-"],
html body [class*=" bi-"] {
    font-family: 'bootstrap-icons' !important;
}

html body code,
html body kbd,
html body samp,
html body pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
}

/* OpenType Tabular Lining Numerals for Prices, Salaries, Ratings, KPIs, Counts & Tables */
html body .pz-tabular,
html body .bc-plan-price,
html body .bc-plan-price .amount,
html body .bc-credit-amount,
html body .bc-credit-price,
html body .bc-price-tag,
html body .job-salary,
html body .pz-salary-pill,
html body .pz-job-spec-val,
html body .beyond-stat-value,
html body .pz-dash-chip-value,
html body .pz-dash-kpi-value,
html body .pz-jobs-kpi-value,
html body .circular-progress-value,
html body .metric-value,
html body .metric-val,
html body .stat-num,
html body .mdk-val,
html body .pz-rating-count,
html body .pz-city-tab-count,
html body .pz-filter-count-pill,
html body .pz-fl-check-count,
html body .bc-count-badge,
html body .ms-hero-kicker-count,
html body .ms-step-num,
html body .otp-input,
html body table td,
html body .tabular-nums {
    font-variant-numeric: tabular-nums lining-nums !important;
    font-feature-settings: "tnum" 1, "lnum" 1 !important;
}

/* ==========================================================================
   2. MAIN HEADLINES, TEXT-BALANCE & BOLD HIERARCHY (MEDIFOX DAN 700 BOLD)
   ========================================================================== */
html body h1,
html body h2,
html body h3,
html body h4,
html body h5,
html body h6,
html body .h1,
html body .h2,
html body .h3,
html body .h4,
html body .h5,
html body .h6,
html body .pz-font-display {
    font-family: var(--font-plus-jakarta-sans) !important;
    letter-spacing: normal !important;
    color: var(--mfd-content-primary);
}

html body h1,
html body h2,
html body h3,
html body .h1,
html body .h2,
html body .h3,
html body .pz-cmd-h1,
html body .pz-silo-title,
html body .pz-section-title,
html body .pz-seo-h2 {
    text-wrap: balance;
}

html body h1,
html body .h1 {
    font-weight: var(--mfd-weight-bold) !important;
    line-height: var(--mfd-lh-h1);
}

html body h2,
html body .h2,
html body h3,
html body .h3,
html body h4,
html body .h4 {
    font-weight: var(--mfd-weight-bold) !important;
    line-height: var(--mfd-lh-heading);
}

html body h5,
html body .h5,
html body h6,
html body .h6 {
    font-weight: var(--mfd-weight-semibold);
    line-height: var(--mfd-lh-heading);
}

html body .fw-black,
html body .fw-bolder,
html body .fw-bold {
    font-weight: var(--mfd-weight-bold) !important;
    letter-spacing: normal !important;
}

html body .fw-semibold {
    font-weight: var(--mfd-weight-semibold) !important;
    letter-spacing: normal !important;
}

html body .fw-medium {
    font-weight: var(--mfd-weight-medium) !important;
    letter-spacing: normal !important;
}

/* ==========================================================================
   3. TOP NAVIGATION BAR & MEGA-MENU
      - Nav Links: Plus Jakarta Sans, 16px (1rem – Enterprise Standard like MEDIFOX DAN, Personio, DATEV), Bold (700)
      - Active Nav Link: short rounded sky-blue underline bar beneath active tab
      - Mega-Menu Headers: 18–20px (text-ui-lg), weight 500–600, #3c3c3b
      - Mega-Menu Cards (both Mega-Menu 1 <span> & Mega-Menu 2 <h6>): 16px weight 500 + 14px weight 400
   ========================================================================== */
html body #main-navbar .bc-nav-menu .nav-link {
    font-family: var(--font-plus-jakarta-sans) !important;
    font-size: 16px !important; /* 16px Enterprise SaaS standard */
    font-weight: var(--mfd-weight-bold) !important; /* 700 Bold */
    line-height: 1.45 !important;
    letter-spacing: -0.005em !important;
    color: #1e293b !important;
    position: relative !important;
    transition: color 0.18s ease, background-color 0.18s ease !important;
}

@media (min-width: 1200px) {
    html body #main-navbar .bc-nav-menu .nav-link {
        background-color: transparent !important;
        border-radius: 8px !important;
        font-size: 16px !important;
        padding: 8px 10px 10px !important;
    }

    html body #main-navbar .bc-nav-menu .nav-link:hover,
    html body #main-navbar .bc-nav-menu .nav-link:focus-visible,
    html body #main-navbar .bc-nav-menu .nav-link.show,
    html body #main-navbar .bc-nav-menu .nav-link[aria-expanded="true"] {
        background-color: transparent !important;
        color: #0284c7 !important;
    }

    html body #main-navbar .bc-nav-menu .nav-link.active-nav {
        background-color: transparent !important;
        color: #0f172a !important;
        font-weight: var(--mfd-weight-bold) !important;
    }

    /* Reset Bootstrap dropdown-toggle caret pseudo-element and prepare hover/active short blue bar */
    html body #main-navbar .bc-nav-menu .nav-link::after {
        content: '' !important;
        display: block !important;
        position: absolute !important;
        bottom: 1px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 0 !important;
        height: 3.5px !important;
        background: linear-gradient(90deg, #0284c7 0%, #0ea5e9 100%) !important;
        border-radius: 999px !important;
        border: 0 !important;
        margin: 0 !important;
        vertical-align: baseline !important;
        transition: width 0.2s ease, opacity 0.2s ease !important;
        opacity: 0;
        pointer-events: none;
    }

    html body #main-navbar .bc-nav-menu .nav-link.show::after,
    html body #main-navbar .bc-nav-menu .nav-link[aria-expanded="true"]::after {
        width: 28px !important;
        max-width: calc(100% - 14px) !important;
        opacity: 0.85;
    }

    /* Short crisp blue underline beneath whichever tab is active */
    html body #main-navbar .bc-nav-menu .nav-link.active-nav::after {
        width: 36px !important;
        max-width: calc(100% - 12px) !important;
        opacity: 1 !important;
        box-shadow: 0 1px 5px rgba(14, 165, 233, 0.35) !important;
    }

    html body #main-navbar .bc-nav-actions .btn-outline-primary-nav,
    html body #main-navbar .bc-nav-actions .btn-primary-nav {
        font-size: 0.9375rem !important; /* 15px crisp header CTA */
        font-weight: var(--mfd-weight-bold) !important;
        line-height: 1.45 !important;
        letter-spacing: normal !important;
        border-radius: 9999px !important;
        padding: 7.5px 16px !important;
    }
}

/* When "0€ FÜR KUNDEN" pill is shown alongside "Preise & Inserate" (>= 1720px), center the short blue bar under "Preise & Inserate" */
@media (min-width: 1720px) {
    html body #main-navbar .bc-nav-menu .nav-link.bc-nav-pricing.active-nav::after {
        left: calc(50% + 56px) !important;
    }
}

/* Keep 16px Bold menu cleanly on 1 single row with zero overlap across 1280px–1719px laptops */
@media (min-width: 1200px) and (max-width: 1719.98px) {
    html body #main-navbar .bc-nav-pill {
        display: none !important;
    }
    html body #main-navbar .bc-nav-menu .nav-link {
        font-size: 16px !important;
        padding: 8px 8px 10px !important;
    }
}

@media (min-width: 1200px) and (max-width: 1579.98px) {
    html body #main-navbar .bc-nav-more-inserate {
        display: none !important;
    }
    html body #main-navbar .bc-nav-menu .nav-link {
        font-size: 16px !important;
        padding: 8px 7px 10px !important;
    }
    html body #main-navbar .bc-nav-actions .btn-outline-primary-nav,
    html body #main-navbar .bc-nav-actions .btn-primary-nav {
        font-size: 0.875rem !important;
        padding: 7px 14px !important;
    }
}

@media (min-width: 1200px) and (max-width: 1479.98px) {
    html body #main-navbar .bc-nav-more-anbieter,
    html body #main-navbar .bc-nav-star {
        display: none !important;
    }
    html body #main-navbar .bc-nav-menu .nav-link {
        font-size: 16px !important;
        padding: 8px 6px 10px !important;
    }
    html body #main-navbar .bc-nav-actions .btn-outline-primary-nav,
    html body #main-navbar .bc-nav-actions .btn-primary-nav {
        font-size: 0.85rem !important;
        padding: 6.5px 12px !important;
    }
}

@media (min-width: 1200px) and (max-width: 1279.98px) {
    html body #main-navbar .bc-nav-menu .nav-link {
        font-size: 15px !important;
        padding: 8px 5px 10px !important;
    }
}

@media (max-width: 1199.98px) {
    html body #main-navbar .bc-nav-menu .nav-link,
    html body #navbarNav .bc-nav-menu .nav-link {
        font-size: 16px !important; /* 16px mobile nav */
        font-weight: var(--mfd-weight-bold) !important;
        border-radius: 12px !important;
        color: #1e293b !important;
    }

    html body #navbarNav .bc-nav-menu .nav-link.active-nav {
        background-color: #f0f9ff !important;
        color: #0284c7 !important;
    }

    html body #navbarNav .bc-nav-menu .nav-link.active-nav::after {
        content: '' !important;
        display: block !important;
        position: absolute !important;
        left: 0 !important;
        right: auto !important;
        top: 50% !important;
        bottom: auto !important;
        width: 3.5px !important;
        height: 22px !important;
        transform: translateY(-50%) !important;
        border-radius: 999px !important;
        background: linear-gradient(180deg, #0284c7 0%, #0ea5e9 100%) !important;
        border: 0 !important;
        margin: 0 !important;
    }
}

html body #main-navbar .bc-nav-pill {
    font-weight: var(--mfd-weight-bold) !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.015em !important;
}

/* Mega-Menu 1 & Mega-Menu 2 Typography */
html body .mega-menu h5 {
    font-size: 1.2rem !important; /* ~19.2px */
    font-weight: var(--mfd-weight-semibold) !important;
    line-height: 1.24 !important;
    letter-spacing: normal !important;
    color: var(--mfd-content-primary) !important;
}

html body .mega-menu-col > .d-flex:first-child h6 {
    font-size: 1.125rem !important; /* 18px = text-ui-lg */
    font-weight: var(--mfd-weight-medium) !important;
    line-height: 1.25 !important;
    letter-spacing: normal !important;
    color: var(--mfd-content-primary) !important;
}

html body .mega-menu-col > .d-flex p,
html body .mega-menu-promo-light p,
html body .mega-menu-promo-mint p {
    font-size: 0.875rem !important; /* 14px = text-body-sm */
    font-weight: var(--mfd-weight-regular) !important;
    line-height: 1.45 !important;
    color: var(--mfd-content-secondary) !important;
}

html body .mega-menu-card h6,
html body .mega-menu-card > span.flex-grow-1 {
    font-size: 1rem !important; /* 16px across BOTH Mega-Menu 1 & Mega-Menu 2 */
    font-weight: var(--mfd-weight-medium) !important;
    line-height: 1.35 !important;
    letter-spacing: normal !important;
    color: var(--mfd-content-primary) !important;
}

html body .mega-menu-card.mega-menu-card-featured > span.flex-grow-1 {
    font-weight: var(--mfd-weight-semibold) !important;
    color: #0369a1 !important;
}

html body .mega-menu-card span.text-muted {
    font-size: 0.875rem !important; /* 14px = text-body-sm */
    font-weight: var(--mfd-weight-regular) !important;
    line-height: 1.4 !important;
    color: var(--mfd-content-secondary) !important;
}

html body .mega-menu-vorteil-box {
    font-size: 0.875rem !important;
    line-height: 1.45 !important;
    color: var(--mfd-content-primary) !important;
}

html body .mega-menu-cta-gradient {
    font-size: 0.875rem !important; /* 14px = MEDIFOX DAN button */
    font-weight: var(--mfd-weight-medium) !important;
    letter-spacing: normal !important;
    border-radius: 9999px !important;
}

/* ==========================================================================
   4. HERO HEADLINES, BALANCED SPLIT B2B CARD & MEDIFOX DAN SEO CHECKLIST
   ========================================================================== */
html body.is-home-page .ms-hero-h1 {
    font-size: clamp(1.85rem, 2.3vw, 2.4rem) !important; /* ~38.4px Bold in 2 wide lines */
    font-weight: var(--mfd-weight-bold) !important;
    line-height: 1.15 !important;
    letter-spacing: normal !important;
    color: var(--mfd-content-primary) !important;
    text-wrap: wrap !important;
    max-width: 860px;
}

@media (min-width: 1500px) {
    html body.is-home-page .ms-hero-top-copy {
        max-width: 72.5% !important;
    }
}

@media (min-width: 1200px) and (max-width: 1499.98px) {
    html body.is-home-page .ms-hero-top-copy {
        max-width: 74% !important;
    }
    html body.is-home-page .ms-hero-h1 {
        font-size: clamp(1.78rem, 2.22vw, 2.22rem) !important;
    }
}

@media (max-width: 767.98px) {
    html body.is-home-page .ms-hero-h1 {
        font-size: clamp(1.38rem, 5.4vw, 1.55rem) !important;
        font-weight: var(--mfd-weight-bold) !important;
        line-height: 1.18 !important;
        letter-spacing: normal !important;
    }
}

html body.is-home-page .ms-slogan-pillars {
    font-weight: var(--mfd-weight-bold) !important;
    letter-spacing: normal !important;
    color: var(--mfd-content-primary) !important;
}

html body.is-home-page .ms-slogan-claim {
    font-weight: var(--mfd-weight-semibold) !important;
    letter-spacing: normal !important;
}

/* Hero Lead: Calm 400 Regular #3c3c3b contrasting against 700 Bold H1 */
html body.is-home-page .ms-hero-lead {
    font-size: 0.96875rem !important; /* 15.5px in 2 clean lines */
    font-weight: var(--mfd-weight-regular) !important;
    line-height: 1.46 !important;
    color: var(--mfd-content-primary) !important;
    max-width: 745px;
    margin-bottom: 9px !important;
}

html body.is-home-page .ms-hero-lead strong {
    font-weight: var(--mfd-weight-bold) !important;
    color: var(--mfd-content-primary) !important;
}

/* MEDIFOX DAN list-check-simple Check-Items (18x18px #f0f7ff circle + #0071ce check) */
html body li.list-check-simple,
html body.is-home-page .ms-hero-seo-checks {
    gap: 5px;
    max-width: 750px;
    margin-bottom: 10px !important;
}

html body li.list-check-simple,
html body.is-home-page .ms-hero-seo-checks li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem; /* 14px crisp single-row check item */
    font-weight: var(--mfd-weight-regular);
    line-height: 1.4;
    color: var(--mfd-content-primary);
}

html body.is-home-page .ms-hero-seo-checks li i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 9999px;
    background-color: var(--mfd-product-subtle); /* #f0f7ff */
    color: var(--mfd-product-primary);           /* #0071ce */
    font-size: 0.78rem;
    flex-shrink: 0;
    margin-top: 1px;
}

html body.is-home-page .ms-hero-seo-checks li strong {
    font-weight: var(--mfd-weight-bold) !important;
    color: var(--mfd-content-primary) !important;
}

@media (min-width: 1200px) and (max-width: 1599.98px) {
    html body.is-home-page .ms-hero-lead {
        font-size: 0.92rem !important;
        max-width: 605px;
    }
    html body.is-home-page .ms-hero-seo-checks {
        max-width: 605px;
    }
    html body.is-home-page .ms-hero-seo-checks li {
        font-size: 0.85rem;
    }
}

/* Balanced Right B2B Hero Card (Harmonious typography + even vertical distribution) */
html body.is-home-page .ms-b2b-promo-panel h2 {
    font-size: clamp(1.45rem, 1.68vw, 1.72rem) !important;
    font-weight: var(--mfd-weight-bold) !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
    color: var(--mfd-content-primary) !important;
}

html body.is-home-page .ms-b2b-intro p {
    font-size: 0.90625rem !important; /* 14.5px */
    font-weight: var(--mfd-weight-regular) !important;
    line-height: 1.48 !important;
    color: var(--mfd-content-primary) !important;
}

html body.is-home-page .ms-b2b-fasttrack-copy strong {
    font-size: 0.875rem !important;
    font-weight: var(--mfd-weight-bold) !important;
    color: var(--mfd-content-primary) !important;
}

html body.is-home-page .ms-b2b-fasttrack-copy span {
    font-size: 0.84375rem !important; /* 13.5px */
    font-weight: var(--mfd-weight-regular) !important;
    line-height: 1.44 !important;
    color: var(--mfd-content-secondary) !important;
}

@media (min-width: 1200px) {
    html body.is-home-page aside.ms-b2b-promo-panel {
        gap: 12px !important;
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }

    html body.is-home-page aside.ms-b2b-promo-panel .ms-b2b-body {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex: 1 1 auto;
        gap: 10px;
    }

    html body.is-home-page .ms-b2b-vorteil-inner {
        padding: 13px 15px !important;
        margin-bottom: 0 !important;
    }

    html body.is-home-page .ms-b2b-checks {
        font-size: 0.78rem !important; /* 12.5px readable check items */
        font-weight: var(--mfd-weight-medium) !important;
        gap: 5px 12px !important;
    }

    html body.is-home-page .ms-b2b-fasttrack {
        padding: 10px 13px !important;
    }
}

/* Homepage Main Section H2s (MEDIFOX DAN Generous Bold Scale) */
html body.is-home-page #spotlight-companies-heading {
    font-size: clamp(1.55rem, 1.95vw, 2.12rem) !important;
    font-weight: var(--mfd-weight-bold) !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
    color: var(--mfd-content-primary) !important;
}

@media (max-width: 767.98px) {
    html body.is-home-page #spotlight-companies-heading {
        font-size: 1.28rem !important; /* Beats pz-polish.css 1.05rem */
    }
}

html body.is-home-page #jobs-and-requests-heading,
html body.is-home-page .bento-card h3,
html body.is-home-page .ms-categories-row h2 {
    font-size: clamp(1.38rem, 1.65vw, 1.68rem) !important;
    font-weight: var(--mfd-weight-bold) !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
}

html body.is-home-page .bc-pre-footer-cta h2 {
    font-size: clamp(1.5rem, 1.95vw, 2.05rem) !important;
    font-weight: var(--mfd-weight-bold) !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
}

/* Subpage Editorial Photo Heroes (/Jobs, /pflegedienste, /PatientRequests, /Talent, /Ratgeber, Company Details) */
html body .pz-cmd-h1,
html body .pz-silo-title,
html body.pz-c-ratgeber .rg-h1 {
    font-family: var(--font-plus-jakarta-sans) !important;
    font-size: clamp(1.78rem, 2.4vw, 2.52rem) !important;
    font-weight: var(--mfd-weight-bold) !important;
    line-height: 1.15 !important;
    letter-spacing: normal !important;
    color: var(--mfd-content-primary);
}

@media (max-width: 767.98px) {
    html body .pz-cmd-h1,
    html :is(body.pz-c-jobs.pz-a-index, body.pz-c-patientrequests.pz-a-index, body.pz-c-talent.pz-a-index, body.pz-c-companies.pz-a-index) .pz-cmd-h1 {
        font-size: clamp(1.42rem, 5.2vw, 1.65rem) !important;
        line-height: 1.18 !important;
    }
}

html body .pz-id-title h1,
html body .pz-job-detail-header h1 {
    font-size: clamp(1.65rem, 2.25vw, 2.3rem) !important;
    font-weight: var(--mfd-weight-bold) !important;
    line-height: 1.16 !important;
    letter-spacing: normal !important;
}

html body .pz-editorial-photo-hero p,
html body .pz-patient-hero-photo p,
html body.pz-c-ratgeber .rg-lead {
    font-size: clamp(0.95rem, 1.02vw, 1.05rem) !important; /* 15.2px -> 16.8px */
    font-weight: var(--mfd-weight-regular) !important;
    line-height: 1.48 !important;
    color: var(--mfd-content-primary) !important;
    text-wrap: pretty;
}

/* Section H2s across Directory, SEO blocks, FAQ & Ratgeber (scoped so .rg-kurz h2 stays compact) */
html body .pz-section-title,
html body .pz-seo-h2,
html body.pz-c-ratgeber .rg-article > h2,
html body.pz-c-ratgeber .rg-sources h2,
html body .ms-seo-faq h2 {
    font-size: clamp(1.5rem, 1.95vw, 2.05rem) !important;
    font-weight: var(--mfd-weight-bold) !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
}

/* ==========================================================================
   5. CARDS, LISTINGS, PILLARS & DESCRIPTIONS (MEDIFOX DAN 700 TITLES + 400 COPY)
   ========================================================================== */
html body .bc-prem-title,
html body .pz-exec-title,
html body .pz-job-card h3,
html body .pz-job-card .h5,
html body .pz-mkt-job-title,
html body .pz-mkt-case-title,
html body .pz-fl-card h3,
html body .pz-fl-title,
html body .pz-mkt-results-title,
html body .pz-mkt-talent-title,
html body .ms-pillar-title,
html body.is-home-page .ms-pillar-title,
html body .service-card .sc-body h4,
html body .b2b-card h4,
html body .pz-service-tile-body h4,
html body .bc-job-card-premium .job-title,
html body .pz-mkt-emp-name,
html body .pz-mkt-employers-exec .pz-exec-emp-heading,
html body .bento-job-title,
html body .ms-ad-title,
html body .pz-platin-banner h2,
html body .pz-silo-card h3,
html body .pz-immo-title,
html body .srv-title,
html body .pz-seo-h3,
html body .pz-seo-empty-title,
html body .bc-premium-slider-section h3 {
    font-family: var(--font-plus-jakarta-sans) !important;
    font-weight: var(--mfd-weight-bold) !important;
    letter-spacing: normal !important;
    line-height: 1.28 !important;
    color: var(--mfd-content-primary);
}

html body .service-card .sc-body h4,
html body .b2b-card h4 {
    font-size: 1.0625rem !important; /* 17px */
}

html body .pz-mkt-employers-exec .pz-exec-emp-heading {
    font-size: 1.03125rem !important; /* 16.5px */
}

/* Card Descriptions, Subtitles & Small Copy: Crisp 14px–15px Regular (400) */
html body .bc-prem-desc,
html body .bc-prem-info-line,
html body .service-card .sc-body p,
html body .b2b-card p,
html body .pz-service-tile-body p,
html body .ms-pillar-sub,
html body .pz-job-desc,
html body .bc-job-card-premium .job-company,
html body .bc-job-card-premium .job-meta,
html body .ms-ad-text,
html body .bento-info-box p,
html body .pz-platin-banner p,
html body .pz-id-subtitle,
html body .pz-seo-text,
html body .pz-seo-about-text,
html body .pz-seo-faq-a p,
html body .pz-review-card p,
html body .small,
html body small {
    font-weight: var(--mfd-weight-regular);
    line-height: 1.46;
    letter-spacing: normal;
}

html body .service-card .sc-body p,
html body .b2b-card p,
html body .bc-prem-info-line,
html body .ms-ad-text {
    font-size: 0.875rem !important; /* 14px = MEDIFOX DAN text-body-sm */
    color: var(--mfd-content-secondary);
}

html body .pz-mkt-job-desc p,
html body .pz-patient-case-body p {
    font-size: 0.9375rem; /* 15px */
    font-weight: var(--mfd-weight-regular);
    line-height: 1.52;
    color: var(--mfd-content-primary);
}

html body .job-content {
    font-size: 1rem !important;
    font-weight: var(--mfd-weight-regular) !important;
    line-height: 1.55 !important;
    color: var(--mfd-content-primary) !important;
}

/* Card Micro Action Links ("Mehr erfahren" / "Anbieter finden ->") */
html body .service-card .sc-link,
html body .b2b-card .b2b-link,
html body .link-arrow,
html body .ms-carousel-all {
    font-size: 0.84375rem !important; /* 13.5px */
    font-weight: var(--mfd-weight-bold) !important;
    letter-spacing: normal !important;
}

/* Guard Mobile Micro-Text Floors (>= 11.5px–12px everywhere) */
html body .metric-label {
    font-size: 0.75rem !important; /* 12px (was 10.4px) */
    font-weight: var(--mfd-weight-regular);
}

@media (max-width: 767.98px) {
    html body.is-home-page .ms-pillar-sub,
    html body.is-home-page .ms-mtc-copy span,
    html body.is-home-page .ms-mix-tab-badge,
    html body.is-home-page .ms-ki-new-badge,
    html body .pz-kicker-badge,
    html body .pz-seal-kicker,
    html body .pz-seal-stars {
        font-size: max(11.5px, 0.72rem) !important;
    }
}

/* ==========================================================================
   6. EYEBROWS, BADGES, TABS, FILTERS, BUTTONS & FORMS (MEDIFOX DAN UI TOKENS)
   ========================================================================== */
/* Section Kickers: Calm Weight 500–600 & Refined Tracking */
html body .ms-hero-kicker,
html body .ms-hero-kicker-count,
html body .ms-section-kicker,
html body .pz-kicker-badge,
html body .ms-vip-stage-kicker,
html body .ms-gold-shift-kicker,
html body .premium-kicker {
    font-family: var(--font-plus-jakarta-sans) !important;
    font-size: max(12px, 0.76rem) !important;
    font-weight: var(--mfd-weight-semibold) !important;
    letter-spacing: 0.015em !important;
    line-height: 1.35 !important;
}

/* Badges, MDK Pills & Tier Tags: Cap at 600 SemiBold (never 800/900) */
html body .badge,
html body .badge-premium,
html body .badge-premium.badge-gold-skin,
html body .badge-medistein,
html body .badge-verified-net,
html body .badge-success,
html body .badge-alert,
html body .bc-prem-mdk,
html body .badge-new-soft,
html body .ms-jobs-live-pill,
html body .ms-algo-pill,
html body.is-home-page .ms-mix-tab-badge,
html body.is-home-page .ms-mobile-search-shell .ms-quick-label,
html body .ms-vip-stage-pill,
html body .ms-ad-chip,
html body .pz-tier-pill,
html body .pz-exec-gold-pill,
html body .pz-ribbon-badge,
html body .pz-gold-inline-tag,
html body .pz-fl-gold-tag,
html body .pz-mdk-pill,
html body .pz-immo-mdk-badge,
html body .pz-rating-pill,
html body .pz-jobs-ribbon,
html body .pz-pin-chip,
html body .pz-tag-micro,
html body .pz-exec-kicker,
html body .beyond-badge,
html body .pz-hdr-pill,
html body .pz-contact-kicker,
html body .pz-contact-free-pill,
html body .pz-vip-gold-ribbon,
html body .pz-vip-sub-pill,
html body .pz-id-cat-kicker,
html body .pz-salary-pill,
html body .b2b-badge {
    font-family: var(--font-plus-jakarta-sans) !important;
    font-weight: var(--mfd-weight-semibold) !important;
    letter-spacing: 0.015em !important;
}

html body .pz-job-spec-val,
html body .metric-val,
html body .bc-prem-rating .score,
html body.is-home-page .ms-mtc-copy strong,
html body.is-home-page .ms-spotlight-mobile-all,
html body .bc-user-avatar {
    font-weight: var(--mfd-weight-bold) !important;
    letter-spacing: normal !important;
}

/* Navigation & Filter Pills / Tabs: 500 Resting -> 600 Active */
html body .enterprise-top-tabs .nav-link,
html body .nav-tabs-custom .nav-link,
html body .pz-silo-tab,
html body .pz-filter-pill,
html body .pz-pill-chip,
html body .pz-console-tab,
html body .pz-city-tab-btn,
html body .pz-seo-pill,
html body .tp-areanav-tab,
html body .ms-quick-chip,
html body.is-home-page .ms-search-tab,
html body.is-home-page .ms-smartmix-tab {
    font-family: var(--font-plus-jakarta-sans) !important;
    font-weight: var(--mfd-weight-medium) !important;
    letter-spacing: normal !important;
}

html body .enterprise-top-tabs .nav-link.active,
html body .nav-tabs-custom .nav-link.active,
html body .pz-silo-tab.active,
html body .pz-filter-pill.active,
html body .pz-filter-pill[class*="active-"],
html body .pz-pill-chip.active,
html body .pz-console-tab.active,
html body .pz-city-tab-btn.active,
html body .tp-areanav-tab.is-active,
html body.is-home-page .ms-search-tab.active,
html body.is-home-page .ms-smartmix-tab.active {
    font-weight: var(--mfd-weight-semibold) !important;
}

/* Sidebar Filter Accordions & Options */
html body .pz-filter-card summary,
html body .pz-fl-filter-box summary {
    font-family: var(--font-plus-jakarta-sans) !important;
    font-size: max(15px, 0.9375rem) !important;
    font-weight: var(--mfd-weight-semibold) !important;
    letter-spacing: normal !important;
}

html body .pz-filter-row,
html body .pz-fl-check-item {
    font-size: max(14px, 0.875rem) !important;
    font-weight: var(--mfd-weight-regular);
    line-height: 1.45;
}

html body .pz-filter-row.is-active,
html body .pz-fl-check-item.is-checked {
    font-weight: var(--mfd-weight-semibold) !important;
}

/* Buttons: MEDIFOX DAN 14px–15px Medium (500) / SemiBold (600) – Never 700/800 */
html body .btn,
html body .btn.fw-bold,
html body .btn.fw-semibold,
html body .b-btn,
html body .b-btn-outline,
html body .pz-btn-exec-outline,
html body .bc-btn-outline,
html body .bc-btn-ghost,
html body .pz-card-cta-sec,
html body .pz-btn-ki-white,
html body .pz-btn-call-outline,
html body .pz-gallery-open-pill,
html body .enterprise-btn-outline,
html body .enterprise-btn-soft,
html body .btn-b2b-outline,
html body .bc-cookie-btn-reject,
html body .bc-cookie-btn-settings,
html body .ms-boost-pill {
    font-family: var(--font-plus-jakarta-sans) !important;
    font-weight: var(--mfd-weight-medium) !important;
    letter-spacing: normal !important;
    line-height: 1.4;
}

html body .pz-btn-exec-primary,
html body .pz-btn-exec-gold,
html body .pz-btn-exec-navy,
html body .pz-btn-exec-emerald,
html body .ms-search-btn,
html body .ms-b2b-cta,
html body .bc-btn-solid,
html body .bc-prem-card.bc-prem-card-gold .bc-btn-solid,
html body .btn-classic-submit,
html body .b-btn-primary,
html body .pz-id-actions .pz-cta-main,
html body .btn-gradient,
html body .pz-card-cta-main,
html body .pz-btn-suchen-blue,
html body .pz-btn-details-blue,
html body .pz-immo-btn-main,
html body .pz-mkt-apply-link,
html body .pz-unlock-patient-btn,
html body .btn-apply-submit,
html body .btn-primary-gradient,
html body .bc-btn,
html body .btn-b2b-primary,
html body .enterprise-btn-primary,
html body .rg-btn,
html body .bc-cookie-btn-accept,
html body .bc-footer-deluxe .fn-btn,
html body.is-home-page .ms-spotlight-grid .ms-native-ad-card .ms-ad-cta {
    font-family: var(--font-plus-jakarta-sans) !important;
    font-weight: var(--mfd-weight-semibold) !important;
    letter-spacing: normal !important;
}

/* Form Labels, Inputs & Placeholders (MEDIFOX DAN .form-input) */
html body .form-label {
    font-family: var(--font-plus-jakarta-sans) !important;
    font-size: 0.875rem;
    font-weight: var(--mfd-weight-semibold) !important;
    line-height: 1.4;
    letter-spacing: normal !important;
    color: var(--mfd-content-primary);
}

html body .form-control,
html body .form-select,
html body .classic-input,
html body .b2b-input,
html body .beyond-input,
html body .bc-search-input,
html body .pz-field-wrap input,
html body .pz-field-wrap select {
    font-family: var(--font-plus-jakarta-sans) !important;
    font-weight: var(--mfd-weight-medium);
    letter-spacing: normal;
    color: var(--mfd-content-primary);
}

html body .form-control::placeholder,
html body .classic-input::placeholder,
html body .b2b-input::placeholder,
html body .beyond-input::placeholder,
html body .bc-search-input::placeholder,
html body .pz-field-wrap input::placeholder {
    color: var(--mfd-content-secondary) !important; /* #6e6d6c */
    font-weight: var(--mfd-weight-regular);
    opacity: 1;
}

/* ==========================================================================
   7. MEDIFOX DAN ACCORDION FAQS (CLEAN HAIRLINES + 24px CIRCULAR '+' TOGGLE)
   ========================================================================== */
html body .ms-seo-faq details,
html body .pz-faq details {
    background-color: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--mfd-stroke-subtle) !important; /* #e6e6e7 */
    border-radius: 0 !important;
    padding: 15px 0 !important;
    margin-bottom: 0 !important;
}

html body .ms-seo-faq details summary,
html body .pz-faq details summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    font-family: var(--font-plus-jakarta-sans) !important;
    font-size: 1.03125rem !important; /* 16.5px */
    font-weight: var(--mfd-weight-medium) !important; /* 500 Medium, NOT 700 Bold */
    line-height: 1.35 !important;
    letter-spacing: normal !important;
    color: var(--mfd-content-primary) !important;
}

html body .ms-seo-faq details summary::-webkit-details-marker,
html body .pz-faq details summary::-webkit-details-marker {
    display: none;
}

html body .ms-seo-faq details summary::after,
html body .pz-faq details summary::after {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 9999px;
    border: 1px solid var(--mfd-stroke-subtle);
    color: var(--mfd-content-primary);
    font-size: 1rem;
    font-weight: var(--mfd-weight-regular);
    line-height: 1;
    transition: transform 0.22s ease, background-color 0.2s ease;
}

html body .ms-seo-faq details[open] summary::after,
html body .pz-faq details[open] summary::after {
    transform: rotate(45deg);
    background-color: var(--mfd-surface-secondary);
}

html body .ms-seo-faq details p,
html body .pz-faq details p {
    font-size: 0.9375rem !important; /* 15px */
    font-weight: var(--mfd-weight-regular) !important;
    line-height: 1.52 !important;
    color: var(--mfd-content-secondary) !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    text-wrap: pretty;
}

/* ==========================================================================
   8. FOOTER TYPOGRAPHY (MEDIFOX DAN UNIFIED 16px HEADINGS / 15px LINKS / 14px META)
   ========================================================================== */
html body .bc-footer-deluxe {
    font-family: var(--font-plus-jakarta-sans) !important;
}

html body .bc-footer-deluxe .footer-brand span {
    font-weight: var(--mfd-weight-bold) !important;
    letter-spacing: normal !important;
}

html body .bc-footer-deluxe .footer-desc {
    font-size: 0.9375rem !important; /* 15px */
    font-weight: var(--mfd-weight-regular) !important;
    line-height: 1.55 !important;
}

html body .bc-footer-deluxe .footer-title,
html body .bc-footer-deluxe .footer-newsletter-box h4 {
    font-size: 1rem !important; /* 16px unified across all 4 columns */
    font-weight: var(--mfd-weight-semibold) !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

html body .bc-footer-deluxe .footer-links a {
    font-size: 0.9375rem !important; /* 15px */
    font-weight: var(--mfd-weight-medium) !important;
    line-height: 1.5 !important;
}

html body .bc-footer-deluxe .footer-newsletter-box p,
html body .bc-footer-deluxe .footer-bottom-bar {
    font-size: 0.875rem !important; /* 14px */
    font-weight: var(--mfd-weight-regular) !important;
    line-height: 1.45 !important;
}
