:root {
    --primary-color: #4CAF50;        
    --secondary-color: #007a43;      
    --accent-color: #66BB6A;         
    --white: #ffffff;
    --light-green: #E8F5E8;          
    --dark-text: #1B5E20;           
    --light-text: #558B5A;         
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.navbar {
    background: rgba(31, 133, 31, 0.75) !important;
    backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-nav {
     margin: 0 auto !important;
}

.navbar-brand {
    font-weight: 700;
    color: white !important;
    font-size: 1.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 15vh;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 2s ease-in-out;
    transform: scale(1.05);
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    from {
        transform: scale(1.05);
    }
    to {
        transform: scale(1.1);
    }
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(46, 139, 87, 0.4) 0%, rgba(27, 94, 32, 0.5) 100%);
    backdrop-filter: blur(1px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    transform: translateY(-60px);
}

.club-logo {
    width: 240px;
    height: 240px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    opacity: 0;
    transform: scale(0.8);
    animation: logoAppear 1s ease forwards 0.3s;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 8px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.club-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4), 0 0 0 8px rgba(255, 255, 255, 0.2);
}

.club-logo picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.club-logo img {
    width: 140%;
    height: 140%;
    object-fit: contain;
    padding: 0px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.5s;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.4), 0 0 20px rgba(76, 175, 80, 0.3);
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.7s;
    text-transform: uppercase;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.5);
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 0;
    display: inline-block;
}

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--primary-color);
    letter-spacing: 0.02em;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 100px;
    height: 1px;
    background: rgba(76, 175, 80, 0.3);
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    width: 60px;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    transform: translateX(-50%);
    border-radius: 3px;
}

.teams {
    padding: 0;
    background: var(--light-green);
}

.team-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 0;
}

.team-card {
    padding: 50px 40px;
    text-align: center;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.team-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.bg-slide.active {
    opacity: 1;
}

.team-card.herr .team-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(200, 230, 201, 0.30) 0%, rgba(165, 214, 167, 0.35) 100%);
    z-index: 1;
}

.team-card.dam .team-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(232, 245, 232, 0.30) 0%, rgba(200, 230, 201, 0.35) 100%);
    z-index: 1;
}

.team-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card.herr {
    border-right: 2px solid var(--primary-color);
}

.team-card.dam {
    border-left: 2px solid var(--primary-color);
}

.team-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.team-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9), 0 0 10px rgba(255, 255, 255, 0.5);
    position: relative;
    padding-bottom: 15px;
}

.team-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.team-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.team-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.team-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.team-link:hover::before {
    left: 100%;
}

.team-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 25px rgba(76, 175, 80, 0.4);
}

.team-icon {
    width: 20px;
    height: 20px;
    font-size: 1.3rem;
}

.sponsors {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    position: relative;
}

.sponsors::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.sponsors .section-title {
    color: white;
}

.sponsors .section-title::after {
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 3rem;
}

.sponsor-card {
    background: white;
    padding: 30px 25px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.sponsor-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.sponsor-card:hover::before {
    opacity: 1;
}

.sponsor-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    border-color: var(--accent-color);
}

.sponsor-logo-container {
    height: 110px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-logo {
    max-width: 100%;
    max-height: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.sponsor-logo-invert {
    filter: brightness(0) saturate(100%);
}

.sponsor-card:hover .sponsor-logo {
    transform: scale(1.05);
}

.sponsor-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: auto;
    transition: color 0.3s;
    line-height: 1.3;
}

.sponsor-card:hover .sponsor-name {
    color: var(--secondary-color);
}

.contact {
    background: linear-gradient(135deg, var(--light-green) 0%, #f0f8f0 100%);
}

.contact-info {
    background: white;
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    margin-bottom: 30px;
    border: 2px solid rgba(76, 175, 80, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.18);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.3s;
}

.contact-item:hover {
    background: var(--light-green);
}

.contact-icon {
    color: var(--primary-color);
    margin-right: 15px;
    min-width: 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon svg {
    transform: scale(1.1);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoAppear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    opacity: 0 !important;
    transform: translateY(40px) !important;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.fade-in.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.scroll-arrow {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    opacity: 1;
    animation: bounceArrow 2s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.scroll-arrow:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateX(-50%) translateY(-8px) scale(1.1);
    box-shadow: 0 12px 30px rgba(76, 175, 80, 0.5);
}

.scroll-arrow::before {
    content: '';
    width: 12px;
    height: 12px;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(45deg);
    margin-top: -3px;
}

.scroll-arrow.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}

@keyframes bounceArrow {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes panLeftRight {
    0% {
        background-position: left 35%;
        transform: scale(1);
    }
    25% {
        background-position: center 35%;
        transform: scale(1.05);
    }
    50% {
        background-position: right 35%;
        transform: scale(1);
    }
    75% {
        background-position: center 35%;
        transform: scale(1.05);
    }
    100% {
        background-position: left 35%;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    body {
        -webkit-overflow-scrolling: touch;
    }

    .navbar {
        display: none;
    }

    .hero {
        min-height: 100vh;
        align-items: center;
        padding-top: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
        text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.5), 0 0 15px rgba(76, 175, 80, 0.3);
    }

    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.12em;
        padding: 8px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    section {
        padding: 60px 0;
    }

    .contact-info {
        padding: 25px;
    }

    .sponsor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .sponsor-card::before,
    .sponsor-card::after {
        display: none !important;
    }

    .sponsor-card {
        background: #ffffff !important;
        padding: 20px 15px;
        height: 170px;
        -webkit-tap-highlight-color: rgba(76, 175, 80, 0.3);
    }

    .sponsor-card:hover,
    .sponsor-card:focus,
    .sponsor-card:active {
        background: #ffffff !important;
    }

    .sponsor-logo-container {
        height: 90px;
    }

    .sponsor-logo {
        max-height: 90px;
    }

    .sponsor-name {
        font-size: 1rem;
        line-height: 1.2;
    }

    .hero-content {
        margin-top: -230px;
    }

    .hero-background {
        background-size: auto 100%;
        background-position: center 35%;
        animation: panLeftRight 35s ease-in-out infinite;
    }

    .club-logo {
        width: 200px;
        height: 200px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 0 6px rgba(255, 255, 255, 0.1);
    }

    .team-split {
        grid-template-columns: 1fr;
        gap: 2px;
        background: var(--primary-color);
    }

    .team-card.herr {
        border-right: none;
    }

    .team-card.dam {
        border-left: none;
    }

    .team-card {
        min-height: 500px;
        padding: 40px 30px;
    }

    .team-title {
        font-size: 2rem;
    }

    .team-link {
        padding: 14px 24px;
        font-size: 0.95rem;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
    }

    .scroll-arrow {
        width: 48px;
        height: 48px;
        bottom: 80px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 50px 0;
    }


    .hero {
        min-height: 100vh;
        padding-top: 0;
    }

    .hero h1 {
        font-size: 2rem;
        text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.5), 0 0 12px rgba(76, 175, 80, 0.3);
    }

    .club-logo {
        width: 160px;
        height: 160px;
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3), 0 0 0 5px rgba(255, 255, 255, 0.1);
    }

    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }

    .sponsor-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sponsor-card::before,
    .sponsor-card::after {
        display: none !important;
    }

    .sponsor-card {
        background: #ffffff !important;
        padding: 18px 12px;
        height: 150px;
        -webkit-tap-highlight-color: rgba(76, 175, 80, 0.3);
    }

    .sponsor-card:hover,
    .sponsor-card:focus,
    .sponsor-card:active {
        background: #ffffff !important;
    }

    .sponsor-logo-container {
        height: 80px;
    }

    .sponsor-logo {
        max-height: 80px;
    }

    .sponsor-name {
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .hero-content {
        transform: translateY(-60px);
    }

    .hero-background {
        background-size: auto 100%;
        background-position: center 40%;
        animation: panLeftRight 35s ease-in-out infinite;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .team-title {
        font-size: 1.75rem;
    }

    .team-link {
        padding: 12px 20px;
        font-size: 0.9rem;
        gap: 8px;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
    }

    .contact-info {
        padding: 20px;
    }

    .contact-item {
        font-size: 0.95rem;
        margin-bottom: 20px;
        padding: 8px;
    }

    .contact-icon {
        font-size: 1.6rem;
    }
}