:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --card-inner: #252525;
    --accent: #4caf50; 
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --warning: #ff9800;
    --prism-color: #f0a500;
    --bedrock-color: #69569e;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.container { max-width: 800px; margin: 0 auto; }

/* HEADER */
header { text-align: center; margin-bottom: 40px; padding-top: 20px; }
h1 { margin: 0; font-size: 2.5rem; letter-spacing: 2px; text-transform: uppercase; color: white; }
.subtitle { color: var(--accent); font-weight: bold; margin-top: 5px; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }
.header-logo { max-width: 250px; margin-bottom: 20px; display: block; margin-left: auto; margin-right: auto; }

/* WARTUNGS BOX */
.maintenance-box {
    display: none; 
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
    padding: 15px; border-radius: 8px; text-align: center; margin-bottom: 30px;
    align-items: center; justify-content: center; gap: 10px;
}

/* LIVE STATUS */
#live-status-box {
    margin-top: 20px; display: inline-flex; align-items: center; background: #2a2a2a;
    padding: 8px 18px; border-radius: 30px; font-weight: bold; font-size: 0.95rem;
    border: 1px solid #444; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.status-dot { width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; }
.is-online { background-color: #4caf50; box-shadow: 0 0 10px #4caf50; }
.is-offline { background-color: #f44336; }
.is-loading { background-color: #9e9e9e; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.5; } }

/* ACCORDION STYLES */
.accordion {
    background-color: var(--card-bg);
    color: var(--text-main);
    cursor: pointer;
    padding: 20px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.1rem;
    transition: 0.3s;
    border-radius: 8px;
    border-left: 5px solid var(--accent);
    margin-bottom: 10px;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: bold; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.accordion:hover { background-color: #2a2a2a; }
.accordion.active {
    border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; background-color: #2a2a2a;
}
.panel {
    padding: 0 20px; background-color: var(--card-inner);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out;
    margin-bottom: 10px; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px;
}
.panel-content { padding-top: 20px; padding-bottom: 20px; }
.acc-icon { font-size: 1.5rem; font-weight: bold; color: var(--accent); }

/* TAB SYSTEM */
.tabs { 
    display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 2px solid #444; 
    flex-wrap: wrap; width: 100%; 
}
.tab-btn {
    flex: 1; text-align: center;
    background: none; border: none; color: #888; padding: 10px 20px; cursor: pointer;
    font-size: 1rem; font-weight: bold; border-bottom: 3px solid transparent; transition: color 0.2s;
    min-width: 120px;
}
.tab-btn:hover { color: white; }
.tab-btn.active { color: white; border-bottom: 3px solid var(--accent); }
.tab-btn.active-prism { color: white; border-bottom-color: var(--prism-color); }

.guide-section { display: none; animation: fadeIn 0.4s; }
.guide-section.active-guide { display: block; }

/* SECTION HEADER */
.section-header {
    margin-top: 40px; margin-bottom: 15px; font-size: 1.4rem; color: var(--text-main);
    border-left: 5px solid var(--accent); padding-left: 15px; font-weight: bold;
}
.content-box {
    background-color: var(--card-bg); 
    padding: 25px; 
    border-radius: 10px;
    border: 1px solid #333; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-bottom: 40px; /* HIER: Abstand nach unten für Punkt 4 -> 5 */
}

/* FORMS & LISTS */
.instruction-list {
    background: #1a1a1a; padding: 20px 20px 20px 40px; border-radius: 8px;
    margin-bottom: 20px; border: 1px solid #333;
}
.instruction-list li { margin-bottom: 10px; padding-left: 10px; }
code { background: #111; padding: 2px 6px; border-radius: 4px; font-family: monospace; color: #ffeb3b; }

.whitelist-form { display: flex; flex-direction: column; gap: 15px; }
.form-group { display: flex; flex-direction: column; gap: 5px; position: relative; } 
.form-group label { font-size: 0.85rem; color: var(--text-muted); font-weight: bold; }
.form-group input, .form-group select {
    background: #1f1f1f; border: 1px solid #444; color: white; padding: 10px; border-radius: 5px;
}
.submit-btn {
    background: var(--accent); color: white; border: none; padding: 12px;
    border-radius: 5px; cursor: pointer; font-weight: bold; text-transform: uppercase;
}
.submit-btn:hover { background: #43a047; }

/* MAP PREVIEW & IP */
.ip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ip-card { background: #121212; padding: 15px; border-radius: 8px; text-align: center; border: 1px solid #333; }
.ip-text { font-family: monospace; color: #ffeb3b; font-size: 1.3em; display: block; margin-top: 5px; }
.map-preview {
    width: 100%; height: 200px; background-image: url('../images/bluemap.png');
    background-size: cover; background-position: center; border-radius: 8px; margin-bottom: 15px;
    border: 2px solid #333; position: relative; cursor: pointer;
}
.map-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.3); transition: background 0.2s; border-radius: 6px;
}
.map-preview:hover .map-overlay { background: rgba(0,0,0,0.1); }
.action-btn {
    display: block; text-decoration: none; color: white; font-weight: bold; padding: 12px 25px;
    border-radius: 8px; margin: 10px 0; text-align: center; transition: transform 0.2s;
}
.action-btn:hover { transform: scale(1.02); }
.btn-orange { background: linear-gradient(45deg, #FFC107, #FF9800); color: black; }
.btn-blue { background: linear-gradient(45deg, #2196F3, #1976D2); }

/* FAQ & KEYBINDS */
details {
    background: #1a1a1a; border: 1px solid #333; border-radius: 6px; margin-bottom: 10px; overflow: hidden;
}
details summary {
    padding: 12px 15px; cursor: pointer; font-weight: bold; list-style: none; display: flex; justify-content: space-between;
}
details summary::after { content: '+'; color: var(--accent); }
details[open] summary::after { content: '-'; }
.faq-answer { padding: 15px; border-top: 1px solid #333; font-size: 0.9rem; color: #bbb; }

.keybind-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.keybind-table th { text-align: left; color: var(--accent); padding: 10px; border-bottom: 1px solid #444; }
.keybind-table td { padding: 12px 10px; border-bottom: 1px solid #333; font-size: 0.9rem; color: #ccc; }
.key-icon { background: #333; border: 1px solid #555; border-radius: 4px; padding: 2px 6px; font-family: monospace; }
.footer { text-align: center; margin-top: 50px; color: #666; font-size: 0.8rem; border-top: 1px solid #333; padding-top: 20px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) { .ip-grid { grid-template-columns: 1fr; } }

/* TOOLTIP STYLES */
.info-icon {
    display: inline-block; background: #666; color: white; border-radius: 50%;
    width: 18px; height: 18px; text-align: center; line-height: 18px;
    font-size: 12px; cursor: help; margin-left: 8px; position: relative; font-weight: bold;
}
.info-icon .tooltip-text {
    visibility: hidden; width: 220px; background-color: #333; color: #fff;
    text-align: left; border-radius: 6px; padding: 10px; position: absolute; z-index: 10;
    bottom: 125%; left: 50%; margin-left: -110px;
    opacity: 0; transition: opacity 0.3s; font-weight: normal; font-size: 0.85em;
    line-height: 1.4; box-shadow: 0px 4px 10px rgba(0,0,0,0.5); border: 1px solid #555;
}
.info-icon .tooltip-text::after {
    content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px;
    border-width: 5px; border-style: solid; border-color: #333 transparent transparent transparent;
}
.info-icon:hover .tooltip-text { visibility: visible; opacity: 1; }