/*
Theme Name: Freischütz 1913
Theme URI: https://www.freischuetz-neu-anspach.de
Author: Schützenverein Freischütz 1913 e.V.
Description: Official theme for Schützenverein Freischütz 1913 e.V. Neu-Anspach
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: freischuetz
Tags: sports, club, german
*/

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
}

a { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ==========================================================================
   EVENT TICKER
   ========================================================================== */
.ticker-wrap {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    color: white;
    padding: 12px 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.ticker {
    display: flex;
    white-space: nowrap;
    will-change: transform;
}

.ticker-item {
    padding: 0 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.ticker-item::before {
    content: "🎯";
    margin-right: 10px;
}

/* ==========================================================================
   SITE HEADER
   ========================================================================== */
.site-header {
    background: linear-gradient(135deg, #2F4F2F 0%, #228B22 100%);
    padding: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.club-logo {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    padding: 5px;
    overflow: hidden;
}

.club-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: contrast(1.1);
}

/* Fallback if no custom logo uploaded */
.target-rings {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #DC143C 0%, #DC143C 20%, transparent 20%),
        radial-gradient(circle, #FFD700 20%, #FFD700 40%, transparent 40%),
        radial-gradient(circle, #228B22 40%, #228B22 60%, transparent 60%),
        radial-gradient(circle, #333 60%, #333 80%, transparent 80%);
    border: 3px solid #333;
}

.logo-text { color: white; }

.logo-text .site-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo-text .site-title a { color: white; }

.logo-text .site-description {
    font-size: 14px;
    color: #FFD700;
    font-style: italic;
}

.est-year {
    background: #FFD700;
    color: #8B0000;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    white-space: nowrap;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.main-navigation {
    background: #8B0000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    margin: 0;
    padding: 0;
}

.main-navigation ul li { position: relative; }

.main-navigation ul > li > a {
    display: block;
    padding: 18px 25px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.main-navigation ul > li > a:hover,
.main-navigation ul > li.current-menu-item > a,
.main-navigation ul > li.current-menu-ancestor > a {
    background: #DC143C;
}

/* Dropdown */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #A52A2A;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    display: block;
    z-index: 1001;
    flex-direction: column;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul li a {
    display: block;
    padding: 12px 20px;
    color: white;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.main-navigation ul ul li a:hover {
    background: #8B0000;
    border-left-color: #FFD700;
    padding-left: 25px;
}

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid white;
    color: white;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
    margin: 8px 0;
}

/* ==========================================================================
   HERO SECTION  (used on all pages)
   ========================================================================== */
.hero {
    background:
        linear-gradient(135deg, rgba(139,0,0,0.85) 0%, rgba(34,139,34,0.85) 100%),
        url('') center center / cover no-repeat;
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.hero-logo-container { margin-bottom: 30px; }

.hero-logo {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    border: 4px solid #FFD700;
}

.hero-logo img { width: 100%; height: 100%; object-fit: contain; }

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Front-page hero stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700;
}

.stat-label { font-size: 14px; opacity: 0.9; }

/* ==========================================================================
   CONTENT WRAPPERS
   ========================================================================== */
.content {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

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

.section-title h2 {
    font-size: 36px;
    color: #8B0000;
    margin-bottom: 10px;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #DC143C);
    margin: 15px auto;
}

/* ==========================================================================
   CARDS GRID  (front page / general)
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #228B22;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-top-color: #FFD700;
}

.card-icon { font-size: 48px; margin-bottom: 20px; }
.card h3 { color: #8B0000; margin-bottom: 15px; font-size: 24px; }
.card p { color: #666; line-height: 1.8; }

/* ==========================================================================
   ACHIEVEMENTS  (front page)
   ========================================================================== */
.achievements {
    background: #f4f1e8;
    padding: 60px 20px;
    margin-top: 60px;
}

.achievements-content { max-width: 1200px; margin: 0 auto; }

.achievement-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.achievement-badge {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #FFD700;
    line-height: 1.7;
}

/* ==========================================================================
   NEWS CAROUSEL  (front page)
   ========================================================================== */
.news-section {
    background: #fff;
    padding: 60px 20px;
}

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

.news-title { text-align: center; margin-bottom: 40px; }

.news-title h2 { font-size: 36px; color: #8B0000; margin-bottom: 10px; }

.news-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #DC143C);
    margin: 15px auto;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    background: #f9f9f9;
    padding: 50px;
    box-sizing: border-box;
}

.news-date {
    color: #228B22;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-headline { font-size: 28px; color: #8B0000; margin-bottom: 20px; font-weight: bold; }
.news-content { color: #666; line-height: 1.8; font-size: 16px; }

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.carousel-btn {
    background: #228B22;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.carousel-btn:hover { background: #DC143C; transform: scale(1.1); }

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #FFD700;
    width: 30px;
    border-radius: 6px;
}

/* ==========================================================================
   EVENTS / TERMINE
   ========================================================================== */
.toggle-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.toggle-container {
    display: inline-flex;
    background: white;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.toggle-btn {
    padding: 15px 40px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #228B22, #2F4F2F);
    color: white;
    box-shadow: 0 4px 10px rgba(34, 139, 34, 0.4);
}

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

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.event-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border-top: 4px solid #228B22;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-top-color: #FFD700;
}

.event-date-badge {
    background: linear-gradient(135deg, #8B0000, #DC143C);
    color: white;
    padding: 20px;
    text-align: center;
}

.event-date-badge.past { background: linear-gradient(135deg, #666, #888); }
.event-day { font-size: 36px; font-weight: bold; line-height: 1; }

.event-month-year {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.event-content { padding: 25px; }

.event-time {
    color: #228B22;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-title { font-size: 22px; color: #8B0000; margin-bottom: 15px; font-weight: bold; }
.event-preview { color: #666; line-height: 1.6; margin-bottom: 15px; }

.event-category {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pagination (termine1 dynamic loader) */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
}

.pagination-btn {
    background: linear-gradient(135deg, #228B22, #2F4F2F);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(34, 139, 34, 0.4);
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(34, 139, 34, 0.6);
}

.pagination-btn:disabled { background: #ccc; cursor: not-allowed; box-shadow: none; }
.pagination-info { font-size: 16px; color: #666; font-weight: bold; }

/* Loading state */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    max-width: 700px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    animation: slideUp 0.3s ease;
    position: relative;
}

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

.modal-header {
    background: linear-gradient(135deg, #8B0000, #DC143C);
    color: white;
    padding: 30px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px; right: 15px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover { background: rgba(255,255,255,0.3); transform: rotate(90deg); }
.modal-date { font-size: 18px; margin-bottom: 10px; opacity: 0.9; }
.modal-title { font-size: 32px; font-weight: bold; margin-bottom: 10px; }
.modal-time { font-size: 16px; opacity: 0.9; }
.modal-body { padding: 40px; max-height: 70vh; overflow-y: auto; }
.modal-section { margin-bottom: 30px; }
.modal-section h3 { color: #8B0000; font-size: 20px; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.modal-section p { color: #555; line-height: 1.8; }

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item { background: #f9f9f9; padding: 15px; border-radius: 8px; border-left: 3px solid #228B22; }
.info-item .info-label { font-size: 12px; color: #999; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.info-item .info-value { font-size: 16px; color: #333; font-weight: bold; }

/* Gallery in modal */
.modal-gallery { margin-top: 30px; position: relative; }

.gallery-container {
    position: relative;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    height: 400px;
}

.gallery-images { display: flex; height: 100%; transition: transform 0.4s ease; }
.gallery-image { min-width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

.gallery-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white; border: none;
    width: 50px; height: 50px;
    border-radius: 50%; font-size: 24px;
    cursor: pointer; transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
}

.gallery-nav:hover { background: rgba(139,0,0,0.9); transform: translateY(-50%) scale(1.1); }
.gallery-nav.prev { left: 15px; }
.gallery-nav.next { right: 15px; }

.gallery-counter {
    position: absolute;
    bottom: 15px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white; padding: 8px 20px;
    border-radius: 20px; font-size: 14px; font-weight: bold;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active { display: flex; }

.lightbox-content { max-width: 90%; max-height: 90%; position: relative; }
.lightbox-image { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 50px rgba(0,0,0,0.8); }

.lightbox-close {
    position: absolute; top: -50px; right: 0;
    background: rgba(255,255,255,0.2); border: none;
    color: white; font-size: 36px;
    width: 50px; height: 50px;
    border-radius: 50%; cursor: pointer; transition: all 0.3s ease;
}

.lightbox-close:hover { background: rgba(255,255,255,0.3); transform: rotate(90deg); }

.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.2); border: none;
    color: white; font-size: 36px;
    width: 60px; height: 60px;
    border-radius: 50%; cursor: pointer; transition: all 0.3s ease;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.4); }
.lightbox-nav.prev { left: -80px; }
.lightbox-nav.next { right: -80px; }
.lightbox-caption { position: absolute; bottom: -40px; left: 0; right: 0; text-align: center; color: white; font-size: 16px; }

.hidden { display: none; }

/* ==========================================================================
   TEAM / LUFTPISTOLE  (member carousel)
   ========================================================================== */
.teams-container {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

.team-section {
    background: white;
    margin-bottom: 60px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.team-header {
    background: linear-gradient(135deg, #228B22, #2F4F2F);
    color: white;
    padding: 30px;
    text-align: center;
}

.team-header h2 { font-size: 36px; margin-bottom: 10px; }
.team-header p { font-size: 18px; opacity: 0.9; }

.carousel-wrapper { padding: 60px 20px; position: relative; }

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%; height: 100%;
}

.member-card {
    position: absolute;
    width: 350px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.member-card.active  { transform: scale(1) translateX(0);     z-index: 3; opacity: 1;   filter: blur(0); }
.member-card.left    { transform: scale(0.85) translateX(-400px); z-index: 2; opacity: 0.6; filter: blur(3px); }
.member-card.right   { transform: scale(0.85) translateX(400px);  z-index: 2; opacity: 0.6; filter: blur(3px); }
.member-card.hidden  { opacity: 0; pointer-events: none; transform: scale(0.7); }

.member-image { width: 100%; height: 350px; object-fit: cover; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

.member-info {
    background: white;
    padding: 25px;
    border-radius: 0 0 10px 10px;
    margin-top: -5px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.member-name { font-size: 24px; color: #8B0000; font-weight: bold; margin-bottom: 15px; text-align: center; }
.member-details { display: grid; gap: 10px; }

.detail-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.detail-label { color: #666; font-size: 14px; font-weight: 600; }
.detail-value { color: #333; font-weight: bold; }

.carousel-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(139,0,0,0.8);
    color: white; border: none;
    width: 60px; height: 60px;
    border-radius: 50%; font-size: 28px;
    cursor: pointer; transition: all 0.3s ease;
    z-index: 10;
    display: flex; align-items: center; justify-content: center;
}

.carousel-nav:hover { background: #DC143C; transform: translateY(-50%) scale(1.1); }
.carousel-nav.prev { left: 0; }
.carousel-nav.next { right: 0; }

/* ==========================================================================
   TIMELINE  (historie)
   ========================================================================== */
.timeline-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #FFD700, #DC143C, #228B22);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.timeline-item.visible { opacity: 1; transform: translateY(0); }
.timeline-item.blur    { filter: blur(3px); opacity: 0.4; }

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0; margin-right: auto;
    padding-right: 80px; text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto; margin-right: 0;
    padding-left: 80px; text-align: left;
}

.timeline-content { width: 50%; position: relative; }

.timeline-marker {
    position: absolute; top: 30px;
    width: 30px; height: 30px;
    background: white;
    border: 5px solid #8B0000;
    border-radius: 50%; z-index: 2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.timeline-item:nth-child(odd)  .timeline-marker { right: -15px; }
.timeline-item:nth-child(even) .timeline-marker { left:  -15px; }

.timeline-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
}

.timeline-card:hover { transform: scale(1.02); box-shadow: 0 12px 40px rgba(0,0,0,0.25); }

.timeline-image { width: 100%; height: 350px; object-fit: cover; transition: all 0.4s ease; }
.timeline-card:hover .timeline-image { transform: scale(1.05); }

.timeline-info { padding: 30px; }

.timeline-year {
    display: inline-block;
    background: linear-gradient(135deg, #8B0000, #DC143C);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 18px; font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(139,0,0,0.3);
}

.timeline-title { font-size: 28px; color: #8B0000; margin-bottom: 15px; font-weight: bold; }
.timeline-description { color: #666; line-height: 1.8; font-size: 16px; }

.timeline-item:first-child .timeline-year { background: linear-gradient(135deg, #FFD700, #FFA500); color: #8B0000; }
.timeline-item:last-child  .timeline-card { border: 3px solid #228B22; }
.timeline-item:last-child  .timeline-year { background: linear-gradient(135deg, #228B22, #2F4F2F); }

/* ==========================================================================
   VORSTAND  (board)
   ========================================================================== */
.board-container {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 20px;
}

.section-intro { text-align: center; margin-bottom: 60px; }
.section-intro h2 { font-size: 36px; color: #8B0000; margin-bottom: 15px; }
.section-intro p  { font-size: 18px; color: #666; }

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

.board-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transition: all 0.4s ease;
    /* Visible by default. Animation enhances entry but never gates visibility. */
    opacity: 1;
    animation: fadeInUp 0.6s ease both;
}

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

@media (prefers-reduced-motion: reduce) {
    .board-card { animation: none; opacity: 1; transform: none; }
}

.board-card:nth-child(1)  { animation-delay: 0.1s; }
.board-card:nth-child(2)  { animation-delay: 0.2s; }
.board-card:nth-child(3)  { animation-delay: 0.3s; }
.board-card:nth-child(4)  { animation-delay: 0.4s; }
.board-card:nth-child(5)  { animation-delay: 0.5s; }
.board-card:nth-child(6)  { animation-delay: 0.6s; }
.board-card:nth-child(7)  { animation-delay: 0.7s; }
.board-card:nth-child(8)  { animation-delay: 0.8s; }
.board-card:nth-child(9)  { animation-delay: 0.9s; }
.board-card:nth-child(10) { animation-delay: 1.0s; }

.board-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.2); }

.board-image-container { position: relative; height: 300px; overflow: hidden; }
.board-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.board-card:hover .board-image { transform: scale(1.08); }

.function-badge {
    position: absolute; bottom: 20px; left: 20px;
    background: linear-gradient(135deg, #8B0000, #DC143C);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold; font-size: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.board-card:first-child .function-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B0000;
}

.board-info { padding: 30px; }
.board-name { font-size: 26px; color: #8B0000; font-weight: bold; margin-bottom: 20px; text-align: center; }

.info-grid  { display: grid; gap: 15px; }

.info-row {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 3px solid #228B22;
    transition: all 0.3s ease;
}

.info-row:hover { background: #f0f0f0; border-left-color: #FFD700; padding-left: 16px; }

.info-icon   { font-size: 20px; margin-right: 12px; width: 30px; text-align: center; }
.info-content { flex: 1; }
.info-label  { font-size: 12px; color: #999; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.info-value  { font-size: 15px; color: #333; font-weight: 600; }
.info-value a { color: #8B0000; }
.info-value a:hover { color: #DC143C; }

.awards { margin-top: 15px; padding-top: 15px; border-top: 2px solid #f0f0f0; }
.awards-title { font-size: 14px; color: #8B0000; font-weight: bold; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }

.award-item { font-size: 13px; color: #666; padding: 5px 0; display: flex; align-items: center; gap: 8px; }
.award-item::before { content: "🏆"; font-size: 14px; }

/* ==========================================================================
   WO SIND WIR  (location page)
   ========================================================================== */
.carousel-section {
    max-width: 1400px;
    margin: 80px auto 0;
    padding: 0 20px;
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease;
    height: 600px;
}

.carousel-slide { min-width: 100%; height: 100%; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }

.carousel-nav-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(139,0,0,0.8);
    color: white; border: none;
    width: 60px; height: 60px;
    border-radius: 50%; font-size: 28px;
    cursor: pointer; transition: all 0.3s ease; z-index: 10;
}

.carousel-nav-btn:hover { background: #DC143C; transform: translateY(-50%) scale(1.1); }
.carousel-nav-btn.prev { left: 20px; }
.carousel-nav-btn.next { right: 20px; }

.indicator-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer; transition: all 0.3s ease;
    border: 2px solid white;
}

.indicator-dot.active { background: #FFD700; width: 35px; border-radius: 6px; }

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

.description-card {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.description-header { text-align: center; margin-bottom: 40px; }
.description-header h2 { font-size: 36px; color: #8B0000; margin-bottom: 15px; }

.description-header .divider {
    width: 80px; height: 4px;
    background: linear-gradient(90deg, #FFD700, #DC143C);
    margin: 0 auto;
}

.description-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    color: #555;
    font-size: 17px;
    line-height: 1.9;
}

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

.highlight-box {
    background: linear-gradient(135deg, #f4f1e8, #fff);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid #228B22;
    margin: 30px 0;
}

.highlight-box h3 { color: #8B0000; margin-bottom: 15px; font-size: 24px; }

.info-list { list-style: none; padding: 0; }

.info-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-list li::before { content: "✓"; color: #228B22; font-weight: bold; font-size: 20px; }

.map-section {
    max-width: 1400px;
    margin: 60px auto 80px;
    padding: 0 20px;
}

.map-header { text-align: center; margin-bottom: 40px; }
.map-header h2 { font-size: 36px; color: #8B0000; margin-bottom: 15px; }
.map-header p  { font-size: 18px; color: #666; }

.map-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

#map { height: 500px; width: 100%; }

.address-info { background: white; padding: 30px; text-align: center; }
.address-info h3 { color: #8B0000; font-size: 24px; margin-bottom: 15px; }
.address-details { font-size: 18px; color: #555; line-height: 1.8; }

.directions-btn {
    display: inline-block;
    margin-top: 20px;
    background: linear-gradient(135deg, #228B22, #2F4F2F);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.4);
}

.directions-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(34, 139, 34, 0.6); }

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
    background: #2F4F2F;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

.site-footer a { color: #FFD700; }
.site-footer a:hover { text-decoration: underline; }

.footer-nav ul { list-style: none; display: flex; justify-content: center; gap: 20px; margin: 15px 0; flex-wrap: wrap; }
.footer-nav ul li a { color: #FFD700; font-size: 14px; }

.footer-colors {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.color-bar { width: 60px; height: 4px; }

.copyright { margin-top: 15px; font-size: 14px; opacity: 0.8; }

/* ==========================================================================
   STANDARD PAGE ENTRY CONTENT
   ========================================================================== */
.entry-content h1, .entry-content h2, .entry-content h3 { color: #8B0000; margin: 1em 0 0.5em; }
.entry-content p  { color: #555; line-height: 1.8; margin-bottom: 1em; }
.entry-content a  { color: #8B0000; }
.entry-content a:hover { color: #DC143C; }
.entry-content img { border-radius: 8px; }

/* ==========================================================================
   WETTKAMPF TABLE
   ========================================================================== */
.wettkampf-table-wrap {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Card container — matches Vorstand .board-card styling */
.wettkampf-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-top: 4px solid #228B22;
    transition: all 0.4s ease;
    text-align: left;
}

.wettkampf-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    border-top-color: #FFD700;
}

.wettkampf-card-header {
    background: linear-gradient(135deg, #228B22, #2F4F2F);
    color: white;
    padding: 25px 30px;
    text-align: left;
}

.wettkampf-card-header h3 {
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wettkampf-card-header p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.wettkampf-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

.wettkampf-table thead th {
    background: #f4f1e8;
    color: #8B0000;
    text-align: left;
    padding: 16px 30px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    border-bottom: 2px solid #FFD700;
}

.wettkampf-table tbody tr {
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.wettkampf-table tbody tr:hover { background: #fff8e1; }
.wettkampf-table tbody tr:last-child { border-bottom: none; }

.wettkampf-table td {
    padding: 18px 30px;
    color: #333;
    font-size: 16px;
    vertical-align: top;
    line-height: 1.6;
    text-align: left;
}

.wettkampf-table .wk-date {
    color: white;
    font-weight: bold;
    white-space: nowrap;
    width: 1%;
}

/* Date pill — same gradient as event-date-badge */
.wk-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #8B0000, #DC143C);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(139,0,0,0.3);
    white-space: nowrap;
}

.wettkampf-table .wk-time {
    color: #228B22;
    font-weight: 600;
    white-space: nowrap;
    width: 110px;
}

.wettkampf-table .wk-time::before {
    content: "🕐 ";
    margin-right: 4px;
}

.wettkampf-table .wk-title {
    font-weight: 600;
    color: #8B0000;
    font-size: 17px;
}

.wettkampf-table .wk-info { color: #666; }

.wettkampf-table .wk-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-style: italic;
    font-size: 16px;
}

@media (max-width: 768px) {
    .wettkampf-table thead { display: none; }

    .wettkampf-table,
    .wettkampf-table tbody,
    .wettkampf-table tr,
    .wettkampf-table td { display: block; width: 100%; }

    .wettkampf-table tbody tr {
        padding: 18px 20px;
        border-bottom: 1px solid #eee;
    }

    .wettkampf-table td {
        padding: 6px 0;
        width: auto !important;
    }

    .wettkampf-table td:before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #999;
        margin-bottom: 4px;
        font-weight: bold;
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .board-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

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

    .main-navigation ul { flex-direction: column; display: none; }
    .main-navigation.toggled ul { display: flex; }
    .main-navigation ul ul {
        position: static; opacity: 1; visibility: visible;
        transform: none; box-shadow: none; background: #7B0000;
    }

    .hero h1 { font-size: 32px; }
    .hero p  { font-size: 16px; }
    .hero-stats { gap: 20px; }
    .stat-number { font-size: 26px; }

    .carousel-images { height: 400px; }
    .description-content { grid-template-columns: 1fr; }
    .board-grid { grid-template-columns: 1fr; }

    .timeline-line { left: 30px; }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 80px);
        margin-left: auto; margin-right: 0;
        padding-left: 50px; padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd)  .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker { left: 15px; right: auto; }

    .timeline-image { height: 250px; }

    .events-grid { grid-template-columns: 1fr; }

    .lightbox-nav.prev { left: -10px; }
    .lightbox-nav.next { right: -10px; }
}

@media (max-width: 480px) {
    .header-content { flex-wrap: wrap; gap: 10px; }
    .est-year { font-size: 14px; padding: 6px 12px; }
    .description-card { padding: 25px; }
    .carousel-item { padding: 30px 20px; }
}
