/* =========================================================================
   DAV Augsburg Boulderhalle Microsite - Stylesheet
   ========================================================================= */

:root {
    /* DAV Colors */
    --c-primary: #94c11f;
    /* DAV Green */
    --c-primary-hover: #7ea31a;
    --c-dark: #3b3b3a;
    /* DAV Dark Grey */
    --c-darker: #252525;
    --c-light: #f4f4f4;
    --c-white: #ffffff;
    --c-text: #4a4a4a;
    --c-border: #e2e2e2;

    /* Typography */
    --f-main: 'Fira Sans', sans-serif;

    /* Metrics & Spacing */
    --base-spacing: 1.5rem;
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--f-main);
    color: var(--c-text);
    background-color: var(--c-white);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--c-dark);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--c-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--c-primary-hover);
}

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

.container-center {
    text-align: center;
}

.section {
    padding: 6rem 0;
}

.section-dark {
    background-color: var(--c-darker);
    color: var(--c-white);
}

.section-dark h2,
.section-dark h3 {
    color: var(--c-white);
}

.section-grey {
    background-color: var(--c-light);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--c-primary);
}

.section-dark .section-title::after {
    left: 0;
    transform: none;
}

.section-lead {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    color: var(--c-text);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--c-primary);
    color: var(--c-white);
    box-shadow: 0 4px 15px rgba(148, 193, 31, 0.4);
}

.btn-primary:hover {
    background-color: var(--c-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(148, 193, 31, 0.6);
}

.btn-outline {
    background-color: transparent;
    color: var(--c-white);
    border-color: var(--c-white);
}

.btn-outline:hover {
    background-color: var(--c-white);
    color: var(--c-dark);
}

/* Navigation & Logo */
.top-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 2rem 0;
}

.nav-container {
    display: flex;
    justify-content: flex-start;
}

.dav-logo {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    /* contrast against background */
}

.dav-logo-footer {
    height: 120px;
    width: auto;
    margin-bottom: 2rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: scale(1.05);
    /* Parallax buffer */
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: crossfade 16s infinite;
}

.hero-slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    animation-delay: 8s;
}

@keyframes crossfade {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    10% {
        opacity: 1;
        transform: scale(1.02);
    }

    45% {
        opacity: 1;
        transform: scale(1.05);
    }

    55% {
        opacity: 0;
        transform: scale(1.06);
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

.hero-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 59, 58, 0.9) 0%, rgba(59, 59, 58, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--c-white);
    max-width: 900px;
    padding: 80px 2rem 140px 2rem;
    margin: auto;
}

.hero-mobile-logo {
    display: none;
}

.hero-content .badge {
    background: var(--c-primary);
    color: var(--c-white);
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    color: var(--c-white);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.hero-content .highlight {
    color: var(--c-primary);
}

.hero-content .subtitle {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-content .action-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--c-white);
    text-align: center;
    cursor: pointer;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    transition: var(--transition);
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator .mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--c-white);
    border-radius: 12px;
    margin: 10px auto 0;
    position: relative;
}

.scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: var(--c-white);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 18px;
        opacity: 0;
    }
}

/* Vision / Buzzwords */
.buzzword-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.buzz-card {
    background: var(--c-white);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: var(--transition);
    border-top: 4px solid var(--c-primary);
    position: relative;
    overflow: hidden;
}

.buzz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--c-light);
    z-index: 0;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.buzz-card:hover::before {
    transform: scaleY(1);
}

.buzz-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.buzz-card>* {
    position: relative;
    z-index: 1;
}

.buzz-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.buzz-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.buzz-card .link-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Facts (Split) */
.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.split-content {
    flex: 1;
}

.split-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.split-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.split-image:hover img {
    transform: scale(1.05);
}

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

.fact-list li {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

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

.fact-list li strong {
    color: var(--c-primary);
    font-size: 1.4rem;
}

/* Community & Images */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
}

.benefit-item h4 {
    font-size: 1.25rem;
    color: var(--c-primary);
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 3rem auto 0;
    overflow: hidden;
}

.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 500px;
    object-fit: cover;
    scroll-snap-align: center;
}

.carousel-btn {
    position: absolute;
    top: 250px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

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

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

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 1.5rem;
}

.dot {
    width: 14px;
    height: 14px;
    background-color: var(--c-border);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--c-primary);
    transform: scale(1.3);
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 4rem auto;
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--c-border);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -3.6rem;
    width: 24px;
    height: 24px;
    background: var(--c-white);
    border: 4px solid var(--c-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--c-light);
    transition: var(--transition);
}

.timeline-item:hover::before {
    background: var(--c-primary);
    transform: scale(1.2);
}

.timeline-item .time {
    font-weight: 800;
    color: var(--c-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-item .desc {
    font-size: 1.5rem;
    color: var(--c-dark);
    font-weight: 600;
}

.timeline-highlight .time {
    font-size: 1.5rem;
}

.timeline-highlight .desc {
    font-size: 2rem;
}

.finance-box {
    background: var(--c-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--c-primary);
    margin-top: 4rem;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.finance-box h3 {
    margin-bottom: 1rem;
    color: var(--c-dark);
}

.finance-box-highlight {
    border: 3px solid var(--c-primary);
    background-color: rgba(148, 193, 31, 0.05);
}

/* Footer */
.footer {
    background: var(--c-dark);
    color: var(--c-white);
    text-align: center;
    padding: 3rem 0;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer .small {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(37, 37, 37, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--c-white);
    padding: 4rem;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(50px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
}

.modal-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.close {
    color: var(--c-dark);
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close:hover {
    color: var(--c-primary);
    transform: rotate(90deg);
}

/* Animations classes (Intersection Observer) */
.animate-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.animate-up.is-visible,
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.delay-4 {
    transition-delay: 0.8s;
}

/* Responsive Mobile Styles */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content .subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-content .action-group {
        flex-direction: column;
        gap: 1rem;
    }

    .dav-logo {
        height: 60px;
    }

    .top-nav {
        display: none;
    }

    .hero-mobile-logo {
        display: block;
        width: 220px;
        margin: 0 auto 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

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

    .split-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .carousel-slide {
        height: 300px;
    }

    .carousel-btn {
        top: 150px;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item::before {
        left: -2.1rem;
        width: 16px;
        height: 16px;
    }

    .finance-box {
        padding: 2rem;
    }

    .modal-content {
        padding: 3.5rem 1.5rem 1.5rem;
        max-height: 85vh;
    }

    .close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
}