/*
Theme Name: Weltbiografie
Description: Elegantes Biografie-Magazin
Version: 1.0
Author: Weltbiografie
Text Domain: weltbiografie
*/

:root {
    --wb-bg: #fafaf9;
    --wb-card: #ffffff;
    --wb-dark: #1a1a1a;
    --wb-border: #e5e5e5;
    --wb-accent: #b8860b;
    --wb-accent-hover: #996f0a;
    --wb-text: #2d2d2d;
    --wb-text-dim: #6b6b6b;
    --wb-text-light: #999;
    --wb-radius: 12px;
    --wb-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --wb-shadow-hover: 0 10px 30px rgba(0,0,0,.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    background: var(--wb-bg);
    color: var(--wb-text);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--wb-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--wb-accent-hover); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
.site-header {
    background: var(--wb-dark);
    padding: 0;
    position: sticky; top: 0; z-index: 100;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 60px;
}
.site-branding { display: flex; align-items: center; gap: 8px; }
.site-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -0.3px;
}
.site-title span { color: var(--wb-accent); }

.main-nav ul { list-style: none; display: flex; gap: 2px; }
.main-nav a {
    font-family: 'Inter', sans-serif;
    color: #aaa; padding: 8px 14px; border-radius: 6px;
    font-size: 13px; font-weight: 500; transition: all .2s; letter-spacing: .3px;
    text-transform: uppercase;
}
.main-nav a:hover, .main-nav .current-menu-item a { color: #fff; background: rgba(255,255,255,.08); }

.menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-toggle span { width: 22px; height: 2px; background: #fff; transition: .3s; }

/* HERO */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 64px 0 56px;
    text-align: center;
    border-bottom: 3px solid var(--wb-accent);
}
.hero h1 {
    font-size: 42px; font-weight: 700; color: #fff;
    margin-bottom: 12px; letter-spacing: -1px; line-height: 1.2;
}
.hero h1 em { font-style: normal; color: var(--wb-accent); }
.hero-subtitle { font-size: 17px; color: #aaa; max-width: 560px; margin: 0 auto; }

/* CATEGORY TABS */
.cat-tabs {
    display: flex; justify-content: center; gap: 12px;
    padding: 20px 0; border-bottom: 1px solid var(--wb-border);
    margin-bottom: 40px;
}
.cat-tab {
    font-family: 'Inter', sans-serif;
    padding: 8px 20px; border-radius: 20px;
    font-size: 13px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .5px; border: 1px solid var(--wb-border);
    color: var(--wb-text-dim); transition: all .2s;
}
.cat-tab:hover, .cat-tab.active { background: var(--wb-accent); color: #fff; border-color: var(--wb-accent); }

/* POSTS GRID */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.post-card {
    background: var(--wb-card);
    border: 1px solid var(--wb-border);
    border-radius: var(--wb-radius);
    overflow: hidden;
    transition: all .3s;
    box-shadow: var(--wb-shadow);
}
.post-card:hover { box-shadow: var(--wb-shadow-hover); transform: translateY(-3px); }

.post-card-image {
    display: block; height: 220px; overflow: hidden;
    position: relative; background: #e5e5e5;
}
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card-image img { transform: scale(1.04); }
.post-card-image--placeholder {
    display: flex; align-items: center; justify-content: center;
    font-size: 48px; color: var(--wb-text-light); background: linear-gradient(135deg, #e5e5e5, #f0f0f0);
}
.post-category {
    position: absolute; top: 12px; left: 12px;
    background: var(--wb-accent); color: #fff;
    padding: 3px 10px; border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}

.post-card-body { padding: 20px; }
.post-card-meta {
    font-family: 'Inter', sans-serif;
    font-size: 12px; color: var(--wb-text-light); margin-bottom: 8px;
}
.post-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.post-card h3 a { color: var(--wb-text); }
.post-card h3 a:hover { color: var(--wb-accent); }
.post-card-excerpt {
    font-size: 14px; color: var(--wb-text-dim); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-link {
    display: inline-block; margin-top: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 12px; font-weight: 600; color: var(--wb-accent);
    text-transform: uppercase; letter-spacing: .5px;
}

/* FEATURED POST */
.featured-post {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    background: var(--wb-card); border: 1px solid var(--wb-border);
    border-radius: var(--wb-radius); overflow: hidden;
    margin-bottom: 40px; box-shadow: var(--wb-shadow);
}
.featured-post-image { height: 100%; min-height: 320px; }
.featured-post-image img { width: 100%; height: 100%; object-fit: cover; }
.featured-post-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-post-body h2 { font-size: 28px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.featured-post-body h2 a { color: var(--wb-text); }
.featured-post-body h2 a:hover { color: var(--wb-accent); }

/* SINGLE ARTICLE */
.entry-header { padding: 48px 0 24px; text-align: center; }
.entry-title { font-size: 38px; font-weight: 700; max-width: 800px; margin: 0 auto; line-height: 1.3; }
.entry-meta {
    font-family: 'Inter', sans-serif;
    font-size: 13px; color: var(--wb-text-light); margin-top: 12px;
}
.entry-content {
    max-width: 760px; margin: 0 auto; padding: 32px 0 60px;
    font-size: 18px; line-height: 1.9;
}
.entry-content h2 { font-size: 28px; margin: 36px 0 16px; font-weight: 700; }
.entry-content h3 { font-size: 22px; margin: 28px 0 12px; font-weight: 700; }
.entry-content p { margin-bottom: 18px; }
.entry-content ul, .entry-content ol { margin: 0 0 18px 28px; }
.entry-content li { margin-bottom: 6px; }
.entry-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }
.entry-content blockquote {
    border-left: 3px solid var(--wb-accent); padding: 16px 24px; margin: 20px 0;
    background: #f5f5f0; border-radius: 0 8px 8px 0; font-style: italic;
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.entry-content th, .entry-content td { padding: 12px 16px; border: 1px solid var(--wb-border); text-align: left; }
.entry-content th { background: #f5f5f0; font-weight: 600; }

/* SECTION */
.section { padding: 48px 0; }
.section-header { text-align: center; margin-bottom: 36px; }
.section-header h2 {
    font-size: 30px; font-weight: 700; margin-bottom: 6px;
}
.section-header p { color: var(--wb-text-dim); font-size: 15px; }

/* SIDEBAR (optional) */
.content-with-sidebar { display: grid; grid-template-columns: 1fr 340px; gap: 40px; }
.sidebar-widget { background: var(--wb-card); border: 1px solid var(--wb-border); border-radius: var(--wb-radius); padding: 24px; margin-bottom: 24px; }
.sidebar-widget h3 { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; color: var(--wb-text-dim); }

/* FOOTER */
.site-footer {
    background: var(--wb-dark); color: #aaa;
    padding: 40px 0 24px; text-align: center;
    margin-top: 40px;
}
.footer-nav { margin-bottom: 16px; }
.footer-nav a { color: #888; margin: 0 12px; font-family: 'Inter', sans-serif; font-size: 13px; }
.footer-nav a:hover { color: var(--wb-accent); }
.footer-copy { font-size: 13px; color: #666; }

/* PAGINATION */
.pagination { text-align: center; margin-top: 40px; }
.pagination a, .pagination span {
    display: inline-block; padding: 8px 14px; margin: 0 2px;
    border: 1px solid var(--wb-border); border-radius: 6px;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
}
.pagination .current { background: var(--wb-accent); color: #fff; border-color: var(--wb-accent); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .main-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--wb-dark); border-bottom: 1px solid #333; padding: 12px; z-index: 99; }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; }
    .main-nav a { display: block; padding: 10px 16px; }
    .hero h1 { font-size: 28px; }
    .posts-grid { grid-template-columns: 1fr; }
    .featured-post { grid-template-columns: 1fr; }
    .featured-post-image { min-height: 220px; }
    .content-with-sidebar { grid-template-columns: 1fr; }
    .entry-title { font-size: 28px; }
    .cat-tabs { flex-wrap: wrap; }
}
