/* ===================================================
   AntiLeaks Security Blog — Corporate Identity
   blog.antileaks.de | blog_id=5
   Primär: #0a1628 | Akzent: #e63946 | Sekundär: #00395c
   =================================================== */

/* --- Google Fonts: Inter --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- Global Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

body,
body.blog,
body.archive,
body.single {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background: #0d1b2e !important;
    color: #1a1a2e !important;
    line-height: 1.7;
}

a { color: #e63946 !important; text-decoration: none; transition: color 0.2s; }
a:hover { color: #ff6b74 !important; }

/* --- HEADER --- */
#masthead,
.ast-primary-header,
.ast-primary-header-bar,
.site-header,
header.site-header,
#ast-desktop-header .ast-primary-header-bar,
.ast-mobile-header-wrap .ast-primary-header-bar {
    background: #0a1628 !important;
    border-bottom: 2px solid #e63946 !important;
    padding: 0 !important;
}

/* Header inner container */
.ast-container,
.ast-primary-header .ast-container {
    max-width: 1200px !important;
    padding: 0 24px !important;
}

/* Logo */
.ast-site-identity img,
.custom-logo,
.site-header .custom-logo,
.ast-site-identity .custom-logo {
    max-height: 44px !important;
    width: auto !important;
}

.ast-site-identity .ast-site-title a,
.ast-site-title a,
.site-title a {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 1.3rem !important;
    font-family: 'Inter', sans-serif !important;
}

/* Navigation */
.ast-builder-menu .menu-item a,
.main-header-menu .menu-item a,
.ast-primary-header-bar .menu-item > a,
.ast-header-break-point .menu-item > a {
    color: #1a1a2e !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    padding: 8px 14px !important;
    transition: color 0.2s !important;
}

.ast-builder-menu .menu-item a:hover,
.main-header-menu .menu-item a:hover,
.ast-primary-header-bar .menu-item > a:hover {
    color: #e63946 !important;
}

.ast-builder-menu .current-menu-item > a,
.main-header-menu .current-menu-item > a {
    color: #e63946 !important;
}

/* Mobile menu */
.ast-mobile-header-wrap {
    background: #0a1628 !important;
}
.ast-mobile-menu-wrap .menu-item > a {
    color: #1a1a2e !important;
    border-bottom: 1px solid #1a2d4a !important;
}
.ast-header-break-point .main-header-bar {
    background: #0a1628 !important;
}
.ast-mobile-menu-trigger-btn .ast-mobile-menu-trigger-icon,
.ast-mobile-menu-trigger-btn .ast-mobile-menu-trigger-close {
    color: #fff !important;
    fill: #fff !important;
}

/* --- PAGE / CONTENT WRAP --- */
#page,
.ast-page-builder-template,
.ast-plain-container,
#content {
    background: #0d1b2e !important;
}

.ast-container,
.ast-grid-right-sidebar,
.ast-grid-left-sidebar,
.ast-no-sidebar #primary {
    max-width: 1200px !important;
}

/* --- BLOG HERO / ARCHIVE HEADER --- */
.ast-archive-description,
.page-header.ast-archive-title-wrap {
    background: linear-gradient(135deg, #0a1628 0%, #00395c 100%) !important;
    padding: 60px 24px 40px !important;
    text-align: center;
    border-bottom: 2px solid #e63946;
}

.ast-archive-description .ast-archive-title,
.page-header .page-title,
.ast-archive-title {
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.5rem !important;
}

.ast-archive-description p,
.taxonomy-description {
    color: #8fa3b8 !important;
    font-size: 1rem !important;
}

/* --- BLOG GRID / POST LIST --- */
.ast-articles-blocks-wrap,
.ast-blog-layout-1,
.ast-blog-layout-2,
.ast-blog-layout-3 {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 28px !important;
    padding: 40px 0 !important;
}

/* --- POST CARD --- */
.ast-article-post,
.ast-blog-featured-section article,
article.ast-article-post,
.post-type-post.ast-article-post {
    background: #111e30 !important;
    border: 1px solid #1a2d4a !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
}

.ast-article-post:hover,
article.ast-article-post:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 40px rgba(230,57,70,0.2) !important;
    border-color: #e63946 !important;
}

/* Post thumbnail */
.ast-blog-featured-section .ast-article-post .ast-post-featured-img,
.ast-article-post .post-thumb,
.ast-article-post .post-featured-img,
.ast-article-post .ast-post-grid-featured-img {
    overflow: hidden !important;
    max-height: 220px !important;
}

.ast-article-post .post-thumb img,
.ast-article-post .ast-post-grid-featured-img img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    transition: transform 0.35s ease !important;
}

.ast-article-post:hover .post-thumb img,
.ast-article-post:hover .ast-post-grid-featured-img img {
    transform: scale(1.05) !important;
}

/* Post content area */
.ast-article-post .ast-blog-post-info,
.ast-article-post .entry-content-wrap,
.ast-article-post .entry-wrapper,
.ast-article-post .ast-post-content {
    padding: 24px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* --- POST META (date + category) --- */
.ast-article-post .ast-blog-post-info .entry-meta,
.ast-article-post .entry-meta {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-bottom: 12px !important;
}

/* Category Badge */
.ast-article-post .cat-links a,
.ast-article-post .entry-meta .cat-links a,
.ast-article-post .posted-in a {
    background: #e63946 !important;
    color: #fff !important;
    padding: 3px 10px !important;
    border-radius: 4px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.ast-article-post .cat-links a:hover,
.ast-article-post .entry-meta .cat-links a:hover {
    background: #c0303b !important;
    color: #fff !important;
}

/* Date */
.ast-article-post .entry-meta .posted-on a,
.ast-article-post .entry-meta .posted-on,
.ast-article-post .ast-post-meta .published,
.ast-article-post time.entry-date {
    color: #6b8099 !important;
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}

/* --- POST TITLE --- */
.ast-article-post .entry-title,
.ast-article-post .ast-blog-post-info .entry-title,
.ast-article-post h2.entry-title,
.ast-article-post h3.entry-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    margin: 0 0 12px !important;
    color: #e8f0f7 !important;
}

.ast-article-post .entry-title a,
.ast-article-post h2.entry-title a {
    color: #e8f0f7 !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.ast-article-post .entry-title a:hover {
    color: #e63946 !important;
}

/* --- EXCERPT --- */
.ast-article-post .entry-summary,
.ast-article-post .ast-post-summary,
.ast-article-post .entry-content p {
    color: #c8d8e8 !important;
    font-size: 0.88rem !important;
    line-height: 1.7 !important;
    flex: 1 !important;
    margin-bottom: 20px !important;
}

/* --- CTA BUTTON "Weiterlesen" --- */
.ast-article-post .read-more,
.ast-article-post .more-link,
.ast-article-post a.read-more,
.ast-article-post a.more-link,
.ast-article-post .ast-read-more,
.ast-blog-post-info .ast-read-more a,
.entry-footer .read-more {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #e63946 !important;
    color: #fff !important;
    padding: 9px 20px !important;
    border-radius: 6px !important;
    font-size: 0.83rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    text-transform: none !important;
    text-decoration: none !important;
    margin-top: auto !important;
    align-self: flex-start !important;
    transition: background 0.2s, transform 0.15s !important;
    border: none !important;
}

.ast-article-post .read-more::after,
.ast-article-post .more-link::after {
    content: '→' !important;
    font-size: 0.95em !important;
}

.ast-article-post .read-more:hover,
.ast-article-post .more-link:hover,
.ast-article-post a.read-more:hover {
    background: #c0303b !important;
    color: #fff !important;
    transform: translateX(2px) !important;
}

/* --- SINGLE POST --- */
.single .site-main,
body.single-post .site-main {
    background: #0d1b2e !important;
}

.single .entry-title,
body.single-post h1.entry-title {
    color: #0a1628 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
}

.single .entry-meta,
body.single-post .entry-meta {
    color: #6b8099 !important;
    font-size: 0.85rem !important;
    margin-bottom: 2rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid #1a2d4a !important;
}

.single .entry-content,
body.single-post .entry-content {
    color: #1a1a2e !important;
    font-size: 1rem !important;
    line-height: 1.8 !important;
}

.single .entry-content h1,
.single .entry-content h2,
.single .entry-content h3,
.single .entry-content h4 {
    color: #0a1628 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    margin-top: 2rem !important;
}

.single .entry-content h2 { font-size: 1.5rem !important; }
.single .entry-content h3 { font-size: 1.25rem !important; }

/* Blockquote in posts */
.single .entry-content blockquote {
    border-left: 3px solid #e63946 !important;
    background: #111e30 !important;
    padding: 16px 20px !important;
    margin: 1.5rem 0 !important;
    border-radius: 0 8px 8px 0 !important;
    color: #8fa3b8 !important;
}

/* Code blocks */
.single .entry-content code,
.single .entry-content pre {
    background: #0a1628 !important;
    color: #7ec8e3 !important;
    border: 1px solid #1a2d4a !important;
    border-radius: 6px !important;
    font-size: 0.88em !important;
}

.single .entry-content pre {
    padding: 16px 20px !important;
    overflow-x: auto !important;
}

.single .entry-content code:not(pre code) {
    padding: 2px 6px !important;
}

/* --- SIDEBAR / WIDGETS --- */
#secondary,
.widget-area {
    background: transparent !important;
}

.widget,
.ast-sidebar-style .widget {
    background: #111e30 !important;
    border: 1px solid #1a2d4a !important;
    border-radius: 10px !important;
    padding: 20px !important;
    margin-bottom: 24px !important;
}

.widget-title,
.widget .widget-title {
    color: #0a1628 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #e63946 !important;
}

.widget ul li a { color: #8fa3b8 !important; }
.widget ul li a:hover { color: #e63946 !important; }

/* --- PAGINATION --- */
.ast-pagination-wrap,
.pagination,
.page-links,
nav.navigation {
    text-align: center !important;
    padding: 40px 0 !important;
}

.ast-pagination-wrap a,
.pagination a,
.page-numbers a,
nav.navigation a {
    background: #111e30 !important;
    color: #1a1a2e !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    border: 1px solid #1a2d4a !important;
    margin: 0 4px !important;
    display: inline-block !important;
    transition: all 0.2s !important;
}

.ast-pagination-wrap a:hover,
.pagination a:hover,
.page-numbers a:hover {
    background: #e63946 !important;
    color: #fff !important;
    border-color: #e63946 !important;
}

.page-numbers.current {
    background: #e63946 !important;
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    display: inline-block !important;
    margin: 0 4px !important;
}

/* --- FOOTER --- */
#colophon,
.site-footer,
.ast-site-footer,
footer.site-footer {
    background: #060f1a !important;
    border-top: 2px solid #e63946 !important;
    padding: 40px 24px 24px !important;
    color: #4a6070 !important;
}

.ast-footer-copyright,
.site-info,
.ast-footer-copyright p {
    color: #4a6070 !important;
    font-size: 0.82rem !important;
    text-align: center !important;
    font-family: 'Inter', sans-serif !important;
}

.ast-footer-copyright a,
.site-info a {
    color: #6b8099 !important;
}

.ast-footer-copyright a:hover,
.site-info a:hover {
    color: #e63946 !important;
}

/* Footer logo */
.ast-footer-logo img,
.footer-logo img {
    max-height: 36px !important;
    filter: brightness(0) invert(1) !important;
    opacity: 0.7 !important;
}

/* Footer widgets */
.footer-widget-area,
.ast-footer-widget-area {
    background: #060f1a !important;
    border-top: 1px solid #1a2d4a !important;
    padding: 48px 24px !important;
}

.footer-widget-area .widget-title,
.ast-footer-widget-area .widget-title {
    color: #0a1628 !important;
    font-size: 0.85rem !important;
    border-bottom-color: #e63946 !important;
}

.footer-widget-area .widget,
.ast-footer-widget-area .widget {
    background: transparent !important;
    border: none !important;
}

/* --- BREADCRUMB --- */
.ast-breadcrumbs-wrapper,
.astra-breadcrumbs {
    background: #0a1628 !important;
    border-bottom: 1px solid #1a2d4a !important;
    padding: 10px 24px !important;
}

.ast-breadcrumbs a,
.astra-breadcrumbs a {
    color: #6b8099 !important;
    font-size: 0.8rem !important;
}

.ast-breadcrumbs a:hover,
.astra-breadcrumbs a:hover { color: #e63946 !important; }

.ast-breadcrumbs span,
.astra-breadcrumbs span {
    color: #4a6070 !important;
    font-size: 0.8rem !important;
}

/* --- SEARCH FORM --- */
.search-field,
.ast-site-header input[type="search"] {
    background: #111e30 !important;
    border: 1px solid #1a2d4a !important;
    color: #1a1a2e !important;
    border-radius: 6px !important;
    padding: 8px 14px !important;
    font-family: 'Inter', sans-serif !important;
}

.search-field:focus {
    border-color: #e63946 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(230,57,70,0.2) !important;
}

.search-submit {
    background: #e63946 !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

.search-submit:hover { background: #c0303b !important; }

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0a1628; }
::-webkit-scrollbar-thumb { background: #1a2d4a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #e63946; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .ast-articles-blocks-wrap,
    .ast-blog-layout-1,
    .ast-blog-layout-2 {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 20px 16px !important;
    }

    .single .entry-title,
    body.single-post h1.entry-title {
        font-size: 1.5rem !important;
    }

    #colophon,
    .site-footer {
        padding: 30px 16px 20px !important;
    }
}

@media (max-width: 1024px) {
    .ast-articles-blocks-wrap,
    .ast-blog-layout-1 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Fix: alle kleinen Texte auf Karten hell (dunkler Hintergrund) */
.ast-article-post .entry-meta,
.ast-article-post .entry-meta *,
.ast-article-post .ast-blog-meta-container,
.ast-article-post .ast-blog-meta-container *,
.ast-article-post span.posted-on,
.ast-article-post span.byline,
.ast-article-post .author,
.ast-article-post .vcard,
.ast-article-post time {
    color: #8fa3b8 !important;
}

/* Fix: Excerpt + Author auf Karten hell */
.ast-article-post .ast-excerpt-container,
.ast-article-post .ast-excerpt-container *,
.ast-article-post .entry-content.clear,
.ast-article-post .entry-content.clear p,
.ast-article-post .entry-content.clear * {
    color: #c8d8e8 !important;
}
.ast-article-post .author.vcard,
.ast-article-post .author.vcard a,
.ast-article-post span.author {
    color: #8fa3b8 !important;
}
