/* Eagle Marketing — Tarif-Vergleichsmatrix (Layout wie open-lake.de) */

.ol-pricing {
    margin: 3rem auto 0;
    max-width: min(1280px, 96vw);
    padding: 0 clamp(0.5rem, 2vw, 1rem);
}

.ol-pricing__head {
    text-align: center;
    margin-bottom: 2rem;
}

.ol-pricing__head h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 800;
    color: var(--text-heading, #0f172a);
    letter-spacing: -0.02em;
    margin: 0.6rem 0 0.6rem;
}

.ol-pricing__head p {
    color: var(--text-secondary, #475569);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.55;
}

.ol-pricing__tax-note {
    font-size: 0.875rem !important;
    opacity: 0.85;
    margin-top: 0.5rem !important;
}

.ol-pricing__from-price {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary, #475569);
    margin: 0 0 1.1rem;
    line-height: 1.4;
}

.ol-pricing__from-row {
    display: block;
}

.ol-pricing__from-row[hidden] {
    display: none !important;
}

.ol-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0e7490;
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}

[data-theme="dark"] .ol-eyebrow {
    color: #67e8f9;
    background: #164e63;
    border-color: #0e7490;
}

.ol-pricing--matrix .ol-pricing__body {
    margin-top: 0.5rem;
}

.ol-pricing__more {
    text-align: center;
    margin: 1.5rem 0 0;
}

.ol-pricing__more a {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0e7490;
    text-decoration: none;
}

.ol-pricing__more a:hover {
    text-decoration: underline;
}

/* ---- Matrix wrap & toggle ---- */
.ol-matrix-wrap {
    margin: 0;
    width: 100%;
}

.ol-matrix-toggle {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 4px;
    margin: 0 auto 1.25rem;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .ol-matrix-toggle {
    background: #1e293b;
    border-color: #334155;
}

.ol-matrix-wrap > .ol-matrix-toggle {
    display: flex;
    width: max-content;
    margin-left: auto;
    margin-right: auto;
}

.ol-matrix-toggle__btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: #475569;
    font: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
}

[data-theme="dark"] .ol-matrix-toggle__btn {
    color: #94a3b8;
}

.ol-matrix-toggle__btn:hover {
    color: #0f172a;
}

[data-theme="dark"] .ol-matrix-toggle__btn:hover {
    color: #f1f5f9;
}

.ol-matrix-toggle__btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.ol-matrix-toggle__btn.is-active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.10);
}

[data-theme="dark"] .ol-matrix-toggle__btn.is-active {
    background: #334155;
    color: #f8fafc;
}

.ol-matrix-toggle__save {
    background: #14b8a6;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.ol-matrix-wrap.is-monthly [data-billing="yearly"] { display: none !important; }
.ol-matrix-wrap.is-yearly  [data-billing="monthly"] { display: none !important; }

.ol-matrix__price-row[hidden],
.ol-pricing__from-row[hidden] {
    display: none !important;
}

.ol-matrix-scroll {
    overflow-x: auto;
    padding-top: 14px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    background: var(--bg-surface, #ffffff);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.ol-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    color: var(--text-heading, #0f172a);
    text-align: center;
    min-width: 720px;
}

.ol-matrix th,
.ol-matrix td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color, #f1f5f9);
    border-right: 1px solid var(--border-color, #f1f5f9);
    vertical-align: middle;
}

.ol-matrix th:last-child,
.ol-matrix td:last-child {
    border-right: none;
}

.ol-matrix__rowhead {
    text-align: left;
    font-weight: 500;
    color: var(--text-primary, #334155);
    background: var(--bg-muted, #fafbfc);
    width: 32%;
    min-width: 220px;
}

.ol-matrix__row-tag {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0e7490;
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
}

.ol-matrix__cell--agency {
    background: #f0f9ff;
}

.ol-matrix__cell.is-featured.ol-matrix__cell--agency {
    background: #ccfbf1;
}

[data-theme="dark"] .ol-matrix__cell--agency {
    background: #0c4a6e;
}

[data-theme="dark"] .ol-matrix__cell.is-featured.ol-matrix__cell--agency {
    background: #115e59;
}

.ol-matrix__rowhead--top {
    background: var(--bg-surface, #ffffff);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ol-matrix__col {
    background: var(--bg-surface, #ffffff);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    padding: 1rem 0.85rem 1.1rem;
    position: relative;
    vertical-align: top;
    min-width: 160px;
}

.ol-matrix__plan-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 15.5rem;
    height: 100%;
    text-align: center;
}

.ol-matrix__plan-badge-slot {
    flex: 0 0 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.15rem;
}

.ol-matrix__col.is-featured {
    background: linear-gradient(180deg, #f0fdfa 0%, var(--bg-surface, #ffffff) 100%);
    border-bottom-color: #14b8a6;
}

[data-theme="dark"] .ol-matrix__col.is-featured {
    background: linear-gradient(180deg, #134e4a 0%, var(--bg-surface, #1e293b) 100%);
}

.ol-matrix__badge {
    display: inline-block;
    background: #14b8a6;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.2;
}

.ol-matrix__plan-name {
    flex: 0 0 auto;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading, #0f172a);
    margin: 0 0 0.35rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.ol-matrix__plan-desc {
    flex: 0 0 auto;
    width: 100%;
    min-height: 2.75em;
    font-size: 0.78rem;
    color: var(--text-secondary, #64748b);
    margin: 0 0 0.5rem;
    line-height: 1.375;
    font-weight: 400;
}

.ol-matrix__plan-price {
    flex: 0 0 auto;
    min-height: 2.85rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    align-items: center;
    justify-content: center;
}

.ol-matrix__price-row {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    line-height: 1;
}

.ol-matrix__price-amount {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-heading, #0f172a);
    letter-spacing: -0.02em;
}

.ol-matrix__price-period {
    font-size: 0.78rem;
    color: var(--text-secondary, #64748b);
    font-weight: 500;
}

.ol-matrix__plan-trial {
    font-size: 0.72rem;
    color: #0e7490;
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    display: inline-block;
    font-weight: 500;
}

.ol-matrix__plan-trial-slot {
    flex: 0 0 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.ol-matrix__plan-cta-slot {
    flex: 1 1 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    padding-top: 0.65rem;
}

.ol-matrix__cta {
    display: inline-block;
    margin-top: 0;
    padding: 0.55rem 1rem;
    background: #f8fafc;
    color: #0f172a !important;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ol-matrix__cta:hover {
    background: #0f172a;
    color: #faff45 !important;
    border-color: #0f172a;
}

.ol-matrix__col.is-featured .ol-matrix__cta {
    background: #0f172a;
    color: #faff45 !important;
    border-color: #0f172a;
}

.ol-matrix__col.is-featured .ol-matrix__cta:hover {
    background: #111827;
}

.ol-matrix__group-head {
    text-align: left;
    background: var(--bg-muted, #f1f5f9);
    color: var(--text-heading, #0f172a);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.55rem 0.85rem;
    border-top: 1px solid var(--border-color, #e2e8f0);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.ol-matrix__cell {
    background: var(--bg-surface, #ffffff);
    color: var(--text-heading, #0f172a);
    font-size: 0.92rem;
    font-weight: 500;
}

.ol-matrix__cell.is-featured {
    background: #f0fdfa;
}

[data-theme="dark"] .ol-matrix__cell.is-featured {
    background: #134e4a;
}

.ol-matrix__row:hover .ol-matrix__rowhead { background: var(--bg-muted, #f1f5f9); }
.ol-matrix__row:hover .ol-matrix__cell:not(.is-featured) { background: var(--bg-muted, #fafbfc); }

.ol-matrix__bool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.ol-matrix__bool svg { width: 14px; height: 14px; display: block; }
.ol-matrix__bool--on  { background: #d1fae5; color: #047857; }
.ol-matrix__bool--off { background: #f1f5f9; color: #94a3b8; }

.ol-matrix__num {
    font-weight: 700;
    color: var(--text-heading, #0f172a);
    font-variant-numeric: tabular-nums;
}

.ol-matrix__num--inf {
    color: #1d4ed8;
    font-weight: 700;
}

.ol-matrix__num--none {
    color: #cbd5e1;
    font-weight: 500;
}

@media (max-width: 640px) {
    .ol-matrix { font-size: 0.85rem; min-width: 520px; }
    .ol-matrix__plan-name { font-size: 0.95rem; }
    .ol-matrix__price-amount { font-size: 1.15rem; }
    .ol-matrix-toggle__btn { font-size: 0.85rem; padding: 0.45rem 0.85rem; }
}

.ol-matrix-wrap--compact .ol-matrix { font-size: 0.88rem; }
.ol-matrix-wrap--compact .ol-matrix th,
.ol-matrix-wrap--compact .ol-matrix td { padding: 0.5rem 0.75rem; }
.ol-matrix-wrap--compact .ol-matrix__col {
    padding: 0.85rem 0.75rem 0.95rem;
    min-width: 140px;
}
.ol-matrix-wrap--compact .ol-matrix__col.is-featured {
    padding-top: 1.2rem;
}
.ol-matrix-wrap--compact .ol-matrix__plan-name { font-size: 0.95rem; }
.ol-matrix-wrap--compact .ol-matrix__plan-desc { display: none; }
.ol-matrix-wrap--compact .ol-matrix__price-amount { font-size: 1.2rem; }
.ol-matrix-wrap--compact .ol-matrix__rowhead { min-width: 180px; width: 28%; }
.ol-matrix-wrap--compact .ol-matrix__cta {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
}

/* ---- Add-ons block unter der Matrix ---- */
.ol-pricing-addons {
    margin-top: 2rem;
    padding: 1.25rem 1.35rem 1.1rem;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    background: var(--bg-muted, #f8fafc);
}

.ol-pricing-addons__title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading, #0f172a);
}

.ol-pricing-addons__lead {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: var(--text-secondary, #64748b);
}

.ol-pricing-addons__category {
    margin-bottom: 1.35rem;
}

.ol-pricing-addons__category:last-child {
    margin-bottom: 0;
}

.ol-pricing-addons__category-title {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary, #64748b);
}

.ol-pricing-addons__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 720px) {
    .ol-pricing-addons__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ol-pricing-addons__item {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
}

.ol-pricing-addons__item-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
}

.ol-pricing-addons__name {
    font-size: 0.95rem;
    color: var(--text-heading, #0f172a);
}

.ol-pricing-addons__price {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0e7490;
    white-space: nowrap;
}

.ol-pricing-addons__desc {
    margin: 0.45rem 0 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--text-secondary, #64748b);
}

.ol-pricing-addons__tag {
    display: inline-block;
    margin-top: 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}

/* ---- Dark mode: Matrix lesbar (Token + hart kodierte Light-Fallbacks) ---- */
[data-theme="dark"] .ol-matrix-scroll {
    background: var(--bg-surface);
    border-color: var(--border-color);
    box-shadow: var(--card-shadow);
}

[data-theme="dark"] .ol-matrix {
    color: var(--text-heading);
}

[data-theme="dark"] .ol-matrix th,
[data-theme="dark"] .ol-matrix td {
    border-color: var(--border-color);
}

[data-theme="dark"] .ol-matrix__rowhead {
    background: var(--bg-muted);
    color: var(--text-primary);
}

[data-theme="dark"] .ol-matrix__rowhead--top {
    background: var(--bg-surface-2);
    color: var(--text-muted);
    border-color: var(--border-color);
}

[data-theme="dark"] .ol-matrix__group-head {
    background: var(--bg-surface-2);
    color: var(--text-heading);
    border-color: var(--border-color);
}

[data-theme="dark"] .ol-matrix__col {
    background: var(--bg-surface);
    border-color: var(--border-color);
}

[data-theme="dark"] .ol-matrix__cell {
    background: var(--bg-surface);
    color: var(--text-heading);
}

[data-theme="dark"] .ol-matrix__row:hover .ol-matrix__rowhead {
    background: var(--bg-surface-3);
}

[data-theme="dark"] .ol-matrix__row:hover .ol-matrix__cell:not(.is-featured):not(.ol-matrix__cell--agency) {
    background: var(--bg-surface-2);
}

[data-theme="dark"] .ol-matrix__row-tag {
    color: #67e8f9;
    background: #164e63;
    border-color: #0e7490;
}

[data-theme="dark"] .ol-matrix__plan-trial {
    color: #67e8f9;
    background: #164e63;
    border-color: #0e7490;
}

[data-theme="dark"] .ol-matrix__cta {
    background: var(--bg-surface-2);
    color: var(--text-heading) !important;
    border-color: var(--border-color);
}

[data-theme="dark"] .ol-matrix__cta:hover {
    background: var(--text-heading);
    color: var(--bg-app) !important;
    border-color: var(--text-heading);
}

[data-theme="dark"] .ol-matrix__col.is-featured .ol-matrix__cta {
    background: #faff45;
    color: #0f172a !important;
    border-color: #faff45;
}

[data-theme="dark"] .ol-matrix__bool--on {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

[data-theme="dark"] .ol-matrix__bool--off {
    background: var(--bg-surface-3);
    color: var(--text-muted);
}

[data-theme="dark"] .ol-matrix__num--inf {
    color: #93c5fd;
}

[data-theme="dark"] .ol-matrix__num--none {
    color: var(--text-muted);
}

[data-theme="dark"] .ol-pricing-addons {
    background: var(--bg-surface-2);
    border-color: var(--border-color);
}

[data-theme="dark"] .ol-pricing-addons__item {
    background: var(--bg-surface);
    border-color: var(--border-color);
}

[data-theme="dark"] .ol-pricing-addons__price {
    color: #67e8f9;
}

[data-theme="dark"] .ol-pricing-addons__tag {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
}

[data-theme="dark"] .ol-pricing__more a {
    color: #67e8f9;
}

/* ---- Homepage teaser (plan cards, no matrix) ---- */
.ol-pricing--teaser .ol-pricing__body {
    margin-top: 0.5rem;
}

.ol-pricing-teaser__grid {
    margin-top: 1.25rem;
    align-items: stretch;
}

.plan-card--teaser {
    min-height: 100%;
    padding: 1.35rem 1.25rem 1.2rem;
}

.plan-card--teaser .plan-card__tagline {
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--text-secondary, #64748b);
    font-weight: 500;
}

.plan-card--teaser.plan-card--featured .plan-card__tagline {
    color: var(--accent, #2563eb);
}

.plan-card__bullets {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1 1 auto;
}

.plan-card__bullets li {
    position: relative;
    padding-left: 1.35rem;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--text-primary, #1e293b);
}

.plan-card__bullets li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.05rem;
    font-weight: 700;
    color: #16a34a;
}

.plan-card__price-block {
    border-top: 1px solid var(--border-color, #e2e8f0);
    padding-top: 0.95rem;
    margin-top: auto;
}

.plan-card--teaser .plan-card__price {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.plan-card--teaser .plan-card__price strong {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-heading, #0f172a);
}

.plan-card--teaser .plan-card__price-row {
    display: block;
    margin: 0;
}

.plan-card--teaser .plan-card__trial {
    margin: 0 0 0.75rem;
}

.plan-card--teaser .plan-card__cta {
    margin-top: 0.25rem;
}

.ol-pricing--teaser .ol-pricing__more .btn {
    min-width: min(100%, 320px);
}

@media (max-width: 640px) {
    .ol-pricing-teaser__grid {
        grid-template-columns: 1fr;
    }
}
