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

:root {
    --primary-color: #005B9A;
    --primary-dark: #004577;
    --secondary-color: #005B9A;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.hero-header {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-image: url('static/img/header_poster.webp');
    background-size: cover;
    background-position: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1.5rem 2rem;
    background: transparent;
    backdrop-filter: none;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-brand,
.navbar.scrolled .nav-links a {
    color: var(--text-dark);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--primary-color);
}

.nav-brand {
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    left: 2rem;
    height: 50px;
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.navbar.scrolled .nav-brand {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .nav-brand {
        height: 40px;
        max-width: calc(100% - 120px);
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar.scrolled .mobile-menu-toggle span {
    background: var(--text-dark);
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    color: white;
}

.hero-logo {
    max-width: 500px;
    width: 90%;
    height: auto;
    margin: 4rem auto 1.5rem auto;
    display: block;
    opacity: 0.9;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.025em;
}

@media (max-width: 768px) {
    .hero-logo {
        max-width: 350px;
        margin-top: 3rem;
        margin-bottom: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        max-width: calc(100% - 80px);
        margin-left: auto;
        margin-right: auto;
    }
}

.info-bar {
    background: white;
    padding: 1.5rem 0 1.5rem 0;
}

.info-bar-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.info-bar-item {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.info-icon {
    color: var(--primary-color);
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.info-bar-text {
    flex: 1;
    position: relative;
}

.info-bar-item p {
    font-size: 0.95rem;
    margin: 0 0 0 0;
    color: var(--text-dark);
}

.info-timestamp {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 0.75rem;
    color: #999;
    font-style: italic;
}

.info-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    display: inline-block;
}

.info-link:hover {
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .info-bar-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-bar {
        padding: 1rem 0 0rem 0;
    }
    
    .info-bar-item {
        padding: 1rem;
    }
}

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

.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--bg-light);
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.news-date {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.instagram-section {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.instagram-section h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.instagram-feed {
    margin: 2rem 0;
}

.instagram-placeholder {
    padding: 3rem;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--text-light);
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-text p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.125rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.25rem;
}

.content-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* Bad Section - 2 Column Layout */
.bad-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.bad-text p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.8;
}

.bad-features .feature-list {
    margin-top: 0;
}

.bad-image-large {
    margin-top: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.bad-image-large img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
    aspect-ratio: 16 / 9;
    min-height: 400px;
    background: var(--bg-light);
}

.map-image {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
}

.map-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.map-placeholder,
.image-placeholder {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    color: var(--text-light);
    font-size: 3rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zeiten-content {
    max-width: 900px;
    margin: 0 auto;
}

.zeiten-info > p {
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--text-light);
}

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

.zeiten-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.zeiten-box h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.zeiten-box p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.zeiten-payment {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.zeiten-payment p {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin: 0;
}

.zeiten-cta {
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-top: 0;
}

.section-no-padding {
    padding: 0;
    padding-top: 0;
}

.section-spacing {
    margin-top: 4rem;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.instagram-post {
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    overflow: hidden;
}

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

.instagram-post a {
    display: block;
    overflow: hidden;
}

.instagram-post img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;
}

.instagram-caption {
    padding: 1rem;
}

.instagram-date {
    color: #6b7280;
    font-size: 0.75rem;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.instagram-text {
    color: var(--text-dark);
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.instagram-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.instagram-more:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.section-no-padding h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.instagram-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.main-content {
    width: 100%;
}

.events-horizontal {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    padding-left: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-left: 0;
}

.event-card-empty {
    margin: 0 auto;
    flex: 0 0 auto;
    min-width: 400px;
    text-align: center;
}

.events-horizontal::-webkit-scrollbar {
    height: 8px;
}

.events-horizontal::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.events-horizontal::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.events-horizontal::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.event-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    scroll-snap-align: start;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.event-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.event-date {
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: white;
    height: 70px;
}

.event-day {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.95;
    line-height: 1.2;
}

.event-time {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.85;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.event-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.event-content p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .events-horizontal {
        display: flex;
        flex-direction: column;
        overflow-x: visible;
        gap: 1.5rem;
    }
    
    .event-card {
        flex: 1 1 auto;
        min-width: 100%;
        width: 100%;
        min-height: 200px;
    }
    
    .page-wrapper {
        padding: 0 1rem;
    }
    
    .section-spacing {
        margin-top: 0 !important;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-no-padding {
        padding-top: 2rem !important;
    }
}

.verein-content {
    max-width: 900px;
    margin: 0 auto;
}

.verein-text {
    text-align: center;
    margin-bottom: 4rem;
}

.verein-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.hero-status {
    font-size: 1.25rem;
    color: white;
    margin-top: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    font-size: 1.125rem;
    padding: 1rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.vorstand-section,
.beirat-section,
.downloads-section {
    margin-top: 2rem;
}

.vorstand-section h3,
.beirat-section h3,
.downloads-section h3,
.spenden-section h3,
.merchandise-section h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.75rem;
}

.vorstand-section h3::after,
.beirat-section h3::after,
.downloads-section h3::after,
.spenden-section h3::after,
.merchandise-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.vorstand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.vorstand-member {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.vorstand-member h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.vorstand-member p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.vorstand-member a {
    color: var(--secondary-color);
    text-decoration: none;
}

.vorstand-member a:hover {
    text-decoration: underline;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.download-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.download-item h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.download-item p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.geschichte-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.geschichte-intro p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-light);
}

.geschichte-gallery {
    max-width: 1000px;
    margin: 0 auto;
}

.geschichte-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.geschichte-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.geschichte-item.reverse {
    direction: rtl;
}

.geschichte-item.reverse > * {
    direction: ltr;
}

.geschichte-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.geschichte-image:hover {
    transform: scale(1.03);
}

.geschichte-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    min-height: 300px;
    background: var(--bg-light);
}

.geschichte-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.geschichte-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.geschichte-footer {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--bg-light);
    border-radius: 12px;
    text-align: center;
}

.geschichte-footer h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.geschichte-footer p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.anfahrt-content {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 3rem;
    align-items: center;
}

.anfahrt-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.anfahrt-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.anfahrt-info p {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.map-link {
    margin-top: 2rem;
    text-align: center;
}

.kontakt-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.kontakt-content p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.kontakt-email {
    font-size: 1.5rem;
    margin: 2rem 0;
}

.kontakt-email a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.kontakt-email a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.social-link span {
    font-size: 1.5rem;
}

.footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transition: background 0.3s ease;
    }
    
    .navbar.scrolled .nav-links {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .navbar.scrolled .nav-links a {
        color: var(--text-dark);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-status {
        font-size: 1.125rem;
        flex-direction: column;
    }

    .content-grid,
    .anfahrt-content,
    .bad-content-grid {
        grid-template-columns: 1fr;
    }
    
    .bad-image-large img {
        max-height: 300px;
        min-height: 250px;
    }


    .section h2 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .geschichte-item,
    .geschichte-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 1.5rem;
    }

    .geschichte-text h3 {
        font-size: 1.25rem;
    }
}

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

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

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 1rem;
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-content h2 {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-right: 2.5rem;
    }
    
    .modal-close {
        top: 0.5rem;
        right: 1rem;
        font-size: 1.75rem;
    }
    
    #temperatureChart {
        max-height: 400px;
    }
}

#temperatureChart {
    background: linear-gradient(to bottom, rgba(0, 91, 154, 0.02), rgba(255, 255, 255, 0));
    border-radius: 8px;
    padding: 1rem;
}

.chart-info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 91, 154, 0.08), rgba(0, 91, 154, 0.04));
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.chart-info-box svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary-color);
}

.chart-info-box span {
    flex: 1;
}

/* Tech Info Section */
.tech-info-section {
    margin-top: 1.5rem;
}

.tech-info-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid rgba(0, 91, 154, 0.2);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.tech-info-toggle:hover {
    background: rgba(0, 91, 154, 0.05);
    border-color: var(--primary-color);
}

.tech-info-toggle .toggle-icon {
    transition: transform 0.3s ease;
}

.tech-info-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.tech-info-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.tech-info-content.active {
    max-height: 1000px;
}

.tech-info-inner {
    padding: 1.5rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, rgba(0, 91, 154, 0.03), rgba(0, 91, 154, 0.01));
    border-radius: 8px;
    border: 1px solid rgba(0, 91, 154, 0.1);
}

.tech-info-inner h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.tech-info-inner > p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.tech-features {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tech-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.tech-feature svg {
    flex-shrink: 0;
    color: var(--primary-color);
    margin-top: 2px;
}

.tech-feature strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.tech-feature p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

.api-info {
    padding: 1rem;
    background: rgba(0, 91, 154, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.api-info strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.api-info code {
    display: block;
    padding: 0.5rem;
    background: white;
    border: 1px solid rgba(0, 91, 154, 0.2);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--primary-color);
    word-break: break-all;
}

.api-note {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
}

@media (max-width: 400px) {
    .modal-content h2 {
        font-size: 0.8rem;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.diagram-placeholder {
    margin-top: 1rem;
}

.diagram-placeholder svg {
    width: 100%;
    height: auto;
}

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

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

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .news-grid,
    .vorstand-grid,
    .download-grid {
        grid-template-columns: 1fr;
    }
}

/* Spenden Section */
.spenden-section {
    margin-top: 3rem;
}

.spenden-box {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.spenden-box p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.bank-info {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.bank-info h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.bank-info p {
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.verwendungszweck {
    font-size: 0.95rem;
    padding: 1rem;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 4px;
    margin-top: 1.5rem;
}

/* Subsection Titles */
.subsection-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Merchandise Section */
.merchandise-section {
    margin-top: 3rem;
}

.merchandise-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.merchandise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.merchandise-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.merchandise-item img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: white;
}

.merchandise-item h4 {
    padding: 1rem 1rem 0.5rem;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.merchandise-item .product-price {
    padding: 0 1rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.merchandise-item p {
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
    padding-bottom: 1.5rem;
}

.merchandise-item .btn {
    margin: 0 1rem 1rem;
    margin-top: auto;
    text-align: center;
}

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.scroll-to-top svg {
    color: white;
}

.event-more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.event-more-link:hover {
    text-decoration: underline;
}

.event-modal-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.event-modal-meta span:not(:empty)::before {
    content: '';
}

.modal-header h2 {
    margin: 0;
    color: var(--text-dark);
}

.modal-body {
    margin-top: 1.5rem;
}

.modal-body p {
    line-height: 1.8;
    color: var(--text-dark);
    white-space: pre-wrap;
}

@media (max-width: 768px) {
    .merchandise-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .merchandise-item img {
        height: 200px;
    }
    
    .spenden-box {
        padding: 1.5rem;
    }
    
    .merchandise-grid,
    .download-grid {
        grid-template-columns: 1fr;
    }
}
