/* ===========================================================================
   Owner profile ("Betreiberprofil") — card design system, ported from the
   Pflegemarkt redesign and recoloured with the Gesundheitsmarkt palette.
   Used by page-klinik-owners.php. Prefix: op- ("owner profile").
   Loaded on /klinikbetreiber/ only (see gesundheitsmarkt.php).
   =========================================================================== */
.carehouse-page {
    font-family: "Inter", Arial, Helvetica, sans-serif;
    color: #27233a;
}
.carehouse-page .container { max-width: 1320px; }

.op-header { margin-bottom: 8px; }
.op-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid #cecfd3;
}
.op-title-row h1 {
    margin: 0;
    font: 700 40px/1.1 "Inter", sans-serif;
    color: #27233a;
    letter-spacing: -.01em;
    text-wrap: pretty;
    overflow-wrap: break-word;
}
.op-badges { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.op-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    font: 700 12px/1 "Inter", sans-serif;
    white-space: nowrap;
}
.op-badge--accent { background: #faf6ee; color: #27233a; }
.op-badge--muted { background: #f5f5f5; color: #6d6e7c; font-weight: 400; }
.op-badge i { font-size: 11px; }

.op-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.op-nav-pill {
    display: inline-flex;
    height: 42px;
    border: 1px solid #cecfd3;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color .15s;
}
.op-nav-pill:hover { border-color: #b78b31; }
.op-nav-pill a {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 0 16px;
    color: inherit;
    text-decoration: none;
    box-sizing: border-box;
}
.op-nav-pill i { color: #b78b31; font-size: 13px; }
.op-nav-pill-label { display: block; font: 400 11px/1.3 "Inter", sans-serif; color: #9a9ba6; }
.op-nav-pill-title { display: block; font: 500 13px/1.3 "Inter", sans-serif; color: #27233a; }
.op-nav-pill--next a { justify-content: flex-end; text-align: right; }

.op-nav-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    margin-top: 36px;
    border-top: 1px solid #efeee9;
}
.op-nav-bottom a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 500 14px/1 "Inter", sans-serif;
    color: #b78b31;
    text-decoration: none;
}
.op-nav-bottom a:hover { color: #27233a; text-decoration: underline; }

.op-body {
    display: grid;
    grid-template-columns: 1fr 1.28fr;
    gap: 24px;
    align-items: start;
}
.op-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.op-card {
    position: relative;
    border: 1px solid #cecfd3;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(39, 35, 58, .08);
    overflow: hidden;
}
.op-card--accent { border-top: 3px solid #b78b31; }
.op-card-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px 14px;
}
.op-card-eyebrow {
    font: 700 12px/1 "Inter", sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #b78b31;
    margin-bottom: 8px;
}
.op-card-title { margin: 0; font: 700 20px/1.2 "Inter", sans-serif; color: #27233a; }
.op-card-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f5f5f5;
    color: #6d6e7c;
    font: 500 12px/1 "Inter", sans-serif;
    white-space: nowrap;
}
.op-card-meta i { color: #b78b31; font-size: 11px; }

/* Identity card */
.op-identity { display: flex; gap: 20px; padding: 24px 24px 20px; }
.op-identity-logo {
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    border-radius: 10px;
    overflow: hidden;
    background: #fdfcf9;
    border: 1px solid #cecfd3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.op-identity-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.op-identity-logo--placeholder {
    flex-direction: column;
    gap: 6px;
    border-style: dashed;
    color: #9a9ba6;
    text-align: center;
    padding: 10px;
}
.op-identity-logo--placeholder strong { font: 700 16px/1 "Inter", sans-serif; letter-spacing: .04em; }
.op-identity-logo--placeholder span { font: 400 10px/1 "Inter", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.op-identity-main { flex: 1; min-width: 0; }
.op-identity-name { font: 700 20px/1.25 "Inter", sans-serif; color: #27233a; }
.op-identity-sub { font: 400 14px/1.45 "Inter", sans-serif; color: #6d6e7c; margin-top: 6px; }
.op-identity-table { display: grid; grid-template-columns: 150px 1fr; }
.op-identity-table > div {
    padding: 12px 24px;
    border-top: 1px solid #efeee9;
    font: 400 14px/1.4 "Inter", sans-serif;
    color: #27233a;
}
.op-identity-table > div.op-identity-label { font: 500 13px/1.4 "Inter", sans-serif; color: #6d6e7c; padding-right: 0; }
.op-identity-table > div:nth-last-child(-n+2) { padding-bottom: 16px; }

/* Map card */
.op-map { height: 400px; margin: 0 24px; border: 1px solid #cecfd3; border-radius: 8px; overflow: hidden; position: relative; }
.op-legend { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 16px 24px 20px; }
.op-legend-item { display: inline-flex; align-items: center; gap: 8px; font: 400 13px/1 "Inter", sans-serif; color: #27233a; }
.op-legend-dot { width: 10px; height: 10px; border-radius: 999px; flex: none; }
.op-legend--stats { flex-direction: column; gap: 8px; padding: 0; }
.op-legend--stats .op-legend-item { width: 100%; }
.op-legend--stats .op-legend-label { flex: 1; }
.op-legend--stats .op-legend-value { font: 700 13px/1 "Inter", sans-serif; color: #27233a; }

/* News card */
.op-news-list { display: flex; flex-direction: column; }
.op-news-item {
    display: flex;
    gap: 14px;
    padding: 16px 24px;
    border-top: 1px solid #efeee9;
    color: inherit;
    text-decoration: none;
}
.op-news-item:hover { background: #f5f5f5; text-decoration: none; }
.op-news-date { font: 500 12px/1.6 "Inter", sans-serif; color: #9a9ba6; flex: 0 0 76px; }
.op-news-title { font: 500 14px/1.45 "Inter", sans-serif; color: #27233a; }
.op-news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 24px;
    border-top: 1px solid #efeee9;
    background: #fdfcf9;
    font: 400 12px/1 "Inter", sans-serif;
    color: #6d6e7c;
}
.op-news-pager { display: flex; gap: 6px; }
.op-news-pager button {
    min-width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid #cecfd3;
    background: #ffffff;
    color: #27233a;
    font: 500 13px/1 "Inter", sans-serif;
    text-align: center;
    cursor: pointer;
}
.op-news-pager button.is-current { background: #b78b31; border-color: #b78b31; color: #ffffff; font-weight: 700; }
.op-news-pager button[disabled] { color: #6d6e7c; cursor: default; }
.op-news-pager button:not(.is-current):hover { border-color: #b78b31; color: #27233a; }

/* CTA card */
.op-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px; border: 1px solid #e1cda5; border-radius: 12px; background: #faf6ee; }
.op-cta-title { font: 700 16px/1.3 "Inter", sans-serif; color: #27233a; }
.op-cta-text { font: 400 13px/1.45 "Inter", sans-serif; color: #6d6e7c; margin-top: 4px; }

/* Buttons */
.op-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 20px;
    border-radius: 8px;
    font: 700 13px/1 "Inter", sans-serif;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    cursor: pointer;
    flex: none;
}
.op-btn--accent { background: #cca555; color: #27233a; }
.op-btn--accent:hover { background: #b78b31; color: #27233a; text-decoration: none; }

/* KPI / pipeline grids ("Aktuelle Kennzahlen", "Neubauprojekte und Planungen") */
.op-kpi-grid { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 12px 16px; }
.op-kpi-item { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-bottom: 1px solid #efeee9; }
.op-kpi-item.op-kpi-item--last,
.op-kpi-item.op-kpi-item--end { border-bottom: none; }
.op-kpi-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 8px;
    background: #faf6ee;
    color: #27233a;
    font: 400 14px/36px "Inter", sans-serif;
    text-align: center;
}
.op-kpi-label { flex: 1; font: 400 13px/1.35 "Inter", sans-serif; color: #6d6e7c; }
.op-kpi-value { font: 700 19px/1.1 "Inter", sans-serif; color: #27233a; white-space: nowrap; }
.op-kpi-value small { font: 500 13px/1.1 "Inter", sans-serif; color: #6d6e7c; }

.op-pipeline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 24px 24px; }
.op-pipeline-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #efeee9; border-radius: 10px; background: #fdfcf9; }
.op-pipeline-item .op-kpi-icon { background: #f5f5f5; color: #3d3e51; }

/* Chart cards ("Angebotsverteilung", "Portfolio nach Bettenzahl") */
.op-chart-row { display: grid; grid-template-columns: 1fr; gap: 24px; }
.op-chart-card .op-card-header { padding: 18px 20px 4px; }
.op-chart-card .op-card-title { font-size: 17px; line-height: 1.25; }
.op-chart-body { padding: 20px; }
.op-donut-wrap { display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.op-donut { position: relative; width: 250px; height: 250px; }
.op-donut-canvas { display: block; width: 100% !important; height: 100% !important; }
.op-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.op-donut-center strong { font: 700 36px/1 "Inter", sans-serif; color: #27233a; }
.op-donut-center span { font: 400 13px/1.3 "Inter", sans-serif; color: #6d6e7c; margin-top: 4px; }
.op-chart-footnote { font: 400 12px/1.45 "Inter", sans-serif; color: #9a9ba6; margin-top: 14px; }
/* Portfolio bar chart: Chart.js runs `responsive:true` against this fixed-
   height wrapper so the canvas fills the card width at any breakpoint
   instead of the old fixed 500x300 canvas. The donut (.op-donut, #jqChart)
   stays a fixed 176px circle matching the design instead. */
.op-bar-chart-wrap { position: relative; height: 220px; }
.op-bar-chart-wrap canvas { max-width: 100% !important; }

/* Per-section member lock overlay — supersedes the generic corner "Anmelden"
   badge (gesundheitsmarkt.css `.pmpro-custom-no-access .section-blurred::after`)
   inside owner-profile cards only; .section-blurred keeps blurring its
   direct children and stays clickable (js/main.js scrolls to the paywall
   banner), .op-lock-overlay is just a sharp child riding on top of the blur. */
.op-card .section-blurred { position: relative; }
.op-card .section-blurred::after { content: none !important; }
.op-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: rgba(255, 255, 255, .35);
    text-align: left;
    /* stays sharp/clickable while its blurred siblings dim underneath —
       the click still bubbles up to the ancestor .section-blurred, which
       is what js/main.js listens on to scroll to the paywall banner */
    filter: none !important;
    pointer-events: auto !important;
    cursor: pointer;
}
.op-lock-card {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 92%;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #cecfd3;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(39, 35, 58, .16);
}
.op-lock-icon {
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 8px;
    background: #faf6ee;
    color: #27233a;
    font: 400 15px/38px "Inter", sans-serif;
    text-align: center;
}
.op-lock-text { font: 700 14px/1.35 "Inter", sans-serif; color: #27233a; }
.op-lock-text small { display: block; font: 400 13px/1.45 "Inter", sans-serif; color: #6d6e7c; margin-top: 2px; }
.op-lock-cta { font: 700 13px/1 "Inter", sans-serif; color: #b78b31; white-space: nowrap; }
.op-lock-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* min-height instead of height so the label may wrap on narrow cards */
    min-height: 34px;
    max-width: 92%;
    padding: 6px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #cecfd3;
    box-shadow: 0 6px 20px rgba(39, 35, 58, .16);
    font: 700 12px/1.35 "Inter", sans-serif;
    color: #27233a;
    text-align: center;
    box-sizing: border-box;
}
.op-lock-pill i { flex: none; }

/* Owner-profile paywall banner. Scoped to the Firmenprofil templates
   (gesundheitsmarkt_render_owner_paywall); the site-wide banner keeps
   .restricted-item-wrapper and its own styles above. */
.op-paywall {
    clear: both;
    margin-top: 36px;
    border: 1px solid #cecfd3;
    border-radius: 14px;
    overflow: hidden;
}
.op-paywall-band {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 32px 40px;
    background: linear-gradient(90deg, #3d3e51 0%, #27233a 100%);
}
.op-paywall-icon {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #ffffff;
    font: 400 26px/64px "Inter", sans-serif;
    text-align: center;
    box-sizing: border-box;
}
.op-paywall-copy { flex: 1; min-width: 0; }
.op-paywall-title { margin: 0; font: 700 26px/1.2 "Inter", sans-serif; color: #ffffff; }
.op-paywall-text { margin: 8px 0 0; font: 400 15px/1.45 "Inter", sans-serif; color: rgba(255, 255, 255, .88); max-width: 640px; }
.op-paywall-levels { margin: 6px 0 0; font: 500 13px/1.45 "Inter", sans-serif; color: rgba(255, 255, 255, .72); }
.op-paywall-actions { display: flex; align-items: center; gap: 10px; flex: none; }
/* line-height centring, not flex: the PMPro level rules force display:block
   on whichever "Weiterlesen" button matches the visitor's membership. */
.op-paywall-btn {
    min-width: 120px;
    height: 48px;
    padding: 0 20px;
    border-radius: 8px;
    font: 700 14px/48px "Inter", sans-serif;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
}
.op-paywall-btn--light { background: #ffffff; color: #27233a; }
.op-paywall-btn--light:hover { background: #faf6ee; color: #27233a; text-decoration: none; }
.op-paywall-btn--accent { min-width: 160px; background: #cca555; color: #27233a; }
.op-paywall-btn--accent:hover { background: #b78b31; color: #27233a; text-decoration: none; }
.op-paywall-foot { display: grid; grid-template-columns: 1fr 1fr; background: #ffffff; }
.op-paywall-foot-item { display: flex; gap: 14px; padding: 20px 40px; }
.op-paywall-foot-item:first-child { border-right: 1px solid #efeee9; }
.op-paywall-foot-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 999px;
    font: 400 16px/40px "Inter", sans-serif;
    text-align: center;
}
.op-paywall-foot-icon--dark { background: #faf6ee; color: #27233a; }
.op-paywall-foot-icon--gold { background: #f5f5f5; color: #3d3e51; }
.op-paywall-foot-title { margin: 0; font: 700 14px/1.3 "Inter", sans-serif; color: #27233a; }
.op-paywall-foot-text { margin: 4px 0 0; font: 400 13px/1.45 "Inter", sans-serif; color: #6d6e7c; }

/* Desktop-only defaults for the pieces the narrow layouts introduce. */
.op-title-main { flex: 1 1 460px; min-width: 0; }
.op-title-logo { display: none; }
.op-nav-count { display: none; }
.kununu-total-mobile { display: none; }

@media (max-width: 1024px) {
    /* One stacked column in the design's reading order: Stammdaten, CTA,
       Kennzahlen, Pipeline, Karte, News, Charts. .op-col collapses so every
       card becomes a direct flex item that `order` can place. */
    .op-body { display: flex; flex-direction: column; }
    .op-col { display: contents; }
    .op-col > * { order: 50; }
    .op-card--accent { order: 10; }
    .op-col:last-child > :first-child { order: 20; }
    .op-card--kpi { order: 30; }
    .op-card--pipeline { order: 40; }
    .op-card--map { order: 60; }
    .owner-news { order: 70; }
    .op-chart-row { order: 80; grid-template-columns: 1fr 1fr; gap: 20px; }

    /* Prev/next moves above the heading and gains the position counter. */
    .op-title-row { flex-direction: column; align-items: stretch; gap: 20px; flex-wrap: nowrap; }
    .op-nav { order: -1; justify-content: space-between; flex-wrap: nowrap; gap: 12px; }
    .op-nav-count { display: block; flex: none; align-self: center; font: 400 12px/1 "Inter", sans-serif; color: #6d6e7c; }
    .op-nav-pill { height: 36px; flex: 0 1 auto; min-width: 0; }
    .op-nav-pill a { padding: 0 14px; gap: 8px; min-width: 0; }
    .op-nav-pill a > span { min-width: 0; }
    .op-nav-pill-label { display: none; }
    .op-nav-pill-title { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    /* Logo moves out of the Stammdaten card up beside the heading. */
    .op-title-main {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        grid-template-areas: "logo heading" "logo badges";
        align-content: start;
        column-gap: 20px;
        flex: 1 1 auto;
    }
    .op-title-logo { display: flex; grid-area: logo; width: 88px; height: 88px; flex: none; }
    .op-title-logo--placeholder strong { font-size: 15px; }
    .op-title-row h1 { grid-area: heading; font-size: 32px; }
    .op-title-row .op-badges { grid-area: badges; margin-top: 12px; }
    .op-identity > .op-identity-logo,
    .op-identity-name,
    .op-identity-sub { display: none; }
    .op-identity { padding: 16px 20px 10px; }
    .op-identity-table { grid-template-columns: 132px 1fr; }
    .op-identity-table > div { padding: 11px 20px; font-size: 13px; }
    .op-identity-table > div.op-identity-label { font-size: 12px; }

    /* Kununu: history chart above the scorecard table. */
    .kununu-section .kununu-columns { grid-template-columns: 1fr; gap: 18px; }
    .kununu-section .kununu-chart-col { order: 1; }
    .kununu-section .kununu-table-col { order: 2; }
}

@media (max-width: 780px) {
    .op-kpi-grid, .op-pipeline-grid, .op-chart-row { grid-template-columns: 1fr; }
    .op-title-main { grid-template-columns: 72px minmax(0, 1fr); column-gap: 14px; }
    .op-title-logo { width: 72px; height: 72px; }
    .op-title-logo--placeholder strong { font-size: 13px; }
    .op-title-row h1 { font-size: 26px; }
    .op-title-row .op-badges { margin-top: 10px; }
    .op-nav-count { display: none; }
    .op-nav { flex-wrap: wrap; }
    .op-nav-pill { border: none; height: auto; max-width: 100%; }
    .op-nav-pill a { padding: 10px; }
    .op-nav-pill-title { color: #b78b31; font-size: 13px; }

    /* Cards lose the eyebrow and drop to a 16px title. */
    .op-card-header { padding: 16px 16px 10px; flex-wrap: wrap;}
    .op-card-header .op-card-eyebrow { display: none; }
    .op-card-title, .op-chart-card .op-card-title { font-size: 16px; line-height: 1.25; }
    .op-identity { display: none; }
    .op-identity-table { grid-template-columns: 118px 1fr; }
    .op-identity-table > div { padding: 11px 14px; }

    .op-cta { flex-direction: column; align-items: stretch; gap: 12px; padding: 18px 16px; }
    .op-btn { width: 100%; justify-content: center; }

    .op-kpi-grid { padding: 8px 16px 12px; }
    .op-kpi-item { padding: 11px 0; gap: 12px; }
    .op-kpi-icon { width: 30px; height: 30px; flex-basis: 30px; line-height: 30px; font-size: 12px; }
    .op-kpi-value { font-size: 16px; }
    .op-pipeline-grid { gap: 10px; padding: 0 16px 18px; }
    .op-pipeline-item { padding: 11px 14px; gap: 12px; }

    .op-map { height: 260px; margin: 0 16px; }
    .op-legend { gap: 8px 16px; padding: 14px 16px 18px; }
    .op-news-item { padding: 12px 16px; gap: 12px; }
    .op-news-date { flex-basis: 66px; font-size: 11px; }
    .op-news-title { font-size: 13px; }
    .op-news-footer { padding: 12px 16px; flex-wrap: wrap;}
    .op-chart-body { padding: 16px; }
    .op-donut { width: 140px; height: 140px; }
    .op-donut-center strong { font-size: 20px; }
    .op-bar-chart-wrap { height: 190px; }

    /* Kununu collapses to the "Gesamt" hero plus one row per metric; the
       scorecard table is dropped, its footnote kept. */
    .kununu-section { margin-top: 16px; }
    .kununu-section .kununu-header { padding: 16px 16px 12px; }
    .kununu-section .kununu-header h2 { font-size: 16px; }
    .kununu-section .kununu-header .op-card-eyebrow,
    .kununu-section .kununu-company,
    .kununu-section .kununu-meta-sep { display: none; }
    .kununu-total-mobile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
    .kununu-total-mobile .kununu-total-score { font: 700 34px/1 "Inter", sans-serif; color: #27233a; font-variant-numeric: tabular-nums; }
    .kununu-total-mobile .kununu-total-meta { font: 400 12px/1.4 "Inter", sans-serif; color: #6d6e7c; }
    .kununu-section .kununu-kpi-grid { grid-template-columns: 1fr; border-bottom: none; }
    .kununu-section .kununu-kpi-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        column-gap: 10px;
        padding: 10px 16px;
        border-left: none;
        border-top: 1px solid #efeee9;
    }
    .kununu-section .kununu-kpi-head { margin-bottom: 0; }
    .kununu-section .kununu-kpi-label { font-size: 13px; font-weight: 400; color: #27233a; }
    .kununu-section .kununu-kpi-reviews { order: 2; margin-top: 0; }
    .kununu-section .kununu-kpi-value { order: 3; font-size: 15px; min-width: 34px; text-align: right; }
    .kununu-section .kununu-columns { padding: 14px 16px 4px; }
    .kununu-section .kununu-table-col > .kununu-col-header,
    .kununu-section .kununu-table { display: none; }
    .kununu-section .kununu-footnote { margin: 0; }

    .op-paywall { margin-top: 24px; }
    .op-paywall-band { flex-direction: column; text-align: center; gap: 14px; padding: 24px 20px; }
    .op-paywall-copy { text-align: center; }
    .op-paywall-title { font-size: 22px; }
    .op-paywall-text { font-size: 13px; }
    .op-paywall-actions { flex-direction: column; align-self: stretch; gap: 10px; }
    .op-paywall-btn { width: 100%; min-width: 0; }
    .op-paywall-foot { grid-template-columns: 1fr; }
    .op-paywall-foot-item { padding: 18px 20px; }
    .op-paywall-foot-item:first-child { border-right: none; border-bottom: 1px solid #efeee9; }
}

/* Card chrome (border, radius, shadow, position) comes from .op-card. */
.kununu-section {
    clear: both;
    margin-top: 24px;
    box-sizing: border-box;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    color: #27233a;
}
.kununu-section .kununu-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
    flex-wrap: wrap;
    padding: 18px 24px 16px;
    border-bottom: 1px solid #efeee9;
}
.kununu-section .kununu-header > div { min-width: 0; }
.kununu-section .kununu-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #27233a;
}
.kununu-section .kununu-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    min-width: 0;
    font-size: 12px;
    color: #6d6e7c;
}
.kununu-section .kununu-company {
    min-width: 0;
    max-width: 380px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.kununu-section .kununu-meta-sep {
    width: 1px;
    height: 14px;
    background: #cecfd3;
}

.kununu-section .kununu-empty {
    padding: 48px 16px;
    text-align: center;
}
.kununu-section .kununu-empty i {
    font-size: 20px;
    color: #c4c4c4;
}
.kununu-section .kununu-empty-title {
    margin: 12px 0 4px;
    font-size: 13px;
    font-weight: 700;
    color: #27233a;
}
.kununu-section .kununu-empty-text {
    margin: 0;
    font-size: 12px;
    color: #6d6e7c;
}

.kununu-section .kununu-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-bottom: 1px solid #efeee9;
}
.kununu-section .kununu-kpi-item {
    padding: 18px 24px;
    border-left: 1px solid #efeee9;
}
.kununu-section .kununu-kpi-item:first-child {
    border-left: none;
}
.kununu-section .kununu-kpi-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.kununu-section .kununu-kpi-swatch {
    width: 14px;
    height: 3px;
    border-radius: 2px;
    flex: none;
}
.kununu-section .kununu-kpi-label {
    font-size: 12px;
    font-weight: 500;
    color: #6d6e7c;
    white-space: nowrap;
}
.kununu-section .kununu-kpi-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.kununu-section .kununu-kpi-reviews {
    font-size: 12px;
    color: #9a9ba6;
    margin-top: 4px;
}

.kununu-section .kununu-columns {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 32px;
    padding: 24px;
}
.kununu-section .kununu-table-col {
    flex: 38 1 320px;
    min-width: 0;
}
.kununu-section .kununu-chart-col {
    flex: 62 1 360px;
    min-width: 0;
}
.kununu-section .kununu-col-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.kununu-section .kununu-col-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #27233a;
}
.kununu-section .kununu-stand,
.kununu-section .kununu-range {
    font-size: 12px;
    color: #6d6e7c;
    white-space: nowrap;
}

.kununu-section .kununu-table {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px 56px 104px;
    font-size: 13px;
    align-items: center;
    border: 1px solid #efeee9;
    border-radius: 8px;
    overflow: hidden;
}
.kununu-section .kununu-table-row {
    display: contents;
}
.kununu-section .kununu-table-head > div {
    background: #faf6ee;
    padding: 9px 10px;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #27233a;
    white-space: nowrap;
}
.kununu-section .kununu-table-head > div:not(:first-child) {
    text-align: right;
}
.kununu-section .kununu-metric-label,
.kununu-section .kununu-metric-score,
.kununu-section .kununu-metric-reviews,
.kununu-section .kununu-metric-average {
    padding: 11px 10px;
    border-top: 1px solid #efeee9;
}
.kununu-section .kununu-metric-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #27233a;
}
.kununu-section .kununu-metric-label span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kununu-section .kununu-swatch {
    width: 8px;
    height: 2px;
    border-radius: 1px;
    flex: none;
}
.kununu-section .kununu-metric-score {
    text-align: right;
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #27233a;
}
.kununu-section .kununu-metric-reviews,
.kununu-section .kununu-metric-average {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: #6d6e7c;
}
.kununu-section .kununu-footnote {
    margin: 10px 0 0;
    font-size: 11px;
    line-height: 1.45;
    color: #9a9ba6;
}

.kununu-section .kununu-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}
.kununu-section .kununu-axis-label {
    font: 11px "Inter", sans-serif;
    fill: #9a9a9a;
}
.kununu-section .kununu-gridline-base {
    stroke: #cecfd3;
    stroke-width: 1;
}
.kununu-section .kununu-gridline-minor {
    stroke: #ededed;
    stroke-width: 1;
}

.kununu-section .kununu-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 12px;
}
.kununu-section .kununu-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6d6e7c;
}
.kununu-section .kununu-legend-swatch {
    width: 14px;
    height: 2px;
    border-radius: 1px;
    display: block;
}

@media (max-width: 780px) {
    .kununu-section .kununu-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .kununu-section .kununu-kpi-item {
        display: block;
        border-left: none;
        border-top: 1px solid #efeee9;
    }
    .kununu-section .kununu-kpi-item:nth-child(-n+2) {
        border-top: none;
    }
    .kununu-section .kununu-columns {
        grid-template-columns: 1fr;
    }
    .kununu-section .kununu-table {
        grid-template-columns: minmax(0, 1fr) 56px 44px 95px;
        font-size: 12px;
    }
}

.kununu-point {
    cursor: pointer;
}
.kununu-tooltip {
    position: fixed;
    z-index: 9999;
    transform: translate(-50%, -100%);
    background: #27233a;
    color: #ffffff;
    font: 500 12px "Inter", Arial, Helvetica, sans-serif;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(39, 35, 58, .25);
}
.kununu-tooltip[hidden] {
    display: none;
}
.kununu-tooltip-title {
    font-weight: 700;
    margin-bottom: 4px;
}
.kununu-tooltip-row {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.6;
}
.kununu-tooltip-swatch {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    flex: none;
}
.kununu-tooltip-label {
    flex: 1;
    margin-right: 12px;
}
.kununu-tooltip-value {
    font-variant-numeric: tabular-nums;
}
.kununu-tooltip-foot {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, .2);
}
.kununu-section .kununu-period-guide {
    stroke: #c7c7c7;
    stroke-width: 1;
    stroke-dasharray: 3 3;
    opacity: 0;
}
.kununu-section .kununu-period:hover .kununu-period-guide {
    opacity: 1;
}

/* Gesundheitsmarkt specifics */
.op-title-row h1,
.op-card-title,
.op-identity-name,
.kununu-section .kununu-header h2,
.op-paywall-title {
    font-family: "Darker Grotesque", "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: 0;
}
.op-title-row h1 { font-size: 46px; line-height: 1; }
.op-card-title, .kununu-section .kununu-header h2 { font-size: 24px; line-height: 1.1; }
.op-chart-card .op-card-title { font-size: 21px; line-height: 1.1; }
.op-identity-name { font-size: 24px; line-height: 1.1; }
.op-paywall-title { font-size: 32px; line-height: 1.1; }
/* Map dots for the sectors without a global .marker-* class; colours match $sector_colors. */
.op-map .marker-aop,
.op-map .marker-az { width: 7px; height: 7px; border-radius: 50%; position: absolute; }
.op-map .marker-aop { background: #cca555; }
.op-map .marker-az { background: #9a9ba6; }
/* Kliniken/Rehakliniken key under the portfolio bar chart. */
.op-legend--bars { justify-content: center; padding: 12px 0 0; }

@media (max-width: 1024px) {
    .op-title-row h1 { font-size: 36px; }
}
@media (max-width: 780px) {
    .op-title-row h1 { font-size: 30px; }
    .op-card-title, .op-chart-card .op-card-title, .kununu-section .kununu-header h2 { font-size: 20px; }
    .op-paywall-title { font-size: 26px; }
}
