/* Grundlegende Typografie und Farben */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    color: #333;
    /* Standard-Textfarbe (für die unteren Sektionen) */
    line-height: 1.6;
}

:root {
    --primary-color: #E30613;
    /* Kräftiges Rot (für CTA/DM) */
    --secondary-color: #00A99D;
    /* Türkis/Mint (für Erfolgszahlen/Kontakt) */
    --light-bg: #f8f8f8;
    /* Heller Hintergrund für Sektion 3 und Erfolge-Gruppen */
    --dark-text: #1a1a1a;
    /* Dunkle Textfarbe */
    --top-info-bg: rgba(224, 224, 224, 0.9);
}

/* ################### Lokale Einbindung Montserrat (Datenschutzkonform) ################### */

/* Gewichtung 400 (Normal) */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    /* PASSE DIESEN PFAD ZU DEINEN HERUNTERGELADENEN SCHRIFTDATEIEN AN */
    src: url('fonts/montserrat-v31-latin-regular.woff2') format('woff2'),
        url('fonts/montserrat-v31-latin-regular.woff') format('woff');
    font-display: swap;
    /* Verbessert die Ladezeit-Anzeige */
}

/* Gewichtung 700 (Bold) */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    /* PASSE DIESEN PFAD ZU DEINEN HERUNTERGELADENEN SCHRIFTDATEIEN AN */
    src: url('fonts/montserrat-v31-latin-700.woff2') format('woff2'),
        url('montserrat-v31-latin-700.woff') format('woff');
    font-display: swap;
    /* Verbessert die Ladezeit-Anzeige */
}

/* ################### SCROLL REVEAL ANIMATION SYSTEM ################### */
.reveal {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--delay, 0) * 0.1s);
    will-change: opacity, transform;
}

/* Zoom reveal */
.reveal.reveal-zoom {
    transform: scale(0.8) translateY(30px);
}

/* Slide reveals */
.reveal.reveal-left {
    transform: translateX(-60px) scale(0.95);
}

.reveal.reveal-right {
    transform: translateX(60px) scale(0.95);
}

/* Fallback if no specific direction is set */
.reveal:not(.reveal-zoom):not(.reveal-left):not(.reveal-right) {
    transform: translateY(40px) scale(0.95);
}

/* Active states */
.reveal.active {
    opacity: 1;
    transform: scale(1) translateY(0) translateX(0) !important;
}

/* ################### HERO-SECTION (Home) ################### */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
}

/* NEU: Ein Pseudoelement als dunkles Overlay für bessere Lesbarkeit */
.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dunkle Überlagerung (Schwarz mit 40% Transparenz) */
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
    /* Zwischen Bild (1) und Inhalt (3) */
}

@keyframes kenBurns {
    0% {
        transform: scale(1.04);
    }

    50% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1.04);
    }
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('../img/hero-image.jpg') no-repeat center center/cover;
    opacity: 0.8;
    z-index: 1;
    animation: kenBurns 25s ease-in-out infinite;
    transform-origin: center center;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px 5%;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 1);
    /* NEU: Schatten für noch bessere Kontraste verstärkt */
    text-align: center;
}

.hero-content h1 {
    font-size: 4em;
    color: white;
    margin-bottom: 0;
}

.hero-content h2 {
    font-size: 2em;
    color: white;
    margin-top: 5px;
}

/* WIEDERHERGESTELLT: Roter CTA Button */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #c90510;
    color: #e0e0e0;
    text-decoration: none;
}


/* ################### TOP INFO (Logo & Hamburger-Menü) ################### */
.top-info {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #000;
    width: auto;
    z-index: 100;
    border-bottom-right-radius: 10px;
    height: 60px;
    /* Höhe für vertikale Zentrierung der Elemente */
}

.top-info .logo img {
    height: 75px;
}

/* ################### SOCIAL ICONS (Oben Rechts) ################### */
.social-icons {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding: 15px;
    z-index: 100;
    border-bottom-left-radius: 10px;
    height: 60px;
    /* Höhe an top-info anpassen */
}

.social-icons a {
    font-size: 1.8em;
    /* Icons vergrößern */
    text-decoration: none;
    color: var(--secondary-color);
    margin-left: 15px;
    transition: color 0.3s;
    display: flex;
    /* Für vertikale Zentrierung des Icons im Link */
    align-items: center;
    /* Vertikale Zentrierung */
    justify-content: center;
    /* Horizontale Zentrierung (falls padding/border) */
}

.social-icons a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* ################### HAMBURGER-MENÜ ################### */
.hamburger-menu {
    cursor: pointer;
    padding: 5px;
    margin-left: 15px;
    z-index: 101;
}

.hamburger-menu div {
    width: 28px;
    height: 3px;
    background-color: #fff;
    margin: 6px 0;
    transition: 0.4s;
}

.change .bar1 {
    transform: translate(0, 9px) rotate(-45deg);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    transform: translate(0, -9px) rotate(45deg);
}


/* ################### NAVIGATION (immer versteckt, bis geklickt) ################### */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 99;
}

nav.open {
    opacity: 1;
    visibility: visible;
}

nav a {
    text-decoration: none;
    color: white;
    font-size: 2.5em;
    margin: 15px 0;
    font-weight: 700;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

nav a[href="#kontakt"]:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* ################### Links ################### */
a {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}


/* ################### ERFOLGE - NEUER GRUPPIERTER STIL ################### */
.section {
    padding: 50px 5%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Inhalt vertikal zentrieren */
}

/* NEU: Generische Headline-Struktur für Sektionen (z.B. Galerie) */
.section-headline {
    text-align: center;
    margin-bottom: 50px;
}

.section-kicker {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
    opacity: 0.85;
}

.section-headline h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4em;
    color: var(--dark-text);
    margin-top: 0;
    padding-bottom: 15px;
    position: relative;
    display: inline-block;
    margin-bottom: 0;
    font-weight: 700;
}

.section-headline h3 .highlight {
    color: var(--primary-color);
}

.section-headline h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), left 0.8s cubic-bezier(0.16, 1, 0.3, 1), width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.2s;
}

.section-headline.active h3::after {
    left: 0;
    width: 100%;
    transform: scaleX(1);
}

/* ################### ERFOLGE - MODERN REDESIGN ################### */
#erfolge {
    background: linear-gradient(135deg, #0d1017 0%, #161a25 100%);
    padding: 60px 5%;
    color: #fff;
    position: relative;
    overflow: hidden;
}

#erfolge .section-headline h3 {
    color: #fff;
}

#erfolge .section-headline h3 .highlight {
    background: linear-gradient(135deg, #FFE066 0%, #F5B041 50%, #B7950B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#erfolge .section-kicker {
    color: #FFD700;
}

/* ################### ERFOLGS-DASHBOARD TABS ################### */
.erfolgs-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 40px;
    z-index: 5;
    position: relative;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    padding: 10px 22px;
    font-size: 0.9em;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

.tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.4);
}

.wettbewerbe-container {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

/* Tab pane toggles */
.tab-pane {
    display: none;
    opacity: 0;
    transform: scale(0.98) translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: scale(1) translateY(0);
}

.erfolg-gruppe {
    padding: 30px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.erfolgszahlen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
}

/* Compact stats cards (horizontal layout) */
.erfolgszahl-karte {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.3s ease,
        border-color 0.3s ease;
    border-left: 4px solid transparent;
}

.erfolgszahl-karte:hover {
    transform: translateY(-4px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Icon glowing badge */
.icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.erfolgszahl-karte:hover .icon-badge {
    transform: scale(1.08) rotate(10deg);
}

.erfolgszahl-karte.gold {
    border-left-color: #FFD700;
}

.erfolgszahl-karte.gold:hover {
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.15);
}

.erfolgszahl-karte.gold:hover .icon-badge {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}

.erfolgszahl-karte.silver {
    border-left-color: #C0C0C0;
}

.erfolgszahl-karte.silver:hover {
    box-shadow: 0 8px 25px rgba(192, 192, 192, 0.12);
    border-color: rgba(192, 192, 192, 0.15);
}

.erfolgszahl-karte.silver:hover .icon-badge {
    color: #E0E0E0;
    background: rgba(192, 192, 192, 0.1);
}

.erfolgszahl-karte.bronze {
    border-left-color: #CD7F32;
}

.erfolgszahl-karte.bronze:hover {
    box-shadow: 0 8px 25px rgba(205, 127, 50, 0.12);
    border-color: rgba(205, 127, 50, 0.15);
}

.erfolgszahl-karte.bronze:hover .icon-badge {
    color: #F39C12;
    background: rgba(205, 127, 50, 0.1);
}



/* Stat info values styles */
.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info h3 {
    font-size: 2.2em;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.stat-info p {
    font-size: 0.85em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 4px;
    margin-bottom: 0;
    letter-spacing: 0.5px;
}

/* Apply gradients to numbers */
.erfolgszahl-karte.gold h3 {
    background: linear-gradient(135deg, #FFE066 0%, #F5B041 50%, #B7950B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.erfolgszahl-karte.silver h3 {
    background: linear-gradient(135deg, #FFFFFF 0%, #BDC3C7 50%, #7F8C8D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.erfolgszahl-karte.bronze h3 {
    background: linear-gradient(135deg, #F5CBA7 0%, #CD7F32 50%, #873600 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}



/* ################### ENDLESS GALLERY TICKER ################### */
#galerie {
    padding-left: 0;
    padding-right: 0;
}

.gallery-ticker-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    z-index: 10;
}

/* Gradient fade overlays for a premium ticker border blend */
.gallery-ticker-wrap::before,
.gallery-ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.gallery-ticker-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--light-bg), transparent);
}

.gallery-ticker-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--light-bg), transparent);
}

#erfolge .gallery-ticker-wrap::before {
    background: linear-gradient(to right, #0d1017, transparent);
}

#erfolge .gallery-ticker-wrap::after {
    background: linear-gradient(to left, #161a25, transparent);
}

.gallery-ticker {
    display: flex;
    width: max-content;
    gap: 12px;
    animation: tickerScroll 35s linear infinite;
}

.gallery-ticker-item {
    flex-shrink: 0;
    height: 180px;
    /* Slender horizontal band */
    aspect-ratio: 3/2;
    border-radius: 8px;
    overflow: hidden;
    cursor: default;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.gallery-ticker-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ticker overlay container and button */
.ticker-overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.gallery-ticker-wrap:hover .ticker-overlay-container {
    opacity: 1;
    pointer-events: auto;
}

.ticker-overlay-btn {
    background: var(--primary-color);
    color: white !important;
    padding: 12px 28px;
    width: 70%;
    max-width: 600px;
    text-align: center;
    box-sizing: border-box;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.4);
    transform: translateY(10px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s, box-shadow 0.3s;
}

.ticker-overlay-btn:hover {
    background-color: #c90510;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.6);
}

.gallery-ticker-wrap:hover .ticker-overlay-btn {
    transform: translateY(0);
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* seamless wrap */
}

/* ################### GALLERY PAGE STYLING ################### */
.gallery-page-body {
    background-color: var(--light-bg);
    padding-top: 100px;
}

.gallery-header {
    width: 100%;
}

.gallery-header .top-info {
    justify-content: space-between;
    gap: 20px;
    border-bottom-right-radius: 10px;
}

.back-home-btn {
    color: #fff;
    font-weight: 700;
    font-size: 0.95em;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.back-home-btn:hover {
    background: var(--primary-color);
    color: white !important;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
}

.gallery-main {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.gallery-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
    z-index: 2;
    position: relative;
}

.gallery-grid-item {
    position: relative;
    aspect-ratio: 3/2;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #eee;
}

.gallery-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-grid-item .item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 169, 157, 0.85);
    /* Slightly darker/more opaque for text readability */
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: white;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.overlay-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.overlay-info i {
    font-size: 1.1em;
}

.overlay-title {
    font-size: 0.45em;
    /* Approximately 14px-16px */
    font-weight: 700;
    letter-spacing: 0.5px;
    word-break: break-word;
    text-transform: capitalize;
    line-height: 1.3;
}

.gallery-grid-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.gallery-grid-item:hover img {
    transform: scale(1.08);
}

.gallery-grid-item:hover .item-overlay {
    opacity: 1;
}

/* ################### KONTAKT & SPENDE - NEUES LAYOUT ################### */

.kontakt-spende-grid {
    display: grid;
    /* 2 Spalten für Desktop, fallen auf Mobilgeräten untereinander */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    /* Zentriert H3 und P */
}

.info-block {
    padding: 40px;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border-top: 5px solid transparent;
    /* Platzhalter für den Akzent */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Verteilt den Inhalt */
}

.info-block:hover {
    transform: translateY(-5px);
}

.info-block h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    margin-top: 0;
    color: var(--dark-text);
}

.info-block .icon {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.info-block p {
    margin-bottom: 25px;
}

.info-block small {
    display: block;
    margin-top: 15px;
    color: #999;
}

/* 1. Block: Kontakt/Showact - Akzent in Türkis (Secondary) */
.contact-block {
    border-color: var(--secondary-color);
}

.contact-block .icon {
    color: var(--secondary-color);
}

.cta-link {
    display: inline-block;
    padding: 10px 15px;
    background-color: var(--secondary-color);
    color: white !important;
    /* Wichtig, um die globale Link-Farbe zu überschreiben */
    text-decoration: none !important;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.cta-link:hover {
    background-color: #00877a;
    /* Dunkleres Türkis */
    text-decoration: none !important;
}

/* 2. Block: Spende - Akzent in Rot (Primary) */
.donation-block {
    border-color: var(--primary-color);
}

.donation-block .icon {
    color: var(--primary-color);
}

.bank-details-info {
    padding: 15px;
    background-color: var(--light-bg);
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    margin: 15px 0;
}

.bank-details-info strong {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-text);
}

.bank-details-info .iban {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}


/* ################### FOOTER ################### */
footer {
    background-color: var(--dark-text);
    color: white;
    padding: 20px 5%;
    text-align: center;
    font-size: 0.8em;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}


/* ################### TEAM SEKTION ################### */
#team {
    background-color: #fff;
    padding: 60px 5%;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    max-width: 960px;
    margin: 40px auto 0 auto;
}

.team-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.team-image-container {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    transition: border-color 0.3s ease;
    background-color: #f0f0f0;
}

.team-card:hover .team-image-container {
    border-color: var(--primary-color);
}

.team-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image-container img {
    transform: scale(1.05);
}

.team-card h4 {
    display: none;
}

/* ################### LIGHTBOX (MODAL) ################### */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    user-select: none;
}

.lightbox-close:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.lightbox-caption {
    margin-top: 20px;
    color: #fff;
    font-size: 1.4em;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}


/* ################### RESPONSIVE ANPASSUNGEN ################### */

@media (max-width: 768px) {

    .hero {
        flex-direction: column;
        min-height: 80vh;
        justify-content: flex-end;
        padding-bottom: 50px;
    }

    /* Overlay auch für Mobilgeräte beibehalten */
    .hero-image::after {
        background-color: rgba(0, 0, 0, 0.5);
    }

    .hero-image {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        opacity: 0.6;
    }

    .hero-content {
        max-width: 100%;
        margin: 0;
        padding: 0 5%;
        text-align: center;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content h2 {
        font-size: 1.2em;
    }

    .top-info {
        position: fixed;
    }

    /* NEU: Social Icons auf Mobilgeräten */
    .social-icons {
        position: fixed;
        top: 0;
        right: 0;
        padding: 15px 10px;
        height: 60px;
    }

    .social-icons a {
        font-size: 1.5em;
        margin-left: 10px;
    }


    .fact-box {
        flex-basis: 100%;
    }

    /* Erfolge Responsive Anpassung */
    .erfolgs-tabs {
        gap: 8px;
        margin-bottom: 25px;
    }

    .tab-btn {
        padding: 8px 16px;
        font-size: 0.8em;
    }

    .erfolg-gruppe {
        padding: 15px;
    }

    .erfolgszahlen-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .erfolgszahl-karte {
        padding: 12px 15px;
        gap: 14px;
    }

    .stat-info h3 {
        font-size: 1.8em;
    }

    .stat-info p {
        font-size: 0.78em;
    }

    .icon-badge {
        width: 36px;
        height: 36px;
        font-size: 1.1em;
    }

    /* Kontakt Responsive Anpassung */
    .info-block {
        padding: 30px;
    }

    /* NEU: sections auf mobilen Geräten eventuell etwas kürzer, falls der Inhalt nicht passt */
    .section {
        min-height: 80vh;
        padding-top: 80px;
        /* Platz für das fixierte Top-Info-Menü */
    }

    .section-headline {
        margin-bottom: 35px;
    }

    .section-headline h3 {
        font-size: 1.8em;
        padding-bottom: 10px;
    }

    .section-kicker {
        font-size: 0.65em;
        letter-spacing: 3px;
        margin-bottom: 6px;
    }

    /* Team Sektion Mobile */
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-top: 20px;
        max-width: 450px;
    }

    .team-card {
        padding: 0;
        border-radius: 8px;
    }

    .team-image-container {
        width: 100%;
        height: auto;
        aspect-ratio: 3/4;
        border-width: 0;
        margin-bottom: 0;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }

    .lightbox-caption {
        font-size: 1.1em;
        margin-top: 15px;
    }

    /* Ticker & Grid Gallery Mobile adjustments */
    .gallery-ticker-item {
        height: 100px;
    }

    .gallery-ticker-wrap::before,
    .gallery-ticker-wrap::after {
        width: 40px;
    }

    .gallery-full-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }

    /* Lightbox Pfeile auf Mobile anpassen */
    .lightbox-arrow {
        font-size: 1.8rem;
        padding: 10px 14px;
    }

    .lightbox-arrow.prev {
        left: 10px;
    }

    .lightbox-arrow.next {
        right: 10px;
    }
}

/* ################### LIGHTBOX ARROW BUTTONS ################### */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: white;
    font-size: 2.5rem;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 2010;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-arrow:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.05);
}

.lightbox-arrow.prev {
    left: 20px;
}

.lightbox-arrow.next {
    right: 20px;
}

/* ################### LIGHTBOX DETAILS & OVERLAYS ################### */
.lightbox-content-wrapper {
    position: relative;
    width: 85vw;
    max-width: 900px;
    height: 75vh;
    max-height: 600px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.lightbox-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    border-radius: 8px;
    z-index: 5;
    padding: 30px;
    box-sizing: border-box;
}

.lightbox-info-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-info-content {
    color: white;
    text-align: center;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.lightbox-info-content::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.lightbox-info-content h4 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
}

.lightbox-info-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.lightbox-info-content li {
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
    padding-left: 0;
}

.lightbox-info-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.4);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 10;
}

.lightbox-info-btn:hover {
    background: #c90510;
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.6);
}

@media (max-width: 768px) {
    .lightbox-content-wrapper {
        width: 90vw;
        height: 50vh;
    }

    .lightbox-info-overlay {
        padding: 15px;
    }

    .lightbox-info-content h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .lightbox-info-content li {
        font-size: 0.8rem;
        padding-left: 0;
    }

    .lightbox-info-btn {
        bottom: 10px;
        padding: 6px 16px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 280px;
    }
}

/* ################### IMPRESSUM STYLING ################### */
.impressum-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.impressum-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--primary-color);
    text-align: left;
}

.impressum-section {
    margin-bottom: 35px;
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
}

.impressum-section:last-of-type {
    border-bottom: none;
    margin-bottom: 15px;
}

.impressum-section h4 {
    font-size: 1.2em;
    color: var(--dark-text);
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.impressum-section h5 {
    font-size: 1.05em;
    color: var(--dark-text);
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.impressum-section p {
    font-size: 1em;
    color: #555;
    margin: 0;
    line-height: 1.8;
}

.impressum-section .org-name {
    font-size: 1.2em;
    color: var(--dark-text);
}

.impressum-section a {
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.3s;
}

.impressum-section a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.icon-accent {
    color: var(--secondary-color);
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.impressum-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9em;
    color: #777;
}

.impressum-footer a {
    color: var(--secondary-color);
    font-weight: 700;
}

@media (max-width: 768px) {
    .impressum-card {
        padding: 30px 20px;
    }
    
    .impressum-section h4 {
        font-size: 1.1em;
    }
    
    .mobile-break {
        display: none;
    }
}