/* ============================================================
   Gewerbehelfer Pricing Tables v2 – Frontend CSS
   Keine externen Abhängigkeiten, keine Google Fonts.
   Hauptfarbe: #cf2e2e
   ============================================================ */

:root {
    --gh-red:        #cf2e2e;
    --gh-red-light:  #fdf0f0;
    --gh-red-hover:  #b52828;
    --gh-border:     #e2e2e2;
    --gh-bg:         #f7f7f7;
    --gh-text:       #1a202c;
    --gh-muted:      #718096;
    --gh-radius:     10px;
    --gh-font:       -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                     "Helvetica Neue", Arial, sans-serif;
}

/* ── Äußerer Wrapper ─────────────────────────────────────── */
.gh-pricing-outer {
    margin: 40px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Tabellen-Grid ───────────────────────────────────────── */
.gh-pricing-table {
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1.5px solid var(--gh-red);
    border-radius: var(--gh-radius);
    overflow: hidden;
    font-family: var(--gh-font);
    min-width: 480px;
    background: #fff;
}

/* ── Kopfzeile ───────────────────────────────────────────── */
.gh-pt-head {
    display: grid;
    grid-template-columns: 200px repeat(var(--gh-cols), 1fr);
    border-bottom: 2px solid var(--gh-red);
}

.gh-pt-feature-label {
    background: var(--gh-bg);
    padding: 18px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gh-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-right: 1px solid var(--gh-border);
    display: flex;
    align-items: flex-end;
}

.gh-pt-col-head {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-right: 1px solid var(--gh-border);
    background: #fff;
}

.gh-pt-col-head:last-child {
    border-right: none;
}

.gh-pt-col-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gh-text);
}

/* ── Preis ───────────────────────────────────────────────── */
.gh-pt-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 3px;
    flex-wrap: wrap;
}

.gh-pt-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gh-text);
    line-height: 1;
}

.gh-pt-currency {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gh-muted);
}

.gh-pt-period {
    font-size: 0.82rem;
    color: var(--gh-muted);
    margin-left: 2px;
}

.gh-pt-on-request {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gh-red);
}

/* ── Buttons ─────────────────────────────────────────────── */
.gh-pt-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 9px 14px;
    border-radius: 6px;
    border: 2px solid var(--gh-red);
    background: transparent;
    color: var(--gh-red);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.gh-pt-btn:hover,
.gh-pt-btn:focus {
    background: var(--gh-red);
    color: #fff;
    text-decoration: none;
    outline: none;
}

.gh-pt-btn--filled {
    background: var(--gh-red);
    color: #fff;
}

.gh-pt-btn--filled:hover,
.gh-pt-btn--filled:focus {
    background: var(--gh-red-hover);
    border-color: var(--gh-red-hover);
    color: #fff;
}

/* ── Feature-Body ────────────────────────────────────────── */
.gh-pt-body {
    display: flex;
    flex-direction: column;
}

.gh-pt-row {
    display: grid;
    grid-template-columns: 200px repeat(var(--gh-cols), 1fr);
    border-top: 1px solid var(--gh-border);
}

.gh-pt-row--even .gh-pt-cell,
.gh-pt-row--even .gh-pt-feature-label {
    background: var(--gh-bg);
}

.gh-pt-row .gh-pt-feature-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gh-text);
    align-items: center;
    display: flex;
}

.gh-pt-cell {
    padding: 13px 16px;
    border-right: 1px solid var(--gh-border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.gh-pt-cell:last-child {
    border-right: none;
}

.gh-pt-row--even .gh-pt-cell {
    background: var(--gh-bg);
}

/* ── Icons ───────────────────────────────────────────────── */
.gh-pt-check,
.gh-pt-cross {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gh-pt-text {
    font-size: 0.88rem;
    color: var(--gh-text);
    font-weight: 500;
    text-align: center;
}

/* ── Fußzeile ─────────────────────────────────────────────── */
.gh-pt-foot {
    display: grid;
    grid-template-columns: 200px repeat(var(--gh-cols), 1fr);
    border-top: 2px solid var(--gh-red);
}

.gh-pt-col-foot {
    padding: 16px 14px;
    border-right: 1px solid var(--gh-border);
    background: #fff;
    display: flex;
    align-items: center;
}

.gh-pt-col-foot:last-child {
    border-right: none;
}

/* ── Fehlermeldung ───────────────────────────────────────── */
.gh-pricing-error {
    color: #c53030;
    font-style: italic;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
    .gh-pt-head,
    .gh-pt-foot,
    .gh-pt-row {
        grid-template-columns: 130px repeat(var(--gh-cols), 1fr);
    }

    .gh-pt-feature-label {
        padding: 12px 10px;
        font-size: 0.78rem;
    }

    .gh-pt-col-head {
        padding: 14px 10px;
    }

    .gh-pt-col-name {
        font-size: 0.88rem;
    }

    .gh-pt-amount {
        font-size: 1.5rem;
    }

    .gh-pt-cell {
        padding: 10px 8px;
    }
}
