/* === BENTO GRID LAYOUT === */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    max-width: 1400px;
    width: 100%;
}

/* === PLATZIERUNG DER KACHELN === */
/* Profil (Oben Links - nimmt 2 Spalten ein) */
.card-profile {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}

.card-untitled {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    padding: 0;
    scrollbar-gutter: auto;
    display: none;
    /* bzw. unset */
}

.card-bio {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
}

.card-fusszeile {
    grid-column: 1 / 3;
    grid-row: 7 / 8;
}

.card-fusszeile p {
    text-align: justify;
    line-height: 1.6;
}

.card-bio h1 {
    margin-bottom: 10px;
    text-align: left;
}

.card-bio p {
    text-align: justify;
    line-height: 1.6;
}

.card-artikel h1 {
    margin-bottom: 10px;
    text-align: left;
}

.card-artikel p {
    text-align: justify;
    line-height: 1.6;
}

#music-player-frame {
    width: 100%;
    border: none;
    scrollbar-width: none;
    transform-origin: top center;
    transform: translateX(2%) scaleX(1.1);
}


/* Navigation Buttons */
.card-socials {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: space-between;
}

/* YouTube (Mitte Links - nimmt 2 Spalten ein) */
.card-youtube {
    grid-column: 1 / 3;
    grid-row: 3 / 5;
}

.card-youtubezweu {
    grid-column: 1 / 3;
    grid-row: 5 / 7;
    display: none;
}

.card-artikel {
    grid-column: 1 / 3;
    grid-row: 5 / 7;
}

.card-reales {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
}

.card-game {
    grid-column: 3 / 4;
    grid-row: 4 / 8;
    padding: 0;
}


.presave-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    min-width: 20px;
    height: 100%;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease;
}

.release-tracker {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.release-tracker h3 {
    margin: 4px 0 0 0;
    font-size: 1.2rem;
    color: #fff;
}

.spotify-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.platform-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.platform-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    min-width: 10px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease;
}

.platform-btn svg {
    height: 10px;
    width: 10px;
    fill: currentColor;
}

.platform-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Positionierung des Buttons oben rechts */
.share-icon-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 100;
}

.share-icon-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

/* Modal Overlay & Pop-up */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.share-modal-content {
    background: #1e242b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    color: #fff;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
}

.close-btn:hover {
    color: #fff;
}

.copy-box {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.copy-box input {
    flex: 1;
    background: #12161a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    color: #fff;
    font-size: 14px;
}

.copy-box button {
    background: #ffffff;
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}

.copy-box button:hover {
    opacity: 0.9;
}

.copy-message {
    font-size: 12px;
    color: #4CAF50;
    margin-top: 8px;
    min-height: 16px;
}

/* ========================================================= */
/* MOBILE VERSION (Greift nur auf kleinen Bildschirmen)      */
/* ========================================================= */

@media (max-width: 900px) {

    /* Korrigiert: Ohne Punkt vor body */
    body {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        /* Optional: grid-template-rows auf auto zurücksetzen, damit die Zeilenhöhen dynamisch passen */
        grid-template-rows: auto;
    }

    /* Auf Mobile reicht es jetzt aus, das Grid einfach fließen zu lassen, 
       oder die Zeilen ohne manuelles Zählen festzulegen: */
    .card-profile {
        grid-column: 1;
        grid-row: 1;
    }

    .card-game {
        grid-column: 1;
        grid-row: 7;
        min-height: 600px;
    }

    .card-socials {
        grid-column: 1;
        grid-row: 3;
    }

    .card-reales {
        grid-column: 1;
        grid-row: 2;
    }

    .card-youtube {
        grid-column: 1;
        grid-row: 4;
    }

    .card-youtubezweu {
        grid-column: 1;
        grid-row: 5;
    }

    .card-artikel {
        grid-column: 1;
        grid-row: 5;
    }

    .card-bio {
        grid-column: 1;
        grid-row: 6;
    }

    .card-fusszeile {
        grid-column: 1;
        grid-row: 8;
    }
}