/*** Frontend Styling for Dynamic Text Block ***/

/** Ecobased Approaches **/
.wp-block-nbs-practice-ecosystem-approach {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    font-weight: bold;
    text-transform: uppercase;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}

.wp-block-nbs-practice-ecosystem-approach li {
    position: relative;
    padding: 0 0.8em 0 0;
}

.wp-block-nbs-practice-ecosystem-approach li:not(:last-child)::after {
    content: " |";
    position: absolute;
    right: 0;
}


/** main problems addressed **/
.wp-block-nms-main-problem-pair {
	font-size:90%
}

/** Two column Lists **/
.veraenderbar {
  column-count: 2;
  column-gap: 30px; /* Abstand zwischen den Spalten */
}

.veraenderbar p {
	margin-top: 0;
}

/** assigned landscapes **/
.nbs-assigned-landscapes {
  display: grid;
  grid-template-columns: repeat(auto-fill, 4rem);
  grid-gap: 0.5rem;
}
.nbs-assigned-landscapes > figure {
  width: 100%;
  margin: 0;
}

.tooltip {
  position: relative;
  cursor: pointer;
}

@keyframes float {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-4px);
  }
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    padding: 0.5em 0.8em;
    background: var(--cc-fourth);
    color: white;
    font-size: 0.9rem;
    border-radius: 0.3em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
    transform: translateX(-50%) translateY(0);
	box-shadow: 0px 3px 8px -6px #000;
}

.tooltip:hover::after {
  opacity: 1;
  animation: float 2s ease-in-out infinite;
}

/**  ***/

.nbs-practice-ecosystem-services strong {
	color: var(--cc-third)
}

/* Show dot.svg before every paragraph */
.nbs-practice-project-challenges p {
  position: relative;
  padding-left: 24px;      /* space for the icon */
}

/* Insert the icon before the first word */
.nbs-practice-project-challenges p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;              /* adjust vertical alignment */
  width: 16px;             /* icon size */
  height: 16px;
  background-image: url("img/list-dot-nbs01.svg");
  background-repeat: no-repeat;
  background-size: contain; /* scale SVG into the box */
}
.nbs-practice-cost-analysis b,
.nbs-practice-cobenefits-indicators strong,
.nbs-practice-project-challenges strong {
	font-weight:600;
}

/* Add space for the dot */
.nbs-practice-cost-analysis p:nth-of-type(2n+1),
.nbs-practice-cobenefits-indicators p:nth-of-type(2n+1) {
  position: relative;
  padding-left: 24px;      /* space for the dot */
}

/* White dot before the first word */
.nbs-practice-cost-analysis p:nth-of-type(2n+1)::before,
.nbs-practice-cobenefits-indicators p:nth-of-type(2n+1)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;             /* adjust vertical alignment */
  width: 12px;             /* dot size */
  height: 12px;
  border-radius: 50%;      /* make it a circle */
  background-color: white; /* white dot */
}