/* Custom styles for the Förderverein website */

/* Reset some default styles */
body, h1, h2, h3, p {
    margin: 0;
    padding: 0;
}

/* Global Variables */
:root {
    /* Colors */
    --primary-color: #009EE3;
    --secondary-color: #E30613;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --text-dark: #2d3436;
    --text-medium: #4a4a4a;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-color: rgba(0, 158, 227, 0.18);
    --color-highlight: #e8f8fd;
    --light-bg: #eef8fc;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Layout */
    --max-width: 1200px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

/* Vereinfachte Basis-Styles */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Header styles */
header {
    background: #35424a;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
}

/* Header & Navigation */
.main-header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Logo Styles */
.logo a {
    display: inline-block;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.logo a:hover {
    background: rgba(0, 158, 227, 0.1);
    transform: translateY(-2px);
}

.logo img {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .logo a:hover {
        background: none;
        transform: none;
    }
    
    .logo img {
        height: 50px;
    }
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(0, 158, 227, 0.1);
}

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

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

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        text-align: center;
    }
}

/* Navigation styles */
nav {
    margin: 20px 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
}

nav a:hover {
    background: #e8491d;
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 2rem;
    background: var(--background-white);
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding-right: 2rem;
}

.hero-image {
    flex: 1;
    max-width: 500px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-color);
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .hero-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

.hero-image {
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero p {
    color: var(--text-medium);
    margin-bottom: 2rem;
}

/* Button Styles */
.cta-button, .button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    background: var(--primary-color);
    color: var(--background-white);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
}

.cta-button:hover, .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,158,227,0.3);
    background: #0082BA;
    color: var(--background-white);
}

/* Main content styles */
main {
    padding: 20px;
}

/* Sections */
.section {
    padding: var(--spacing-lg) 0;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.container {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    text-shadow: 1px 1px 0 var(--background-white);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Projekt-Cards */
.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-top: 4px solid var(--primary-color);
}

.project-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Filter Buttons */
.project-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

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

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

/* Support Options */
.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.option {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 8px;
}

/* Contact Form */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Download Buttons */
.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.download-buttons .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
}

@media (min-width: 768px) {
    .download-buttons {
        flex-direction: row;
    }
    
    .download-buttons .button {
        width: auto;
    }
}

/* Footer styles */
footer {
    text-align: center;
    padding: 10px 0;
    background: #35424a;
    color: #ffffff;
}

/* Footer */
.main-footer {
    background-color: var(--background-light);
    padding: var(--spacing);
    margin-top: 4rem;
    color: var(--text-medium);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    margin: 0 1rem;
    color: var(--text-medium);
    text-decoration: none;
}

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

/* Responsive design */
@media (max-width: 600px) {
    nav {
        display: flex;
        flex-direction: column;
    }

    nav a {
        padding: 10px;
        text-align: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: var(--spacing) 1rem;
    }
}

/* Slider Styles - Updated */
.project-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.3s ease-in-out;
}

.slide {
    flex: 0 0 100%;
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.slide.visible {
    display: flex;
}

.slide:not(.visible) {
    display: none;
}

.slide img {
    max-width: 100%;
    max-height: 600px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.slider-btn.prev { 
    left: 10px; 
}

.slider-btn.next { 
    right: 10px; 
}

.slider-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Mobile Slider Optimizations */
@media (max-width: 768px) {
    .project-slider {
        margin: 0;
        border-radius: 8px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .slider-btn.prev { 
        left: 5px; 
    }
    
    .slider-btn.next { 
        right: 5px; 
    }
    
    .slide {
        padding: 0 10px;
    }
    
    .slide img {
        max-height: 400px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .slide img {
        max-height: 300px;
    }
}

/* Kita Section Styles */
.kita-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-card {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

.info-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-medium);
}

.info-list li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

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

.events-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.75rem;
}

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

.event-card {
    background: var(--background-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: transform 0.3s ease;
}

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

.event-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.event-card p {
    color: var(--text-medium);
    line-height: 1.6;
}

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

/* Contact Section Styles */
.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-info, .social-media {
    flex: 1;
}

.social-media {
    text-align: center;
}

.qr-code {
    margin: 2rem auto;
    max-width: 200px;
}

.qr-code img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
    }
    
    .social-media {
        margin-top: 2rem;
    }
}

.contact-intro {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-info {
    margin-top: 2rem;
}

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

.contact-info p {
    color: var(--text-medium);
    margin-bottom: 2rem;
}

.contact-cta {
    margin-top: 2rem;
}

.contact-cta .button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.contact-cta .button:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-content {
        padding: 1.5rem;
    }
    
    .contact-intro {
        font-size: 1.1rem;
    }
}

/* Legal Pages Styles */
.legal-content {
    padding: 4rem 0;
}

.legal-content h1 {
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
}

.legal-section {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-color);
    margin-bottom: 2rem;
}

.legal-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.legal-section h3 {
    color: var(--text-dark);
    margin: 1.5rem 0 1rem;
    font-size: 1.25rem;
}

.legal-section p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Legal Navigation Styles */
.legal-nav {
    background: var(--background-white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.back-home {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.back-home:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .legal-content {
        padding: 2rem 1rem;
    }
    
    .legal-section {
        padding: 1.5rem;
    }
}

/* Legal Pages Navigation */
.legal-nav {
    background: var(--background-white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.back-home:hover {
    background: rgba(0, 158, 227, 0.1);
    transform: translateY(-2px);
}

/* Footer Links */
.footer-links a {
    color: var(--text-medium);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    background: rgba(0, 158, 227, 0.1);
    transform: translateY(-2px);
}

/* Board Members Styles */
.board-members-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    width: 100%;
    max-width: var(--max-width);
    margin: 3rem auto;
    padding: 0 var(--spacing-md);
}

.board-member {
    background: var(--background-white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 158, 227, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.board-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 158, 227, 0.2);
}

.member-image {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

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

.member-content {
    padding: 2rem;
    text-align: center;
}

.member-content h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.member-name {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-description {
    color: var(--text-medium);
    line-height: 1.6;
    font-style: italic;
    padding: 1rem;
    background: rgba(0, 158, 227, 0.05);
    border-radius: 12px;
}

@media screen and (max-width: 768px) {
    .board-members-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .member-image {
        width: 180px;
        height: 180px;
    }
}

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

@media screen and (max-width: 768px) {
    .board-members-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

/* Adjust grid for 4 members */
@media (min-width: 1200px) {
    .board-members-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Ensure consistent card heights */
.board-member {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.member-description {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.board-member {
    text-align: center;
    background: var(--background-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: transform 0.3s ease;
}

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

.member-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
}

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

.board-member h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.board-member p {
    color: var(--text-medium);
}

.member-name {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.member-description {
    padding: 1rem;
    background: rgba(0, 158, 227, 0.05);
    border-radius: 8px;
    margin-top: 1rem;
}

.member-description p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
}

@media (max-width: 768px) {
    .member-description {
        padding: 0.75rem;
    }
}

@media (max-width: 768px) {
    .board-members-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .member-image {
        width: 150px;
        height: 150px;
    }
}

/* About Text Section */
.about-text {
    max-width: 800px;
    margin: 4rem auto;
    text-align: center;
    padding: 0 1rem;
}

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

.about-text > p {
    color: var(--text-medium);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

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

.mission-item {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: transform 0.3s ease;
}

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

.mission-item h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.mission-item p {
    color: var(--text-medium);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about-text {
        margin: 3rem auto;
    }
    
    .about-text h3 {
        font-size: 1.75rem;
    }
    
    .mission-points {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.projects-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    padding: 0 1rem;
}

.projects-intro p {
    color: var(--text-medium);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Section Dividers */
.section-divider {
    width: 100%;
    max-width: 1200px;
    margin: 4rem auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-divider::before,
.section-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-color) 20%, 
        var(--primary-color) 80%, 
        transparent
    );
}

.section-divider .divider-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Section Intro Text */
.section-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    padding: 2rem;
    background: var(--background-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.section-intro p {
    color: var(--text-medium);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.section-highlight {
    background-color: var(--color-highlight);
    padding: 4rem 0;
    margin: 0 auto; /* Zentriert den Container horizontal */
    width: 100%;
    text-align: center;
}

.section-highlight .container {
    max-width: 1200px; /* oder die gewünschte maximale Breite */
    margin: 0 auto;
    padding: 0 20px;
}

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

.mission-section h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.mission-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
}

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

.mission-card {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.mission-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.mission-icon svg {
    width: 100%;
    height: 100%;
}

.mission-card h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.mission-card p {
    color: var(--text-medium);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .mission-section {
        margin: 3rem auto;
        padding: 0 1rem;
    }
    
    .mission-cards {
        grid-template-columns: 1fr;
    }
    
    .mission-card {
        padding: 1.5rem;
    }
}

/* Container and Section Styles */
.container {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Mission Section */
.mission-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

/* Projects Section */
#projekte {
    text-align: center;
    width: 100%;
}

.project-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

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

/* Board Members */
.board-members-grid {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-items: center;
}

/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .board-members-grid {
        padding: 0 1rem;
    }
    
    .project-slider {
        padding: 0 1rem;
    }
}

/* Grid Layout for 4-column sections */
.grid-4-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .grid-4-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-4-columns {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

/* Icon Styles */
.support-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2;
}

/* Support Grid and Items */
.support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: var(--max-width);
    margin: 3rem auto;
    padding: 0 var(--spacing-md);
}

.support-item {
    background: var(--background-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 158, 227, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Icon Container */
.support-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 158, 227, 0.05);
    border-radius: 50%;
    padding: 1rem;
}

/* SVG Icons */
.support-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary-color);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

/* Support Item Content */
.support-item h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.support-item p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* Hover Effects */
.support-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 158, 227, 0.15);
}

.support-item:hover .support-icon svg {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .support-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 var(--spacing-sm);
    }

    .support-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }

    .support-item {
        padding: 1.5rem;
    }
}

/* Mitmachen Section Styles */
.section-highlight {
    background: linear-gradient(135deg, rgba(0, 158, 227, 0.05) 0%, rgba(0, 158, 227, 0.1) 100%);
    padding: 6rem 0;
    margin: 4rem 0;
}

#mitmachen.section-highlight {
    margin: 0 auto;
    text-align: center;
}

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

.join-content {
    max-width: 1000px;
    margin: 0 auto;
}

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

.lead-text {
    font-size: 1.5rem;
    color: var(--text-dark);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.join-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.join-card {
    background: var(--background-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 158, 227, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.join-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 158, 227, 0.2);
}

.join-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.join-card h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.join-card p {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.benefits-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: var(--text-medium);
}

.benefits-list li::before {
    content: "→";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.join-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 158, 227, 0.1);
}

.price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .section-highlight {
        padding: 4rem 0;
        margin: 2rem 0;
    }

    .lead-text {
        font-size: 1.25rem;
        padding: 0 1rem;
    }

    .join-options {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .join-card {
        padding: 2rem;
    }
}

.download-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 158, 227, 0.1);
}

.download-section p {
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--background-white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

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

.download-btn:hover svg {
    transform: translateY(2px);
}

@media (max-width: 768px) {
    .download-buttons {
        flex-direction: column;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 2026 visual refresh and technical cleanup */
:root {
    --primary-color: #007fbc;
    --secondary-color: #e54b5c;
    --accent-green: #24a878;
    --accent-yellow: #ffbf38;
    --background-light: #f6fbfd;
    --background-white: #ffffff;
    --text-dark: #1f2d33;
    --text-medium: #52666d;
    --border-color: #d7e9ef;
    --shadow-color: rgba(31, 45, 51, 0.1);
    --soft-blue: #eaf7fc;
    --soft-green: #ecfaf4;
    --max-width: 1120px;
    --border-radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        linear-gradient(180deg, #ffffff 0%, var(--background-light) 38%, #ffffff 100%);
    color: var(--text-dark);
    font-size: 16px;
}

body::selection {
    background: var(--accent-yellow);
    color: var(--text-dark);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent-yellow);
    outline-offset: 3px;
}

main {
    padding: 0;
}

.container {
    max-width: var(--max-width);
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.main-header {
    position: relative;
    overflow: hidden;
    background: var(--background-white);
    box-shadow: none;
}

.navbar {
    position: relative;
    z-index: 20;
    margin: 0 auto;
    padding-block: 0.9rem;
}

.logo a {
    padding: 0;
    border-radius: var(--border-radius);
}

.logo img {
    height: 64px;
    width: auto;
}

.nav-links {
    align-items: center;
    gap: 0.45rem;
}

.nav-links a {
    color: var(--text-dark);
    border-radius: 999px;
    padding: 0.65rem 0.95rem;
    font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background: var(--soft-blue);
    color: var(--primary-color);
}

.nav-links a::after {
    display: none;
}

.mobile-menu-btn {
    border-radius: var(--border-radius);
}

.mobile-menu-btn:hover {
    background: var(--soft-blue);
}

.hero {
    isolation: isolate;
    min-height: clamp(520px, 72vh, 760px);
    display: grid;
    align-items: center;
    padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 7vw, 6rem);
    background: #dff3fb;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 46%, rgba(255, 255, 255, 0.25) 100%),
        linear-gradient(180deg, rgba(0, 127, 188, 0.16), rgba(36, 168, 120, 0.12));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 690px;
    padding: 0;
    text-align: left;
}

.hero-content::before {
    content: "Gemeinnütziger Förderverein";
    display: inline-flex;
    width: fit-content;
    margin-bottom: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.42rem 0.75rem;
    background: rgba(255, 255, 255, 0.82);
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 11ch;
    margin-bottom: 1.1rem;
    color: var(--text-dark);
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.hero p {
    max-width: 560px;
    color: var(--text-medium);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 600;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    max-width: none;
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    object-position: 72% center;
    filter: saturate(1.05) contrast(1.02);
    box-shadow: none;
}

.cta-button,
.button {
    border-radius: 999px;
    background: var(--primary-color);
    box-shadow: 0 12px 24px rgba(0, 127, 188, 0.2);
    font-weight: 800;
    text-shadow: none;
}

.cta-button:hover,
.button:hover {
    background: #006b9f;
    box-shadow: 0 14px 28px rgba(0, 127, 188, 0.25);
}

.section {
    max-width: none;
    padding: clamp(4rem, 8vw, 6rem) 0;
}

.section-title,
.section h2 {
    color: var(--primary-color);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    letter-spacing: 0;
    text-shadow: none;
}

.section-intro,
.mission-card,
.board-member,
.support-item,
.info-card,
.event-card,
.join-card,
.legal-section {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 42px var(--shadow-color);
}

.mission-section {
    padding-block: 2rem;
}

.mission-icon,
.support-icon,
.join-icon {
    color: var(--primary-color);
}

.board-members-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 1.25rem;
}

.board-member {
    padding: 1.25rem;
}

.member-image {
    width: 132px;
    height: 132px;
    border: 5px solid var(--soft-blue);
}

.member-description {
    border-radius: var(--border-radius);
    background: var(--soft-blue);
}

.support-grid,
.kita-info,
.events-grid,
.join-options {
    gap: 1.25rem;
}

.section-divider {
    margin-block: 0;
}

.section-divider::before,
.section-divider::after {
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.divider-icon {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--background-white);
}

#kita,
#kontakt {
    background: var(--background-white);
}

#projekte {
    background: var(--background-light);
}

.project-filter {
    gap: 0.55rem;
}

.filter-btn {
    min-height: 42px;
    border-color: var(--border-color);
    border-radius: 999px;
    background: var(--background-white);
    color: var(--primary-color);
    font-weight: 800;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--background-white);
}

.project-slider {
    max-width: min(980px, 100%);
    min-height: 380px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--background-white);
    padding: 1rem;
    box-shadow: 0 18px 42px var(--shadow-color);
}

.slider-track {
    min-height: 340px;
}

.slide {
    padding: 0;
}

.slide img {
    width: 100%;
    height: min(58vh, 520px);
    max-height: none;
    border-radius: var(--border-radius);
    background: var(--background-light);
    object-fit: contain;
}

.slider-btn {
    width: 46px;
    height: 46px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.94);
    color: var(--primary-color);
}

.section-highlight {
    background: linear-gradient(135deg, var(--soft-blue) 0%, var(--soft-green) 100%);
}

.join-card {
    text-align: left;
}

.download-btn {
    border-radius: 999px;
    font-weight: 800;
}

.contact-content {
    max-width: var(--max-width);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    align-items: center;
    text-align: left;
}

.social-media {
    text-align: center;
}

.qr-code {
    max-width: 180px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    background: var(--background-white);
}

.qr-code img {
    border-radius: 4px;
    box-shadow: none;
}

.main-footer {
    border-top: 1px solid var(--border-color);
    background: var(--background-white);
    padding: 2rem 0;
}

.legal-content {
    background: var(--background-light);
}

.legal-nav {
    background: var(--background-white);
    border-bottom-color: var(--border-color);
}

@media (max-width: 900px) {
    .board-members-grid,
    .join-options,
    .support-grid,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 620px;
        padding: 7rem 1.25rem 4rem;
    }

    .hero::before {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 58%, rgba(255, 255, 255, 0.55) 100%),
            linear-gradient(180deg, rgba(0, 127, 188, 0.18), rgba(36, 168, 120, 0.12));
    }

    .hero h1 {
        max-width: 10ch;
        font-size: clamp(2.7rem, 15vw, 4.4rem);
    }

    .hero-image img {
        object-position: center bottom;
    }

    .navbar {
        padding-inline: 1rem;
    }

    .nav-links.active {
        top: calc(100% + 0.5rem);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        overflow: hidden;
    }

    .project-slider {
        min-height: 300px;
        padding: 0.75rem;
    }

    .slider-track {
        min-height: 260px;
    }

    .slide img {
        height: min(52vh, 360px);
    }
}

@media (max-width: 520px) {
    .logo img {
        height: 48px;
    }

    .hero {
        min-height: 560px;
    }

    .section {
        padding-block: 3.25rem;
    }

    .section-intro,
    .mission-card,
    .board-member,
    .support-item,
    .info-card,
    .event-card,
    .join-card,
    .legal-section {
        padding: 1.2rem;
    }

    .lead-text {
        font-size: 1.05rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
