/* Global dark theme */
body {
    background-color: #121212;
    color: #e0e0e0;
}

/* Enhanced blog post view styling */
.blog-post-container {
    max-width: 1500px; /* Erhöht von 950px auf 1200px für mehr Breite */
    margin: 0 auto;
    padding: 2rem;
    background-color: #222222;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blog-post-header {
    margin-bottom: 2rem;
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d1d1b;
    margin-bottom: 1rem;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.blog-post-meta i {
    margin-right: 0.5rem;
}

.blog-post-meta span {
    margin-right: 1.5rem;
}

.blog-post-description {
    font-size: 1.4rem; /* Erhöht von 1.25rem für mehr Größe */
    line-height: 1.7; /* Leicht erhöht für bessere Lesbarkeit */
    color: #202020; /* Sanfterer Grauton statt #555 */
    margin: 1.5rem 0 2.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #e9ecef;
    font-weight: 400; /* Erhöht von 300 für bessere Lesbarkeit */
    letter-spacing: 0.01em; /* Leicht erhöhter Zeichenabstand */
}

.blog-post-description-inner {
    position: relative;
    max-width: 98%; /* Leicht erhöht von 95% */
    margin: 0 auto;
}

/* Entferne die Anführungszeichen-Pseudoelemente */
.blog-post-description::before,
.blog-post-description::after {
    content: none;
}

.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-top: 2rem;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-post-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Return button styling */
.return-button {
    margin-bottom: 1.5rem;
    display: inline-block;
}

.btn-wide {
    min-width: 200px;
    padding: 0.5rem 1.5rem;
}

/* Image carousel styling */
.carousel-container {
    position: relative;
    margin: 2rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* Bessere Aspect Ratio Definition */
    aspect-ratio: 6/4 !important;
    -webkit-aspect-ratio: 6/4 !important;
    -moz-aspect-ratio: 6/4 !important;
    height: 0 !important;
    padding-bottom: 66.67% !important; /* 4/6 * 100% = 66.67% für 6:4 Verhältnis */
    width: 100% !important;
}

.carousel {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: #1a1a1a;
}

.carousel-inner {
    position: relative;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Cover für richtige Darstellung */
    object-position: center !important;
    display: block !important;
    min-height: 100% !important;
    min-width: 100% !important;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center; /* Zusätzliche Zentrierung */
    gap: 8px;
    z-index: 10;
    width: 100%; /* Stellt sicher, dass Container die volle Breite nutzt */
    padding: 0; /* Entfernt mögliche Standardpolsterung */
    margin: 0; /* Entfernt mögliche Standardränder */
}

.carousel-indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(52, 152, 219, 0.3); /* Hellblau mit Transparenz */
    border: 1px solid rgba(52, 152, 219, 0.5); /* Hellblauer Rand */
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-indicator-dot.active {
    background-color: #2980b9; /* Kräftiges Dunkelblau für aktiven Dot */
    border-color: #2980b9;
}

/* Dark theme styling */
.dark-theme {
    background-color: #222222;
    color: #e0e0e0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dark-theme .blog-post-title {
    color: #ffffff;
}

.dark-theme .blog-post-meta {
    color: #bbbbbb;
}

.dark-theme .blog-post-description {
    color: #e0e0e0;
    border-bottom-color: #3d3d3d;
}

.dark-theme .blog-post-content {
    color: #e0e0e0;
}

.dark-theme .blog-post-content h2,
.dark-theme .blog-post-content h3 {
    color: #ffffff;
}

/* Blog tags styling */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 1rem 0;
}

.blog-tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 0.85rem;
    background-color: rgba(255, 255, 255, 0.05);
    color: #bbbbbb;
    border-radius: 100px;
    transition: all 0.2s ease;
}

.blog-tag-badge:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.blog-tag-badge i {
    margin-right: 4px;
    color: #bbbbbb;
    font-size: 0.85rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .blog-post-container {
        padding: 1.5rem;
    }
    
    .blog-post-title {
        font-size: 2rem;
    }
    
    .carousel-container {
        aspect-ratio: 6/4 !important;
        padding-bottom: 66.67% !important; /* 6:4 Verhältnis auch auf Mobile */
        height: 0 !important;
    }
    
    .btn-wide {
        width: 100%;
        margin-bottom: 1rem;
    }
}

#likeCount {
    margin-right: 4px; /* Add space after the number */
}

.section-title {
    color: white !important;
}