@font-face {
    font-family: "Minecraft Five Bold";
    src: url('/static/fonts/minecraft-five-bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'minecraft-regular';
    src: url('../fonts/minecraft-regular-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    font-family: "Minecraft Five Bold", Arial, sans-serif;
    color: white;
    overflow-y: auto;
    background-image: url('../images/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.header {
    width: 100%;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 10px;
    background: transparent;
    border-radius: 10px;
}

.colored-link {
    text-decoration: none;
    font-size: 2.2em;
    font-family: inherit;
    text-align: center;
    flex: 1;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 1), 
                -1px -1px 0 #000,  
                 1px -1px 0 #000,
                -1px  1px 0 #000,
                 1px  1px 0 #000;
}

.colored-link .yellow { color: #fce303; }
.colored-link .aqua { color: #61dafb; }
.colored-link .green { color: #00ff00; }
.colored-link .dark_blue { color: #014082; }

.colored-link:hover { text-decoration: underline; color: #5555FF }

.online-count {
    color: white;
    font-family: 'minecraft-regular', sans-serif;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid #61dafb;
}

.btn {
    background-color: #61dafb;
    border: 2px solid rgba(0, 0, 0, 0.3);
    color: white;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 10px;
    text-transform: uppercase;
    font-family: "Minecraft Five Bold";
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background-color: #21a1f1;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(97, 218, 251, 0.5);
}

.btn.transparent {
    background: transparent;
    color: white;
    border: none;
    padding: 8px 12px;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    box-shadow: none;
    text-transform: none;
}

.btn.transparent:hover {
    background: rgba(97, 218, 251, 0.2);
    transform: translateY(-2px);
}

#login-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

#login-section img {
    border-radius: 4px;
    image-rendering: pixelated;
}

.navbar {
    background-color: rgba(63, 63, 63, 0.7);
    border: 2px solid #DCDCDC;
    border-radius: 25px;
    text-align: center;
    padding: 10px 30px;
    width: fit-content;
    margin: 20px auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.navbar li a {
    text-decoration: none;
    color: white;
    font-size: 1.2em;
    padding: 8px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: inline-block;
}

.navbar li a:hover {
    background-color: #61dafb;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(97, 218, 251, 0.5);
}

/* ===== NEWS-KARTEN ===== */
.news-card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin: 32px auto 0 auto;
    max-width: 1100px;
}
.news-card {
    background: rgba(63, 63, 63, 0.7);
    border: 2px solid #DCDCDC;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
    overflow: hidden;
    width: 340px;
    min-height: 260px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 32px #61dafb33;
}
.news-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 2px solid #23272e;
}
.news-text {
    padding: 18px 16px 12px 16px;
    flex: 1;
}
.news-title {
    font-family: "Minecraft Five Bold";
    font-size: 1.3em;
    color: #61dafb;
    margin: 0 0 8px 0;
    text-shadow: 1px 1px 3px #000;
}
.news-summary {
    font-family: 'minecraft-regular', sans-serif;
    font-size: 1em;
    line-height: 1.4;
    color: white;
}

/* ===== LANG SWITCHER ===== */
.lang-switcher {
    display: flex;
    gap: 5px;
}
.lang-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #61dafb;
    padding: 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lang-btn:hover {
    transform: translateY(-2px);
    background: rgba(97, 218, 251, 0.2);
}
.flag-icon {
    width: 32px; 
    height: 24px; 
    border-radius: 4px; 
    object-fit: cover;
    filter: none;
    image-rendering: pixelated;
}

/* ===== TOP-LEFT-INFO ===== */
.top-left-info {
    position: absolute;
    top: 10px;
    left: 10px; 
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
}

/* ===== FOOTER ===== */
.footer {
    width: 100%;
    height: 120px;
    background: rgba(63, 63, 63, 0.7);
    color: #ffffff;
    text-align: center;
    padding: 24px 0 12px 0;
    margin-top: 5%;
}
.footer-content a {
    color: #61dafb;
    margin: 0 8px;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    width: 400px;
    height: 400px;
    position: fixed;
    margin: 0 auto;
    z-index: 10000;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}
.modal.active {
    display: flow;
    margin: 0 auto;
}
.modal-content {
    background: #23272e;
    color: #fff;
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 32px rgba(0,0,0,0.4);
    position: relative;
    max-width: 90vw;
    height: 80%;
}
.modal-image {
    padding: 32px 24px;
    text-align: center;
    max-width: 50%;
}
.close-btn {
    position: absolute;
    top: 12px; right: 18px;
    font-size: 2rem;
    color: #61dafb;
    cursor: pointer;
}

.modal, .modal * {
    color: #222 !important;
}

/* ===== SLIDESHOW ===== */
.slideshow {
    width: 740px;
    height: 400px;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    border: 2px solid #DCDCDC;
    background: rgba(63, 63, 63, 0.7);
}

.slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.7s ease;
    border-radius: 18px;
}

.slideshow img.active {
    opacity: 1;
    z-index: 2;
}

/* ===== SLIDESHOW MODAL ===== */
.modal.slideshow-modal {
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.modal.slideshow-modal.active {
    display: flex;
}

.slideshow-modal-content {
    background: rgba(35, 39, 46, 0.95);
    border-radius: 18px;
    padding: 12px;
    max-width: 95vw;
    max-height: 90vh;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.7);
    border: 2px solid #DCDCDC;
    overflow: hidden;
}

.slideshow-modal-inner {
    position: relative;
    width: 80vw;
    max-width: 600px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(63, 63, 63, 0.8);
    border-radius: 18px;
    border: 1px solid #61dafb;
}

.slideshow-modal-img {
    display: none;
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 18px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity 0.5s;
}

.slideshow-modal-img.active {
    display: block;
    opacity: 1;
    position: relative;
    z-index: 2;
}
@media (max-width: 900px) {
    .header {
        justify-content: center !important;
        align-items: center !important;
        padding: 10px 0 0 0 !important;
    }
    .banner-content .colored-link {
        font-size: 1.3rem !important;
        max-width: 90vw;
        padding: 0 !important;
        margin: 0 auto !important;
        display: inline-block;
        word-break: break-all;
    }
    .banner-content {
        padding: 0 !important;
        margin: 0 auto !important;
        max-width: 95vw;
    }
    .login-section,
    #login-section {
        display: none !important;
    }
    .navbar,
    .top-left-info {
        display: none !important;
    }
    .news-card-container {
        flex-direction: column;
        gap: 10px;
        margin-top: 16px;
    }
    .news-card {
        width: 98vw;
        min-width: 0;
        font-size: 0.9em;
        margin-bottom: 10px;
        height: auto;
        min-height: 180px;
    }
    .news-image {
        height: 60px;
    }
    .modal-content {
        padding: 18px 6vw;
        font-size: 1em;
    }
    #slideshow-container {
        display: none !important;
    }
}

/* ===== MOBILE BOTTOM NAVIGATION ===== */
@media (max-width: 900px) {
  .mobile-bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 24px;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 9999;
    background: none;
    pointer-events: none;
    height: 100px;
  }
  .mobile-bottom-nav .nav-btn {
    pointer-events: auto;
    border: none;
    outline: none;
    background: #23272e;
    color: #fff;
    font-size: 2.5rem;
    height: 72px;
    width: 72px;
    margin: 0 18px;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
  }
  .mobile-bottom-nav .nav-home {
    background: #23272e;
    color: #61dafb;
    border-radius: 50%;
    border: 3px solid #23272e;
    box-shadow: 0 4px 24px rgba(97,218,251,0.18);
    font-size: 2.8rem;
    z-index: 2;
  }
  .mobile-bottom-nav .nav-btn:active,
  .mobile-bottom-nav .nav-btn:focus {
    background: #2d323b;
    color: #61dafb;
  }
  .mobile-nav-menu {
    display: none;
    position: absolute;
    bottom: 90px;
    right: 0;
    left: 0;
    margin: 0 auto;
    background: #23272e;
    border-radius: 18px 18px 18px 18px;
    box-shadow: 0 -2px 24px rgba(0,0,0,0.25);
    padding: 18px 0 12px 0;
    width: 92vw;
    max-width: 340px;
    text-align: center;
    animation: menuDown 0.3s;
    z-index: 10;
  }
  .mobile-nav-menu.active {
    display: block;
    animation: menuUp 0.3s;
    pointer-events: auto;
  }
  .mobile-nav-menu.active::before {
    content: "";
    position: fixed;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: -1;
  }
  .mobile-nav-menu a {
    display: block;
    color: #fff;
    padding: 14px 0;
    font-size: 1.2em;
    text-decoration: none;
    border-bottom: 1px solid #333;
    transition: background 0.2s;
  }
  .mobile-nav-menu a:last-child {
    border-bottom: none;
  }
  .mobile-nav-menu a:hover {
    background: #61dafb22;
    color: #61dafb;
  }
  @keyframes menuUp {
    from { opacity: 0; transform: translateY(40px);}
    to   { opacity: 1; transform: translateY(0);}
  }
  @keyframes menuDown {
    from { opacity: 1; transform: translateY(0);}
    to   { opacity: 0; transform: translateY(40px);}
  }
}
@media (min-width: 901px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

#modal-content, #modal-content pre {
    color: #222;
}

.nav-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    margin: 38px auto 36px auto;
    padding: 16px 38px;
    background: #3a5266cc;
    border-radius: 28px;
    box-shadow: 0 2px 18px #0002;
    width: fit-content;
    border: 2px solid #fff;
    font-family: 'Minecraft Five Bold', Arial, sans-serif;
}

.nav-link {
    color: #fff;
    font-size: 1.25em;
    text-decoration: none;
    padding: 10px 36px;
    border-radius: 8px;
    transition: background 0.18s, color 0.18s;
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    outline: none;
}

.nav-link.active, .nav-link:hover {
    background: #fff;
    color: #3a5266;
    box-shadow: 0 2px 12px #fff3;
}


.build-section,
.build-section input,
.build-section select,
.build-section button,
.build-item {
    color: #222; /* dunkler Text */
}

.build-section h2 {
    color: #333; /* Überschrift etwas dunkler */
}

.build-section input,
.build-section select,
.build-section button {
    background-color: #ffffff;
    border: 1px solid #aaa;
}

.build-item {
    background-color: #f1f1f1;
    border-left-color: #ffa500;
}

/* ===== WARTUNGSMELDUNG ===== */
.maintenance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.maintenance-overlay.active {
    opacity: 1;
}

.maintenance-content {
    background: #23272e;
    border: 2px solid #61dafb;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(50px);
    transition: transform 0.5s ease;
}

.maintenance-overlay.active .maintenance-content {
    transform: translateY(0);
}

.maintenance-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: maintenance-pulse 2s infinite;
}

.maintenance-content h2 {
    color: #61dafb;
    font-family: "Minecraft Five Bold", Arial, sans-serif;
    font-size: 2rem;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.maintenance-content p {
    color: white;
    font-family: 'minecraft-regular', sans-serif;
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 15px 0;
}

.countdown-title {
    color: #61dafb;
    font-family: "Minecraft Five Bold", Arial, sans-serif;
    font-size: 1.2rem;
    text-align: center;
    margin: 20px 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.maintenance-countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 10px auto 0;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(97, 218, 251, 0.1);
    border: 2px solid #61dafb;
    border-radius: 10px;
    padding: 15px 10px;
    min-width: 70px;
}

.countdown-number {
    font-size: 2rem;
    font-weight: bold;
    color: #61dafb;
    font-family: "Minecraft Five Bold", Arial, sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.countdown-label {
    font-size: 0.9rem;
    color: white;
    font-family: 'minecraft-regular', sans-serif;
    margin-top: 5px;
}

@keyframes maintenance-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Mobile Anpassungen für Wartungsmeldung */
@media (max-width: 900px) {
    .maintenance-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .maintenance-content h2 {
        font-size: 1.5rem;
    }
    
    .maintenance-content p {
        font-size: 1rem;
    }
    
    .maintenance-icon {
        font-size: 3rem;
    }
    
    .maintenance-countdown {
        gap: 10px;
    }
    
    .countdown-item {
        padding: 10px 8px;
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
}
