/* ==========================================================================
   DR. EMADI - BLOG STYLES
   Farbsystem:
   - Primär: #7EB7D7 (Teal)
   - Sekundär: #518FB2 (Dunkles Teal)
   - Text: #000000
   - Hintergrund: #ffffff
   ========================================================================== */

/* ==========================================================================
   BLOG HERO
   ========================================================================== */

.blog-hero {
    background-color: #7EB7D7;
    position: relative;
    padding: 60px 40px;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.blog-hero h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.blog-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin: 0;
}

.archive-type {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 15px;
    color: #fff;
}

.archive-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-top: 10px;
}

/* ==========================================================================
   BLOG ARCHIVE / GRID
   ========================================================================== */

.blog-archive {
    padding-top: 30px;
}

.archive-section-title {
    color: #518FB2;
    font-size: 1.375rem;
    font-weight: 500;
    margin-bottom: 25px;
}

.archive-info {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-section-divider {
    border: none;
    border-top: 2px solid #7EB7D7;
    margin: 40px 0;
}

/* ==========================================================================
   BLOG CARD
   ========================================================================== */

.blog-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.blog-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.blog-card.sticky {
    border-color: #7EB7D7;
    border-width: 2px;
}

.blog-card-image {
    display: block;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.blog-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-no-image {
    height: 60px;
    background: linear-gradient(135deg, #7EB7D7, #518FB2);
}

.sticky-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #518FB2;
    color: #fff;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 3px;
    z-index: 2;
}

.blog-card-content {
    padding: 20px;
}

.blog-card-categories {
    margin-bottom: 10px;
}

.blog-category-tag {
    display: inline-block;
    background: #f0f7fa;
    color: #518FB2;
    padding: 3px 10px;
    font-size: 0.75rem;
    border-radius: 3px;
    margin-right: 5px;
    margin-bottom: 5px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.blog-category-tag:hover {
    background: #7EB7D7;
    color: #fff;
    text-decoration: none;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px 0;
}

.blog-card-title a {
    color: #000;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: #518FB2;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

.blog-card-meta i {
    color: #7EB7D7;
    margin-right: 5px;
}

.blog-card-meta a {
    color: #666;
    text-decoration: none;
}

.blog-card-meta a:hover {
    color: #518FB2;
}

.blog-card-excerpt {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-card-readmore {
    display: inline-block;
    color: #518FB2;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
}

.blog-card-readmore:hover {
    color: #7EB7D7;
    text-decoration: none;
}

.blog-card-readmore i {
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.blog-card-readmore:hover i {
    transform: translateX(3px);
}

/* ==========================================================================
   BLOG SINGLE
   ========================================================================== */

.blog-single {
    padding-top: 30px;
}

.blog-article {
    background: #fff;
}

.blog-article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.sticky-indicator {
    display: inline-block;
    background: #518FB2;
    color: #fff;
    padding: 5px 15px;
    font-size: 0.85rem;
    border-radius: 3px;
    margin-bottom: 15px;
}

.blog-article-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 15px 0;
}

.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
}

.blog-article-meta i {
    color: #7EB7D7;
    margin-right: 5px;
}

.blog-article-meta a {
    color: #666;
    text-decoration: none;
}

.blog-article-meta a:hover {
    color: #518FB2;
}

.blog-article-categories {
    font-size: 0.9rem;
    color: #888;
}

.blog-article-categories i {
    color: #7EB7D7;
    margin-right: 8px;
}

.blog-category-link {
    color: #518FB2;
    text-decoration: none;
}

.blog-category-link:hover {
    text-decoration: underline;
}

.blog-article-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.blog-article-content p {
    margin-bottom: 1.5em;
}

.blog-article-content h2 {
    font-size: 1.375rem;
    color: #518FB2;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.blog-article-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

.blog-article-content blockquote {
    border-left: 4px solid #7EB7D7;
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #555;
}

.blog-article-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.blog-article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.blog-article-tags i {
    color: #7EB7D7;
}

.blog-tag {
    display: inline-block;
    background: #f5f5f5;
    color: #666;
    padding: 5px 12px;
    font-size: 0.85rem;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-tag:hover {
    background: #7EB7D7;
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   AUTOR-BOX
   ========================================================================== */

.blog-author-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #f9fafb;
    padding: 25px;
    border-radius: 4px;
    margin: 40px 0;
    border: 1px solid #e5e5e5;
}

.author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.author-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.125rem;
}

.author-info h3 a {
    color: #518FB2;
    text-decoration: none;
}

.author-info h3 a:hover {
    text-decoration: underline;
}

.author-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Autor-Profil in Archiv */
.author-profile-box {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    margin-bottom: 30px;
    border: 1px solid #e5e5e5;
}

.author-profile-avatar img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.author-profile-info h2 {
    margin: 0 0 10px 0;
    color: #518FB2;
}

.author-bio {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.author-profile-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
}

.author-website {
    color: #518FB2;
    text-decoration: none;
}

.author-website:hover {
    text-decoration: underline;
}

.author-post-count {
    color: #888;
}

.author-post-count i,
.author-website i {
    color: #7EB7D7;
    margin-right: 5px;
}

/* ==========================================================================
   BEITRAGS-NAVIGATION
   ========================================================================== */

.blog-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
    padding: 25px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

@media (max-width: 600px) {
    .blog-post-navigation {
        grid-template-columns: 1fr;
    }
}

.blog-post-navigation a {
    display: block;
    padding: 15px 20px;
    background: #f9fafb;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.blog-post-navigation a:hover {
    background: #f0f7fa;
    text-decoration: none;
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

.nav-title {
    display: block;
    color: #518FB2;
    font-weight: 500;
    font-size: 0.95rem;
}

/* ==========================================================================
   PAGINIERUNG
   ========================================================================== */

.blog-pagination {
    margin-top: 40px;
    text-align: center;
}

.blog-pagination .pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.blog-pagination .pagination li a,
.blog-pagination .pagination li span {
    display: block;
    padding: 10px 15px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.blog-pagination .pagination li a:hover {
    background: #7EB7D7;
    color: #fff;
}

.blog-pagination .pagination li span.current {
    background: #518FB2;
    color: #fff;
}

/* ==========================================================================
   BLOG SIDEBAR
   ========================================================================== */

.blog-sidebar {
    padding-top: 30px;
}

.sidebar-widget {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.sidebar-widget:last-child {
    border-bottom: none;
}

.sidebar-widget h3 {
    color: #518FB2;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 15px 0;
}

/* Suche */
.sidebar-search .search-input-wrapper {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.sidebar-search .search-field {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 0.95rem;
}

.sidebar-search .search-submit {
    background: #7EB7D7;
    border: none;
    padding: 10px 15px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sidebar-search .search-submit:hover {
    background: #518FB2;
}

/* Kategorien */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    text-decoration: none;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.category-list li a:hover,
.category-list li.current a {
    background: #7EB7D7;
    color: #fff;
}

.category-list li a .count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Neueste Beiträge */
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.recent-posts-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-thumb {
    flex-shrink: 0;
}

.recent-post-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
}

.recent-post-info {
    flex: 1;
    min-width: 0;
}

.recent-post-title {
    display: block;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    margin-bottom: 5px;
}

.recent-post-title:hover {
    color: #518FB2;
}

.recent-post-date {
    font-size: 0.8rem;
    color: #888;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud-link {
    display: inline-block;
    background: #f5f5f5;
    color: #666;
    padding: 5px 12px;
    font-size: 0.8rem;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-cloud-link:hover {
    background: #7EB7D7;
    color: #fff;
    text-decoration: none;
}

/* Archiv */
.archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-list li {
    margin-bottom: 8px;
}

.archive-list li a {
    display: block;
    color: #555;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s ease;
}

.archive-list li a:hover {
    color: #518FB2;
}

/* Zurück zum Blog */
.back-to-blog-link {
    display: block;
    background: #518FB2;
    color: #fff;
    text-align: center;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

.back-to-blog-link:hover {
    background: #7EB7D7;
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   KOMMENTARE
   ========================================================================== */

.blog-comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #7EB7D7;
}

.comments-title {
    color: #518FB2;
    font-size: 1.375rem;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-item {
    margin-bottom: 25px;
}

.comment-body {
    background: #f9fafb;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.comment-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-avatar img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.comment-meta {
    flex: 1;
}

.comment-author {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.comment-author a {
    color: #333;
    text-decoration: none;
}

.comment-author a:hover {
    color: #518FB2;
}

.comment-date {
    font-size: 0.85rem;
    color: #888;
}

.comment-awaiting-moderation {
    display: block;
    color: #e67e22;
    font-size: 0.85rem;
    margin-top: 5px;
}

.comment-content {
    color: #555;
    line-height: 1.6;
}

.comment-content p {
    margin: 0 0 10px 0;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
}

.comment-footer a {
    color: #518FB2;
    text-decoration: none;
    font-size: 0.85rem;
    margin-right: 15px;
}

.comment-footer a:hover {
    text-decoration: underline;
}

/* Verschachtelte Kommentare */
.comment-list .children {
    list-style: none;
    padding-left: 40px;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .comment-list .children {
        padding-left: 20px;
    }
}

/* Kommentar-Navigation */
.comment-navigation {
    margin: 30px 0;
}

.comment-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.comment-navigation a {
    color: #518FB2;
    text-decoration: none;
}

.comment-navigation a:hover {
    text-decoration: underline;
}

/* Kommentar-Formular */
.comment-respond {
    margin-top: 40px;
    padding: 30px;
    background: #f9fafb;
    border-radius: 4px;
}

.comment-respond h3 {
    color: #518FB2;
    margin: 0 0 20px 0;
}

.comment-notes {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.comment-form .required {
    color: #e74c3c;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #7EB7D7;
}

.comment-form textarea {
    resize: vertical;
    min-height: 150px;
}

.comment-form .submit-button {
    background: #518FB2;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.comment-form .submit-button:hover {
    background: #7EB7D7;
}

.no-comments {
    color: #888;
    font-style: italic;
    padding: 20px;
    background: #f9fafb;
    border-radius: 4px;
    text-align: center;
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */

.blog-breadcrumb {
    padding: 15px 0;
    margin-bottom: 20px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: #ccc;
}

.breadcrumb-list li a {
    color: #518FB2;
    text-decoration: none;
}

.breadcrumb-list li a:hover {
    text-decoration: underline;
}

.breadcrumb-list li.current {
    color: #888;
}

/* ==========================================================================
   KEINE BEITRÄGE
   ========================================================================== */

.no-posts {
    text-align: center;
    padding: 60px 30px;
    background: #f9fafb;
    border-radius: 4px;
}

.no-posts h2 {
    color: #518FB2;
    margin-bottom: 15px;
}

.no-posts p {
    color: #666;
}

/* ==========================================================================
   RESPONSIVE ANPASSUNGEN
   ========================================================================== */

@media (max-width: 991px) {
    .blog-hero {
        padding: 40px 20px;
    }

    .blog-hero h1 {
        font-size: 1.75rem;
    }

    .blog-article-header h1 {
        font-size: 1.5rem;
    }

    .author-profile-box {
        flex-direction: column;
        text-align: center;
    }

    .author-profile-meta {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .blog-sidebar {
        padding-top: 40px;
        margin-top: 40px;
        border-top: 1px solid #eee;
    }

    .blog-author-box {
        flex-direction: column;
        text-align: center;
    }

    .blog-article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .comment-header {
        flex-direction: column;
        text-align: center;
    }
}
