/* Modernen Font laden */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700;900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #222222;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}

/* === BENTO GRID LAYOUT === */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: 20px;
    max-width: 1100px;
    width: 100%;
}

/* Grund-Styling für jede Kachel */
.bento-card {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

/* === PLATZIERUNG DER KACHELN === */
/* Profil (Oben Links - nimmt 2 Spalten ein) */
.card-profile {
    padding: 0;
    border: none;
    background: transparent;
    grid-column: 1 / 3;
    display: flex;
    align-items: center;
    gap: 30px;
}

.card-profile:hover {
    transform: none;
}

/* Spotify (Rechts - nimmt 1 Spalte breit, aber 3 Reihen hoch ein) */
.card-spotify {
    grid-column: 3 / 4;
    grid-row: 1 / 4;
    padding: 0;
    border: none;
    background: transparent;
}

/* YouTube (Mitte Links - nimmt 2 Spalten ein) */
.card-youtube {
    grid-column: 1 / 3;
    grid-row: 3 / 5;
    padding: 0;
    aspect-ratio: 16 / 9;
    /* Perfektes Video-Format */
}

.card-tags {
    grid-column: 3 / 4;
    grid-row: 4 / 5;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
}

.card-socials {
    grid-column: 1 / 3;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
}

.card-socials:not(:has(> :nth-child(5))) .social-btn {
    flex: 1;
    /* Alle Elemente im Container wachsen und füllen die Reihe */
}


/* === INHALTE STYLEN === */

/* Profil Kachel */
#profile-img {
    width: 200px;
    height: 200px;
    border-radius: 32px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-info h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
    background: #fff;
    -webkit-background-clip: text;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* Tags Kachel */
.tag-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 20px;
    border-radius: 16px;
    flex: 1;
    min-width: max-content;
}

.tag-text {
    display: flex;
    flex-direction: column;
}

.tag-label {
    font-size: 0.7rem;
    color: #a3a3a3;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.tag-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
}

/* Social Kachel */
.social-btn {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    flex-basis: calc(20% - 12px);
    /* 5 items, 4 gaps, 2 padding -> total gap+padding = 4*15+2*20 = 100px; 100/5 = 20px*/
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    min-width: 80px;
    transition: all 0.3s ease;
    color: #fff;
}

.social-btn svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.social-btn:hover svg {
    transform: scale(1.2);
}

/* Bunte Hover-Effekte für die Buttons */
.social-btn.ig:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.sp:hover {
    background: #1DB954;
}

.social-btn.am:hover {
    background: #FA243C;
}

.social-btn.yt:hover {
    background: #FF0000;
}

/* iFrames (Embeds) */
iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 32px;
    /* Passt sich den Kacheln an */
}

#background-img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.8;
    filter: blur(100px) saturate(150%);
    object-fit: cover;
    object-position: 50% 20%;
}

/* === RESPONSIVE (Handy-Anpassung) === */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .card-profile,
    .card-spotify,
    .card-youtube,
    .card-tags,
    .card-socials,
    .card-game {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .card-profile {
        flex-direction: column;
        text-align: center;
    }

    .card-spotify {
        height: 400px;
        /* Feste Höhe für Handy */
    }

    #banner {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
    }
}