/* Gemeinsames Stylesheet für index.php und impressum.php */

:root {
    --bg: #121212;
    --card: #1e1e1e;
    --pink: #ff0077;
    --blue: #57cbff;
    --green: #90ba3c;
    --muted: #aaaaaa;
    --status: #888888; /* wird in index.php je nach Steam-Status überschrieben */
}

/* 1. GRUNDGERÜST */
body {
    /* Ersetzt das frühere background_neon.png (identischer Farbverlauf) */
    background: var(--bg) linear-gradient(
        to bottom,
        #00544e 0%,
        #3e305d 25%,
        #5a1c4b 50%,
        #3e305d 75%,
        #00544e 100%
    ) fixed;
    background-size: 100% 100vh;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

main {
    display: flex;
    flex: 1;
    width: 100%;
    justify-content: center;
    align-items: center;
}

/* 2. LOGO OBEN LINKS */
.logo-link {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    transition: transform 0.3s ease;
}

.top-logo {
    display: block;
    width: 150px;
    height: auto;
    filter: drop-shadow(0 0 5px rgba(255, 0, 119, 0.5));
}

.logo-link:hover {
    transform: scale(1.1);
}

/* 3. HAUPT-CONTAINER */
.container {
    box-sizing: border-box;
    background-color: var(--card);
    padding: 40px;
    border-radius: 15px;
    max-width: 480px;
    width: 90%;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 0, 119, 0.2);
}

.page-home .container {
    text-align: center;
}

.page-legal .container {
    max-width: 680px;
    line-height: 1.6;
    overflow-wrap: break-word;
}

/* 4. PROFIL */
.profile-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.profile-pic {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--status);
    transition: border-color 0.5s ease;
}

.status-dot {
    height: 20px;
    width: 20px;
    background-color: var(--status);
    border-radius: 50%;
    position: absolute;
    bottom: 10px;
    right: 10px;
    border: 3px solid var(--card);
}

.status-msg {
    font-size: 0.9em;
    color: var(--status);
    margin-bottom: 20px;
    font-weight: bold;
}

.status-game {
    font-size: 0.8em;
    color: var(--green);
}

.page-home h1 { margin-bottom: 5px; font-size: 24px; }
.page-home p { color: var(--muted); margin-bottom: 25px; }

/* 5. BUTTONS */
.link-button {
    display: block;
    background-color: #2c2c2c;
    color: white;
    text-decoration: none;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    transition: all 0.2s;
    border: 1px solid #333;
}

.link-button:hover,
.link-button:focus-visible {
    background-color: var(--pink);
    color: var(--bg);
    transform: scale(1.02);
    font-weight: bold;
}

/* 6. IMPRESSUM / DATENSCHUTZ */
.page-legal h1 { color: var(--pink); border-bottom: 1px solid #333; padding-bottom: 10px; }
.page-legal h2 { font-size: 1.2em; margin-top: 20px; color: var(--blue); }
.page-legal .container a { color: var(--pink); text-decoration: none; }
.page-legal .container a:hover { text-decoration: underline; }
.page-legal hr { border: 0; border-top: 1px solid #333; margin: 40px 0; }
.back-link { display: inline-block; margin-top: 30px; font-weight: bold; }

/* 7. FOOTER */
footer {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 0, 119, 0.3);
}

.footer-link {
    color: var(--pink);
    text-decoration: none;
    font-size: 0.85em;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.footer-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px var(--pink), 0 0 20px var(--pink);
}

/* 8. MOBILE (Tablets & Handys) */
@media (max-width: 768px) {
    .top-logo {
        width: 80px;
    }

    .logo-link {
        top: 10px;
        left: 10px;
    }

    /* Platz für das Logo oben */
    .container {
        margin-top: 100px;
        padding: 30px 24px;
    }

    .page-legal .container {
        hyphens: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
