/* =============================
   stats.css
============================= */
/* Removed duplicate :root and .av_stats_box definitions */

.av_stats_box {
    /* font-family: 'Inter', sans-serif; Removed - Inherit from body */
    background-color: #ffffff1a; /* Changed from var(--primary-blue) */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 0; /* Added vertical padding */
    margin: 0;
    position: absolute; /* Added for positioning within hero */
    bottom: 0;          /* Added for positioning within hero */
    left: 0;            /* Added for positioning within hero */
    width: 100%;        /* Added for positioning within hero */
    z-index: 1;         /* Added to ensure it's above hero image overlay */
}

.av_stats-container {
    display: flex;
    justify-content: space-around;
    align-items: stretch; /* Align items to stretch vertically */
    color: var(--white); /* Use variable */
    padding: 10px 10px; /* Adjusted padding */
    border-radius: 0; /* Remove border-radius from container */
    width: 100%; /* Make container full width */
    max-width: 100%; /* Make container full width */
    /* Removed background-color to inherit from av_stats_box */
    /* Removed box-shadow as it's on a dark background */
}

.av_stat-item {
    text-align: center;
    flex: 1;
    padding: 10px 15px; /* Adjusted padding */
    position: relative; /* For pseudo-element border */
    display: flex; /* Use flexbox for better alignment */
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Ensure vertical centering */
}
/* Add subtle separator */
.av_stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%; /* Adjust vertical position */
    bottom: 15%; /* Adjust vertical position */
    width: 1px;
    background-color: rgba(255, 255, 255, 0.5);
}

/* Removed highlight styles for now */


.av_stat-number {
    color: var(--secondary-yellow);
    background: linear-gradient(90deg, #ffd700, #ff8c00, #ffd700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text; /* Standard property added */
    -webkit-text-fill-color: transparent;
    animation: gradientAnimation 3s linear infinite;
    margin-bottom: 2px;
    min-height: 1.2em;
    line-height: 1.1;
    display: block;
    font-family: LufthansaHead, "Lufthansa Head", Arial, Roboto, Helvetica, sans-serif;
    font-size: 2.6em;
    font-weight: 700;
}

/* Removed styles for .av_stat_unit */


.av_stat-label {
    font-size: 0.85em; /* Slightly smaller label */
    color: var(--white); /* Use variable */
    opacity: 0.85; /* Slightly transparent label */
    line-height: 1.3; /* Adjusted line-height */
    font-weight: 400; /* Use regular weight */
}

/* Responsive adjustments */
@media (max-width: 768px) { /* Adjusted breakpoint */
    .av_stats-container {
        width: 95%;
        padding: 15px 5px; /* Adjust padding */
    }
    .av_stat-number {
        font-size: 1.8em; /* Adjust size */
    }
    .av_stat-label {
        font-size: 0.8em; /* Adjust size */
    }


}

@media (max-width: 600px) {
    .av_stats_box {
        padding: 0px 0; /* Adjust padding */
    }
    .av_stats-container {
        flex-direction: row; /* Keep horizontal on mobile */
        flex-wrap: wrap; /* Allow wrapping */
        width: 100%;
        padding: 0px;
        justify-content: center; /* Center items */
    }
    .av_stat-item {
        flex-basis: 45%; /* Two items per row */
        margin-bottom: 0px; /* Space between rows */
        padding: 10px;
    }
    /* Hide 3rd and 4th items */
    .av_stat-item:nth-child(3),
    .av_stat-item:nth-child(4) {
        display: none;
    }
    /* Remove border on items 2 and 4 (right side) */
    .av_stat-item:nth-child(2n)::after {
        display: none;
    }
     /* Remove border on all items on mobile if preferred */
    /* .av_stat-item:not(:last-child)::after { display: none; } */

    .av_stat-item:last-child {
        margin-bottom: 20px; /* Ensure consistent margin */
    }
     /* Adjust margin for last row if odd number */
     .av_stat-item:nth-last-child(-n+2) { /* Target last 1 or 2 items */
         margin-bottom: 0;
     }

    .av_stat-number {
        font-size: 1.4em; /* Adjusted size */
    }
    .av_stat-label {
        font-size: 0.8em; /* Adjusted size */
    }



}

/* =============================
   STATS (Counters - Unchanged for now)
============================= */
/* Styles for the other .stats section remain below */
.stats {
 background-size: 132%;
 text-align: center;
 padding: 130px 0;
  background-position: 5% 68%;
  text-align: center;
  padding: 130px 0;

  position: relative;
}

.stats::before {
content: '';
background: url(https://media.istockphoto.com/id/2200727360/de/vektor/flughafensymbol-mit-kontrollturm-terminalgeb%C3%A4ude-und-flugzeug-das-landet-und-startet.jpg?s=2048x2048&w=is&k=20&c=H8NAacq89p2kSIwbpPeO0jaCq6J5FOtXCM1x0k-oayU=) no-repeat center;
opacity: 0.05;
position: absolute;
top: -311px;
left: 0;
width: 102%;
height: 159%;
pointer-events: none;
background-size: 62%;
}

.stats .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.stat-box {
  width: 370px;
  background: #05164D;
  padding: 60px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transform: translateY(30px);
  opacity: 0;
  transition: 0.8s ease;
}
.stat-box.visible {
  opacity: 1;
  transform: translateY(0);
}
.counter {
  font-size: 3em;
  font-weight: bold;
  color: #FFAD00;
}
.stats p {
  margin-top: 10px;
  font-size: 1.1em;
  color: #fff;
}
