/*
Theme Name: St. Sebastianus Breinig
Theme URI: https://st-seb-breinig.de
Description: Custom Theme für die St. Sebastianus Schützenbruderschaft Breinig 1666 e.V.
Version: 1.0.0
Author: St. Sebastianus Breinig
Text Domain: seb-breinig
*/

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

:root {
    --color-primary: #2c4a2c;
    --color-secondary: #6a8a6a;
    --color-accent: #8a7a5a;
    --color-bg: #f5f0e8;
    --color-bg-alt: #eee8da;
    --color-gold: #d4c9a8;
    --color-text: #333;
    --color-text-light: #666;
    --font-heading: Georgia, 'Times New Roman', serif;
    --font-body: system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.3;
}

a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: var(--color-secondary);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--color-secondary);
    text-decoration-color: var(--color-secondary);
}


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

/* === Header === */
.site-header {
    background: var(--color-bg);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--color-primary);
}

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

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

.site-branding img {
    height: 50px;
    width: auto;
}

.site-branding .site-title {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--color-primary);
    font-weight: bold;
    margin: 0;
}

.site-branding .site-subtitle {
    font-size: 11px;
    color: var(--color-secondary);
    letter-spacing: 1px;
}

/* Desktop Nav */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.main-navigation a {
    font-size: 14px;
    color: var(--color-primary);
    text-decoration: none;
    padding-bottom: 4px;
}

.main-navigation .current-menu-item a,
.main-navigation a:hover {
    border-bottom: 2px solid var(--color-primary);
    font-weight: 600;
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--color-primary);
    cursor: pointer;
}

/* Mobile Nav */
@media (max-width: 768px) {
    .site-header {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        width: 100%;
        order: 3;
    }

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

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding-top: 16px;
    }

    .main-navigation li {
        border-top: 1px solid var(--color-bg-alt);
    }

    .main-navigation a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
    }
}

/* === Hero === */
.hero {
    background: linear-gradient(180deg, #3a5a3a 0%, #2c4a2c 100%);
    padding: 60px 24px;
    text-align: center;
    color: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.08;
    background-image: repeating-linear-gradient(
        45deg, transparent, transparent 30px,
        rgba(212,175,55,0.2) 30px, rgba(212,175,55,0.2) 31px
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
}

.hero .hero-since {
    font-size: 12px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 12px;
}

.hero .hero-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: bold;
    color: var(--color-bg);
}

.hero .hero-motto {
    margin-top: 16px;
    font-size: 14px;
    color: #c0d8c0;
}

/* === Welcome === */
.welcome {
    padding: 40px 24px;
    text-align: center;
}

.welcome h2 {
    margin-bottom: 12px;
}

.welcome p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-light);
    font-size: 15px;
}

/* === Home Sections (News + Termine) === */
.home-sections {
    background: var(--color-bg-alt);
    padding: 40px 24px;
}

.home-sections-grid {
    display: flex;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .home-sections-grid {
        flex-direction: column;
    }
}

.home-section {
    flex: 1;
}

.home-section-title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary);
}

.home-section .more-link {
    display: block;
    text-align: right;
    margin-top: 12px;
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
    color: var(--color-primary);
}

/* === News Cards === */
.news-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.news-card .news-date {
    font-size: 11px;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.news-card .news-title {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--color-primary);
    font-weight: bold;
    margin-bottom: 6px;
}

.news-card .news-excerpt {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* === Termin Cards === */
.termin-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.termin-card.past {
    opacity: 0.5;
}

.termin-date-badge {
    background: var(--color-primary);
    color: var(--color-bg);
    border-radius: 6px;
    padding: 8px 10px;
    text-align: center;
    min-width: 52px;
}

.termin-date-badge .day {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

.termin-date-badge .month {
    font-size: 10px;
    text-transform: uppercase;
    margin-top: 2px;
}

.termin-card.past .termin-date-badge {
    background: #999;
}

.termin-info .termin-title {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--color-primary);
    font-weight: bold;
}

.termin-info .termin-meta {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 2px;
}

.termin-info .termin-description {
    font-size: 13px;
    color: var(--color-text-light);
    margin-top: 6px;
    line-height: 1.5;
}

/* === Page Content === */
.page-header {
    padding: 32px 24px 0;
    max-width: 800px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 28px;
    margin-bottom: 4px;
}

.page-header .page-description {
    font-size: 13px;
    color: var(--color-accent);
}

.page-content,
.entry-content {
    padding: 24px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.entry-content h2 { font-size: 22px; margin: 32px 0 12px; }
.entry-content h3 { font-size: 18px; margin: 24px 0 8px; }
.entry-content p { margin-bottom: 16px; }
.entry-content ul, .entry-content ol { margin: 0 0 16px 24px; }

/* === Archive (Aktuelles Übersicht) === */
.archive-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

.archive-news-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.archive-news-card .news-date {
    font-size: 11px;
    color: var(--color-accent);
    margin-bottom: 6px;
}

.archive-news-card .news-title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-primary);
    font-weight: bold;
    margin-bottom: 8px;
}

.archive-news-card .news-title a {
    color: inherit;
    text-decoration: none;
}

.archive-news-card .news-excerpt {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 12px;
}

.archive-news-card .read-more {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    font-size: 13px;
}

.pagination .current {
    background: var(--color-primary);
    color: var(--color-bg);
    font-weight: bold;
}

.pagination a {
    background: #fff;
    color: var(--color-primary);
    border: 1px solid #ddd;
    text-decoration: none;
}

/* === Termin Archive === */
.termine-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

/* === Single Post === */
.single-post-header {
    padding: 32px 24px 0;
    max-width: 800px;
    margin: 0 auto;
}

.single-post-header .news-date {
    font-size: 12px;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.single-post-header h1 {
    font-size: 28px;
}

.featured-image {
    max-width: 800px;
    margin: 24px auto 0;
    padding: 0 24px;
}

.featured-image img {
    border-radius: 8px;
    width: 100%;
}

/* === Footer === */
.site-footer {
    background: var(--color-primary);
    color: var(--color-bg);
    padding: 32px 24px 16px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section:last-child {
    text-align: right;
}

.footer-section h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--color-gold);
}

.footer-section p,
.footer-section a {
    font-size: 12px;
    line-height: 1.8;
    opacity: 0.8;
    color: var(--color-bg);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(245,240,232,0.2);
    padding-top: 12px;
    font-size: 11px;
    opacity: 0.6;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}
