/* Blog Page Styles */

body.blog div.header {
    padding-bottom: 50px;
    margin-bottom: 80px;
}

/* Blog Detail Pages - Remove margin */
body.blog .breadcrumb-section {
    margin-top: -80px;
}

body.blog div.hero {
    margin-bottom: 0;
}

/* Blog Categories */
.blog-categories {
    padding: 20px 0;
    background: #F8F9FF;
    display: none;
}

.category-filters {
    margin-top: 30px;
}

.category-btn {
    background: white;
    border: 2px solid #E5E7EB;
    color: #4A5568;
    padding: 12px 24px;
    border-radius: 25px;
    margin: 0 10px 10px 0;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-btn:hover,
.category-btn.active {
    background: #5A42E7;
    border-color: #5A42E7;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(90, 66, 231, 0.3);
}

/* Blog Posts */
.blog-posts {
    padding: 20px 0;
}

/* Featured Post */
.featured-post {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

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

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

.post-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #5A42E7, #F99C4E);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-content {
    padding: 40px;
}

.post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #718096;
}

.post-date {
    margin-right: 20px;
}

.post-category-tag {
    background: rgba(90, 66, 231, 0.1);
    color: #5A42E7;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.featured-post h2 {
    font-size: 32px;
    font-weight: 700;
    color: #152C5B;
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-post p {
    font-size: 18px;
    color: #4A5568;
    line-height: 1.7;
    margin-bottom: 30px;
}

.post-tags {
    margin-bottom: 30px;
}

.tag {
    display: inline-block;
    background: rgba(90, 66, 231, 0.1);
    color: #5A42E7;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Blog Grid */
.blog-grid {
    margin-top: 40px;
}

.blog-grid .col-md-4 {
    margin-bottom: 30px;
}

.blog-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

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

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #5A42E7, #F99C4E);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content .post-meta {
    margin-bottom: 15px;
}

.read-time {
    color: #9CA3AF;
    font-size: 12px;
}

.card-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #152C5B;
    margin-bottom: 15px;
    line-height: 1.4;
    text-transform: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    letter-spacing: normal;
}

.card-content p {
    font-size: 14px;
    color: #4A5568;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-content .post-tags {
    margin-bottom: 0;
}


/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #F8F9FF 0%, #E8F0FF 50%, #F0F4FF 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(90, 66, 231, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(249, 156, 78, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section h3 {
    font-size: 18px;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.cta-section h4 {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #152C5B;
}

.cta-section p {
    font-size: 16px;
    color: #4A5568;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    min-width: 180px;
}

.benefits-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.benefit-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #5A42E7, #F99C4E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.benefit-item span {
    font-weight: 600;
    color: #152C5B;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-post .row {
        flex-direction: column;
    }
    
    .featured-post .col-md-6:first-child {
        order: 2;
    }
    
    .featured-post .col-md-6:last-child {
        order: 1;
    }
    
    .post-image {
        height: 250px;
    }
    
    .post-content {
        padding: 30px 25px;
    }
    
    .featured-post h2 {
        font-size: 24px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .benefits-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .benefit-item {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Impressum Styles */
.impressum-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-bottom: 40px;
}

.impressum-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #152C5B;
    margin-bottom: 40px;
    line-height: 1.3;
    border-bottom: 3px solid #5A42E7;
    padding-bottom: 15px;
    word-wrap: break-word;      /* IE 5.5-7 */
      white-space: -moz-pre-wrap; /* Firefox 1.0-2.0 */
      white-space: pre-wrap;      /* current browsers */
}

.impressum-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #152C5B;
    margin: 40px 0 15px;
    line-height: 1.4;
    word-wrap: break-word;      /* IE 5.5-7 */
      white-space: -moz-pre-wrap; /* Firefox 1.0-2.0 */
      white-space: pre-wrap;      /* current browsers */
}

.impressum-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #4A5568;
    margin-bottom: 20px;
}

.impressum-content ul {
    color: #4A5568;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.impressum-content li {
    color: #4A5568;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.impressum-content a {
    color: #5A42E7;
    text-decoration: none;
    font-weight: 500;
}

.impressum-content a:hover {
    color: #371FC4;
    text-decoration: underline;
}

/* Data Table Styles */
.impressum-content .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.impressum-content .data-table th,
.impressum-content .data-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #E2E8F0;
    vertical-align: top;
}

.impressum-content .data-table th {
    background: none;
    color: #152C5B;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.impressum-content .data-table tr:nth-child(even) {
    background: #FAFAFA;
}

.impressum-content .data-table tr:hover {
    background: #F7F9FC;
}

.impressum-content .data-table td p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.5;
}

.impressum-content .data-table td p:last-child {
    margin-bottom: 0;
}

.impressum-content .data-table td strong {
    color: #152C5B;
    font-weight: 600;
}

/* Blog Detail Page Styles */

/* Breadcrumb */
.breadcrumb-section {
    padding: 20px 0;
    background: #F8F9FF;
    border-bottom: 1px solid #E5E7EB;
}

/* Blog Detail Pages - Abstand zwischen Breadcrumb und Artikel */
body.blog .breadcrumb-section + .article-content {
    margin-top: 40px;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #5A42E7;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #371FC4;
}

.breadcrumb-item.active {
    color: #4A5568;
}

/* Article Content */
.article-content {
    padding: 60px 0;
}

/* Impressum Article Content - No Top Padding */
.article-content {
    padding: 0 0 60px 0;
}

body.blog .article-content {
    padding: 0 0 60px 0;
}

.blog-article {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 30px 40px 0;
    font-size: 14px;
    color: #718096;
}

.article-category {
    background: linear-gradient(135deg, #5A42E7, #F99C4E);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-title {
    font-size: 42px;
    font-weight: 700;
    color: #152C5B;
    margin-bottom: 30px;
    padding: 0 40px;
    line-height: 1.2;
}

.article-image {
    margin-bottom: 40px;
}

.article-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.article-body {
    padding: 0 40px 40px;
}

.article-body .lead {
    font-size: 20px;
    color: #4A5568;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 500;
}

.article-body h2 {
    font-size: 28px;
    font-weight: 600;
    color: #152C5B;
    margin: 50px 0 20px;
    line-height: 1.3;
}

.article-body h3 {
    font-size: 22px;
    font-weight: 600;
    color: #152C5B;
    margin: 40px 0 15px;
    line-height: 1.4;
}

.article-body p {
    font-size: 16px;
    color: #4A5568;
    line-height: 1.7;
    margin-bottom: 20px;
}

.article-body ul {
    margin: 20px 0;
    padding-left: 20px;
}

.article-body li {
    font-size: 16px;
    color: #4A5568;
    line-height: 1.6;
    margin-bottom: 10px;
}

.article-body strong {
    color: #152C5B;
    font-weight: 600;
}

blockquote {
    background: linear-gradient(135deg, #F8F9FF 0%, #E8F0FF 100%);
    border-left: 4px solid #5A42E7;
    padding: 30px;
    margin: 40px 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    font-size: 18px;
    color: #152C5B;
    line-height: 1.6;
}

.benefits-list {
    margin: 40px 0;
}

.benefits-list .benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: #F8F9FF;
    border-radius: 15px;
    border: 1px solid #E5E7EB;
}

.benefits-list .benefit-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #5A42E7, #F99C4E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.benefits-list .benefit-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #152C5B;
    margin-bottom: 8px;
}

.benefits-list .benefit-content p {
    color: #4A5568;
    margin: 0;
    font-size: 14px;
}

.article-tags {
    padding: 0 40px 30px;
    border-top: 1px solid #E5E7EB;
    padding-top: 30px;
}

.article-tags .tag {
    display: inline-block;
    background: rgba(90, 66, 231, 0.1);
    color: #5A42E7;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
    margin-bottom: 10px;
}

.article-share {
    padding: 30px 40px;
    background: #F8F9FF;
    border-top: 1px solid #E5E7EB;
}

.article-share h4 {
    font-size: 16px;
    font-weight: 600;
    color: #152C5B;
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.share-btn.facebook {
    background: #1877F2;
    color: white;
}

.share-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.share-btn.linkedin {
    background: #0077B5;
    color: white;
}

.share-btn.email {
    background: #5A42E7;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Author Section */
.article-author {
    padding: 40px;
    background: #F8F9FF;
    border-top: 1px solid #E5E7EB;
}

.author-info {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.author-details h4 {
    font-size: 20px;
    font-weight: 600;
    color: #152C5B;
    margin-bottom: 5px;
}

.author-title {
    font-size: 14px;
    color: #5A42E7;
    font-weight: 600;
    margin-bottom: 15px;
}

.author-bio {
    font-size: 14px;
    color: #4A5568;
    line-height: 1.6;
    margin-bottom: 20px;
}


/* Back to Blog */
.back-to-blog {
    padding: 40px 0;
    background: #F8F9FF;
    border-top: 1px solid #E5E7EB;
}

.back-to-blog .btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-to-blog .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(90, 66, 231, 0.3);
}

/* Responsive Design for Blog Detail */
@media (max-width: 768px) {
    .article-title {
        font-size: 28px;
        padding: 0 20px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 20px 20px 0;
    }
    
    .article-body {
        padding: 0 20px 20px;
    }
    
    .article-body h2 {
        font-size: 24px;
    }
    
    .article-body h3 {
        font-size: 20px;
    }
    
    .article-image img {
        height: 250px;
    }
    
    .benefits-list .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .article-tags {
        padding: 0 20px 20px;
    }
    
    .article-share {
        padding: 20px;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .author-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .article-author {
        padding: 30px 20px;
    }
}

/* Animation Classes */
.blog-card.hidden {
    display: none;
}

.blog-card.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.blog-card.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Category Filter Animation */
.blog-card.filtered {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.blog-card.filtered.show {
    opacity: 1;
    transform: scale(1);
}
