* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.project-image {
    background-image: url('images/minecraft-server-preview.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Spezifische Bilder für verschiedene Projekte */
.project-card:nth-child(1) .project-image {
    background-image: url('images/astravale-preview.jpg');
}

.project-card:nth-child(2) .project-image {
    background-image: url('images/plugins-preview.jpg');
}

.project-image, .plugin-image, .server-image {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Verhältnis beibehalten */
    border-bottom: 1px solid #333;
}

/* Header */
header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 1rem 0;
    border-bottom: 2px solid #333;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

nav a:hover, nav a.active {
    color: #ffffff;
    border: 1px solid #ffffff;
    box-shadow: 0 0 10px rgba(162, 161, 161, 0.578);
}

/* Main Content */
main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

h1 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

/* ASCII Art */
.ascii-art {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 0.8rem;
    color: #ffffff;
    background: #111;
    padding: 2rem;
    border: 1px solid #333;
    font-family: 'Courier New', monospace;
}

/* Description */
.description {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 1.2rem;
}

.description h1 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 2rem;
}

/* Skills */
.skills {
    margin-bottom: 4rem;
}

.skills h2 {
    color: #d7d7d7;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 2rem;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.skill-card:hover {
    border-color: #ededed;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.skill-card h3 {
    color: #ffffff;
    margin-bottom: 1rem;
}

/* Projects */
.projects {
    margin-bottom: 4rem;
}

.projects h2 {
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.5rem;
}

/* Project Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid #333;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-cards {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid #333;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 35px;
}

/* Hinzufügen nach den bestehenden .project-card, .plugin-card, .server-card Regeln */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-title {
    margin: 0;
}

.website-btn {
    background: transparent;
    border: 1px solid #f0f0f0;
    color: #e7e7e7;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.website-btn:hover {
    background: #60606000;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.website-btn:visited {
    color: #9fa5ff;
}

.project-card:hover {
    border-color: #eeeeee;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1rem;
}

.project-content {
    padding: 1.5rem;
}

.project-card h3 {
    color: #f2f2f2;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-card p {
    margin-bottom: 1rem;
}

.project-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border: 1px solid;
    z-index: 2;
}

/* Plugin Grid */
.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.plugin-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid #333;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plugin-card:hover {
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.plugin-image {
    width: 100%;
    height: 200px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1rem;
}

.plugin-content {
    padding: 1.5rem;
}

.plugin-card h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.plugin-card p {
    margin-bottom: 1rem;
}

.plugin-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border: 1px solid;
    z-index: 2;
}

/* Server Grid */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.server-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid #333;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.server-card:hover {
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.server-card.inactive {
    opacity: 0.6;
}

.server-card.inactive:hover {
    border-color: #666;
    box-shadow: 0 0 20px rgba(102, 102, 102, 0.2);
}

.server-image {
    width: 100%;
    height: 200px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1rem;
    transition: filter 0.3s ease;
}

.server-card.inactive .server-image {
    filter: grayscale(100%);
    background: #222;
}

.server-content {
    padding: 1.5rem;
}

.server-card h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.server-card.inactive h3 {
    color: #888;
}

.server-card p {
    margin-bottom: 1rem;
}

.server-card.inactive p {
    color: #999;
}

.server-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border: 1px solid;
    z-index: 2;
}

.status-active {
    color: #00ff88;
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.status-inactive {
    color: #ff6b6b;
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

/* Badge Styles */
.badge-handmade {
    color: #00ff88;
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.badge-ai {
    color: #ff6b6b;
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    margin: 5% auto;
    padding: 2rem;
    border: 2px solid #333;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
}

.close:hover {
    color: #ffffff;
}

.modal h2 {
    color: #e7e7e7;
    margin-bottom: 2rem;
    padding-right: 50px;
}

.modal h3{
    color: #ffffff; 
    margin-top: 2rem;
}

.modal-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.modal-image {
    width: 100%;
    height: 150px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border: 1px solid #444;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.stat-item {
    background: #333;
    padding: 1rem;
    border: 1px solid #444;
    text-align: center;
}

.stat-value {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
    color: #ccc;
}

/* Footer */
footer {
    background: #1a1a1a;
    padding: 2rem 0;
    border-top: 2px solid #333;
    text-align: center;
}

footer a {
    color: #e0e0e0;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .ascii-art {
        font-size: 0.6rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .servers-grid {
        grid-template-columns: 1fr;
    }
                
    .plugins-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}