/*** 
=============================================
    Fact Counter Area style
=============================================
***/
.fact-counter-area {
    position: relative;
    display: block;
    background: #f5f6f7;
    padding: 212px 0 70px;
    z-index: 2;
}

.fact-counter-area-bg {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    background-color: var(--thm-black);
    background-blend-mode: luminosity;
    z-index: -1;
}

.fact-counter-area-bg:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: var(--thm-black);
    opacity: 0.95;
}

.fact-counter-box {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}


.single-fact-counter {
    position: relative;
    display: block;
    max-width: 25%;
    width: 100%;
    padding-left: 60px;
    padding-right: 40px;
    margin-bottom: 38px;
}

.single-fact-counter:first-child {
    padding-left: 0;
}

.single-fact-counter:last-child {
    padding-right: 0;
}

.single-fact-counter:before {
    content: "";
    position: absolute;
    top: 10px;
    right: 0;
    bottom: 8px;
    width: 1px;
    background: #ffffff;
    opacity: 0.10;
}

.single-fact-counter:last-child:before {
    display: none;
}



.single-fact-counter .inner {
    position: relative;
    display: block;
}

.single-fact-counter .count-box {
    position: relative;
    color: #ffffff;
    font-size: 70px;
    line-height: 60px;
    font-weight: 800;
    font-family: var(--thm-font);
    transition: all 200ms linear;
    transition-delay: 0.1s;
}

.single-fact-counter .count-box span {
    position: relative;
    display: inline-block;
}

.single-fact-counter .count-box .plus {
    position: relative;
    top: -3px;
    display: inline-block;
    font-size: 40px;
    font-weight: 700;
    line-height: 40px;
    margin-left: -11px;
}

.single-fact-counter .count-box .k {
    position: relative;
    display: inline-block;
    margin-left: -12px;
    font-weight: 700;
}


.single-fact-counter .title {
    position: relative;
    display: block;
    padding-top: 11px;
}

.single-fact-counter .title h3 {
    color: var(--thm-primary);
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    text-transform: none;
    font-family: var(--thm-font);
    margin: 0 0 24px;
}

.single-fact-counter .title p {
    color: #a5b9ad;
    margin: 0;
}
/* --- Modern Grid Layout Upgrade (Override Theme) --- */

/* --- Modern Grid Layout Upgrade (Override Theme) --- */

.fact-counter-area .fact-counter-box{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 40px !important;
  align-items: stretch !important;

  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

/* Kachel: Theme neutralisieren + linksbündiger Text */
.fact-counter-area .fact-counter-box > li.single-fact-counter{
  max-width: none !important;
  width: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-bottom: 0 !important;

  padding: 0 30px !important;
  position: relative !important;

  display: flex !important;
  flex-direction: column !important;

  align-items: flex-start !important;  /* <-- LINKS */
  text-align: left !important;         /* <-- LINKS */
}

/* Icon oben mittig */
.fact-counter-area .fact-counter-box > li.single-fact-counter .inner{
  align-self: center !important;
  margin-bottom: 18px !important;
}

/* alte Trennlinie vom Theme deaktivieren */
.fact-counter-area .fact-counter-box > li.single-fact-counter:before{
  display: none !important;
}

/* neue vertikale Trennlinien (Desktop) */
.fact-counter-area .fact-counter-box > li.single-fact-counter:not(:last-child)::after{
  content: "";
  position: absolute;
  top: 20%;
  right: -20px; /* halbes gap (40px / 2) */
  width: 1px;
  height: 60%;
  background: rgba(255,255,255,0.15);
}

/* Responsive: 2 Spalten */
@media (max-width: 1199px){
  .fact-counter-area .fact-counter-box{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  /* Trennlinie nur zwischen Spalte 1 und 2 je Zeile */
  .fact-counter-area .fact-counter-box > li.single-fact-counter::after{
    display: none;
  }
  .fact-counter-area .fact-counter-box > li.single-fact-counter:nth-child(odd)::after{
    display: block;
    right: -20px;
  }
}

/* Responsive: 1 Spalte */
@media (max-width: 575px){
  .fact-counter-area .fact-counter-box{
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .fact-counter-area .fact-counter-box > li.single-fact-counter{
    padding: 0 26px !important;
  }

  .fact-counter-area .fact-counter-box > li.single-fact-counter::after{
    display: none !important;
  }
}