:root {
    --bg-color: #111;
    --text-color: #e0e0e0;
    --accent: #d4a017;
    --light-faction: #4488ff;
    --dark-faction: #cf2f2f;
    --box-bg: #222;
    --box-border: #444;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 14px;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

a {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
}

#wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.center {
    text-align: center;
}

.dimmed {
    color: #666;
    font-style: italic;
}

.box {
    background: var(--box-bg);
    border: 1px solid var(--box-border);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

h3 {
    margin-top: 0;
    color: var(--accent);
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.server-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    text-align: center;
}

.stat-row {
    padding: 8px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
}

.stat-label {
    font-weight: bold;
    color: #aaa;
}

.stat-val {
    color: #fff;
    text-align: right;
    font-family: monospace;
    font-size: 1.1em;
}

.stat-highlight {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2em;
}

.graph-container {
    width: 100%;
    margin-top: 20px;
    text-align: center;
    padding: 5px;
    border-radius: 4px;
}

.mrtg-graph {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border: 1px solid #000;
}

.status-header-text {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.status-date {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 20px;
}

.guildless-container {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #444;
}

.guildless-list span {
    display: inline-block;
    margin: 0 10px;
    color: #ccc;
    font-weight: 500;
}

/* NEU: Links in der Gildenlosen-Liste */
.guildless-list span a {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.guildless-list span a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.guild-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    text-align: left;
}

.guild-col {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.gc-light {
    background-color: rgba(68, 136, 255, 0.08);
    border-color: rgba(68, 136, 255, 0.15);
}

.gc-neutral {
    background-color: rgba(128, 128, 128, 0.08);
    border-color: rgba(128, 128, 128, 0.15);
}

.gc-dark {
    background-color: rgba(207, 47, 47, 0.08);
    border-color: rgba(207, 47, 47, 0.15);
}

.col-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 2px solid #555;
}

.col-title.light {
    border-color: var(--light-faction);
    color: #8cbaff;
}

.col-title.dark {
    border-color: var(--dark-faction);
    color: #ff6b6b;
}

.guild-entry {
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 4px;
}

.guild-entry-name {
    color: var(--accent);
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
}

.guild-entry-members {
    font-size: 0.9em;
    color: #bbb;
    line-height: 1.4;
}

/* NEU: Links in den Gilden-Listen */
.guild-entry-members a {
    color: inherit;
    font-weight: normal;
    text-decoration: none;
    transition: color 0.2s;
}

.guild-entry-members a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.map-frame {
    position: relative;
    display: inline-block;
    max-width: 100%;
    border: 2px solid #444;
    line-height: 0;
}

.world-map {
    width: 100%;
    height: auto;
    display: block;
}

/* --- MAP CONTROLS --- */
.map-controls {
    text-align: center;
    margin-bottom: 10px;
    background: rgba(30, 30, 30, 0.8);
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #444;
    display: inline-block;
}

.map-controls label {
    margin: 0 10px;
    color: #ccc;
    cursor: pointer;
    font-weight: bold;
}

.map-controls input {
    margin-right: 5px;
    vertical-align: middle;
}

/* --- MARKER STYLES --- */

.marker {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 0 4px #000;
    z-index: 50;
    border: 1px solid #fff;
}

.marker-light {
    background-color: var(--light-faction);
}

.marker-dark {
    background-color: var(--dark-faction);
}

.marker-neutral {
    background-color: #888;
}

/* STÄDTE MARKER (Blaues Quadrat) */
.marker-city {
    background-color: #00BFFF;
    z-index: 40;
    border-radius: 2px;
}

/* GILDEN MARKER (Grünes Dreieck - CSS Trick) */
.marker-guild {
    width: 0 !important;
    height: 0 !important;
    background-color: transparent !important;
    border: none !important;
    border-left: 7px solid transparent !important;
    border-right: 7px solid transparent !important;
    border-bottom: 14px solid #32CD32 !important;
    /* LimeGreen */
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: drop-shadow(0 0 2px #000);
    z-index: 45;
}

.marker:hover,
.marker-city:hover,
.marker-guild:hover {
    z-index: 100;
    transform: translate(-50%, -50%) scale(1.4);
}

/* TOOLTIPS */
.tooltip {
    display: none;
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid var(--accent);
    color: #fff;
    line-height: 1.4;
    padding: 8px;
    width: 200px;
    text-align: center;
    border-radius: 4px;
    pointer-events: none;
    font-size: 12px;
    z-index: 9999;
}

/* Tooltip Sichtbarkeit beim Hover */
.marker:hover .tooltip,
.marker-city:hover .tooltip,
.marker-guild:hover .tooltip {
    display: block;
}

.tooltip strong {
    display: block;
    color: var(--accent);
    margin-bottom: 4px;
    font-size: 1.1em;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
}

.tooltip img {
    width: 100%;
    margin-top: 5px;
    border: 1px solid #444;
    display: block;
}

/* Spezifische Tooltip Farben */
.marker-city .tooltip {
    border-color: #00BFFF;
    width: auto;
    white-space: nowrap;
}

.marker-city .tooltip strong {
    color: #00BFFF;
    border-bottom: none;
    margin-bottom: 0;
}

.marker-guild .tooltip {
    border-color: #32CD32;
    color: #32CD32;
    width: 340px;
    /* Breiter für Bilder */
    white-space: normal;
}

.marker-guild .tooltip strong {
    color: #32CD32;
}

/* In src/modules/webstatus/assets/status.css hinzufügen */

.marker-cluster {
    width: 16px !important;
    /* Etwas größer als die normalen 10px */
    height: 16px !important;
    font-size: 10px;
    font-weight: bold;
    color: #000;
    /* Textfarbe für die Zahl */
    text-align: center;
    line-height: 16px;
    /* Vertikal zentrieren */
    background-color: #fff;
    /* Standardfarbe falls keine Fraktion dominiert */
    border: 2px solid #000;
    /* Starker Rand für Sichtbarkeit */
    z-index: 60;
    /* Über normalen Markern liegen */
}

/* Anpassung der Hover-Skalierung für Cluster */
.marker-cluster:hover {
    z-index: 110;
    transform: translate(-50%, -50%) scale(1.2);
    /* Nicht ganz so riesig zoomen wie einzelne Punkte */
}


/* HEATMAP STYLES */
.marker-heat {
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: bold;
    font-size: 11px;
    text-shadow: 0 0 2px #000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    /* Schein nach außen */
    transition: transform 0.2s, z-index 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.marker-heat:hover {
    transform: translate(-50%, -50%) scale(1.3);
    /* Zoom beim Drüberfahren */
    z-index: 1000 !important;
    cursor: help;
}

/* Tooltip Anpassung für Heatmap */
.marker-heat:hover .tooltip {
    display: block;
    min-width: 150px;
}