/* Grundlegende Seitenstruktur */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #ffffff;
}

#container {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* Spektrum-Darstellung */
#spectrum {
    width: 100%;
    height: 100px;
    background-color: #E6F3FF;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.band {
    position: absolute;
    height: 100%;
    top: 0;
    cursor: pointer;
}

/* Bandfarben */
.broadcast { background-color: #00FF00; }
.amateur { background-color: #FF0000; }
.cb { background-color: #FFA500; }
.medium-wave { background-color: #800080; }
.long-wave { background-color: #008080; }
.ism { background-color: yellow; }
.beacon { background-color: #FF69B4; }
.pirate { background-color: #1E90FF; }
.aviation { background-color: #20B2AA; }
.military { background-color: #8B4513; }
.maritime { background-color: #4682B4; }
.time { background-color: #FF6347; }
.chaos { background-color: #9932CC; }
.feeder { background-color: #00CED1; }
.radioastronomy { background-color: #FF4500; }
.landmobile { background-color: #32CD32; }
.utility { background-color: #DAA520; }

/* Tooltip */
#tooltip {
    position: fixed;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 5px;
    border-radius: 3px;
    display: none;
    z-index: 1000;
    white-space: nowrap;
}

/* Skala */
#scale {
    width: 100%;
    height: 30px;
    position: relative;
    margin-top: 5px;
}

.scale-mark {
    position: absolute;
    top: 0;
    width: 1px;
    height: 10px;
    background-color: #fff;
}

.scale-label {
    position: absolute;
    top: 12px;
    transform: translateX(-50%);
    font-size: 10px;
    color: #ffffff;
}

/* Kontextmenü */
#context-menu {
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 5px 0;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    display: none;
    z-index: 1000;
}

#context-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#context-menu ul li {
    padding: 5px 20px;
    cursor: pointer;
    color: #000;
}

#context-menu ul li:hover {
    background-color: #e9e9e9;
}

/* Legende */
.legend {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.color-box {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* Tab-Container und Tabs */
#tab-container {
    margin-top: 20px;
    height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
}

.tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    background-color: #333;
}

.tabs li {
    padding: 10px 20px;
    color: #fff;
    cursor: pointer;
}

.tabs li.active {
    background-color: #555;
}

.tab-content {
    display: none;
    padding: 20px;
    background-color: #333; /* Einheitliche Hintergrundfarbe für alle Tabs */
    color: #fff;
    flex-grow: 1;
    overflow-y: auto;
}

.tab-content.active {
    display: block;
}

/* Tabelle */
.table-container {
    max-height: calc(100vh - 400px);
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #777;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #444;
    position: sticky;
    top: 0;
}

/* Links in Tab 6 */
#tab6 a {
    color: #00CED1;
    text-decoration: none;
}

#tab6 a:hover {
    text-decoration: underline;
}

/* Frequenz-Buttons */
#frequencyButtons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#frequencyButtons button {
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

#frequencyButtons button:hover {
    background-color: #45a049;
}

/* Standardfarbe für Links */
a {
  color: #666666; /* Schwarz */
}

/* Farbe für besuchte Links */
a:visited {
  color: #4B0082; /* Indigo */
}

/* Farbe beim Hover */
a:hover {
  color: #0000FF; /* Blau */
}
