/* ONE CXMXO — Plugin Styles v2.2 */

/* === KPI (existing, enhanced) === */
.one-kpi { display: inline-block; text-align: center; padding: 15px 25px; min-width: 140px; }
.one-kpi-value { display: block; font-size: 42px; font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; }
.one-kpi-label { display: block; font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.7); margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }

/* === Tags === */
.one-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 5px 0; }
.one-tag { display: inline-block; padding: 6px 16px; font-size: 13px; font-weight: 500; color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 20px; letter-spacing: 0.3px; transition: background 0.3s, border-color 0.3s; }
.one-tag:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.35); }

/* === Chart (multi-bar, donut, horizontal) === */
.one-chart { width: 100%; padding: 20px 0; }
.one-chart-bar-wrap { margin-bottom: 12px; }
.one-chart-bar-label { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 4px; }
.one-chart-bar-track { background: rgba(255,255,255,0.1); border-radius: 4px; height: 28px; overflow: hidden; position: relative; }
.one-chart-bar-fill { height: 100%; border-radius: 4px; display: flex; align-items: center; padding: 0 10px; font-size: 12px; font-weight: 600; color: #fff; width: 0; transition: width 1.2s cubic-bezier(0.25, 0.8, 0.25, 1); }
.one-chart-donut-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.one-chart-donut-item { text-align: center; }
.one-chart-donut-item svg { width: 100px; height: 100px; transform: rotate(-90deg); }
.one-chart-donut-item circle { fill: none; stroke-width: 8; }
.one-chart-donut-bg { stroke: rgba(255,255,255,0.1); }
.one-chart-donut-val { stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(0.25, 0.8, 0.25, 1); }
.one-chart-donut-label { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 6px; }
.one-chart-donut-num { font-size: 18px; font-weight: 700; color: #fff; margin-top: 2px; }
.one-chart-h-wrap { margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.one-chart-h-label { font-size: 13px; color: rgba(255,255,255,0.7); min-width: 80px; text-align: right; }
.one-chart-h-track { flex: 1; background: rgba(255,255,255,0.1); border-radius: 4px; height: 22px; overflow: hidden; }
.one-chart-h-fill { height: 100%; border-radius: 4px; width: 0; transition: width 1.2s cubic-bezier(0.25, 0.8, 0.25, 1); }
.one-chart-h-val { font-size: 12px; font-weight: 600; color: #fff; min-width: 40px; }

/* === Single Bar (one-bar) === */
.one-bar { width: 100%; margin: 18px 0; }
.one-bar-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.one-bar-label { font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.85); letter-spacing: 0.2px; }
.one-bar-num { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.one-bar-track { background: rgba(255,255,255,0.08); border-radius: 8px; height: 18px; overflow: hidden; }
.one-bar-fill { height: 100%; border-radius: 8px; width: 0; transition: width 1.4s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: 0 0 12px rgba(229,57,53,0.3); }

/* === Progress Ring (one-progress) === */
.one-progress { display: inline-flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 20px; position: relative; }
.one-progress svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.one-progress circle { fill: none; stroke-width: 6; }
.one-progress-bg { stroke: rgba(255,255,255,0.08); }
.one-progress-ring { stroke-linecap: round; transition: stroke-dashoffset 1.6s cubic-bezier(0.25, 0.8, 0.25, 1); }
.one-progress-center { position: absolute; top: 10px; left: 0; right: 0; height: 120px; display: flex; align-items: center; justify-content: center; gap: 1px; pointer-events: none; }
.one-progress-num { font-size: 28px; font-weight: 700; color: #fff; }
.one-progress-suffix { font-size: 16px; font-weight: 500; color: rgba(255,255,255,0.6); margin-top: 4px; }
.one-progress-label { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.7); margin-top: 8px; text-transform: uppercase; letter-spacing: 1px; }

/* === Counter (one-counter) === */
.one-counter { display: inline-block; text-align: center; padding: 15px 30px; }
.one-counter-value { display: block; font-size: 56px; font-weight: 800; line-height: 1.1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.one-counter-label { display: block; font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.7); margin-top: 8px; text-transform: uppercase; letter-spacing: 1.5px; }

/* === Company Info (one-company) === */
.one-company { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 24px 28px; margin: 20px 0; max-width: 520px; }
.one-company-name { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 6px; letter-spacing: -0.3px; }
.one-company-desc { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.5; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.one-company-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.one-company-field { display: flex; flex-direction: column; gap: 2px; }
.one-company-key { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); font-weight: 500; }
.one-company-val { font-size: 14px; color: rgba(255,255,255,0.9); font-weight: 500; }
.one-company-link { font-size: 14px; color: #e53935; text-decoration: none; font-weight: 500; transition: color 0.2s; }
.one-company-link:hover { color: #ff6659; text-decoration: underline; }

/* === Video === */
.one-video { width: 100%; margin: 10px 0; }
.one-video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.one-video-wrap iframe, .one-video-wrap video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* === CTA Box === */
.one-cta { text-align: center; padding: 40px 30px; margin: 20px 0; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; }
.one-cta-title { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 10px; letter-spacing: -0.3px; }
.one-cta-text { font-size: 15px; color: rgba(255,255,255,0.6); margin-bottom: 24px; line-height: 1.5; max-width: 440px; margin-left: auto; margin-right: auto; }
.one-cta-btn { display: inline-block; padding: 14px 36px; font-size: 15px; font-weight: 600; color: #fff; border-radius: 8px; text-decoration: none; letter-spacing: 0.3px; transition: transform 0.2s, box-shadow 0.2s; }
.one-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(229,57,53,0.4); color: #fff; text-decoration: none; }

/* ============================================================
   PORTFOLIO GRID v2.1 — Premium Dark Theme
   ============================================================ */

/* --- Stats counter bar --- */
.one-portfolio-stats { display: flex; justify-content: center; gap: 40px; margin-bottom: 32px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.one-portfolio-stat { text-align: center; }
.one-portfolio-stat-num { font-size: 32px; font-weight: 800; color: #fff; letter-spacing: -1px; line-height: 1.1; }
.one-portfolio-stat-label { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 4px; }

/* --- Container: self-contained dark theme --- */
.one-portfolio { width: 100%; background: #0d0d0d; padding: 60px 40px; border-radius: 0; box-sizing: border-box; }
.one-portfolio-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; padding: 12px 20px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 50px; }
.one-portfolio-filter { display: inline-block; padding: 8px 20px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.6); background: transparent; border: 1px solid transparent; border-radius: 20px; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); letter-spacing: 0.3px; }
.one-portfolio-filter:hover { color: #fff; background: rgba(255,255,255,0.08); }
.one-portfolio-filter.active { background: #e53935; color: #fff; border-color: #e53935; box-shadow: 0 4px 15px rgba(229,57,53,0.35); }

/* --- Grid --- */
.one-portfolio-grid { display: grid; gap: 24px; }
.one-portfolio-grid[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.one-portfolio-grid[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.one-portfolio-grid[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }

/* --- Cards: glass morphism dark --- */
.one-portfolio-card { display: block; position: relative; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; opacity: 0; transform: translateY(30px); transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s, opacity 0.5s, border-color 0.4s; }
.one-portfolio-card.visible { opacity: 1; transform: translateY(0); }
.one-portfolio-card.visible:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(229,57,53,0.15); border-color: rgba(229,57,53,0.2); }
.one-portfolio-card.hidden { opacity: 0; transform: translateY(30px) scale(0.95); position: absolute; visibility: hidden; pointer-events: none; }

/* Accent glow line at bottom on hover */
.one-portfolio-card::after { content: ''; position: absolute; bottom: 0; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, transparent, #e53935, transparent); opacity: 0; transition: opacity 0.4s; border-radius: 2px; }
.one-portfolio-card.visible:hover::after { opacity: 1; }

/* --- Thumbnail --- */
.one-portfolio-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: rgba(255,255,255,0.02); }
.one-portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); }
.one-portfolio-card:hover .one-portfolio-thumb img { transform: scale(1.08); }

/* --- Overlay: gradient + glassmorphism --- */
.one-portfolio-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, transparent 100%); display: flex; align-items: flex-end; justify-content: space-between; padding: 16px; opacity: 0; transition: opacity 0.35s; }
.one-portfolio-card:hover .one-portfolio-overlay { opacity: 1; }

/* --- Badge --- */
.one-portfolio-badge { display: inline-block; padding: 5px 14px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(229,57,53,0.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 20px; letter-spacing: 0.5px; text-transform: uppercase; }

/* --- Arrow button --- */
.one-portfolio-arrow { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 50%; font-size: 18px; color: #fff; line-height: 1; transition: background 0.3s, transform 0.3s; }
.one-portfolio-card:hover .one-portfolio-arrow { background: #e53935; transform: rotate(-45deg) scale(1.1); }

/* --- Card info --- */
.one-portfolio-info { padding: 18px 20px 20px; }
.one-portfolio-title { font-size: 17px; font-weight: 700; color: #fff; margin: 0 0 5px; letter-spacing: -0.2px; line-height: 1.3; }
.one-portfolio-subtitle { font-size: 13px; color: rgba(255,255,255,0.5); margin: 0; line-height: 1.4; }

/* === Portfolio video background === */
.av-section-video-bg video { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .one-portfolio-grid[data-columns="3"],
    .one-portfolio-grid[data-columns="4"] { grid-template-columns: repeat(2, 1fr); }
    .one-portfolio-stats { gap: 24px; }
    .one-portfolio-stat-num { font-size: 26px; }
}
@media (max-width: 767px) {
    .one-portfolio { padding: 40px 16px; }
    .one-portfolio-grid { grid-template-columns: 1fr !important; }
    .one-portfolio-filters { gap: 6px; margin-bottom: 24px; padding: 10px 14px; border-radius: 16px; }
    .one-portfolio-filter { padding: 7px 14px; font-size: 12px; }
    .one-portfolio-info { padding: 14px 16px 16px; }
    .one-portfolio-title { font-size: 16px; }
    .one-portfolio-card { border-radius: 12px; }
    .one-portfolio-stats { flex-wrap: wrap; gap: 16px 32px; }
    .one-portfolio-stat-num { font-size: 24px; }
}
@media (max-width: 767px) {
    .one-kpi { min-width: 100px; padding: 10px 15px; }
    .one-kpi-value { font-size: 32px; }
    .one-kpi-label { font-size: 12px; }
    .one-tag { padding: 5px 12px; font-size: 12px; }
    .one-counter-value { font-size: 40px; }
    .one-counter-label { font-size: 12px; }
    .one-progress svg { width: 100px; height: 100px; }
    .one-progress-center { height: 100px; }
    .one-progress-num { font-size: 22px; }
    .one-company { padding: 18px 20px; }
    .one-company-meta { grid-template-columns: 1fr; gap: 8px; }
    .one-bar-num { font-size: 15px; }
    .one-cta { padding: 30px 20px; }
    .one-cta-title { font-size: 22px; }
    .one-cta-btn { padding: 12px 28px; }
}

/* === Exit Intent Popup === */
.one-exit-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.one-exit-popup.visible { display: flex; }
.one-exit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
.one-exit-inner { position: relative; z-index: 1; }
.one-exit-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.one-exit-close:hover { background: rgba(255,255,255,.28); }
.one-exit-card {
  display: block;
  text-decoration: none;
  position: relative;
  width: min(260px, 72vw);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
}
.one-exit-video {
  display: block;
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 20px;
}
.one-exit-cta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 1rem 1.4rem;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}
.one-exit-cta strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #00adff;
  margin-top: .3rem;
}

/* === Phone Mockup (ocs-phone) — hero + case phone strip === */
.ocs-phone { position: relative; width: 273px; height: 561px; margin: 0 auto; }
.ocs-phone video { margin: -2px 2px 0; border-radius: 30px; box-shadow: rgba(0,0,0,0.45) 0px 15px 25px, rgba(0,0,0,0.5) 0px 5px 10px; width: 265px; height: 535px; display: block; object-fit: cover; }
.ocs-phone .ocs-phone-overlay { position: absolute; top: -14px; left: 0; opacity: 1; pointer-events: none; }
.ocs-phone-label { text-align: center; margin: 0.5rem 0 0; }
.ocs-phone-label a, #top .ocs-phone-label a { font-size: 0.9rem; font-weight: 600; color: #222 !important; text-decoration: none; letter-spacing: 0.05em; opacity: 0.9; }
.ocs-phone-tilt { transform: rotate(-1deg); transform-origin: center center; }
.ocs-phone-kpis { position: absolute; bottom: 45px; left: 8px; right: 8px; background: rgba(0,0,0,0.68); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 0 0 16px 16px; padding: 8px 6px; display: flex; justify-content: space-around; gap: 4px; z-index: 20; }
.ocs-phone-kpis span { font-size: 0.6rem; color: #fff !important; font-weight: 700; text-align: center; line-height: 1.3; letter-spacing: 0.02em; }

/* FIX: ocs-phone stacking context (overrides Enfold .image-overlay z-index:300) */
.ocs-phone { isolation: isolate !important; }
.ocs-phone .ocs-phone-overlay { z-index: 2 !important; }

/* FIX: clip video/image corners via the <a> wrapper instead of video itself */
.ocs-phone > a { display: block; border-radius: 30px; overflow: hidden; width: 265px; height: 535px; margin: -2px 2px 0; }
.ocs-phone video, .ocs-phone img.ocs-phone-bg-img { border-radius: 0 !important; margin: 0 !important; width: 100% !important; height: 100% !important; }

/* City grids — /deutschland/ + /international/ parent pages */
.smo-city-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.5rem 0 2rem; }
.smo-city-pill { display: inline-flex; align-items: center; padding: 10px 20px; background: #f2f2f2; border-radius: 100px; text-decoration: none; color: #191919; font-weight: 600; font-size: .88rem; transition: background .18s, color .18s, transform .18s; line-height: 1; border: 1.5px solid transparent; }
.smo-city-pill:hover { background: #191919; color: #fff !important; transform: translateY(-2px); border-color: #191919; }
