/* ===== Blog Listing Cards ===== */
.mk-blog-grid {
    padding: 60px 0 80px;
}

.mk-blog-card {
    background: #1a191d;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mk-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.mk-blog-card__img-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
}

.mk-blog-card__img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
    display: block;
}

.mk-blog-card:hover .mk-blog-card__img-link img {
    transform: scale(1.06);
}

.mk-blog-card__placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #222 0%, #2e2d33 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mk-blog-card__placeholder i {
    font-size: 2rem;
    color: #444;
}

.mk-blog-card__body {
    padding: 26px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mk-blog-card__meta {
    font-size: 11px;
    font-weight: 600;
    color: #C9EB55;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    margin-bottom: 12px;
}

.mk-blog-card__title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px;
}

.mk-blog-card__title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.mk-blog-card__title a:hover {
    color: #C9EB55;
}

.mk-blog-card__excerpt {
    font-size: 14px;
    color: #999;
    line-height: 1.75;
    margin: 0 0 20px;
    flex: 1;
}

.mk-blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #C9EB55;
    text-decoration: none;
    transition: opacity 0.2s;
    margin-top: auto;
}

.mk-blog-card__link:hover {
    color: #C9EB55;
    opacity: 0.75;
}

.mk-blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

/* ===== Blog Detail ===== */
.mk-blog-hero-img {
    width: 100%;
    max-height: 520px;
    overflow: hidden;
}

.mk-blog-hero-img img {
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

/* Content typography */
.details-data h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
}

.details-data h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.6rem 0 0.6rem;
}

.details-data p {
    margin-bottom: 1.1rem;
    line-height: 1.85;
}

.details-data ul,
.details-data ol {
    padding-left: 1.5rem;
    margin-bottom: 1.1rem;
}

.details-data li {
    margin-bottom: 0.4rem;
    line-height: 1.75;
}

.details-data strong { font-weight: 700; }
.details-data em     { font-style: italic; }

.details-data blockquote {
    border-left: 3px solid #C9EB55;
    padding: 10px 20px;
    margin: 1.5rem 0;
    color: #aaa;
    font-style: italic;
}

.details-data table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: .9rem;
}

.details-data th,
.details-data td {
    border: 1px solid #333;
    padding: 9px 14px;
    text-align: left;
}

.details-data thead th {
    background: #222;
    font-weight: 700;
    color: #C9EB55;
}

.details-data tbody tr:nth-child(even) td {
    background: #1a191d;
}

.details-data hr {
    border: none;
    border-top: 1px solid #333;
    margin: 2rem 0;
}

.details-data code {
    background: #222;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: .88em;
}

.details-data pre {
    background: #111;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1.2rem;
}

.details-data pre code {
    background: none;
    padding: 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .mk-blog-card__body { padding: 20px; }
    .mk-blog-hero-img { max-height: 260px; }
    .mk-blog-hero-img img { max-height: 260px; }
}

/* ===== Mobile-Fixes: Artikel-Inhalte ===== */
.details-data img {
    max-width: 100%;
    height: auto;
}

.details-data iframe {
    max-width: 100%;
}

@media (max-width: 768px) {
    /* Tabellen horizontal scrollbar statt Layout-Sprengung */
    .details-data table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .details-data h2 { font-size: 22px; }
    .details-data h3 { font-size: 18px; }
}
