@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800&display=swap');

/* ============================================================
   LERNWEG WIDGET — SVG v2 FINAL
   ============================================================ */
/**, *::before, *::after { box-sizing: border-box; }*/

.lw-wrapper {
    font-family: 'DM Sans', sans-serif;
    background: #fff;
    border-radius: 18px;
    /* box-shadow: 0 2px 24px rgba(0,0,0,.07); */
    /* padding: 28px 28px 32px; */
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.lw-wrapper { 
    margin-bottom: 70px;
}

/* ── Header ── */
.lw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}
.lw-title { font-size: 35px;
    font-weight: 700;
    color: #1A3A27;
    letter-spacing: -.3px; }
.lw-select-wrap { position: relative; display: inline-flex; align-items: center; min-width: 260px; max-width: 380px; width: 100%;}
.lw-select {
    appearance: none; -webkit-appearance: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px; font-weight: 500; color: #1a1a1a;
    background: #fff; border: 1.5px solid #3ebd6e;
    border-radius: 12px; padding: 11px 44px 11px 18px;
    cursor: pointer; outline: none; min-width: 270px; transition: box-shadow .2s;
}
.lw-select:focus { box-shadow: 0 0 0 3px rgba(62,189,110,.12); }
.lw-chevron { position: absolute; right: 14px; width: 16px; height: 16px; color: #3ebd6e; pointer-events: none; }

/* ── Body ── */
.lw-body { display: flex; gap: 24px; align-items: flex-start; }

/* ── LEFT: Chart ── */
.lw-chart-wrap { flex: 1.8; min-width: 0; }

.lw-chart-inner {
    position: relative;
    background: #fff;
    border: 1.5px solid #e4e8ee;
    border-radius: 14px;
    overflow: hidden;  /* clips SVG to card border cleanly */
}

/*
  SVG wrapper — fixed height.
  SVG uses preserveAspectRatio="none" so it stretches to fill.
  To change chart height: edit this one value.
*/
#lwSvgWrap {
    width: 100%;
    height: 571px;
    position: relative;
    display: block;
}

/* Markers layer — sits on top of SVG */
.lw-markers {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    overflow: visible;
}

/* ── Milestone marker ── */
.lw-mk {
    position: absolute;
    display: flex; flex-direction: column; align-items: center;
    transform: translate(-50% , -10px);
    pointer-events: all; user-select: none; z-index: 10;
}
.lw-mk__label {
    font-size: 12px; font-weight: 700; color: #1a1a1a;
    line-height: 1; margin-bottom: 2px; white-space: nowrap;
}
.lw-mk__arrow { font-size: 13px; color: #1a1a1a; line-height: 1; margin-bottom: 2px; }
.lw-mk__dot {
    width: 26px; height: 26px; border-radius: 50%;
    border: 2.5px solid #22ac55; background: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; box-shadow: 0 2px 8px rgba(34,172,85,.20);
    transition: transform .18s, box-shadow .18s;
}
.lw-mk__dot svg { width: 12px; height: 12px; stroke: #22ac55; stroke-width: 3; fill: none; }
.lw-mk--done .lw-mk__dot { cursor: pointer; }
.lw-mk--done:hover .lw-mk__dot { transform: scale(1.22); box-shadow: 0 4px 16px rgba(34,172,85,.42); }
/* Locked */
.lw-mk--locked .lw-mk__dot { border-color: #c0cad4; box-shadow: none; }
.lw-mk--locked .lw-mk__dot svg { stroke: #c0cad4; }
.lw-mk--locked .lw-mk__label,
.lw-mk--locked .lw-mk__arrow  { color: #a8b5be; }

/* Scissors at 100% */
.lw-scissors {
    position: absolute; top: -90px; left: 50%;
    transform: translateX(-50%);
    pointer-events: none; z-index: 20;
    animation: lwSc 1.8s ease-in-out infinite;
}
@keyframes lwSc {
    0%,100% {
        transform: translateX(-50%) scale(1);
        filter: drop-shadow(0 0 6px rgba(34,172,85,.55)) drop-shadow(0 0 16px rgba(34,172,85,.28));
    }
    50% {
        transform: translateX(-50%) scale(1.15);
        filter: drop-shadow(0 0 14px rgba(34,172,85,.85)) drop-shadow(0 0 30px rgba(34,172,85,.48));
    }
}

/* ── RIGHT: Sidebar ── */
.lw-sidebar {
    flex: 1; min-width: 260px; max-width: 380px;
    background: #fff; border: 1.5px solid #e4e8ee;
    border-radius: 14px; overflow: hidden;
    width: 100%;
}
.lw-section-head {
    display: flex; align-items: center; gap: 8px;
    padding: 16px 16px 10px;
}
.lw-head-icon {
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}


.lw-items { padding: 0 14px 14px; }



.lw-item__row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; min-width: 0; }
.lw-item__num {
    font-size: 12px !important;
    font-weight: 400;
    color: #c0c8d0;
    flex-shrink: 0;
    min-width: 10px !important;
}

.lw-item__right { display: flex; align-items: center; gap: 5px; flex-shrink: 0; margin-left: 4px; }
.lw-item__pct { font-size: 11.5px; font-weight: 700; white-space: nowrap; }


.lw-item__pct--orange { color: #f07800; }


.lw-item__bar { width: 100%; height: 4px; background: #eef0f3; border-radius: 99px; overflow: hidden; }
.lw-item__fill { height: 100%; border-radius: 99px; transition: width .6s cubic-bezier(.4,0,.2,1); min-width: 2px; }
.lw-fill--green  { background: linear-gradient(90deg,#5dd47a,#2fa855); }
.lw-fill--red    { background: linear-gradient(90deg,#f87272,#e53535); }
.lw-fill--orange { background: linear-gradient(90deg,#ffb347,#f07800); }

#lwStrengths  { max-height: 260px; overflow-y: auto; }
#lwWeaknesses { max-height: 260px; overflow-y: auto; }
.lw-sidebar-section + .lw-sidebar-section { border-top: 1px solid #eff1f4; }
.lw-empty { font-size: 12px; color: #c0c8d0; padding: 10px 0; font-style: italic; }

/* ── POPUP ── */
.lw-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.46); z-index: 999999; align-items: center; justify-content: center; }
.lw-overlay.open { display: flex; }
.lw-popup {
    background: #fff; border-radius: 20px; padding: 48px 36px 32px;
    max-width: 550px; width: 92%; position: relative; text-align: center;
    box-shadow: 0 24px 80px rgba(0,0,0,.18);
    animation: lwPop .26s cubic-bezier(.34,1.56,.64,1);
}
@keyframes lwPop { from{transform:scale(.82);opacity:0} to{transform:scale(1);opacity:1} }
.lw-popup-x {
    position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
    border-radius: 50%; background: #3ebd6e; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; padding: 0; transition: background .15s;
}
.lw-popup-x:hover { background: #2fa855; }
.lw-popup-x svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 2.5; fill: none; }
.lw-popup-scissors { font-size: 52px; margin-bottom: 14px; display: none; }
.lw-popup-heading {
    font-family: 'Satoshi &#8211; Bold';
    font-weight: 700;
    font-size: 32px;
    color: #000000;
    margin-bottom: 30px;
    width: 87%;
    margin: 0 auto 30px;
    letter-spacing: -2px;
}
.lw-popup-sub      { font-size: 17px; font-weight: 800; color: #111; margin: 0 0 14px; }
.lw-popup-desc     {
font-weight: 500;
font-size: 14px;
line-height: 19px;
text-align: center;
letter-spacing: -0.02em;
color: #212A42;

}
.lw-popup-btn {
    background: #1A3A27;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 0;
    width: 100%;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    /*font-family: 'Satoshi';*/
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.03em;
    color: #FFFFFF;
    margin-top: 30px;
}
.lw-popup-btn:hover { background: #1FBB65; }

/* ── Responsive ── */
@media (max-width: 860px) { .lw-body { flex-direction: column; } .lw-sidebar { max-width: 100%; min-width: unset; } }
@media (max-width: 560px) { .lw-header { flex-direction: column; align-items: flex-start; } .lw-select { min-width: 100%; } #lwSvgWrap { height: 320px; } }

@media (max-width: 560px) {
    .lw-scissors svg {
        width: 60px;
        height: 60px;
    }
    .lw-scissors {
        position: absolute; top: -65px !important;; left: 50%;
    }
}

/* ==================================================================================================================================== */



.lw-section-head span {
    font-weight: 700;
    font-size: 16px;
    line-height: 102%;
    letter-spacing: -0.05em;
    color: #1A3A27;
    font-family: 'Satoshi &#8211; Medium';
}
.lw-head-icon svg {
    width: 16px;
    height: 16px;
}

.lw-item {
    padding: 13px 13px 13px 13px;
    border: 1px solid #F3F4F6;
    background: #FEF2F2;
    border-radius: 14px;
    margin-bottom: 8px;
}
.lw-item:last-child {
    margin-bottom: 0;
 }
 .lw-item__title {
    font-size: 12.5px; font-weight: 600; color: #1a1a1a;
    flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.lw-item__bar{
        width: 100%;
    height: 6px;
    background: #FFFFFF;
    border-radius: 99px;
    overflow: hidden;
    margin: 6px 0 3px 0px;
    /* border: 1px solid #ffffff; */
}
.lw-item__pct--red    {
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #99A1AF;
}


.lw-item__time {
    display: flex; align-items: center; gap: 3px;
    font-size: 10.5px; color: #99A1AF; font-weight: 400; white-space: nowrap;
}
.lw-item__time svg { width: 11px; height: 11px; stroke: #008236; stroke-width: 2; fill: none; flex-shrink: 0; }

.lw-item__pct--green  { color: #008236; }

#lwStrengths .lw-item{
    background: #EDF4F1;
}

#lwWeaknesses .lw-item{
    background: #FEF2F2;
}

.lw-items::-webkit-scrollbar {
  width: 8px;
}

/* Track */
/* .lw-items::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey; 
  border-radius: 10px;
} */
 
/* Handle */
.lw-items::-webkit-scrollbar-thumb {
  background: #E6E6E6; 
  border-radius: 10px;
}

/* Handle on hover */
.lw-items::-webkit-scrollbar-thumb:hover {
  background: #E6E6E6; 
}
.lw-head-icon svg {
    width: 20px;
    height: 20px;
}

.progress_bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 18px;
}

.lw-popup-sub{
    display: none;
}

.lw-mk.lw-mk--locked .lw-mk__arrow{
    opacity: 0.5;
}


#lwStrengths{

    max-height: 238px;
}

#lwWeaknesses {
    max-height: 238px;
    overflow-y: auto;
}

.lw-item__title--link {
    text-decoration: none;
    transition: 0.3s;
}
.lw-item__title--link:hover {
    color: #22ac55;
}
.lw-item.lw-item--weak .lw-item__title--link:hover {
    color: #e53535;
}
