/* ============================================================
   blog.css · EILX Blog & Ratgeber
   Nach der style.min.css einbinden.
   ============================================================ */

.eilx-blog,
.eilx-post {
    --b-bg:      #07111f;
    --b-panel:   rgba(255, 255, 255, 0.04);
    --b-line:    rgba(255, 255, 255, 0.09);
    --b-text:    rgba(248, 250, 252, 0.74);
    --b-strong:  #ffffff;
    --b-accent:  #6deee2;
    --b-accent2: #c7d302;

    color: var(--b-text);
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-weight: 300;
    line-height: 1.7;
}

/* ---------- Übersicht ---------- */

.eilx-blog {
    padding: 64px 20px 96px;
}

.eilx-blog__container {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.eilx-blog__head {
    max-width: 680px;
    margin-bottom: 48px;
}

.eilx-blog .eilx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--b-accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eilx-blog .eilx-eyebrow::before {
    content: "";
    width: 42px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--b-accent), var(--b-accent2));
}

.eilx-blog h1 {
    margin: 22px 0 14px;
    color: var(--b-strong);
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.eilx-blog__lead {
    font-size: 18px;
    max-width: 560px;
}

.eilx-blog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.eilx-blog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--b-line);
    border-radius: 20px;
    background: var(--b-panel);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.eilx-blog-card:hover {
    transform: translateY(-3px);
    border-color: rgba(109, 238, 226, 0.35);
}

.eilx-blog-card__link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.eilx-blog-card__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0b1628;
}

.eilx-blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.eilx-blog-card:hover .eilx-blog-card__media img {
    transform: scale(1.04);
}

.eilx-blog-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
}

.eilx-blog-card__cat {
    align-self: flex-start;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(109, 238, 226, 0.1);
    color: var(--b-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eilx-blog-card__title {
    margin: 0;
    color: var(--b-strong);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.eilx-blog-card__teaser {
    margin: 0;
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eilx-blog-card__meta {
    display: flex;
    gap: 14px;
    margin-top: 4px;
    color: rgba(248, 250, 252, 0.5);
    font-size: 13px;
}

.eilx-blog__empty {
    padding: 60px 0;
    text-align: center;
    color: rgba(248, 250, 252, 0.5);
}

/* ---------- Einzelartikel ---------- */

.eilx-post__hero {
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    padding: 40px 20px;
    background: #0b1628 center / cover no-repeat;
}

.eilx-post__hero-inner {
    width: min(820px, 100%);
    margin: 0 auto;
}

.eilx-post__crumbs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: rgba(248, 250, 252, 0.6);
}

.eilx-post__crumbs a {
    color: rgba(248, 250, 252, 0.7);
    text-decoration: none;
}

.eilx-post__crumbs a:hover {
    color: var(--b-accent);
}

.eilx-post__meta {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    font-size: 14px;
    color: rgba(248, 250, 252, 0.7);
}

.eilx-post__meta strong {
    color: var(--b-strong);
    font-weight: 600;
}

.eilx-post__title {
    margin: 0;
    color: var(--b-strong);
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.eilx-post__container {
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 48px 20px 40px;
}

.eilx-post__intro {
    margin: 0 0 32px;
    font-size: 21px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: var(--b-strong);
}

/* Inhalt aus der Datenbank (HTML in body) */
.eilx-post__body {
    font-size: 17px;
}

.eilx-post__body h2 {
    margin: 40px 0 14px;
    color: var(--b-strong);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.eilx-post__body h3 {
    margin: 30px 0 10px;
    color: var(--b-strong);
    font-size: 20px;
    font-weight: 700;
}

.eilx-post__body p {
    margin: 0 0 18px;
}

.eilx-post__body ul,
.eilx-post__body ol {
    margin: 0 0 20px;
    padding-left: 4px;
    list-style: none;
}

.eilx-post__body li {
    position: relative;
    padding: 6px 0 6px 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    display: grid;
}

.eilx-post__body li::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--b-accent);
}

.eilx-post__body strong {
    color: var(--b-strong);
    font-weight: 600;
}

.eilx-post__body a {
    color: var(--b-accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(109, 238, 226, 0.4);
}

.eilx-post__body em {
    display: block;
    margin-top: 30px;
    padding: 16px 20px;
    border-left: 2px solid rgba(109, 238, 226, 0.4);
    background: rgba(109, 238, 226, 0.05);
    font-size: 14px;
    font-style: normal;
    color: rgba(248, 250, 252, 0.65);
}


/* ---------- Tabellen im Blogbeitrag ---------- */

/*
 * Desktop:
 * Tabellen werden bewusst breiter als der normale Fließtext dargestellt.
 *
 * Tablet/Mobil:
 * Die Tabelle behält eine lesbare Mindestbreite und kann horizontal
 * gescrollt werden, statt die Spalten und Wörter zusammenzuquetschen.
 */
.eilx-post__tablewrap {
    position: relative;
    width: min(1280px, calc(100vw - 64px));
    max-width: none;
    margin: 32px 50% 40px;
    transform: translateX(-50%);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(109, 238, 226, 0.55) rgba(255, 255, 255, 0.06);
    border: 1px solid var(--b-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.eilx-post__tablewrap::-webkit-scrollbar {
    height: 8px;
}

.eilx-post__tablewrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
}

.eilx-post__tablewrap::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(109, 238, 226, 0.55);
}

.eilx-post__tablewrap::-webkit-scrollbar-thumb:hover {
    background: rgba(109, 238, 226, 0.8);
}

.eilx-post__body table,
.eilx-post__table {
    width: 100%;
    min-width: 1120px;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    color: var(--b-text);
    background: transparent;
    font-size: 16px;
    line-height: 1.55;
}

.eilx-post__body table th,
.eilx-post__body table td,
.eilx-post__table th,
.eilx-post__table td {
    padding: 20px 22px;
    vertical-align: top;
    text-align: left;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    border-right: 1px solid var(--b-line);
    border-bottom: 1px solid var(--b-line);
}

.eilx-post__body table th:last-child,
.eilx-post__body table td:last-child,
.eilx-post__table th:last-child,
.eilx-post__table td:last-child {
    border-right: 0;
}

.eilx-post__body table tbody tr:last-child td,
.eilx-post__table tbody tr:last-child td {
    border-bottom: 0;
}

.eilx-post__body table thead th,
.eilx-post__table thead th {
    color: var(--b-strong);
    background: rgba(109, 238, 226, 0.09);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.025em;
}

.eilx-post__body table tbody td:first-child,
.eilx-post__table tbody td:first-child {
    color: var(--b-strong);
    background: rgba(255, 255, 255, 0.025);
    font-weight: 700;
    white-space: nowrap;
}

.eilx-post__body table tbody tr:nth-child(even) td,
.eilx-post__table tbody tr:nth-child(even) td {
    background-color: rgba(255, 255, 255, 0.018);
}

.eilx-post__body table tbody tr:hover td,
.eilx-post__table tbody tr:hover td {
    background-color: rgba(109, 238, 226, 0.045);
}

/* Tabellen mit genau zwei Spalten */
.eilx-post__table:has(thead th:nth-child(2):last-child) {
    table-layout: fixed;
}

.eilx-post__table:has(thead th:nth-child(2):last-child) th:nth-child(1),
.eilx-post__table:has(thead th:nth-child(2):last-child) td:nth-child(1) {
    width: 28%;
}

.eilx-post__table:has(thead th:nth-child(2):last-child) th:nth-child(2),
.eilx-post__table:has(thead th:nth-child(2):last-child) td:nth-child(2) {
    width: 72%;
}

/* Tabellen mit genau drei Spalten */
.eilx-post__table:has(thead th:nth-child(3):last-child) {
    table-layout: fixed;
}

.eilx-post__table:has(thead th:nth-child(3):last-child) th:nth-child(1),
.eilx-post__table:has(thead th:nth-child(3):last-child) td:nth-child(1) {
    width: 16%;
}

.eilx-post__table:has(thead th:nth-child(3):last-child) th:nth-child(2),
.eilx-post__table:has(thead th:nth-child(3):last-child) td:nth-child(2) {
    width: 52%;
}

.eilx-post__table:has(thead th:nth-child(3):last-child) th:nth-child(3),
.eilx-post__table:has(thead th:nth-child(3):last-child) td:nth-child(3) {
    width: 32%;
}

/* Tabellen mit genau fünf Spalten */
.eilx-post__table:has(thead th:nth-child(5):last-child) {
    table-layout: fixed;
}

.eilx-post__table:has(thead th:nth-child(5):last-child) th:nth-child(1),
.eilx-post__table:has(thead th:nth-child(5):last-child) td:nth-child(1) {
    width: 34%;
}

.eilx-post__table:has(thead th:nth-child(5):last-child) th:nth-child(n+2),
.eilx-post__table:has(thead th:nth-child(5):last-child) td:nth-child(n+2) {
    width: 16.5%;
}

.eilx-post__body table caption,
.eilx-post__table caption {
    padding: 0 0 12px;
    color: var(--b-strong);
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    caption-side: top;
}

/* Kleinere Desktop- und Tablet-Bildschirme */
@media (max-width: 1199px) {
    .eilx-post__tablewrap {
        width: calc(100vw - 40px);
    }

    .eilx-post__body table,
    .eilx-post__table {
        min-width: 1040px;
    }
}

/* Smartphones */
@media (max-width: 640px) {
    .eilx-post__tablewrap {
        width: calc(100vw - 24px);
        margin-top: 24px;
        margin-bottom: 30px;
        border-radius: 14px;
    }

    .eilx-post__body table,
    .eilx-post__table {
        min-width: 820px;
        font-size: 14px;
        line-height: 1.5;
    }

    .eilx-post__body table th,
    .eilx-post__body table td,
    .eilx-post__table th,
    .eilx-post__table td {
        padding: 14px 16px;
    }
}


/* ---------- Vor / Zurück ---------- */

.eilx-post__nav {
    border-top: 1px solid var(--b-line);
    padding: 40px 20px 80px;
}

.eilx-post__nav-inner {
    width: min(820px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.eilx-post__nav-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    border: 1px solid var(--b-line);
    border-radius: 16px;
    background: var(--b-panel);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.eilx-post__nav-item:hover {
    border-color: rgba(109, 238, 226, 0.35);
    transform: translateY(-2px);
}

.eilx-post__nav-item--next {
    text-align: right;
}

.eilx-post__nav-dir {
    font-size: 13px;
    font-weight: 700;
    color: var(--b-accent);
}

.eilx-post__nav-title {
    color: var(--b-strong);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

@media (max-width: 640px) {
    .eilx-post__nav-inner {
        grid-template-columns: 1fr;
    }

    .eilx-post__nav-item--next {
        text-align: left;
    }

    .eilx-post__hero {
        min-height: 320px;
    }
}
