/*
Theme Name: Schlumpf Minimal
Theme URI: https://schlumpfontour.de
Description: Modern WordPress-inspired theme for SchlumpfOnTour
Version: 2.0
Author: SchlumpfOnTour
Author URI: https://schlumpfontour.de
Tags: modern, responsive, blue, white, minimalist
Text Domain: schlumpf-minimal
*/

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

:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #2563eb;
    --blue-600: #1d4ed8;
    --blue-700: #1e40af;
    --blue-800: #1e3a8a;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--blue-500);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--blue-700);
}

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

/* === Header / Navigation === */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.site-title a {
    color: var(--gray-900);
}

.site-title a:hover {
    color: var(--blue-500);
}

/* Main Navigation */
.main-navigation ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--gray-600);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    display: block;
}

.main-navigation a:hover {
    color: var(--blue-500);
    background: var(--blue-50);
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--blue-500);
    background: var(--blue-50);
    font-weight: 600;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    position: relative;
    transition: background 0.2s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    left: 0;
    transition: transform 0.2s;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* === Hero Section === */
.hero-section {
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-800) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-section .hero-logo {
    width: 100px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.hero-section h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--blue-200);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-section .hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-section .hero-buttons a {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-section .hero-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-primary {
    background: var(--white);
    color: var(--blue-600) !important;
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: var(--white) !important;
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
}

/* === Section Headers === */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* === Post Grid (Blog Cards) === */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.post-thumbnail {
    display: block;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-card .entry-header {
    padding: 1.5rem 1.5rem 0;
}

.post-card .entry-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.post-card .entry-title a {
    color: var(--gray-900);
}

.post-card .entry-title a:hover {
    color: var(--blue-500);
}

.post-card .entry-meta {
    color: var(--gray-400);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.post-card .entry-summary {
    padding: 0 1.5rem 1.5rem;
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === Single Post / Page === */
.single-post .site-content,
.page .site-content {
    max-width: 720px;
    margin: 3rem auto;
    padding: 0 24px;
}

.single-post .entry-title,
.page .entry-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.single-post .entry-meta {
    color: var(--gray-400);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.single-post .entry-meta .cat-links a {
    color: var(--blue-500);
    font-weight: 500;
}

.single-post .post-thumbnail {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.single-post .entry-content,
.page .entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.single-post .entry-content p,
.page .entry-content p {
    margin-bottom: 1.25rem;
}

.single-post .entry-content h2,
.page .entry-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--gray-900);
}

.single-post .entry-content h3,
.page .entry-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--gray-900);
}

/* === Archive / Category Pages === */
.page-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* === Pagination === */
.posts-navigation {
    margin: 2rem 0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
}

.nav-links a {
    color: var(--blue-500);
    font-weight: 500;
    padding: 10px 20px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    transition: background 0.2s, border-color 0.2s;
}

.nav-links a:hover {
    background: var(--blue-50);
    border-color: var(--blue-200);
}

/* === Footer === */
.site-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    padding: 3rem 0;
    margin-top: 4rem;
}

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

.site-footer p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--gray-500);
    margin-left: 1.5rem;
}

.site-footer a:hover {
    color: var(--blue-500);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1rem;
        border-bottom: 1px solid var(--gray-100);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation a {
        padding: 12px 16px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-section {
        padding: 3rem 1.5rem;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .single-post .entry-title,
    .page .entry-title {
        font-size: 1.6rem;
    }

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

    .site-footer a {
        margin: 0 0.75rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
}
