/* Importiert Poppins für den Text und Press Start 2P für das Minecraft-Logo */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Press+Start+2P&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    color: #fff;
    display: flex;
    background-color: #1a1a1a;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: rgba(118, 255, 3, 0.3);
    border-radius: 5px;
}

.background {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    /* Ein atmosphärisches Hintergrundbild, das an eine Minecraft-Welt erinnert */
    background-image: url('https://images.unsplash.com/photo-1618090604135-27aa03585e97?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.5);
}

.main-header {
    margin: 0 auto 3rem auto;
    width: 100%;
    max-width: 1100px;
    background: rgba(10, 15, 10, 0.4);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(118, 255, 3, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(118, 255, 3, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Animation für das Logo-Badge */
@keyframes dropDown {
    0% {
        transform: translateY(-80px) scale(0.9);
        opacity: 0;
    }
    60% {
        transform: translateY(10px) scale(1.02);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.logo-frame {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.8rem 2rem;
    border-radius: 50px; /* Erzeugt die abgerundete "Pillen"-Form */
    border: 2px solid #76ff03;
    box-shadow: 0 0 25px rgba(118, 255, 3, 0.2), inset 0 0 15px rgba(118, 255, 3, 0.1);
    margin-bottom: 1rem;
    display: inline-block;
    animation: dropDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.main-header h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.8rem;
    color: #76ff03;
    /* Harter 3D-Schatten im Block-Stil kombiniert mit Neon-Glow */
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.9), 0 0 20px rgba(118, 255, 3, 0.6);
    line-height: 1.2;
    margin: 0; /* Margin wird jetzt vom Logo-Frame übernommen */
}

.main-header .subtitle {
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.6;
    max-width: 850px; /* Hält den Text trotz 100% Breite gut lesbar */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* Dies ist die Hauptklasse für den Glassmorphism-Effekt */
.glass-panel {
    background: rgba(10, 15, 10, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(118, 255, 3, 0.4);
    border-radius: 12px;
    /* Hier ist der äußere und innere Glow-Effekt an den Rändern */
    box-shadow: 0 0 20px rgba(118, 255, 3, 0.15), inset 0 0 15px rgba(118, 255, 3, 0.05);
}

.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 2rem 1.2rem;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    border-top: none;
    border-bottom: none;
    border-left: none;
    z-index: 10;
    overflow-y: auto;
}

.brand {
    font-family: 'Press Start 2P', cursive;
    color: #76ff03;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.8);
}

.sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar a {
    text-decoration: none;
    color: #e0e0e0;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar a::after {
    content: '➔';
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.4s ease;
    color: #76ff03;
}

.sidebar a:hover, .sidebar a.active {
    background: rgba(118, 255, 3, 0.1);
    border: 1px solid rgba(118, 255, 3, 0.5);
    color: #fff;
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 5px 15px rgba(118, 255, 3, 0.2), inset 0 0 15px rgba(118, 255, 3, 0.05);
    text-shadow: 0 0 5px rgba(118, 255, 3, 0.5);
}

.sidebar a:hover::after, .sidebar a.active::after {
    opacity: 1;
    transform: translateX(0);
}

.mobile-topbar {
    display: none; /* Standardmäßig auf großen Bildschirmen versteckt */
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    z-index: 20;
}

.burger-btn {
    background: rgba(10, 15, 10, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(118, 255, 3, 0.4);
    border-radius: 8px;
    color: #76ff03;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 0.8rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.burger-btn:hover {
    background: rgba(118, 255, 3, 0.2);
    box-shadow: 0 0 20px rgba(118, 255, 3, 0.5);
}

.main-wrapper {
    margin-left: 260px;
    flex: 1;
    padding: 1.5rem 3%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    margin: 0 auto 3rem auto;
    max-width: 1100px;
    width: 100%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

header h1 {
    font-size: 1.8rem;
}

.status.online {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(46, 204, 113, 0.5);
    font-weight: bold;
    letter-spacing: 1px;
    white-space: nowrap;
}

.status.offline {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(231, 76, 60, 0.5);
    font-weight: bold;
    letter-spacing: 1px;
    white-space: nowrap;
}

.status.loading {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: bold;
    letter-spacing: 1px;
    white-space: nowrap;
}

.status-container {
    position: relative;
    display: inline-block;
    cursor: help;
}

.player-tooltip {
    visibility: hidden;
    background-color: rgba(10, 15, 10, 0.95);
    color: #fff;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #76ff03;
    position: absolute;
    z-index: 100;
    top: 130%;
    right: 0;
    box-shadow: 0 5px 25px rgba(0,0,0,0.8), inset 0 0 10px rgba(118, 255, 3, 0.1);
    min-width: 180px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
    max-height: 250px;
    overflow-y: auto;
}

/* Kleiner Pfeil für den Tooltip */
.player-tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    right: 20px;
    margin-left: -5px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #76ff03 transparent;
}

.status-container:hover .player-tooltip {
    visibility: visible;
    opacity: 1;
}

.server-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Nimmt den restlichen Platz ein */
    height: 100%;
}

.banner {
    width: 100%;
    height: auto;
    aspect-ratio: 25 / 7; /* Noch schmaleres "Cinematic"-Format */
    max-height: 250px; /* Deutlich kleiner, damit es nicht so wuchtig wirkt */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.server-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.server-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(118, 255, 3, 0.3);
}

/* Kleines Versions-Badge direkt im Header */
.header-version-badge {
    font-size: 0.85rem;
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.5);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: bold;
    white-space: nowrap;
}

.server-badges {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.streamer-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: max-content;
    max-width: 100%;
}

.streamer-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(118, 255, 3, 0.3), inset 0 0 15px rgba(118, 255, 3, 0.1);
    border-color: #76ff03;
}

.streamer-badge img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #76ff03;
}

.discord-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: max-content;
    max-width: 100%;
}

.discord-badge.glass-panel {
    border-color: rgba(88, 101, 242, 0.4);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.15), inset 0 0 15px rgba(88, 101, 242, 0.05);
}

.discord-badge.glass-panel:hover {
    transform: translateY(-3px);
    border-color: #5865F2;
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.4), inset 0 0 15px rgba(88, 101, 242, 0.2);
}

.discord-icon {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(88, 101, 242, 0.2);
    border-radius: 50%;
    border: 2px solid #5865F2;
}

.tiktok-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: max-content;
    max-width: 100%;
}

.tiktok-badge.glass-panel {
    border-color: rgba(238, 29, 82, 0.4);
    box-shadow: 0 0 20px rgba(238, 29, 82, 0.15), inset 0 0 15px rgba(238, 29, 82, 0.05);
}

.tiktok-badge.glass-panel:hover {
    transform: translateY(-3px);
    border-color: #EE1D52;
    box-shadow: 0 5px 20px rgba(238, 29, 82, 0.4), inset 0 0 15px rgba(238, 29, 82, 0.2);
}

.tiktok-icon {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(238, 29, 82, 0.2);
    border-radius: 50%;
    border: 2px solid #EE1D52;
}

.instagram-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: max-content;
    max-width: 100%;
}

.instagram-badge.glass-panel {
    border-color: rgba(225, 48, 108, 0.4);
    box-shadow: 0 0 20px rgba(225, 48, 108, 0.15), inset 0 0 15px rgba(225, 48, 108, 0.05);
}

.instagram-badge.glass-panel:hover {
    transform: translateY(-3px);
    border-color: #E1306C;
    box-shadow: 0 5px 20px rgba(225, 48, 108, 0.4), inset 0 0 15px rgba(225, 48, 108, 0.2);
}

.instagram-icon {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(225, 48, 108, 0.2);
    border-radius: 50%;
    border: 2px solid #E1306C;
}

.streamer-info {
    display: flex;
    flex-direction: column;
}

.streamer-label {
    font-size: 0.7rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.streamer-name {
    font-size: 1rem;
    font-weight: bold;
    color: #76ff03;
}

p {
    line-height: 1.6;
    font-size: 0.95rem;
    color: #e0e0e0;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0 1.5rem 0;
}

.feature-card {
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card p {
    font-size: 0.85rem;
}

.feature-card h3 {
    margin-bottom: 0.8rem;
    color: #76ff03;
}

/* --- Abschnitts-Titel --- */
.section-title {
    color: #76ff03;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid rgba(118, 255, 3, 0.2);
    padding-bottom: 0.5rem;
}

/* --- YouTube Videos --- */
.video-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Zentriert die Videos */
    gap: 2.5rem; /* Etwas mehr Abstand, da die Videos jetzt größer sind */
    margin-bottom: 2rem;
    width: 100%;
}

.video-wrapper {
    width: 100%;
    max-width: 800px; /* Ein guter Mittelweg (nicht zu riesig, nicht zu klein) */
    aspect-ratio: 16 / 9; /* Modern und sauber */
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(118, 255, 3, 0.4);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.join-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: #76ff03;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #76ff03;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto; /* Schiebt den Button nach unten */
    box-shadow: 0 0 15px rgba(118, 255, 3, 0.2), inset 0 0 10px rgba(118, 255, 3, 0.1);
    text-shadow: 0 0 8px rgba(118, 255, 3, 0.5);
}

.join-btn:hover {
    transform: translateY(-3px);
    background: #76ff03;
    color: #1a1a1a;
    box-shadow: 0 0 30px rgba(118, 255, 3, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.4);
    text-shadow: none;
}

/* Animation für den IP-Kopieren-Button */
@keyframes copy-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); background: #76ff03; color: #1a1a1a; box-shadow: 0 0 30px rgba(118, 255, 3, 0.8); }
    100% { transform: scale(1); background: #76ff03; color: #1a1a1a; box-shadow: 0 0 20px rgba(118, 255, 3, 0.5); }
}

.join-btn.copied {
    animation: copy-pop 0.4s ease forwards;
    background: #76ff03;
    color: #1a1a1a;
    text-shadow: none;
    border-color: #76ff03;
}

/* --- Startseite: Server Grid --- */
.home-server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.home-server-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.home-server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(118, 255, 3, 0.2), inset 0 0 15px rgba(118, 255, 3, 0.1);
    border-color: #76ff03;
}

.home-server-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    flex-shrink: 0; /* Verhindert, dass das Icon bei langem Text gequetscht wird */
}

.home-server-details {
    min-width: 0; /* Zwingend nötig, damit lange Texte in Flexboxen abgeschnitten werden können */
    flex: 1;
}

.home-server-details h2 {
    color: #76ff03;
    margin-bottom: 0.2rem;
    font-size: 1.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-server-version {
    display: inline-block;
    font-size: 0.65rem;
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.4);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-weight: bold;
    white-space: nowrap;
    margin-bottom: 0.4rem;
}

.home-streamer-info {
    font-size: 0.9rem;
    color: #ccc;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-streamer-info strong {
    color: #fff;
}

/* --- Footer --- */
.site-footer {
    margin-top: auto; /* Schiebt den Footer automatisch ans untere Ende */
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
}

.impressum-content h4 {
    color: #e0e0e0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.impressum-columns {
    display: flex;
    justify-content: center;
    gap: 4rem;
    text-align: left;
    margin-bottom: 1rem;
}

.impressum-columns p {
    margin-bottom: 0;
}

.impressum-content p {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.site-footer a {
    color: #76ff03;
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-footer a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(118, 255, 3, 0.5);
}

.footer-links {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
}

/* --- Mobile / Responsive Design --- */
@media (max-width: 900px) {
    .mobile-topbar {
        display: flex;
    }

    .sidebar {
        width: 280px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: -300px; /* Versteckt die Sidebar außerhalb des Bildschirms */
        padding-top: 80px; /* Platz für die mobile topbar */
        background: rgba(15, 20, 15, 0.98);
        border-right: 1px solid rgba(118, 255, 3, 0.2);
        transition: left 0.3s ease; /* Weiche Einschiebe-Animation */
        z-index: 15;
    }
    
    .sidebar.open {
        left: 0; /* Schiebt die Leiste ins Bild wenn die Klasse 'open' gesetzt ist */
    }

    .brand {
        display: none; /* Versteckt den großen Menü-Titel auf dem Handy */
    }
    
    .main-wrapper {
        margin-left: 0;
        padding: 2rem 1rem 1.5rem 1rem; /* Angepasst, da die volle Topbar oben weg ist */
    }

    .main-header {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }

    .logo-frame {
        padding: 1rem 1.5rem;
    }

    .main-header h1 {
        font-size: 1.4rem;
    }

    .main-header .subtitle {
        font-size: 0.9rem;
    }

    .content {
        padding: 1.5rem;
    }

    .content header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .features {
        grid-template-columns: 1fr; /* Auf Handys untereinander anzeigen */
    }

    .impressum-columns {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}