:root {
    /* Primäre Farbpalette - Tiefe und Raffinesse */
    --bg-primary: #0c111d;
    --bg-secondary: #141b2b;
    --accent-primary: #2b6ef0;
    --accent-secondary: #4f8cff;
    --accent-glow: rgba(43, 110, 240, 0.25);
    
    /* Oberflächen */
    --surface-glass: rgba(20, 27, 43, 0.85);
    --surface-elevated: #1e2740;
    --surface-inset: #0a0f1a;
    
    /* Textabstufungen */
    --text-primary: #ffffff;
    --text-secondary: #d7dce4;
    --text-tertiary: #6b7b95;
    --text-inverse: #0c111d;
    
    /* Borders & Effects */
    --border-light: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.4);
    --shadow-accent: 0 8px 20px rgba(43, 110, 240, 0.2);
    
    /* Typografie */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Roboto Mono', monospace;
    
    /* Übergänge */
    --transition-fast: 150ms cubic-bezier(0.2, 0, 0, 1);
    --transition-base: 250ms cubic-bezier(0.2, 0, 0, 1);
    --transition-smooth: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    background: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 100% 0%, rgba(43, 110, 240, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(43, 110, 240, 0.05) 0%, transparent 50%);
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding-bottom: env(safe-area-inset-bottom);
}

h1 {
    font-size: 60px;
    text-align: center;
    margin-top: 10px;
    background: linear-gradient(135deg, #c5ceff, rgb(108, 111, 255) 50%, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.settingsBtnContainer {
    margin-top: -45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
}

#Richtung {
    margin: 0; 
    text-align: center;
    flex-grow: 1;
}

#settingsBtn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    -webkit-tap-highlight-color: transparent;
}

.spacer {
    width: 44px;
    height: 44px;
    visibility: hidden;
}


.hidden {
    display: none !important;
    visibility: hidden !important;
}

#settingsOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 17, 29, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.settingsBox {
    justify-content: flex-end;
    width: 75%;
    max-width: 440px;
    background: var(--surface-elevated);
    padding: 35px 25px;
    border-radius: 32px;
    border: 1px solid var(--border-medium);
    box-shadow: var(--shadow-lg);
    animation: slideUp var(--transition-smooth);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.settingsBox label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

#ThemeBtn {
    margin-left: 5px;
    font-size: 15px;
    margin-top: 2px;
    background: transparent;;
    border: 0px;
    color: white;
    height: 10px;
}

.ThemeBtndiv {
    border-radius: 12px;
    margin-bottom: -3px;
    display: flex;
    background: transparent;
    border: 2px solid var(--border-medium);
    padding: 10px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-base);
    letter-spacing: 0.01em;
    -webkit-tap-highlight-color: transparent;
}

.ThemeBtndiv #ThemeBtnFoto {
    width: 15%;
    height: 15%;
    border-radius: 50%;
    margin-top: -5px;
    margin-bottom: -5px;
    margin-left: -5px;
}

#ThemeBtnArrow {
    width: 13px;
    height: 13px;
    margin-right: -10%;
    margin-top: 5px;
}

#themeSettings {
    border: 1px solid var(--border-medium);
    background-color: rgb(23, 24, 68);
    border-radius: 6px;
}

#foto_light_simple, #foto_light_complex, #foto_dark_simple, #foto_dark_complex {
    width: 15%;
    height: 15%;
    border-radius: 50%;
    margin-top: -5px;
    margin-bottom: -5px;
    margin-left: -5px;
}

.light_simple, .light_complex, .dark_simple, .dark_complex {
    margin-bottom: -3px;
    display: flex;
    background: transparent;
    border: 2px solid var(--border-medium);
    padding: 10px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-base);
    letter-spacing: 0.01em;
    -webkit-tap-highlight-color: transparent;
}

#light_simpleBtn, #light_complexBtn, #dark_simpleBtn, #dark_complexBtn {
    margin-left: 5px;
    font-size: 15px;
    background: transparent;;
    border: 0px;
    color: white;
    height: 10px;
}

#settingsHeading {
    font-size: 28px;
    margin: 0 0 20px 0;
}

#calibrationHeading {
    margin-top: 25px;
}

#calibrationInput {
    width: 60%;
    background: var(--surface-inset);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-mono);
    outline: none;
    transition: var(--transition-fast);
}

#resetCalibration {
    color: white;
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: var(--transition-base);
    letter-spacing: 0.01em;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    background: #26314e;
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
}

#closeSettings {
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    margin-top: 20px;
    cursor: pointer;
    transition: var(--transition-base);
    letter-spacing: 0.01em;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.hidden {
    visibility: hidden;
}

.compass {
    margin-top: 10px;
    margin-bottom: 10px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    aspect-ratio: 1 / 1;
    margin-left: 5%;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.compass-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#Höhenmesserlink {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    cursor: pointer;
    transition: var(--transition-base);
    letter-spacing: 0.01em;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    border-radius: 14px;
    border: 1px solid var(--border-medium);
    background: var(--surface-elevated);
    padding: 16px 20px;
    width: 60%;
    font-size: 16px;
    align-items: center;
    max-width: 300px;
    color: inherit;
    font-style: inherit;
    text-decoration: none;
    margin-top: 20px;
}

#höhenmesserText {
    margin: 0;              /* Wichtig: Standard-Abstände vom <p> entfernen */
    display: flex;
    align-items: center;
    font-family: sans-serif;
    font-weight: bold;
}

#höhenmesserIcon {
    width: 15%;
    height: 15%;
    min-height: 35px;
    min-width: 35px;
    transition: var(--transition-base);
    border-radius: 50%;
}

.center {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

footer {
    font-size: 0.9em;
    text-align: center;
    opacity: 0.8;
    margin-top: 30px;
}
