html,
body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 100;
}

/* Animierter Gradient Hintergrund */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 209, 220, 0.8) 50%,
        rgba(243, 230, 249, 0.9) 100%
    );
    animation: gradientBG 15s ease infinite;
    background-size: 200% 200%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded::before {
    opacity: 1;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Mobile Anpassung */
@media (max-width: 480px) {
    html, 
    body {
        background: #e1dfdd; /* Solide Farbe für Mobile */
    }
    
    /* Deaktiviere animierten Hintergrund auf Mobile */
    body::before {
        display: none;
    }
}

/* gerneral */
section  {
    width: 100%;
    height: 100vh;
    padding: 60px 20px;
    box-sizing: border-box;
}

.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    padding: 0 20px;
  }

.show {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
} 

/* header */
.header__content {
    width: 100%;
    height: auto;
}

.header_social {
    text-transform: uppercase;
    vertical-align: middle;
    display: inline-block;
    padding: 30px 0 0 30px;
}

.header_general {
    text-decoration: none;
    text-transform: uppercase;
    color: #000;
    font-size: 16px;
    padding-left: 2px;
    width: 40px;
    height: auto;
}

.header_general:hover,
.header_general:focus {
    color: #A66FFE;
    outline: none;
}

.header_copyRight {
    font-size: 16px;
    padding: 0 0 0 30px;
}

/* Landing (mission) */
.mission___box {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.mission_headline {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.mission_text {
    font-size: clamp(2rem, 5vw, 4.5rem); /* Dynamische Schriftgröße */
    font-weight: 300;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.5s;
    text-align: center;
    padding: 0 20px;
    line-height: 1.2;
}

.icons {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background-size: contain;
}

/* Icon Bilder und Positionen */
.filmkeeper { 
    top: 12%; 
    left: 45%; 
    background-image: url('filmkeeper-icon.png');
    animation-delay: 0s, 0s;
}

.qr-code { 
    top: 25%; 
    left: 72%; 
    background-image: url('qrCod3s.png');
    animation-delay: 0.2s, -2s;
}

.spendCompass { 
    top: 35%; 
    left: 23%; 
    background-image: url('spendCommpassIconDark.png');
    animation-delay: 0.4s, -4s;
}

.departure { 
    top: 40%; 
    left: 55%; 
    background-image: url('STD.png');
    animation-delay: 0.6s, -6s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    20% {
        transform: translate(15px, 15px) rotate(2deg);
    }
    40% {
        transform: translate(-15px, 25px) rotate(-1deg);
    }
    60% {
        transform: translate(-25px, -15px) rotate(1deg);
    }
    80% {
        transform: translate(15px, -25px) rotate(-2deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

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

/* Fade-in Animation für Icons */
.icons {
    opacity: 0;
    animation-name: fadeIn, float;
    animation-duration: 0.8s, 20s;
    animation-timing-function: ease-out, ease-in-out;
    animation-fill-mode: forwards, none;
    animation-iteration-count: 1, infinite;
}

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

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .icons {
        width: 60px;
        height: 60px;
    }
    
    .mission_headline {
        width: 100%;
        top: 25%;
    }
    
    .mission_text {
        max-width: 90%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .mission_headline {
        top: 20%;
    }
    
    .mission_text {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        padding: 0 15px;
    }

    .icons {
        width: 80px;
        height: 80px;
    }

    .filmkeeper {
        top: 5%;
        left: 30%;
    }

    .qr-code {
        top: 3%;
    }

    .departure {
        left: 70%;
    }

    .spendCompass {
        top: 45%;
    }

    .who_text {
        font-size: 24px;
    }
}

/* Who section */
.who__box {
    width: 100%;
    height: auto;
    text-align: -webkit-center;
}

.who_container {
    max-width: 900px;
    padding: 0 1rem;
}

.who_title {
    font-size: 18px;
    text-align: center;
    color: #000;
    opacity: 0.6;
    margin-bottom: 1rem;
}

.who_text {
    font-size: 36px;
    text-align: center;
    color: #000;
    line-height: 1.6;
}

/* Projects section */
.projects__box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 50px 20px;
}

.projects_container {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4.5px);
    -webkit-backdrop-filter: blur(4.5px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.projects_container:hover {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.47);
}

.project_icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    transition: filter 0.3s ease;
    transform: translateZ(30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project_icon:hover {
    filter: brightness(1.1);
}

.projects_title {
    font-size: 28px;
    font-weight: 200;
    margin: 20px 0 10px;
    transform: translateZ(40px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(0, 0, 0, 0.9);
}

.projects_text {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
    transform: translateZ(35px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project_link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background-color: #A66FFE;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(45px);
}

.project_link:hover,
.project_link:focus {
    background-color: #8a52d1;
    outline: none;
}

/* 3D-Effekt für innere Elemente */
.projects_container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 60%,
        transparent 100%
    );
    transition: opacity 0.4s;
    opacity: 0;
    pointer-events: none;
}

.projects_container:hover::after {
    opacity: 1;
}

.projects_container.show,
.projects_container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating animation für Icons */
.floating-icon {
    animation: floatIcon 3s ease-in-out infinite;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Fügen Sie diese zusätzlichen Styles hinzu */
.card-glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0) 60%
    );
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Anpassung für innere Elemente */
.project_icon,
.projects_title,
.projects_text,
.project_link {
    position: relative;
    z-index: 2;
    transform: translateZ(50px);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Für bessere Performance auf mobilen Geräten */
@media (max-width: 768px) {
    .projects__box {
        gap: 20px;
        padding: 30px 15px;
    }
    
    .mission_text {
        font-size: 3rem;
        padding: 0 20px;
    }
    
    .projects_container {
        padding: 20px;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
}

/* Weichere Übergänge für alle Hover-Effekte */
.projects_container, .header_general, .project_link {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: rgba(166, 111, 254, 0.3);
    border-radius: 50%;
    pointer-events: none;
    animation: cursorFade 1s ease forwards;
}

@keyframes cursorFade {
    from { transform: scale(1); opacity: 0.3; }
    to { transform: scale(0); opacity: 0; }
}

.project_category {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #A66FFE;
    margin-bottom: 1rem;
}

/* Sichtbarkeitsklasse für Icons */
.icons.show {
    transform: translateY(0);
    opacity: 1;
}