/* ==========================================================================
   SAISHIN-DREAM | HOME STYLESHEET (css/home.css)
   ========================================================================== */

/* --- 1. Hero Bereich (Startseiten-Spezifisch) --- */

/* Zwingt den Hero-Bereich dazu, Bilder über den Rand hängen zu lassen */
.hero-section {
    overflow: visible !important; 
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #eaeaea;
}

/* Desktop-Positionierung Cutout-Paar (Rechtsbündig, überlappend) */
.hero-image-wrapper {
    position: absolute;
    bottom: -60px; /* Zieht die Beine über die rote Linie in den schwarzen Bereich */
    right: 5%;
    width: 400px;
    height: auto;
    z-index: 20;
    display: flex;
    align-items: flex-end;
    pointer-events: none; /* Verhindert, dass das Bild Klicks auf den Text blockiert */
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(-5px 5px 15px rgba(0,0,0,0.8));
}

/* --- 2. Content: Spiele-Grid --- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.game-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border-top: 2px solid transparent;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    border-top: 2px solid var(--color-accent);
}

.game-img-placeholder {
    width: 100%;
    height: 200px;
    background-color: #222;
    position: relative;
    overflow: hidden;
}

.game-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.game-card:hover .game-img-placeholder img {
    opacity: 1;
}

.game-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.game-info p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* --- 3. Responsive Design für die Startseite --- */
@media (max-width: 992px) {
    .hero-text {
        max-width: 50%;
    }
    
    .hero-image-wrapper {
        width: 320px;
        bottom: -50px;
    }
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-bottom: 0; 
        padding-top: 3rem; /* Etwas mehr Luft nach oben */
    }

    .hero-text {
        max-width: 100%;
        margin-bottom: 3rem; /* Mehr Abstand zwischen Text und Bild */
    }

    .hero-text h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-text p {
        margin-bottom: 2.5rem;
    }

    /* Bild etwas größer und tiefer in den nächsten Bereich ragend für besseren Tiefeneffekt */
    .hero-image-wrapper {
        position: relative; 
        bottom: -50px; /* Ragt noch etwas weiter in die nächste Sektion */
        right: auto;
        width: 320px; /* Etwas breiter auf Mobile */
        margin: 0 auto; 
    }
}
