/* ===== Blog-spezifische Styles ===== */

/* --- Category Buttons as Links --- */
a.category-btn {
    text-decoration: none;
}

/* --- No Posts --- */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
}

.no-posts i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.no-posts h3 {
    color: #64748b;
    margin-bottom: 8px;
}

/* --- Blog Card Link Wrapper --- */
.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: #00b8e0;
    color: white;
    border-color: #00b8e0;
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: #00b8e0;
    color: white;
    border-color: #00b8e0;
}

/* ===== Single Post Page ===== */

.blog-post-section {
    padding: 40px 0 80px;
}

.blog-post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* --- Breadcrumb --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #64748b;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #00b8e0;
}

.breadcrumb span {
    color: #cbd5e1;
}

.breadcrumb .current {
    color: #2c3e50;
    font-weight: 500;
}

/* --- Featured Image --- */
.post-featured-image {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

/* --- Post Header --- */
.post-header {
    margin-bottom: 30px;
}

.post-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 184, 224, 0.1);
    color: #00b8e0;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.post-category-tag:hover {
    background: #00b8e0;
    color: white;
}

.post-header h1 {
    font-size: 2.2rem;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 16px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #94a3b8;
    font-size: 14px;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- Post Content --- */
.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 40px;
}

.post-content h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin: 30px 0 14px;
}

.post-content h3 {
    font-size: 1.2rem;
    color: #1e293b;
    margin: 24px 0 10px;
}

.post-content p {
    margin-bottom: 16px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.post-content ul, .post-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    border-left: 4px solid #00b8e0;
    padding: 16px 20px;
    margin: 20px 0;
    background: #f0f9ff;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #475569;
}

.post-content a {
    color: #00b8e0;
    text-decoration: underline;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.post-content th, .post-content td {
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    text-align: left;
}

.post-content th {
    background: #f8fafc;
    font-weight: 600;
}

/* --- Share --- */
.post-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 40px;
}

.post-share span {
    font-weight: 500;
    color: #64748b;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-facebook { background: #1877f2; }
.share-email { background: #64748b; }

/* ===== Comments ===== */

.comments-section {
    padding-top: 10px;
}

.comments-section h2 {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-flash {
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.comment-flash-success { background: #d1fae5; color: #065f46; }
.comment-flash-error { background: #fee2e2; color: #991b1b; }

.comments-list {
    margin-bottom: 40px;
}

.comment {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.comment-avatar {
    font-size: 2rem;
    color: #cbd5e1;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-header strong {
    color: #1e293b;
}

.comment-header time {
    font-size: 12px;
    color: #94a3b8;
}

.comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

.reply-toggle {
    background: none;
    border: none;
    color: #00b8e0;
    font-size: 13px;
    cursor: pointer;
    margin-top: 8px;
    font-weight: 500;
    font-family: inherit;
}

.reply-toggle:hover {
    color: #0099cc;
}

.comment-replies {
    margin-top: 16px;
    padding-left: 16px;
    border-left: 2px solid #e2e8f0;
}

.comment.reply .comment-body {
    background: #f1f5f9;
}

.no-comments {
    color: #94a3b8;
    text-align: center;
    padding: 30px 0;
    margin-bottom: 30px;
}

/* --- Comment Form --- */
.new-comment-form {
    margin-top: 30px;
}

.new-comment-form h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: #1e293b;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #00b8e0;
}

.comment-form textarea {
    margin-bottom: 14px;
    resize: vertical;
}

.dsgvo-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 14px;
    cursor: pointer;
}

.dsgvo-check input {
    margin-top: 2px;
}

.dsgvo-check a {
    color: #00b8e0;
}

.btn-comment {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #00b8e0, #0099cc);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,184,224,0.3);
}

.comment-form-reply {
    margin-top: 14px;
}

.comment-form-reply .form-row {
    grid-template-columns: 1fr 1fr;
}

/* ===== Sidebar ===== */

.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

.sidebar-categories {
    list-style: none;
    padding: 0;
}

.sidebar-categories li {
    margin-bottom: 6px;
}

.sidebar-categories a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.sidebar-categories a:hover {
    background: #f0f9ff;
    color: #00b8e0;
}

.sidebar-categories span {
    margin-left: auto;
    color: #94a3b8;
    font-size: 13px;
}

.sidebar-posts {
    list-style: none;
    padding: 0;
}

.sidebar-posts li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f8fafc;
}

.sidebar-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-posts a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    display: block;
}

.sidebar-posts a:hover {
    color: #00b8e0;
}

.sidebar-posts small {
    color: #94a3b8;
    font-size: 12px;
}

/* ===== Responsive ===== */

@media (max-width: 1024px) {
    .blog-post-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .post-header h1 {
        font-size: 1.6rem;
    }

    .post-meta {
        gap: 12px;
    }

    .comment-form .form-row {
        grid-template-columns: 1fr;
    }

    .comment-form-reply .form-row {
        grid-template-columns: 1fr;
    }

    .post-featured-image img {
        max-height: 250px;
    }
}
