.lhm-map {
  display: grid;
  grid-template-columns: 1.25fr minmax(280px, 0.75fr);
  border-radius: 22px;
  overflow: hidden;
  max-width: 1100px;
  min-height: 620px;
  margin: 0 auto;
  background: #edf1ed;
  align-items: stretch;
}

.lhm-map-side {
  padding: 20px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lhm-map-image-wrap {
  position: relative;
  width: 100%;
  max-width: 620px;
  height: auto;
  min-height: 0;
  margin: 0 auto;
}

.lhm-map-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.lhm-pin {
  position: absolute;
  width: var(--lhm-pin-size, 14px) !important;
  height: var(--lhm-pin-size, 14px) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  appearance: none;
  border-radius: 50%;
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
  background: var(--lhm-pin-color);
  box-shadow: 0 0 0 0 rgba(47, 168, 115, 0);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.lhm-pin:hover,
.lhm-pin:focus-visible,
.lhm-pin.is-active {
  background: var(--lhm-pin-active);
  transform: translate(-50%, -50%) scale(1.18);
  box-shadow: 0 0 0 6px rgba(47, 168, 115, 0.2);
}

.lhm-pin-tooltip {
  position: absolute;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  background: rgba(38, 56, 50, 0.96);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(16, 24, 40, 0.26);
  padding: 8px 12px;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}

.lhm-pin-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lhm-panel {
  background: var(--lhm-panel-bg);
  color: var(--lhm-panel-text);
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 0px;
}

.lhm-panel-head {
  background: var(--lhm-panel-head-bg);
  padding: 20px 16px;
}

.lhm-panel-title {
  margin: 0;
  font-size: clamp(24px, 3.8vw, 30px);
  line-height: 1.1;
  text-align: center;
  color:#FFFFFF;
}

.lhm-panel-body {
  padding: 24px 34px 30px;
}

.lhm-panel-meta {
  font-size: clamp(18px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  padding: 14px 0;
}

.lhm-panel-meta + .lhm-panel-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.lhm-panel-area::before,
.lhm-panel-year::before {
  display: block;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.82;
  margin-bottom: 8px;
}

.lhm-panel-area::before {
  content: "Fläche";
}

.lhm-panel-year::before {
  content: "Jahr";
}

.lhm-panel-category {
  font-size: clamp(16px, 2.2vw, 18px);
}

.lhm-panel-category.is-empty,
.lhm-panel-area.is-empty,
.lhm-panel-year.is-empty {
  display: none;
}

.lhm-panel-meta:first-of-type {
  margin-top: 2px;
}

.lhm-area-unit {
  font-size: 0.5em;
  font-weight: 500;
  vertical-align: baseline;
  opacity: 0.92;
}

@media (max-width: 1300px) {
  .lhm-map {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .lhm-panel {
    border-radius: 0;
    height: auto;
  }

  .lhm-map-side {
    height: auto;
    padding: 20px 16px;
  }

  .lhm-map-image-wrap {
    height: auto;
    min-height: 0;
  }

  .lhm-map-image-wrap img {
    height: auto;
  }
}
