@import url('https://fonts.googleapis.com/css2?family=Nosifer&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Metal+Mania&display=swap');

/* --- Globale Stile & DayZ-Hintergrund --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #141414;
    color: #DCDCDC;
    line-height: 1.6;
    background-image: url('zombie-apocalypse.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(20, 20, 20, 0.7);
    backdrop-filter: brightness(0.4) blur(3px);
    z-index: -1;
}

/* --- Landing Page --- */
/* --- Landing Page --- */
#landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 200;
    color: #fff;
    padding: 0;
    box-sizing: border-box;
    background: rgba(12, 12, 12, 0.5);
    overflow-y: auto;
}

.landing-content {
    max-width: 600px;
    width: 96vw;
    margin: 5vh auto 0 auto;
    padding: 20px 10px 80px 10px;
    background: rgba(26, 26, 26, 0.88);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    position: relative;
    min-height: 300px;
}

.landing-content h1 {
    font-family: 'Nosifer', cursive;
    font-size: 3em;
    color: #d8b857;
    text-shadow: 0 0 15px rgba(216, 184, 87, 0.8);
    margin-bottom: 20px;
}

.landing-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

#enter-site-btn {
    font-family: 'Metal Mania', cursive;
    font-size: 1.5em;
    padding: 15px 30px;
    background-color: #d8b857;
    border: 2px solid #b59546;
    box-shadow: 0 0 10px rgba(216, 184, 87, 0.5);
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 400px;
    z-index: 300;
}

#enter-site-btn:hover {
    background-color: #b59546;
    color: #f1c232;
    border-color: #d8b857;
    transform: translateY(-2px);
}


/* --- Layout Container --- */
.layout-container {
    display: flex;
    height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
    width: 280px;
    color: #f1c232;
    text-shadow: 0 0 10px rgba(241, 194, 50, 0.7);
    background-color: rgba(30, 30, 30, 0.85);
    border-right: 2px solid #444;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100vh;
    box-shadow: 2px 0 12px rgba(0,0,0,0.4);
    box-sizing: border-box;
}

.main-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
    padding: 20px;
    color: #f1c232;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav li {
    margin-bottom: 10px;
}

.main-nav a {
    display: block;
    padding: 12px 15px;
    color: #eee;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    font-weight: bold;
}

.main-nav a:hover {
    background-color: rgba(60, 60, 60, 0.7);
    color: #d8b857;
}

.main-nav a.active {
    background-color: #d8b857;
    color: #fff;
    box-shadow: 0 0 8px rgba(216, 184, 87, 0.5);
}

.support-btn, .youtube-btn {
    display: block;
    padding: 12px 15px;
    color: #f0f0f0;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    margin: 10px auto 0 auto;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: bold;
    width: 90%;
}

.support-btn {
    background-color: #4CAF50; /* Green */
}

.youtube-btn {
    background-color: #FF0000; /* Red */
}

.support-btn:hover, .youtube-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.sidebar-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #444;
    background-color: #2c2c2c;
    flex-shrink: 0;
}

.discord-btn {
    display: block;
    width: 90%;
    background: #5865F2;
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 12px 0;
    border-radius: 10px;
    margin: 0 auto;
    font-size: 1.1em;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    transition: background 0.2s, transform 0.2s;
    letter-spacing: 1px;
}
.discord-btn:hover {
    background: #4752c4;
    transform: scale(1.04);
}

/* --- Main Content Area --- */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 30px 40px;
    background-color: transparent;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(212, 106, 71, 0.5);
}

.page-header h1 {
    color: #d8b857;
    font-size: 2.5em;
    margin: 0;
    text-shadow: 0 0 10px rgba(216, 184, 87, 0.7);
    font-family: 'Metal Mania', cursive;
}

.content-section {
    background-color: rgba(30, 30, 30, 0.8);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.content-section h2 {
    color: #D46A47;
    margin-top: 0;
    border-bottom: 1px solid rgba(216, 184, 87, 0.3);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-family: 'Metal Mania', cursive;
}

.content-section p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.content-section ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.content-section ul li {
    margin-bottom: 5px;
}

.content-section a {
    color: #d8b857;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-section a:hover {
    color: #d8b857;
}

.hidden-section {
    display: none !important;
}

/* --- Tool-spezifische Stile --- */
.tool-content-editor,
.tool-content-weather,
.tool-content-dze-converter,
.tool-content-placeholder {
    padding: 20px;
    background-color: rgba(40, 40, 40, 0.9);
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.tool-content-editor h3,
.tool-content-weather h3,
.tool-content-dze-converter h3,
.tool-content-placeholder h3 {
    color: #D46A47;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Metal Mania', cursive;
}

textarea {
    width: calc(100% - 22px);
    height: 300px;
    background-color: #090000;
    border: 1px solid #f6f1f1;
    color: #eee7e7;
    padding: 10px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    border-radius: 5px;
    resize: vertical;
    margin-bottom: 15px;
}

button {
    background-color: #d8b857;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-right: 10px;
    font-family: 'Metal Mania', cursive;
}

button:hover {
    background-color: #b59546;
    transform: translateY(-2px);
}

.download-button {
    background-color: #28a745;
}

.download-button:hover {
    background-color: #218838;
}

.hidden-button {
    display: none;
}

.input-group input[type="number"] {
    flex: 0 0 60px;
    padding: 8px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #333;
    color: #eee;
    text-align: right;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    #landing-page {
        padding: 0;
        min-height: 100dvh;
        height: 100dvh;
        align-items: flex-start;
        justify-content: flex-start;
        overflow-y: auto;
    }
    .landing-content {
        max-width: 98vw;
        width: 100vw;
        margin: 0 auto;
        padding: 10px 2vw 80px 2vw;
        box-sizing: border-box;
        min-height: 200px;
    }
    #enter-site-btn {
        width: 96vw;
        font-size: 1.1em;
        padding: 18px 0;
        margin-top: 0;
        left: 50%;
        bottom: 16px;
        transform: translateX(-50%);
        max-width: 400px;
    }
    .layout-container {
        flex-direction: column;
        height: auto;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        padding-bottom: 10px;
        max-height: 50vh;
    }
    .main-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-nav li {
        margin: 5px;
    }
    .main-nav a {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    .sidebar-footer {
       padding: 10px;
    }
    .content-area {
        padding: 10px 2vw;
    }
    .page-header h1 {
        font-size: 1.1em;
    }
    .content-section {
        padding: 10px 2vw;
    }
    button {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Accordion Styles */
.accordion-button {
    background-color: #333;
    color: #eee;
    cursor: pointer;
    padding: 12px 15px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: background-color 0.3s ease;
    font-size: 1.1em;
    border-bottom: 1px solid #555;
    margin-top: 10px;
    border-radius: 5px;
}

.accordion-button:hover, .accordion-button.active {
    background-color: #555;
}

.accordion-button:after {
    content: '\002B'; /* Plus sign */
    color: #eee;
    font-weight: bold;
    float: right;
    margin-left: 5px;
}

.accordion-button.active:after {
    content: "\2212"; /* Minus sign */
}

.accordion-panel {
    padding: 15px;
    background-color: #2a2a2a;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    border: 1px solid #444;
    border-top: none;
    border-radius: 0 0 5px 5px;
    margin-bottom: 10px;
}

.accordion-panel.show {
    max-height: 1000px; /* Adjust as needed */
}
