html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
    background: radial-gradient(circle at top, #101820, #050608);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #fff;
  }
  
  #globe-container {
    width: 100vw;
    height: 100vh;
    position: relative;
  }
  
  /* Tooltip */
  #tooltip {
    position: absolute;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 4px;
    font-size: 13px;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -120%);
    transition: opacity 0.15s ease;
    white-space: nowrap;
    z-index: 5;
  }
  
  /* Kleine Info unten links */
  #info {
    position: absolute;
    left: 12px;
    bottom: 12px;
    font-size: 12px;
    opacity: 0.7;
    z-index: 3;
  }
  
  #info code {
    background: rgba(0,0,0,0.4);
    padding: 2px 4px;
    border-radius: 3px;
  }
  
  /* Panel-Toggle-Button */
  #panel-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 6;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(5, 6, 8, 0.92);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,0,0,0.6);
  }
  
  #panel-toggle.panel-hidden-state {
    background: rgba(5, 6, 8, 0.7);
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  }
  
  /* Control Panel */
  #control-panel {
    position: absolute;
    top: 52px;
    right: 12px;
    width: 280px;
    padding: 14px 16px;
    background: rgba(5, 6, 8, 0.94);
    border-radius: 14px;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 5;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  
  #control-panel.panel-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
  }
  
  .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
  }
  
  .panel-title-group h1 {
    font-size: 16px;
    margin: 0;
  }
  
  .panel-subtitle {
    font-size: 11px;
    opacity: 0.7;
  }
  
  .panel-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(79, 167, 255, 0.18);
    border: 1px solid rgba(79, 167, 255, 0.5);
    color: #dcecff;
    white-space: nowrap;
  }
  
  
  #control-panel h2 {
    font-size: 13px;
    margin: 4px 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.8;
  }
  
  /* Formular */
  #place-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  #place-form label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    opacity: 0.85;
  }
  
  /* Color Picker Wrapper */
  .color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  #place-color {
    width: 50px;
    height: 32px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
  }
  
  #place-color::-webkit-color-swatch-wrapper {
    padding: 0;
  }
  
  #place-color::-webkit-color-swatch {
    border: none;
    border-radius: 3px;
  }
  
  #place-color::-moz-color-swatch {
    border: none;
    border-radius: 3px;
  }
  
  .color-picker-label {
    font-size: 11px;
    opacity: 0.7;
    flex: 1;
  }
  
  #place-form input:not(#place-color) {
    padding: 5px 7px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(12, 15, 22, 0.9);
    color: #fff;
    font-size: 12px;
    outline: none;
  }
  
  #place-form input:not(#place-color):focus {
    border-color: #4fa7ff;
    box-shadow: 0 0 0 1px rgba(79, 167, 255, 0.4);
  }
  
  #place-color:focus {
    border-color: #4fa7ff;
    box-shadow: 0 0 0 2px rgba(79, 167, 255, 0.3);
  }
  
  #place-form button {
    margin-top: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #4fa7ff, #00ff99);
    color: #050608;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  }
  
  #place-form button:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  }
  
  /* Tag/Nacht-Slider */
  .slider-group {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  
  .slider-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    opacity: 0.8;
  }
  
  .slider-header span:first-child {
    min-width: 20px;
    text-align: left;
  }
  
  .slider-header span:last-child {
    min-width: 32px;
    text-align: right;
  }
  
  #day-night-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffe7a0, #4b7cff, #0d1020);
    outline: none;
  }
  
  #day-night-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #111320;
    box-shadow: 0 0 8px rgba(0,0,0,0.7);
    cursor: pointer;
  }
  
  #day-night-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #111320;
    box-shadow: 0 0 8px rgba(0,0,0,0.7);
    cursor: pointer;
  }
  
  .slider-value-display {
    text-align: center;
    margin: 4px 0;
    font-size: 12px;
    font-weight: 600;
    color: #4fa7ff;
    opacity: 0.9;
  }
  
  .slider-hint {
    margin-top: 4px;
    font-size: 11px;
    opacity: 0.6;
  }
  
  /* Orte-Liste */
  .places-list-container {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.12);
    max-height: 150px;
    overflow-y: auto;
  }
  
  .places-list-container h3 {
    margin: 0 0 6px;
    font-size: 12px;
    opacity: 0.85;
  }
  
  /* Suchfeld */
  .search-container {
    position: relative;
    margin-bottom: 8px;
  }
  
  #places-search {
    width: 100%;
    padding: 6px 28px 6px 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
  }
  
  #places-search:focus {
    background: rgba(255,255,255,0.12);
    border-color: rgba(79, 167, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(79, 167, 255, 0.2);
  }
  
  #places-search::placeholder {
    color: rgba(255,255,255,0.5);
  }
  
  #search-clear {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
  }
  
  #search-clear:hover {
    background: rgba(255,64,64,0.6);
    transform: translateY(-50%) scale(1.1);
  }
  
  /* Geocoding-Suche für neue Orte */
  .geocoding-search-container {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    position: relative;
  }
  
  .geocoding-search-container label {
    position: relative;
    display: block;
  }
  
  .geocoding-search-wrapper {
    position: relative;
    display: flex;
    gap: 4px;
  }
  
  #geocoding-search {
    flex: 1;
    padding: 6px 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
  }
  
  #geocoding-search:focus {
    background: rgba(255,255,255,0.12);
    border-color: rgba(79, 167, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(79, 167, 255, 0.2);
  }
  
  #geocoding-search::placeholder {
    color: rgba(255,255,255,0.5);
  }
  
  #geocoding-search-btn {
    padding: 6px 12px;
    background: rgba(79, 167, 255, 0.3);
    border: 1px solid rgba(79, 167, 255, 0.4);
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
  }
  
  #geocoding-search-btn:hover {
    background: rgba(79, 167, 255, 0.5);
    border-color: rgba(79, 167, 255, 0.6);
    transform: scale(1.05);
  }
  
  #geocoding-search-btn:active {
    transform: scale(0.98);
  }
  
  .geocoding-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: rgba(16, 24, 32, 0.95);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  }
  
  .geocoding-result-item {
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.15s ease;
  }
  
  .geocoding-result-item:last-child {
    border-bottom: none;
  }
  
  .geocoding-result-item:hover {
    background: rgba(79, 167, 255, 0.2);
  }
  
  .geocoding-result-item strong {
    display: block;
    font-size: 12px;
    margin-bottom: 2px;
    color: #fff;
  }
  
  .geocoding-result-details {
    font-size: 11px;
    opacity: 0.7;
    color: rgba(255,255,255,0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  
  .geocoding-coords {
    font-family: monospace;
    font-size: 10px;
    opacity: 0.6;
    white-space: nowrap;
  }
  
  .geocoding-no-results {
    padding: 12px;
    text-align: center;
    font-size: 12px;
    opacity: 0.6;
    color: rgba(255,255,255,0.7);
  }
  
  .place-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 3px 0;
  }
  
  .place-main {
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  
  .place-main strong {
    font-size: 12px;
  }
  
  .place-main .coords {
    font-size: 11px;
    opacity: 0.7;
  }
  
  .place-actions {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  .place-color-picker {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
  }
  
  .place-color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
  }
  
  .place-color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 3px;
  }
  
  .place-color-picker::-moz-color-swatch {
    border: none;
    border-radius: 3px;
  }
  
  .delete-place {
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    border: none;
    color: #fff;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    padding: 0;
    cursor: pointer;
    font-size: 13px;
  }
  
  .delete-place:hover {
    background: rgba(255,64,64,0.75);
  }
  
  .places-list-container .empty {
    font-size: 11px;
    opacity: 0.6;
  }
  
  /* Panel-Hinweis */
  #control-panel .hint {
    margin-top: 6px;
    font-size: 11px;
    opacity: 0.6;
  }
  
  /* Mobile: Panel unten zentriert */
  @media (max-width: 768px) {
    #control-panel {
      left: 50%;
      right: auto;
      top: auto;
      bottom: 12px;
      transform: translateX(-50%);
      width: calc(100vw - 32px);
    }
  
    #control-panel.panel-hidden {
      transform: translateX(-50%) translateY(8px);
    }
  
    #panel-toggle {
      top: 10px;
      right: 10px;
    }
  }/* 
    TODO: Kopiere hier den CSS-Code aus dem CodePen CSS-Editor
    URL: https://codepen.io/perry_nt/pen/MYyVZKy
*/

