/* 
   PROJEKT: markus-korsten.de
   SETUP: 3x3 Grid mit Galerie-Fuge und Hover-Effekt
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    font-family: 'Source Sans 3', sans-serif;
    overflow-x: hidden;
}

/* --- LOGO-ANIMATION --- */
.logo-wrapper {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    pointer-events: none;
    animation: heroToHeader 1.8s cubic-bezier(0.65, 0, 0.35, 1) 2.5s forwards;
}

.logo {
    width: 700px; 
    max-width: 90%;
    height: auto;
    display: block; 
    opacity: 0;
    animation: fadeInLogo 1.0s ease-out 0.5s forwards;
}

@keyframes fadeInLogo {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes heroToHeader {
    0% { transform: translateY(0) scale(1); }
    100% { 
        transform: translateY(calc(-50vh + 160px)) scale(0.4); 
    }
}

/* --- GRID-STEUERUNG (Mit Rand & Hover) --- */
.grid-container {
    width: 100%;
    margin: 320px auto 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; /* Die weiße Fuge */
    padding: 0 15px; 
    opacity: 0;
    animation: fadeInGrid 1s ease-out 3.8s forwards;
}

.tile {
    width: 100%;
    aspect-ratio: 1; 
    background-color: #ffffff;
    border: 1px solid #f2f2f2; 
    position: relative;
    overflow: hidden; 
}

.tile-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.tile:hover .tile-image {
    transform: scale(1.1); /* Zoom-Effekt */
}

.tile:hover {
    cursor: pointer;
    border-color: #ddd;
}

@keyframes fadeInGrid {
    to { opacity: 1; }
}

/* --- FOOTER --- */
.site-footer {
    padding: 100px 0;
    text-align: center;
    opacity: 0;
    animation: fadeInGrid 1s ease-out 4s forwards;
}

.site-footer a {
    text-decoration: none;
    color: #999;
    font-size: 0.8rem;
    margin: 0 15px;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #333;
}

/* --- MOBILE ANPASSUNG --- */
@media (max-width: 768px) {
    .logo { width: 85%; }
    @keyframes heroToHeader {
        0% { transform: translateY(0) scale(1); }
        100% { transform: translateY(calc(-50vh + 120px)) scale(0.6); }
    }
    .grid-container { 
        margin-top: 220px; 
        gap: 5px; 
        padding: 0 5px;
    }
}