/* Lokale Schriftart einbinden */
@font-face {
    font-family: 'Cinzel';
    src: url('fonts/Cinzel-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

body {
    background-color: black;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;    
    justify-content: center;
    color: white;
    overflow-x: hidden;
    padding: 0;
}

.logo-container {
    background-image: url('images/logocrystalpurBACK.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 800px; 
    height: 500px;
    margin: 0;
	display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 140px;
    box-sizing: border-box;
} 

h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    letter-spacing: 5px;
    margin: 0;
    text-align: center;
    font-weight: 200;
margin-top:350px;
}

.projects-nav {
    display: flex;
    justify-content: center;
    gap: 40px; 
    position: relative;
    z-index: 2;
}

.project-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
min-width:250px;
padding-top: 50px;
}

.link-title {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    letter-spacing: 3px;
    color: #a1a1aa;
    transition: color 0.4s ease, letter-spacing 0.4s ease;
}

.link-sub {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: #444444;
    margin-top: 4px;
    letter-spacing: 1px;
    transition: color 0.4s ease;
}

@media (max-width: 850px) {
    .logo-container {
        width: 100%;
        max-width: 500px;
        height: 500px;
        margin-bottom: -220px;
    }
    .projects-nav {
        flex-direction: column;
        gap: 20px;
        margin-top: 60px;
    }
}
.project-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 1;
}

.project-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
    opacity: 0.6;
    filter: none;    
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-link .link-title {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    letter-spacing: 3px;
    color: #e4e4e7;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-link .link-sub {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #a1a1aa;
    margin-top: 6px;
    letter-spacing: 1px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}


.project-link:hover {
    opacity: 1;
    transform: translateY(-4px);
    border-bottom-color: #ffffff;
}

.project-link:hover .link-title {
    color: #ffffff;
    letter-spacing: 5px;
}

.project-link:hover .link-sub {
    color: #ffffff;
    transform: translateY(2px);
}


.projects-nav:hover .project-link:not(:hover) {
    opacity: 0.3;
}

@keyframes fadeInSpace {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    animation: fadeInSpace 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.projects-nav {
    animation: fadeInSpace 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.project-link {
    position: relative;
    overflow: hidden; 
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -200%; 
    width: 120%; 
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.12) 50%, 
        transparent 100%
    );
    transform: skewX(-20deg);
    transition: none;
    pointer-events: none;
}

.project-link:hover::before {
    left: 200%; 
    transition: left 8.5s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-link:hover::after {
    transform: scaleX(1); 
}
@keyframes fadeInSpace {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Kristall blendet beim Laden ruhig ein */
.logo-container {
    animation: fadeInSpace 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Links folgen ganz entspannt kurz darauf */
.projects-nav {
    animation: fadeInSpace 3s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    opacity: 0;
}
.project-link .link-title {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), letter-spacing 0.6s ease;
}

.project-link .link-sub {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), color 0.6s ease;
}

.project-link .link-title {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), letter-spacing 0.6s ease;
}

.project-link .link-sub {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), color 0.6s ease;
}
/* ----------------------------------- */
/* PRISMATISCHE ÜBERKREUZ-FARBEN       */
/* ----------------------------------- */

/* 1. KARTE: Blaues Wusch // Goldene Linie & Schrift */
.projects-nav a:nth-child(1)::before {
    background: linear-gradient(90deg, transparent, rgba(30, 144, 255, 0.22), transparent); /* Kühles Kristallblau */
}
.projects-nav a:nth-child(1):hover {
    border-bottom-color: rgba(255, 183, 3, 0.8); /* Goldene Linie */
}
.projects-nav a:nth-child(1):hover .link-title {
    color: #fffbeb;
    text-shadow: 0 0 12px rgba(255, 183, 3, 0.4); /* Goldener Schimmer */
}

/* 2. KARTE: Lilanes Wusch // Blaue Linie & Schrift */
.projects-nav a:nth-child(2)::before {
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.25), transparent); /* Sattsattes Lila/Violett */
}
.projects-nav a:nth-child(2):hover {
    border-bottom-color: rgba(56, 189, 248, 0.8); /* Blaue Linie */
}
.projects-nav a:nth-child(2):hover .link-title {
    color: #e0f2fe;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.4); /* Blauer Schimmer */
}

/* 3. KARTE: Goldenes Wusch // Lilane Linie & Schrift */
.projects-nav a:nth-child(3)::before {
    background: linear-gradient(90deg, transparent, rgba(255, 183, 3, 0.22), transparent); /* Warmes Bernstein/Gold */
}
.projects-nav a:nth-child(3):hover {
    border-bottom-color: rgba(168, 85, 247, 0.8); /* Lilane Linie */
}
.projects-nav a:nth-child(3):hover .link-title {
    color: #f3e8ff;
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.4); /* Lilaner Schimmer */
}