/* Grundlegende Styles */
body {
    font-family: 'Raleway', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    color: white;
    background-color: black;
}

html, body {
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

/* Webseite komplett zentrieren */
.header, .about-section, .charts-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Fixiertes Profilbild (oben links) */
.fixed-profile {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
}

.fixed-profile img {
    width: 60px;
    border-radius: 50%;
}

/* Sprachumschaltung (oben rechts, bleibt sichtbar) */
.language-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.language-toggle img {
    width: 20px;
    height: 15px;
    margin-left: 5px;
}

/* Profilkasten */
.profile-box {
    width: 90%; /* Stellt sicher, dass die Box auf Mobile nicht breiter als der Bildschirm ist */
    max-width: 800px; /* Begrenzung auf eine maximale Breite */
    margin: 0 auto; /* Horizontale Zentrierung */
    padding: 30px; /* Innenabstand */
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid white;
    border-radius: 10px;
    text-align: center;
    box-sizing: border-box; /* Stellt sicher, dass padding die Gesamtbreite nicht verändert */
}

@media screen and (max-width: 768px) {
    .profile-box {
        width: 95%; /* Auf Mobile kleiner machen */
        padding: 20px; /* Weniger Abstand innen */
    }
	.social-icons img {
        width: 10vw; /* Größer auf sehr kleinen Bildschirmen */
        max-width: 40px;
    }

    .social-icons {
        gap: 10px; /* Reduziert den Abstand */
    }
}

/* Titel in der Box größer */
.profile-box h1 {
    font-size: 4em;
    font-weight: bold;
}

/* Untertitel */
.profile-box h2 {
    font-size: 2em;
    font-weight: normal;
}

/* Profilbild */
.profile-logo {
    width: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
}

/* Social-Media-Icons */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

/* Standardgröße für alle Icons */
.social-icons img {
    width: 8vw;  /* Anpassung basierend auf der Bildschirmbreite */
    height: auto; /* Automatische Höhe für Proportionen */
    max-width: 50px; /* Begrenzung der Größe auf größeren Screens */
    min-width: 30px; /* Verhindert, dass sie zu klein werden */
}
/* Hintergrundbilder */
.header {
    background: url('img/background-header.png') no-repeat center center fixed;
    background-size: cover;
}

/* Haupt About Me */
.main-about {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px;
    background: url('img/background-about.png') no-repeat center center fixed;
    background-size: cover;
}

/* Titel "About Me" */
.main-about h2 {
    font-size: 4em;
    font-weight: bold;
    margin-bottom: 30px;
}

/* Text */
.main-about p {
    font-size: 2em;
    line-height: 1.8;
    max-width: 80%;
    text-align: center;
}

/* Charts */
.charts-section {
    background: url('img/background-charts.png') no-repeat center center fixed;
    background-size: cover;
}

/* Diagramme */
.charts-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 50px;
}

.chart-item {
    width: 180px;
    height: 180px;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    text-align: center;
    font-size: 1.5em;
    color: white;
    position: relative;
}

/* Ladeanimation */
.loading-circle {
    margin-top: 10px;
    width: 40px;
    height: 40px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ---------------------------------------------------- DISCORD SEITE (discord.html) ----------------------------------------------------- */

/* Hintergrund für die Discord-Seite */
.discord-page {
    background: url('img/discord-bg.png') no-repeat center center fixed;
    background-size: cover;
}


/* Sprachumschalter oben rechts */
.language-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* Flagge in der Sprachumschaltung verkleinern */
.language-toggle img {
    width: 20px;
    height: 15px;
    margin-left: 5px;
}

/* Profil-Container */
.profile-container {
    width: 60%;
    max-width: 700px;
    margin: 50px auto;
    background: #1e1f22;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

/* Banner */
.banner img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* Blur-Effekt für den mittleren Bereich */
.center-blur {
    position: absolute;
    top: 50%; /* Mitte der Seite */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%; /* Breite des Blur-Bereichs */
    height: 80vh; /* Höhe des Blur-Bereichs */
    background: rgba(0, 0, 0, 0.5); /* Leicht dunkler Hintergrund */
    backdrop-filter: blur(15px); /* Der eigentliche Blur-Effekt */
    border-radius: 15px; /* Abgerundete Ecken */
    z-index: 1; /* Damit es über dem Hintergrund liegt */
}

/* Avatar Container - Noch tiefer setzen */
.avatar-container {
    position: relative !important;  /* Falls absolute Position ignoriert wird */
    margin-top: -70px !important;  /* Anheben statt "top" nutzen */
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

/* Avatar mit blauem Rand */
.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid #5865F2;
}


/* Name & User-ID */
.username {
    font-size: 1.8em;
    font-weight: bold;
    margin-top: 30px;
}

.user-id {
    font-size: 1.2em;
    color: #b9bbbe;
}

.badge {
    background: #5865F2;
    color: white;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.9em;
}

/* Discord-Button */
.discord-btn {
    display: inline-block;
    margin: 15px 0;
    padding: 10px 20px;
    background: #5865F2;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    border-radius: 6px;
    transition: 0.3s;
}

.discord-btn:hover {
    background: #4752C4;
}

/* Profil-Info */
.profile-info {
    background: #232428;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    margin: 10px auto;
    width: 90%;
}

.profile-info h2, .profile-info h3 {
    color: #b9bbbe;
    font-size: 1.2em;
}

.profile-info p {
    font-size: 1em;
    margin-bottom: 10px;
}

.profile-info a {
    color: #7289da;
    text-decoration: none;
}

.profile-info a:hover {
    text-decoration: underline;
}

/* Discord About-Me ohne Hintergrund */
.discord-about {
    background: none !important; /* Entfernt den Hintergrund */
    backdrop-filter: none !important; /* Kein Blur-Effekt */
    padding: 40px; /* Optional für Abstand */
}

/* Notizfeld */
textarea {
    width: 100%;
    height: 50px;
    background: #1e1f22;
    border: 1px solid #313338;
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 1em;
}

/* Zurück-Button */
.back-button {
    position: fixed; /* Fixiert den Button oben links */
    top: 10px; /* Geringerer Abstand nach oben */
    left: 10px; /* Geringerer Abstand nach links */
    background: #5865F2; /* Discord-Blau */
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 12px; /* Kleineres Padding */
    border-radius: 6px; /* Abgerundete Ecken */
    font-size: 0.9em; /* Kleinere Schriftgröße */
    transition: background 0.3s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 5px;
    border: none;
}

.back-button:hover {
    background: #4752C4;
}

.profile-container {
    width: 60%;
    max-width: 800px;
    margin: 50px auto;
    background: rgba(0, 0, 0, 0.5); /* Dunklere Transparenz */
    backdrop-filter: blur(15px); /* Blur-Effekt */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    padding: 20px;
}

/* Media Query für kleinere Bildschirme */
@media screen and (max-width: 768px) {
    .profile-container {
        width: 90%;
    }

    .username {
        font-size: 1.5em;
    }

    .profile-info p {
        font-size: 0.9em;
    }
}