/* Legal & static content pages */
.legal-page {
    background-image: url('/static/images/matrix.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #022b50;
    padding: 94px 0 90px;
}

.legal-page .terms-page {
    background-color: rgba(4, 30, 63, 0.92);
    padding: 24px 28px;
    border-radius: 10px;
    border: 1px solid #072347;
    color: #fff;
    margin-bottom: 32px;
}

.legal-page .terms-page h1,
.legal-page .terms-page h2 {
    color: #fff;
}

.legal-page .terms-page a {
    color: #6dfbfb;
}

.legal-page .terms-page a:hover {
    color: #ff0000;
}

/* Post listing & detail */
.post-content {
    padding: 20px;
    background: #121212;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.post-heading {
    font-size: 28px;
    color: #fff;
    margin-bottom: 10px;
}

.post-author {
    font-size: 14px;
    color: #6dfbfb;
    margin-bottom: 16px;
}

.post-body {
    font-size: 16px;
    line-height: 1.7;
    color: #dadada;
}

.post-divider {
    margin: 24px 0;
    border: 0;
    border-top: 1px solid #072347;
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
}

.pagination-link {
    padding: 8px 14px;
    border: 1px solid #072347;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    background-color: #041e3f;
    transition: all 0.2s ease;
}

.pagination-link:hover,
.pagination-link.active {
    background-color: #ff0000;
    border-color: #ff0000;
    color: #fff;
}

.category-posts-list {
    list-style: none;
    padding: 0;
}

.category-posts-list li {
    border-bottom: 1px solid #072347;
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.category-post-link {
    color: #fff;
    text-decoration: none;
}

.category-post-link:hover {
    color: #6dfbfb;
}

.post-date {
    color: #6dfbfb;
    font-size: 13px;
    white-space: nowrap;
}

/* 404 */
.error-page {
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 30vh;
    color: #fff;
    background: linear-gradient(to top, #022b50 0%, #000 100%);
    padding: 50px 20px;
    border-radius: 10px;
}

.error-page h1 {
    font-size: 100px;
    margin-bottom: 20px;
    color: #ff0000;
}

.error-page p {
    font-size: 20px;
    margin-bottom: 30px;
}

.error-page .btn {
    padding: 12px 24px;
    background: #ff0000;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.error-page .btn:hover {
    background: #b71010;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #070821;
    color: #ffffff;
    padding: 16px 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    z-index: 10000;
    border-top: 2px solid #ff0000;
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
    flex: 1;
    min-width: 200px;
}

.cookie-banner a {
    color: #6dfbfb;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
}

.cookie-banner button {
    background-color: #ff0000;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
}

.cookie-banner button.cookie-decline {
    background-color: transparent;
    border: 1px solid #6dfbfb;
    color: #6dfbfb;
}

.cookie-banner button:hover {
    opacity: 0.9;
}

/* About / Contact */
.about-intro,
.contact-intro {
    color: #fff;
    font-size: 17px;
    line-height: 1.7;
}

.about-intro h2,
.contact-intro h2 {
    color: #ff0000;
    text-transform: uppercase;
    font-size: 24px;
    margin-top: 24px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.skill-tags span {
    background: #041e3f;
    border: 1px solid #072347;
    color: #6dfbfb;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
}

/* CSS backgrounds – echte Assets aus static/images/ */
.banner {
    background-color: #0a0a0f;
    background-image: linear-gradient(90deg, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.6) 50%, rgba(10, 10, 15, 0.3) 100%),
        url('/static/images/banner.jpg');
}

.herobtm {
    background-color: #0d1117;
    background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.75)),
        url('/static/images/herobottom.jpg');
}

.nnews {
    background-color: #0a0a0f;
    background-image: linear-gradient(rgba(10, 10, 15, 0.88), rgba(10, 10, 15, 0.95)),
        url('/static/images/matrix.jpg');
}

.ftrtop {
    background-color: #0a0a0f;
    background-image: linear-gradient(rgba(10, 10, 15, 0.85), rgba(10, 10, 15, 0.95)),
        url('/static/images/footer.jpg');
}

/* MVP polish: empty states, grid slider, mobile hero */
.empty-state {
    color: #8b949e;
    padding: 16px 0 8px;
    font-size: 16px;
    line-height: 1.6;
}

.empty-state a {
    color: #6dfbfb;
    text-decoration: none;
}

.empty-state a:hover {
    color: #ff0000;
}

.empty-state-inline {
    color: #8b949e;
    font-size: 14px;
}

.home-preview {
    padding-top: 40px;
    padding-bottom: 50px;
}

.home-preview + .home-preview {
    padding-top: 0;
}

.hotslider-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.hotslider-grid .hitem {
    min-width: 0;
}

.lpoststhumb img,
.post-thumbnail img,
.sidebar_widget .image-fit {
    object-fit: cover;
    background-color: #000;
}

.eachhnewsthumb img {
    aspect-ratio: 16 / 9;
}

.lpoststhumb img {
    min-height: 180px;
}

@media (max-width: 1199px) {
    .hotslider-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .banner .text_box {
        padding: 120px 0 0;
    }

    .banner .heroimg {
        position: relative;
        bottom: auto;
        right: auto;
        display: block;
        margin: 32px auto 0;
        max-width: min(100%, 520px);
    }

    .eachhnewsdet .hnewnm {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .hotslider-grid {
        grid-template-columns: 1fr;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-banner button {
        flex: 1;
    }
}
