/* ── Fix: Ohne Elementor-JS display:flex explizit setzen ───────────────────── */
.ratgeber-page .e-con-boxed,
.ratgeber-post-page .e-con-boxed {
    --display: flex;
}

.ratgeber-page .e-con-boxed>.e-con-inner,
.ratgeber-post-page .e-con-boxed>.e-con-inner {
    display: flex;
    flex-direction: column;
}

/* ── Ratgeber – Blog-Übersicht ──────────────────────────────────────────────── */
.ratgeber-section {
    padding: 60px 0;
}

.ratgeber-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    width: 100%;
}

.ratgeber-card {
    background: #1a1a2e;
    border: 1px solid rgba(232, 103, 234, 0.15);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.ratgeber-card:hover {
    border-color: #E867EA;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(232, 103, 234, 0.2);
}

.ratgeber-card__image-wrap {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.ratgeber-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.ratgeber-card:hover .ratgeber-card__image {
    transform: scale(1.06);
}

.ratgeber-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a003e, #1a0030);
    aspect-ratio: 16 / 9;
}

.ratgeber-card__body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ratgeber-card__date {
    font-size: 0.78rem;
    color: #E867EA;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ratgeber-card__title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 700;
}

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

.ratgeber-card__title a:hover {
    color: #E867EA;
}

.ratgeber-card__excerpt {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    flex: 1;
}

.ratgeber-card__link {
    display: inline-block;
    margin-top: auto;
    font-size: 0.875rem;
    font-weight: 600;
    color: #E867EA;
    text-decoration: none;
    transition: opacity 0.2s;
}

.ratgeber-card__link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.ratgeber-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 60px 20px;
    font-size: 1rem;
}

/* ── Ratgeber – Einzelbeitrag ───────────────────────────────────────────────── */
.ratgeber-post-section {
    padding: 60px 0;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
}

.ratgeber-post-section>* {
    width: 100%;
}

.ratgeber-post-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.ratgeber-post-image-wrap {
    width: 100%;
    margin: 0 0 36px;
}

.ratgeber-post-image-wrap img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.ratgeber-post-content {
    width: 100%;
    color: rgba(255, 255, 255, 0.87);
    line-height: 1.8;
    font-size: 1.05rem;
}

.ratgeber-post-content h2,
.ratgeber-post-content h3,
.ratgeber-post-content h4 {
    color: #fff;
    margin-top: 2em;
    margin-bottom: 0.6em;
}

.ratgeber-post-content a {
    color: #E867EA;
    text-decoration: underline;
}

.ratgeber-post-content p {
    margin-bottom: 1.2em;
}

.ratgeber-post-content ul,
.ratgeber-post-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}

.ratgeber-post-content blockquote {
    border-left: 3px solid #E867EA;
    padding-left: 1.2em;
    margin: 1.5em 0;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.ratgeber-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em auto;
    display: block;
}

.ratgeber-post-content iframe,
.ratgeber-post-content video {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
    border-radius: 8px;
    margin: 1.5em auto;
}

.ratgeber-post-back {
    margin: 48px 0 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ratgeber-back-link {
    color: #E867EA;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.ratgeber-back-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ── Video-Embed (16:9 responsiv) ───────────────────────────────────────────── */
.ratgeber-video-wrap {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 36px;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    display: block;
    line-height: 0;
    align-self: stretch;
}

.ratgeber-video-wrap iframe,
.ratgeber-video-wrap video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
    min-height: 0;
}

/* ── Play-Badge auf Karten-Thumbnails ───────────────────────────────────────── */
.ratgeber-card__image-wrap--video {
    position: relative;
    cursor: pointer;
}

.ratgeber-card__play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(232, 103, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: background 0.2s, transform 0.2s;
}

.ratgeber-card__play-badge svg {
    width: 22px;
    height: 22px;
    margin-left: 3px;
    /* optisch zentriert */
}

.ratgeber-card__image-wrap--video:hover .ratgeber-card__play-badge {
    background: #E867EA;
    transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 767px) {
    .ratgeber-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ratgeber-section,
    .ratgeber-post-section {
        padding: 40px 16px;
    }

    .ratgeber-post-meta {
        flex-direction: column;
        gap: 8px;
    }
}