@charset "utf-8";
/* CSS Document */

.analysis-results p {
    margin: 5px 0;
}

pre {
    background: #f9f9f9;
    padding: 10px;
    border: 1px solid #ccc;
    max-height: 300px;
    overflow-y: auto;
}

.svg-bop, .svg-pi {
    width: 100%;
    height: auto;
}

#threeColumnChartsContainer {
    flex: 1 1 auto;
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    overflow-y: auto;
}

.column {
    flex: 1;
    padding: 10px;
    margin: 0 5px;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.checkbox-container {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #eeeeee;
    padding: 5px 20px;
    border-radius: 5px;
}

.toggle-button {
    padding: 6px 12px;
    margin: 10px 0;
    border: none;
    background-color: #053E61;
    color: white;
    font-size: 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.toggle-button:hover {
    background-color: #0056b3;
}

.toggle-button.active {
    background-color: orangered;
}

#toggleShowPiText {
    margin-left: 230px;
}

.checkbox-container-button {
    padding: 6px 12px;
    margin: 10px 0;
    border: none;
    background-color: #053E61;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
}

.checkbox-container-button:hover {
    background-color: #0056b3;
}

.chart-block-button {
    width: 30px;
    height: 30px;
    background-color: #C5DDEE;
    border: solid #82AAC5;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    position: absolute;
    left: 564px;
    top: 10px;
    display: none;
    z-index: 10;
}

.chart-block:hover .chart-block-button {
    display: block;
}

.chart-block {
    position: relative;
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: border-color 0.2s ease, border-style 0.2s ease;
}

.chart-block:hover {
    border-color: #82AAC5;
    border-style: dashed;
}

#svg-timelapse-stack {
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 10px;
}

.timelapse-svg-wrapper {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    pointer-events: none;
}

#slider-wrapper {
    display: flex;
    width: 100%;
    overflow: hidden;
    margin-top: 30px;
    position: relative;
}

#slider-wrapper .inner-slider {
    display: flex;
    width: 300%; /* drei Slides nebeneinander */
    transition: transform 0.5s ease;
}

.slide {
    width: 100%;
    flex-shrink: 0;
    padding: 0 9px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: border-color 0.2s ease, border-style 0.2s ease;
    margin-bottom: 10px;
}

.slide:hover {
    border-color: #82AAC5;
    border-style: dashed;
}

.slide-download-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: #C5DDEE;
    border: solid #82AAC5;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    display: none;
    z-index: 10;
}

.slide:hover .slide-download-button {
    display: block;
}

.timelapse-block {
    padding: 10px;
    margin-bottom: 40px;
    border: 2px solid transparent;
    border-radius: 10px;
    background-color: #fff;
}

.timelapse-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.timelapse-col {
    flex: 1 1 45%;
    min-width: 300px;
}

#timeline-container {
    width: 110%;
    margin-top: 170px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#timeline-svg {
    width: 80%;
    height: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
}

#timeline-svg text {
    user-select: none;
}

.timeline-line {
    stroke: #333;
    stroke-width: 2;
}

.timeline-dot {
    fill: gray;
    r: 8;
    cursor: pointer;
}

.timeline-indicator {
    fill: orange;
    stroke: black;
    stroke-width: 2;
    r: 14px;
    cursor: grab;
}

#timeline-indicator:active {
    cursor: grabbing;
}

.timeline-indicator {
    transition: r 0.2s ease;
}

.timeline-indicator.dragging {
    r: 12;
}

.checkbox-container-button.active {
    background-color: orangered;
}

#timelapse-white-overlay {
    background-color: white;
    transition: opacity 0.2s ease-in-out;
    z-index: 100;
}

#showChartsBtn,
#showAnimationBtn,
#overlapButton,
#showProfileBtn,
#showAIPromptButton,
#showCompareButton {
    margin-left: 40px;
}

.checkbox-container-button.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

#svg-timelapse-stack {
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 10px;
}

#svg-overlay-stack {
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 10px;
}

.overlay-svg-wrapper {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    pointer-events: none;
}

#timeline-overlay-container {
    width: 100%;
    margin-top: 170px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#timeline-overlay-svg {
    width: 80%;
    height: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
}

#timeline-overlay-svg text {
    user-select: none;
}

.profile-modal-overlay,
.aiprompt-modal-overlay,
.compare-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00000026;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.profile-modal-content,
.aiprompt-modal-content,
.compare-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 1100px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    position: absolute;
    top: 50px;
    padding-bottom: 90px;
    text-align: left;
}

.profile-close-button,
.aiprompt-close-button,
.compare-close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
}

.profile-column {
    flex: 1 1 auto;
    max-width: 33%;
    text-align: center;
}

.profile-chart-container {
    width: 100%;
    height: 180px;
}

#profileChartWrapper {
    margin: auto;
    margin-bottom: 30px;
}

#profileText {
    margin: 20px auto;
    width: 900px;
    text-align: left;
    font-size: 18px;
    line-height: 1.6;
}

.profile-titel,
.aiprompt-titel,
.compare-titel {
    font-size: 24px;
    margin: 60px 0 30px;
    text-align: center;
}

#aiPromptText pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    font-size: 15px;
    font-family: monospace;
    white-space: pre-wrap;
    text-align: left;
}

.compare-three-columns {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin: 20px;
}

.copy-button {
    margin-top: 10px;
    padding: 8px 16px;
    font-size: 14px;
    background-color: #053E61;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.copy-button:hover {
    background-color: orangered;
}

.copy-success {
    margin-top: 10px;
    color: green;
    font-size: 14px;
}

#headerContainer {
    margin-top: 30px;
}

#headerContainer,
.inner-slider,
#checkboxContainer,
.chart-block,
.chart-change-panel {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.chart-interval {
    width: 100%;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    /*background-color: #f9f9f9;*/
}

.small-icon-button {
    background-color: #053e61;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
    margin-right: 556px;
    color: white;
}

.small-icon-button:hover {
    background-color: #0056b3;
}

.small-icon-button i {
    font-size: 14px;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    margin-top: 0px;
    margin-bottom: 10px;
    justify-content: center;
}

.heatmap-legend div {
    margin: 0 2px;
    font-size: 8px;
}

.heatmap-color-bar {
    height: 10px;
    width: 100px;
    background: linear-gradient(to right, #00FF00, #00E700, #33FF00, #66FF00, #99FF00, #B2FF00, #F7F700, orange, #DF48A1, #B9207A);
}

.histogram-wrapper {
    width: 90%;
    margin: auto;
}

.histogram-canvas {
    width: 100% !important;
    height: 150px !important;
    margin-bottom: 10px;
}

.bar-wrapper {
    margin-top: 30px;
    height: 100px;
}

.bar-canvas {
    width: 100% !important;
    /*margin-bottom: 10px;*/
}

/* Einheitliches Styling für Select-Dropdown */
#languageSelect {
    padding: 8px 36px 8px 12px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #F5F5F5;
    color: #000;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='%23000' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

/* Responsive Anpassung für kleinere Screens */
@media (max-width: 768px) {
    #languageSelect {
        font-size: 13px;
        padding: 6px 32px 6px 10px;
        background-size: 14px;
    }
}

.chart-change-panel {
    position: relative;
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: border-color 0.2s ease, border-style 0.2s ease;
}

.chart-change-panel:hover {
    border-color: #82AAC5;
    border-style: dashed;
}

.chart-change-panel-download-button {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    background-color: #C5DDEE;
    border: solid #82AAC5;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    display: none;
    z-index: 100;
}

.chart-change-panel:hover .chart-change-panel-download-button {
    display: block;
}

.compare-chart-container {
    margin-bottom: 40px;
}

.compare-bar-charts {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.compare-bar-charts .compare-column {
    flex: 1 1 30%;
    max-width: 32%;
    min-width: 250px;
}

#compareProfileChart {
    width: 100% !important;
    max-width: 350px;
    max-height: 200px !important;
    margin: 0 auto;
    display: block;
}

.compare-modal-content canvas {
    width: 100% !important;
    max-width: 350px;
    max-height: 200px !important;
    margin: 0 auto;
    display: block;
}

.chevron {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #053E61;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.chevron:hover {
    background-color: orangered;
}

.chevron-left {
    left: 5px;
}

.chevron-right {
    right: 5px;
}

.chevron.disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
}

/* Input Container für Intervall-Ausrichtung */
.input-container {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    justify-content: flex-end;
}

.input-container label {
    margin-bottom: 0;
    line-height: 1.2;
    align-self: flex-end;
}

/* Interval Display Styling */
.header-interval-value {
    display: inline-block;
    margin: 0;
}

.interval-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #17669d;
    border-radius: 12px;
    padding: 8px 12px 12px 12px;
    min-width: 100px;
    height: 85px;
    box-shadow: 0 4px 12px rgba(23, 102, 157, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.interval-value-number {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: #17669d;
    line-height: 1;
    margin-bottom: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.interval-label {
    font-family: Heebo, Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

/* Spezielle Farben für empfohlen vs. gewählt */
#history-interval-container {
    position: absolute;
    top: 0;
    right: 0;
}

#history_recommended_interval .interval-container {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
}

#history_recommended_interval .interval-container::before {
    background: linear-gradient(90deg, #28a745, #20c997);
}

#history_recommended_interval .interval-value-number {
    color: #28a745;
}

#history_recommended_interval .interval-label {
    color: #155724;
    background: rgba(40, 167, 69, 0.1);
    border-color: #c3e6cb;
}

#history_suggested_interval .interval-container {
    border-color: #fd7e14;
    background: linear-gradient(135deg, #fff8f3 0%, #fef0e6 100%);
}

#history_suggested_interval .interval-container::before {
    background: linear-gradient(90deg, #fd7e14, #ffc107);
}

#history_suggested_interval .interval-value-number {
    color: #fd7e14;
}

#history_suggested_interval .interval-label {
    color: #8a4a00;
    background: rgba(253, 126, 20, 0.1);
    border-color: #ffeaa7;
}

/* Pulseffekt für wichtige Werte */
@keyframes interval-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(23, 102, 157, 0.15);
    }
    50% {
        box-shadow: 0 4px 20px rgba(23, 102, 157, 0.3);
    }
    100% {
        box-shadow: 0 4px 12px rgba(23, 102, 157, 0.15);
    }
}

.interval-container.highlight {
    animation: interval-pulse 2s infinite;
}

/* Zusätzlicher Aufmerksamkeitseffekt wenn Werte stark abweichen */
.interval-container.critical-difference {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
    animation: interval-pulse 1.5s infinite;
}

.interval-container.critical-difference .interval-value-number {
    color: #dc3545;
}

.interval-container.critical-difference::before {
    background: linear-gradient(90deg, #dc3545, #e74c3c);
}