/* --------------- Globaler Reset --------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* -------- Webfont global setzen -------- */
body, html, p, h1, h2, h3, h4, h5, h6, a, li, span, div, input, textarea, button, select {
    font-family: 'Titillium Web', sans-serif;
}

/* --------------- Body --------------- */
body {
      font-family: 'Titillium Web', sans-serif;
  font-weight: 400;
      background-color: #121212; /* Sehr dunkler Hintergrund */
    color: #e0e0e0; /* Helle Schriftfarbe für guten Kontrast */
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center; /* Zentriert den Hauptinhalt */
    margin: 0;
}

/* --------------- Header --------------- */
header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2b2b2b;
    padding: 10px 20px; /* Reduziert Höhe */
    position: relative;
    box-shadow: none;
}

/* Optional: zusätzliche Höhenreduzierung durch kleinere Schrift und Logos */
.logo {
    font-size: 20px; /* Kleiner als vorher */
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 0.2em #000, 0 0 0.2em #000;
}

.logo img {
    max-height: 30px; /* Ggf. kleinere Höhe für Logos */
}

/* --------------- Suche (vormals inline) --------------- */
.search-bar {
    margin: 0 10px;
    flex-grow: 1;
    max-width: 450px;
}

.search-bar form {
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 6px 10px; /* Weniger Padding für weniger Höhe */
    border-radius: 20px;
    border: 1.5px solid #ccc;
    font-size: 14px; /* Kleinerer Text */
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    text-align: center;
}

.search-input::placeholder {
    text-align: center;
    color: #888;
}

.search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    text-align: left;
}

/* --------------- Navigation --------------- */
.navbar {
    display: flex;
    gap: 8px; /* Weniger Abstand */
}

.navbar a {
    background-color: #2b2b2b;
    color: #fff;
    text-decoration: none;
    font-size: 14px; /* Kleinerer Text */
    padding: 6px 14px; /* Weniger Padding */
    border-radius: 4px;
    transition: background-color 0.3s ease, border-radius 0.3s ease, border-color 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
    background-color: #000;
    border-radius: 8px;
    border-color: #222;
}

/* --------------- Main Content --------------- */
main {
    width: 100%;
    max-width: 1400px; /* Begrenzte Breite für den Hauptinhalt */
    padding: 20px;
}


/* --------------- Footer --------------- */
footer {
    width: 100%; /* Volle Breite */
    background-color: #2b2b2b; /* alt #1a1a1a */
    color: #ccc;
    padding: 20px 0;
    text-align: center;
}

/* Footer-Inhalt auf max. 1200px begrenzen */
.footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-nav {
    margin: 10px 0;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
}

.footer-nav a i {
    margin-right: 8px;
}

.footer-nav a:hover {
    color: #d4af37;
}

.version {
    font-size: 12px;
    color: #888;
}
.note {
    font-size: 11px;
    color: #888;
}

/* --------------- Akzentfarben --------------- */
.gold {
    color: #d4af37;
}

.silver {
    color: #c0c0c0;
}

.bronze {
    color: #cd7f32;
}

/* --------------- FAQ Container --------------- */
.faq-container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

.faq-item {
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    padding: 10px;
    text-align: left;
    background-color: #2b2b2b;
    color: #e0e0e0;
    border: 1px solid #444;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #333;
}

.faq-answer {
    display: none;
    padding: 10px;
    background-color: #1e1e1e;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #444;
}

.faq-answer p {
    margin: 0;
}

/* --------------- Table (Serverliste) --------------- */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: #1E90FF; /* Ein schönes Grün (z. B. ForestGreen) */
    color: #e0e0e0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}


th, td {
    padding: 10px;
    text-align: left;
    font-size: 14px;
}

tr:nth-child(even) {
    background-color: #1a1a1a; /* Abwechselnde, dunkle Zeilenfarbe */
}

       /* --------------- Buttons & Links --------------- */
button {
    padding: 3px 3px;
    border: none;
    border-radius: 5px;
    background-color: #2b2b2b;
    color: #e0e0e0;
    cursor: pointer;
    transition: background-color 0.3s;
}

button.disabled {
    background-color: #444;
    color: #888;
    cursor: not-allowed;
}

button.active {
    background-color: #006400;
    color: #fff;
}

a {
    color: #66aaff;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* --------------- Status- & Premium Labels --------------- */
.status-label {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: normal;
    color: #fff;
}

.status-online {
    background-color: #013220; /* Dunkelgrün */
    color: #66ff66;
}

.status-offline {
    background-color: #400000; /* Dunkelrot */
	color: #ff6666;
}

.status-online-locked {
    background-color: #003366; /* Dunkelblau */
}

.premium-label {
    display: inline-block;
    background-color: #d4af37; /* Dunkler Goldton */
    color: #000;
    padding: 2px 5px;
    margin-right: 5px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 10px;
    border: 1px solid #fff;
}

.new-label {
    display: inline-block;
    background-color: #8b0000; /* Dunkelrot */
    color: #fff;
    padding: 2px 5px;
    margin-right: 5px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 5px;
}

.centered {
    text-align: center;
}

/* --------------- Info-Boxen --------------- */
.message-box {
    width: 60%;
    margin: 0 auto;
    padding: 10px;
    border-radius: 5px;
    border: 3px solid #8b7500;
}

.success {
    background-color: #2a6a2a; /* Dunkles Grün */
    color: #d0f0c0;
    text-align: center;
}

.error {
    background-color: #660000; /* Dunkles Rot */
    color: #ffcccc;
    text-align: center;
}

.info-red {
    border: 2px solid #8b0000;
    background-color: #400000;
    color: #ff6666;
    text-align: center;
}

.info-green {
    border: 2px solid #006400;
    background-color: #013220;
    color: #66ff66;
    font-size: 12px;
}

/* --------------- Add Server Formular-Container --------------- */
.form-container {
    max-width: 60%;
    margin: 20px auto;
    padding: 15px;
    
    border-radius: 8px;
    background-color: #1e1e1e;
}

/* Formularelemente */
.form-group {
    margin-bottom: 10px;
}

label {
    font-weight: bold;
    font-size: 13px;
    display: block;
    margin-bottom: 4px;
    color: #e0e0e0;
}

.required:after {
    content: " *";
    color: #ff6666;
}

input, select, textarea {
    width: 100%;
    padding: 6px;
    margin-top: 4px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #2a2a2a;
    color: #e0e0e0;
}

textarea {
    height: 120px;
}

/* Submit-Button */
input[type="submit"] {
    background-color: #1E90FF;
    color: #e0e0e0;
    border: 2px solid #444;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 15px;
    font-weight: bold;
    width: 250px;
    transition: background-color 0.3s;
	display: block; /* Wichtig für margin: 0 auto; */
    margin: 20px auto; /* Zentriert den Button und fügt oberen/unteren Abstand hinzu */
}

input[type="submit"]:hover {
    background-color: #32CD32;
}

/* --------------- Serverinfo Tab --------------- */
.container-serverinfo {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.server-info {
    flex: 1;
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
}

.table-server-info {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.table-server-info td {
    padding: 8px;
    border: 1px solid #444;
    color: #e0e0e0;
}

.table-server-info td:first-child {
    font-weight: bold;
}

.btn-refresh {
    background-color: #006699;
    color: #fff;
    padding: 2px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-refresh:hover {
    background-color: #005580;
}

.viewer {
    flex: 1;
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    font-size: 0.8em;
}

.viewer ul {
    list-style: none;
    padding-left: 0;
}

.viewer li {
    margin-bottom: 5px;
}

.viewer li img {
    margin-right: 10px;
    vertical-align: middle;
}

.viewer h2 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.viewer li {
    font-size: 1em;
    color: #ccc;
}

/* --------------- Tabs --------------- */
.tabs {
    display: flex;
    border-bottom: 2px solid #444;
}

.tab {
    padding: 10px 15px;
    cursor: pointer;
    border: 1px solid #444;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    background-color: #2a2a2a;
    margin-right: 5px;
    transition: background-color 0.3s;
    color: #e0e0e0;
}

.tab:hover {
    background-color: #333;
}

.tab.active {
    background-color: #1e1e1e;
    font-weight: bold;
  
    color: #fff;
}

.content {
    padding: 20px;
    display: none;
    background-color: #1e1e1e;
    color: #e0e0e0;
}

.content.active {
    display: block;
}

/* --------------- Tab Votes --------------- */
.vote-button {
    font-size: 36px;
    color: #4CAF50;
    cursor: pointer;
    padding: 10px 20px;
    border: 2px solid #4CAF50;
    background-color: transparent;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.vote-button:hover {
    background-color: #4CAF50;
    color: #fff;
}

.statistics {
    margin-top: 20px;
    text-align: center;
}

.stat-box {
    display: inline-block;
    padding: 10px;
    background-color: #1e1e1e;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    color: #e0e0e0;
}

/* --------------- Info-, Error-, Success- & Block-Boxen --------------- */
.info-box, .error-box, .success-box, .block-box {
    padding: 10px;
    margin: 10px auto;
    border-radius: 5px;
    width: 80%;
    max-width: 500px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.info-box {
    background-color: #223344;
    border: 2px solid #445566;
    color: #aaccff;
}

.error-box {
    background-color: #330000;
    border: 3px solid #660000;
    color: #ffaaaa;
}

.success-box {
    background-color: #1f3c1f;
    border: 3px solid #2e5e2e;
    color: #aaffaa;
}

.block-box {
    background-color: #1e1e1e;
    border: 3px solid #555;
    color: #aaa;
}

h3 {
    text-align: center;
}

/* --------------- Vote Button und Votes allgemein --------------- */
.vote-container {
    text-align: center;
     /* background: #2b2b2b; Dunklerer Hintergrund */
    color: #e0e0e0; /* Helle Textfarbe */
    padding: 20px;
	margin: 10px;
    border-radius: 10px;
}

.vote-container .vote-btn {
    background-color: #28a745; /* Grüner Vote-Button beibehalten */
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: 0.3s;
}

.vote-container .vote-btn:hover {
    background-color: #218838;
}

.vote-container .info {
    margin-top: 10px;
    font-weight: bold;
    color: #ccc; /* Etwas dunklere Textfarbe für weniger Hervorhebung */
}

.vote-container .stats-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.vote-container .stat-box {
    background: #2b2b2b; /* Dunklerer Hintergrund für die Statistikboxen */
    color: #e0e0e0;
    padding: 10px;
	font-weight: bold;
    border-radius: 8px;
    min-width: 250px;
    border: 1px solid gray; /* Dunklere Rahmenfarbe */
}

/* --------------- Serverinfo --------------- */
.container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin: 10px;
   /* background: #2b2b2b;  Dunkler Hintergrund */
    border-radius: 10px;
    overflow: hidden;
    color: #e0e0e0; /* Helle Schriftfarbe */
    max-width: 1400px;
}

/* Stellt sicher, dass .left und .right den Container korrekt teilen */
.container .left,
.container .right {
    width: 50%;
    padding: 20px;
}

/* Bezieht sich nur auf h2 innerhalb von .container */
.container h2 {
    font-size: 18px;
    border-bottom: 2px solid #333; /* Dunklerer Trennstrich */
    padding-bottom: 5px;
    color: #1E90FF;
	padding: 5px;
}

/* Spezialisierte Tabellenstile nur für .container */
.container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.container table,
.container th,
.container td {
    border: 1px solid #444; /* Dunklere Rahmenfarbe */
}

.container th,
.container td {
    padding: 10px;
    text-align: left;
}

.container th {
    background: #333; /* Dunklerer Hintergrund für Tabellenkopf */
    color: #e0e0e0;
}

/* Verhindert Kollision mit globalen Tabellenstilen */
.container .property {
    font-weight: bold;
}

/* Falls du FontAwesome benutzt */
.container .fa {
    margin-right: 10px;
}

/* --------------- CKEditor --------------- */
 .ck-content {
    color: #000000; 
    }
/* --------------- ServerSearch --------------- */
	.ts4p-search-results {
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
            margin: 2rem auto;
            max-width: 700px;
            padding: 0 1rem;
        }

        .ts4p-server-row {
            background: #1e1e2f;
            border-radius: 10px;
            padding: 0.8rem 1.2rem 1.6rem;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            position: relative;
        }

        .ts4p-server-name {
            font-size: 0.95rem;
            font-weight: 600;
            color: #e0e0e0;
            margin-bottom: 0.4rem;
        }

        .ts4p-server-name a {
            color: inherit;
            text-decoration: none;
        }

        .ts4p-server-name a:hover {
            text-decoration: underline;
        }

        .ts4p-label {
            display: inline-block;
            background-color: #2e2e42;
            color: #ccc;
            font-size: 0.75rem;
            padding: 3px 7px;
            border-radius: 5px;
            margin: 2px 4px 2px 0;
        }

        .ts4p-label-status {
            position: absolute;
            top: 0.7rem;
            right: 1rem;
            font-weight: bold;
            color: #fff;
            background-color: #4caf50;
            padding: 4px 10px;
            border-radius: 5px;
        }

        .ts4p-label-status.offline {
            background-color: #f44336;
        }

        .ts4p-meta-row {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 0.8rem;
        }

        .ts4p-ip-display {
    display: inline-block;
    text-align: center;
    background-color: #1e1e2f;
    color: #a8d8ff;
    padding: 6px 16px;
    font-size: 0.85rem;
    border: 1px solid #80d0ff;
    border-radius: 4px;
    font-family: monospace;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.ts4p-ip-display:hover {
    background-color: #263d5a;
    color: #ffffff;
}

/* --------------- Pagination --------------- */
   .pagination {
            display: flex;
            align-items: center;
        }
   .pagination a, .pagination span {
            margin: 0 2px; /* Even smaller margin */
            padding: 3px 6px; /* Even smaller padding */
            border: 1px solid #ccc;
            text-decoration: none;
            color: #888; /* Lighter color for non-selected */
            border-radius: 3px;
            font-size: 0.8em; /* Even smaller font size */
        }
   .pagination a.active-page {
            background-color: #007bff;
            color: white; /* Keep white for selected */
            border-color: #007bff;
        }
   .pagination span {
            border: none;
            padding: 3px 0;
            color: #888; /* Lighter color for ellipses */
        }
/* --------------- TOP Ad --------------- */
.top-ad-banner {
    width: 100%;
    background-color: #0099ff; /* Dunkler Hintergrund, optional */
    text-align: center;
    padding: 6px 0;
    border-bottom: 1px solid #333;
    z-index: 1000;
}
.top-ad-inner {
    background-color: #111; /* Tiefschwarz */
    color: #fff;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

