* {
    box-sizing: border-box;
}

:root {
  --rot: #F20D0D;
  --blau: #004D9E;
  --gruen: #04C711;
  --text: #333;
}


body {
    margin: 0;
    padding: 0;
    background: #01549a;
    font-family: 'Arial', sans-serif;
    color: white;
    overflow-x: hidden;
    font-size: 1.125rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; 
    background: rgba(1, 84, 154, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 0.5rem 2rem;
    background: rgba(0, 0, 0, 0.5);    
}

.header a {
    display: block;
    text-align: center;
}

.logo {
    max-width: 90%;
    max-height: 150px;
    width: 400px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    /* animation: bounceInUp 1.8s ease-out 0.3s both;
    transition: max-width 0.3s ease, max-height 0.3s ease; */
}

.header.scrolled .logo {
    max-height: 80px;
}

a, a:visited {
    color: #ff7d7d;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/**** TEXT ****/
h1 {
    font-size: clamp(32px,5vw, 40px);
    line-height: 1.1;
}

h2 {
    font-size: clamp(28px,4vw, 32px);
    margin: 0 0 2rem;
}

h3 {
    font-size: clamp(24px,3vw, 28px);
    margin: 0.5rem 0;
}

p {
    margin: 0.5rem 0;
}


/**** CONTENT ****/
.main-content {
    padding-top: 200px;
    padding-bottom: 2rem;
}

section {
    max-width: 1000px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    text-align: center;
}

/**** Events *****/
.events-list {
    list-style: none;
    margin: 4rem auto;
    padding: 0;
    max-width: 640px;

}

.event-item {
    background: #fff;
    padding: 1rem 2rem;
    margin: 0 0 4rem;
    text-align: left;
    color: var(--text);
    position: relative;
}

.event-item::before {
    content: '';
    position: absolute;
    top: -1.5rem;
    left: 0;
    right: 0;
    bottom: -1.5rem;
    background: #fff;
    transform: skew(0,-3deg);
    z-index: -1;
}


.event-title {
    background: var(--gruen);
    color: white;
    border-radius: 2rem;
    padding: 0.25rem 1rem;
    margin: 0 -1rem;
}

.event-item:nth-child(3n+1) .event-title {background: var(--gruen);}
.event-item:nth-child(3n+2) .event-title {background: var(--rot);  }
.event-item:nth-child(3n+3) .event-title {background: var(--blau); }



.event-item img {
    max-width: 100%;
}


/**** Partner *****/
.partner-section {
    margin: 4rem auto 0;
    padding: 0 2rem;
    text-align: center;
}

.partner-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: -1vw;
    margin-right: -1vw;
}

.partner-link,
.partner-logo {
    width: clamp(120px, 30%, 240px);
    aspect-ratio: 3/2;
    margin: 1vw;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    background: #fff;
}

.partner-link:hover {
    transform: scale(1.05);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.partner-link img,
.partner-logo img {
    max-width: 92%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.partner-logo span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.9);
    margin-top: 0.25rem;
    text-align: center;
    max-width: 90%;
}

.slider::before,
.slider::after {
    content: '';
    flex: 0 0 2rem;
}

.fadeIn {
    animation: fadeInUp 2s ease-out 1s both;
}

@keyframes bounceInUp {
    0% { opacity: 0; transform: translateY(50px) scale(0.8); }
    50% { opacity: 0.7; transform: translateY(-10px) scale(1.05); }
    70% { transform: translateY(5px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}





@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }
    
    .header.scrolled {
        padding: 0.5rem;
    }
   
}
