:root {
    --frost-white: #ffffff;
    --ice-blue: #e8f4f8;
    --deep-winter: #0a1929;
    --snow-overlay: rgba(10, 25, 41, 0.75);
    --accent-frost: #64b5f6;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Hintergrundbild */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
	background: black;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

/* Optional: Eigenes Hintergrundbild hinzufügen */
/* Kommentiere die Zeile unten ein und ersetze URL mit deinem Bild */

.background-image {
    background-image: url('ayliva.jpeg');
}


/* Schneefall Canvas */
#snow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Container */
.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Profilkarte */
.profile-card {
    background: var(--snow-overlay);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 48px;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease-out;
}

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

/* Profil Header */
.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.profile-picture-wrapper {
    flex-shrink: 0;
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-picture:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.profile-info {
    flex: 1;
    padding-top: 8px;
}

.username {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.biography {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.post-item {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.post-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.post-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-item:hover .post-overlay {
    opacity: 1;
}

.instagram-icon {
    width: 48px;
    height: 48px;
    stroke-width: 2;
}

/* Kein Posts Zustand */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-posts p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    margin-top: 32px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }
    
    .profile-card {
        padding: 32px 24px;
        border-radius: 24px;
    }
    
    .profile-header {
        flex-direction: row; /* GEÄNDERT: Bleibt horizontal */
        align-items: flex-start; /* GEÄNDERT: Oben ausgerichtet */
        gap: 16px; /* GEÄNDERT: Kleinerer Abstand */
        margin-bottom: 32px;
    }
    
	.profile-picture-wrapper {
		margin-left: 5px;
	}
	
    .profile-picture {
        width: 90px; /* GEÄNDERT: Kleineres Bild auf Mobile */
        height: 90px;
    }
    
	.profile-info {
		padding-top: 0px;
	}
	
    .username {
        font-size: 1.5rem; /* GEÄNDERT: Kleinere Schrift */
    }
    
    .biography {
        font-size: 0.85rem; /* GEÄNDERT: Kleinere Schrift */
    }
    
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .post-item {
        border-radius: 12px;
    }
    
    .instagram-icon {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .profile-card {
        padding: 24px 16px;
    }
    
    .username {
        font-size: 1.75rem;
    }
    
    .posts-grid {
        gap: 6px;
    }
    
    .post-item {
        border-radius: 8px;
    }
}

/* Performance Optimierungen */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
