    :root {
      --taskbar-height: 54px;
      --map-edge-gap: 20px;
      --controls-attrib-gap: 18px;
    }

    html,
    body {
      margin: 0;
      padding: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
      font-family: Arial, sans-serif;
    }

    * {
      box-sizing: border-box;
    }

    #map {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
    }

    #overlay {
      position: fixed;
      top: 20px;
      left: 20px;
      z-index: 1200;
      pointer-events: none;
    }

    .mega-menu {
      position: relative;
      display: inline-block;
      width: auto;
      max-width: min(80vw, 1100px);
      pointer-events: none;
      background: transparent;
    }

    .mega-toggle,
    .mega-dropdown {
      pointer-events: auto;
    }

    .mega-toggle {
      border: none;
      background: #111;
      color: #fff;
      padding: 12px 18px;
      border-radius: 10px;
      cursor: pointer;
      font-size: 16px;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    }

    .mega-dropdown {
      position: absolute;
      top: calc(100% + 12px);
      left: 0;
      display: none;
      background: rgba(255, 255, 255, 0.98);
      border-radius: 16px;
      padding: 24px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
      grid-template-columns: repeat(4, minmax(180px, 1fr));
      gap: 24px;
      max-height: calc(100vh - 140px);
      overflow-y: auto;
      overflow-x: hidden;
      min-width: 720px;
    }

    .mega-dropdown.open {
      display: grid;
    }

    .mega-column h3 {
      margin: 0 0 12px 0;
      font-size: 18px;
    }

    .mega-column a {
      display: block;
      text-decoration: none;
      color: #222;
      padding: 10px 0;
      border-bottom: 1px solid #eee;
    }

    .mega-column a:hover {
      color: #0a66c2;
    }

    #window-layer {
      position: fixed;
      inset: 0;
      z-index: 1400;
      pointer-events: none;
    }

    .app-window {
      position: absolute;
      width: 560px;
      height: 360px;
      min-width: 280px;
      min-height: 180px;
      background: #fff;
      border: 1px solid rgba(0, 0, 0, 0.12);
      border-radius: 14px;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      pointer-events: auto;
    }

    .app-window.active {
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    }

    .window-header {
      height: 48px;
      background: #171717;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 8px 0 14px;
      cursor: move;
      user-select: none;
      flex: 0 0 auto;
    }

    .window-title {
      font-size: 15px;
      font-weight: 600;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      padding-right: 12px;
    }

    .window-controls {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .window-btn {
      width: 34px;
      height: 34px;
      border: 0;
      border-radius: 8px;
      cursor: pointer;
      background: transparent;
      color: #fff;
      font-size: 18px;
    }

    .window-btn:hover {
      background: rgba(255, 255, 255, 0.12);
    }

    .window-body {
      flex: 1 1 auto;
      overflow: auto;
      padding: 18px;
      background: #fff;
      color: #222;
    }

    .window-body h3 {
      margin-top: 0;
    }

    .window-resize {
      position: absolute;
      right: 0;
      bottom: 0;
      width: 18px;
      height: 18px;
      cursor: nwse-resize;
      background:
        linear-gradient(
          135deg,
          transparent 0 45%,
          rgba(0, 0, 0, 0.35) 45% 52%,
          transparent 52% 62%,
          rgba(0, 0, 0, 0.35) 62% 69%,
          transparent 69%
        );
    }

    #taskbar {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      height: var(--taskbar-height);
      z-index: 1500;
      background: rgba(20, 20, 20, 0.94);
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      display: flex;
      align-items: center;
      padding: 8px 10px;
      backdrop-filter: blur(8px);
    }

    #taskbar-tabs {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      overflow-y: hidden;
      width: 100%;
    }

    .taskbar-tab {
      border: 0;
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
      border-radius: 10px;
      padding: 8px 14px;
      cursor: pointer;
      white-space: nowrap;
      max-width: 220px;
      overflow: hidden;
      text-overflow: ellipsis;
      flex: 0 0 auto;
    }

    .taskbar-tab:hover {
      background: rgba(255, 255, 255, 0.14);
    }

    .taskbar-tab.active {
      background: rgba(255, 255, 255, 0.22);
    }

    .panel-stack {
      display: grid;
      gap: 14px;
    }

    .panel-box {
      border: 1px solid #e5e7eb;
      border-radius: 10px;
      padding: 14px;
      background: #fff;
    }

    .panel-box h3 {
      margin-top: 0;
    }

    .window-body button {
      padding: 8px 12px;
      cursor: pointer;
    }

    .window-body input[type="text"],
    .window-body input[type="search"] {
      border: 1px solid #cbd5e1;
      border-radius: 8px;
    }

    .window-body .active {
      outline: 2px solid #2563eb;
    }

    .marker-pin {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: 3px solid white;
      box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
    }

    .marker-start { background: #16a34a; }
    .marker-end { background: #dc2626; }
    .marker-free { background: #7c3aed; }
    .marker-user { background: #2563eb; }

    .custom-map-controls {
      display: flex;
      flex-direction: column;
      gap: 10px;
      pointer-events: auto;
    }

    .custom-map-btn {
      width: 46px;
      height: 46px;
      border: 0;
      border-radius: 12px;
      background: rgba(17, 17, 17, 0.92);
      color: #fff;
      display: grid;
      place-items: center;
      cursor: pointer;
      font-size: 24px;
      line-height: 1;
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
      backdrop-filter: blur(8px);
      transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    }

    .custom-map-btn:hover {
      background: rgba(32, 32, 32, 0.96);
      transform: translateY(-1px);
      box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
    }

    .custom-map-btn:active {
      transform: translateY(0);
    }

    .custom-map-btn:focus-visible {
      outline: 2px solid #2563eb;
      outline-offset: 3px;
    }

    .custom-map-btn svg {
      display: block;
    }

    .maplibregl-ctrl-top-right {
      right: var(--map-edge-gap);
      top: var(--map-edge-gap);
    }

    .maplibregl-ctrl-bottom-right {
      right: var(--map-edge-gap);
      bottom: calc(var(--taskbar-height) + 12px);
    }

    .maplibregl-ctrl-bottom-left {
      left: var(--map-edge-gap);
      bottom: calc(var(--taskbar-height) + 12px);
    }

    .maplibregl-ctrl-top-right > .custom-nav-wrapper,
    .maplibregl-ctrl-bottom-right > .custom-nav-wrapper,
    .maplibregl-ctrl-bottom-left > .custom-nav-wrapper {
      margin: 0 !important;
    }

    /* DAS ist der wichtige Abstand zwischen unterstem Button und Attribution */
    .maplibregl-ctrl-bottom-right > .custom-nav-wrapper {
      margin: 0 0 var(--controls-attrib-gap) 0 !important;
    }

    .maplibregl-ctrl-bottom-right > .maplibregl-ctrl-attrib,
    .maplibregl-ctrl-bottom-right > details.maplibregl-ctrl-attrib,
    .maplibregl-ctrl-bottom-left > .maplibregl-ctrl-attrib,
    .maplibregl-ctrl-bottom-left > details.maplibregl-ctrl-attrib {
      margin: 0 !important;
    }

    @media (max-width: 800px) {
      .mega-dropdown.open {
        grid-template-columns: 1fr 1fr;
      }
    }

    @media (max-width: 640px) {
      :root {
        --taskbar-height: 58px;
        --map-edge-gap: 10px;
        --controls-attrib-gap: 12px;
      }

      #overlay {
        top: 10px;
        left: 10px;
      }

      .mega-dropdown {
        min-width: min(92vw, 420px);
        max-width: 92vw;
        padding: 16px;
        max-height: calc(100vh - 90px);
      }

      .mega-dropdown.open {
        grid-template-columns: 1fr;
      }

      #taskbar {
        padding: 8px;
      }

      .app-window {
        left: 0 !important;
        right: 0 !important;
        bottom: 58px !important;
        top: auto !important;
        width: 100vw !important;
        height: min(72vh, 560px) !important;
        min-width: 100vw;
        min-height: 220px;
        border-radius: 16px 16px 0 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
      }

      .window-header {
        cursor: default;
      }

      .window-resize {
        display: none;
      }

      .custom-map-controls {
        gap: 8px;
      }

      .custom-map-btn {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        font-size: 22px;
      }
    }
