/**
 * Blog Magazin Styles - Göring Versicherungsmakler
 * SCOPED: All styles only apply within .magazin-archive, .magazin-sidebar, .ratgeber-article
 * 
 * Brand Color: #3776b7
 */

/* ============================================
   RATGEBER ARTICLE - SINGLE POST VIEW
   ============================================ */
.ratgeber-article {
    background: #fff;
}

.ratgeber-article h4 {
    font-weight: bold;
}

.ratgeber-article .ratgeber-hero {
    background: #EFEFEF;
    padding: 40px 0 0 0;
    margin-bottom: 0;
}

.ratgeber-article .ratgeber-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px 5px 20px;
}

.ratgeber-article .ratgeber-category {
    margin-bottom: 16px;
}

.ratgeber-article .category-badge {
    display: inline-block;
    background: #3776b7;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    text-decoration: none;
}

.ratgeber-article .category-badge:hover {
    background: #2a5a8a;
    color: #fff;
    text-decoration: none;
}

.ratgeber-article .ratgeber-title {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
    color: #333;
    margin: 0 0 24px 0;
    padding: 0;
}

.ratgeber-article .ratgeber-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 14px;
    color: #777;
    margin-bottom: 40px;
}

.ratgeber-article .ratgeber-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ratgeber-article .ratgeber-meta i {
    color: #3776b7;
}

.ratgeber-article .ratgeber-hero-image {
    max-width: 1000px;
    margin: 0 auto 20px auto;
    overflow: hidden;
}

.ratgeber-article .ratgeber-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

/* Ratgeber Content Typography */
.ratgeber-article .ratgeber-content {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

.ratgeber-article .ratgeber-content p {
    margin-bottom: 1.5em;
}

.ratgeber-article .ratgeber-content h2 {
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
    color: #333;
    margin: 2.5em 0 0.8em 0;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.ratgeber-article .ratgeber-content h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.ratgeber-article .ratgeber-content h3 {
    font-size: 22px;
    line-height: 1.4;
    font-weight: 600;
    color: #333;
    margin: 2em 0 0.6em 0;
}

.ratgeber-article .ratgeber-content a {
    color: #3776b7;
    text-decoration: underline;
}

.ratgeber-article .ratgeber-content a:hover {
    color: #2a5a8a;
}

/* Ratgeber Tables - RESPONSIVE */
.ratgeber-article .ratgeber-content .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2em 0;
}

.ratgeber-article .ratgeber-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    min-width: 500px;
}

.ratgeber-article .ratgeber-content table th {
    background: #3776b7;
    color: #fff;
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
    border: none;
    white-space: nowrap;
}

.ratgeber-article .ratgeber-content table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
}

.ratgeber-article .ratgeber-content table tr:nth-child(even) {
    background: #EFEFEF;
}

/* Mobile table hint */
.ratgeber-article .table-scroll-hint {
    display: none;
    font-size: 13px;
    color: #777;
    text-align: center;
    padding: 8px;
    background: #EFEFEF;
    margin-bottom: -1px;
}

@media (max-width: 767px) {
    .ratgeber-article .table-scroll-hint {
        display: block;
    }
    
    .ratgeber-article .ratgeber-content table {
        font-size: 14px;
    }
    
    .ratgeber-article .ratgeber-content table th,
    .ratgeber-article .ratgeber-content table td {
        padding: 10px 12px;
    }
}

/* Ratgeber Blockquotes */
.ratgeber-article .ratgeber-content blockquote {
    margin: 2em 0;
    padding: 24px 28px;
    background: #EFEFEF;
    border-left: 4px solid #3776b7;
    font-style: normal;
}

/* Ratgeber Buttons - ONLY in ratgeber-content */
.ratgeber-article .ratgeber-content a.button {
    display: inline-block;
    background: #3776b7;
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    text-decoration: none !important;
    border: none;
}

.ratgeber-article .ratgeber-content a.button:hover {
    background: #2a5a8a;
}

/* Ratgeber Author Box */
.ratgeber-article .ratgeber-author-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: #EFEFEF;
    margin: 50px 0 30px 0;
}

.ratgeber-article .author-avatar img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.ratgeber-article .author-info {
    flex: 1;
}

.ratgeber-article .author-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
}

.ratgeber-article .author-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 4px 0 8px 0;
}

.ratgeber-article .author-bio {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* Ratgeber Tags */
.ratgeber-article .ratgeber-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    border-top: 1px solid #e5e5e5;
    margin-top: 30px;
}

.ratgeber-article .tags-label {
    font-size: 14px;
    color: #777;
}

.ratgeber-article .tag-link {
    display: inline-block;
    font-size: 13px;
    color: #555;
    background: #EFEFEF;
    padding: 6px 14px;
    text-decoration: none;
}

.ratgeber-article .tag-link:hover {
    background: #3776b7;
    color: #fff;
}

/* Ratgeber Related Posts */
.ratgeber-article .ratgeber-related {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
}

.ratgeber-article .related-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 24px 0;
}

.ratgeber-article .related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ratgeber-article .related-post-card {
    background: #fff;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.ratgeber-article .related-post-card:hover {
    border-color: #3776b7;
}

.ratgeber-article .related-post-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

.ratgeber-article .related-post-content {
    padding: 16px;
}

.ratgeber-article .related-post-content h4 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.ratgeber-article .related-post-content h4 a {
    color: #333;
    text-decoration: none;
}

.ratgeber-article .related-post-content h4 a:hover {
    color: #3776b7;
}

.ratgeber-article .related-post-date {
    font-size: 13px;
    color: #777;
}

/* ============================================
   MAGAZIN ARCHIVE - BLOG LISTING PAGES
   ============================================ */
.magazin-archive {
    background: #EFEFEF;
    min-height: 100vh;
    padding-bottom: 60px;
}

.magazin-archive ha {
    color: #FFFFFF;
}

.magazin-archive .magazin-header {
    background: linear-gradient(135deg, #3776b7 0%, #2a5a8a 100%);
    padding: 50px 0;
    margin-bottom: 40px;
    text-align: center;
}

.magazin-archive .magazin-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
}

.magazin-archive .magazin-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Post */
.magazin-archive .magazin-featured-post {
    background: #fff;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    margin-bottom: 40px;
}

.magazin-archive .magazin-featured-post .featured-image {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

.magazin-archive .magazin-featured-post .featured-content {
    padding: 32px;
}

.magazin-archive .magazin-featured-post .featured-category {
    display: inline-block;
    background: #3776b7;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    text-decoration: none;
    margin-bottom: 16px;
}

.magazin-archive .magazin-featured-post .featured-category:hover {
    background: #2a5a8a;
    color: #fff;
}

.magazin-archive .magazin-featured-post .featured-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 16px 0;
}

.magazin-archive .magazin-featured-post .featured-title a {
    color: #333;
    text-decoration: none;
}

.magazin-archive .magazin-featured-post .featured-title a:hover {
    color: #3776b7;
}

.magazin-archive .magazin-featured-post .featured-excerpt {
    font-size: 17px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.magazin-archive .magazin-featured-post .featured-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

.magazin-archive .magazin-featured-post .featured-meta i {
    color: #3776b7;
    margin-right: 6px;
}

.magazin-archive .magazin-featured-post .featured-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #3776b7;
    text-decoration: none;
}

.magazin-archive .magazin-featured-post .featured-link:hover {
    color: #2a5a8a;
}

/* Magazine Grid */
.magazin-archive .magazin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* Magazine Card */
.magazin-archive .magazin-card {
    background: #fff;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
}

.magazin-archive .magazin-card:hover {
    border-color: #3776b7;
}

.magazin-archive .magazin-card .card-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.magazin-archive .magazin-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.magazin-archive .magazin-card .card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.magazin-archive .magazin-card .card-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #3776b7;
    text-decoration: none;
    margin-bottom: 10px;
}

.magazin-archive .magazin-card .card-category:hover {
    color: #2a5a8a;
}

.magazin-archive .magazin-card .card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 10px 0;
    flex: 1;
}

.magazin-archive .magazin-card .card-title a {
    color: #333;
    text-decoration: none;
}

.magazin-archive .magazin-card .card-title a:hover {
    color: #3776b7;
}

.magazin-archive .magazin-card .card-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.magazin-archive .magazin-card .card-meta {
    font-size: 13px;
    color: #777;
    margin-top: auto;
}

.magazin-archive .magazin-card .card-meta i {
    color: #3776b7;
    margin-right: 4px;
}

/* Pagination */
.magazin-archive .magazin-pagination {
    text-align: center;
    margin-top: 20px;
}

.magazin-archive .magazin-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.magazin-archive .magazin-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    background: #fff;
    border: 1px solid #e5e5e5;
    text-decoration: none;
}

.magazin-archive .magazin-pagination .page-numbers:hover {
    background: #3776b7;
    border-color: #3776b7;
    color: #fff;
}

.magazin-archive .magazin-pagination .page-numbers.current {
    background: #3776b7;
    border-color: #3776b7;
    color: #fff;
}

/* Search Results Count */
.magazin-archive .search-results-count {
    font-size: 16px;
    color: #555;
    margin-bottom: 24px;
}

/* No Results */
.magazin-archive .no-results-box {
    background: #fff;
    padding: 40px;
    text-align: center;
    border: 1px solid #e5e5e5;
}

.magazin-archive .no-results-box h2 {
    font-size: 24px;
    color: #333;
    margin: 0 0 16px 0;
}

.magazin-archive .no-results-box p {
    color: #555;
    margin-bottom: 24px;
}

.magazin-archive .search-again {
    max-width: 400px;
    margin: 0 auto;
}

.magazin-archive .search-again .search-form {
    display: flex;
}

.magazin-archive .search-again .search-field {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #e5e5e5;
    border-right: none;
}

.magazin-archive .search-again .search-submit {
    padding: 12px 20px;
    background: #3776b7;
    color: #fff;
    border: none;
    cursor: pointer;
}

/* ============================================
   MAGAZIN SIDEBAR - SCOPED COMPLETELY
   ============================================ */
.magazin-sidebar {
    position: sticky;
    top: 120px;
}

.magazin-sidebar .sidebar-widget {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 24px;
    margin-bottom: 24px;
}

.magazin-sidebar .widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #3776b7;
}

/* Search Widget */
.magazin-sidebar .search-widget .search-form {
    display: flex;
}

.magazin-sidebar .search-widget .search-field {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #e5e5e5;
    border-right: none;
    outline: none;
}

.magazin-sidebar .search-widget .search-field:focus {
    border-color: #3776b7;
}

.magazin-sidebar .search-widget .search-submit {
    padding: 12px 16px;
    background: #3776b7;
    color: #fff;
    border: none;
    cursor: pointer;
}

.magazin-sidebar .search-widget .search-submit:hover {
    background: #2a5a8a;
}

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

.magazin-sidebar .category-list li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e5e5e5;
}

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

.magazin-sidebar .category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    text-decoration: none;
}

.magazin-sidebar .category-list li a:hover {
    padding-left: 8px;
}

.magazin-sidebar .category-list .cat-name {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.magazin-sidebar .category-list li a:hover .cat-name,
.magazin-sidebar .category-list li.current .cat-name {
    color: #3776b7;
}

.magazin-sidebar .category-list .cat-count {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #3776b7;
    padding: 2px 10px;
}

/* Recent Posts Widget */
.magazin-sidebar .recent-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.magazin-sidebar .recent-posts-list li {
    margin: 0 0 16px 0;
    padding: 0 0 16px 0;
    border-bottom: 1px solid #e5e5e5;
}

.magazin-sidebar .recent-posts-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.magazin-sidebar .recent-posts-list li a {
    display: flex;
    gap: 12px;
    text-decoration: none;
}

.magazin-sidebar .recent-post-thumb {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    overflow: hidden;
}

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

.magazin-sidebar .recent-post-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.magazin-sidebar .recent-post-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.magazin-sidebar .recent-posts-list li a:hover .recent-post-title {
    color: #3776b7;
}

.magazin-sidebar .recent-post-date {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

/* CTA Widget */
.magazin-sidebar .cta-widget {
    background: linear-gradient(135deg, #3776b7 0%, #2a5a8a 100%) !important;
    color: #fff;
    text-align: center;
    border: none !important;
}

.magazin-sidebar .cta-widget .widget-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.3);
}

.magazin-sidebar .cta-widget p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    opacity: 0.95;
}

.magazin-sidebar .cta-widget a.button {
    display: block;
    background: #fff;
    color: #3776b7 !important;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    text-decoration: none !important;
    text-align: center;
    margin-bottom: 12px;
    margin-left: auto;
    margin-right: auto;
}

.magazin-sidebar .cta-widget a.button:hover {
    background: #EFEFEF;
}

.magazin-sidebar .cta-widget .cta-phone {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

.magazin-sidebar .cta-widget .cta-phone i {
    margin-right: 6px;
}

/* TOC Widget */
.magazin-sidebar .toc-widget {
    background: #EFEFEF !important;
}

.magazin-sidebar .toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.magazin-sidebar .toc-list li {
    margin-bottom: 10px;
    padding: 0;
    border: none;
}

.magazin-sidebar .toc-list li a {
    display: block;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    padding: 6px 0 6px 12px;
    border-left: 2px solid transparent;
}

.magazin-sidebar .toc-list li a:hover {
    color: #3776b7;
    border-left-color: #3776b7;
    padding-left: 12px;
}

.magazin-sidebar .toc-list li.toc-h3 {
    margin-left: 16px;
}

.magazin-sidebar .toc-list li.toc-h3 a {
    font-size: 13px;
    color: #777;
}

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

.magazin-sidebar .tag-cloud .tag-link {
    display: inline-block;
    font-size: 13px;
    color: #555;
    background: #EFEFEF;
    padding: 6px 12px;
    text-decoration: none;
}

.magazin-sidebar .tag-cloud .tag-link:hover {
    background: #3776b7;
    color: #fff;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .ratgeber-article .ratgeber-title {
        font-size: 32px;
    }
    
    .ratgeber-article .ratgeber-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .magazin-sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .magazin-sidebar .toc-widget {
        display: none;
    }
    
    .ratgeber-article .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .magazin-archive .magazin-header {
        padding: 30px 0;
    }
    
    .magazin-archive .magazin-title {
        font-size: 32px;
    }
    
    .magazin-archive .magazin-featured-post .featured-title {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .ratgeber-article .ratgeber-title {
        font-size: 26px;
    }
    
    .ratgeber-article .ratgeber-content {
        font-size: 16px;
    }
    
    .ratgeber-article .ratgeber-content h2 {
        font-size: 22px;
    }
    
    .ratgeber-article .ratgeber-author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .magazin-archive .magazin-title {
        font-size: 26px;
    }
    
    .magazin-archive .magazin-subtitle {
        font-size: 15px;
    }
    
    .magazin-archive .magazin-grid {
        grid-template-columns: 1fr;
    }
    
    .magazin-archive .magazin-featured-post .featured-content {
        padding: 20px;
    }
    
    .magazin-archive .magazin-featured-post .featured-title {
        font-size: 22px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .magazin-sidebar,
    .ratgeber-article .ratgeber-related,
    .ratgeber-article .ratgeber-tags {
        display: none !important;
    }
}
