/* ================================
   GLOBAL SPACING & SECTION STYLES
   ================================ */

.content-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 20px;
}

.content-section h2 {
    font-size: 2.1rem;
    margin-bottom: 25px;
    color: #002b45;
}

.content-section p,
.content-section ul {
    font-size: 1.08rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 18px;
}

.content-section ul {
    padding-left: 22px;
}

.info-box {
    background: #eef5fa;
    border-left: 4px solid #0074a2;
    padding: 15px 20px;
    border-radius: 4px;
    margin-top: 25px;
    font-size: 1rem;
}

.hint {
    font-style: italic;
    margin-top: 10px;
    color: #555;
}

/* ================================
   TABLE STYLING
   ================================ */

.table-wrapper {
    overflow-x: auto;
    margin-top: 25px;
    margin-bottom: 45px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* ================================================
   Tabellenkopf (Corporate Blue, gut sichtbar)
   ================================================ */
.legal-content .pricing-table thead,
.legal-content .pricing-table thead tr,
.legal-content .pricing-table thead th {
    background: #0052A3 !important;
    /* kräftiges CI-Blau */
    color: #ffffff !important;
}

.legal-content .pricing-table thead th {
    padding: 14px 18px;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff !important;
}

/* Entfernt grauen "Overlay"-Rand */
.legal-content .pricing-table thead th {
    border-bottom: none !important;
}

/* Body-Zeilen */
.pricing-table tbody tr:nth-child(even) {
    background: #f7f9fb;
}

.pricing-table tbody td {
    padding: 14px 18px;
    font-size: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.pricing-table td strong {
    color: #003957;
}

/* Highlight rows (e.g., package comparisons) */
.pricing-table tr.highlight,
.pricing-table tr.highlight td {
    background: #fff4d6;
    font-weight: 600;
}

/* ================================
   PACKAGE BOXES
   ================================ */

.package {
    background: #ffffff;
    border: 1px solid #d7e2ea;
    border-radius: 8px;
    padding: 0px 25px 12px 25px;
    margin-bottom: 35px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.package h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: #003957;
}

.package ul {
    padding-left: 22px;
    margin-top: 10px;
}

.package ul li {
    margin-bottom: 8px;
}

/* =========================================================
   CTA-BEREICH – identisch mit dem Stil der Startseite
   ========================================================= */

.pricing-cta-wrapper {
    max-width: 1100px;
    margin: 60px auto 80px;
    padding: 0 20px;
}

.pricing-cta-line {
    height: 3px;
    background: #cfe8ff;
    margin-bottom: 28px;
    border-radius: 2px;
}

.pricing-cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pricing-cta-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    text-align: right;
    flex: 1;
}

.pricing-cta-button {
    background: #0052a3;
    color: #ffffff !important;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 82, 163, 0.25);
    white-space: nowrap;
}

.pricing-cta-button:hover {
    background: #003f7d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 82, 163, 0.35);
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 768px) {
    .content-section {
        padding: 45px 15px;
    }

    .content-section h2 {
        font-size: 1.7rem;
    }

    .pricing-table {
        min-width: 600px;
    }

    .package {
        padding: 20px;
    }

    .pricing-cta-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .content-section h2 {
        font-size: 1.55rem;
    }

    .pricing-cta-button {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }
}

/* =========================================================
   FIRE SECTION (Projektfeuerwehr / High-Impact Leistungen)
   ========================================================= */

.legal-content .fire-section {
    background: #FFE8C7 !important;
    border-left: 6px solid #FFB871 !important;
    padding: 28px !important;
    border-radius: 10px !important;
    margin: 45px 0 !important;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08) !important;
}

.legal-content .fire-section h2 {
    color: #8A4800 !important;
}

.legal-content .fire-section .pricing-table thead {
    background: #FFB871 !important;
}

/* ============================================================
   KORREKTER HEADER FIX (kein doppelter Header mehr)
   ============================================================ */

/* NUR echte Kopfzeile bleibt blau */
.legal-content table.pricing-table thead tr,
.legal-content table.pricing-table thead th {
    background: #0052A3 !important;
    color: #ffffff !important;
}

/* erste Datenzeile NICHT blau */
.legal-content table.pricing-table tbody tr:first-child td {
    background: #ffffff !important;
    color: inherit !important;
    font-weight: normal !important;
}

/* =========================================================
   Legacy helper styles (from assets/css/pricing.css)
   ========================================================= */
.pricing-wrapper {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.hero .hero-content .lead {
    margin-top: 6px;
    color: var(--gray-700);
    font-size: 1.05rem;
}

.pricing-section {
    margin: 28px 0;
}

.pricing-section h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.pricing-section p {
    color: var(--gray-700);
    margin-bottom: 14px;
}

.pricing-firefighter {
    margin: 28px 0;
}

.pricing-firefighter .firefighter-inner {
    background: #fff4d6;
    border-left: 6px solid #ffa500;
    padding: 22px 28px;
    border-radius: 10px;
}

.pricing-firefighter h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

.pricing-firefighter .lead {
    margin-bottom: 12px;
    color: var(--gray-800);
}

.pricing-firefighter .pricing-table td,
.pricing-firefighter .pricing-table th {
    background: transparent;
    border-color: rgba(0, 0, 0, 0.04);
}

.pricing-firefighter .cta .cta-big-btn {
    margin-top: 12px;
}

@media (max-width: 900px) {
    .pricing-wrapper {
        padding: 0 16px;
    }
}
