/* ============================================
   BASE
   ============================================ */
body {
    font-family: 'Inter', sans-serif;
    background-color: #131313;
    color: #f1f1f1;
}

h1, h2, h3, h4, h5 {
    font-family: 'Lexend', sans-serif;
}

h1 {
    color: #f8bd26;
    text-transform: uppercase;
    font-size: 1.8rem;
    font-weight: 600;
}

h4 {
    color: #f8bd26;
    text-transform: uppercase;
    font-weight: 600;
}

a {
    color: #f8bd26;
    text-decoration: none;
}

a:hover {
    color: #e6a921;
}

.text {
    line-height: 1.7;
    color: #ccc;
}

/* ============================================
   NAVBAR
   ============================================ */
#mainNav {
    background-color: transparent;
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
    padding: 0.6rem 0;
}

#mainNav.scrolled {
    background-color: #f8bd26;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* Logo text */
.navbar-logo-text {
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    margin-left: 1.5rem;
    transition: color 0.35s ease;
}

#mainNav.scrolled .navbar-logo-text {
    color: #131313;
}

/* Toggler — white on hero, dark when scrolled */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.6);
    margin-right: 1rem;
    transition: border-color 0.35s ease;
}

#mainNav.scrolled .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: background-image 0.2s;
}

#mainNav.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,0,0,0.6%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Fullscreen overlay nav menu */
.navbar-collapse {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

.navbar-collapse .navbar-nav .nav-link {
    color: #f1f1f1;
    font-weight: 700;
    font-size: 1.6rem;
    padding: 0.6rem 0;
    transition: color 0.2s;
}

.navbar-collapse .navbar-nav .nav-link:hover {
    color: #f8bd26;
}

.navbar-nav {
    flex-direction: column;
    width: 100%;
    text-align: center;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-yellow {
    background-color: #f8bd26;
    border-color: #f8bd26;
    color: #000 !important;
    font-weight: 700;
    border-radius: 4px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-yellow:hover {
    background-color: #e6a921;
    border-color: #e6a921;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 189, 38, 0.35);
    color: #000 !important;
}

.btn-yellow:active {
    transform: translateY(0);
    background-color: #cc951c;
    border-color: #cc951c;
}

.btn-hero {
    font-size: 1.05rem;
    padding: 0.75rem 2.5rem;
    letter-spacing: 0.5px;
}

.btn-register {
    font-size: 1rem;
    padding: 0.8rem 2rem;
    letter-spacing: 0.5px;
}

/* ============================================
   HERO
   ============================================ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.72) 60%,
        rgba(19, 19, 19, 0.95) 100%
    );
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-cup {
    width: 65%;
    max-width: 280px;
    filter: drop-shadow(0 8px 40px rgba(248, 189, 38, 0.25));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.hero-label {
    font-family: 'Lexend', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #f8bd26;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 480px;
}

/* Scroll arrow */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    animation: scrollBounce 2.5s ease-in-out infinite;
}

.hero-scroll-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg) translateY(-2px);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
    50%       { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ============================================
   SECTION STRUCTURE
   ============================================ */
.section-alt {
    background-color: #1a1a1a;
    width: 100%;
}

.section-sponsors {
    width: 100%;
}

.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(248, 189, 38, 0.18), transparent);
}

/* ============================================
   TITLE STYLE
   ============================================ */
.title-underscore {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 1.5rem;
}

.title-underscore:after {
    content: '';
    position: absolute;
    left: 15%;
    right: 15%;
    bottom: 0;
    height: 2px;
    background: #f8bd26;
}

/* ============================================
   REGISTRATION
   ============================================ */
.section-register {
    background: linear-gradient(160deg, #151510 0%, #1a1a0e 100%);
    border-top: 3px solid #f8bd26;
    width: 100%;
}

.register-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #131313;
    background: #f8bd26;
    border-radius: 20px;
    padding: 0.25rem 0.9rem;
    margin-bottom: 1rem;
}

.register-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(248, 189, 38, 0.2);
    border-radius: 10px;
    padding: 2rem 2rem 1.5rem;
}

.form-control {
    background-color: #242424;
    border: 1px solid #3a3a3a;
    color: #f1f1f1;
    border-radius: 6px;
    padding: 0.65rem 0.9rem;
}

.form-control::placeholder {
    color: #555;
}

.form-control:focus {
    border-color: #f8bd26;
    background-color: #242424;
    box-shadow: 0 0 0 3px rgba(248, 189, 38, 0.15);
    color: #f1f1f1;
}

.form-label {
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline-wrapper {
    position: relative;
    padding: 0 1rem;
}

.timeline-line {
    position: absolute;
    top: 12px;
    left: calc(1rem + 10%);
    right: calc(1rem + 10%);
    height: 2px;
    background: linear-gradient(to right, #f8bd26 78%, #2a2a2a 78%);
    z-index: 0;
}

.timeline-row {
    position: relative;
    z-index: 1;
}

.timeline-item {
    text-align: center;
    padding: 0 0.5rem;
    min-width: 0;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f8bd26;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 5px rgba(248, 189, 38, 0.12);
    transition: box-shadow 0.3s;
}

.timeline-dot:not(.future):hover {
    box-shadow: 0 0 0 10px rgba(248, 189, 38, 0.18);
}

.timeline-dot.future {
    background: #131313;
    border: 2px solid #333;
    box-shadow: none;
}

.timeline-year {
    font-family: 'Lexend', sans-serif;
    color: #f8bd26;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.timeline-teams {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: #f1f1f1;
    font-family: 'Lexend', sans-serif;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.timeline-teams.future-q {
    color: #3a3a3a;
}

.timeline-label {
    font-size: 0.7rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Stat block */
.stat-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(248, 189, 38, 0.05);
    border: 1px solid rgba(248, 189, 38, 0.18);
    border-radius: 10px;
    padding: 1.5rem 3rem;
}

.stat-number {
    font-family: 'Lexend', sans-serif;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    color: #f8bd26;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.4rem;
    text-align: center;
}

/* ============================================
   AM TURNIERTAG – EVENT INFO BAR
   ============================================ */
.event-info-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    background: rgba(248, 189, 38, 0.05);
    border: 1px solid rgba(248, 189, 38, 0.15);
    border-radius: 10px;
    overflow: hidden;
}

.event-info-item {
    flex: 1;
    min-width: 130px;
    text-align: center;
    padding: 1.25rem 1rem;
}

.event-info-value {
    font-family: 'Lexend', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8bd26;
    line-height: 1.2;
}

.event-info-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

.event-info-sep {
    width: 1px;
    height: 40px;
    background: rgba(248, 189, 38, 0.15);
    flex-shrink: 0;
}

/* ============================================
   PROGRAM CARDS
   ============================================ */
.program-card {
    background: #1e1e1e;
    border: 1px solid #282828;
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.program-card:hover {
    border-color: rgba(248, 189, 38, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   ACTIVITY IMAGE
   ============================================ */
.activity-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    display: block;
}

/* ============================================
   SUPPORTERS
   ============================================ */
.supporter-img {
    height: 90px;
    width: auto;
    max-width: 60%;
    object-fit: contain;
    object-position: center;
    filter: brightness(0.85);
    transition: filter 0.2s ease;
}

.supporter-img:hover {
    filter: brightness(1.1);
}

/* ============================================
   GALLERY
   ============================================ */
#gallery .gallery-row {
    display: flex;
    flex-wrap: wrap;
}

#gallery .gallery-row > div {
    display: flex;
    flex: 1 1 auto;
    height: auto;
}

#gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.lightbox:target {
    display: flex;
}

.lightbox img {
    max-height: 88vh;
    max-width: 92vw;
    object-fit: contain;
    border-radius: 4px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #0d0d0d;
    border-top: 1px solid #1e1e1e;
    color: #888;
}

footer p, footer a {
    color: #888 !important;
    font-size: 0.85rem;
}

footer a:hover {
    color: #f8bd26 !important;
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 768px) {
    #hero {
        background-attachment: scroll; /* fixed doesn't work well on iOS */
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-text {
        font-size: 0.95rem;
        margin: 0 auto;
    }

    .hero-cup {
        width: 45%;
        max-width: 180px;
        margin-bottom: 1rem;
    }

    .hero-content {
        padding-top: 90px;
        padding-bottom: 60px;
    }

    .timeline-line {
        display: none;
    }

    .timeline-item {
        padding: 0 0.2rem;
    }

    .timeline-year {
        font-size: 0.65rem;
    }

    .event-info-sep {
        display: none;
    }

    .event-info-item {
        flex: 1 1 100%;
        border-bottom: 1px solid rgba(248, 189, 38, 0.08);
        padding: 0.9rem 1rem;
    }

    .event-info-item:last-child {
        border-bottom: none;
    }

    .stat-highlight {
        padding: 1.2rem 1.5rem;
    }

    .register-card {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 2.2rem;
    }

    h1 {
        font-size: 1.5rem;
    }
}
