/*
Theme Name: FWK Riesenbeck
Author: KI Webdesigner
Description: Ein maßgeschneidertes, modernes WordPress-Theme für die Feuerwehrkapelle Riesenbeck e.V.
Version: 1.0
Text Domain: fwk-riesenbeck
*/

/* Farbpalette basierend auf dem hochgeladenen Wappen */
:root {
    --fwk-navy: #091057;     /* Tiefes Marineblau (Hintergrund Wappen) */
    --fwk-red: #D91604;      /* Leuchtendes Rot (Innenschild) */
    --fwk-yellow: #F2C12E;   /* Kräftiges Gelb/Gold (Details Wappen) */
    --text-main: #2D3748;
    --bg-light: #F7FAFC;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--fwk-navy);
    line-height: 1.2;
}

/* Moderne Navigation (Glassmorphism-Effekt) */
header.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(9, 16, 87, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 2px solid var(--fwk-yellow);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

/* Simuliertes Wappen in der Navbar */
.logo-shield {
    width: 40px;
    height: 45px;
    background-color: var(--fwk-navy);
    border: 2px solid var(--fwk-yellow);
    border-radius: 0 0 20px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}
.logo-shield::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 30px;
    background-color: var(--fwk-red);
    border-radius: 0 0 10px 10px;
}

/* Hochgeladenes Custom Logo (via Customizer) */
.logo-area .custom-logo {
    max-height: 52px;  /* Höhe begrenzen – Wappen darf höher als breit sein */
    max-width: 120px;  /* verhindert sehr breite Logos */
    width: auto;
    height: auto;      /* überschreibt das HTML-Attribut von WordPress */
    display: block;
    object-fit: contain;
}

.logo-text {
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

nav.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

nav.main-nav a:hover {
    color: var(--fwk-yellow);
}

/* Hero Section - Große Bildwirkung */
.hero {
    height: 100vh;
    background-color: var(--fwk-navy); /* Fallback wenn kein Bild gesetzt */
    background-image: linear-gradient(to right, rgba(9, 16, 87, 0.9) 0%, rgba(9, 16, 87, 0.6) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
}

.hero-content {
    max-width: 800px;
    color: var(--white);
    margin-top: 60px;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    color: var(--fwk-yellow);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 25px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--fwk-red);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(217, 22, 4, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(217, 22, 4, 0.4);
    background-color: #BF1303;
}

/* Sektionen Allgemein */
section {
    padding: 100px 5%;
}

.section-header {
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
}

.section-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -15px;
    width: 80px;
    height: 4px;
    background-color: var(--fwk-red);
}

/* News / Aktuelles (Moderne Grid-Cards) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    position: relative;
    border-bottom: 4px solid var(--fwk-yellow);
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    background-color: var(--fwk-navy);
}

.news-content {
    padding: 30px;
}

.news-category {
    color: var(--fwk-red);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.read-more {
    color: var(--fwk-navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--fwk-red);
}

/* Termine Section (Asymmetrisches Layout) */
.termine-section {
    background-color: var(--white);
}

.termine-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.termin-item {
    display: flex;
    background: var(--bg-light);
    border-left: 5px solid var(--fwk-navy);
    padding: 25px 30px;
    border-radius: 0 10px 10px 0;
    transition: all 0.3s ease;
    align-items: center;
    gap: 40px;
}

.termin-item:hover {
    border-left-color: var(--fwk-red);
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateX(10px);
}

.termin-date {
    min-width: 120px;
}

.termin-date span:first-child {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: var(--fwk-red);
    line-height: 1;
}

.termin-date span:last-child {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
}

.termin-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.termin-info p {
    color: #666;
    font-size: 0.95rem;
}

/* Call to Action - Nachwuchs (Full Width Banner) */
.cta-section {
    background: var(--fwk-navy);
    color: var(--white);
    text-align: center;
    padding: 80px 5%;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 50%;
    height: 200%;
    background: rgba(242, 193, 46, 0.05);
    transform: rotate(30deg);
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
}

.cta-section p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
    position: relative;
}

/* Footer */
footer.site-footer {
    background-color: #050933; /* Noch dunkleres Navy */
    color: rgba(255,255,255,0.7);
    padding: 50px 5% 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--fwk-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================
   INNERE SEITEN (page, single, archive, 404)
   ============================= */

.page-main {
    padding-top: 85px; /* Ausgleich für den fixierten Header */
    min-height: 80vh;
}

.page-hero {
    background: linear-gradient(135deg, var(--fwk-navy) 0%, #1a2580 100%);
    padding: 80px 5% 70px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 40%;
    height: 200%;
    background: rgba(242, 193, 46, 0.05);
    transform: rotate(30deg);
}

.page-hero-content {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.page-title {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-top: 10px;
}

.page-hero .news-category {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.page-hero .entry-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 10px;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 5%;
}

/* Lese-Content Formatierung */
.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main);
}

.entry-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 15px;
}

.entry-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 10px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 20px 30px;
}

.entry-content li {
    margin-bottom: 8px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.entry-content a {
    color: var(--fwk-red);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--fwk-navy);
}

/* Single Post */
.single-featured-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 40px;
}

.entry-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* Sekundärer Button */
.btn-secondary {
    background-color: transparent;
    color: var(--fwk-navy);
    border: 2px solid var(--fwk-navy);
}

.btn-secondary:hover {
    background-color: var(--fwk-navy);
    color: var(--white);
    transform: translateY(-2px);
}

/* Archiv-Bereich */
.archive-section .container {
    padding-top: 60px;
}

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

.news-card h3 a:hover {
    color: var(--fwk-red);
}

/* Pagination */
.nav-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 60px;
    flex-wrap: wrap;
}

.nav-links a,
.nav-links span {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-links a {
    color: var(--fwk-navy);
    border: 2px solid var(--fwk-navy);
}

.nav-links a:hover,
.nav-links span.current {
    background: var(--fwk-navy);
    color: var(--white);
}

/* Bildplatzhalter wenn kein Beitragsbild gesetzt */
.news-img-placeholder {
    background: linear-gradient(135deg, var(--fwk-navy) 0%, #1a2580 100%);
}

/* Keine Treffer */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    padding: 40px 0;
}

/* =============================
   MOBILE NAVIGATION (Hamburger-Menü)
   ============================= */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger → X Animation */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

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

    nav.main-nav ul {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--fwk-navy);
        padding: 100px 40px 40px;
        gap: 0;
        transition: right 0.35s ease;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    nav.main-nav ul.nav-open {
        right: 0;
    }

    nav.main-nav a {
        font-size: 1.1rem;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
    }

    .termin-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .hero h1 { font-size: 2.5rem; }
    .section-header h2 { font-size: 2rem; }
    .page-hero { padding: 60px 5%; }
    .container { padding: 40px 5%; }
}

/* =============================
   THE EVENTS CALENDAR – Design-Overrides
   Passt das Plugin-Design an das FWK-Theme an.
   ============================= */

/* CSS-Variablen des Plugins überschreiben */
:root {
    --tec-color-accent-primary:       var(--fwk-red);
    --tec-color-accent-primary-hover: #BF1303;
    --tec-color-accent-secondary:     var(--fwk-navy);
    --tec-font-family-sans-serif:     'Inter', sans-serif;
    --tec-font-family-heading:        'Poppins', sans-serif;
}

/* Container-Abstand */
.tribe-container {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Überschriften im Plugin */
.tribe-events .tribe-events-header__title,
.tribe-events-calendar-month__calendar-event-title a,
.tribe-events-calendar-list__event-title a,
.tribe-event__title a {
    font-family: 'Poppins', sans-serif;
    color: var(--fwk-navy);
    text-decoration: none;
}

.tribe-events .tribe-events-header__title,
.tribe-events-calendar-list__event-title a:hover,
.tribe-event__title a:hover {
    color: var(--fwk-red);
}

/* Navigations-Buttons (Vor/Zurück) */
.tribe-common .tribe-common-c-btn,
.tribe-common .tribe-common-c-btn-border {
    background-color: var(--fwk-navy);
    border-color:     var(--fwk-navy);
    color:            var(--white);
    font-family:      'Poppins', sans-serif;
    font-weight:      700;
    border-radius:    50px;
    text-transform:   uppercase;
    letter-spacing:   0.5px;
    transition:       all 0.3s ease;
}

.tribe-common .tribe-common-c-btn:hover,
.tribe-common .tribe-common-c-btn-border:hover {
    background-color: var(--fwk-red);
    border-color:     var(--fwk-red);
}

/* Datum-Highlights */
.tribe-events-calendar-month__calendar-event-datetime,
.tribe-events-calendar-list__event-datetime,
.tribe-event__datetime {
    color: var(--fwk-red);
    font-weight: 600;
}

/* aktiver Tag im Monatskalender */
.tribe-events-calendar-month__calendar-event--current
.tribe-events-calendar-month__calendar-event-title {
    color: var(--fwk-red);
}

/* "Heute"-Markierung */
.tribe-events-calendar-month__day--current
.tribe-events-calendar-month__day-date {
    background-color: var(--fwk-red);
    color: var(--white);
    border-radius: 50%;
}

/* Karten-Hover */
.tribe-events-calendar-list__event-row:hover {
    border-left: 4px solid var(--fwk-red);
}

/* Plugin-eigene Links */
.tribe-common a {
    color: var(--fwk-navy);
}

.tribe-common a:hover {
    color: var(--fwk-red);
}