/*
 Theme Name:   Landvolk
 Theme URI:    https://landvolk.net
 Description:  Das Theme für die Landvolk-Website, basierend auf Bricks Builder.
 Author:       blanq
 Author URI:   https://blanq.agency
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

* {
  scroll-margin-top: 150px;
}

.ag-blog-card-hover-scale {
  .ag-blog-card__img {
    transform: scale(1);
    transition: transform ease-out 0.25s;
  }
}

.ag-blog-card-hover-scale:hover,
.ag-blog-card-hover-scale:focus {
  .ag-blog-card__title {
    text-decoration: underline;
  }
  .ag-blog-card__img {
    transform: scale(1.03);
  }
}

.landvolk-klv-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.landvolk-klv-map {
  position: relative;
}

.landvolk-klv-map__marker {
  cursor: default;
  transition: opacity 0.2s ease;
  outline: none;
}

.landvolk-klv-map__marker.is-linked {
  cursor: pointer;
}

.landvolk-klv-map__marker:focus,
.landvolk-klv-map__marker:focus-visible {
  outline: none;
}

.landvolk-klv-map__marker-shape {
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
  transform-origin: center;
  transform-box: fill-box;
}

.landvolk-klv-map__marker.is-linked:hover .landvolk-klv-map__marker-shape,
.landvolk-klv-map__marker.is-linked:focus .landvolk-klv-map__marker-shape,
.landvolk-klv-map__marker.is-linked:focus-visible .landvolk-klv-map__marker-shape,
.landvolk-klv-map__marker.is-active .landvolk-klv-map__marker-shape {
  transform: scale(1.65);
  filter:
    drop-shadow(0 0 0 4px rgba(255, 255, 255, 0.95))
    drop-shadow(0 6px 14px rgba(179, 45, 46, 0.28));
}

.landvolk-klv-map__marker path,
.landvolk-klv-map__marker circle {
  transition:
    fill 0.2s ease,
    stroke 0.2s ease,
    stroke-width 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
  transform-origin: center;
  transform-box: fill-box;
}

.landvolk-klv-map__marker.is-linked:hover path,
.landvolk-klv-map__marker.is-linked:focus path,
.landvolk-klv-map__marker.is-linked:focus-visible path,
.landvolk-klv-map__marker.is-active path {
  fill: #b32d2e;
  stroke: #fff7ec;
  stroke-width: 1.35px;
}

.landvolk-klv-map__marker.is-linked:hover circle,
.landvolk-klv-map__marker.is-linked:focus circle,
.landvolk-klv-map__marker.is-linked:focus-visible circle,
.landvolk-klv-map__marker.is-active circle {
  fill: #fff7ec;
  transform: scale(1.18);
}

.landvolk-klv-map__marker.is-filtered-out {
  opacity: 0.2;
}

.landvolk-klv-map__tooltip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(31, 77, 26, 0.94);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  pointer-events: none;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 12px));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.landvolk-klv-map__tooltip[hidden] {
  display: none;
}

.landvolk-klv-result.is-map-active .bricks-button,
.landvolk-klv-result .bricks-button.is-map-active,
.landvolk-klv-result.is-map-active a,
.landvolk-klv-result.is-map-active button {
  outline: 2px solid #1f4d1a;
  outline-offset: 2px;
}
