/* ===================================
   Mooswaldsiechae Grav Theme
   Version: 1.0.0
   =================================== */

/* CSS Variablen */
:root {
    --primary-color: #2d5a3d;
    --secondary-color: #6b4423;
    --accent-color: #c8a882;
    --accent-green: #4a7c59;
    
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --text-white: #ffffff;
    
    --bg-light: #dcc8b0;
    --bg-white: #ffffff;
    --bg-header: #e8d9c8;
    --bg-gradient-primary: linear-gradient(135deg, #2d5a3d 0%, #1e3d29 100%);
    
    --border-color: #d4c4b0;
    --shadow-sm: 0 2px 8px rgba(45,90,61,0.08);
    --shadow-md: 0 4px 12px rgba(45,90,61,0.12);
    --shadow-lg: 0 8px 24px rgba(45,90,61,0.15);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --max-width: 1200px;
}

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

/* Basis */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Header
   =================================== */
.site-header {
    background: var(--bg-header);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary-color);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top .welcome-text {
    font-weight: 500;
}

.header-top a {
    color: white;
    transition: var(--transition);
}

.header-top a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
    color: white;
}

.social-links a svg {
    width: 18px;
    height: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-2px);
}

/* Individuelle Hover-Farben */
.social-links .social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.4);
}

.social-links .social-facebook:hover {
    background: #1877f2;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.header-main {
    padding: 15px 0;
    background: var(--bg-header);
    border-bottom: 1px solid rgba(107, 68, 35, 0.15);
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.site-logo img {
    max-height: 70px;
    width: auto;
}

.site-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: -0.5px;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-title a:hover {
    color: var(--accent-green);
}

/* Navigation */
.main-nav {
    background: var(--bg-header);
    border-bottom: 1px solid rgba(107, 68, 35, 0.15);
    position: relative;
    z-index: 1000;
}

.main-nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 18px 24px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--primary-color);
    color: white;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: var(--accent-green);
}

/* ===================================
   Hero - Clean Modern Design
   =================================== */
.hero {
    background: var(--primary-color);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Hintergrundbild mit weniger starkem Overlay */
.hero.has-bg-image {
    background-size: cover;
    background-position: center;
    min-height: 450px;
    display: flex;
    align-items: center;
}

.hero.has-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(29, 61, 31, 0.75) 0%, rgba(47, 79, 49, 0.65) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-shadow: 
        0 2px 4px rgba(0,0,0,0.2),
        0 4px 12px rgba(0,0,0,0.15),
        0 1px 0 rgba(255,255,255,0.3);
    position: relative;
    display: inline-block;
    padding: 0 8px;
}

/* Großbuchstaben nur auf Unterseiten, nicht auf Homepage */
body:not(.home) .hero h1 {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.6) 20%, 
        rgba(255,255,255,0.8) 50%, 
        rgba(255,255,255,0.6) 80%, 
        transparent 100%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255,255,255,0.4);
}

.hero p {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 30px;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.hero .btn {
    font-size: 16px;
    padding: 14px 35px;
    background: white;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
}

.hero .btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* Kompakter Hero für Unterseiten */
.hero.hero-compact {
    min-height: 250px;
    max-height: 250px;
    padding: 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    background: var(--primary-color);
}

/* Hero-Bild als IMG-Tag - immer volle Breite */
.hero.hero-compact.has-hero-image {
    position: relative;
}

.hero.hero-compact .hero-image-bg {
    width: 100%;
    height: 250px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.hero.hero-compact .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(29, 61, 31, 0.75) 0%, rgba(47, 79, 49, 0.65) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero.hero-compact .hero-content-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    text-align: center;
}

.hero.hero-compact h1 {
    font-size: 32px;
    margin-bottom: 0;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Wenn kein Bild vorhanden */
.hero.hero-compact:not(.has-hero-image) {
    min-height: 180px;
    max-height: 180px;
    padding: 40px 0;
    background: var(--primary-color);
}

.hero.hero-compact:not(.has-hero-image) .hero-content-wrapper {
    position: static;
    transform: none;
}

.hero.hero-compact:not(.has-hero-image) h1 {
    color: white;
}

/* Hero Bild als Showcase (optional) */
.hero-image {
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image img {
    width: 100%;
    display: block;
}

/* ===================================
   Content
   =================================== */
.site-content {
    padding: 0 0 60px 0;
    min-height: 50vh;
}

/* Layout */
.content-wrapper {
    display: block;
}

.main-content {
    min-width: 0;
}

/* Floating Termine Box - dynamische Breite */
.floating-termine {
    position: fixed;
    /* Responsive Positionierung mit besserer Berechnung */
    left: min(calc(50% + 620px), calc(100vw - 300px));
    right: auto;
    width: 280px;
    top: 510px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 18px;
    z-index: 100;
    border-left: 3px solid var(--primary-color);
    max-height: calc(100vh - 530px);
    overflow-y: auto;
    /* Verhindert Overflow und Abschneiden */
    box-sizing: border-box;
}

.floating-termine h4 {
    font-size: 14px;
    color: var(--primary-color);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.floating-termine ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.floating-termine li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    line-height: 1.4;
}

.floating-termine li:last-child {
    border-bottom: none;
}

.floating-termine .datum {
    font-weight: 700;
    color: var(--primary-color);
    display: inline-block;
    min-width: 50px;
}

.floating-termine .titel {
    color: var(--text-dark);
}

.floating-termine .ort {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
    font-style: italic;
}

.floating-termine .ort::before {
    content: '📍 ';
    font-style: normal;
}

.floating-termine > a {
    display: block;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 13px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.floating-termine > a:hover {
    color: var(--accent-green);
}

/* Heute Badge */
.floating-termine li.is-today {
    background: rgba(45, 90, 61, 0.08);
    margin: 0 -18px;
    padding: 8px 18px;
    padding-top: 22px;
    border-radius: 4px;
    position: relative;
}

.floating-termine .heute-badge {
    position: absolute;
    top: 4px;
    left: 18px;
    background: var(--accent-green);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.content-area {
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: 60px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.content-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--bg-gradient-primary);
}

.page-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.page-title {
    font-size: 38px;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.content h2 {
    color: var(--primary-color);
    margin-top: 35px;
    margin-bottom: 18px;
    font-size: 28px;
    font-weight: 700;
}

.content h3 {
    color: var(--secondary-color);
    margin-top: 28px;
    margin-bottom: 14px;
    font-size: 22px;
}

.content p {
    margin-bottom: 1.6em;
    line-height: 1.8;
    color: var(--text-dark);
}

.content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.content ul, .content ol {
    margin-bottom: 1.6em;
    padding-left: 25px;
}

.content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* ===================================
   Termine / Events - PREMIUM Design
   =================================== */
.events-page {
    margin: 30px 0;
}

.events-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 8px 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8faf8 100%);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.events-navigation a,
.events-navigation button,
.events-navigation .nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.events-navigation a:hover,
.events-navigation button:hover,
.events-navigation .nav-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(45,90,61,0.2);
}

.events-navigation .current-year {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    padding: 0 12px;
    letter-spacing: -0.5px;
}

.events-month {
    margin-bottom: 45px;
}

.events-month h3 {
    background: var(--bg-gradient-primary);
    color: white;
    padding: 18px 30px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(45,90,61,0.25);
    position: relative;
    overflow: hidden;
}

.event-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: white;
    margin-bottom: 15px;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid rgba(45,90,61,0.1);
}

.event-card:hover {
    box-shadow: 0 10px 40px rgba(45,90,61,0.18);
    transform: translateY(-4px);
}

/* Heute Badge für Event-Cards */
.event-card.is-today {
    border: 2px solid var(--accent-green);
    position: relative;
}

.event-card.is-today .event-date {
    background: linear-gradient(135deg, var(--accent-green) 0%, #4CAF50 100%);
}

.event-card .heute-badge {
    position: absolute;
    top: -1px;
    right: 15px;
    background: var(--accent-green);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 0 0 6px 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    animation: pulse-badge 2s infinite;
}

.event-date {
    flex-shrink: 0;
    padding: 18px 24px;
    background: var(--bg-gradient-primary);
    color: white;
    min-width: 90px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.event-date::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border: 10px solid transparent;
    border-left-color: var(--primary-color);
}

.event-day {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.event-month-name {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.95;
    margin-top: 5px;
    font-weight: 600;
}

.event-details {
    flex: 1;
    padding: 18px 24px 18px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-title {
    color: var(--primary-color);
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.event-location {
    color: var(--text-light);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-light);
    padding: 6px 14px;
    border-radius: 20px;
    margin-top: 5px;
}

.event-description {
    margin-top: 12px;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 15px;
}

/* Responsive Events */
@media (max-width: 600px) {
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        padding: 20px;
        flex-direction: row;
        gap: 15px;
        align-items: center;
        justify-content: center;
    }
    
    .event-date::after {
        display: none;
    }
    
    .event-day {
        font-size: 32px;
    }
    
    .event-month-name {
        margin-top: 0;
    }
    
    .event-details {
        padding: 20px;
        text-align: center;
    }
}

/* ===================================
   Termine Vorschau (Startseite)
   =================================== */
.termine-vorschau .page-header {
    text-align: center;
}

.termine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.termin-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.termin-card .termin-datum {
    text-align: center;
    min-width: 55px;
}

.termin-card .termin-datum .tag {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.termin-card .termin-datum .monat {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.termin-card .termin-info {
    flex: 1;
}

.termin-card .termin-info strong {
    display: block;
    color: var(--text-dark);
    font-size: 15px;
    margin-bottom: 3px;
}

.termin-card .termin-info span {
    font-size: 13px;
    color: var(--text-muted);
    margin-right: 10px;
}

/* Heute Badge für Termin-Cards */
.termin-card.is-today {
    background: rgba(45, 90, 61, 0.1);
    border-left-color: var(--accent-green);
    position: relative;
}

.termin-card .heute-badge {
    position: absolute;
    top: -8px;
    right: 10px;
    background: var(--accent-green);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    animation: pulse-badge 2s infinite;
}

/* ===================================
   Vorstandschaft / Team
   =================================== */
.gruppenbild {
    margin-bottom: 50px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.gruppenbild img {
    width: 100%;
    display: block;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.team-member {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-color);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.team-member-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 35px auto 25px;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    box-shadow: 0 5px 20px rgba(45,90,61,0.2);
}

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

.team-member-image .avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member-image .avatar-placeholder span {
    font-size: 48px;
    font-weight: 700;
    color: white;
}

.team-member-info {
    padding: 0 25px 35px;
}

.team-member-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.team-member-role {
    font-size: 13px;
    color: white;
    background: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.team-member-email {
    font-size: 14px;
    margin-top: 10px;
}

.team-member-email .obfuscated-email {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(45, 90, 61, 0.08);
    transition: var(--transition);
    font-weight: 500;
    font-size: 13px;
}

.team-member-email .obfuscated-email:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 61, 0.2);
}

.team-member-email .email-icon {
    font-size: 16px;
}

/* ===================================
   Galerie - PREMIUM Design mit Lightbox
   =================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
    cursor: pointer;
    background: var(--bg-light);
}

.gallery-item::before {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 40px;
    z-index: 3;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(45,90,61,0.4);
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.gallery-item:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: #2c3e50;
    padding: 15px 20px;
    z-index: 4;
    font-weight: 700;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

/* Album-Übersicht - Premium Cards */
.album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

@media (max-width: 1200px) {
    .album-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .album-grid {
        grid-template-columns: 1fr;
    }
}

.album-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(45,90,61,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    border: 1px solid rgba(45,90,61,0.1);
}

.album-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(45,90,61,0.15);
    border-color: rgba(45,90,61,0.2);
}

.album-cover {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

.album-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.album-card:hover .album-cover img {
    transform: scale(1.08);
}

.album-info {
    padding: 20px;
    background: white;
}

.album-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.album-count {
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.album-count::before {
    content: '📷';
}

.album-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(45,90,61,0.08) 0%, rgba(45,90,61,0.12) 100%);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid rgba(45,90,61,0.15);
}

.album-date::before {
    content: '📅';
    font-size: 14px;
}

/* Jahr-Gruppierung */
.year-section {
    margin-bottom: 50px;
    scroll-margin-top: 100px; /* Offset für Timeline-Scroll */
}

.year-section:first-child {
    margin-top: 0;
}

.year-heading {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.year-icon {
    font-size: 24px;
}

.year-count {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-light);
    margin-left: auto;
}

/* Album Badge (Bildanzahl) */
.album-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(45, 90, 61, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(4px);
}

/* Album Grid in Jahr-Sektion */
.year-section .album-grid {
    margin-top: 20px;
    margin-bottom: 0;
}

/* ===================================
   Gallery Timeline Navigation
   =================================== */
.gallery-timeline {
    position: fixed;
    /* Links neben dem Content-Container (max-width 1200px) */
    right: calc(50% + 620px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(45,90,61,0.15);
    padding: 12px 8px;
    max-height: 70vh;
    overflow-y: auto;
    border: 1px solid rgba(45,90,61,0.2);
    backdrop-filter: blur(10px);
    width: 90px;
    border-right: 3px solid var(--primary-color);
}

.timeline-line {
    position: absolute;
    left: 18px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--border-color) 0%, transparent 100%);
    opacity: 0.5;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.timeline-year-group {
    position: relative;
    margin-bottom: 8px;
}

/* Jahr Items - kompakter */
.timeline-year-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    text-decoration: none;
    transition: var(--transition);
    border-radius: 4px;
    position: relative;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    flex-shrink: 0;
    transition: var(--transition);
    z-index: 2;
}

.timeline-year-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.timeline-year-item:hover .timeline-dot {
    background: var(--primary-color);
    transform: scale(1.15);
    box-shadow: 0 0 0 3px rgba(45,90,61,0.1);
}

.timeline-year-item.active {
    background: linear-gradient(90deg, var(--primary-color) 0%, rgba(45,90,61,0.8) 100%);
    margin-left: -4px;
    margin-right: -4px;
    padding-left: 8px;
    padding-right: 8px;
}

.timeline-year-item.active .timeline-year-label {
    color: var(--text-white);
    font-weight: 700;
}

.timeline-year-item.active .timeline-dot {
    background: var(--text-white);
    border-color: var(--text-white);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

/* Phantom-Jahr für bessere Timeline-Optik */
.phantom-year .timeline-year-item {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}

.phantom-year .timeline-dot {
    background: transparent;
    border-color: var(--border-color);
}

.phantom-year .timeline-year-label {
    color: var(--text-light);
    font-size: 11px;
}

/* Lazy Loading */
.lazy-load-section {
    min-height: 200px;
}

.lazy-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--bg-light);
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-light);
    font-size: 14px;
}

/* Scrollbar für Timeline - sehr dünn */
.gallery-timeline::-webkit-scrollbar {
    width: 3px;
}

.gallery-timeline::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-timeline::-webkit-scrollbar-thumb {
    background: rgba(45,90,61,0.3);
    border-radius: 2px;
}

.gallery-timeline::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}


/* Album Galerie Grid */
.album-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.album-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    aspect-ratio: 4/3;
}

.album-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.album-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.album-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.album-image:hover img {
    transform: scale(1.08);
}

/* Overlay für Bilder mit Infos - Glassmorphism für bessere Lesbarkeit */
.album-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: #2c3e50;
    padding: 15px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
}

.album-image:hover .album-image-overlay,
.album-image.has-info .album-image-overlay {
    opacity: 1;
}

.album-image-overlay strong {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.album-image-overlay span {
    font-size: 13px;
    color: #2c3e50;
    opacity: 0.85;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

@media (max-width: 600px) {
    .album-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .album-image {
        aspect-ratio: 1/1;
    }
}

/* Lightbox */
/* ===================================
   Lightbox - Modernes Design
   =================================== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
    animation: lightboxFadeIn 0.3s ease;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: imageSlideIn 0.4s ease;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    object-fit: contain;
}

.lightbox-info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.lightbox-counter {
    color: white;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-caption {
    text-align: center;
    color: white;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    max-width: 800px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lightbox-close svg {
    stroke: #2c3e50;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--primary-color);
    transform: scale(1.1) rotate(90deg);
}

.lightbox-close:hover svg {
    stroke: white;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lightbox-nav svg {
    stroke: #2c3e50;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:hover svg {
    stroke: white;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

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

@keyframes imageSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-nav {
        width: 44px;
        height: 44px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-content img {
        max-width: 95vw;
        max-height: 70vh;
    }
    
    .lightbox-counter {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .lightbox-caption {
        font-size: 14px;
        padding: 10px 16px;
    }
}

/* ===================================
   Info-Box / Hinweis
   =================================== */
.info-box {
    background: linear-gradient(135deg, #f8f9f8 0%, #f0f4f0 100%);
    border-left: 5px solid var(--accent-color);
    padding: 25px 30px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
}

.info-box.primary {
    border-left-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.08) 0%, rgba(45, 90, 61, 0.04) 100%);
}

.info-box p {
    margin: 0;
    line-height: 1.7;
}

.info-box strong {
    color: var(--primary-color);
}

/* ===================================
   Button
   =================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-green);
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--accent-color);
    color: var(--primary-color);
}

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

/* ===================================
   Footer
   =================================== */
.site-footer {
    background: var(--primary-color);
    color: white;
    padding: 20px 0;
    text-align: center;
}

.site-footer p {
    margin: 5px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

.site-footer a {
    color: rgba(255,255,255,0.8);
}

.site-footer a:hover {
    color: white;
}

/* ===================================
   Responsive
   =================================== */

/* Optimierung für große Bildschirme - bessere Positionierung */
@media (min-width: 1561px) and (max-width: 1800px) {
    .floating-termine {
        left: calc(50% + 600px);
        width: 260px;
    }
}

/* Verstecke Termine-Box wenn nicht genug Platz */
/* Berechnung: Content (1200px) + Box (280px) + Ränder (2x40px) = 1560px */
@media (max-width: 1560px) {
    .floating-termine {
        display: none;
    }
    
    /* Timeline auch ausblenden wenn nicht genug Platz */
    .gallery-timeline {
        display: none;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }
    
    .main-nav .container {
        min-height: 60px;
    }
    
    .main-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        flex-direction: column;
        z-index: 999;
        border-top: 2px solid var(--primary-color);
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .main-nav.active ul {
        display: flex;
    }
    
    .main-nav li {
        width: 100%;
    }
    
    .main-nav a {
        border-bottom: 1px solid var(--border-color);
        padding: 15px 20px;
        text-align: center;
    }
    
    .main-nav a:hover,
    .main-nav a.active {
        background: var(--primary-color);
        color: white;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero.has-bg-image {
        min-height: 350px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .content-area {
        padding: 25px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .event-card {
        flex-direction: column;
        text-align: center;
    }
    
    .event-date {
        width: 100%;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 18px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .events-navigation {
        flex-wrap: nowrap;
        gap: 12px;
        padding: 15px 20px;
        margin-bottom: 30px;
    }
    
    .events-navigation a,
    .events-navigation button,
    .events-navigation .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-width: 2px;
    }
    
    .events-navigation .current-year {
        font-size: 28px;
        padding: 0 12px;
        letter-spacing: -1px;
        min-width: auto;
        white-space: nowrap;
    }
}

/* ===================================
   Kalender Abonnieren Box
   =================================== */
.kalender-abo {
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.kalender-abo h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.kalender-abo p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.abo-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 61, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.kalender-abo details summary {
    outline: none;
}

.kalender-abo details[open] summary {
    margin-bottom: 10px;
}

.kalender-abo code {
    background: #e0e0e0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
}

/* ===================================
   Edit Page Link ausblenden (für nicht-eingeloggte)
   =================================== */
a[href*="/admin/pages/"],
.edit-page-link,
[class*="edit-link"],
a[href$=":edit"] {
    display: none !important;
}

/* Nur für eingeloggte Admins sichtbar - wird per JS aktiviert */
body.admin-logged-in a[href*="/admin/pages/"] {
    display: inline-block !important;
}

/* Album Placeholder */
.album-placeholder {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-green));
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 60px;
}

/* ===================================
   Extra kleine Geräte (< 360px)
   =================================== */
@media (max-width: 360px) {
    .events-navigation {
        gap: 8px;
        padding: 12px 15px;
    }
    
    .events-navigation a,
    .events-navigation button,
    .events-navigation .nav-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .events-navigation .current-year {
        font-size: 24px;
        padding: 0 10px;
        font-weight: 700;
    }
}
