/* Grund-Setup */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #0a0a0a;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    overflow: hidden;
}

.container {
    max-width: 650px;
    padding: 50px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 0 60px rgba(255, 85, 0, 0.3);
}

.logo {
    width: 220px;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 25px rgba(255, 85, 0, 0.5));
}

h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #ff3c00, #ff7a00, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(255, 85, 0, 0.4);
}

p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ccc;
}

/* Synchroner Loader */
.loader {
    position: relative;
    width: 55px;
    height: 55px;
    margin: 0 auto;
    border-radius: 50%;
    border: 6px solid transparent;
    border-top: 6px solid #ff4d00;
    /* Die Animation wird nur einmal auf dem Eltern-Element definiert */
    animation: spin 1s linear infinite;
}

/* Der Glow (Pseudo-Element) */
.loader::before {
    content: "";
    position: absolute;
    /* Inset -6px korrigiert die Positionierung durch den Border */
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 6px solid transparent;
    border-top: 6px solid rgba(255, 120, 0, 0.9);
    filter: blur(8px);
    /* Keine eigene Animation nötig, da es sich mit dem Parent mitdreht */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

footer {
    margin-top: 30px;
    font-size: 0.9em;
    opacity: 0.5;
}

/* --- SHOWCASE ERWEITERUNG --- */

.showcase-page {
    height: auto;
    min-height: 100vh;
    flex-direction: column;
    overflow-y: auto;
    padding: 60px 20px;
    background: #0a0a0a; /* Tiefschwarz wie in deinem Design */
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    height: 400px; /* Feste Höhe für den Bild-Look */
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end; /* Text klebt unten */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease;
}

/* --- FINALES DESIGN: COLLAPSING PADDING MIT DOPPELTEM ORANGE GLOW --- */

.showcase-page {
    background: #0a0a0a; /* Tiefschwarz */
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    overflow-x: hidden; /* Verhindert horizontales Scrollen durch Glow */
}

.project-grid {
    display: grid;
    /* Festgelegt auf genau 2 Spalten, solange Platz da ist */
    grid-template-columns: repeat(2, 1fr); 
    gap: 60px; /* Etwas mehr Abstand für den äußeren Glow */
    width: 100%;
    max-width: 1000px; /* Schmaler für 2 Karten */
    margin: 50px auto 0 auto;
}

/* Responsive Fix: Auf Handys untereinander */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.project-card {
    position: relative;
    height: 500px; /* Gesamthöhe */
    display: flex;
    flex-direction: column;
    background: transparent;
    cursor: pointer;
    /* Damit der äußere Glow der inneren Elemente nicht abgeschnitten wird */
    overflow: visible; 
}

/* Bild-Container (Trägt den äußeren Glow) */
.image-wrapper {
    position: relative;
    width: 100%;
    height: 380px; /* Standardhöhe */
    border-radius: 24px; /* Etwas runder für Glow */
    overflow: hidden; /* Wichtig für das Bild */
    border: 1px solid rgba(255, 85, 0, 0.1);
    
    /* WICHTIG: Transition für Box-Shadow hinzugefügt */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Das Glas-Overlay (Blur & Inner Glow) */
.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    
    /* WICHTIG: Transition für Box-Shadow hinzugefügt */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

/* Text-Bereich */
.card-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 120px; /* Padding-Bereich */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 3;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* --- HOVER EFFEKT: DOPPELTER GLOW --- */

/* 1. Das Padding verschwindet, Bild dehnt sich aus */
.project-card:hover .image-wrapper {
    height: 100%; 
    border-color: #ff5500;
    
    /* --- ÄUSSERER ORANGE GLOW FÜR DIE GESAMTE KARTE --- */
    box-shadow: 0 0 60px rgba(255, 85, 0, 0.4), /* Äußerer Glow */
                0 0 30px rgba(255, 85, 0, 0.2);  /* Zweite, weichere Ebene */
}

/* 2. Frosted Glass mit Inner Glow */
.project-card:hover .glass-overlay {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.6); 
    
    /* --- INNERER ORANGE GLOW FÜR DAS GLAS --- */
    box-shadow: inset 0 0 80px rgba(255, 85, 0, 0.6), /* Tiefer innerer Glow */
                inset 0 0 30px rgba(255, 85, 0, 0.3);  /* Zweite Ebene für Intensität */
    
    /* Eine dünne, glühende Kante oben am Glas */
    border-top: 1px solid #ff7a00;
}

/* 3. Text zentriert sich */
.project-card:hover .card-info {
    height: 100%; 
    bottom: 0;
}

.project-card:hover .card-bg {
    transform: scale(1.1);
}

/* Styling Details */
h3 {
    margin: 0;
    font-size: 2em;
    background: #DFDFDF;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

p {
    color: #ccc;
    margin: 10px 0;
    font-size: 0.9em;
    max-width: 85%;
}

.btn-details {
    color: #ff5500;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85em;
    letter-spacing: 1.5px;
    transition: 0.3s ease;
}

.btn-details:hover {
    text-shadow: 0 0 15px #ff5500;
    transform: translateY(-2px);
}
/* --- HEADER NAVIGATION (NEU) --- */
.main-header {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between; /* Trennt Logo und Nav */
    align-items: center;
    padding: 20px 40px;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.main-header .logo {
    width: 150px; /* Kompakter für den Header */
    margin-bottom: 0;
}

.main-header nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-header nav a {
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
    transition: 0.3s;
    opacity: 0.7;
}

.main-header nav a:hover {
    opacity: 1;
    color: #ff5500 !important;
    text-shadow: 0 0 10px rgba(255, 85, 0, 0.5);
}

/* --- SHOWCASE PAGE LAYOUT KORREKTUR --- */
.showcase-page {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Startet oben statt mittig */
    align-items: center;
    height: auto;
    min-height: 100vh;
    overflow-y: auto; /* Scrollen erlauben */
    padding-top: 140px; /* Platz für den Header */
}

/* --- GRID ANPASSUNG (2 SPALTEN) --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Genau zwei Spalten */
    gap: 60px;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
}

/* --- DEIN BESTEHENDER CARD-CODE MIT GLOW --- */
.project-card {
    position: relative;
    height: 500px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: visible;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 85, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .image-wrapper {
    height: 100%; 
    border-color: #ff5500;
    box-shadow: 0 0 60px rgba(255, 85, 0, 0.4); /* Äußerer Glow */
}

.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: all 0.5s ease;
    z-index: 2;
}

.project-card:hover .glass-overlay {
    backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: inset 0 0 80px rgba(255, 85, 0, 0.6); /* Innerer Glow */
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
    .main-header {
        flex-direction: column;
        gap: 20px;
        position: relative;
        transform: none;
        left: 0;
    }
    .showcase-page {
        padding-top: 40px;
    }
}
/* --- HEADER NAVIGATION ANPASSUNG --- */
.main-header nav ul li a {
    color: #888888; /* Ein sauberes Mittelgrau */
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
    transition: 0.3s;
}

.main-header nav ul li a:hover {
    color: #ff5500; /* Springt beim Hover auf Orange */
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 85, 0, 0.5);
}

/* Erlaubt der Karte, Klicks zu registrieren */
.project-card {
    position: relative;
    /* ... dein restlicher Code ... */
}

/* Der unsichtbare Layer über der ganzen Karte */
.full-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Höchster Index, damit er über Glas und Text liegt */
    text-decoration: none;
}

/* Sicherstellen, dass die card-info keine Klicks "frisst" */
.card-info {
    pointer-events: none; /* Klicks gehen durch auf den .full-card-link */
}

/* Da btn-details jetzt ein span ist, stylen wir es so weiter */
.btn-details {
    color: #ff5500;
    font-weight: bold;
    font-size: 0.85em;
    letter-spacing: 1.5px;
    margin-top: 10px;
}

/* Server-Grid Layout */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

/* Card-Design im FFproject-Stil */
.server-card {
    background: rgba(255, 255, 255, 0.03); /* Dezenter Glanzeffekt */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    transition: all 0.3s ease;
}

.server-card:hover {
    /* Rahmenfarbe passend zum Glow */
    border-color: #ff5500;
    
    /* Hintergrund wird etwas dunkler/intensiver */
    background: rgba(255, 85, 0, 0.08);
    
    /* Der magische Glow: 
       1. Wert: Normaler Schatten nach außen
       2. Wert: 'inset' Schatten nach innen */
    box-shadow: 
        0 0 25px rgba(255, 85, 0, 0.4), 
        inset 0 0 15px rgba(255, 85, 0, 0.2);
    
    /* Karte hebt sich leicht an */
    transform: translateY(-8px) scale(1.01);
}

/* Optional: Den Button beim Hovern auch in Orange anpassen, damit es einheitlich ist */
.server-card:hover .connect-btn {
    background: #ff5500;
    box-shadow: 0 0 15px rgba(255, 85, 0, 0.5);
}

/* Status-Punkt Animation */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.running { 
    background: #00ff88; 
    box-shadow: 0 0 12px #00ff88; 
    animation: pulse-green 2s infinite;
}

.dot.offline { background: #ff4b2b; }

@keyframes pulse-green {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.server-stats {
    font-family: 'Courier New', monospace; /* Technischer Look */
    font-size: 0.9rem;
    color: #888;
}

/* --- BeamMP Server Page Styles --- */

.server-grid {
    display: grid;
    /* Erzwingt exakt 2 Spalten auf Desktop-Bildschirmen */
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
    margin: 50px auto;
    max-width: 1200px; /* Begrenzt die Gesamtbreite, damit es nicht zu gestreckt wirkt */
}

/* Responsive Fix: Auf Handys soll es trotzdem nur 1 Spalte sein */
@media (max-width: 800px) {
    .server-grid {
        grid-template-columns: 1fr;
    }
}

.server-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px; /* Noch etwas mehr Platz für die "Größe" */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px; /* Höhere Karten für mehr Präsenz */
}

/* ... Rest deiner Styles bleibt gleich ... */

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot.running { 
    background: #00ff88; 
    box-shadow: 0 0 15px #00ff88; 
    animation: pulse-glow 2s infinite;
}

.dot.offline { 
    background: #ff4b2b; 
    box-shadow: 0 0 10px rgba(255, 75, 43, 0.3);
}

@keyframes pulse-glow {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.server-card h3 {
    font-size: 1.8rem;
    margin: 15px 0;
    color: #ffffff;
    font-weight: 700;
}

.hardware-info {
    font-family: 'Consolas', 'Monaco', monospace;
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 25px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.6;
}

.connect-btn {
    display: block;
    text-align: center;
    background: rgba(255, 85, 0, 0.1);
    color: #fff !important;
    text-decoration: none;
    padding: 18px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: auto;
    border: none;
    cursor: pointer;
}

.connect-btn:hover {
    background: #0056b3;
    box-shadow: 0 0 25px rgba(0, 123, 255, 0.5);
    transform: translateY(-2px);
}

.connect-btn.disabled {
    background: #222;
    color: #555 !important;
    pointer-events: none;
    border: 1px solid #333;
}

/* Zentriert die einzelne Minecraft-Karte */
.single-server-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    padding: 20px;
}

.minecraft-card {
    max-width: 600px; /* Breiter als die BeamMP-Karten */
    width: 100%;
    /* Der orange Glow passt auch hier super! */
}

/* --- CSS FÜR DEN MINECRAFT COPY BUTTON --- */

.connect-btn {
    /* Wichtig: Diese Klasse muss jetzt für <a> UND <button> funktionieren */
    display: inline-block; /* Für Zentrierung, falls nötig */
    width: 100%;           /* Füllt die Karte aus */
    max-width: 300px;     /* Verhindert, dass er zu breit wird */
    margin: 20px auto 0 auto; /* Oben Abstand, Links/Rechts Auto zum Zentrieren */
    padding: 15px 30px;
    
    /* Farbe und Glow (Orange) */
    background: rgba(255, 85, 0, 0.1) !important; 
    border: 1px solid #ff5500 !important;
    color: #ff5500 !important;
    box-shadow: 0 0 10px rgba(255, 85, 0, 0.3) !important;

    /* Typografie */
    text-decoration: none !important; /* Wichtig für <a> */
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    
    /* Animation und Abrundung */
    border-radius: 8px;
    transition: all 0.3s ease !important;
    cursor: pointer; /* Wichtig für <button> */
    
    /* WICHTIG: Überschreibt Browser-Standards für <button> */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

/* Hover-Effekt */
.connect-btn:hover {
    background: #ff5500 !important;
    color: #fff !important;
    box-shadow: 0 0 25px rgba(255, 85, 0, 0.6) !important;
    transform: translateY(-2px);
}

/* Deaktivierter Zustand */
.connect-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #333 !important;
    border-color: #555 !important;
    color: #888 !important;
    box-shadow: none !important;
}