* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: #121212;
    color: #ffffff;
    height: 100vh;
    overflow: hidden;
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 5px;
}

h1 {
    text-align: center;
    margin-bottom: 5px;
    color: #00ff9d;
    font-size: 18px;
    height: 30px;
}

.content-section {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: calc(100vh - 40px);
    gap: 5px;
}

#map-container {
    width: 100%;
    height: 40%;
    margin-top: 5px;
    order: 2;
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.controls-panel {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 8px;
    width: 100%;
    height: 60%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    order: 1;
}

h3 {
    color: #00ff9d;
    margin-bottom: 5px;
    font-size: 14px;
}

#preset-coords {
    margin-bottom: 5px;
}

#coords-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.coord-button {
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 3px;
    font-size: 11px;
    cursor: pointer;
    text-align: center;
}

.coord-button:hover {
    background-color: #444;
}

.coord-button.active {
    background-color: #00ff9d;
    color: #121212;
}

.coord-input {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.coord-field {
    display: flex;
    align-items: center;
}

label {
    width: 60px;
    font-weight: bold;
    font-size: 12px;
}

input {
    flex-grow: 1;
    padding: 6px;
    border: none;
    border-radius: 5px;
    background-color: #333;
    color: white;
    font-size: 14px;
}

.button-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.button-row button:first-child {
    grid-column: 1 / -1;
}

button {
    background-color: #00ff9d;
    color: #121212;
    border: none;
    border-radius: 5px;
    padding: 8px;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
}

button:active {
    background-color: #00cc7a;
}

#distance-display {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    padding: 5px;
    background-color: #333;
    border-radius: 5px;
    transition: background-color 0.5s ease;
}

/* Richtungspfeil Container */
#direction-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    gap: 5px;
}

/* Richtungspfeil */
#direction-arrow {
    font-size: 50px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transform-origin: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Richtungstext */
#direction-text {
    font-size: 12px;
    font-weight: bold;
}

#toggle-sound {
    background-color: #ff6b6b;
}

#toggle-sound.muted {
    background-color: #666;
}

/* Beep-Control Styling */
#beep-control {
    margin-top: 5px;
}

.slider {
    width: 100%;
    height: 10px;
    -webkit-appearance: none;
    background: #333;
    outline: none;
    border-radius: 5px;
    margin: 10px 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00ff9d;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00ff9d;
    cursor: pointer;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #888;
}

/* Marker-Styling */
.target-marker, .user-marker {
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    font-size: 24px;
}

.target-marker {
    z-index: 1000;
}

.user-marker {
    z-index: 999;
}

/* Responsive */
@media (max-width: 600px) {
    .content-section {
        flex-direction: column;
    }
    
    .controls-panel {
        height: 60%;
    }
    
    #map-container {
        height: 40%;
    }
} 