/*
Theme Name: FDP Monschau
Description: WordPress-Theme für den FDP Stadtverband Monschau basierend auf offiziellen HTML-Designs
Version: 2.0.0
Author: FDP Kommunalverband
*/

/* Color palette based on FDP guidelines */
:root {
    --fdp-yellow: #ffed00;
    --fdp-magenta: #e5007d;
    --fdp-cyan: #009ee3;
    --fdp-turquoise: #00abae;
    --fdp-violet: #a5027d;
    --fdp-black: #000000;
    --fdp-white: #ffffff;
    --fdp-light-gray: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Calibri, 'Segoe UI', sans-serif;
}

body {
    background-color: var(--fdp-white);
    color: var(--fdp-black);
    line-height: 1.6;
}

/* Header styling */
header {
    background-color: var(--fdp-yellow);
    padding: 20px 0;
    position: relative;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    width: 220px;
}

/* Navigation styling */
nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--fdp-black);
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

nav a.active {
    background-color: var(--fdp-magenta);
    color: var(--fdp-white);
}

/* Hero section */
.hero {
    min-height: 80vh;
    background-color: var(--fdp-yellow);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    background-color: var(--fdp-magenta);
    color: var(--fdp-yellow);
    display: inline-block;
    padding: 20px 30px;
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.4rem;
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--fdp-magenta);
    color: var(--fdp-yellow);
    padding: 20px 30px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Page header */
.page-header {
    background-color: var(--fdp-yellow);
    padding: 40px 0;
    text-align: center;
}

.page-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background-color: var(--fdp-magenta);
    color: var(--fdp-yellow);
    display: inline-block;
    padding: 10px 15px;
    line-height: 1.2;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Full-width sections */
.full-width-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 80px 0;
}

.full-width-section.bg-yellow {
    background-color: var(--fdp-yellow);
}

.full-width-section.bg-light-gray {
    background-color: var(--fdp-light-gray);
}

.full-width-section.bg-white {
    background-color: var(--fdp-white);
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-section {
    margin-bottom: 40px;
}

.section-title {
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title h2 {
    background-color: var(--fdp-magenta);
    color: var(--fdp-yellow);
    display: inline-block;
    padding: 8px 12px;
    text-transform: uppercase;
    font-weight: bold;
}

/* Grid system */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    background-color: var(--fdp-white);
}

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

.card-image {
    width: 100%;
    height: 200px;
    background-color: var(--fdp-light-gray);
    background-size: cover;
    background-position: center;
}

/* Team cards with 0,67:1 aspect ratio */
.team-card .card-image {
    height: 298px; /* 0,67:1 Verhältnis bei 200px Breite */
}

.card-content {
    padding: 20px;
}

.card h3 {
    margin-bottom: 10px;
    color: var(--fdp-black);
}

/* Text block styling based on FDP guidelines */
.text-block {
    background-color: var(--fdp-magenta);
    color: var(--fdp-yellow);
    display: inline-block;
    padding: 5px 10px;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Topic cards */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.topic-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    background-color: var(--fdp-white);
}

.topic-card:hover {
    transform: translateY(-5px);
}

.topic-card-header {
    background-color: var(--fdp-magenta);
    color: var(--fdp-yellow);
    padding: 15px 20px;
    font-weight: bold;
    font-size: 1.2rem;
}

.topic-card-content {
    padding: 20px;
}

.topic-card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--fdp-light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 1.5rem;
}

.topic-list {
    list-style: none;
    margin-top: 15px;
}

.topic-list li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.topic-list li:before {
    content: "•";
    color: var(--fdp-magenta);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Featured topic */
.featured-topic {
    background-color: var(--fdp-yellow);
    padding: 40px;
    border-radius: 8px;
    margin: 40px 0;
}

.featured-topic h3 {
    margin-bottom: 15px;
    color: var(--fdp-magenta);
    font-size: 1.5rem;
}

.featured-topic-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.featured-topic-image {
    background-color: var(--fdp-light-gray);
    border-radius: 8px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-topic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Highlight blocks */
.highlight-block {
    background-color: var(--fdp-yellow);
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
}

.highlight-block h3 {
    margin-bottom: 15px;
    color: var(--fdp-magenta);
}

/* Two column layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.image-container {
    background-color: var(--fdp-light-gray);
    height: 100%;
    min-height: 300px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--fdp-magenta);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--fdp-yellow);
    border: 4px solid var(--fdp-magenta);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::after {
    right: -10px;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    background-color: var(--fdp-light-gray);
    border-radius: 8px;
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--fdp-magenta);
}

/* Accordion for topic details */
.accordion {
    margin-top: 40px;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    background-color: var(--fdp-cyan);
    color: var(--fdp-white);
    padding: 15px 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-content {
    background-color: var(--fdp-light-gray);
    padding: 20px;
    display: none;
}

.accordion-content.active {
    display: block;
}

/* Button styling */
.button {
    display: inline-block;
    background-color: var(--fdp-magenta);
    color: var(--fdp-white);
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #c0006a;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--fdp-yellow);
    color: var(--fdp-black);
}

.btn-primary:hover {
    background-color: #e6d400;
}

.btn-secondary {
    background-color: var(--fdp-magenta);
    color: var(--fdp-white);
}

.btn-secondary:hover {
    background-color: #c0006a;
}

/* Footer styling */
footer {
    background-color: var(--fdp-black);
    color: var(--fdp-white);
    padding: 40px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

footer h4 {
    margin-bottom: 15px;
    color: var(--fdp-yellow);
}

footer a {
    color: var(--fdp-white);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--fdp-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fdp-black);
    text-decoration: none;
    font-weight: bold;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* WordPress specific classes */
.wp-post-image {
    width: 100%;
    height: auto;
}

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

.entry-meta {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

/* Termine styling */
.termine-liste {
    margin-top: 40px;
}

.termin-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    background-color: var(--fdp-white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 20px;
    transition: transform 0.3s;
}

.termin-card:hover {
    transform: translateY(-2px);
}

.termin-card.vergangen {
    opacity: 0.7;
}

.termin-datum {
    text-align: center;
    background-color: var(--fdp-yellow);
    border-radius: 8px;
    padding: 15px 10px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.termin-tag {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--fdp-magenta);
    line-height: 1;
}

.termin-monat {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--fdp-black);
    margin-top: 5px;
}

.termin-wochentag {
    font-size: 0.8rem;
    color: var(--fdp-magenta);
    margin-top: 5px;
}

.termin-details h3 {
    margin-bottom: 15px;
    color: var(--fdp-magenta);
    font-size: 1.3rem;
}

.termin-meta {
    margin-bottom: 15px;
}

.termin-meta > div {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.termin-meta .icon {
    font-size: 1rem;
    width: 20px;
    flex-shrink: 0;
}

.termin-beschreibung {
    margin-bottom: 20px;
    color: #666;
}

.termin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Aktuelles styling */
.aktuelles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.artikel-card {
    background-color: var(--fdp-white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.artikel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.artikel-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: var(--fdp-light-gray);
}

.artikel-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.artikel-content {
    padding: 25px;
}

.artikel-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.artikel-datum {
    color: #666;
    font-weight: 500;
}

.artikel-kategorie {
    background-color: var(--fdp-magenta);
    color: var(--fdp-white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.artikel-titel {
    margin-bottom: 15px;
    font-size: 1.3rem;
    line-height: 1.3;
}

.artikel-titel a {
    text-decoration: none;
    color: var(--fdp-black);
    transition: color 0.3s;
}

.artikel-titel a:hover {
    color: var(--fdp-magenta);
}

.artikel-excerpt {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.5;
}

.artikel-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.artikel-autor {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* WordPress Pagination */
.page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    text-decoration: none;
    background-color: var(--fdp-light-gray);
    color: var(--fdp-black);
    border-radius: 4px;
    transition: background-color 0.3s;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: var(--fdp-magenta);
    color: var(--fdp-white);
}

.pagination {
    text-align: center;
    margin: 50px 0;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Responsive design */
@media (max-width: 768px) {
    .termin-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .termin-datum {
        justify-self: center;
        width: 120px;
    }
    
    .termin-actions {
        justify-content: center;
    }
    
    .aktuelles-grid {
        grid-template-columns: 1fr;
    }
    
    .artikel-actions {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        min-height: 60vh;
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: 2.2rem;
        padding: 15px 20px;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 15px 20px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .two-column,
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .featured-topic-content {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .right {
        left: 0;
    }

    .full-width-section {
        padding: 60px 0;
    }
}