:root {
    --accent: #00ffcc;
    --accent-dark: #00b38f;
    --bg-dark: #121212;
    --bg-medium: #222;
    --bg-light: #f4f7f6;
    --card-light: #ffffff;
    --text-light: #ffffff;
    --text-dark: #111111;
    --border: #444444;
    --border-light: #dddddd;
}

body {
    font-family: sans-serif;
    box-sizing: border-box;
}

body.navi7 {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow: hidden;
}

body.pegel {
    margin: 10px;
    background: var(--bg-light);
    color: var(--text-dark);
}

.page-wrapper {
    width: min(1180px, 100%);
    margin: 0 auto;
}

#header {
    position: absolute;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.05);
    padding: 10px 0;
    font-family: monospace;
    font-size: 0.8rem;
    text-align: center;
    border-bottom: 1px solid var(--accent);
    z-index: 10;
}

.val {
    color: var(--accent);
    font-weight: bold;
}

#setup {
    background: var(--surface-dark);
    padding: 20px;
    border-radius: 15px;
    width: 85%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 100;
}

#filter-form {
    background: var(--card-light);
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    padding: 16px;
    border-radius: 15px;
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: none;
    margin-bottom: 10px;
}

#filter-form label {
    font-size: 0.95rem;
    margin: 0;
    white-space: nowrap;
    flex: 0 0 auto;
    color: #444444;
}

#filter-form input {
    flex: 1 1 auto;
    min-width: 0;
}

#filter-form button {
    flex: 0 0 auto;
}

#setup h3 {
    margin: 0;
    color: var(--accent);
}

#setup input,
#filter-form input {
    background: #333333;
    border: 1px solid #444444;
    padding: 12px;
    color: white;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

body.pegel #filter-form input {
    background: #ffffff;
    border: 1px solid #cccccc;
    color: #111111;
}

#filter-form label {
    font-size: 0.95rem;
    margin-bottom: 6px;
}

#setup .btn-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: space-between;
}

#setup .btn-small,
#filter-form button {
    flex: 1;
    padding: 10px 5px;
    font-size: 0.85rem;
    background: #444444;
    color: white;
    border: 1px solid #555555;
    border-radius: 8px;
    cursor: pointer;
}

#setup .btn-small:active,
#filter-form button:active {
    background: var(--accent);
    color: black;
}

#setup .btn,
#filter-form button[type="submit"] {
    padding: 15px;
    background: var(--accent);
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
}

#setup .mode-tag {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    background: #444444;
}

#nav-ui {
    display: none;
    text-align: center;
}

#arrow-container {
    width: 250px;
    height: 250px;
    margin: 20px auto;
    transition: transform 0.4s cubic-bezier(0.1, 0.5, 0.1, 1);
}

#arrow-svg {
    width: 150px;
    height: 150px;
    fill: var(--accent);
    filter: drop-shadow(0 0 15px var(--accent));
}

#dist-val {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 0;
}

#course-info {
    font-size: 1rem;
    color: #aaaaaa;
    margin-top: 10px;
}

#map {
    height: 720px;
    width: 100%;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1;
}

.header-container {
    background: #0056b3;
    color: white;
    padding: 15px;
    border-radius: 12px 12px 0 0;
    text-align: left;
}

.header-container h1 {
    margin: 0;
    font-size: 1.3rem;
}

.table-scroll-container {
    max-height: 680px;
    overflow-y: auto;
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    color: #333333;
    z-index: 10;
    padding: 15px 10px;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-bottom: 2px solid #dddddd;
}

td {
    padding: 15px 10px;
    border-bottom: 1px solid #eeeeee;
    font-size: 1rem;
}

.wert {
    font-weight: bold;
    color: #d32f2f;
}

.table-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.table-scroll-container::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 10px;
}
