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

    #map {
      width: 100%;
      height: 100%;
    }

    .topbar {
      position: absolute;
      z-index: 1000;
      top: 10px;
      left: 50px;
      background: rgba(255,255,255,0.95);
      padding: 8px 12px;
      border-radius: 6px;
      box-shadow: 0 1px 6px rgba(0,0,0,0.25);
      font-size: 14px;
      max-width: 360px;
    }

    .layer-box {
      position: absolute;
      z-index: 1000;
      top: 90px;
      left: 50px;
      background: rgba(255,255,255,0.95);
      padding: 10px 12px;
      border-radius: 6px;
      box-shadow: 0 1px 6px rgba(0,0,0,0.25);
      font-size: 14px;
      max-width: 360px;
      max-height: 60vh;
      overflow: auto;
    }

    .layer-box h3 {
      margin: 0 0 8px 0;
      font-size: 14px;
    }

    .location-button {
      position: absolute;
      z-index: 1100;
      right: 12px;
      top: 12px;
      border: 0;
      border-radius: 8px;
      padding: 10px 14px;
      background: rgba(255,255,255,0.96);
      box-shadow: 0 1px 6px rgba(0,0,0,0.25);
      font-size: 14px;
      font-weight: bold;
      cursor: pointer;
    }

    .location-button:hover {
      background: #fff;
    }

    .location-button.active {
      outline: 2px solid #2980b9;
    }

    .location-button.error {
      outline: 2px solid #c0392b;
    }

    .layer-toggle-button {
      display: none;
      position: absolute;
      z-index: 1100;
      left: 10px;
      top: 58px;
      border: 0;
      border-radius: 8px;
      padding: 10px 12px;
      background: rgba(255,255,255,0.96);
      box-shadow: 0 1px 6px rgba(0,0,0,0.25);
      font-size: 14px;
      font-weight: bold;
      cursor: pointer;
    }

    .status-box {
      position: absolute;
      z-index: 1000;
      bottom: 14px;
      left: 50px;
      background: rgba(255,255,255,0.95);
      padding: 8px 12px;
      border-radius: 6px;
      box-shadow: 0 1px 6px rgba(0,0,0,0.25);
      font-size: 13px;
      max-width: 520px;
      color: #333;
      display: none;
      white-space: pre-wrap;
    }

    .layer-master-buttons {
      display: flex;
      gap: 8px;
      margin: 0 0 10px 0;
    }

    .layer-section-divider {
      border-top: 1px solid #ccc;
      margin: 12px 0 10px 0;
    }

    .opacity-control {
      display: flex;
      align-items: center;
      gap: 6px;
      margin: 2px 0 8px 28px;
      font-size: 12px;
      flex-wrap: wrap;
    }
    .opacity-control input[type="range"] {
      width: 150px;
      max-width: 55%;
      accent-color: #446b8b;
    }

    .opacity-control output {
      min-width: 38px;
      text-align: right;
      font-variant-numeric: tabular-nums;
    }

    .opacity-control button {
      border: 1px solid #aaa;
      border-radius: 5px;
      padding: 4px 8px;
      background: #f7f7f7;
      cursor: pointer;
      font-size: 12px;
      min-width: 42px;
    }

    .opacity-control button.active {
      background: #dfe9d7;
      border-color: #6b8e55;
      font-weight: bold;
    }

    .layer-master-buttons button {
      border: 1px solid #aaa;
      border-radius: 5px;
      padding: 5px 9px;
      background: #f7f7f7;
      cursor: pointer;
      font-size: 13px;
    }

    .layer-master-buttons button:hover {
      background: #fff;
    }

    .layer-item {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 6px;
    }

    .color-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      display: inline-block;
      flex: 0 0 12px;
    }

    .popup-thumb {
      width: 220px;
      max-width: 100%;
      border-radius: 6px;
      cursor: pointer;
      display: block;
      margin-bottom: 8px;
    }

    .popup-title {
      font-weight: bold;
      margin-bottom: 4px;
    }

    .popup-project {
      font-size: 0.85rem;
      color: #555;
      margin-bottom: 6px;
    }

    .popup-meta {
      font-size: 0.92rem;
      line-height: 1.35;
    }

    .popup-desc {
      margin-top: 6px;
    }

    .lightbox {
      display: none;
      position: fixed;
      z-index: 5000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.9);
      align-items: center;
      justify-content: center;
      padding: 20px;
      box-sizing: border-box;
    }

    .lightbox-content {
      position: relative;
      width: min(96vw, 1600px);
      max-height: 94vh;
      background: #fff;
      border-radius: 8px;
      padding: 14px;
      box-sizing: border-box;
      overflow: auto;
    }

    .lightbox img {
      max-width: 100%;
      max-height: 72vh;
      width: auto;
      height: auto;
      display: block;
      margin: 0 auto 12px auto;
      border-radius: 6px;
    }

    .lightbox-close {
      position: fixed;
      top: 14px;
      right: 20px;
      color: #fff;
      font-size: 34px;
      cursor: pointer;
      line-height: 1;
      font-weight: bold;
      z-index: 6000;
      user-select: none;
    }

    .lightbox-nav {
      position: fixed;
      top: 50%;
      transform: translateY(-50%);
      color: #fff;
      font-size: 48px;
      font-weight: bold;
      cursor: pointer;
      z-index: 6000;
      user-select: none;
      padding: 12px 18px;
      background: rgba(0,0,0,0.25);
      border-radius: 8px;
    }

    .lightbox-prev {
      left: 18px;
    }

    .lightbox-next {
      right: 18px;
    }

    .lightbox-title {
      font-weight: bold;
      font-size: 1.1rem;
      margin-bottom: 6px;
    }

    .lightbox-meta {
      line-height: 1.5;
      font-size: 0.85rem;
      color: #555;
    }

    .lightbox-counter {
      display: none;
    }

    @media (max-width: 700px) {
      .topbar {
        top: 8px;
        left: 8px;
        right: 8px;
        max-width: none;
        padding: 6px 8px;
        font-size: 12px;
        line-height: 1.25;
      }

      .topbar br {
        display: none;
      }

      .topbar strong::after {
        content: "";
      }

      .topbar {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .location-button {
        top: 52px;
        right: 10px;
        padding: 9px 11px;
        font-size: 13px;
        max-width: 58vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .layer-toggle-button {
        display: block;
        top: 52px;
        left: 10px;
        padding: 9px 11px;
        font-size: 13px;
      }

      .layer-box {
        display: none;
        top: 96px;
        left: 10px;
        right: 10px;
        max-width: none;
        max-height: 46vh;
        padding: 10px;
      }

      .layer-box.mobile-open {
        display: block;
      }

      .status-box {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
        max-height: 35vh;
        overflow: auto;
        font-size: 12px;
      }

      .layer-item {
        margin-bottom: 8px;
      }

      .layer-item label {
        flex: 1;
      }

      .popup-thumb {
        width: 160px;
      }

      .lightbox {
        padding: 8px;
      }

      .lightbox-content {
        width: 96vw;
        max-height: 92vh;
        padding: 10px;
      }

      .lightbox img {
        max-height: 68vh;
      }

      .lightbox-nav {
        font-size: 34px;
        padding: 6px 9px;
        background: rgba(0,0,0,0.38);
      }

      .lightbox-prev {
        left: 6px;
      }

      .lightbox-next {
        right: 6px;
      }

      .lightbox-close {
        top: 8px;
        right: 12px;
        font-size: 30px;
      }

      .lightbox-title {
        font-size: 1rem;
      }

      .lightbox-meta {
        font-size: 0.8rem;
      }
    }
  
/* V8: dezente Zoomanzeige */
.map-zoom-info {
  background: rgba(255,255,255,0.88);
  color: #333;
  padding: 3px 7px;
  border-radius: 3px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
