/* ===== BCM BLOG DETAIL WIDGET - ISOLIERTES CSS ===== */
/* Alle Regeln sind auf .blog-detail-widget beschränkt um Konflikte zu vermeiden */

/* Blog Detail Widget - Haupt-Layout */
.blog-detail-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: #333;
    max-width: 1600px;
    margin: 0 auto;
    padding: 60px 20px 40px 20px; /* Mehr Abstand nach oben */
    box-sizing: border-box;
    background: white; /* Weißer Hintergrund für den Blog-Inhalt */
    background-color: white;
    position: relative;
    z-index: 1;
    /* Verhindert Beeinflussung anderer Elemente */
    isolation: isolate;
}

/* Reset für bessere Kontrolle - NUR innerhalb des Widgets */
.blog-detail-widget * {
    box-sizing: border-box;
}

/* Verhindert, dass Widget-Styles andere Elemente beeinflussen */
.blog-detail-widget {
    contain: layout style;
}

/* Layout-Stile */
.blog-detail-widget.layout-modern {
    background: white;
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.blog-detail-widget.layout-classic {
    background: white;
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
}

.blog-detail-widget.layout-minimal {
    background: white;
    background-color: white;
    border: none;
    box-shadow: none;
}

.blog-detail-widget.layout-card {
    background: white;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 30px;
}

/* Breiten-Klassen */
.blog-detail-widget.width-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-detail-widget.width-wide {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-detail-widget.width-full {
    max-width: 100%;
    width: 100%;
    padding: 0;
}

/* Elementor Volle Breite Container */
.elementor-template-full_width .blog-detail-widget.width-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 80px 20px 40px 20px; /* Mehr Abstand nach oben für Elementor */
}

/* Force proper layout when header image is shown */
.blog-detail-widget[data-settings*="show_header_image"] .blog-main-content-wrapper,
.blog-detail-widget .blog-main-content-wrapper:has(.blog-header-image-wrapper) {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Vollbreiten-Layout für lange Texte (>600 Zeichen) */
.blog-detail-widget.layout-full-width .blog-main-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
}

.blog-detail-widget.layout-full-width .blog-header-image-wrapper {
    flex: none;
    max-width: 100%;
    width: 100%;
    order: 1;
}

.blog-detail-widget.layout-full-width .blog-content-wrapper {
    flex: none;
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    order: 2;
}

.blog-detail-widget.layout-full-width .blog-header-image {
    height: 500px;
    max-height: 500px;
    width: 100%;
    border-radius: 16px;
    margin: 0 auto 2rem auto;
}

/* Überschreibe alle anderen Layout-Regeln für Vollbreiten-Modus */
.blog-detail-widget.layout-full-width .blog-two-column-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-detail-widget.layout-full-width .blog-image-column {
    flex: none;
    max-width: 100%;
    width: 100%;
    order: 1;
}

.blog-detail-widget.layout-full-width .blog-text-column {
    flex: none;
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    order: 2;
}

/* Fallback: Automatisches Vollbreiten-Layout für sehr lange Texte */
/* Diese Regeln werden durch JavaScript und PHP überschrieben */

/* Sehr spezifische Regeln für Vollbreiten-Layout - überschreibt alles */
.blog-detail-widget.layout-full-width .blog-main-content-wrapper {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 2rem;
}

.blog-detail-widget.layout-full-width .blog-header-image-wrapper {
    display: block;
    width: 100%;
    max-width: 100%;
    flex: none;
    order: 1;
    margin-bottom: 2rem;
}

.blog-detail-widget.layout-full-width .blog-content-wrapper {
    display: block;
    width: 100%;
    max-width: 100%;
    flex: none;
    order: 2;
    padding-left: 0;
    margin-left: 0;
}

/* Zusätzliche Überschreibung für alle Bildschirmgrößen */
.blog-detail-widget.layout-full-width .blog-two-column-layout {
    flex-direction: column;
}

/* Überschreibe alle Media Queries für Vollbreiten-Layout */
@media (min-width: 769px) {
    .blog-detail-widget.layout-full-width .blog-main-content-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .blog-detail-widget.layout-full-width .blog-header-image-wrapper {
        width: 100%;
        max-width: 100%;
        flex: none;
    }
    
    .blog-detail-widget.layout-full-width .blog-content-wrapper {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        flex: none;
    }
}

@media (min-width: 769px) {
    .blog-detail-widget[data-settings*="show_header_image"] .blog-main-content-wrapper:not(.layout-full-width),
    .blog-detail-widget .blog-main-content-wrapper:has(.blog-header-image-wrapper):not(.layout-full-width) {
        flex-direction: row;
        align-items: flex-start;
    }
    
    /* Vollbreiten-Layout überschreibt alle anderen Regeln */
    .blog-detail-widget.layout-full-width .blog-main-content-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .blog-detail-widget.layout-full-width .blog-header-image-wrapper {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
    
    .blog-detail-widget.layout-full-width .blog-content-wrapper {
        flex: none;
        max-width: 100%;
        width: 100%;
        padding-left: 0;
    }
}

.blog-main-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 0;
    max-width: 100%;
    min-height: fit-content; /* Automatische Höhenanpassung */
}

/* 2-Spalten Layout - Optimiert mit flexibler Höhe */
.blog-detail-widget > .blog-main-content-wrapper > .blog-two-column-layout {
    display: flex;
    gap: 60px; /* Erhöhter Abstand zwischen Bild und Text */
    align-items: stretch; /* Beide Spalten gleiche Höhe */
    margin-bottom: 60px;
    background: transparent;
    width: 100%;
    min-height: fit-content; /* Automatische Höhenanpassung */
}

/* ===== VERTIKALES LAYOUT FÜR LANGE TEXTE (>600 ZEICHEN) ===== */
/* Sehr spezifische Selektoren um andere CSS-Regeln zu überschreiben */

.blog-detail-widget.long-text-vertical .blog-two-column-layout {
    display: block; /* Kein Flex mehr - überschreibt andere Regeln */
    gap: 0;
}

.blog-detail-widget.long-text-vertical .blog-image-column {
    width: 100%;
    max-width: 100%;
    margin-bottom: 40px; /* Abstand zwischen Bild und Text */
    flex: none;
    min-height: auto;
    max-height: none;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.blog-detail-widget.long-text-vertical .blog-two-column-layout > .blog-text-column {
    width: 100%;
    max-width: 100%;
    flex: none;
    padding: 0 40px; /* Links und rechts Abstand hinzufügen */
}

/* Text-Inhalt für vertikales Layout mit Padding */
.blog-detail-widget.long-text-vertical .blog-text-column .blog-entry-text {
    padding: 0 20px; /* Zusätzliches Padding für bessere Lesbarkeit */
    max-width: 1000px; /* Maximale Textbreite für optimale Lesbarkeit */
    margin: 0 auto; /* Zentriert den Text */
}

/* Bild-Wrapper für vertikales Layout - perfekte Zentrierung */
.blog-detail-widget.long-text-vertical .blog-two-column-layout > .blog-image-column > .blog-header-image-wrapper {
    width: 100%;
    margin-bottom: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex: none;
    max-height: none;
}

/* Header-Bild Container für vertikales Layout */
.blog-detail-widget.long-text-vertical .blog-image-column .blog-header-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

/* IMG-Tag spezifisch für vertikales Layout - perfekte Zentrierung */
.blog-detail-widget.long-text-vertical .blog-image-column .blog-header-image img {
    max-width: 800px; /* Maximale Breite */
    width: auto; /* Automatische Breite */
    height: auto; /* Automatische Höhe */
    max-height: 400px; /* Maximale Höhe */
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    object-fit: contain; /* Vollständiges Bild ohne Abschneiden */
    object-position: center center;
    display: block;
    position: static; /* Kein absolutes Positioning */
    left: auto;
    transform: none; /* Keine Transform-Tricks */
}

/* Hover-Effekt für Bilder im vertikalen Layout */
.blog-detail-widget.long-text-vertical .blog-image-column .blog-header-image img:hover {
    transform: scale(1.02); /* Leichte Vergrößerung beim Hover */
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.blog-two-column-layout > .blog-image-column {
    flex: 0 0 42%; /* Etwas mehr Platz für das Bild */
    max-width: 42%;
    min-width: 0; /* Verhindert Flex-Überlauf */
    min-height: 350px;
    max-height: 500px; /* Begrenzt die maximale Höhe */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Bild oben ausrichten */
    align-items: center;
    box-sizing: border-box;
    position: relative;
    z-index: 1; /* Verhindert Überlappung */
    background: transparent;
    border-radius: 12px;
    padding: 0;
    overflow: hidden; /* Verhindert Überlauf */
}

.blog-two-column-layout > .blog-text-column {
    flex: 1;
    min-width: 0;
    background: transparent;
    padding: 0 0 0 40px; /* Mehr Abstand zum Bild */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    box-sizing: border-box;
    position: relative;
    z-index: 2; /* Höhere Z-Index für Text */
    overflow-wrap: break-word; /* Verhindert Textüberlauf */
    word-wrap: break-word;
    border-radius: 12px;
    min-height: 100%; /* Volle Höhe der Parent-Container */
}

/* Ab Tablet-Größe nebeneinander */
@media (min-width: 769px) {
    .blog-main-content-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Tablet Layout */
@media (max-width: 1024px) {
    .blog-two-column-layout {
        gap: 40px;
    }
    
    .blog-image-column {
        flex: 0 0 45%;
        max-width: 45%;
    }
    
    .blog-text-column {
        padding: 0 0 0 30px;
    }
    
    /* Vertikales Layout auf Tablet - Optimierungen */
    .blog-detail-widget.long-text-vertical .blog-image-column .blog-header-image img {
        max-height: 350px; /* Mittlere Höhe für Tablet */
        max-width: 600px; /* Angepasste Breite für Tablet */
        border-radius: 10px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.11);
    }
    
    .blog-detail-widget.long-text-vertical .blog-image-column .blog-header-image-wrapper {
        margin-bottom: 35px; /* Mittlerer Abstand für Tablet */
    }
    
    /* Text-Padding für Tablet */
    .blog-detail-widget.long-text-vertical .blog-text-column {
        padding: 0 30px; /* Weniger Padding auf Tablet */
    }
    
    .blog-detail-widget.long-text-vertical .blog-text-column .blog-entry-text {
        padding: 0 15px; /* Angepasstes Text-Padding für Tablet */
    }
}

/* Mobile Layout für 2-Spalten */
@media (max-width: 768px) {
    .blog-two-column-layout {
        flex-direction: column;
        gap: 40px; /* Erhöhter Abstand auf Mobile */
        min-height: auto;
    }
    
    /* Vertikales Layout auf Mobile - Anpassungen */
    .blog-detail-widget.long-text-vertical .blog-image-column {
        margin-bottom: 30px; /* Weniger Abstand auf Mobile */
    }
    
    .blog-detail-widget.long-text-vertical .blog-image-column .blog-header-image,
    .blog-detail-widget.long-text-vertical .blog-image-column .blog-header-image img {
        max-width: 100%; /* Vollbreite auf Mobile */
        max-height: 250px; /* Kleinere maximale Höhe auf Mobile */
        border-radius: 8px; /* Kleinere Rundung auf Mobile */
        box-shadow: 0 4px 16px rgba(0,0,0,0.1); /* Weniger Schatten auf Mobile */
    }
    
    .blog-detail-widget.long-text-vertical .blog-image-column .blog-header-image-wrapper {
        margin-bottom: 30px; /* Weniger Abstand auf Mobile */
    }
    
    /* Text-Padding für Mobile */
    .blog-detail-widget.long-text-vertical .blog-text-column {
        padding: 0 20px; /* Weniger Padding auf Mobile */
    }
    
    .blog-detail-widget.long-text-vertical .blog-text-column .blog-entry-text {
        padding: 0 10px; /* Minimales Text-Padding für Mobile */
        max-width: 100%; /* Vollbreite auf Mobile */
    }
    
    .blog-image-column {
        flex: none;
        max-width: 100%;
        min-height: 250px;
    }
    
    .blog-text-column {
        padding: 0; /* Kein zusätzlicher Padding auf Mobile für horizontales Layout */
    }
}

/* Bild-Wrapper - Optimiert für 2-Spalten Layout */
.blog-header-image-wrapper {
    flex: 1 1 100%;
    position: relative;
    margin-bottom: 0;
    width: 100%;
    max-height: 100%; /* Begrenzt die Höhe des Wrappers */
}

/* Header-Image im 2-Spalten Layout - NUR für horizontales Layout */
.blog-detail-widget.short-text-horizontal .blog-image-column .blog-header-image {
    height: 100%;
    max-height: 450px;
    width: 100%;
    border-radius: 12px;
}

.blog-detail-widget.short-text-horizontal .blog-image-column .blog-header-image img {
    border-radius: 12px;
}

@media (min-width: 769px) {
    .blog-header-image-wrapper {
        flex: 0 0 45%; /* 45% der Breite auf Desktop */
        position: sticky; /* Bild bleibt beim Scrollen sichtbar */
        top: 2rem;
        /* Verhindert, dass der Inhalt dahinter verschwindet */
        z-index: 1;
        max-width: 45%;
    }
}

/* Header-Image Styles für Elementor Template */
.blog-header-image {
    width: 100%;
    height: 400px; /* Fallback-Wert, wird durch Elementor responsive controls überschrieben */
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 16px; /* !important um andere Styles zu überschreiben */
    display: block; /* Verhindert Baseline-Gap */
    border: none; /* Entfernt mögliche Borders */
    outline: none; /* Entfernt mögliche Outlines */
}

.blog-header-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #6b7280;
    font-size: 1.1rem;
    text-align: center;
    min-height: 200px;
    border-radius: 16px;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.7;
}

/* Inhalts-Wrapper */
.blog-content-wrapper {
    flex: 1 1 100%;
}

@media (min-width: 769px) {
    .blog-content-wrapper {
        flex: 1; /* Nimmt den restlichen Platz ein */
        padding-left: 2rem; /* Abstand zum Bild */
        max-width: 55%;
    }
}

/* Header (Titel, Meta) - Zentriert für Elementor Template */
.blog-entry-header {
    padding: 40px 40px 50px 40px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
    margin-bottom: 40px;
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

.blog-entry-title {
    font-size: 3rem;
    font-weight: 800;
    color: #263238;
    margin: 0 0 30px 0;
    line-height: 1.2;
    text-align: center;
    display: block;
    width: 100%;
    padding-bottom: 10px;
}

.blog-entry-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.blog-date, .blog-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 1rem;
    background: rgba(102, 126, 234, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
}

.blog-date i, .blog-location i {
    color: #667eea;
    font-size: 1.2rem;
}

.blog-external-link-meta {
    display: flex;
    align-items: center;
}

.blog-external-link-meta .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
}

.blog-external-link-meta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* Text-Formatierung - Optimiert */
.blog-entry-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #374151;
    margin: 0;
    padding: 0;
    flex: 1;
    background: transparent;
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    text-align: justify;
}

/* HTML-Code-Anzeige Styles */
.blog-html-code {
    margin-top: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.blog-html-code h4 {
    background: #343a40;
    color: white;
    margin: 0;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
}

.blog-html-code pre {
    margin: 0;
    padding: 16px;
    background: #f8f9fa;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', Consolas, Monaco, monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #495057;
    border: none;
}

.blog-html-code code {
    background: transparent;
    padding: 0;
    border: none;
    font-family: inherit;
    color: inherit;
}

.blog-formatted-text h4 {
    color: #28a745;
    font-size: 1rem;
    margin: 0 0 15px 0;
    padding: 8px 0;
    border-bottom: 2px solid #28a745;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-entry-text h2,
.blog-entry-text h3,
.blog-entry-text h4 {
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
}

.blog-entry-text h2 { font-size: 1.8rem; }
.blog-entry-text h3 { font-size: 1.5rem; }
.blog-entry-text h4 { font-size: 1.2rem; }

.blog-entry-text p {
    margin-bottom: 1.5rem;
}

.blog-entry-text a {
    color: #dc2626;
    text-decoration: underline;
}

.blog-entry-text ul,
.blog-entry-text ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-entry-text li {
    margin-bottom: 0.5rem;
}

.blog-entry-text blockquote {
    border-left: 4px solid #e9ecef;
    padding-left: 1rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6c757d;
}

/* Buttons Container */
.blog-buttons-container {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.blog-external-link,
.blog-entry-link {
    margin: 0;
}

/* Button Styles - Überschrieben durch Elementor Template */

.btn-primary {
    background-color: #dc2626;
    color: white;
}

.btn-primary:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    color: white;
}


/* Galerie */
.blog-gallery-container {
    margin: 60px 0 40px 0;
}

.blog-gallery h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-align: center;
    color: #1f2937;
}

.gallery-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}


.gallery-item {
    border-radius: 12px; /* Stärkere Abrundung für Galerie-Bilder */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Videos */
.blog-videos-container {
    margin: 40px 0 60px 0;
}

.blog-videos h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-align: center;
    color: #1f2937;
}

.video-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.video-item video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.video-title {
    margin: 10px 0 0 0;
    font-size: 0.9rem;
    color: #6b7280;
    text-align: center;
}

/* Post Navigation */
.blog-post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 40px; /* Abstand nach unten hinzugefügt */
}

.nav-previous, .nav-next {
    flex: 1;
    max-width: 45%;
}

.nav-previous a, .nav-next a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-previous a:hover, .nav-next a:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.nav-next {
    text-align: right;
}

.nav-next a {
    justify-content: flex-end;
}

.nav-arrow {
    font-size: 1.5rem;
    line-height: 1;
    color: #667eea;
}

.nav-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-title {
    font-size: 1.125rem;
    color: #1f2937;
    font-weight: 600;
}


/* Empty States */
.gallery-empty, .video-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    color: #6b7280;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Mobile styles are handled in the Elementor template */
    
    .blog-entry-text {
        font-size: 1rem;
        text-align: left; /* Linksbündig auf Mobile */
    }
    
    .blog-buttons-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .gallery-item img {
        height: 150px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-post-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-previous, .nav-next {
        max-width: 100%;
    }
    
    /* HTML-Code-Anzeige auf Mobile */
    .blog-html-code pre {
        font-size: 0.75rem;
        padding: 12px;
    }
    
    .blog-html-code h4 {
        font-size: 0.8rem;
        padding: 10px 12px;
    }
}

/* Accessibility */
.blog-detail-widget *:focus-visible {
    outline: 3px solid #dc2626;
    outline-offset: 2px;
}
