/*
Theme Name: Simple Theme
Theme URI: https://example.com/simple-theme
Author: Your Name
Author URI: https://example.com
Description: A clean, minimal WordPress theme for blogs and small sites.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simple-theme
Tags: blog, one-column, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, footer-widgets, sticky-post, threaded-comments
*/

/* ===========================
   Reset & Base
=========================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    background-color: #f9f9f9;
}

a {
    color: #0073aa;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===========================
   Layout
=========================== */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    padding: 2.5rem 0;
}

.content-area.no-sidebar {
    grid-template-columns: 1fr;
    max-width: 750px;
    margin: 0 auto;
    width: 100%;
}

/* ===========================
   Header
=========================== */
.site-header {
    background-color: #1e1e2e;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-branding a {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-branding a:hover {
    text-decoration: none;
    opacity: 0.85;
}

.site-description {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 0.1rem;
}

/* ===========================
   Navigation
=========================== */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.main-navigation a {
    color: #ddd;
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
}

/* ===========================
   Posts & Articles
=========================== */
.post {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.post:last-child {
    margin-bottom: 0;
}

.entry-header {
    margin-bottom: 1.25rem;
}

.entry-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: #1e1e2e;
}

.entry-title a:hover {
    color: #0073aa;
    text-decoration: none;
}

.entry-meta {
    font-size: 0.82rem;
    color: #777;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.entry-meta a {
    color: #555;
}

.entry-meta a:hover {
    color: #0073aa;
}

.entry-thumbnail {
    margin-bottom: 1.25rem;
    border-radius: 6px;
    overflow: hidden;
}

.entry-thumbnail img {
    width: 100%;
    object-fit: cover;
    max-height: 400px;
}

.entry-content {
    font-size: 1rem;
    color: #444;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 1.5rem 0 0.75rem;
    color: #1e1e2e;
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1rem 1.5rem;
}

.entry-content blockquote {
    border-left: 4px solid #0073aa;
    padding: 0.75rem 1.25rem;
    margin: 1.25rem 0;
    background: #f0f7fb;
    color: #555;
    border-radius: 0 4px 4px 0;
}

.entry-content pre {
    background: #1e1e2e;
    color: #e0e0e0;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.entry-content code {
    background: #f0f0f0;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-size: 0.88em;
}

.entry-content pre code {
    background: none;
    padding: 0;
}

.entry-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.82rem;
    color: #888;
}

/* ===========================
   Read More Button
=========================== */
.read-more {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.25rem;
    background-color: #0073aa;
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}

.read-more:hover {
    background-color: #005b86;
    color: #fff;
    text-decoration: none;
}

/* ===========================
   Pagination
=========================== */
.pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    padding: 0.45rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: #0073aa;
    border-color: #0073aa;
    color: #fff;
    text-decoration: none;
}

/* ===========================
   Sidebar & Widgets
=========================== */
.widget-area {
    align-self: start;
}

.widget {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1e1e2e;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0073aa;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 0.35rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #444;
}

.widget ul li a:hover {
    color: #0073aa;
}

/* ===========================
   Footer
=========================== */
.site-footer {
    background-color: #1e1e2e;
    color: #aaa;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

.footer-inner a {
    color: #ccc;
}

.footer-inner a:hover {
    color: #fff;
}

/* ===========================
   404 Page
=========================== */
.error-404 {
    text-align: center;
    padding: 4rem 1rem;
}

.error-404 .page-title {
    font-size: 6rem;
    font-weight: 900;
    color: #0073aa;
    line-height: 1;
}

.error-404 .page-header p {
    font-size: 1.2rem;
    color: #666;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.error-404 .search-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
}

.error-404 .search-field {
    flex: 1;
    padding: 0.6rem 0.9rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.error-404 .search-submit {
    padding: 0.6rem 1.2rem;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.error-404 .search-submit:hover {
    background: #005b86;
}

/* ===========================
   Comments
=========================== */
.comments-area {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.comments-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #1e1e2e;
}

.comment {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1e1e2e;
}

.comment-meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-family: inherit;
}

.comment-form textarea {
    height: 130px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    padding: 0.6rem 1.5rem;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

.comment-form input[type="submit"]:hover {
    background: #005b86;
}

/* ===========================
   Header: custom logo
=========================== */
.site-logo a {
    display: inline-block;
}

.site-logo img {
    max-height: 80px;
    width: auto;
}

/* ===========================
   Front page: featured section
=========================== */
.front-page {
    padding: 0;
}

.front-featured {
    background: #f0f4f8;
    padding: 3rem 0;
    border-bottom: 1px solid #dde3ea;
}

.front-featured-inner {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Magazine cover */
.front-magazine img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    display: block;
}

.front-magazine-placeholder {
    background: #dde3ea;
    border-radius: 6px;
    padding: 2rem;
    color: #666;
    font-size: 0.9rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Download listings */
.front-downloads-heading {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e1e2e;
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid #0073aa;
}

.front-downloads .download-widget {
    margin-bottom: 1rem;
}

.front-downloads ul {
    list-style: none;
}

.front-downloads ul li {
    padding: 0.55rem 0;
    border-bottom: 1px solid #dde3ea;
    font-size: 0.95rem;
}

.front-downloads ul li:last-child {
    border-bottom: none;
}

.front-downloads ul li a {
    color: #0073aa;
    font-weight: 500;
}

.front-downloads ul li a:hover {
    color: #005b86;
}

.front-downloads-placeholder {
    color: #888;
    font-size: 0.9rem;
}

/* ===========================
   Front page: NIEUWS section
=========================== */
.front-articles {
    padding: 3rem 0;
}

.front-articles-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid #0073aa;
    flex-wrap: wrap;
}

.front-articles-heading {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e1e2e;
    letter-spacing: 0.05em;
    margin: 0;
}

.news-alles-wrap {
    text-align: center;
    margin-top: 1.5rem;
}

.btn-alles {
    display: inline-block;
    padding: 0.55rem 1.5rem;
    background: #e0e0e0;
    color: #1e1e2e;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-alles:hover {
    background: #c8c8c8;
    color: #1e1e2e;
    text-decoration: none;
}

.btn-abonneren {
    display: inline-block;
    padding: 0.55rem 1.5rem;
    background: #0073aa;
    color: #fff;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-abonneren:hover {
    background: #005b86;
    color: #fff;
    text-decoration: none;
}

/* News list: vertical rows */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid #eee;
    background: none;
    box-shadow: none;
}

/* News item button style */
.news-item {
    background: #f2f3f5;
    border: 1px solid #dde1e7;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #dde1e7;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item-thumb {
    flex: 0 0 200px;
    display: block;
    overflow: hidden;
    border-radius: 6px;
}

.news-item-thumb img {
    width: 200px;
    height: 130px;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.news-item-thumb:hover img {
    opacity: 0.88;
}

.news-item-body {
    flex: 1;
    min-width: 0;
}

.news-item-meta {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 0.4rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.news-item-cat a {
    color: #0073aa;
}

.news-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.news-item-title a {
    color: #1e1e2e;
}

.news-item-title a:hover {
    color: #0073aa;
    text-decoration: none;
}

.news-item-excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 768px) {
    .content-area {
        grid-template-columns: 1fr;
    }

    .entry-title {
        font-size: 1.3rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .front-featured-inner {
        grid-template-columns: 1fr;
    }

    .news-item-thumb {
        flex: 0 0 130px;
    }

    .news-item-thumb img {
        width: 130px;
        height: 90px;
    }
}

@media (max-width: 480px) {
    .news-item {
        flex-direction: column;
    }

    .news-item-thumb,
    .news-item-thumb img {
        width: 100%;
        flex: none;
        height: 180px;
    }
}
