/* =====================================================
   UNBROKEN — Article Content System
   Applies to: blog posts, glossar single, glossar hub
   Scoped via body classes — no global side effects
   ===================================================== */

/* ── Selector groups ────────────────────────────────────
   blog posts  → body.single-blog-posts
   glossar     → body.single-glossar
   hub         → body.page .ub-glossar-hub (shortcode wrapper)
   All three share the same design tokens.
   ──────────────────────────────────────────────────── */

body.single-blog-posts,
body.single-glossar {
    --ub-black:         #111111;
    --ub-dark:          #181818;
    --ub-charcoal:      #242424;
    --ub-orange:        #ff4f16;
    --ub-orange-soft:   #fff0ea;
    --ub-light:         #f7f7f7;
    --ub-border:        #e6e6e6;
    --ub-muted:         #666666;
    --ub-shadow:        0 18px 45px rgba(0, 0, 0, 0.10);
    --ub-radius:        14px;
}


/* =====================================================
   COMPARISON TABLE
   ===================================================== */

body.single-blog-posts .comparison-table-wrapper,
body.single-glossar .comparison-table-wrapper {
    width: 100%;
    padding: 44px 0;
    overflow-x: auto;
}

body.single-blog-posts .comparison-table,
body.single-glossar .comparison-table {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #ffffff;
    box-shadow: var(--ub-shadow);
    border-radius: var(--ub-radius);
    overflow: hidden;
    border: 1px solid var(--ub-border);
}

body.single-blog-posts .comparison-table thead,
body.single-glossar .comparison-table thead {
    background: linear-gradient(135deg, #111111 0%, #242424 60%, #ff4f16 160%);
    text-align: left;
}

body.single-blog-posts .comparison-table thead th,
body.single-blog-posts .comparison-table thead td,
body.single-glossar .comparison-table thead th,
body.single-glossar .comparison-table thead td {
    padding: 22px 20px;
    color: #ffffff;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

body.single-blog-posts .comparison-table thead th:last-child,
body.single-blog-posts .comparison-table thead td:last-child,
body.single-glossar .comparison-table thead th:last-child,
body.single-glossar .comparison-table thead td:last-child {
    border-right: none;
}

body.single-blog-posts .comparison-table thead h3,
body.single-glossar .comparison-table thead h3 {
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
}

body.single-blog-posts .comparison-table thead p,
body.single-glossar .comparison-table thead p {
    color: rgba(255, 255, 255, 0.86);
    margin: 0;
}

body.single-blog-posts .comparison-table td,
body.single-glossar .comparison-table td {
    padding: 18px;
    vertical-align: top;
    border-bottom: 1px solid var(--ub-border);
}

body.single-blog-posts .comparison-table tbody tr:last-child td,
body.single-glossar .comparison-table tbody tr:last-child td {
    border-bottom: none;
}

body.single-blog-posts .comparison-table td:first-child,
body.single-glossar .comparison-table td:first-child {
    border-right: 1px solid var(--ub-border);
}

body.single-blog-posts .comparison-table ul,
body.single-glossar .comparison-table ul {
    margin: 0;
    padding-left: 18px;
}

body.single-blog-posts .comparison-table li,
body.single-glossar .comparison-table li {
    margin-bottom: 8px;
    line-height: 1.55;
}

body.single-blog-posts .comparison-table li::marker,
body.single-glossar .comparison-table li::marker {
    color: var(--ub-orange);
}

body.single-blog-posts .comparison-table li:last-child,
body.single-glossar .comparison-table li:last-child {
    margin-bottom: 0;
}

/* Mobile table */
@media screen and (max-width: 749px) {
    body.single-blog-posts .comparison-table-wrapper,
    body.single-glossar .comparison-table-wrapper {
        padding: 30px 0;
        overflow-x: visible;
    }

    body.single-blog-posts .comparison-table,
    body.single-blog-posts .comparison-table thead,
    body.single-blog-posts .comparison-table tbody,
    body.single-blog-posts .comparison-table tr,
    body.single-blog-posts .comparison-table th,
    body.single-blog-posts .comparison-table td,
    body.single-glossar .comparison-table,
    body.single-glossar .comparison-table thead,
    body.single-glossar .comparison-table tbody,
    body.single-glossar .comparison-table tr,
    body.single-glossar .comparison-table th,
    body.single-glossar .comparison-table td {
        display: block;
        width: 100%;
    }

    body.single-blog-posts .comparison-table thead th,
    body.single-blog-posts .comparison-table thead td,
    body.single-glossar .comparison-table thead th,
    body.single-glossar .comparison-table thead td {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    body.single-blog-posts .comparison-table td:first-child,
    body.single-glossar .comparison-table td:first-child {
        border-right: none;
        border-bottom: 1px solid var(--ub-border);
    }
}


/* =====================================================
   CARD SYSTEM
   ===================================================== */

body.single-blog-posts .card-container,
body.single-glossar .card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: 44px 0;
    align-items: stretch;
}

body.single-blog-posts .card-container > .info-card,
body.single-glossar .card-container > .info-card {
    flex: 1 1 300px;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    height: auto;
}

@media screen and (min-width: 990px) {
    body.single-blog-posts .card-container > .info-card,
    body.single-glossar .card-container > .info-card {
        flex: 1 1 calc(33.333% - 22px);
    }
}

body.single-blog-posts .info-card,
body.single-glossar .info-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: var(--ub-radius);
    padding: 24px;
    box-shadow: var(--ub-shadow);
    border: 1px solid var(--ub-border);
    border-top: 5px solid var(--ub-orange);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

body.single-blog-posts .info-card::before,
body.single-glossar .info-card::before {
    content: "";
    position: absolute;
    top: -42px;
    right: -42px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(255, 79, 22, 0.08);
}

body.single-blog-posts .info-card::after,
body.single-glossar .info-card::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 20px;
    width: 32px;
    height: 3px;
    background: var(--ub-orange);
    border-radius: 999px;
    opacity: 0.85;
}

body.single-blog-posts .info-card h3,
body.single-glossar .info-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--ub-black);
    letter-spacing: -0.02em;
}

body.single-blog-posts .info-card p,
body.single-glossar .info-card p {
    margin: 0;
    line-height: 1.65;
    color: var(--ub-muted);
}


/* =====================================================
   HIGHLIGHT BOX (light)
   ===================================================== */

body.single-blog-posts .highlight-box,
body.single-glossar .highlight-box {
    border-radius: var(--ub-radius);
    padding: 24px;
    margin: 34px 0;
    box-shadow: var(--ub-shadow);
    background: linear-gradient(90deg, rgba(255, 79, 22, 0.08), rgba(255, 255, 255, 0.96) 34%);
    border: 1px solid var(--ub-border);
    border-left: 5px solid var(--ub-orange);
}

body.single-blog-posts .highlight-box h3,
body.single-glossar .highlight-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--ub-black);
    letter-spacing: -0.02em;
}

body.single-blog-posts .highlight-box p,
body.single-glossar .highlight-box p {
    margin: 0;
    line-height: 1.65;
    color: var(--ub-muted);
}


/* =====================================================
   HIGHLIGHT BOX 2 (dark)
   ===================================================== */

body.single-blog-posts .highlight-box2,
body.single-glossar .highlight-box2 {
    position: relative;
    border-radius: var(--ub-radius);
    padding: 28px;
    margin: 36px 0;
    box-shadow: var(--ub-shadow);
    background: radial-gradient(circle at top right, rgba(255, 79, 22, 0.36), transparent 34%),
                linear-gradient(135deg, #111111 0%, #181818 58%, #2a120a 100%);
    color: #ffffff;
    overflow: hidden;
}

body.single-blog-posts .highlight-box2::before,
body.single-glossar .highlight-box2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 24px;
    bottom: 24px;
    width: 5px;
    background: var(--ub-orange);
    border-radius: 0 999px 999px 0;
}

body.single-blog-posts .highlight-box2 h3,
body.single-glossar .highlight-box2 h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

body.single-blog-posts .highlight-box2 p,
body.single-glossar .highlight-box2 p {
    margin: 0;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.86);
}


/* =====================================================
   STRATEGY SECTION
   ===================================================== */

body.single-blog-posts .strategy-section,
body.single-glossar .strategy-section {
    border-radius: var(--ub-radius);
    padding: 24px;
    margin: 34px 0;
    box-shadow: var(--ub-shadow);
    background: linear-gradient(180deg, #f7f7f7 0%, #ffffff 100%);
    border: 1px solid var(--ub-border);
    border-left: 5px solid var(--ub-orange);
}

body.single-blog-posts .strategy-section h3,
body.single-glossar .strategy-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--ub-black);
    letter-spacing: -0.02em;
}

body.single-blog-posts .strategy-section p,
body.single-glossar .strategy-section p {
    margin: 0;
    line-height: 1.65;
    color: var(--ub-muted);
}

body.single-blog-posts .strategy-section ul,
body.single-glossar .strategy-section ul {
    margin-top: 12px;
    margin-bottom: 0;
    padding-left: 18px;
}

body.single-blog-posts .strategy-section ol,
body.single-glossar .strategy-section ol {
    margin-top: 12px;
    margin-bottom: 0;
    padding-left: 18px;
}

body.single-blog-posts .strategy-section li,
body.single-glossar .strategy-section li {
    margin-bottom: 7px;
    line-height: 1.55;
}

body.single-blog-posts .strategy-section li::marker,
body.single-glossar .strategy-section li::marker {
    color: var(--ub-orange);
}

body.single-blog-posts .strategy-section li:last-child,
body.single-glossar .strategy-section li:last-child {
    margin-bottom: 0;
}


/* =====================================================
   LINKS AND STRONG TEXT
   ===================================================== */

body.single-blog-posts .highlight-box strong,
body.single-blog-posts .strategy-section strong,
body.single-blog-posts .info-card strong,
body.single-glossar .highlight-box strong,
body.single-glossar .strategy-section strong,
body.single-glossar .info-card strong {
    color: var(--ub-black);
}

body.single-blog-posts .highlight-box2 strong,
body.single-glossar .highlight-box2 strong {
    color: #ffffff;
}

body.single-blog-posts .highlight-box a,
body.single-blog-posts .strategy-section a,
body.single-blog-posts .info-card a,
body.single-glossar .highlight-box a,
body.single-glossar .strategy-section a,
body.single-glossar .info-card a {
    color: var(--ub-orange);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

body.single-blog-posts .highlight-box2 a,
body.single-glossar .highlight-box2 a {
    color: #ffffff;
    text-decoration-color: var(--ub-orange);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}


/* =====================================================
   MOBILE SPACING
   ===================================================== */

@media screen and (max-width: 749px) {
    body.single-blog-posts .card-container,
    body.single-glossar .card-container {
        gap: 16px;
        margin: 30px 0;
    }

    body.single-blog-posts .info-card,
    body.single-blog-posts .highlight-box,
    body.single-blog-posts .highlight-box2,
    body.single-blog-posts .strategy-section,
    body.single-glossar .info-card,
    body.single-glossar .highlight-box,
    body.single-glossar .highlight-box2,
    body.single-glossar .strategy-section {
        padding: 20px;
        border-radius: 12px;
    }

    body.single-blog-posts .info-card::after,
    body.single-glossar .info-card::after {
        width: 26px;
        right: 18px;
    }
}
