/* Blog-spezifische Styles */

.blog-container {
    min-height: 100vh;
}

.blog-hero {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: white;
    padding: 80px 0 60px;
}

.blog-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.blog-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 0;
}

.blog-content {
    padding: 60px 0;
    background-color: #f8f9fa;
}

/* Blog Posts */
.blog-posts {
    margin-bottom: 40px;
}

.blog-post {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-post.featured {
    border: 2px solid #78A75A;
}

.post-image {
    position: relative;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #78A75A;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.post-content {
    padding: 25px;
}

.post-content h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.post-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.post-content h2 a,
.post-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h2 a:hover,
.post-content h3 a:hover {
    color: #78A75A;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #78A75A;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #5a7f42;
}

/* Pagination */
.blog-pagination {
    margin-top: 40px;
}

.blog-pagination .page-link {
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 15px;
}

.blog-pagination .page-item.active .page-link {
    background-color: #78A75A;
    border-color: #78A75A;
}

.blog-pagination .page-link:hover {
    background-color: #f8f9fa;
    border-color: #78A75A;
    color: #78A75A;
}

/* Sidebar */
.blog-sidebar {
    padding-left: 30px;
}

.sidebar-widget {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.sidebar-widget h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #333;
    border-bottom: 2px solid #78A75A;
    padding-bottom: 10px;
}

/* Newsletter Widget */
.newsletter-widget p {
    color: #666;
    margin-bottom: 20px;
}

.newsletter-form input {
    margin-bottom: 10px;
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    color: #333;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: #78A75A;
}

.category-list span {
    color: #999;
    font-size: 0.9rem;
}

/* Recent Posts Widget */
.recent-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.recent-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content h5 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.recent-post-content a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-content a:hover {
    color: #78A75A;
}

.recent-post-date {
    font-size: 0.8rem;
    color: #999;
}

/* Tags Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #f8f9fa;
    color: #666;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tag:hover {
    background: #78A75A;
    color: white;
    border-color: #78A75A;
}

/* Navigation Styles for Blog */
header nav .active {
    color: #78A75A !important;
    font-weight: 600;
}

header nav .logo {
    margin-right: auto;
    font-size: 1.5rem;
    text-decoration: none;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero {
        padding: 60px 0 40px;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-subtitle {
        font-size: 1rem;
    }
    
    .blog-sidebar {
        padding-left: 0;
        margin-top: 40px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .blog-post .row {
        margin: 0;
    }
    
    .blog-post .col-md-4,
    .blog-post .col-md-8 {
        padding: 0;
    }
    
    .blog-post .post-image {
        margin-bottom: 15px;
    }
}

/* Animation für Blog-Titel 
.animated-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) rotateX(90deg);
    animation: none;
}

.animated-text.start-animation span {
    animation: letterAnimation 0.6s ease-out forwards;
}

@keyframes letterAnimation {
    0% {
        opacity: 0;
        transform: translateY(20px) rotateX(90deg);
    }
    50% {
        opacity: 0.5;
        transform: translateY(-5px) rotateX(45deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}
*/

/* Animated text styling */
        .animated-text {
            font-weight: bold;
            margin: 20px 0;
        }

        .animated-text span {
            opacity: 0;
            /* Animation applied only when start-animation class is added */
        }

        .animated-text.start-animation span {
            animation: blinkReveal 0.8s ease-out forwards;
        }

        /* Accent color for the word "digital" */
        .animated-text .accent {
            color: #78A75A; /* Green accent color */
        }

        /* Keyframes for blinking reveal animation */
        @keyframes blinkReveal {
            0% { opacity: 0; }
            20% { opacity: 0.4; }
            40% { opacity: 0; }
            60% { opacity: 0.6; }
            80% { opacity: 0.2; }
            100% { opacity: 1; }
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .animated-text {
                font-size: 3.5rem;
            }
            .hero h1 {
                font-size: 3.8rem;
            }
            .logoopener {
                font-size: 4rem;
            }
        }

        @media (max-width: 480px) {
            .hero {
                text-align: left;
            }
            .animated-text {
                font-size: 2.8rem;
            }
            .hero h1 {
                font-size: 3.8rem;
            }
            .logoopener {
                font-size: 4rem;
            }
        }

.accent {
    color: #78A75A !important;
}

.post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-link:hover {
    text-decoration: none;
    color: inherit;
}
