#stagedata {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.funnel-layout {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
}

.funnel-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.funnel-right {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0;
    align-self: flex-start;
}

.stage-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

.stage-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
}

.stage-box {
    background-color: white;
    border-radius: 10px;
    padding: 1em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.stage-name {
    font-weight: bold;
    font-size: 1.3rem;
}



.stage-count {
    font-size: 2.5rem;
    color: #3e80a1;
}

.arrow {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    font-family: inherit;
    display: inline-block;
    align-self: center;
}

.arrow-green {
    color: #98d7b4;
}

.arrow-red {
    color: #b30000;
}

.dropout-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5px;
}

.dropout-value {
    font-size: 1.4rem;
    font-weight: normal;
    color: #b30000;
    margin-bottom: -6px;
}

.closed-lost-box {
    background-color: #ffecec;
    text-align: center;
    padding-top: 20px;
}

.closed-won-box {
    background-color: #e6f7ec;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1em;
    box-sizing: border-box;
    height: auto; /* wird via JS überschrieben */
}


.conversion-info {
    margin-top: 1em;
    font-size: 2rem;
    font-style: italic;
    color: #888;
}
.stage-content {
    display: flex;
    gap: 16px; /* Abstand zwischen Info und Chart */
    align-items: flex-start; /* optional, falls vertikale Ausrichtung gewünscht ist */
}

.stage-info {
    flex: 1;
    font-weight: normal;
    font-size: 1.2rem;
}

.stage-chart {

}

.compare-bars {
    margin-top: 15px;
    width: 300px;

}



.bar-a { background-color: #4CAF50; }
.bar-b { background-color: #f44336; }

.compare-bars .bar {
    position: relative;
    height: 35px;
    margin-bottom: 6px;
    border-radius: 4px;
    color: white;
    line-height: 35px;
    overflow: hidden;
    font-size: 20px;
}

.bar-a { background-color: #4CAF50; }
.bar-b { background-color: #f44336; }

.label-left, .label-right {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 20px;
    pointer-events: none; /* schützt vor ungewolltem Textauswahl-Effekt */
}

.label-left {
    left: 8px;
}

.label-right {
    right: 8px;
}

details {
    margin-top: 10px;
    margin-left: 10px;
    margin-right: 10px;
}
summary.toggle-summary {
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    list-style: none; /* entfernt Standard-Pfeil vom Browser */
}

summary.toggle-summary::before {
    content: "▾"; /* Startpfeil: nach unten */
    display: inline-block;
    margin-right: 0.5em;
    transition: transform 0.2s ease;
}

details:not([open]) summary.toggle-summary::before {
    transform: rotate(-90deg); /* Pfeil nach rechts, wenn geschlossen */
}

#customerdata {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.stageinfo-right-details {
    width: 50%;
    text-align: right;
}
.stageinfo-left-details {
    width: 50%;
    text-align: left;

}

.stage-warning {
    color: red;
    font-weight: normal;
}

.stage-ok {
    color: green;
    font-weight: bold;
}