/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FEB601;
    --secondary-color: #082755;
    --dark-bg: #001428;
    --card-bg: #082755;
    --card-hover: #0a3166;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --minecraft-green: #FEB601;
    --minecraft-gold: #FEB601;
    --error-color: #e74c3c;
}

html, body {
    margin: 0;
    padding: 0;
    background: #000000 !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg) !important;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animierter Sternenhimmel */
.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -1;
}

.stars {
    background: #000 url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQIW2P4//+/MxMDAwMDAwAT+gP9s1xmFAAAAABJRU5ErkJggg==') repeat top center;
}

.twinkling {
    background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==') repeat top center;
    animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

/* Navigation */
.navbar {
    background: rgba(26, 31, 53, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(254, 182, 1, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--minecraft-green);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-logo img {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(254, 182, 1, 0.5));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-menu a:hover, .nav-menu a.active {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(254, 182, 1, 0.4);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    position: relative;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1s ease;
}

.hero-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 30px rgba(254, 182, 1, 0.8));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--minecraft-green), var(--minecraft-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(254, 182, 1, 0.5);
}

.glitch {
    position: relative;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    91% { transform: translate(-2px, 2px); }
    92% { transform: translate(2px, -2px); }
}

.server-description {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Server IP Box */
.server-ip-box {
    background: var(--card-bg);
    border: 3px solid var(--primary-color);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(254, 182, 1, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(254, 182, 1, 0.3); }
    50% { box-shadow: 0 8px 32px rgba(254, 182, 1, 0.6); }
}

.ip-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ip-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.ip-text {
    font-size: 2rem;
    font-weight: bold;
    color: var(--minecraft-green);
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(85, 255, 85, 0.5);
}

.copy-btn {
    background: var(--primary-color);
    border: none;
    color: var(--dark-bg);
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.copy-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(254, 182, 1, 0.5);
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #ffcc33);
    color: var(--dark-bg);
    box-shadow: 0 4px 15px rgba(254, 182, 1, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(254, 182, 1, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
    display: block;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: rgba(26, 31, 53, 0.5);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--minecraft-green);
    text-shadow: 0 0 20px rgba(85, 255, 85, 0.5);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(254, 182, 1, 0.3);
    background: var(--card-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--minecraft-green);
}

.feature-card p {
    color: var(--text-secondary);
}

/* Shop Preview Section */
.shop-preview-section {
    padding: 6rem 0;
}

.shop-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.shop-preview-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.shop-preview-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(254, 182, 1, 0.4);
}

.shop-preview-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(254, 182, 1, 0.5));
}

.shop-preview-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--minecraft-green);
}

.shop-preview-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--minecraft-gold);
    margin: 1.5rem 0;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

/* Shop Section */
.shop-section {
    min-height: 80vh;
    padding: 4rem 0;
    background: transparent;
}

.page-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--minecraft-green);
    text-shadow: 0 0 20px rgba(85, 255, 85, 0.5);
}

.page-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.shop-item-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.shop-item-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(254, 182, 1, 0.4);
}

.shop-item-header {
    background: linear-gradient(135deg, var(--card-hover), var(--card-bg));
    padding: 2rem;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
}

.shop-item-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(254, 182, 1, 0.6));
    animation: float 3s ease-in-out infinite;
}

.shop-item-header h2 {
    font-size: 2rem;
    color: var(--minecraft-green);
}

.shop-item-body {
    padding: 2rem;
}

.shop-item-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.shop-item-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--minecraft-gold);
    text-align: center;
    margin: 2rem 0;
    text-shadow: 0 0 15px rgba(255, 170, 0, 0.6);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 3rem;
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s ease;
    box-shadow: 0 10px 50px rgba(254, 182, 1, 0.3);
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    color: var(--text-secondary);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--error-color);
    transform: rotate(90deg);
}

.modal-content h2 {
    color: var(--minecraft-green);
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: var(--dark-bg);
    border: 2px solid var(--card-hover);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(254, 182, 1, 0.3);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.color-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.color-input-group input[type="text"] {
    flex: 1;
}

.color-input-group input[type="color"] {
    width: 60px;
    height: 50px;
    border: 2px solid var(--card-hover);
    border-radius: 8px;
    cursor: pointer;
    background: var(--dark-bg);
}

.color-input-group input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 4px;
}

.color-input-group input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.color-btn {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid var(--card-hover);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.color-btn:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(254, 182, 1, 0.5);
}

.color-btn:active {
    transform: scale(0.95);
}

.price-display {
    background: var(--dark-bg);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    font-size: 1.3rem;
    border: 2px solid var(--primary-color);
}

.price-amount {
    color: var(--minecraft-gold);
    font-weight: bold;
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

/* Success Modal */
.success-content {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #2c3e50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 2rem;
    animation: successPop 0.5s ease;
    color: var(--primary-color);
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.code-box {
    background: var(--dark-bg);
    border: 3px solid var(--primary-color);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.code-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.code-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--minecraft-green);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    text-shadow: 0 0 10px rgba(85, 255, 85, 0.5);
}

.success-message {
    margin: 2rem 0;
    color: var(--text-secondary);
    line-height: 1.8;
}

.success-message strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--card-bg);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
    border-top: 2px solid var(--primary-color);
}

.footer p {
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Password Overlay */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.password-overlay.hidden {
    display: none;
}

.password-box {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 3px solid var(--primary-color);
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 50px rgba(254, 182, 1, 0.3);
    animation: slideDown 0.5s ease;
}

.password-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(254, 182, 1, 0.6));
}

.password-box h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.password-box p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.password-box input {
    width: 100%;
    padding: 1rem;
    background: var(--dark-bg);
    border: 2px solid var(--card-hover);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.password-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(254, 182, 1, 0.3);
}

.password-error {
    color: var(--error-color);
    margin-top: 1rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .server-description {
        font-size: 1.2rem;
    }
    
    .ip-text {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .features-grid, .shop-grid, .shop-preview-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        padding: 2rem;
        margin: 10% auto;
    }
}
