/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    font-size: 18px; /* Größere Schrift für ältere Benutzer */
}

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

/* Header & Navigation */
.navbar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 20px rgba(220, 0, 90, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid rgba(220, 0, 90, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    min-height: 80px;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    height: 55px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.nav-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
}

.nav-title {
    color: #dc005a;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.nav-subtitle {
    color: #e91e63;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    line-height: 1;
}

.nav-menu {
    display: none;
    list-style: none;
    gap: 4px;
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: white;
    flex-direction: column;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-top: 2px solid rgba(220, 0, 90, 0.1);
    border-radius: 0 0 12px 12px;
    z-index: 1000;
}

.nav-menu.active {
    display: flex;
    animation: slideDown 0.3s ease-in-out;
}

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(220, 0, 90, 0.1);
    display: block;
    text-align: center;
    margin-bottom: 4px;
}

.nav-link:hover {
    background: linear-gradient(135deg, #dc005a, #e91e63);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 0, 90, 0.3);
}

main {
    margin-top: 90px;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #dc005a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #c2185b 0%, #dc005a 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.9), 1px 1px 2px rgba(0,0,0,1);
    color: #ffffff;
}

.hero-content p {
    font-size: 22px;
    opacity: 1;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8), 1px 1px 2px rgba(0,0,0,0.9);
    color: #ffffff;
    font-weight: 500;
}

/* Sections */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    color: #dc005a;
    font-weight: 600;
}

/* Gallery Section */
.gallery-section {
    background: #f9fafb;
}

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

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.gallery-image {
    height: 250px;
    overflow: hidden;
}

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

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

.gallery-content {
    padding: 25px;
}

.gallery-content h3 {
    margin-bottom: 10px;
    color: #dc005a;
    font-size: 22px;
    font-weight: 600;
}

.gallery-date {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 500;
}

.gallery-content p:last-child {
    color: #4b5563;
    line-height: 1.6;
}

/* Calendar Section */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Monthly Pictures Section */
.monthly-pictures-section {
    background: #ffffff;
}

.monthly-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.monthly-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.monthly-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.monthly-image {
    aspect-ratio: 1 / 1; /* square tiles */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 6px; /* small inset to avoid touching edges */
}

.monthly-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* show whole image without cropping */
}

.monthly-caption {
    text-align: center;
    padding: 12px 10px;
    font-weight: 600;
    color: #dc005a;
}

@media (max-width: 768px) {
    .monthly-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.calendar-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 140px;
}

.calendar-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.calendar-item-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
}

.calendar-date {
    text-align: center;
    background: #dc005a;
    color: white;
    border-radius: 12px;
    padding: 15px;
    min-width: 80px;
    flex-shrink: 0;
}

.calendar-date .day {
    display: block;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
}

.calendar-date .month {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-top: 5px;
    opacity: 0.9;
}

.calendar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.calendar-main-content {
    flex: 1;
}

.calendar-main-content h3 {
    margin-bottom: 5px;
    color: #dc005a;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.calendar-main-content .time {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

.calendar-main-content p:last-child {
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 0;
}

.click-hint {
    color: #dc005a;
    font-size: 14px;
    font-weight: 500;
    margin: 0 !important;
    cursor: pointer;
    transition: color 0.3s ease;
    text-align: center;
    width: 100%;
    padding: 8px 0;
    border-top: 1px solid #f3f4f6;
    flex-shrink: 0;
}

/* Aktuelles Section */
.aktuelles-section {
    background: #f8fafc;
    padding: 80px 0;
}

/* .aktuelles-content inherits default container width to match other sections */

.news-item {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #dc005a;
}

.news-header h3 {
    color: #dc005a;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
}

.news-date {
    background: linear-gradient(135deg, #dc005a, #e91e63);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(220, 0, 90, 0.3);
}

.news-content {
    line-height: 1.7;
    color: #374151;
}

/* Obituary Specific Styling */
.nachruf .quote {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #dc005a;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nachruf .quote p {
    font-size: 18px;
    font-style: italic;
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.6;
}

.nachruf .quote .quote-author {
    font-size: 16px;
    font-weight: 600;
    color: #dc005a;
    margin-bottom: 0;
    font-style: normal;
}

.nachruf-content {
    font-size: 16px;
    line-height: 1.8;
}

.nachruf-content h4 {
    color: #dc005a;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nachruf-content .name-highlight {
    text-align: center;
    margin: 20px 0;
    font-size: 20px;
    color: #dc005a;
}

.nachruf-content .name-highlight strong {
    font-size: 22px;
    letter-spacing: 2px;
}

.nachruf-content p {
    margin-bottom: 18px;
    text-align: justify;
    color: #4a5568;
}

.nachruf-content .closing {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 18px;
    color: #dc005a;
}

/* Aktuelles Text Expansion Controls */
.aktuelles-section .event-text {
    display: flex;
    flex-direction: column;
}

.aktuelles-section .event-text-content {
    overflow: hidden;
    padding-right: 10px;
    line-height: 1.8;
    max-height: 300px; /* Show approximately first 4-5 paragraphs */
    transition: max-height 0.3s ease;
}

.aktuelles-section .read-more-btn {
    background: linear-gradient(135deg, #dc005a, #e91e63);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 20px;
    align-self: center;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(220, 0, 90, 0.3);
}

.aktuelles-section .read-more-btn:hover {
    background: linear-gradient(135deg, #a8003f, #c2185b);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 0, 90, 0.4);
}

.aktuelles-section .expand-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.aktuelles-section .read-more-btn.expanded .expand-icon {
    transform: rotate(180deg);
}

.aktuelles-section .read-more-btn.expanded {
    background: linear-gradient(135deg, #6b46c1, #8b5cf6);
    box-shadow: 0 2px 10px rgba(107, 70, 193, 0.3);
}

.aktuelles-section .read-more-btn.expanded:hover {
    background: linear-gradient(135deg, #553c9a, #7c3aed);
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.4);
}

/* General News Item Variants */
/* Remove blue announcement variant for consistent pink theme */
.news-item.announcement { border-left: none; }
.news-item.announcement .news-header h3 { color: #dc005a; }
.news-item.announcement .news-header { border-bottom-color: #dc005a; }
.news-item.announcement .news-date { background: linear-gradient(135deg, #dc005a, #e91e63); }

.news-item.feier {
    border-left: 5px solid #10b981;
}

.news-item.feier .news-header h3 {
    color: #10b981;
}

.news-item.feier .news-header {
    border-bottom-color: #10b981;
}

.news-item.feier .news-date {
    background: linear-gradient(135deg, #10b981, #34d399);
}

/* Bild des Monats specific: no left border, centered image fully visible */
.news-item.bild-des-monats { border-left: none; }
.news-item.bild-des-monats .news-header { border-bottom-color: #dc005a; }
.news-item.bild-des-monats .news-header h3 { color: #dc005a; }
.news-item.bild-des-monats .news-date { background: linear-gradient(135deg, #dc005a, #e91e63); }

.aktuelles-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.aktuelles-image img {
    max-width: 800px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Compact gallery layout for Aktuelles entries */
.aktuelles-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.aktuelles-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    background: #fff;
}

.aktuelles-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.aktuelles-thumb:hover img {
    transform: scale(1.04);
}

@media (max-width: 768px) {
    .aktuelles-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    .aktuelles-thumb img {
        height: 100px;
    }
}

/* Full height variant for event galleries */
.aktuelles-gallery.full-height .aktuelles-thumb img {
    height: auto;
    object-fit: contain;
    max-height: 400px;
}

/* Variant to render Aktuelles image at 50% of base size */
.aktuelles-image.smaller-60 img {
    max-width: 400px; /* 50% of 800px */
}

/* Variant to render Aktuelles image at 60% of base size */
.aktuelles-image.medium-size img {
    max-width: 600px; /* 75% of 800px */
}

/* About Section */
.about-section {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text {
    line-height: 1.8;
}

.about-intro {
    margin-bottom: 40px;
}

.about-intro h3 {
    color: #dc005a;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-intro p {
    font-size: 20px;
    color: #4b5563;
    line-height: 1.7;
}

.about-mission,
.about-activities,
.about-join {
    margin-bottom: 35px;
}

.about-text h4 {
    color: #dc005a;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-text p {
    color: #4b5563;
    margin-bottom: 15px;
}

.about-mission ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.about-mission li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.about-mission li::before {
    content: '•';
    color: #dc005a;
    font-weight: bold;
    position: absolute;
    left: 8px;
}

.about-activities ul {
    list-style: none;
    margin-left: 0;
}

.about-activities li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.about-activities li::before {
    content: '•';
    color: #dc005a;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.about-activities strong {
    color: #dc005a;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #dc005a;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: #64748b;
    font-weight: 500;
}

/* Search and Filter Controls */
.controls-section {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.search-container {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #9ca3af;
}

.search-btn {
    padding: 8px 15px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #4b5563;
}

.filter-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    transition: border-color 0.3s ease;
    min-width: 100px;
}

.filter-select:focus {
    outline: none;
    border-color: #9ca3af;
}

.clear-filters-btn {
    padding: 6px 12px;
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.clear-filters-btn:hover {
    background: #e5e7eb;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.calendar-header h2 {
    margin: 0;
}

.calendar-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.print-btn {
    padding: 12px 20px;
    background: #dc005a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.print-btn:hover {
    background: #c2185b;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 18px;
    font-style: italic;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Print Styles */
@media print {
    /* Hide everything except printable content */
    header, .hero, .about-section, .gallery-section, footer, 
    .controls-section, .add-btn, .print-btn, .nav-menu {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    .calendar-section {
        background: white !important;
        padding: 0 !important;
    }
    
    .calendar-header h2 {
        text-align: left;
        margin-bottom: 20pt;
        font-size: 18pt;
        color: black;
    }
    
    .calendar-grid {
        display: block !important;
    }
    
    .calendar-item {
        break-inside: avoid;
        margin-bottom: 15pt;
        border: 1pt solid #ccc;
        padding: 10pt;
        background: white !important;
        box-shadow: none !important;
        display: flex !important;
        align-items: flex-start !important;
    }
    
    .calendar-date {
        background: #f0f0f0 !important;
        color: black !important;
        margin-right: 15pt;
        min-width: 60pt;
        padding: 8pt !important;
    }
    
    .calendar-date .day {
        font-size: 14pt !important;
        font-weight: bold;
    }
    
    .calendar-date .month {
        font-size: 10pt !important;
    }
    
    .calendar-content h3 {
        font-size: 14pt !important;
        margin-bottom: 5pt !important;
        color: black !important;
    }
    
    .calendar-content .time {
        font-size: 12pt !important;
        color: black !important;
        font-weight: bold;
    }
    
    .calendar-content p {
        font-size: 11pt !important;
        color: black !important;
    }
    
    /* Hide buttons in calendar items */
    .calendar-content button,
    .gallery-content button {
        display: none !important;
    }
    
    /* Print header */
    @page {
        margin: 2cm;
    }
    
    .calendar-section::before {
        content: "Termine - Frauenverein";
        display: block;
        font-size: 20pt;
        font-weight: bold;
        margin-bottom: 15pt;
        text-align: center;
        border-bottom: 2pt solid black;
        padding-bottom: 10pt;
    }
}



.help-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.help-btn:hover {
    background: #2563eb;
}

/* Image Help Modal */
.image-help-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.image-help {
    padding: 10px;
}

.image-help h2 {
    color: #6b46c1;
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
}

.help-intro {
    text-align: center;
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 30px;
}

.help-steps {
    margin-bottom: 30px;
}

.help-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #6b46c1;
}

.step-number {
    background: #6b46c1;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content h3 {
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

.step-content p {
    color: #4b5563;
    margin-bottom: 10px;
    line-height: 1.5;
}

.help-note {
    background: #e0e7ff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #3730a3;
    border-left: 3px solid #6b46c1;
}

.help-code {
    background: #1f2937;
    color: #10b981;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin-top: 10px;
    border: 1px solid #374151;
}

.help-tips {
    background: #fef3c7;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid #f59e0b;
}

.help-tips h3 {
    color: #92400e;
    margin-bottom: 15px;
    font-size: 18px;
}

.help-tips ul {
    list-style: none;
    padding: 0;
    color: #78350f;
}

.help-tips li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.help-tips li::before {
    content: '⚡';
    position: absolute;
    left: 0;
    color: #f59e0b;
}

.help-examples {
    background: #ecfdf5;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid #10b981;
}

.help-examples h3 {
    color: #047857;
    margin-bottom: 15px;
    font-size: 18px;
}

.example-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.example-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid #d1fae5;
}

.example-file {
    font-family: 'Courier New', monospace;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
    color: #1f2937;
    font-weight: 600;
    min-width: 200px;
}

.example-path {
    font-family: 'Courier New', monospace;
    color: #047857;
    font-weight: 500;
}

.help-footer {
    background: #f1f5f9;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.help-footer p {
    margin: 0;
    color: #475569;
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    background: #f9fafb;
    padding: 40px 0; /* Reduced padding for minimal content */
}

.contact-info {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 18px;
}

.contact-info strong {
    color: #dc005a; /* Updated to match kfd brand color */
}

/* Buttons */
.add-btn {
    display: block;
    margin: 0 auto;
    background: #6b46c1;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-btn:hover {
    background: #553c9a;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #333;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #6b46c1;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

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

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary {
    background: #6b46c1;
    color: white;
}

.btn-primary:hover {
    background: #553c9a;
}

.btn-secondary {
    background: #e5e7eb;
    color: #333;
}

.btn-secondary:hover {
    background: #d1d5db;
}

/* Footer */
footer {
    background: #dc005a;
    color: white;
    text-align: center;
    padding: 40px 0;
}

footer p {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-brand {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .nav-logo {
        height: 40px;
    }
    
    .nav-title {
        font-size: 20px;
    }
    
    .nav-subtitle {
        font-size: 10px;
    }
    
    .nav-container {
        flex-direction: row;
        height: 80px;
        min-height: 80px;
        padding: 0 15px;
    }
    
    main {
        margin-top: 80px;
    }
    
    /* Hamburger menu is now always visible, no need for mobile-specific styles */
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    section {
        padding: 60px 0;
    }
    
    section h2 {
        font-size: 28px;
    }
    
    .gallery-grid,
    .calendar-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-item {
        flex-direction: column;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .controls-section {
        padding: 20px;
    }
    
    .search-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .filter-select {
        width: 100%;
        min-width: auto;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .calendar-header h2 {
        text-align: center;
    }
    
    .calendar-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .print-btn {
        width: 100%;
        padding: 14px 16px;
        font-size: 14px;
        text-align: center;
    }
    

    
    .help-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .example-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .example-file {
        min-width: auto;
        width: 100%;
    }
    
    .image-help-content {
        max-height: 95vh;
        margin: 2% auto;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    /* About Section Mobile */
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-text {
        order: 1;
    }
    
    .about-stats {
        order: 2;
        padding: 25px 15px;
        gap: 20px;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-image {
        order: 0;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .about-image img {
        width: 280px;
        max-width: 90%;
    }
    
    /* Aktuelles Section Mobile */
    .aktuelles-section {
        padding: 60px 0;
    }
    
    .news-item {
        padding: 25px;
        margin-bottom: 20px;
    }
    
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .news-header h3 {
        font-size: 24px;
    }
    
    .nachruf .quote {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .nachruf .quote p {
        font-size: 16px;
    }
    
    .nachruf-content h4 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .nachruf-content .name-highlight {
        font-size: 18px;
    }
    
    .nachruf-content .name-highlight strong {
        font-size: 20px;
        letter-spacing: 1px;
    }
    
    .nachruf-content p {
        font-size: 15px;
        text-align: left;
    }
    
    .nachruf-content .closing {
        font-size: 16px;
        margin-top: 25px;
        text-align: center;
    }
    
    /* Aktuelles mobile responsive for read-more functionality: allow toggle to control height */
    .aktuelles-section .event-text-content {
        /* keep default max-height so JS can toggle; no override here */
        max-height: 300px;
    }
    
    .aktuelles-section .read-more-btn {
        padding: 12px 20px;
        font-size: 15px;
        margin-top: 15px;
    }
}

/* Event Details Modal */
.event-details-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    margin: 5% auto;
}

.event-details-header {
    border-bottom: 2px solid #6b46c1;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.event-details-header h2 {
    color: #6b46c1;
    margin-bottom: 10px;
    font-size: 24px;
}

.event-date-time {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.event-main-date {
    background: #6b46c1;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
}

.event-main-time {
    background: #f3f4f6;
    color: #374151;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
}

.event-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
    border-left: 4px solid #6b46c1;
}

.event-section h3 {
    color: #6b46c1;
    margin-bottom: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-section p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.event-section p:last-child {
    margin-bottom: 0;
}

.event-section strong {
    color: #374151;
}

/* Ensure a blank line between paragraphs in event details */
.event-details-text p {
    margin: 0 0 1.1em; /* creates visible gap between paragraphs */
    line-height: 1.7;
}

.event-details-text p:last-child {
    margin-bottom: 0;
}

/* Clickable Event Indicators */
.clickable-event {
    transition: all 0.3s ease;
}

.clickable-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.2);
    border-color: #6b46c1;
}

.click-hint {
    color: #6b46c1;
    font-size: 14px;
    font-style: italic;
    margin-top: 8px;
    opacity: 0.8;
}

/* Form sections for admin */
.form-section {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #6b46c1;
}

.form-section h3 {
    color: #6b46c1;
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}



.help-navigation {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.help-tab {
    padding: 10px 20px;
    border: none;
    background: #f3f4f6;
    color: #374151;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.help-tab:hover {
    background: #e5e7eb;
}

.help-tab.active {
    background: #6b46c1;
    color: white;
}

.help-section {
    display: none;
}

.help-section.active {
    display: block;
}

.help-section h3 {
    color: #6b46c1;
    margin-bottom: 20px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-step {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #6b46c1;
}

.help-step h4 {
    color: #6b46c1;
    margin-bottom: 12px;
    font-size: 16px;
}

.help-step p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #374151;
}

.help-step ul, .help-step ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.help-step li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #374151;
}

.help-step strong {
    color: #1f2937;
    font-weight: 600;
}



@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .event-date-time {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .event-details-content {
        margin: 2% auto;
        width: 95%;
        max-height: 90vh;
    }
    
    .help-navigation {
        flex-direction: column;
        gap: 8px;
    }
    
    .help-tab {
        text-align: center;
        padding: 12px;
    }
    
    .help-step {
        padding: 15px;
    }
}

/* Impressum Section */
.impressum-section {
    background: #f3f4f6;
    padding: 60px 0;
}

.impressum-section h2 {
    text-align: center;
    color: #dc005a;
    margin-bottom: 30px;
    font-size: 28px;
}

.impressum-section h3 {
    color: #dc005a;
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 16px;
}

.impressum-section p {
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 14px;
}

.impressum-section ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.impressum-section li {
    margin-bottom: 6px;
    line-height: 1.5;
    font-size: 14px;
} 

/* Gallery Details Modal */
.gallery-details-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.gallery-detail-header {
    border-bottom: 2px solid #dc005a;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.gallery-detail-header h2 {
    color: #dc005a;
    font-size: 28px;
    margin-bottom: 10px;
}

.gallery-detail-date {
    color: #666;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.gallery-detail-content {
    line-height: 1.6;
}

.gallery-detail-text {
    font-size: 16px;
    color: #333;
    white-space: pre-line;
}

/* Click Hint Styles */
.click-hint {
    color: #dc005a;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px !important;
    cursor: pointer;
    transition: color 0.3s ease;
}

.click-hint:hover {
    color: #a8003f;
}

/* Gallery Item Hover Effect */
.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item:hover .click-hint {
    color: #a8003f;
} 

/* About Section Styling */
.about-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.about-text {
    flex: 2;
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-image {
    margin-bottom: 20px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* Impressum Modal */
.impressum-modal-content {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    margin: 5% auto;
    font-size: 14px;
}

.impressum-content {
    padding: 20px;
}

.impressum-content h2 {
    text-align: center;
    color: #dc005a;
    margin-bottom: 30px;
    font-size: 24px;
}

.impressum-content h3 {
    color: #dc005a;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 16px;
}

.impressum-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
}

.impressum-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.impressum-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #333;
}

.impressum-content strong {
    color: #dc005a;
}

/* Footer Link */
.impressum-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.impressum-link:hover {
    color: white;
    text-decoration: underline;
}

/* Events Section */
.events-section {
    background: #ffffff;
    padding: 80px 0;
}

.events-grid {
    display: grid;
    gap: 40px;
    margin-top: 40px;
}

.event-report {
    background: #f9fafb;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-report:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #dc005a;
}

.event-header h3 {
    color: #dc005a;
    font-size: 26px;
    font-weight: 600;
    margin: 0;
}

.event-type-badge {
    background: linear-gradient(135deg, #dc005a, #e91e63);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(220, 0, 90, 0.3);
}

.event-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
}

.event-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.event-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-report:hover .event-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-image:hover .image-overlay {
    opacity: 1;
}

.extra-image {
    display: none;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.extra-image.visible {
    display: block;
}

.extra-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.extra-image:hover img {
    transform: scale(1.02);
}

.zoom-icon {
    font-size: 30px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.event-text {
    line-height: 1.7;
    color: #374151;
    display: flex;
    flex-direction: column;
    max-height: 300px; /* Maximale Höhe wie das Bild */
}

.event-text-content {
    overflow: hidden;
    padding-right: 10px;
    line-height: 1.7;
    max-height: 240px; /* Berechnete Höhe für ca. 8-9 Zeilen */
    transition: max-height 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.event-text p {
    margin-bottom: 16px;
    font-size: 16px;
    text-align: justify;
}

.event-text p:last-child {
    margin-bottom: 0;
}

.read-more-btn {
    background: linear-gradient(135deg, #dc005a, #e91e63);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(220, 0, 90, 0.3);
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #a8003f, #c2185b);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 0, 90, 0.4);
}

.expand-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.read-more-btn.expanded .expand-icon {
    transform: rotate(180deg);
}

.read-more-btn.expanded {
    background: linear-gradient(135deg, #6b46c1, #8b5cf6);
    box-shadow: 0 2px 10px rgba(107, 70, 193, 0.3);
}

.read-more-btn.expanded:hover {
    background: linear-gradient(135deg, #553c9a, #7c3aed);
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.4);
}

/* Mobile Responsive für Events */
@media (max-width: 768px) {
    .events-section {
        padding: 60px 0;
    }
    
    .event-report {
        padding: 20px;
    }
    
    .event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .event-header h3 {
        font-size: 22px;
    }
    
    .event-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-image img {
        height: 200px;
    }
    
    .event-text {
        max-height: none; /* Höhenbegrenzung auf Mobile entfernen */
    }
    
    .event-text-content {
        max-height: none; /* Höhenbegrenzung auf Mobile entfernen */
    }
    
    .event-text p {
        font-size: 15px;
    }
}

/* Image Modal */
.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    margin: 2% auto;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.image-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.image-caption {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    max-width: 100%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.image-modal-content .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.image-modal-content .close:hover {
    background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .image-modal-content {
        max-width: 95%;
        max-height: 95%;
        margin: 2.5% auto;
    }
    
    .modal-image {
        max-height: 70vh;
    }
    
    .image-caption {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .image-modal-content .close {
        top: 15px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
}