:root {
    --bg-color: #9146ff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; width: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    background-image: url('Bilder/hintergrund.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: white;
    overflow-x: hidden;
}

.container {
    text-align: center;
    width: 100%;
    max-width: 450px; 
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 40px 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    margin-bottom: 40px; 
}

.profile-pic {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 4px solid rgba(145, 70, 255, 0.6);
    transition: all 0.3s ease;
    background-color: #000;
}
.profile-pic img { width: 100%; height: 100%; object-fit: cover; }

.profile-pic.is-live {
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8), 0 0 40px rgba(255, 0, 0, 0.4);
    animation: profilePulse 2s infinite;
}
@keyframes profilePulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); border-color: #ff0000; }
    70% { box-shadow: 0 0 0 15px rgba(255, 0, 0, 0); border-color: #ff4444; }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); border-color: #ff0000; }
}

h1 { font-size: 3em; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.8); font-weight: 700; transition: all 0.5s ease; word-wrap: break-word; }

.mini-icons { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; }
.mini-icon { color: rgba(255,255,255,0.8); font-size: 1.8em; transition: all 0.3s ease; text-decoration: none; }
.mini-icon:hover { transform: scale(1.2); color: white; text-shadow: 0 0 15px rgba(255,255,255,0.5); }
.mini-twitter:hover { color: #1da1f2; }
.mini-tiktok:hover { color: #fe2c55; }

.social-grid { display: flex; flex-direction: column; gap: 15px; margin-bottom: 10px; width: 100%; }
.social-box {
    display: flex; align-items: center; justify-content: flex-start; gap: 15px;
    padding: 18px 20px; text-decoration: none; color: white; border-radius: 50px;
    font-weight: bold; font-size: 1.1em; transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); position: relative; width: 100%;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 3px 3px 5px rgba(0,0,0,0.6);
}
.social-box:hover { transform: translateY(-5px) scale(1.03); box-shadow: 0 15px 35px rgba(0,0,0,0.5); }
.social-box i { font-size: 1.6em; width: 30px; text-align: center; flex-shrink: 0; }
.social-box span { flex-grow: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 30px; }

.live-indicator { width: 12px; height: 12px; background-color: #ff0000; border-radius: 50%; display: none; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); box-shadow: 0 0 10px #ff0000; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { transform: translateY(-50%) scale(0.95); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); } 70% { transform: translateY(-50%) scale(1); box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); } 100% { transform: translateY(-50%) scale(0.95); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); } }

.twitch.is-live { background: #ff0000 !important; border: 2px solid white; box-shadow: 0 0 20px rgba(255,0,0,0.6); animation: pulseButton 2s infinite; }
@keyframes pulseButton { 0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(255, 0, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); } }

.twitch { background: #9146ff; }
.discord { background: #5865f2; }
.discord2 { background: #5865f2; }
.email { background: #007bff; }
.setup { background: #6441a5; }
.spacer { height: 40px; width: 100%; display: block; }

footer { position: fixed; bottom: 10px; left: 15px; font-size: 0.85em; opacity: 0.8; z-index: 999; }
footer a { color: rgba(255,255,255,0.85); text-decoration: underline; font-weight: normal; border: none; }
footer a:hover { opacity: 1; color: white; }

/* MODALS */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 1000; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.modal-content { background: rgba(26,26,46,0.95); margin: 20px; padding: 25px; border-radius: 20px; width: 90%; max-width: 500px; max-height: 80vh; overflow-y: auto; position: relative; text-align: left; border: 1px solid rgba(255,255,255,0.1); }
#stream-modal .modal-content { max-width: 1200px; height: 85vh; padding: 0; background: black; overflow: hidden; border: none; display: flex; flex-direction: column; }
.video-container { flex-grow: 1; width: 100%; position: relative; }
.follow-cta { width: 100%; background: #9146ff; color: white; text-align: center; padding: 15px; font-weight: bold; font-size: 1.2em; text-decoration: none; text-transform: uppercase; letter-spacing: 1px; transition: background 0.3s; box-shadow: 0 -5px 15px rgba(0,0,0,0.5); z-index: 1002; }
.follow-cta:hover { background: #772ce8; }
.modal-content h2 { margin-bottom: 20px; text-align: center; }
.close { position: absolute; top: 15px; right: 20px; font-size: 2em; cursor: pointer; color: #aaa; z-index: 1003; }
#stream-modal .close { color: white; background: rgba(0,0,0,0.5); border-radius: 50%; width: 40px; height: 40px; text-align: center; line-height: 40px; top: 10px; right: 10px; }
.close:hover { color: white; background: red; }
.impressum-text p { margin-bottom: 15px; line-height: 1.5; }
.impressum-text a { color: #38bdf8; text-decoration: none; }
.impressum-text a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    body { background-image: url('Bilder/hintergrund_mobil.webp'); overflow: hidden; height: 100vh; display: flex; align-items: center; justify-content: center; }
    .container { width: 95%; height: 90vh; max-height: 800px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 15px; margin: 0; }
    .profile-pic { width: 100px; height: 100px; margin-bottom: 10px; flex-shrink: 0; }
    h1 { font-size: 2em; margin-bottom: 10px; flex-shrink: 0; }
    .mini-icons { margin-bottom: 15px; gap: 15px; flex-shrink: 0; }
    .mini-icon { font-size: 1.5em; }
    .social-grid { gap: 10px; margin-bottom: 0; overflow-y: auto; padding: 5px; width: 100%; }
    .social-box { padding: 12px 15px; font-size: 1em; }
    .spacer { display: none; }
    footer { position: fixed; bottom: 15px; left: 0; width: 100%; text-align: center; font-size: 0.7em; opacity: 0.8; z-index: 1001; }
}
