/* ==========================================================================
   RESULTS CHART VARIANTS
   ========================================================================== */

/* Comparison Table */
.ucs-comparison-table {
    overflow-x: auto;
}

.ucs-comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--ucs-white);
    border: 1px solid var(--ucs-border);
    border-radius: var(--ucs-radius);
    overflow: hidden;
}

.ucs-comparison-table th {
    background: var(--ucs-gray);
    color: var(--ucs-primary);
    font-weight: 700;
    text-align: left;
    padding: 15px 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ucs-comparison-table td {
    padding: 15px 20px;
    border-top: 1px solid var(--ucs-border);
}

.ucs-comparison-table tr:hover {
    background: var(--ucs-gray);
}

.ucs-change-positive {
    color: var(--ucs-primary-light);
    font-weight: 700;
}

/* ROI Box */
.ucs-roi-box {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    gap: 30px;
    align-items: center;
    padding: 40px;
    background: var(--ucs-gray);
    border-radius: var(--ucs-radius);
    border: 1px solid var(--ucs-border);
}

.ucs-roi-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.ucs-roi-label {
    font-size: 0.8rem;
    color: var(--ucs-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.ucs-roi-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ucs-primary);
}

.ucs-roi-return {
    color: var(--ucs-primary-light);
}

.ucs-roi-arrow {
    font-size: 2rem;
    color: var(--ucs-text-light);
    font-weight: bold;
}

.ucs-roi-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 30px;
    background: var(--ucs-primary-light);
    color: var(--ucs-white);
    border-radius: var(--ucs-radius);
    grid-column: span 4;
}

.ucs-roi-percentage {
    font-size: 3rem;
    font-weight: 700;
}

.ucs-roi-timeframe {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Line Chart (Results) */
.ucs-results-line-graph {
    padding: 50px 25px 60px 25px;
    background: var(--ucs-white);
    border: 1px solid var(--ucs-border);
    border-radius: var(--ucs-radius);
}

.ucs-results-graph-line-projected {
    fill: none;
    stroke: var(--ucs-border);
    stroke-width: 3;
    stroke-dasharray: 8, 8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.4;
}

.ucs-results-graph-fill-projected {
    fill: url(#projected-pattern);
    opacity: 0.3;
}

.ucs-line-label {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    transform: translateX(-50%);
}

.ucs-line-label-year {
    font-size: 0.7rem;
    color: var(--ucs-text-light);
    opacity: 0.8;
}

.ucs-line-label-projected {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    opacity: 0.4;
    transform: translateX(-50%);
}

.ucs-results-line-graph .ucs-line-graph-labels {
    width: 100%;
    margin-top: 15px;
    height: 60px;
}

.ucs-results-line-graph .ucs-line-graph-labels span {
    color: var(--ucs-text-light);
    font-size: 0.85rem;
}

.ucs-graph-point--start .ucs-graph-start-line {
    display: none;
}

.ucs-graph-point--start .ucs-graph-start-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--ucs-white);
    background: var(--ucs-primary-light);
    padding: 6px 12px;
    border-radius: 3px;
    white-space: nowrap;
    z-index: 10;
}

/* Start Label im Line Graph - Fett und Blau */
.ucs-line-label--start span {
    color: var(--ucs-primary-light);
    font-weight: 700;
}

.ucs-line-label--start .ucs-line-label-year {
    color: var(--ucs-primary-light);
    font-weight: 700;
}

.ucs-results-line-graph .ucs-carousel-dot {
    background: var(--ucs-primary-light);
}

.ucs-results-graph-container {
    position: relative;
    width: 100%;
}

.ucs-results-graph-svg {
    width: 100%;
    height: auto;
    display: block;
}

.ucs-results-graph-fill {
    fill: url(#results-graph-gradient);
}

.ucs-results-graph-line {
    fill: none;
    stroke: var(--ucs-highlight);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ucs-results-graph-points {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ucs-results-graph-point {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--ucs-primary-light);
    border: 3px solid var(--ucs-white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.ucs-results-graph-point:hover {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 20px rgba(45, 97, 240, 0.5);
}

.ucs-results-point-value {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    background: var(--ucs-white);
    color: var(--ucs-primary);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.ucs-results-point-value::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--ucs-white);
}

.ucs-results-graph-point:hover .ucs-results-point-value {
    opacity: 1;
    visibility: visible;
}

.ucs-results-graph-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    gap: 10px;
}

.ucs-results-graph-labels span {
    font-size: 0.85rem;
    color: var(--ucs-text-light);
    text-align: center;
    flex: 1;
}

/* PageSpeed Comparison */
.ucs-pagespeed-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.ucs-pagespeed-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--ucs-white);
    padding: 20px;
    border-radius: var(--ucs-radius);
    border: 1px solid var(--ucs-border);
}

.ucs-pagespeed-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ucs-text-light);
    letter-spacing: 0.5px;
}

.ucs-pagespeed-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .ucs-pagespeed-comparison {
        grid-template-columns: 1fr;
    }
}

/* Bar Chart Grid */
.ucs-chart-with-grid {
    position: relative;
}

.ucs-chart-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(to top, var(--ucs-border) 1px, transparent 1px);
    background-size: 100% 20%;
    pointer-events: none;
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 768px) {
    .ucs-roi-box {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ucs-roi-arrow {
        transform: rotate(90deg);
    }

    .ucs-roi-result {
        grid-column: span 1;
    }

    .ucs-comparison-table th,
    .ucs-comparison-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .ucs-bar-start-marker {
        top: -15px;
    }

    .ucs-bar-start-label {
        font-size: 0.65rem;
        padding: 1px 6px;
    }
}
