/*--- 1. GLOBALE RESET & BASIS ---*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.5px;
}

body {
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/*--- 2. MAIN HUB LAYOUT (STARTSEITE) ---*/
body:has(.hub-container) {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.hub-container {
    width: 100%;
    max-width: 580px;
    text-align: center;
}

/* OBERE REIHE: DISCORD WIDGET & SOUND */
.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 15px;
}

/*--- 3. DISCORD CARD & WIDGET STYLING ---*/
.visitor-discord-wrapper {
    display: block;
}

.discord-card {
    display: flex;
    align-items: center;
    background: #050505;
    border: 1px solid #111111;
    padding: 10px 16px;
    border-radius: 6px;
    gap: 12px;
    text-align: left;
}

.discord-avatar-wrapper {
    position: relative;
    width: 36px;
    height: 36px;
}

.discord-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.discord-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid #050505;
}

/* Status-Farben */
.status-online { background-color: #23a55a; }
.status-idle { background-color: #f0b232; }
.status-dnd { background-color: #f23f43; }

.discord-info {
    display: flex;
    flex-direction: column;
}

.discord-username {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}

.discord-activity {
    font-size: 0.7rem;
    color: #888888;
}

/* Discord Buttons */
.discord-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #050505;
    border: 1px solid #1a1a1a;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
}

.discord-login-btn:hover {
    border-color: #5865F2;
    color: #5865F2;
    background-color: #0a0c24;
}

.dc-logout-btn {
    background: none;
    border: none;
    color: #444;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 5px;
    line-height: 1;
    transition: color 0.2s;
}

.dc-logout-btn:hover {
    color: #f23f43;
}

/* Spezielles Floating-Layout für das Widget unten rechts auf Unterseiten */
body:not(:has(.hub-container)) #visitorWrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/*--- 4. SOUND CONTROLS ---*/
.sound-btn {
    background: #000000;
    color: #ffffff;
    border: 1px solid #222222;
    padding: 10px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sound-btn:hover, .sound-btn.sound-on {
    border-color: #ffffff;
    background: #ffffff;
    color: #000000;
}

/*--- 5. PROFIL HEADER ---*/
.profile-header {
    margin-bottom: 40px;
}

.profile-name {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.profile-bio {
    font-size: 0.95rem;
    color: #888888;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.5;
}

/*--- 6. MAIN LINK CARDS HUB ---*/
.links-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 50px;
}

.link-card {
    background: #050505;
    border: 1px solid #111111;
    padding: 24px;
    border-radius: 6px;
    text-align: left;
    display: block;
}

.link-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    transition: color 0.3s;
}

.link-card p {
    font-size: 0.85rem;
    color: #666666;
    transition: color 0.3s;
}

.link-card:hover {
    border-color: #333333;
    background: #080808;
    transform: translateY(-2px);
}

.link-card:hover h3 {
    color: #ffffff;
}

.link-card:hover p {
    color: #aaaaaa;
}

/*--- 7. SEITEN-WRAPPER & UNTERSEITEN (LABS / DEV) ---*/
.sub-nav {
    border-bottom: 1px solid #111111;
    background: #000000;
    padding: 20px 0;
}

.sub-nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.sub-logo {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.back-to-hub {
    font-size: 0.8rem;
    color: #666666;
    border: 1px solid #111111;
    padding: 6px 12px;
    border-radius: 4px;
}

.back-to-hub:hover {
    color: #ffffff;
    border-color: #333333;
}

.site-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.hero-sub {
    margin-bottom: 50px;
}

.hero-sub h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-desc {
    color: #666666;
    font-size: 0.95rem;
}

/* Content Sektionen & Grid */
.content-section {
    margin-bottom: 60px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card-dark {
    background: #050505;
    border: 1px solid #111111;
    padding: 30px;
    border-radius: 6px;
}

.card-dark h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-dark p {
    font-size: 0.85rem;
    color: #888888;
}

/*--- 8. BOT DASHBOARD SPEZIFISCH ---*/
.status-display {
    display: inline-flex;
    align-items: center;
    background: #020202;
    padding: 12px 16px;
    border: 1px solid #111111;
    border-radius: 4px;
}

.status-display p {
    font-size: 0.85rem;
    color: #aaaaaa;
}

.status-indicator.online {
    width: 10px;
    height: 10px;
    background-color: #23a55a;
    border-radius: 50%;
    box-shadow: 0 0 12px #23a55a;
    animation: statusPulse 2s infinite ease-in-out;
}

@keyframes statusPulse {
    0% { opacity: 0.6; box-shadow: 0 0 4px #23a55a; }
    50% { opacity: 1; box-shadow: 0 0 14px #23a55a; }
    100% { opacity: 0.6; box-shadow: 0 0 4px #23a55a; }
}

.card-dark p strong {
    color: #666666;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Button Outlines */
.btn-outline {
    display: inline-block;
    border: 1px solid #222222;
    padding: 12px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    color: #ffffff;
    background: transparent;
    cursor: pointer;
}

.btn-outline:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/*--- 9. FOOTER ---*/
footer, .site-footer {
    text-align: center;
    font-size: 0.75rem;
    color: #444444;
    border-top: 1px solid #111111;
    padding-top: 30px;
}

.legal-links {
    margin-top: 8px;
}

.legal-links a {
    color: #444444;
}

.legal-links a:hover {
    color: #888888;
}

/* Rechtliche Text-Seiten (Impressum/Datenschutz) */
.legal-page {
    max-width: 750px;
    margin: 0 auto;
    padding: 60px 20px;
}

.legal-content h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.legal-content h3 {
    font-size: 1.1rem;
    margin-top: 30px;
    margin-bottom: 10px;
}

.legal-content h4 {
    font-size: 0.9rem;
    margin-top: 15px;
    color: #aaa;
}

.legal-content p {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 15px;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    font-size: 0.85rem;
    color: #666;
}

.back-link:hover {
    color: #fff;
}